DETECT_DEADLOCKS can't be enabled without DEBUG_THREADS or it does nothing
[asterisk-bristuff.git] / configure
blob27204b13fef67cebc0cf3d24a5a3af2c8f590b95
1 #! /bin/sh
2 # From configure.ac Revision: 74572 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME=
577 PACKAGE_TARNAME=
578 PACKAGE_VERSION=
579 PACKAGE_STRING=
580 PACKAGE_BUGREPORT=
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 # include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 # include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
620 ac_header_list=
621 ac_func_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 UNAME
687 PBX_OSREV
690 RANLIB
691 CXXFLAGS
692 ac_ct_CXX
693 CXXCPP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 STRIP
703 GNU_LD
704 FIND
705 COMPRESS
706 BASENAME
708 DIRNAME
711 WGET
712 FETCH
713 DOWNLOAD
714 acx_pthread_config
715 PTHREAD_CC
716 PTHREAD_LIBS
717 PTHREAD_CFLAGS
718 AST_DEVMODE
719 ALSA_LIB
720 ALSA_INCLUDE
721 ALSA_DIR
722 PBX_ALSA
723 CURL_LIB
724 CURL_INCLUDE
725 CURL_DIR
726 PBX_CURL
727 CURSES_LIB
728 CURSES_INCLUDE
729 CURSES_DIR
730 PBX_CURSES
731 GNUTLS_LIB
732 GNUTLS_INCLUDE
733 GNUTLS_DIR
734 PBX_GNUTLS
735 GSM_LIB
736 GSM_INCLUDE
737 GSM_DIR
738 PBX_GSM
739 IKSEMEL_LIB
740 IKSEMEL_INCLUDE
741 IKSEMEL_DIR
742 PBX_IKSEMEL
743 IMAP_TK_LIB
744 IMAP_TK_INCLUDE
745 IMAP_TK_DIR
746 PBX_IMAP_TK
747 ISDNNET_LIB
748 ISDNNET_INCLUDE
749 ISDNNET_DIR
750 PBX_ISDNNET
751 KDE_LIB
752 KDE_INCLUDE
753 KDE_DIR
754 PBX_KDE
755 LTDL_LIB
756 LTDL_INCLUDE
757 LTDL_DIR
758 PBX_LTDL
759 MISDN_LIB
760 MISDN_INCLUDE
761 MISDN_DIR
762 PBX_MISDN
763 NBS_LIB
764 NBS_INCLUDE
765 NBS_DIR
766 PBX_NBS
767 NCURSES_LIB
768 NCURSES_INCLUDE
769 NCURSES_DIR
770 PBX_NCURSES
771 NETSNMP_LIB
772 NETSNMP_INCLUDE
773 NETSNMP_DIR
774 PBX_NETSNMP
775 NEWT_LIB
776 NEWT_INCLUDE
777 NEWT_DIR
778 PBX_NEWT
779 UNIXODBC_LIB
780 UNIXODBC_INCLUDE
781 UNIXODBC_DIR
782 PBX_UNIXODBC
783 OGG_LIB
784 OGG_INCLUDE
785 OGG_DIR
786 PBX_OGG
787 OSPTK_LIB
788 OSPTK_INCLUDE
789 OSPTK_DIR
790 PBX_OSPTK
791 OSS_LIB
792 OSS_INCLUDE
793 OSS_DIR
794 PBX_OSS
795 POPT_LIB
796 POPT_INCLUDE
797 POPT_DIR
798 PBX_POPT
799 PGSQL_LIB
800 PGSQL_INCLUDE
801 PGSQL_DIR
802 PBX_PGSQL
803 PRI_LIB
804 PRI_INCLUDE
805 PRI_DIR
806 PBX_PRI
807 PWLIB_LIB
808 PWLIB_INCLUDE
809 PWLIB_DIR
810 PBX_PWLIB
811 OPENH323_LIB
812 OPENH323_INCLUDE
813 OPENH323_DIR
814 PBX_OPENH323
815 QT_LIB
816 QT_INCLUDE
817 QT_DIR
818 PBX_QT
819 RADIUS_LIB
820 RADIUS_INCLUDE
821 RADIUS_DIR
822 PBX_RADIUS
823 SPEEX_LIB
824 SPEEX_INCLUDE
825 SPEEX_DIR
826 PBX_SPEEX
827 SQLITE_LIB
828 SQLITE_INCLUDE
829 SQLITE_DIR
830 PBX_SQLITE
831 SUPPSERV_LIB
832 SUPPSERV_INCLUDE
833 SUPPSERV_DIR
834 PBX_SUPPSERV
835 OPENSSL_LIB
836 OPENSSL_INCLUDE
837 OPENSSL_DIR
838 PBX_OPENSSL
839 FREETDS_LIB
840 FREETDS_INCLUDE
841 FREETDS_DIR
842 PBX_FREETDS
843 TERMCAP_LIB
844 TERMCAP_INCLUDE
845 TERMCAP_DIR
846 PBX_TERMCAP
847 TINFO_LIB
848 TINFO_INCLUDE
849 TINFO_DIR
850 PBX_TINFO
851 TONEZONE_LIB
852 TONEZONE_INCLUDE
853 TONEZONE_DIR
854 PBX_TONEZONE
855 VORBIS_LIB
856 VORBIS_INCLUDE
857 VORBIS_DIR
858 PBX_VORBIS
859 VPB_LIB
860 VPB_INCLUDE
861 VPB_DIR
862 PBX_VPB
863 ZLIB_LIB
864 ZLIB_INCLUDE
865 ZLIB_DIR
866 PBX_ZLIB
867 ZAPTEL_LIB
868 ZAPTEL_INCLUDE
869 ZAPTEL_DIR
870 PBX_ZAPTEL
871 ALLOCA
872 LIBOBJS
873 POW_LIB
874 GC_CFLAGS
875 GC_LDFLAGS
876 AST_DECLARATION_AFTER_STATEMENT
877 GSM_INTERNAL
878 KDEINIT
879 KDEDIR
880 NETSNMP_CONFIG
881 PG_CONFIG
882 PTLIB_CONFIG
883 PWLIBDIR
884 PWLIB_INCDIR
885 PWLIB_LIBDIR
886 PWLIB_PLATFORM
887 OPENH323DIR
888 OPENH323_INCDIR
889 OPENH323_LIBDIR
890 OPENH323_SUFFIX
891 OPENH323_BUILD
892 QTMOC
893 PBX_ZAPTEL_VLDTMF
894 PBX_ZAPTEL_TRANSCODE
895 EDITLINE_LIB
896 PBX_H323
897 PBX_IXJUSER
898 GTKCONFIG
899 PBX_GTK
900 GTK_INCLUDE
901 GTK_LIB
902 PKGCONFIG
903 PBX_GTK2
904 GTK2_INCLUDE
905 GTK2_LIB
906 CURL_CONFIG
907 LTLIBOBJS'
908 ac_subst_files=''
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
919 CXXFLAGS
921 CXXCPP'
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
970 ac_prev=
971 ac_dashdash=
972 for ac_option
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
990 ac_dashdash=yes ;;
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1043 -enable-* | --enable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1240 -with-* | --with-*)
1241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 esac
1299 done
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1307 # Be sure to have absolute directory names.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1313 eval ac_val=\$$ac_var
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1320 done
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343 test "$silent" = yes && exec 6>/dev/null
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
1361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365 echo X"$0" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1374 /^X\(\/\/\)$/{
1375 s//\1/
1378 /^X\(\/\).*/{
1379 s//\1/
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1387 else
1388 ac_srcdir_defaulted=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1418 # Report the --help message.
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures this package to adapt to many kinds of systems.
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1431 Defaults for the options are specified in brackets.
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1455 For better control, use the options below.
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1479 cat <<\_ACEOF
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1487 if test -n "$ac_init_help"; then
1489 cat <<\_ACEOF
1491 Optional Features:
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-dev-mode Turn on developer mode
1495 --disable-largefile omit support for large files
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1502 --with-curl=PATH use cURL files in PATH
1503 --with-curses=PATH use curses files in PATH
1504 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1505 PATH
1506 --with-gsm=PATH use GSM files in PATH , or 'internal'
1507 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1508 --with-imap=PATH use UW IMAP Toolkit files in PATH
1509 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1510 --with-kde=PATH use KDE files in PATH
1511 --with-ltdl=PATH use libtool files in PATH
1512 --with-misdn=PATH use mISDN User Library files in PATH
1513 --with-nbs=PATH use Network Broadcast Sound files in PATH
1514 --with-ncurses=PATH use ncurses files in PATH
1515 --with-netsnmp=PATH use Net-SNMP files in PATH
1516 --with-newt=PATH use newt files in PATH
1517 --with-odbc=PATH use unixODBC files in PATH
1518 --with-ogg=PATH use OGG files in PATH
1519 --with-osptk=PATH use OSP Toolkit files in PATH
1520 --with-oss=PATH use Open Sound System files in PATH
1521 --with-popt=PATH use popt files in PATH
1522 --with-postgres=PATH use PostgreSQL files in PATH
1523 --with-pri=PATH use ISDN PRI files in PATH
1524 --with-pwlib=PATH use PWlib files in PATH
1525 --with-h323=PATH use OpenH323 files in PATH
1526 --with-qt=PATH use Qt files in PATH
1527 --with-radius=PATH use Radius Client files in PATH
1528 --with-speex=PATH use Speex files in PATH
1529 --with-sqlite=PATH use SQLite files in PATH
1530 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1531 --with-ssl=PATH use OpenSSL files in PATH
1532 --with-tds=PATH use FreeTDS files in PATH
1533 --with-termcap=PATH use Termcap files in PATH
1534 --with-tinfo=PATH use Term Info files in PATH
1535 --with-tonezone=PATH use tonezone files in PATH
1536 --with-vorbis=PATH use Vorbis files in PATH
1537 --with-vpb=PATH use Voicetronix API files in PATH
1538 --with-z=PATH use zlib files in PATH
1539 --with-zaptel=PATH use Zaptel files in PATH
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 CPP C preprocessor
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1552 CXXCPP C++ preprocessor
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 _ACEOF
1558 ac_status=$?
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" || continue
1565 ac_builddir=.
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 configure
1618 generated by GNU Autoconf 2.61
1620 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1621 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1625 "Asterisk"
1626 _ACEOF
1627 exit
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.61. Invocation command line was
1636 $ $0 $@
1638 _ACEOF
1639 exec 5>>config.log
1641 cat <<_ASUNAME
1642 ## --------- ##
1643 ## Platform. ##
1644 ## --------- ##
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1663 _ASUNAME
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 echo "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1674 } >&5
1676 cat >&5 <<_ACEOF
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1683 _ACEOF
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1697 for ac_arg
1699 case $ac_arg in
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1703 continue ;;
1704 *\'*)
1705 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 esac
1707 case $ac_pass in
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1713 else
1714 case $ac_arg in
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721 esac
1723 -* ) ac_must_keep_next=true ;;
1724 esac
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 esac
1729 done
1730 done
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1742 echo
1744 cat <<\_ASBOX
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1748 _ASBOX
1749 echo
1750 # The following way of writing the cache mishandles newlines in values,
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in #(
1755 *${as_nl}*)
1756 case $ac_var in #(
1757 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1759 esac
1760 case $ac_var in #(
1761 _ | IFS | as_nl) ;; #(
1762 *) $as_unset $ac_var ;;
1763 esac ;;
1764 esac
1765 done
1766 (set) 2>&1 |
1767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768 *${as_nl}ac_space=\ *)
1769 sed -n \
1770 "s/'\''/'\''\\\\'\'''\''/g;
1771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772 ;; #(
1774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 esac |
1777 sort
1779 echo
1781 cat <<\_ASBOX
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1785 _ASBOX
1786 echo
1787 for ac_var in $ac_subst_vars
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1797 if test -n "$ac_subst_files"; then
1798 cat <<\_ASBOX
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1802 _ASBOX
1803 echo
1804 for ac_var in $ac_subst_files
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 echo "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1815 if test -s confdefs.h; then
1816 cat <<\_ASBOX
1817 ## ----------- ##
1818 ## confdefs.h. ##
1819 ## ----------- ##
1820 _ASBOX
1821 echo
1822 cat confdefs.h
1823 echo
1825 test "$ac_signal" != 0 &&
1826 echo "$as_me: caught signal $ac_signal"
1827 echo "$as_me: exit $exit_status"
1828 } >&5
1829 rm -f core *.core core.conftest.* &&
1830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831 exit $exit_status
1833 for ac_signal in 1 2 13 15; do
1834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 done
1836 ac_signal=0
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1841 # Predefined preprocessor variables.
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 _ACEOF
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 _ACEOF
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 _ACEOF
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 _ACEOF
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 _ACEOF
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1874 else
1875 set x "$ac_default_prefix/share/config.site" \
1876 "$ac_default_prefix/etc/config.site"
1878 shift
1879 for ac_site_file
1881 if test -r "$ac_site_file"; then
1882 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1885 . "$ac_site_file"
1887 done
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1895 case $cache_file in
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1898 esac
1900 else
1901 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1903 >$cache_file
1906 ac_header_list="$ac_header_list sys/time.h"
1907 ac_header_list="$ac_header_list unistd.h"
1908 ac_func_list="$ac_func_list alarm"
1909 ac_header_list="$ac_header_list utime.h"
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1919 set,)
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,set)
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,);;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1933 echo "$as_me: former value: $ac_old_val" >&2;}
1934 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1935 echo "$as_me: current value: $ac_new_val" >&2;}
1936 ac_cache_corrupted=:
1937 fi;;
1938 esac
1939 # Pass precious variables to config.status.
1940 if test "$ac_new_set" = set; then
1941 case $ac_new_val in
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 *) ac_arg=$ac_var=$ac_new_val ;;
1944 esac
1945 case " $ac_configure_args " in
1946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 esac
1950 done
1951 if $ac_cache_corrupted; then
1952 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956 { (exit 1); exit 1; }; }
1975 ac_ext=c
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 # cross-compile macros
1984 ac_aux_dir=
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986 if test -f "$ac_dir/install-sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1989 break
1990 elif test -f "$ac_dir/install.sh"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1993 break
1994 elif test -f "$ac_dir/shtool"; then
1995 ac_aux_dir=$ac_dir
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
1997 break
1999 done
2000 if test -z "$ac_aux_dir"; then
2001 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003 { (exit 1); exit 1; }; }
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068 else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 # check existence of the package
2102 # specify output header file
2103 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2110 cat >>confdefs.h <<\_ACEOF
2111 #define _GNU_SOURCE 1
2112 _ACEOF
2115 ac_ext=c
2116 ac_cpp='$CPP $CPPFLAGS'
2117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 if test -n "$ac_tool_prefix"; then
2121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2122 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2142 done
2143 done
2144 IFS=$as_save_IFS
2148 CC=$ac_cv_prog_CC
2149 if test -n "$CC"; then
2150 { echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6; }
2152 else
2153 { echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6; }
2159 if test -z "$ac_cv_prog_CC"; then
2160 ac_ct_CC=$CC
2161 # Extract the first word of "gcc", so it can be a program name with args.
2162 set dummy gcc; ac_word=$2
2163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$ac_ct_CC"; then
2169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178 ac_cv_prog_ac_ct_CC="gcc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2184 IFS=$as_save_IFS
2188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2189 if test -n "$ac_ct_CC"; then
2190 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2191 echo "${ECHO_T}$ac_ct_CC" >&6; }
2192 else
2193 { echo "$as_me:$LINENO: result: no" >&5
2194 echo "${ECHO_T}no" >&6; }
2197 if test "x$ac_ct_CC" = x; then
2198 CC=""
2199 else
2200 case $cross_compiling:$ac_tool_warned in
2201 yes:)
2202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&5
2205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2206 whose name does not start with the host triplet. If you think this
2207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2208 ac_tool_warned=yes ;;
2209 esac
2210 CC=$ac_ct_CC
2212 else
2213 CC="$ac_cv_prog_CC"
2216 if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}cc; ac_word=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_CC="${ac_tool_prefix}cc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2241 IFS=$as_save_IFS
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 { echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6; }
2249 else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2257 if test -z "$CC"; then
2258 # Extract the first word of "cc", so it can be a program name with args.
2259 set dummy cc; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 ac_prog_rejected=no
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2277 ac_prog_rejected=yes
2278 continue
2280 ac_cv_prog_CC="cc"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 break 2
2284 done
2285 done
2286 IFS=$as_save_IFS
2288 if test $ac_prog_rejected = yes; then
2289 # We found a bogon in the path, so make sure we never use it.
2290 set dummy $ac_cv_prog_CC
2291 shift
2292 if test $# != 0; then
2293 # We chose a different compiler from the bogus one.
2294 # However, it has the same basename, so the bogon will be chosen
2295 # first if we set CC to just the basename; use the full file name.
2296 shift
2297 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2302 CC=$ac_cv_prog_CC
2303 if test -n "$CC"; then
2304 { echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2313 if test -z "$CC"; then
2314 if test -n "$ac_tool_prefix"; then
2315 for ac_prog in cl.exe
2317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$CC"; then
2325 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2338 done
2339 done
2340 IFS=$as_save_IFS
2344 CC=$ac_cv_prog_CC
2345 if test -n "$CC"; then
2346 { echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6; }
2348 else
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2354 test -n "$CC" && break
2355 done
2357 if test -z "$CC"; then
2358 ac_ct_CC=$CC
2359 for ac_prog in cl.exe
2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
2362 set dummy $ac_prog; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_ac_ct_CC="$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2382 done
2383 done
2384 IFS=$as_save_IFS
2388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2389 if test -n "$ac_ct_CC"; then
2390 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2391 echo "${ECHO_T}$ac_ct_CC" >&6; }
2392 else
2393 { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2398 test -n "$ac_ct_CC" && break
2399 done
2401 if test "x$ac_ct_CC" = x; then
2402 CC=""
2403 else
2404 case $cross_compiling:$ac_tool_warned in
2405 yes:)
2406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&5
2409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2410 whose name does not start with the host triplet. If you think this
2411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2412 ac_tool_warned=yes ;;
2413 esac
2414 CC=$ac_ct_CC
2421 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: no acceptable C compiler found in \$PATH
2424 See \`config.log' for more details." >&2;}
2425 { (exit 1); exit 1; }; }
2427 # Provide some information about the compiler.
2428 echo "$as_me:$LINENO: checking for C compiler version" >&5
2429 ac_compiler=`set X $ac_compile; echo $2`
2430 { (ac_try="$ac_compiler --version >&5"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compiler --version >&5") 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2440 { (ac_try="$ac_compiler -v >&5"
2441 case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compiler -v >&5") 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2450 { (ac_try="$ac_compiler -V >&5"
2451 case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler -V >&5") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2461 cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h. */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2469 main ()
2473 return 0;
2475 _ACEOF
2476 ac_clean_files_save=$ac_clean_files
2477 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2478 # Try to create an executable without -o first, disregard a.out.
2479 # It will help us diagnose broken compilers, and finding out an intuition
2480 # of exeext.
2481 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2482 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2483 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485 # List of possible output files, starting from the most likely.
2486 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2487 # only as a last resort. b.out is created by i960 compilers.
2488 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2490 # The IRIX 6 linker writes into existing files which may not be
2491 # executable, retaining their permissions. Remove them first so a
2492 # subsequent execution test works.
2493 ac_rmfiles=
2494 for ac_file in $ac_files
2496 case $ac_file in
2497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2498 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2499 esac
2500 done
2501 rm -f $ac_rmfiles
2503 if { (ac_try="$ac_link_default"
2504 case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_link_default") 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2514 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2515 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2516 # so that the user can short-circuit this test for compilers unknown to
2517 # Autoconf.
2518 for ac_file in $ac_files ''
2520 test -f "$ac_file" || continue
2521 case $ac_file in
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2524 [ab].out )
2525 # We found the default executable, but exeext='' is most
2526 # certainly right.
2527 break;;
2528 *.* )
2529 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2530 then :; else
2531 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 # We set ac_cv_exeext here because the later test for it is not
2534 # safe: cross compilers may not add the suffix if given an `-o'
2535 # argument, so we may need to know it at that point already.
2536 # Even if this section looks crufty: it has the advantage of
2537 # actually working.
2538 break;;
2540 break;;
2541 esac
2542 done
2543 test "$ac_cv_exeext" = no && ac_cv_exeext=
2545 else
2546 ac_file=''
2549 { echo "$as_me:$LINENO: result: $ac_file" >&5
2550 echo "${ECHO_T}$ac_file" >&6; }
2551 if test -z "$ac_file"; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&2;}
2559 { (exit 77); exit 77; }; }
2562 ac_exeext=$ac_cv_exeext
2564 # Check that the compiler produces executables we can run. If not, either
2565 # the compiler is broken, or we cross compile.
2566 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2567 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2568 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2569 # If not cross compiling, check that we can run a simple program.
2570 if test "$cross_compiling" != yes; then
2571 if { ac_try='./$ac_file'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 cross_compiling=no
2582 else
2583 if test "$cross_compiling" = maybe; then
2584 cross_compiling=yes
2585 else
2586 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2587 If you meant to cross compile, use \`--host'.
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: cannot run C compiled programs.
2590 If you meant to cross compile, use \`--host'.
2591 See \`config.log' for more details." >&2;}
2592 { (exit 1); exit 1; }; }
2596 { echo "$as_me:$LINENO: result: yes" >&5
2597 echo "${ECHO_T}yes" >&6; }
2599 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2600 ac_clean_files=$ac_clean_files_save
2601 # Check that the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2604 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2605 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2606 echo "${ECHO_T}$cross_compiling" >&6; }
2608 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2609 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2610 if { (ac_try="$ac_link"
2611 case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_link") 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; then
2620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2621 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2622 # work properly (i.e., refer to `conftest.exe'), while it won't with
2623 # `rm'.
2624 for ac_file in conftest.exe conftest conftest.*; do
2625 test -f "$ac_file" || continue
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629 break;;
2630 * ) break;;
2631 esac
2632 done
2633 else
2634 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&2;}
2638 { (exit 1); exit 1; }; }
2641 rm -f conftest$ac_cv_exeext
2642 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2643 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2645 rm -f conftest.$ac_ext
2646 EXEEXT=$ac_cv_exeext
2647 ac_exeext=$EXEEXT
2648 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2649 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2650 if test "${ac_cv_objext+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h. */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2661 main ()
2665 return 0;
2667 _ACEOF
2668 rm -f conftest.o conftest.obj
2669 if { (ac_try="$ac_compile"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compile") 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; then
2679 for ac_file in conftest.o conftest.obj conftest.*; do
2680 test -f "$ac_file" || continue;
2681 case $ac_file in
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2684 break;;
2685 esac
2686 done
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2691 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2700 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2701 echo "${ECHO_T}$ac_cv_objext" >&6; }
2702 OBJEXT=$ac_cv_objext
2703 ac_objext=$OBJEXT
2704 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2706 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 main ()
2719 #ifndef __GNUC__
2720 choke me
2721 #endif
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } && {
2741 test -z "$ac_c_werror_flag" ||
2742 test ! -s conftest.err
2743 } && test -s conftest.$ac_objext; then
2744 ac_compiler_gnu=yes
2745 else
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 ac_compiler_gnu=no
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2756 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2757 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2758 GCC=`test $ac_compiler_gnu = yes && echo yes`
2759 ac_test_CFLAGS=${CFLAGS+set}
2760 ac_save_CFLAGS=$CFLAGS
2761 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2762 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2763 if test "${ac_cv_prog_cc_g+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 ac_save_c_werror_flag=$ac_c_werror_flag
2767 ac_c_werror_flag=yes
2768 ac_cv_prog_cc_g=no
2769 CFLAGS="-g"
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
2802 ac_cv_prog_cc_g=yes
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 CFLAGS=""
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2816 main ()
2820 return 0;
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (ac_try="$ac_compile"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 ac_c_werror_flag=$ac_save_c_werror_flag
2846 CFLAGS="-g"
2847 cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h. */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2855 main ()
2859 return 0;
2861 _ACEOF
2862 rm -f conftest.$ac_objext
2863 if { (ac_try="$ac_compile"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compile") 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest.$ac_objext; then
2879 ac_cv_prog_cc_g=yes
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 ac_c_werror_flag=$ac_save_c_werror_flag
2896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2898 if test "$ac_test_CFLAGS" = set; then
2899 CFLAGS=$ac_save_CFLAGS
2900 elif test $ac_cv_prog_cc_g = yes; then
2901 if test "$GCC" = yes; then
2902 CFLAGS="-g -O2"
2903 else
2904 CFLAGS="-g"
2906 else
2907 if test "$GCC" = yes; then
2908 CFLAGS="-O2"
2909 else
2910 CFLAGS=
2913 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2914 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2915 if test "${ac_cv_prog_cc_c89+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 ac_cv_prog_cc_c89=no
2919 ac_save_CC=$CC
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #include <stdarg.h>
2927 #include <stdio.h>
2928 #include <sys/types.h>
2929 #include <sys/stat.h>
2930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2931 struct buf { int x; };
2932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2933 static char *e (p, i)
2934 char **p;
2935 int i;
2937 return p[i];
2939 static char *f (char * (*g) (char **, int), char **p, ...)
2941 char *s;
2942 va_list v;
2943 va_start (v,p);
2944 s = g (p, va_arg (v,int));
2945 va_end (v);
2946 return s;
2949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2950 function prototypes and stuff, but not '\xHH' hex character constants.
2951 These don't provoke an error unfortunately, instead are silently treated
2952 as 'x'. The following induces an error, until -std is added to get
2953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2954 array size at least. It's necessary to write '\x00'==0 to get something
2955 that's true only with -std. */
2956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2959 inside strings and character constants. */
2960 #define FOO(x) 'x'
2961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2963 int test (int i, double x);
2964 struct s1 {int (*f) (int a);};
2965 struct s2 {int (*f) (double a);};
2966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2967 int argc;
2968 char **argv;
2970 main ()
2972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2974 return 0;
2976 _ACEOF
2977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2980 CC="$ac_save_CC $ac_arg"
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
2998 ac_cv_prog_cc_c89=$ac_arg
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f core conftest.err conftest.$ac_objext
3007 test "x$ac_cv_prog_cc_c89" != "xno" && break
3008 done
3009 rm -f conftest.$ac_ext
3010 CC=$ac_save_CC
3013 # AC_CACHE_VAL
3014 case "x$ac_cv_prog_cc_c89" in
3016 { echo "$as_me:$LINENO: result: none needed" >&5
3017 echo "${ECHO_T}none needed" >&6; } ;;
3018 xno)
3019 { echo "$as_me:$LINENO: result: unsupported" >&5
3020 echo "${ECHO_T}unsupported" >&6; } ;;
3022 CC="$CC $ac_cv_prog_cc_c89"
3023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3024 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3025 esac
3028 ac_ext=c
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3041 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3042 # On Suns, sometimes $CPP names a directory.
3043 if test -n "$CPP" && test -d "$CPP"; then
3044 CPP=
3046 if test -z "$CPP"; then
3047 if test "${ac_cv_prog_CPP+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 # Double quotes because CPP needs to be expanded
3051 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3053 ac_preproc_ok=false
3054 for ac_c_preproc_warn_flag in '' yes
3056 # Use a header file that comes with gcc, so configuring glibc
3057 # with a fresh cross-compiler works.
3058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3059 # <limits.h> exists even on freestanding compilers.
3060 # On the NeXT, cc -E runs the code through the compiler's parser,
3061 # not just through cpp. "Syntax error" is here to catch this case.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #ifdef __STDC__
3069 # include <limits.h>
3070 #else
3071 # include <assert.h>
3072 #endif
3073 Syntax error
3074 _ACEOF
3075 if { (ac_try="$ac_cpp conftest.$ac_ext"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null && {
3088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 }; then
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 # Broken: fails on valid input.
3097 continue
3100 rm -f conftest.err conftest.$ac_ext
3102 # OK, works on sane cases. Now check whether nonexistent headers
3103 # can be detected and how.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #include <ac_nonexistent.h>
3111 _ACEOF
3112 if { (ac_try="$ac_cpp conftest.$ac_ext"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null && {
3125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 }; then
3128 # Broken: success on invalid input.
3129 continue
3130 else
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 # Passes both tests.
3135 ac_preproc_ok=:
3136 break
3139 rm -f conftest.err conftest.$ac_ext
3141 done
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.$ac_ext
3144 if $ac_preproc_ok; then
3145 break
3148 done
3149 ac_cv_prog_CPP=$CPP
3152 CPP=$ac_cv_prog_CPP
3153 else
3154 ac_cv_prog_CPP=$CPP
3156 { echo "$as_me:$LINENO: result: $CPP" >&5
3157 echo "${ECHO_T}$CPP" >&6; }
3158 ac_preproc_ok=false
3159 for ac_c_preproc_warn_flag in '' yes
3161 # Use a header file that comes with gcc, so configuring glibc
3162 # with a fresh cross-compiler works.
3163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3164 # <limits.h> exists even on freestanding compilers.
3165 # On the NeXT, cc -E runs the code through the compiler's parser,
3166 # not just through cpp. "Syntax error" is here to catch this case.
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #ifdef __STDC__
3174 # include <limits.h>
3175 #else
3176 # include <assert.h>
3177 #endif
3178 Syntax error
3179 _ACEOF
3180 if { (ac_try="$ac_cpp conftest.$ac_ext"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } >/dev/null && {
3193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 }; then
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 # Broken: fails on valid input.
3202 continue
3205 rm -f conftest.err conftest.$ac_ext
3207 # OK, works on sane cases. Now check whether nonexistent headers
3208 # can be detected and how.
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include <ac_nonexistent.h>
3216 _ACEOF
3217 if { (ac_try="$ac_cpp conftest.$ac_ext"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } >/dev/null && {
3230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 }; then
3233 # Broken: success on invalid input.
3234 continue
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 # Passes both tests.
3240 ac_preproc_ok=:
3241 break
3244 rm -f conftest.err conftest.$ac_ext
3246 done
3247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3248 rm -f conftest.err conftest.$ac_ext
3249 if $ac_preproc_ok; then
3251 else
3252 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3253 See \`config.log' for more details." >&5
3254 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3267 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3268 if test "${ac_cv_path_GREP+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 # Extract the first word of "grep ggrep" to use in msg output
3272 if test -z "$GREP"; then
3273 set dummy grep ggrep; ac_prog_name=$2
3274 if test "${ac_cv_path_GREP+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 ac_path_GREP_found=false
3278 # Loop through the user's path and test for each of PROGNAME-LIST
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_prog in grep ggrep; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3287 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3288 # Check for GNU ac_path_GREP and select it if it is found.
3289 # Check for GNU $ac_path_GREP
3290 case `"$ac_path_GREP" --version 2>&1` in
3291 *GNU*)
3292 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3294 ac_count=0
3295 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3296 while :
3298 cat "conftest.in" "conftest.in" >"conftest.tmp"
3299 mv "conftest.tmp" "conftest.in"
3300 cp "conftest.in" "conftest.nl"
3301 echo 'GREP' >> "conftest.nl"
3302 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3304 ac_count=`expr $ac_count + 1`
3305 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3306 # Best one so far, save it but keep looking for a better one
3307 ac_cv_path_GREP="$ac_path_GREP"
3308 ac_path_GREP_max=$ac_count
3310 # 10*(2^10) chars as input seems more than enough
3311 test $ac_count -gt 10 && break
3312 done
3313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3314 esac
3317 $ac_path_GREP_found && break 3
3318 done
3319 done
3321 done
3322 IFS=$as_save_IFS
3327 GREP="$ac_cv_path_GREP"
3328 if test -z "$GREP"; then
3329 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3330 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3331 { (exit 1); exit 1; }; }
3334 else
3335 ac_cv_path_GREP=$GREP
3340 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3341 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3342 GREP="$ac_cv_path_GREP"
3345 { echo "$as_me:$LINENO: checking for egrep" >&5
3346 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3347 if test "${ac_cv_path_EGREP+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3351 then ac_cv_path_EGREP="$GREP -E"
3352 else
3353 # Extract the first word of "egrep" to use in msg output
3354 if test -z "$EGREP"; then
3355 set dummy egrep; ac_prog_name=$2
3356 if test "${ac_cv_path_EGREP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 ac_path_EGREP_found=false
3360 # Loop through the user's path and test for each of PROGNAME-LIST
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_prog in egrep; do
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3369 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3370 # Check for GNU ac_path_EGREP and select it if it is found.
3371 # Check for GNU $ac_path_EGREP
3372 case `"$ac_path_EGREP" --version 2>&1` in
3373 *GNU*)
3374 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3376 ac_count=0
3377 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3378 while :
3380 cat "conftest.in" "conftest.in" >"conftest.tmp"
3381 mv "conftest.tmp" "conftest.in"
3382 cp "conftest.in" "conftest.nl"
3383 echo 'EGREP' >> "conftest.nl"
3384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3386 ac_count=`expr $ac_count + 1`
3387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3388 # Best one so far, save it but keep looking for a better one
3389 ac_cv_path_EGREP="$ac_path_EGREP"
3390 ac_path_EGREP_max=$ac_count
3392 # 10*(2^10) chars as input seems more than enough
3393 test $ac_count -gt 10 && break
3394 done
3395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3396 esac
3399 $ac_path_EGREP_found && break 3
3400 done
3401 done
3403 done
3404 IFS=$as_save_IFS
3409 EGREP="$ac_cv_path_EGREP"
3410 if test -z "$EGREP"; then
3411 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3412 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3413 { (exit 1); exit 1; }; }
3416 else
3417 ac_cv_path_EGREP=$EGREP
3423 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3424 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3425 EGREP="$ac_cv_path_EGREP"
3429 { echo "$as_me:$LINENO: checking for AIX" >&5
3430 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #ifdef _AIX
3439 #endif
3441 _ACEOF
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 $EGREP "yes" >/dev/null 2>&1; then
3444 { echo "$as_me:$LINENO: result: yes" >&5
3445 echo "${ECHO_T}yes" >&6; }
3446 cat >>confdefs.h <<\_ACEOF
3447 #define _ALL_SOURCE 1
3448 _ACEOF
3450 else
3451 { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3454 rm -f conftest*
3457 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3459 if test "${ac_cv_header_stdc+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <stdlib.h>
3469 #include <stdarg.h>
3470 #include <string.h>
3471 #include <float.h>
3474 main ()
3478 return 0;
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3498 ac_cv_header_stdc=yes
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 ac_cv_header_stdc=no
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 if test $ac_cv_header_stdc = yes; then
3509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <string.h>
3518 _ACEOF
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 $EGREP "memchr" >/dev/null 2>&1; then
3522 else
3523 ac_cv_header_stdc=no
3525 rm -f conftest*
3529 if test $ac_cv_header_stdc = yes; then
3530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <stdlib.h>
3539 _ACEOF
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "free" >/dev/null 2>&1; then
3543 else
3544 ac_cv_header_stdc=no
3546 rm -f conftest*
3550 if test $ac_cv_header_stdc = yes; then
3551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3552 if test "$cross_compiling" = yes; then
3554 else
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include <ctype.h>
3562 #include <stdlib.h>
3563 #if ((' ' & 0x0FF) == 0x020)
3564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3566 #else
3567 # define ISLOWER(c) \
3568 (('a' <= (c) && (c) <= 'i') \
3569 || ('j' <= (c) && (c) <= 'r') \
3570 || ('s' <= (c) && (c) <= 'z'))
3571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3572 #endif
3574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3576 main ()
3578 int i;
3579 for (i = 0; i < 256; i++)
3580 if (XOR (islower (i), ISLOWER (i))
3581 || toupper (i) != TOUPPER (i))
3582 return 2;
3583 return 0;
3585 _ACEOF
3586 rm -f conftest$ac_exeext
3587 if { (ac_try="$ac_link"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_link") 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3607 else
3608 echo "$as_me: program exited with status $ac_status" >&5
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 ( exit $ac_status )
3613 ac_cv_header_stdc=no
3615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3621 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3622 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3623 if test $ac_cv_header_stdc = yes; then
3625 cat >>confdefs.h <<\_ACEOF
3626 #define STDC_HEADERS 1
3627 _ACEOF
3631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3642 inttypes.h stdint.h unistd.h
3644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 $ac_includes_default
3658 #include <$ac_header>
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3677 eval "$as_ac_Header=yes"
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 eval "$as_ac_Header=no"
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_res=`eval echo '${'$as_ac_Header'}'`
3688 { echo "$as_me:$LINENO: result: $ac_res" >&5
3689 echo "${ECHO_T}$ac_res" >&6; }
3690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3691 cat >>confdefs.h <<_ACEOF
3692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3693 _ACEOF
3697 done
3700 if test "${ac_cv_header_minix_config_h+set}" = set; then
3701 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3702 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3703 if test "${ac_cv_header_minix_config_h+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3707 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3708 else
3709 # Is the header compilable?
3710 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3711 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 $ac_includes_default
3719 #include <minix/config.h>
3720 _ACEOF
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && {
3735 test -z "$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 } && test -s conftest.$ac_objext; then
3738 ac_header_compiler=yes
3739 else
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3743 ac_header_compiler=no
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3748 echo "${ECHO_T}$ac_header_compiler" >&6; }
3750 # Is the header present?
3751 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3752 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <minix/config.h>
3760 _ACEOF
3761 if { (ac_try="$ac_cpp conftest.$ac_ext"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } >/dev/null && {
3774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 }; then
3777 ac_header_preproc=yes
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 ac_header_preproc=no
3785 rm -f conftest.err conftest.$ac_ext
3786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3787 echo "${ECHO_T}$ac_header_preproc" >&6; }
3789 # So? What about this header?
3790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3791 yes:no: )
3792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3793 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3795 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3796 ac_header_preproc=yes
3798 no:yes:* )
3799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3800 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3802 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3804 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3806 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3808 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3810 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3813 esac
3814 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3815 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_minix_config_h+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 ac_cv_header_minix_config_h=$ac_header_preproc
3821 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3822 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3825 if test $ac_cv_header_minix_config_h = yes; then
3826 MINIX=yes
3827 else
3828 MINIX=
3832 if test "$MINIX" = yes; then
3834 cat >>confdefs.h <<\_ACEOF
3835 #define _POSIX_SOURCE 1
3836 _ACEOF
3839 cat >>confdefs.h <<\_ACEOF
3840 #define _POSIX_1_SOURCE 2
3841 _ACEOF
3844 cat >>confdefs.h <<\_ACEOF
3845 #define _MINIX 1
3846 _ACEOF
3860 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3861 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3862 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3872 # define __EXTENSIONS__ 1
3873 $ac_includes_default
3875 main ()
3879 return 0;
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } && {
3896 test -z "$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest.$ac_objext; then
3899 ac_cv_safe_to_define___extensions__=yes
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 ac_cv_safe_to_define___extensions__=no
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3910 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3911 test $ac_cv_safe_to_define___extensions__ = yes &&
3912 cat >>confdefs.h <<\_ACEOF
3913 #define __EXTENSIONS__ 1
3914 _ACEOF
3916 cat >>confdefs.h <<\_ACEOF
3917 #define _POSIX_PTHREAD_SEMANTICS 1
3918 _ACEOF
3920 cat >>confdefs.h <<\_ACEOF
3921 #define _TANDEM_SOURCE 1
3922 _ACEOF
3924 # note- does not work on FreeBSD
3926 case "${host_os}" in
3927 freebsd*)
3928 ac_default_prefix=/usr/local
3929 CPPFLAGS=-I/usr/local/include
3930 LDFLAGS=-L/usr/local/lib
3933 ac_default_prefix=/usr
3934 if test ${sysconfdir} = '${prefix}/etc'; then
3935 sysconfdir=/etc
3937 if test ${mandir} = '${prefix}/man'; then
3938 mandir=/usr/share/man
3941 esac
3943 if test ${localstatedir} = '${prefix}/var'; then
3944 localstatedir=/var
3947 BUILD_PLATFORM=${build}
3948 BUILD_CPU=${build_cpu}
3949 BUILD_VENDOR=${build_vendor}
3950 BUILD_OS=${build_os}
3957 HOST_PLATFORM=${host}
3958 HOST_CPU=${host_cpu}
3959 HOST_VENDOR=${host_vendor}
3960 HOST_OS=${host_os}
3967 case "${host_os}" in
3968 freebsd*)
3969 OSARCH=FreeBSD
3971 netbsd*)
3972 OSARCH=NetBSD
3974 openbsd*)
3975 OSARCH=OpenBSD
3977 solaris*)
3978 OSARCH=SunOS
3981 OSARCH=${HOST_OS}
3983 esac
3987 # check for uname
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}uname; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_UNAME+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 case $UNAME in
3997 [\\/]* | ?:[\\/]*)
3998 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4017 esac
4019 UNAME=$ac_cv_path_UNAME
4020 if test -n "$UNAME"; then
4021 { echo "$as_me:$LINENO: result: $UNAME" >&5
4022 echo "${ECHO_T}$UNAME" >&6; }
4023 else
4024 { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4030 if test -z "$ac_cv_path_UNAME"; then
4031 ac_pt_UNAME=$UNAME
4032 # Extract the first word of "uname", so it can be a program name with args.
4033 set dummy uname; ac_word=$2
4034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4036 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 case $ac_pt_UNAME in
4040 [\\/]* | ?:[\\/]*)
4041 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4055 done
4056 done
4057 IFS=$as_save_IFS
4060 esac
4062 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4063 if test -n "$ac_pt_UNAME"; then
4064 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4065 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4066 else
4067 { echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6; }
4071 if test "x$ac_pt_UNAME" = x; then
4072 UNAME="No"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075 yes:)
4076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077 whose name does not start with the host triplet. If you think this
4078 configuration is useful to you, please write to autoconf@gnu.org." >&5
4079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080 whose name does not start with the host triplet. If you think this
4081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4082 ac_tool_warned=yes ;;
4083 esac
4084 UNAME=$ac_pt_UNAME
4086 else
4087 UNAME="$ac_cv_path_UNAME"
4090 if test ! x"${UNAME}" = xNo; then
4091 PBX_OSREV=$(${UNAME} -r)
4101 # cross-compile checks
4102 if test "${cross_compiling}" = "yes";
4103 then
4104 if test -n "$ac_tool_prefix"; then
4105 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4109 if test "${ac_cv_prog_CC+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4132 CC=$ac_cv_prog_CC
4133 if test -n "$CC"; then
4134 { echo "$as_me:$LINENO: result: $CC" >&5
4135 echo "${ECHO_T}$CC" >&6; }
4136 else
4137 { echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6; }
4143 if test -z "$ac_cv_prog_CC"; then
4144 ac_ct_CC=$CC
4145 # Extract the first word of "gcc", so it can be a program name with args.
4146 set dummy gcc; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$ac_ct_CC"; then
4153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_ac_ct_CC="gcc"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4173 if test -n "$ac_ct_CC"; then
4174 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4175 echo "${ECHO_T}$ac_ct_CC" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4181 if test "x$ac_ct_CC" = x; then
4182 CC=":"
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4187 whose name does not start with the host triplet. If you think this
4188 configuration is useful to you, please write to autoconf@gnu.org." >&5
4189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4190 whose name does not start with the host triplet. If you think this
4191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 CC=$ac_ct_CC
4196 else
4197 CC="$ac_cv_prog_CC"
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}g++; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_prog_CXX+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 if test -n "$CXX"; then
4209 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4228 CXX=$ac_cv_prog_CXX
4229 if test -n "$CXX"; then
4230 { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4232 else
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4239 if test -z "$ac_cv_prog_CXX"; then
4240 ac_ct_CXX=$CXX
4241 # Extract the first word of "g++", so it can be a program name with args.
4242 set dummy g++; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 if test -n "$ac_ct_CXX"; then
4249 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_ac_ct_CXX="g++"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4264 IFS=$as_save_IFS
4268 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4269 if test -n "$ac_ct_CXX"; then
4270 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4271 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4272 else
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4277 if test "x$ac_ct_CXX" = x; then
4278 CXX=":"
4279 else
4280 case $cross_compiling:$ac_tool_warned in
4281 yes:)
4282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&5
4285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4286 whose name does not start with the host triplet. If you think this
4287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4288 ac_tool_warned=yes ;;
4289 esac
4290 CXX=$ac_ct_CXX
4292 else
4293 CXX="$ac_cv_prog_CXX"
4296 if test -n "$ac_tool_prefix"; then
4297 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4298 set dummy ${ac_tool_prefix}ld; ac_word=$2
4299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4301 if test "${ac_cv_prog_LD+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304 if test -n "$LD"; then
4305 ac_cv_prog_LD="$LD" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_prog_LD="${ac_tool_prefix}ld"
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4318 done
4319 done
4320 IFS=$as_save_IFS
4324 LD=$ac_cv_prog_LD
4325 if test -n "$LD"; then
4326 { echo "$as_me:$LINENO: result: $LD" >&5
4327 echo "${ECHO_T}$LD" >&6; }
4328 else
4329 { echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6; }
4335 if test -z "$ac_cv_prog_LD"; then
4336 ac_ct_LD=$LD
4337 # Extract the first word of "ld", so it can be a program name with args.
4338 set dummy ld; ac_word=$2
4339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4341 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 if test -n "$ac_ct_LD"; then
4345 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_prog_ac_ct_LD="ld"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4365 if test -n "$ac_ct_LD"; then
4366 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4367 echo "${ECHO_T}$ac_ct_LD" >&6; }
4368 else
4369 { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4373 if test "x$ac_ct_LD" = x; then
4374 LD=":"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4379 whose name does not start with the host triplet. If you think this
4380 configuration is useful to you, please write to autoconf@gnu.org." >&5
4381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4382 whose name does not start with the host triplet. If you think this
4383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 LD=$ac_ct_LD
4388 else
4389 LD="$ac_cv_prog_LD"
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4394 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4397 if test "${ac_cv_prog_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 if test -n "$RANLIB"; then
4401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4416 IFS=$as_save_IFS
4420 RANLIB=$ac_cv_prog_RANLIB
4421 if test -n "$RANLIB"; then
4422 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4423 echo "${ECHO_T}$RANLIB" >&6; }
4424 else
4425 { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4431 if test -z "$ac_cv_prog_RANLIB"; then
4432 ac_ct_RANLIB=$RANLIB
4433 # Extract the first word of "ranlib", so it can be a program name with args.
4434 set dummy ranlib; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 if test -n "$ac_ct_RANLIB"; then
4441 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_RANLIB="ranlib"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4460 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4461 if test -n "$ac_ct_RANLIB"; then
4462 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4463 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4464 else
4465 { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4469 if test "x$ac_ct_RANLIB" = x; then
4470 RANLIB=":"
4471 else
4472 case $cross_compiling:$ac_tool_warned in
4473 yes:)
4474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4475 whose name does not start with the host triplet. If you think this
4476 configuration is useful to you, please write to autoconf@gnu.org." >&5
4477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4478 whose name does not start with the host triplet. If you think this
4479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482 RANLIB=$ac_ct_RANLIB
4484 else
4485 RANLIB="$ac_cv_prog_RANLIB"
4490 # Checks for programs.
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_prog_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4518 done
4519 done
4520 IFS=$as_save_IFS
4524 CC=$ac_cv_prog_CC
4525 if test -n "$CC"; then
4526 { echo "$as_me:$LINENO: result: $CC" >&5
4527 echo "${ECHO_T}$CC" >&6; }
4528 else
4529 { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4535 if test -z "$ac_cv_prog_CC"; then
4536 ac_ct_CC=$CC
4537 # Extract the first word of "gcc", so it can be a program name with args.
4538 set dummy gcc; ac_word=$2
4539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test -n "$ac_ct_CC"; then
4545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_ac_ct_CC="gcc"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4565 if test -n "$ac_ct_CC"; then
4566 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4567 echo "${ECHO_T}$ac_ct_CC" >&6; }
4568 else
4569 { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4573 if test "x$ac_ct_CC" = x; then
4574 CC=""
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577 yes:)
4578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4579 whose name does not start with the host triplet. If you think this
4580 configuration is useful to you, please write to autoconf@gnu.org." >&5
4581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4582 whose name does not start with the host triplet. If you think this
4583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4584 ac_tool_warned=yes ;;
4585 esac
4586 CC=$ac_ct_CC
4588 else
4589 CC="$ac_cv_prog_CC"
4592 if test -z "$CC"; then
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}cc; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_CC+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$CC"; then
4602 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_CC="${ac_tool_prefix}cc"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 CC=$ac_cv_prog_CC
4622 if test -n "$CC"; then
4623 { echo "$as_me:$LINENO: result: $CC" >&5
4624 echo "${ECHO_T}$CC" >&6; }
4625 else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4633 if test -z "$CC"; then
4634 # Extract the first word of "cc", so it can be a program name with args.
4635 set dummy cc; ac_word=$2
4636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638 if test "${ac_cv_prog_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643 else
4644 ac_prog_rejected=no
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4653 ac_prog_rejected=yes
4654 continue
4656 ac_cv_prog_CC="cc"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4664 if test $ac_prog_rejected = yes; then
4665 # We found a bogon in the path, so make sure we never use it.
4666 set dummy $ac_cv_prog_CC
4667 shift
4668 if test $# != 0; then
4669 # We chose a different compiler from the bogus one.
4670 # However, it has the same basename, so the bogon will be chosen
4671 # first if we set CC to just the basename; use the full file name.
4672 shift
4673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4678 CC=$ac_cv_prog_CC
4679 if test -n "$CC"; then
4680 { echo "$as_me:$LINENO: result: $CC" >&5
4681 echo "${ECHO_T}$CC" >&6; }
4682 else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4689 if test -z "$CC"; then
4690 if test -n "$ac_tool_prefix"; then
4691 for ac_prog in cl.exe
4693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 if test -n "$CC"; then
4701 ac_cv_prog_CC="$CC" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4714 done
4715 done
4716 IFS=$as_save_IFS
4720 CC=$ac_cv_prog_CC
4721 if test -n "$CC"; then
4722 { echo "$as_me:$LINENO: result: $CC" >&5
4723 echo "${ECHO_T}$CC" >&6; }
4724 else
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 test -n "$CC" && break
4731 done
4733 if test -z "$CC"; then
4734 ac_ct_CC=$CC
4735 for ac_prog in cl.exe
4737 # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 if test -n "$ac_ct_CC"; then
4745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_ac_ct_CC="$ac_prog"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4765 if test -n "$ac_ct_CC"; then
4766 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4767 echo "${ECHO_T}$ac_ct_CC" >&6; }
4768 else
4769 { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4774 test -n "$ac_ct_CC" && break
4775 done
4777 if test "x$ac_ct_CC" = x; then
4778 CC=""
4779 else
4780 case $cross_compiling:$ac_tool_warned in
4781 yes:)
4782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4783 whose name does not start with the host triplet. If you think this
4784 configuration is useful to you, please write to autoconf@gnu.org." >&5
4785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4786 whose name does not start with the host triplet. If you think this
4787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4788 ac_tool_warned=yes ;;
4789 esac
4790 CC=$ac_ct_CC
4797 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4798 See \`config.log' for more details." >&5
4799 echo "$as_me: error: no acceptable C compiler found in \$PATH
4800 See \`config.log' for more details." >&2;}
4801 { (exit 1); exit 1; }; }
4803 # Provide some information about the compiler.
4804 echo "$as_me:$LINENO: checking for C compiler version" >&5
4805 ac_compiler=`set X $ac_compile; echo $2`
4806 { (ac_try="$ac_compiler --version >&5"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compiler --version >&5") 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }
4816 { (ac_try="$ac_compiler -v >&5"
4817 case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_compiler -v >&5") 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }
4826 { (ac_try="$ac_compiler -V >&5"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compiler -V >&5") 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }
4837 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4838 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4839 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4850 main ()
4852 #ifndef __GNUC__
4853 choke me
4854 #endif
4857 return 0;
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_compiler_gnu=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_compiler_gnu=no
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4889 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4890 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4891 GCC=`test $ac_compiler_gnu = yes && echo yes`
4892 ac_test_CFLAGS=${CFLAGS+set}
4893 ac_save_CFLAGS=$CFLAGS
4894 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4895 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_cc_g+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 ac_save_c_werror_flag=$ac_c_werror_flag
4900 ac_c_werror_flag=yes
4901 ac_cv_prog_cc_g=no
4902 CFLAGS="-g"
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4911 main ()
4915 return 0;
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (ac_try="$ac_compile"
4920 case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_compile") 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest.$ac_objext; then
4935 ac_cv_prog_cc_g=yes
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 CFLAGS=""
4941 cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h. */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4949 main ()
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext
4957 if { (ac_try="$ac_compile"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_compile") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest.$ac_objext; then
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 ac_c_werror_flag=$ac_save_c_werror_flag
4979 CFLAGS="-g"
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4988 main ()
4992 return 0;
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (ac_try="$ac_compile"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_compile") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && {
5009 test -z "$ac_c_werror_flag" ||
5010 test ! -s conftest.err
5011 } && test -s conftest.$ac_objext; then
5012 ac_cv_prog_cc_g=yes
5013 else
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 ac_c_werror_flag=$ac_save_c_werror_flag
5029 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5031 if test "$ac_test_CFLAGS" = set; then
5032 CFLAGS=$ac_save_CFLAGS
5033 elif test $ac_cv_prog_cc_g = yes; then
5034 if test "$GCC" = yes; then
5035 CFLAGS="-g -O2"
5036 else
5037 CFLAGS="-g"
5039 else
5040 if test "$GCC" = yes; then
5041 CFLAGS="-O2"
5042 else
5043 CFLAGS=
5046 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5047 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5048 if test "${ac_cv_prog_cc_c89+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 ac_cv_prog_cc_c89=no
5052 ac_save_CC=$CC
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #include <stdarg.h>
5060 #include <stdio.h>
5061 #include <sys/types.h>
5062 #include <sys/stat.h>
5063 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5064 struct buf { int x; };
5065 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5066 static char *e (p, i)
5067 char **p;
5068 int i;
5070 return p[i];
5072 static char *f (char * (*g) (char **, int), char **p, ...)
5074 char *s;
5075 va_list v;
5076 va_start (v,p);
5077 s = g (p, va_arg (v,int));
5078 va_end (v);
5079 return s;
5082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5083 function prototypes and stuff, but not '\xHH' hex character constants.
5084 These don't provoke an error unfortunately, instead are silently treated
5085 as 'x'. The following induces an error, until -std is added to get
5086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5087 array size at least. It's necessary to write '\x00'==0 to get something
5088 that's true only with -std. */
5089 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5092 inside strings and character constants. */
5093 #define FOO(x) 'x'
5094 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5096 int test (int i, double x);
5097 struct s1 {int (*f) (int a);};
5098 struct s2 {int (*f) (double a);};
5099 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5100 int argc;
5101 char **argv;
5103 main ()
5105 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5107 return 0;
5109 _ACEOF
5110 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5111 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5113 CC="$ac_save_CC $ac_arg"
5114 rm -f conftest.$ac_objext
5115 if { (ac_try="$ac_compile"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
5131 ac_cv_prog_cc_c89=$ac_arg
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5139 rm -f core conftest.err conftest.$ac_objext
5140 test "x$ac_cv_prog_cc_c89" != "xno" && break
5141 done
5142 rm -f conftest.$ac_ext
5143 CC=$ac_save_CC
5146 # AC_CACHE_VAL
5147 case "x$ac_cv_prog_cc_c89" in
5149 { echo "$as_me:$LINENO: result: none needed" >&5
5150 echo "${ECHO_T}none needed" >&6; } ;;
5151 xno)
5152 { echo "$as_me:$LINENO: result: unsupported" >&5
5153 echo "${ECHO_T}unsupported" >&6; } ;;
5155 CC="$CC $ac_cv_prog_cc_c89"
5156 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5157 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5158 esac
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 ac_ext=cpp
5168 ac_cpp='$CXXCPP $CPPFLAGS'
5169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172 if test -z "$CXX"; then
5173 if test -n "$CCC"; then
5174 CXX=$CCC
5175 else
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5183 if test "${ac_cv_prog_CXX+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$CXX"; then
5187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 CXX=$ac_cv_prog_CXX
5207 if test -n "$CXX"; then
5208 { echo "$as_me:$LINENO: result: $CXX" >&5
5209 echo "${ECHO_T}$CXX" >&6; }
5210 else
5211 { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5216 test -n "$CXX" && break
5217 done
5219 if test -z "$CXX"; then
5220 ac_ct_CXX=$CXX
5221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 if test -n "$ac_ct_CXX"; then
5231 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_CXX="$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5251 if test -n "$ac_ct_CXX"; then
5252 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5253 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5254 else
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5260 test -n "$ac_ct_CXX" && break
5261 done
5263 if test "x$ac_ct_CXX" = x; then
5264 CXX="g++"
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267 yes:)
5268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5269 whose name does not start with the host triplet. If you think this
5270 configuration is useful to you, please write to autoconf@gnu.org." >&5
5271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5272 whose name does not start with the host triplet. If you think this
5273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 CXX=$ac_ct_CXX
5282 # Provide some information about the compiler.
5283 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (ac_try="$ac_compiler --version >&5"
5286 case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler --version >&5") 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (ac_try="$ac_compiler -v >&5"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -v >&5") 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (ac_try="$ac_compiler -V >&5"
5306 case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -V >&5") 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5316 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5318 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5329 main ()
5331 #ifndef __GNUC__
5332 choke me
5333 #endif
5336 return 0;
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_cxx_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 ac_compiler_gnu=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_compiler_gnu=no
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5368 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5369 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5370 GXX=`test $ac_compiler_gnu = yes && echo yes`
5371 ac_test_CXXFLAGS=${CXXFLAGS+set}
5372 ac_save_CXXFLAGS=$CXXFLAGS
5373 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5374 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5375 if test "${ac_cv_prog_cxx_g+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5379 ac_cxx_werror_flag=yes
5380 ac_cv_prog_cxx_g=no
5381 CXXFLAGS="-g"
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5390 main ()
5394 return 0;
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5414 ac_cv_prog_cxx_g=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 CXXFLAGS=""
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5428 main ()
5432 return 0;
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_cxx_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5458 CXXFLAGS="-g"
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5467 main ()
5471 return 0;
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_cxx_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_cv_prog_cxx_g=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5510 if test "$ac_test_CXXFLAGS" = set; then
5511 CXXFLAGS=$ac_save_CXXFLAGS
5512 elif test $ac_cv_prog_cxx_g = yes; then
5513 if test "$GXX" = yes; then
5514 CXXFLAGS="-g -O2"
5515 else
5516 CXXFLAGS="-g"
5518 else
5519 if test "$GXX" = yes; then
5520 CXXFLAGS="-O2"
5521 else
5522 CXXFLAGS=
5525 ac_ext=c
5526 ac_cpp='$CPP $CPPFLAGS'
5527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531 ac_ext=c
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5537 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5538 # On Suns, sometimes $CPP names a directory.
5539 if test -n "$CPP" && test -d "$CPP"; then
5540 CPP=
5542 if test -z "$CPP"; then
5543 if test "${ac_cv_prog_CPP+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 # Double quotes because CPP needs to be expanded
5547 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5549 ac_preproc_ok=false
5550 for ac_c_preproc_warn_flag in '' yes
5552 # Use a header file that comes with gcc, so configuring glibc
5553 # with a fresh cross-compiler works.
5554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 # <limits.h> exists even on freestanding compilers.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #ifdef __STDC__
5565 # include <limits.h>
5566 #else
5567 # include <assert.h>
5568 #endif
5569 Syntax error
5570 _ACEOF
5571 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } >/dev/null && {
5584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 }; then
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 # Broken: fails on valid input.
5593 continue
5596 rm -f conftest.err conftest.$ac_ext
5598 # OK, works on sane cases. Now check whether nonexistent headers
5599 # can be detected and how.
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <ac_nonexistent.h>
5607 _ACEOF
5608 if { (ac_try="$ac_cpp conftest.$ac_ext"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } >/dev/null && {
5621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 }; then
5624 # Broken: success on invalid input.
5625 continue
5626 else
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 # Passes both tests.
5631 ac_preproc_ok=:
5632 break
5635 rm -f conftest.err conftest.$ac_ext
5637 done
5638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5639 rm -f conftest.err conftest.$ac_ext
5640 if $ac_preproc_ok; then
5641 break
5644 done
5645 ac_cv_prog_CPP=$CPP
5648 CPP=$ac_cv_prog_CPP
5649 else
5650 ac_cv_prog_CPP=$CPP
5652 { echo "$as_me:$LINENO: result: $CPP" >&5
5653 echo "${ECHO_T}$CPP" >&6; }
5654 ac_preproc_ok=false
5655 for ac_c_preproc_warn_flag in '' yes
5657 # Use a header file that comes with gcc, so configuring glibc
5658 # with a fresh cross-compiler works.
5659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660 # <limits.h> exists even on freestanding compilers.
5661 # On the NeXT, cc -E runs the code through the compiler's parser,
5662 # not just through cpp. "Syntax error" is here to catch this case.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #ifdef __STDC__
5670 # include <limits.h>
5671 #else
5672 # include <assert.h>
5673 #endif
5674 Syntax error
5675 _ACEOF
5676 if { (ac_try="$ac_cpp conftest.$ac_ext"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } >/dev/null && {
5689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 }; then
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 # Broken: fails on valid input.
5698 continue
5701 rm -f conftest.err conftest.$ac_ext
5703 # OK, works on sane cases. Now check whether nonexistent headers
5704 # can be detected and how.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #include <ac_nonexistent.h>
5712 _ACEOF
5713 if { (ac_try="$ac_cpp conftest.$ac_ext"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null && {
5726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 }; then
5729 # Broken: success on invalid input.
5730 continue
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 # Passes both tests.
5736 ac_preproc_ok=:
5737 break
5740 rm -f conftest.err conftest.$ac_ext
5742 done
5743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744 rm -f conftest.err conftest.$ac_ext
5745 if $ac_preproc_ok; then
5747 else
5748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5749 See \`config.log' for more details." >&5
5750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5751 See \`config.log' for more details." >&2;}
5752 { (exit 1); exit 1; }; }
5755 ac_ext=c
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761 ac_ext=cpp
5762 ac_cpp='$CXXCPP $CPPFLAGS'
5763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5766 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5767 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5768 if test -z "$CXXCPP"; then
5769 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 # Double quotes because CXXCPP needs to be expanded
5773 for CXXCPP in "$CXX -E" "/lib/cpp"
5775 ac_preproc_ok=false
5776 for ac_cxx_preproc_warn_flag in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #ifdef __STDC__
5791 # include <limits.h>
5792 #else
5793 # include <assert.h>
5794 #endif
5795 Syntax error
5796 _ACEOF
5797 if { (ac_try="$ac_cpp conftest.$ac_ext"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } >/dev/null && {
5810 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5811 test ! -s conftest.err
5812 }; then
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 # Broken: fails on valid input.
5819 continue
5822 rm -f conftest.err conftest.$ac_ext
5824 # OK, works on sane cases. Now check whether nonexistent headers
5825 # can be detected and how.
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <ac_nonexistent.h>
5833 _ACEOF
5834 if { (ac_try="$ac_cpp conftest.$ac_ext"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } >/dev/null && {
5847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5848 test ! -s conftest.err
5849 }; then
5850 # Broken: success on invalid input.
5851 continue
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 # Passes both tests.
5857 ac_preproc_ok=:
5858 break
5861 rm -f conftest.err conftest.$ac_ext
5863 done
5864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5865 rm -f conftest.err conftest.$ac_ext
5866 if $ac_preproc_ok; then
5867 break
5870 done
5871 ac_cv_prog_CXXCPP=$CXXCPP
5874 CXXCPP=$ac_cv_prog_CXXCPP
5875 else
5876 ac_cv_prog_CXXCPP=$CXXCPP
5878 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5879 echo "${ECHO_T}$CXXCPP" >&6; }
5880 ac_preproc_ok=false
5881 for ac_cxx_preproc_warn_flag in '' yes
5883 # Use a header file that comes with gcc, so configuring glibc
5884 # with a fresh cross-compiler works.
5885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5886 # <limits.h> exists even on freestanding compilers.
5887 # On the NeXT, cc -E runs the code through the compiler's parser,
5888 # not just through cpp. "Syntax error" is here to catch this case.
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #ifdef __STDC__
5896 # include <limits.h>
5897 #else
5898 # include <assert.h>
5899 #endif
5900 Syntax error
5901 _ACEOF
5902 if { (ac_try="$ac_cpp conftest.$ac_ext"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } >/dev/null && {
5915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5916 test ! -s conftest.err
5917 }; then
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 # Broken: fails on valid input.
5924 continue
5927 rm -f conftest.err conftest.$ac_ext
5929 # OK, works on sane cases. Now check whether nonexistent headers
5930 # can be detected and how.
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <ac_nonexistent.h>
5938 _ACEOF
5939 if { (ac_try="$ac_cpp conftest.$ac_ext"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } >/dev/null && {
5952 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5953 test ! -s conftest.err
5954 }; then
5955 # Broken: success on invalid input.
5956 continue
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 # Passes both tests.
5962 ac_preproc_ok=:
5963 break
5966 rm -f conftest.err conftest.$ac_ext
5968 done
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then
5973 else
5974 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5975 See \`config.log' for more details." >&5
5976 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5977 See \`config.log' for more details." >&2;}
5978 { (exit 1); exit 1; }; }
5981 ac_ext=c
5982 ac_cpp='$CPP $CPPFLAGS'
5983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
5988 # the developers regenerating the configure script don't have to install libtool.
5989 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5990 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5991 if test "${ac_cv_path_SED+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5995 for ac_i in 1 2 3 4 5 6 7; do
5996 ac_script="$ac_script$as_nl$ac_script"
5997 done
5998 echo "$ac_script" | sed 99q >conftest.sed
5999 $as_unset ac_script || ac_script=
6000 # Extract the first word of "sed gsed" to use in msg output
6001 if test -z "$SED"; then
6002 set dummy sed gsed; ac_prog_name=$2
6003 if test "${ac_cv_path_SED+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 ac_path_SED_found=false
6007 # Loop through the user's path and test for each of PROGNAME-LIST
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_prog in sed gsed; do
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6017 # Check for GNU ac_path_SED and select it if it is found.
6018 # Check for GNU $ac_path_SED
6019 case `"$ac_path_SED" --version 2>&1` in
6020 *GNU*)
6021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6023 ac_count=0
6024 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6025 while :
6027 cat "conftest.in" "conftest.in" >"conftest.tmp"
6028 mv "conftest.tmp" "conftest.in"
6029 cp "conftest.in" "conftest.nl"
6030 echo '' >> "conftest.nl"
6031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6033 ac_count=`expr $ac_count + 1`
6034 if test $ac_count -gt ${ac_path_SED_max-0}; then
6035 # Best one so far, save it but keep looking for a better one
6036 ac_cv_path_SED="$ac_path_SED"
6037 ac_path_SED_max=$ac_count
6039 # 10*(2^10) chars as input seems more than enough
6040 test $ac_count -gt 10 && break
6041 done
6042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6043 esac
6046 $ac_path_SED_found && break 3
6047 done
6048 done
6050 done
6051 IFS=$as_save_IFS
6056 SED="$ac_cv_path_SED"
6057 if test -z "$SED"; then
6058 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6059 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6060 { (exit 1); exit 1; }; }
6063 else
6064 ac_cv_path_SED=$SED
6068 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6069 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6070 SED="$ac_cv_path_SED"
6071 rm -f conftest.sed
6073 { echo "$as_me:$LINENO: checking for egrep" >&5
6074 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6075 if test "${ac_cv_prog_egrep+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6079 then ac_cv_prog_egrep='grep -E'
6080 else ac_cv_prog_egrep='egrep'
6083 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6084 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6085 EGREP=$ac_cv_prog_egrep
6089 # Check whether --with-gnu-ld was given.
6090 if test "${with_gnu_ld+set}" = set; then
6091 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6092 else
6093 with_gnu_ld=no
6096 ac_prog=ld
6097 if test "$GCC" = yes; then
6098 # Check if gcc -print-prog-name=ld gives a path.
6099 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6100 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6101 case $host in
6102 *-*-mingw*)
6103 # gcc leaves a trailing carriage return which upsets mingw
6104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6107 esac
6108 case $ac_prog in
6109 # Accept absolute paths.
6110 [\\/]* | ?:[\\/]*)
6111 re_direlt='/[^/][^/]*/\.\./'
6112 # Canonicalize the pathname of ld
6113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6116 done
6117 test -z "$LD" && LD="$ac_prog"
6120 # If it fails, then pretend we aren't using GCC.
6121 ac_prog=ld
6124 # If it is relative, then search for the first ld in PATH.
6125 with_gnu_ld=unknown
6127 esac
6128 elif test "$with_gnu_ld" = yes; then
6129 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6130 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6131 else
6132 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6133 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6135 if test "${lt_cv_path_LD+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 if test -z "$LD"; then
6139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6140 for ac_dir in $PATH; do
6141 IFS="$lt_save_ifs"
6142 test -z "$ac_dir" && ac_dir=.
6143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6144 lt_cv_path_LD="$ac_dir/$ac_prog"
6145 # Check to see if the program is GNU ld. I'd rather use --version,
6146 # but apparently some variants of GNU ld only accept -v.
6147 # Break only if it was the GNU/non-GNU ld that we prefer.
6148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6149 *GNU* | *'with BFD'*)
6150 test "$with_gnu_ld" != no && break
6153 test "$with_gnu_ld" != yes && break
6155 esac
6157 done
6158 IFS="$lt_save_ifs"
6159 else
6160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6164 LD="$lt_cv_path_LD"
6165 if test -n "$LD"; then
6166 { echo "$as_me:$LINENO: result: $LD" >&5
6167 echo "${ECHO_T}$LD" >&6; }
6168 else
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6174 { (exit 1); exit 1; }; }
6175 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6177 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183 lt_cv_prog_gnu_ld=yes
6186 lt_cv_prog_gnu_ld=no
6188 esac
6190 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6191 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6192 with_gnu_ld=$lt_cv_prog_gnu_ld
6194 # note - does not work on freebsd
6195 for ac_prog in gawk mawk nawk awk
6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
6198 set dummy $ac_prog; ac_word=$2
6199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_AWK+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 if test -n "$AWK"; then
6205 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_AWK="$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6218 done
6219 done
6220 IFS=$as_save_IFS
6224 AWK=$ac_cv_prog_AWK
6225 if test -n "$AWK"; then
6226 { echo "$as_me:$LINENO: result: $AWK" >&5
6227 echo "${ECHO_T}$AWK" >&6; }
6228 else
6229 { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6234 test -n "$AWK" && break
6235 done
6237 # Find a good install program. We prefer a C program (faster),
6238 # so one script is as good as another. But avoid the broken or
6239 # incompatible versions:
6240 # SysV /etc/install, /usr/sbin/install
6241 # SunOS /usr/etc/install
6242 # IRIX /sbin/install
6243 # AIX /bin/install
6244 # AmigaOS /C/install, which installs bootblocks on floppy discs
6245 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6246 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6247 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6248 # OS/2's system install, which has a completely different semantic
6249 # ./install, which can be erroneously created by make from ./install.sh.
6250 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6251 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6252 if test -z "$INSTALL"; then
6253 if test "${ac_cv_path_install+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 # Account for people who put trailing slashes in PATH elements.
6262 case $as_dir/ in
6263 ./ | .// | /cC/* | \
6264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6265 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6266 /usr/ucb/* ) ;;
6268 # OSF1 and SCO ODT 3.0 have their own names for install.
6269 # Don't use installbsd from OSF since it installs stuff as root
6270 # by default.
6271 for ac_prog in ginstall scoinst install; do
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6274 if test $ac_prog = install &&
6275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6276 # AIX install. It has an incompatible calling convention.
6278 elif test $ac_prog = install &&
6279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6280 # program-specific install script used by HP pwplus--don't use.
6282 else
6283 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6284 break 3
6287 done
6288 done
6290 esac
6291 done
6292 IFS=$as_save_IFS
6296 if test "${ac_cv_path_install+set}" = set; then
6297 INSTALL=$ac_cv_path_install
6298 else
6299 # As a last resort, use the slow shell script. Don't cache a
6300 # value for INSTALL within a source directory, because that will
6301 # break other packages using the cache if that directory is
6302 # removed, or if the value is a relative name.
6303 INSTALL=$ac_install_sh
6306 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6307 echo "${ECHO_T}$INSTALL" >&6; }
6309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6310 # It thinks the first close brace ends the variable substitution.
6311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6317 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6318 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6319 LN_S=$as_ln_s
6320 if test "$LN_S" = "ln -s"; then
6321 { echo "$as_me:$LINENO: result: yes" >&5
6322 echo "${ECHO_T}yes" >&6; }
6323 else
6324 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6325 echo "${ECHO_T}no, using $LN_S" >&6; }
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_RANLIB+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 if test -n "$RANLIB"; then
6337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6352 IFS=$as_save_IFS
6356 RANLIB=$ac_cv_prog_RANLIB
6357 if test -n "$RANLIB"; then
6358 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6359 echo "${ECHO_T}$RANLIB" >&6; }
6360 else
6361 { echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6; }
6367 if test -z "$ac_cv_prog_RANLIB"; then
6368 ac_ct_RANLIB=$RANLIB
6369 # Extract the first word of "ranlib", so it can be a program name with args.
6370 set dummy ranlib; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376 if test -n "$ac_ct_RANLIB"; then
6377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_RANLIB="ranlib"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6390 done
6391 done
6392 IFS=$as_save_IFS
6396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6397 if test -n "$ac_ct_RANLIB"; then
6398 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6399 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6400 else
6401 { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6405 if test "x$ac_ct_RANLIB" = x; then
6406 RANLIB=":"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6411 whose name does not start with the host triplet. If you think this
6412 configuration is useful to you, please write to autoconf@gnu.org." >&5
6413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet. If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418 RANLIB=$ac_ct_RANLIB
6420 else
6421 RANLIB="$ac_cv_prog_RANLIB"
6424 { echo "$as_me:$LINENO: checking for GNU make" >&5
6425 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6426 if test "${GNU_MAKE+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429 GNU_MAKE='Not Found' ;
6430 GNU_MAKE_VERSION_MAJOR=0 ;
6431 GNU_MAKE_VERSION_MINOR=0 ;
6432 for a in make gmake gnumake ; do
6433 if test -z "$a" ; then continue ; fi ;
6434 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6435 GNU_MAKE=$a ;
6436 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6437 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6438 break;
6440 done ;
6443 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6444 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6445 if test "x$GNU_MAKE" = "xNot Found" ; then
6446 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6447 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6448 { (exit 1); exit 1; }; }
6449 exit 1
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}strip; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_path_STRIP+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 case $STRIP in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6478 done
6479 done
6480 IFS=$as_save_IFS
6483 esac
6485 STRIP=$ac_cv_path_STRIP
6486 if test -n "$STRIP"; then
6487 { echo "$as_me:$LINENO: result: $STRIP" >&5
6488 echo "${ECHO_T}$STRIP" >&6; }
6489 else
6490 { echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6; }
6496 if test -z "$ac_cv_path_STRIP"; then
6497 ac_pt_STRIP=$STRIP
6498 # Extract the first word of "strip", so it can be a program name with args.
6499 set dummy strip; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 case $ac_pt_STRIP in
6506 [\\/]* | ?:[\\/]*)
6507 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6526 esac
6528 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6529 if test -n "$ac_pt_STRIP"; then
6530 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6531 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6532 else
6533 { echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6; }
6537 if test "x$ac_pt_STRIP" = x; then
6538 STRIP=":"
6539 else
6540 case $cross_compiling:$ac_tool_warned in
6541 yes:)
6542 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6543 whose name does not start with the host triplet. If you think this
6544 configuration is useful to you, please write to autoconf@gnu.org." >&5
6545 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6546 whose name does not start with the host triplet. If you think this
6547 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550 STRIP=$ac_pt_STRIP
6552 else
6553 STRIP="$ac_cv_path_STRIP"
6556 if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6558 set dummy ${ac_tool_prefix}ar; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_AR+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 case $AR in
6565 [\\/]* | ?:[\\/]*)
6566 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6580 done
6581 done
6582 IFS=$as_save_IFS
6585 esac
6587 AR=$ac_cv_path_AR
6588 if test -n "$AR"; then
6589 { echo "$as_me:$LINENO: result: $AR" >&5
6590 echo "${ECHO_T}$AR" >&6; }
6591 else
6592 { echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6; }
6598 if test -z "$ac_cv_path_AR"; then
6599 ac_pt_AR=$AR
6600 # Extract the first word of "ar", so it can be a program name with args.
6601 set dummy ar; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 case $ac_pt_AR in
6608 [\\/]* | ?:[\\/]*)
6609 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6623 done
6624 done
6625 IFS=$as_save_IFS
6628 esac
6630 ac_pt_AR=$ac_cv_path_ac_pt_AR
6631 if test -n "$ac_pt_AR"; then
6632 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6633 echo "${ECHO_T}$ac_pt_AR" >&6; }
6634 else
6635 { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6639 if test "x$ac_pt_AR" = x; then
6640 AR=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6645 whose name does not start with the host triplet. If you think this
6646 configuration is useful to you, please write to autoconf@gnu.org." >&5
6647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6648 whose name does not start with the host triplet. If you think this
6649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6650 ac_tool_warned=yes ;;
6651 esac
6652 AR=$ac_pt_AR
6654 else
6655 AR="$ac_cv_path_AR"
6659 GNU_LD=0
6660 if test "x$with_gnu_ld" = "xyes" ; then
6661 GNU_LD=1
6665 # Extract the first word of "grep", so it can be a program name with args.
6666 set dummy grep; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_GREP+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 case $GREP in
6673 [\\/]* | ?:[\\/]*)
6674 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6692 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6694 esac
6696 GREP=$ac_cv_path_GREP
6697 if test -n "$GREP"; then
6698 { echo "$as_me:$LINENO: result: $GREP" >&5
6699 echo "${ECHO_T}$GREP" >&6; }
6700 else
6701 { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6706 # Extract the first word of "find", so it can be a program name with args.
6707 set dummy find; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_FIND+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 case $FIND in
6714 [\\/]* | ?:[\\/]*)
6715 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6729 done
6730 done
6731 IFS=$as_save_IFS
6733 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6735 esac
6737 FIND=$ac_cv_path_FIND
6738 if test -n "$FIND"; then
6739 { echo "$as_me:$LINENO: result: $FIND" >&5
6740 echo "${ECHO_T}$FIND" >&6; }
6741 else
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6747 # Extract the first word of "compress", so it can be a program name with args.
6748 set dummy compress; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_COMPRESS+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754 case $COMPRESS in
6755 [\\/]* | ?:[\\/]*)
6756 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6770 done
6771 done
6772 IFS=$as_save_IFS
6774 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6776 esac
6778 COMPRESS=$ac_cv_path_COMPRESS
6779 if test -n "$COMPRESS"; then
6780 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6781 echo "${ECHO_T}$COMPRESS" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 # Extract the first word of "basename", so it can be a program name with args.
6789 set dummy basename; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_BASENAME+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 case $BASENAME in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6811 done
6812 done
6813 IFS=$as_save_IFS
6815 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6817 esac
6819 BASENAME=$ac_cv_path_BASENAME
6820 if test -n "$BASENAME"; then
6821 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6822 echo "${ECHO_T}$BASENAME" >&6; }
6823 else
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 # Extract the first word of "id", so it can be a program name with args.
6830 set dummy id; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_ID+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 case $ID in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6856 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6858 esac
6860 ID=$ac_cv_path_ID
6861 if test -n "$ID"; then
6862 { echo "$as_me:$LINENO: result: $ID" >&5
6863 echo "${ECHO_T}$ID" >&6; }
6864 else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 # Extract the first word of "dirname", so it can be a program name with args.
6871 set dummy dirname; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_DIRNAME+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 case $DIRNAME in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6893 done
6894 done
6895 IFS=$as_save_IFS
6897 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6899 esac
6901 DIRNAME=$ac_cv_path_DIRNAME
6902 if test -n "$DIRNAME"; then
6903 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6904 echo "${ECHO_T}$DIRNAME" >&6; }
6905 else
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 # Extract the first word of "sh", so it can be a program name with args.
6912 set dummy sh; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_SHELL+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 case $SHELL in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6934 done
6935 done
6936 IFS=$as_save_IFS
6938 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6940 esac
6942 SHELL=$ac_cv_path_SHELL
6943 if test -n "$SHELL"; then
6944 { echo "$as_me:$LINENO: result: $SHELL" >&5
6945 echo "${ECHO_T}$SHELL" >&6; }
6946 else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 # Extract the first word of "ln", so it can be a program name with args.
6953 set dummy ln; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_LN+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 case $LN in
6960 [\\/]* | ?:[\\/]*)
6961 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6975 done
6976 done
6977 IFS=$as_save_IFS
6979 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6981 esac
6983 LN=$ac_cv_path_LN
6984 if test -n "$LN"; then
6985 { echo "$as_me:$LINENO: result: $LN" >&5
6986 echo "${ECHO_T}$LN" >&6; }
6987 else
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6993 # Extract the first word of "dot", so it can be a program name with args.
6994 set dummy dot; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_DOT+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 case $DOT in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7016 done
7017 done
7018 IFS=$as_save_IFS
7020 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7022 esac
7024 DOT=$ac_cv_path_DOT
7025 if test -n "$DOT"; then
7026 { echo "$as_me:$LINENO: result: $DOT" >&5
7027 echo "${ECHO_T}$DOT" >&6; }
7028 else
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 # Extract the first word of "wget", so it can be a program name with args.
7035 set dummy wget; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_WGET+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 case $WGET in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7057 done
7058 done
7059 IFS=$as_save_IFS
7061 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7063 esac
7065 WGET=$ac_cv_path_WGET
7066 if test -n "$WGET"; then
7067 { echo "$as_me:$LINENO: result: $WGET" >&5
7068 echo "${ECHO_T}$WGET" >&6; }
7069 else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 if test "${WGET}" != ":" ; then
7076 DOWNLOAD=${WGET}
7077 else
7078 # Extract the first word of "fetch", so it can be a program name with args.
7079 set dummy fetch; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_FETCH+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 case $FETCH in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7103 IFS=$as_save_IFS
7105 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7107 esac
7109 FETCH=$ac_cv_path_FETCH
7110 if test -n "$FETCH"; then
7111 { echo "$as_me:$LINENO: result: $FETCH" >&5
7112 echo "${ECHO_T}$FETCH" >&6; }
7113 else
7114 { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7119 DOWNLOAD=${FETCH}
7126 ac_ext=c
7127 ac_cpp='$CPP $CPPFLAGS'
7128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 acx_pthread_ok=no
7134 # We used to check for pthread.h first, but this fails if pthread.h
7135 # requires special compiler flags (e.g. on True64 or Sequent).
7136 # It gets checked for in the link test anyway.
7138 # First of all, check if the user has set any of the PTHREAD_LIBS,
7139 # etcetera environment variables, and if threads linking works using
7140 # them:
7141 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7142 save_CFLAGS="$CFLAGS"
7143 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7144 save_LIBS="$LIBS"
7145 LIBS="$PTHREAD_LIBS $LIBS"
7146 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7147 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7155 /* Override any GCC internal prototype to avoid an error.
7156 Use char because int might match the return type of a GCC
7157 builtin and then its argument prototype would still apply. */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 char pthread_join ();
7163 main ()
7165 return pthread_join ();
7167 return 0;
7169 _ACEOF
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_link") 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest$ac_exeext &&
7187 $as_test_x conftest$ac_exeext; then
7188 acx_pthread_ok=yes
7189 else
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7197 conftest$ac_exeext conftest.$ac_ext
7198 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7199 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7200 if test x"$acx_pthread_ok" = xno; then
7201 PTHREAD_LIBS=""
7202 PTHREAD_CFLAGS=""
7204 LIBS="$save_LIBS"
7205 CFLAGS="$save_CFLAGS"
7208 # We must check for the threads library under a number of different
7209 # names; the ordering is very important because some systems
7210 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7211 # libraries is broken (non-POSIX).
7213 # Create a list of thread flags to try. Items starting with a "-" are
7214 # C compiler flags, and other items are library names, except for "none"
7215 # which indicates that we try without any flags at all, and "pthread-config"
7216 # which is a program returning the flags for the Pth emulation library.
7218 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7220 # The ordering *is* (sometimes) important. Some notes on the
7221 # individual items follow:
7223 # pthreads: AIX (must check this before -lpthread)
7224 # none: in case threads are in libc; should be tried before -Kthread and
7225 # other compiler flags to prevent continual compiler warnings
7226 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7227 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7228 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7229 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7230 # -pthreads: Solaris/gcc
7231 # -mthreads: Mingw32/gcc, Lynx/gcc
7232 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7233 # doesn't hurt to check since this sometimes defines pthreads too;
7234 # also defines -D_REENTRANT)
7235 # ... -mt is also the pthreads flag for HP/aCC
7236 # pthread: Linux, etcetera
7237 # --thread-safe: KAI C++
7238 # pthread-config: use pthread-config program (for GNU Pth library)
7240 case "${host_cpu}-${host_os}" in
7241 *solaris*)
7243 # On Solaris (at least, for some versions), libc contains stubbed
7244 # (non-functional) versions of the pthreads routines, so link-based
7245 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7246 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7247 # a function called by this macro, so we could check for that, but
7248 # who knows whether they'll stub that too in a future libc.) So,
7249 # we'll just look for -pthreads and -lpthread first:
7251 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7253 esac
7255 if test x"$acx_pthread_ok" = xno; then
7256 for flag in $acx_pthread_flags; do
7258 case $flag in
7259 none)
7260 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7261 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7265 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7266 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7267 PTHREAD_CFLAGS="$flag"
7270 pthread-config)
7271 # Extract the first word of "pthread-config", so it can be a program name with args.
7272 set dummy pthread-config; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 if test -n "$acx_pthread_config"; then
7279 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_acx_pthread_config="yes"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7292 done
7293 done
7294 IFS=$as_save_IFS
7296 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7299 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7300 if test -n "$acx_pthread_config"; then
7301 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7302 echo "${ECHO_T}$acx_pthread_config" >&6; }
7303 else
7304 { echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6; }
7309 if test x"$acx_pthread_config" = xno; then continue; fi
7310 PTHREAD_CFLAGS="`pthread-config --cflags`"
7311 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7315 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7316 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7317 PTHREAD_LIBS="-l$flag"
7319 esac
7321 save_LIBS="$LIBS"
7322 save_CFLAGS="$CFLAGS"
7323 LIBS="$PTHREAD_LIBS $LIBS"
7324 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7326 # Check for various functions. We must include pthread.h,
7327 # since some functions may be macros. (On the Sequent, we
7328 # need a special flag -Kthread to make this header compile.)
7329 # We check for pthread_join because it is in -lpthread on IRIX
7330 # while pthread_create is in libc. We check for pthread_attr_init
7331 # due to DEC craziness with -lpthreads. We check for
7332 # pthread_cleanup_push because it is one of the few pthread
7333 # functions on Solaris that doesn't have a non-functional libc stub.
7334 # We try pthread_create on general principles.
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h. */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 #include <pthread.h>
7343 main ()
7345 pthread_t th; pthread_join(th, 0);
7346 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7347 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7349 return 0;
7351 _ACEOF
7352 rm -f conftest.$ac_objext conftest$ac_exeext
7353 if { (ac_try="$ac_link"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_link") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest$ac_exeext &&
7369 $as_test_x conftest$ac_exeext; then
7370 acx_pthread_ok=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379 conftest$ac_exeext conftest.$ac_ext
7381 LIBS="$save_LIBS"
7382 CFLAGS="$save_CFLAGS"
7384 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7385 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7386 if test "x$acx_pthread_ok" = xyes; then
7387 break;
7390 PTHREAD_LIBS=""
7391 PTHREAD_CFLAGS=""
7392 done
7395 # Various other checks:
7396 if test "x$acx_pthread_ok" = xyes; then
7397 save_LIBS="$LIBS"
7398 LIBS="$PTHREAD_LIBS $LIBS"
7399 save_CFLAGS="$CFLAGS"
7400 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7402 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7403 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7404 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7405 attr_name=unknown
7406 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 #include <pthread.h>
7415 main ()
7417 int attr=$attr; return attr;
7419 return 0;
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (ac_try="$ac_link"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_link") 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } && {
7436 test -z "$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7438 } && test -s conftest$ac_exeext &&
7439 $as_test_x conftest$ac_exeext; then
7440 attr_name=$attr; break
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7449 conftest$ac_exeext conftest.$ac_ext
7450 done
7451 { echo "$as_me:$LINENO: result: $attr_name" >&5
7452 echo "${ECHO_T}$attr_name" >&6; }
7453 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7455 cat >>confdefs.h <<_ACEOF
7456 #define PTHREAD_CREATE_JOINABLE $attr_name
7457 _ACEOF
7461 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7462 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7463 flag=no
7464 case "${host_cpu}-${host_os}" in
7465 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7466 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7467 esac
7468 { echo "$as_me:$LINENO: result: ${flag}" >&5
7469 echo "${ECHO_T}${flag}" >&6; }
7470 if test "x$flag" != xno; then
7471 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7474 LIBS="$save_LIBS"
7475 CFLAGS="$save_CFLAGS"
7477 # More AIX lossage: must compile with xlc_r or cc_r
7478 if test x"$GCC" != xyes; then
7479 for ac_prog in xlc_r cc_r
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 if test -n "$PTHREAD_CC"; then
7489 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_PTHREAD_CC="$ac_prog"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7504 IFS=$as_save_IFS
7508 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7509 if test -n "$PTHREAD_CC"; then
7510 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7511 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7512 else
7513 { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7518 test -n "$PTHREAD_CC" && break
7519 done
7520 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7522 else
7523 PTHREAD_CC=$CC
7525 else
7526 PTHREAD_CC="$CC"
7533 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7534 if test x"$acx_pthread_ok" = xyes; then
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_PTHREAD 1
7538 _ACEOF
7541 else
7542 acx_pthread_ok=no
7545 ac_ext=c
7546 ac_cpp='$CPP $CPPFLAGS'
7547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 # Check whether --enable-dev-mode was given.
7561 if test "${enable_dev_mode+set}" = set; then
7562 enableval=$enable_dev_mode; case "${enableval}" in
7563 y|ye|yes) AST_DEVMODE=yes ;;
7564 n|no) AST_DEVMODE=no ;;
7565 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7566 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7567 { (exit 1); exit 1; }; } ;;
7568 esac
7573 # package option names should be in alphabetical order
7574 # by the --with option name, to make things easier for the users :-)
7577 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7578 ALSA_OPTION="asound"
7580 # Check whether --with-asound was given.
7581 if test "${with_asound+set}" = set; then
7582 withval=$with_asound;
7583 case ${withval} in
7584 n|no)
7585 USE_ALSA=no
7587 y|ye|yes)
7588 ALSA_MANDATORY="yes"
7591 ALSA_DIR="${withval}"
7592 ALSA_MANDATORY="yes"
7594 esac
7598 PBX_ALSA=0
7605 CURL_DESCRIP="cURL"
7606 CURL_OPTION="curl"
7608 # Check whether --with-curl was given.
7609 if test "${with_curl+set}" = set; then
7610 withval=$with_curl;
7611 case ${withval} in
7612 n|no)
7613 USE_CURL=no
7615 y|ye|yes)
7616 CURL_MANDATORY="yes"
7619 CURL_DIR="${withval}"
7620 CURL_MANDATORY="yes"
7622 esac
7626 PBX_CURL=0
7633 CURSES_DESCRIP="curses"
7634 CURSES_OPTION="curses"
7636 # Check whether --with-curses was given.
7637 if test "${with_curses+set}" = set; then
7638 withval=$with_curses;
7639 case ${withval} in
7640 n|no)
7641 USE_CURSES=no
7643 y|ye|yes)
7644 CURSES_MANDATORY="yes"
7647 CURSES_DIR="${withval}"
7648 CURSES_MANDATORY="yes"
7650 esac
7654 PBX_CURSES=0
7661 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7662 GNUTLS_OPTION="gnutls"
7664 # Check whether --with-gnutls was given.
7665 if test "${with_gnutls+set}" = set; then
7666 withval=$with_gnutls;
7667 case ${withval} in
7668 n|no)
7669 USE_GNUTLS=no
7671 y|ye|yes)
7672 GNUTLS_MANDATORY="yes"
7675 GNUTLS_DIR="${withval}"
7676 GNUTLS_MANDATORY="yes"
7678 esac
7682 PBX_GNUTLS=0
7689 GSM_DESCRIP="GSM"
7690 GSM_OPTION="gsm"
7692 # Check whether --with-gsm was given.
7693 if test "${with_gsm+set}" = set; then
7694 withval=$with_gsm;
7695 case ${withval} in
7696 n|no)
7697 USE_GSM=no
7699 y|ye|yes)
7700 GSM_MANDATORY="yes"
7703 GSM_DIR="${withval}"
7704 GSM_MANDATORY="yes"
7706 esac
7710 PBX_GSM=0
7717 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7718 IKSEMEL_OPTION="iksemel"
7720 # Check whether --with-iksemel was given.
7721 if test "${with_iksemel+set}" = set; then
7722 withval=$with_iksemel;
7723 case ${withval} in
7724 n|no)
7725 USE_IKSEMEL=no
7727 y|ye|yes)
7728 IKSEMEL_MANDATORY="yes"
7731 IKSEMEL_DIR="${withval}"
7732 IKSEMEL_MANDATORY="yes"
7734 esac
7738 PBX_IKSEMEL=0
7745 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7746 IMAP_TK_OPTION="imap"
7748 # Check whether --with-imap was given.
7749 if test "${with_imap+set}" = set; then
7750 withval=$with_imap;
7751 case ${withval} in
7752 n|no)
7753 USE_IMAP_TK=no
7755 y|ye|yes)
7756 IMAP_TK_MANDATORY="yes"
7759 IMAP_TK_DIR="${withval}"
7760 IMAP_TK_MANDATORY="yes"
7762 esac
7766 PBX_IMAP_TK=0
7773 ISDNNET_DESCRIP="ISDN4Linux Library"
7774 ISDNNET_OPTION="isdnnet"
7776 # Check whether --with-isdnnet was given.
7777 if test "${with_isdnnet+set}" = set; then
7778 withval=$with_isdnnet;
7779 case ${withval} in
7780 n|no)
7781 USE_ISDNNET=no
7783 y|ye|yes)
7784 ISDNNET_MANDATORY="yes"
7787 ISDNNET_DIR="${withval}"
7788 ISDNNET_MANDATORY="yes"
7790 esac
7794 PBX_ISDNNET=0
7801 KDE_DESCRIP="KDE"
7802 KDE_OPTION="kde"
7804 # Check whether --with-kde was given.
7805 if test "${with_kde+set}" = set; then
7806 withval=$with_kde;
7807 case ${withval} in
7808 n|no)
7809 USE_KDE=no
7811 y|ye|yes)
7812 KDE_MANDATORY="yes"
7815 KDE_DIR="${withval}"
7816 KDE_MANDATORY="yes"
7818 esac
7822 PBX_KDE=0
7829 LTDL_DESCRIP="libtool"
7830 LTDL_OPTION="ltdl"
7832 # Check whether --with-ltdl was given.
7833 if test "${with_ltdl+set}" = set; then
7834 withval=$with_ltdl;
7835 case ${withval} in
7836 n|no)
7837 USE_LTDL=no
7839 y|ye|yes)
7840 LTDL_MANDATORY="yes"
7843 LTDL_DIR="${withval}"
7844 LTDL_MANDATORY="yes"
7846 esac
7850 PBX_LTDL=0
7857 MISDN_DESCRIP="mISDN User Library"
7858 MISDN_OPTION="misdn"
7860 # Check whether --with-misdn was given.
7861 if test "${with_misdn+set}" = set; then
7862 withval=$with_misdn;
7863 case ${withval} in
7864 n|no)
7865 USE_MISDN=no
7867 y|ye|yes)
7868 MISDN_MANDATORY="yes"
7871 MISDN_DIR="${withval}"
7872 MISDN_MANDATORY="yes"
7874 esac
7878 PBX_MISDN=0
7885 NBS_DESCRIP="Network Broadcast Sound"
7886 NBS_OPTION="nbs"
7888 # Check whether --with-nbs was given.
7889 if test "${with_nbs+set}" = set; then
7890 withval=$with_nbs;
7891 case ${withval} in
7892 n|no)
7893 USE_NBS=no
7895 y|ye|yes)
7896 NBS_MANDATORY="yes"
7899 NBS_DIR="${withval}"
7900 NBS_MANDATORY="yes"
7902 esac
7906 PBX_NBS=0
7913 NCURSES_DESCRIP="ncurses"
7914 NCURSES_OPTION="ncurses"
7916 # Check whether --with-ncurses was given.
7917 if test "${with_ncurses+set}" = set; then
7918 withval=$with_ncurses;
7919 case ${withval} in
7920 n|no)
7921 USE_NCURSES=no
7923 y|ye|yes)
7924 NCURSES_MANDATORY="yes"
7927 NCURSES_DIR="${withval}"
7928 NCURSES_MANDATORY="yes"
7930 esac
7934 PBX_NCURSES=0
7941 NETSNMP_DESCRIP="Net-SNMP"
7942 NETSNMP_OPTION="netsnmp"
7944 # Check whether --with-netsnmp was given.
7945 if test "${with_netsnmp+set}" = set; then
7946 withval=$with_netsnmp;
7947 case ${withval} in
7948 n|no)
7949 USE_NETSNMP=no
7951 y|ye|yes)
7952 NETSNMP_MANDATORY="yes"
7955 NETSNMP_DIR="${withval}"
7956 NETSNMP_MANDATORY="yes"
7958 esac
7962 PBX_NETSNMP=0
7969 NEWT_DESCRIP="newt"
7970 NEWT_OPTION="newt"
7972 # Check whether --with-newt was given.
7973 if test "${with_newt+set}" = set; then
7974 withval=$with_newt;
7975 case ${withval} in
7976 n|no)
7977 USE_NEWT=no
7979 y|ye|yes)
7980 NEWT_MANDATORY="yes"
7983 NEWT_DIR="${withval}"
7984 NEWT_MANDATORY="yes"
7986 esac
7990 PBX_NEWT=0
7997 UNIXODBC_DESCRIP="unixODBC"
7998 UNIXODBC_OPTION="odbc"
8000 # Check whether --with-odbc was given.
8001 if test "${with_odbc+set}" = set; then
8002 withval=$with_odbc;
8003 case ${withval} in
8004 n|no)
8005 USE_UNIXODBC=no
8007 y|ye|yes)
8008 UNIXODBC_MANDATORY="yes"
8011 UNIXODBC_DIR="${withval}"
8012 UNIXODBC_MANDATORY="yes"
8014 esac
8018 PBX_UNIXODBC=0
8025 OGG_DESCRIP="OGG"
8026 OGG_OPTION="ogg"
8028 # Check whether --with-ogg was given.
8029 if test "${with_ogg+set}" = set; then
8030 withval=$with_ogg;
8031 case ${withval} in
8032 n|no)
8033 USE_OGG=no
8035 y|ye|yes)
8036 OGG_MANDATORY="yes"
8039 OGG_DIR="${withval}"
8040 OGG_MANDATORY="yes"
8042 esac
8046 PBX_OGG=0
8053 OSPTK_DESCRIP="OSP Toolkit"
8054 OSPTK_OPTION="osptk"
8056 # Check whether --with-osptk was given.
8057 if test "${with_osptk+set}" = set; then
8058 withval=$with_osptk;
8059 case ${withval} in
8060 n|no)
8061 USE_OSPTK=no
8063 y|ye|yes)
8064 OSPTK_MANDATORY="yes"
8067 OSPTK_DIR="${withval}"
8068 OSPTK_MANDATORY="yes"
8070 esac
8074 PBX_OSPTK=0
8081 OSS_DESCRIP="Open Sound System"
8082 OSS_OPTION="oss"
8084 # Check whether --with-oss was given.
8085 if test "${with_oss+set}" = set; then
8086 withval=$with_oss;
8087 case ${withval} in
8088 n|no)
8089 USE_OSS=no
8091 y|ye|yes)
8092 OSS_MANDATORY="yes"
8095 OSS_DIR="${withval}"
8096 OSS_MANDATORY="yes"
8098 esac
8102 PBX_OSS=0
8109 POPT_DESCRIP="popt"
8110 POPT_OPTION="popt"
8112 # Check whether --with-popt was given.
8113 if test "${with_popt+set}" = set; then
8114 withval=$with_popt;
8115 case ${withval} in
8116 n|no)
8117 USE_POPT=no
8119 y|ye|yes)
8120 POPT_MANDATORY="yes"
8123 POPT_DIR="${withval}"
8124 POPT_MANDATORY="yes"
8126 esac
8130 PBX_POPT=0
8137 PGSQL_DESCRIP="PostgreSQL"
8138 PGSQL_OPTION="postgres"
8140 # Check whether --with-postgres was given.
8141 if test "${with_postgres+set}" = set; then
8142 withval=$with_postgres;
8143 case ${withval} in
8144 n|no)
8145 USE_PGSQL=no
8147 y|ye|yes)
8148 PGSQL_MANDATORY="yes"
8151 PGSQL_DIR="${withval}"
8152 PGSQL_MANDATORY="yes"
8154 esac
8158 PBX_PGSQL=0
8165 PRI_DESCRIP="ISDN PRI"
8166 PRI_OPTION="pri"
8168 # Check whether --with-pri was given.
8169 if test "${with_pri+set}" = set; then
8170 withval=$with_pri;
8171 case ${withval} in
8172 n|no)
8173 USE_PRI=no
8175 y|ye|yes)
8176 PRI_MANDATORY="yes"
8179 PRI_DIR="${withval}"
8180 PRI_MANDATORY="yes"
8182 esac
8186 PBX_PRI=0
8193 PWLIB_DESCRIP="PWlib"
8194 PWLIB_OPTION="pwlib"
8196 # Check whether --with-pwlib was given.
8197 if test "${with_pwlib+set}" = set; then
8198 withval=$with_pwlib;
8199 case ${withval} in
8200 n|no)
8201 USE_PWLIB=no
8203 y|ye|yes)
8204 PWLIB_MANDATORY="yes"
8207 PWLIB_DIR="${withval}"
8208 PWLIB_MANDATORY="yes"
8210 esac
8214 PBX_PWLIB=0
8221 OPENH323_DESCRIP="OpenH323"
8222 OPENH323_OPTION="h323"
8224 # Check whether --with-h323 was given.
8225 if test "${with_h323+set}" = set; then
8226 withval=$with_h323;
8227 case ${withval} in
8228 n|no)
8229 USE_OPENH323=no
8231 y|ye|yes)
8232 OPENH323_MANDATORY="yes"
8235 OPENH323_DIR="${withval}"
8236 OPENH323_MANDATORY="yes"
8238 esac
8242 PBX_OPENH323=0
8249 QT_DESCRIP="Qt"
8250 QT_OPTION="qt"
8252 # Check whether --with-qt was given.
8253 if test "${with_qt+set}" = set; then
8254 withval=$with_qt;
8255 case ${withval} in
8256 n|no)
8257 USE_QT=no
8259 y|ye|yes)
8260 QT_MANDATORY="yes"
8263 QT_DIR="${withval}"
8264 QT_MANDATORY="yes"
8266 esac
8270 PBX_QT=0
8277 RADIUS_DESCRIP="Radius Client"
8278 RADIUS_OPTION="radius"
8280 # Check whether --with-radius was given.
8281 if test "${with_radius+set}" = set; then
8282 withval=$with_radius;
8283 case ${withval} in
8284 n|no)
8285 USE_RADIUS=no
8287 y|ye|yes)
8288 RADIUS_MANDATORY="yes"
8291 RADIUS_DIR="${withval}"
8292 RADIUS_MANDATORY="yes"
8294 esac
8298 PBX_RADIUS=0
8305 SPEEX_DESCRIP="Speex"
8306 SPEEX_OPTION="speex"
8308 # Check whether --with-speex was given.
8309 if test "${with_speex+set}" = set; then
8310 withval=$with_speex;
8311 case ${withval} in
8312 n|no)
8313 USE_SPEEX=no
8315 y|ye|yes)
8316 SPEEX_MANDATORY="yes"
8319 SPEEX_DIR="${withval}"
8320 SPEEX_MANDATORY="yes"
8322 esac
8326 PBX_SPEEX=0
8333 SQLITE_DESCRIP="SQLite"
8334 SQLITE_OPTION="sqlite"
8336 # Check whether --with-sqlite was given.
8337 if test "${with_sqlite+set}" = set; then
8338 withval=$with_sqlite;
8339 case ${withval} in
8340 n|no)
8341 USE_SQLITE=no
8343 y|ye|yes)
8344 SQLITE_MANDATORY="yes"
8347 SQLITE_DIR="${withval}"
8348 SQLITE_MANDATORY="yes"
8350 esac
8354 PBX_SQLITE=0
8361 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8362 SUPPSERV_OPTION="suppserv"
8364 # Check whether --with-suppserv was given.
8365 if test "${with_suppserv+set}" = set; then
8366 withval=$with_suppserv;
8367 case ${withval} in
8368 n|no)
8369 USE_SUPPSERV=no
8371 y|ye|yes)
8372 SUPPSERV_MANDATORY="yes"
8375 SUPPSERV_DIR="${withval}"
8376 SUPPSERV_MANDATORY="yes"
8378 esac
8382 PBX_SUPPSERV=0
8389 OPENSSL_DESCRIP="OpenSSL"
8390 OPENSSL_OPTION="ssl"
8392 # Check whether --with-ssl was given.
8393 if test "${with_ssl+set}" = set; then
8394 withval=$with_ssl;
8395 case ${withval} in
8396 n|no)
8397 USE_OPENSSL=no
8399 y|ye|yes)
8400 OPENSSL_MANDATORY="yes"
8403 OPENSSL_DIR="${withval}"
8404 OPENSSL_MANDATORY="yes"
8406 esac
8410 PBX_OPENSSL=0
8417 FREETDS_DESCRIP="FreeTDS"
8418 FREETDS_OPTION="tds"
8420 # Check whether --with-tds was given.
8421 if test "${with_tds+set}" = set; then
8422 withval=$with_tds;
8423 case ${withval} in
8424 n|no)
8425 USE_FREETDS=no
8427 y|ye|yes)
8428 FREETDS_MANDATORY="yes"
8431 FREETDS_DIR="${withval}"
8432 FREETDS_MANDATORY="yes"
8434 esac
8438 PBX_FREETDS=0
8445 TERMCAP_DESCRIP="Termcap"
8446 TERMCAP_OPTION="termcap"
8448 # Check whether --with-termcap was given.
8449 if test "${with_termcap+set}" = set; then
8450 withval=$with_termcap;
8451 case ${withval} in
8452 n|no)
8453 USE_TERMCAP=no
8455 y|ye|yes)
8456 TERMCAP_MANDATORY="yes"
8459 TERMCAP_DIR="${withval}"
8460 TERMCAP_MANDATORY="yes"
8462 esac
8466 PBX_TERMCAP=0
8473 TINFO_DESCRIP="Term Info"
8474 TINFO_OPTION="tinfo"
8476 # Check whether --with-tinfo was given.
8477 if test "${with_tinfo+set}" = set; then
8478 withval=$with_tinfo;
8479 case ${withval} in
8480 n|no)
8481 USE_TINFO=no
8483 y|ye|yes)
8484 TINFO_MANDATORY="yes"
8487 TINFO_DIR="${withval}"
8488 TINFO_MANDATORY="yes"
8490 esac
8494 PBX_TINFO=0
8501 TONEZONE_DESCRIP="tonezone"
8502 TONEZONE_OPTION="tonezone"
8504 # Check whether --with-tonezone was given.
8505 if test "${with_tonezone+set}" = set; then
8506 withval=$with_tonezone;
8507 case ${withval} in
8508 n|no)
8509 USE_TONEZONE=no
8511 y|ye|yes)
8512 TONEZONE_MANDATORY="yes"
8515 TONEZONE_DIR="${withval}"
8516 TONEZONE_MANDATORY="yes"
8518 esac
8522 PBX_TONEZONE=0
8529 VORBIS_DESCRIP="Vorbis"
8530 VORBIS_OPTION="vorbis"
8532 # Check whether --with-vorbis was given.
8533 if test "${with_vorbis+set}" = set; then
8534 withval=$with_vorbis;
8535 case ${withval} in
8536 n|no)
8537 USE_VORBIS=no
8539 y|ye|yes)
8540 VORBIS_MANDATORY="yes"
8543 VORBIS_DIR="${withval}"
8544 VORBIS_MANDATORY="yes"
8546 esac
8550 PBX_VORBIS=0
8557 VPB_DESCRIP="Voicetronix API"
8558 VPB_OPTION="vpb"
8560 # Check whether --with-vpb was given.
8561 if test "${with_vpb+set}" = set; then
8562 withval=$with_vpb;
8563 case ${withval} in
8564 n|no)
8565 USE_VPB=no
8567 y|ye|yes)
8568 VPB_MANDATORY="yes"
8571 VPB_DIR="${withval}"
8572 VPB_MANDATORY="yes"
8574 esac
8578 PBX_VPB=0
8585 ZLIB_DESCRIP="zlib"
8586 ZLIB_OPTION="z"
8588 # Check whether --with-z was given.
8589 if test "${with_z+set}" = set; then
8590 withval=$with_z;
8591 case ${withval} in
8592 n|no)
8593 USE_ZLIB=no
8595 y|ye|yes)
8596 ZLIB_MANDATORY="yes"
8599 ZLIB_DIR="${withval}"
8600 ZLIB_MANDATORY="yes"
8602 esac
8606 PBX_ZLIB=0
8613 ZAPTEL_DESCRIP="Zaptel"
8614 ZAPTEL_OPTION="zaptel"
8616 # Check whether --with-zaptel was given.
8617 if test "${with_zaptel+set}" = set; then
8618 withval=$with_zaptel;
8619 case ${withval} in
8620 n|no)
8621 USE_ZAPTEL=no
8623 y|ye|yes)
8624 ZAPTEL_MANDATORY="yes"
8627 ZAPTEL_DIR="${withval}"
8628 ZAPTEL_MANDATORY="yes"
8630 esac
8634 PBX_ZAPTEL=0
8641 # check for basic system features and functionality before
8642 # checking for package libraries
8644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8645 # for constant arguments. Useless!
8646 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8647 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8648 if test "${ac_cv_working_alloca_h+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 #include <alloca.h>
8659 main ()
8661 char *p = (char *) alloca (2 * sizeof (int));
8662 if (p) return 0;
8664 return 0;
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (ac_try="$ac_link"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_link") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest$ac_exeext &&
8684 $as_test_x conftest$ac_exeext; then
8685 ac_cv_working_alloca_h=yes
8686 else
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 ac_cv_working_alloca_h=no
8693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8694 conftest$ac_exeext conftest.$ac_ext
8696 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8697 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8698 if test $ac_cv_working_alloca_h = yes; then
8700 cat >>confdefs.h <<\_ACEOF
8701 #define HAVE_ALLOCA_H 1
8702 _ACEOF
8706 { echo "$as_me:$LINENO: checking for alloca" >&5
8707 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8708 if test "${ac_cv_func_alloca_works+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 #ifdef __GNUC__
8718 # define alloca __builtin_alloca
8719 #else
8720 # ifdef _MSC_VER
8721 # include <malloc.h>
8722 # define alloca _alloca
8723 # else
8724 # ifdef HAVE_ALLOCA_H
8725 # include <alloca.h>
8726 # else
8727 # ifdef _AIX
8728 #pragma alloca
8729 # else
8730 # ifndef alloca /* predefined by HP cc +Olibcalls */
8731 char *alloca ();
8732 # endif
8733 # endif
8734 # endif
8735 # endif
8736 #endif
8739 main ()
8741 char *p = (char *) alloca (1);
8742 if (p) return 0;
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (ac_try="$ac_link"
8749 case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_link") 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest$ac_exeext &&
8764 $as_test_x conftest$ac_exeext; then
8765 ac_cv_func_alloca_works=yes
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_cv_func_alloca_works=no
8773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8774 conftest$ac_exeext conftest.$ac_ext
8776 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8777 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8779 if test $ac_cv_func_alloca_works = yes; then
8781 cat >>confdefs.h <<\_ACEOF
8782 #define HAVE_ALLOCA 1
8783 _ACEOF
8785 else
8786 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8787 # that cause trouble. Some versions do not even contain alloca or
8788 # contain a buggy version. If you still want to use their alloca,
8789 # use ar to extract alloca.o from them instead of compiling alloca.c.
8791 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8793 cat >>confdefs.h <<\_ACEOF
8794 #define C_ALLOCA 1
8795 _ACEOF
8798 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8799 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8800 if test "${ac_cv_os_cray+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 #if defined CRAY && ! defined CRAY2
8810 webecray
8811 #else
8812 wenotbecray
8813 #endif
8815 _ACEOF
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 $EGREP "webecray" >/dev/null 2>&1; then
8818 ac_cv_os_cray=yes
8819 else
8820 ac_cv_os_cray=no
8822 rm -f conftest*
8825 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8826 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8827 if test $ac_cv_os_cray = yes; then
8828 for ac_func in _getb67 GETB67 getb67; do
8829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h. */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8843 #define $ac_func innocuous_$ac_func
8845 /* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char $ac_func (); below.
8847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8848 <limits.h> exists even on freestanding compilers. */
8850 #ifdef __STDC__
8851 # include <limits.h>
8852 #else
8853 # include <assert.h>
8854 #endif
8856 #undef $ac_func
8858 /* Override any GCC internal prototype to avoid an error.
8859 Use char because int might match the return type of a GCC
8860 builtin and then its argument prototype would still apply. */
8861 #ifdef __cplusplus
8862 extern "C"
8863 #endif
8864 char $ac_func ();
8865 /* The GNU C library defines this for functions which it implements
8866 to always fail with ENOSYS. Some functions are actually named
8867 something starting with __ and the normal name is an alias. */
8868 #if defined __stub_$ac_func || defined __stub___$ac_func
8869 choke me
8870 #endif
8873 main ()
8875 return $ac_func ();
8877 return 0;
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (ac_try="$ac_link"
8882 case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885 esac
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_link") 2>conftest.er1
8888 ac_status=$?
8889 grep -v '^ *+' conftest.er1 >conftest.err
8890 rm -f conftest.er1
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } && {
8894 test -z "$ac_c_werror_flag" ||
8895 test ! -s conftest.err
8896 } && test -s conftest$ac_exeext &&
8897 $as_test_x conftest$ac_exeext; then
8898 eval "$as_ac_var=yes"
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 eval "$as_ac_var=no"
8906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8907 conftest$ac_exeext conftest.$ac_ext
8909 ac_res=`eval echo '${'$as_ac_var'}'`
8910 { echo "$as_me:$LINENO: result: $ac_res" >&5
8911 echo "${ECHO_T}$ac_res" >&6; }
8912 if test `eval echo '${'$as_ac_var'}'` = yes; then
8914 cat >>confdefs.h <<_ACEOF
8915 #define CRAY_STACKSEG_END $ac_func
8916 _ACEOF
8918 break
8921 done
8924 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8925 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8926 if test "${ac_cv_c_stack_direction+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 if test "$cross_compiling" = yes; then
8930 ac_cv_c_stack_direction=0
8931 else
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8940 find_stack_direction ()
8942 static char *addr = 0;
8943 auto char dummy;
8944 if (addr == 0)
8946 addr = &dummy;
8947 return find_stack_direction ();
8949 else
8950 return (&dummy > addr) ? 1 : -1;
8954 main ()
8956 return find_stack_direction () < 0;
8958 _ACEOF
8959 rm -f conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8961 case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_cv_c_stack_direction=1
8980 else
8981 echo "$as_me: program exited with status $ac_status" >&5
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ( exit $ac_status )
8986 ac_cv_c_stack_direction=-1
8988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8993 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8994 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8996 cat >>confdefs.h <<_ACEOF
8997 #define STACK_DIRECTION $ac_cv_c_stack_direction
8998 _ACEOF
9008 ac_header_dirent=no
9009 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9010 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9011 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9012 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 #include <$ac_hdr>
9026 main ()
9028 if ((DIR *) 0)
9029 return 0;
9031 return 0;
9033 _ACEOF
9034 rm -f conftest.$ac_objext
9035 if { (ac_try="$ac_compile"
9036 case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_compile") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest.$ac_objext; then
9051 eval "$as_ac_Header=yes"
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 eval "$as_ac_Header=no"
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 ac_res=`eval echo '${'$as_ac_Header'}'`
9062 { echo "$as_me:$LINENO: result: $ac_res" >&5
9063 echo "${ECHO_T}$ac_res" >&6; }
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9067 _ACEOF
9069 ac_header_dirent=$ac_hdr; break
9072 done
9073 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9074 if test $ac_header_dirent = dirent.h; then
9075 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9077 if test "${ac_cv_search_opendir+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_func_search_save_LIBS=$LIBS
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 /* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 char opendir ();
9096 main ()
9098 return opendir ();
9100 return 0;
9102 _ACEOF
9103 for ac_lib in '' dir; do
9104 if test -z "$ac_lib"; then
9105 ac_res="none required"
9106 else
9107 ac_res=-l$ac_lib
9108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9112 case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_link") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest$ac_exeext &&
9127 $as_test_x conftest$ac_exeext; then
9128 ac_cv_search_opendir=$ac_res
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9137 conftest$ac_exeext
9138 if test "${ac_cv_search_opendir+set}" = set; then
9139 break
9141 done
9142 if test "${ac_cv_search_opendir+set}" = set; then
9144 else
9145 ac_cv_search_opendir=no
9147 rm conftest.$ac_ext
9148 LIBS=$ac_func_search_save_LIBS
9150 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9151 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9152 ac_res=$ac_cv_search_opendir
9153 if test "$ac_res" != no; then
9154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9158 else
9159 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9160 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9161 if test "${ac_cv_search_opendir+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 ac_func_search_save_LIBS=$LIBS
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9172 /* Override any GCC internal prototype to avoid an error.
9173 Use char because int might match the return type of a GCC
9174 builtin and then its argument prototype would still apply. */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 char opendir ();
9180 main ()
9182 return opendir ();
9184 return 0;
9186 _ACEOF
9187 for ac_lib in '' x; do
9188 if test -z "$ac_lib"; then
9189 ac_res="none required"
9190 else
9191 ac_res=-l$ac_lib
9192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_link") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest$ac_exeext &&
9211 $as_test_x conftest$ac_exeext; then
9212 ac_cv_search_opendir=$ac_res
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221 conftest$ac_exeext
9222 if test "${ac_cv_search_opendir+set}" = set; then
9223 break
9225 done
9226 if test "${ac_cv_search_opendir+set}" = set; then
9228 else
9229 ac_cv_search_opendir=no
9231 rm conftest.$ac_ext
9232 LIBS=$ac_func_search_save_LIBS
9234 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9235 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9236 ac_res=$ac_cv_search_opendir
9237 if test "$ac_res" != no; then
9238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9244 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9246 if test "${ac_cv_header_stdc+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h. */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9255 #include <stdlib.h>
9256 #include <stdarg.h>
9257 #include <string.h>
9258 #include <float.h>
9261 main ()
9265 return 0;
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9285 ac_cv_header_stdc=yes
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_cv_header_stdc=no
9293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 if test $ac_cv_header_stdc = yes; then
9296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303 #include <string.h>
9305 _ACEOF
9306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9307 $EGREP "memchr" >/dev/null 2>&1; then
9309 else
9310 ac_cv_header_stdc=no
9312 rm -f conftest*
9316 if test $ac_cv_header_stdc = yes; then
9317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 #include <stdlib.h>
9326 _ACEOF
9327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9328 $EGREP "free" >/dev/null 2>&1; then
9330 else
9331 ac_cv_header_stdc=no
9333 rm -f conftest*
9337 if test $ac_cv_header_stdc = yes; then
9338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9339 if test "$cross_compiling" = yes; then
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <ctype.h>
9349 #include <stdlib.h>
9350 #if ((' ' & 0x0FF) == 0x020)
9351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9353 #else
9354 # define ISLOWER(c) \
9355 (('a' <= (c) && (c) <= 'i') \
9356 || ('j' <= (c) && (c) <= 'r') \
9357 || ('s' <= (c) && (c) <= 'z'))
9358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9359 #endif
9361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9363 main ()
9365 int i;
9366 for (i = 0; i < 256; i++)
9367 if (XOR (islower (i), ISLOWER (i))
9368 || toupper (i) != TOUPPER (i))
9369 return 2;
9370 return 0;
9372 _ACEOF
9373 rm -f conftest$ac_exeext
9374 if { (ac_try="$ac_link"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_link") 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9384 { (case "(($ac_try" in
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9387 esac
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_try") 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9394 else
9395 echo "$as_me: program exited with status $ac_status" >&5
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ( exit $ac_status )
9400 ac_cv_header_stdc=no
9402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9410 if test $ac_cv_header_stdc = yes; then
9412 cat >>confdefs.h <<\_ACEOF
9413 #define STDC_HEADERS 1
9414 _ACEOF
9418 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9419 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9420 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 #include <sys/types.h>
9430 #include <sys/wait.h>
9431 #ifndef WEXITSTATUS
9432 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9433 #endif
9434 #ifndef WIFEXITED
9435 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9436 #endif
9439 main ()
9441 int s;
9442 wait (&s);
9443 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9445 return 0;
9447 _ACEOF
9448 rm -f conftest.$ac_objext
9449 if { (ac_try="$ac_compile"
9450 case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_compile") 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest.$ac_objext; then
9465 ac_cv_header_sys_wait_h=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_cv_header_sys_wait_h=no
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9476 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9477 if test $ac_cv_header_sys_wait_h = yes; then
9479 cat >>confdefs.h <<\_ACEOF
9480 #define HAVE_SYS_WAIT_H 1
9481 _ACEOF
9508 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
9510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_res=`eval echo '${'$as_ac_Header'}'`
9518 { echo "$as_me:$LINENO: result: $ac_res" >&5
9519 echo "${ECHO_T}$ac_res" >&6; }
9520 else
9521 # Is the header compilable?
9522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 #include <$ac_header>
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (ac_try="$ac_compile"
9535 case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 ac_header_compiler=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_header_compiler=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 echo "${ECHO_T}$ac_header_compiler" >&6; }
9562 # Is the header present?
9563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h. */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 #include <$ac_header>
9572 _ACEOF
9573 if { (ac_try="$ac_cpp conftest.$ac_ext"
9574 case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } >/dev/null && {
9586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 }; then
9589 ac_header_preproc=yes
9590 else
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 ac_header_preproc=no
9597 rm -f conftest.err conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9599 echo "${ECHO_T}$ac_header_preproc" >&6; }
9601 # So? What about this header?
9602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9603 yes:no: )
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9608 ac_header_preproc=yes
9610 no:yes:* )
9611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9625 esac
9626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 eval "$as_ac_Header=\$ac_header_preproc"
9633 ac_res=`eval echo '${'$as_ac_Header'}'`
9634 { echo "$as_me:$LINENO: result: $ac_res" >&5
9635 echo "${ECHO_T}$ac_res" >&6; }
9638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9639 cat >>confdefs.h <<_ACEOF
9640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9641 _ACEOF
9645 done
9648 # Check whether --enable-largefile was given.
9649 if test "${enable_largefile+set}" = set; then
9650 enableval=$enable_largefile;
9653 if test "$enable_largefile" != no; then
9655 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9656 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9657 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 ac_cv_sys_largefile_CC=no
9661 if test "$GCC" != yes; then
9662 ac_save_CC=$CC
9663 while :; do
9664 # IRIX 6.2 and later do not support large files by default,
9665 # so use the C compiler's -n32 option if that helps.
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 #include <sys/types.h>
9673 /* Check that off_t can represent 2**63 - 1 correctly.
9674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9675 since some C++ compilers masquerading as C compilers
9676 incorrectly reject 9223372036854775807. */
9677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9679 && LARGE_OFF_T % 2147483647 == 1)
9680 ? 1 : -1];
9682 main ()
9686 return 0;
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } && {
9703 test -z "$ac_c_werror_flag" ||
9704 test ! -s conftest.err
9705 } && test -s conftest.$ac_objext; then
9706 break
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9714 rm -f core conftest.err conftest.$ac_objext
9715 CC="$CC -n32"
9716 rm -f conftest.$ac_objext
9717 if { (ac_try="$ac_compile"
9718 case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_cv_sys_largefile_CC=' -n32'; break
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9741 rm -f core conftest.err conftest.$ac_objext
9742 break
9743 done
9744 CC=$ac_save_CC
9745 rm -f conftest.$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9749 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9750 if test "$ac_cv_sys_largefile_CC" != no; then
9751 CC=$CC$ac_cv_sys_largefile_CC
9754 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9755 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9756 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759 while :; do
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 #include <sys/types.h>
9767 /* Check that off_t can represent 2**63 - 1 correctly.
9768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9769 since some C++ compilers masquerading as C compilers
9770 incorrectly reject 9223372036854775807. */
9771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9773 && LARGE_OFF_T % 2147483647 == 1)
9774 ? 1 : -1];
9776 main ()
9780 return 0;
9782 _ACEOF
9783 rm -f conftest.$ac_objext
9784 if { (ac_try="$ac_compile"
9785 case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_compile") 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest.$ac_objext; then
9800 ac_cv_sys_file_offset_bits=no; break
9801 else
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #define _FILE_OFFSET_BITS 64
9816 #include <sys/types.h>
9817 /* Check that off_t can represent 2**63 - 1 correctly.
9818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9819 since some C++ compilers masquerading as C compilers
9820 incorrectly reject 9223372036854775807. */
9821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9823 && LARGE_OFF_T % 2147483647 == 1)
9824 ? 1 : -1];
9826 main ()
9830 return 0;
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (ac_try="$ac_compile"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_compile") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest.$ac_objext; then
9850 ac_cv_sys_file_offset_bits=64; break
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 ac_cv_sys_file_offset_bits=unknown
9860 break
9861 done
9863 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9864 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9865 case $ac_cv_sys_file_offset_bits in #(
9866 no | unknown) ;;
9868 cat >>confdefs.h <<_ACEOF
9869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9870 _ACEOF
9872 esac
9873 rm -f conftest*
9874 if test $ac_cv_sys_file_offset_bits = unknown; then
9875 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9876 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9877 if test "${ac_cv_sys_large_files+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 while :; do
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 #include <sys/types.h>
9888 /* Check that off_t can represent 2**63 - 1 correctly.
9889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9890 since some C++ compilers masquerading as C compilers
9891 incorrectly reject 9223372036854775807. */
9892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9894 && LARGE_OFF_T % 2147483647 == 1)
9895 ? 1 : -1];
9897 main ()
9901 return 0;
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (ac_try="$ac_compile"
9906 case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_compile") 2>conftest.er1
9912 ac_status=$?
9913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && {
9918 test -z "$ac_c_werror_flag" ||
9919 test ! -s conftest.err
9920 } && test -s conftest.$ac_objext; then
9921 ac_cv_sys_large_files=no; break
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 #define _LARGE_FILES 1
9937 #include <sys/types.h>
9938 /* Check that off_t can represent 2**63 - 1 correctly.
9939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9940 since some C++ compilers masquerading as C compilers
9941 incorrectly reject 9223372036854775807. */
9942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9944 && LARGE_OFF_T % 2147483647 == 1)
9945 ? 1 : -1];
9947 main ()
9951 return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext
9955 if { (ac_try="$ac_compile"
9956 case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_compile") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest.$ac_objext; then
9971 ac_cv_sys_large_files=1; break
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 ac_cv_sys_large_files=unknown
9981 break
9982 done
9984 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9985 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9986 case $ac_cv_sys_large_files in #(
9987 no | unknown) ;;
9989 cat >>confdefs.h <<_ACEOF
9990 #define _LARGE_FILES $ac_cv_sys_large_files
9991 _ACEOF
9993 esac
9994 rm -f conftest*
9999 # Checks for typedefs, structures, and compiler characteristics.
10000 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10001 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10002 if test "${ac_cv_header_stdbool_h+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 #include <stdbool.h>
10013 #ifndef bool
10014 "error: bool is not defined"
10015 #endif
10016 #ifndef false
10017 "error: false is not defined"
10018 #endif
10019 #if false
10020 "error: false is not 0"
10021 #endif
10022 #ifndef true
10023 "error: true is not defined"
10024 #endif
10025 #if true != 1
10026 "error: true is not 1"
10027 #endif
10028 #ifndef __bool_true_false_are_defined
10029 "error: __bool_true_false_are_defined is not defined"
10030 #endif
10032 struct s { _Bool s: 1; _Bool t; } s;
10034 char a[true == 1 ? 1 : -1];
10035 char b[false == 0 ? 1 : -1];
10036 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10037 char d[(bool) 0.5 == true ? 1 : -1];
10038 bool e = &s;
10039 char f[(_Bool) 0.0 == false ? 1 : -1];
10040 char g[true];
10041 char h[sizeof (_Bool)];
10042 char i[sizeof s.t];
10043 enum { j = false, k = true, l = false * true, m = true * 256 };
10044 _Bool n[m];
10045 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10046 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10047 # if defined __xlc__ || defined __GNUC__
10048 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10049 reported by James Lemley on 2005-10-05; see
10050 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10051 This test is not quite right, since xlc is allowed to
10052 reject this program, as the initializer for xlcbug is
10053 not one of the forms that C requires support for.
10054 However, doing the test right would require a runtime
10055 test, and that would make cross-compilation harder.
10056 Let us hope that IBM fixes the xlc bug, and also adds
10057 support for this kind of constant expression. In the
10058 meantime, this test will reject xlc, which is OK, since
10059 our stdbool.h substitute should suffice. We also test
10060 this with GCC, where it should work, to detect more
10061 quickly whether someone messes up the test in the
10062 future. */
10063 char digs[] = "0123456789";
10064 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10065 # endif
10066 /* Catch a bug in an HP-UX C compiler. See
10067 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10068 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10070 _Bool q = true;
10071 _Bool *pq = &q;
10074 main ()
10077 *pq |= q;
10078 *pq |= ! q;
10079 /* Refer to every declared value, to avoid compiler optimizations. */
10080 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10081 + !m + !n + !o + !p + !q + !pq);
10084 return 0;
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_compile") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest.$ac_objext; then
10104 ac_cv_header_stdbool_h=yes
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_cv_header_stdbool_h=no
10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10115 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10116 { echo "$as_me:$LINENO: checking for _Bool" >&5
10117 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10118 if test "${ac_cv_type__Bool+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10128 typedef _Bool ac__type_new_;
10130 main ()
10132 if ((ac__type_new_ *) 0)
10133 return 0;
10134 if (sizeof (ac__type_new_))
10135 return 0;
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 ac_cv_type__Bool=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_type__Bool=no
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10168 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10169 if test $ac_cv_type__Bool = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define HAVE__BOOL 1
10173 _ACEOF
10178 if test $ac_cv_header_stdbool_h = yes; then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define HAVE_STDBOOL_H 1
10182 _ACEOF
10186 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10187 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10188 if test "${ac_cv_c_const+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10199 main ()
10201 /* FIXME: Include the comments suggested by Paul. */
10202 #ifndef __cplusplus
10203 /* Ultrix mips cc rejects this. */
10204 typedef int charset[2];
10205 const charset cs;
10206 /* SunOS 4.1.1 cc rejects this. */
10207 char const *const *pcpcc;
10208 char **ppc;
10209 /* NEC SVR4.0.2 mips cc rejects this. */
10210 struct point {int x, y;};
10211 static struct point const zero = {0,0};
10212 /* AIX XL C 1.02.0.0 rejects this.
10213 It does not let you subtract one const X* pointer from another in
10214 an arm of an if-expression whose if-part is not a constant
10215 expression */
10216 const char *g = "string";
10217 pcpcc = &g + (g ? g-g : 0);
10218 /* HPUX 7.0 cc rejects these. */
10219 ++pcpcc;
10220 ppc = (char**) pcpcc;
10221 pcpcc = (char const *const *) ppc;
10222 { /* SCO 3.2v4 cc rejects this. */
10223 char *t;
10224 char const *s = 0 ? (char *) 0 : (char const *) 0;
10226 *t++ = 0;
10227 if (s) return 0;
10229 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10230 int x[] = {25, 17};
10231 const int *foo = &x[0];
10232 ++foo;
10234 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10235 typedef const int *iptr;
10236 iptr p = 0;
10237 ++p;
10239 { /* AIX XL C 1.02.0.0 rejects this saying
10240 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10241 struct s { int j; const int *ap[3]; };
10242 struct s *b; b->j = 5;
10244 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10245 const int foo = 10;
10246 if (!foo) return 0;
10248 return !cs[0] && !zero.x;
10249 #endif
10252 return 0;
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (ac_try="$ac_compile"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_compile") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest.$ac_objext; then
10272 ac_cv_c_const=yes
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_c_const=no
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10283 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10284 if test $ac_cv_c_const = no; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define const
10288 _ACEOF
10292 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10293 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10294 if test "${ac_cv_type_uid_t+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 #include <sys/types.h>
10305 _ACEOF
10306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10307 $EGREP "uid_t" >/dev/null 2>&1; then
10308 ac_cv_type_uid_t=yes
10309 else
10310 ac_cv_type_uid_t=no
10312 rm -f conftest*
10315 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10316 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10317 if test $ac_cv_type_uid_t = no; then
10319 cat >>confdefs.h <<\_ACEOF
10320 #define uid_t int
10321 _ACEOF
10324 cat >>confdefs.h <<\_ACEOF
10325 #define gid_t int
10326 _ACEOF
10330 { echo "$as_me:$LINENO: checking for inline" >&5
10331 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10332 if test "${ac_cv_c_inline+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 ac_cv_c_inline=no
10336 for ac_kw in inline __inline__ __inline; do
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 #ifndef __cplusplus
10344 typedef int foo_t;
10345 static $ac_kw foo_t static_foo () {return 0; }
10346 $ac_kw foo_t foo () {return 0; }
10347 #endif
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (ac_try="$ac_compile"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest.$ac_objext; then
10367 ac_cv_c_inline=$ac_kw
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 test "$ac_cv_c_inline" != no && break
10377 done
10380 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10381 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10384 case $ac_cv_c_inline in
10385 inline | yes) ;;
10387 case $ac_cv_c_inline in
10388 no) ac_val=;;
10389 *) ac_val=$ac_cv_c_inline;;
10390 esac
10391 cat >>confdefs.h <<_ACEOF
10392 #ifndef __cplusplus
10393 #define inline $ac_val
10394 #endif
10395 _ACEOF
10397 esac
10399 { echo "$as_me:$LINENO: checking for mode_t" >&5
10400 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10401 if test "${ac_cv_type_mode_t+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10411 typedef mode_t ac__type_new_;
10413 main ()
10415 if ((ac__type_new_ *) 0)
10416 return 0;
10417 if (sizeof (ac__type_new_))
10418 return 0;
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (ac_try="$ac_compile"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_compile") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest.$ac_objext; then
10440 ac_cv_type_mode_t=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_cv_type_mode_t=no
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10451 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10452 if test $ac_cv_type_mode_t = yes; then
10454 else
10456 cat >>confdefs.h <<_ACEOF
10457 #define mode_t int
10458 _ACEOF
10462 { echo "$as_me:$LINENO: checking for off_t" >&5
10463 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10464 if test "${ac_cv_type_off_t+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h. */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 $ac_includes_default
10474 typedef off_t ac__type_new_;
10476 main ()
10478 if ((ac__type_new_ *) 0)
10479 return 0;
10480 if (sizeof (ac__type_new_))
10481 return 0;
10483 return 0;
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_compile") 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && {
10500 test -z "$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 } && test -s conftest.$ac_objext; then
10503 ac_cv_type_off_t=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_type_off_t=no
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10514 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10515 if test $ac_cv_type_off_t = yes; then
10517 else
10519 cat >>confdefs.h <<_ACEOF
10520 #define off_t long int
10521 _ACEOF
10525 { echo "$as_me:$LINENO: checking for pid_t" >&5
10526 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10527 if test "${ac_cv_type_pid_t+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10537 typedef pid_t ac__type_new_;
10539 main ()
10541 if ((ac__type_new_ *) 0)
10542 return 0;
10543 if (sizeof (ac__type_new_))
10544 return 0;
10546 return 0;
10548 _ACEOF
10549 rm -f conftest.$ac_objext
10550 if { (ac_try="$ac_compile"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_compile") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest.$ac_objext; then
10566 ac_cv_type_pid_t=yes
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_cv_type_pid_t=no
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10578 if test $ac_cv_type_pid_t = yes; then
10580 else
10582 cat >>confdefs.h <<_ACEOF
10583 #define pid_t int
10584 _ACEOF
10588 { echo "$as_me:$LINENO: checking for size_t" >&5
10589 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10590 if test "${ac_cv_type_size_t+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 $ac_includes_default
10600 typedef size_t ac__type_new_;
10602 main ()
10604 if ((ac__type_new_ *) 0)
10605 return 0;
10606 if (sizeof (ac__type_new_))
10607 return 0;
10609 return 0;
10611 _ACEOF
10612 rm -f conftest.$ac_objext
10613 if { (ac_try="$ac_compile"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617 esac
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_compile") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest.$ac_objext; then
10629 ac_cv_type_size_t=yes
10630 else
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_cv_type_size_t=no
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10640 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10641 if test $ac_cv_type_size_t = yes; then
10643 else
10645 cat >>confdefs.h <<_ACEOF
10646 #define size_t unsigned int
10647 _ACEOF
10651 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10652 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10653 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 $ac_includes_default
10664 main ()
10666 static struct stat ac_aggr;
10667 if (ac_aggr.st_blksize)
10668 return 0;
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext
10674 if { (ac_try="$ac_compile"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_compile") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest.$ac_objext; then
10690 ac_cv_member_struct_stat_st_blksize=yes
10691 else
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 $ac_includes_default
10703 main ()
10705 static struct stat ac_aggr;
10706 if (sizeof ac_aggr.st_blksize)
10707 return 0;
10709 return 0;
10711 _ACEOF
10712 rm -f conftest.$ac_objext
10713 if { (ac_try="$ac_compile"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_compile") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest.$ac_objext; then
10729 ac_cv_member_struct_stat_st_blksize=yes
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_member_struct_stat_st_blksize=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10743 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10744 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10748 _ACEOF
10753 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10754 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10755 if test "${ac_cv_header_time+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <sys/types.h>
10765 #include <sys/time.h>
10766 #include <time.h>
10769 main ()
10771 if ((struct tm *) 0)
10772 return 0;
10774 return 0;
10776 _ACEOF
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest.$ac_objext; then
10794 ac_cv_header_time=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_header_time=no
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10805 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10806 if test $ac_cv_header_time = yes; then
10808 cat >>confdefs.h <<\_ACEOF
10809 #define TIME_WITH_SYS_TIME 1
10810 _ACEOF
10814 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10815 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10816 if test "${ac_cv_struct_tm+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <sys/types.h>
10826 #include <time.h>
10829 main ()
10831 struct tm tm;
10832 int *p = &tm.tm_sec;
10833 return !p;
10835 return 0;
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (ac_try="$ac_compile"
10840 case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_compile") 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest.$ac_objext; then
10855 ac_cv_struct_tm=time.h
10856 else
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 ac_cv_struct_tm=sys/time.h
10863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10866 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10867 if test $ac_cv_struct_tm = sys/time.h; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define TM_IN_SYS_TIME 1
10871 _ACEOF
10875 { echo "$as_me:$LINENO: checking for working volatile" >&5
10876 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10877 if test "${ac_cv_c_volatile+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10888 main ()
10891 volatile int x;
10892 int * volatile y = (int *) 0;
10893 return !x && !y;
10895 return 0;
10897 _ACEOF
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_compile") 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest.$ac_objext; then
10915 ac_cv_c_volatile=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_c_volatile=no
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10926 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10927 if test $ac_cv_c_volatile = no; then
10929 cat >>confdefs.h <<\_ACEOF
10930 #define volatile
10931 _ACEOF
10935 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10936 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10937 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h. */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 $ac_includes_default
10947 typedef ptrdiff_t ac__type_new_;
10949 main ()
10951 if ((ac__type_new_ *) 0)
10952 return 0;
10953 if (sizeof (ac__type_new_))
10954 return 0;
10956 return 0;
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10976 ac_cv_type_ptrdiff_t=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_type_ptrdiff_t=no
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10987 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10988 if test $ac_cv_type_ptrdiff_t = yes; then
10990 cat >>confdefs.h <<_ACEOF
10991 #define HAVE_PTRDIFF_T 1
10992 _ACEOF
10998 # Checks for library functions.
11000 for ac_header in unistd.h
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 else
11013 # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 $ac_includes_default
11023 #include <$ac_header>
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest.$ac_objext; then
11042 ac_header_compiler=yes
11043 else
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_header_compiler=no
11050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11052 echo "${ECHO_T}$ac_header_compiler" >&6; }
11054 # Is the header present?
11055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <$ac_header>
11064 _ACEOF
11065 if { (ac_try="$ac_cpp conftest.$ac_ext"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069 esac
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } >/dev/null && {
11078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 }; then
11081 ac_header_preproc=yes
11082 else
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_header_preproc=no
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11093 # So? What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095 yes:no: )
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100 ac_header_preproc=yes
11102 no:yes:* )
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11117 esac
11118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123 eval "$as_ac_Header=\$ac_header_preproc"
11125 ac_res=`eval echo '${'$as_ac_Header'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127 echo "${ECHO_T}$ac_res" >&6; }
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11133 _ACEOF
11137 done
11139 { echo "$as_me:$LINENO: checking for working chown" >&5
11140 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11141 if test "${ac_cv_func_chown_works+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144 if test "$cross_compiling" = yes; then
11145 ac_cv_func_chown_works=no
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 #include <fcntl.h>
11157 main ()
11159 char *f = "conftest.chown";
11160 struct stat before, after;
11162 if (creat (f, 0600) < 0)
11163 return 1;
11164 if (stat (f, &before) < 0)
11165 return 1;
11166 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11167 return 1;
11168 if (stat (f, &after) < 0)
11169 return 1;
11170 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11173 return 0;
11175 _ACEOF
11176 rm -f conftest$ac_exeext
11177 if { (ac_try="$ac_link"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_func_chown_works=yes
11197 else
11198 echo "$as_me: program exited with status $ac_status" >&5
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ( exit $ac_status )
11203 ac_cv_func_chown_works=no
11205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11209 rm -f conftest.chown
11212 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11213 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11214 if test $ac_cv_func_chown_works = yes; then
11216 cat >>confdefs.h <<\_ACEOF
11217 #define HAVE_CHOWN 1
11218 _ACEOF
11222 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11223 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11224 if test "${ac_cv_func_closedir_void+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 if test "$cross_compiling" = yes; then
11228 ac_cv_func_closedir_void=yes
11229 else
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h. */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 $ac_includes_default
11237 #include <$ac_header_dirent>
11238 #ifndef __cplusplus
11239 int closedir ();
11240 #endif
11243 main ()
11245 return closedir (opendir (".")) != 0;
11247 return 0;
11249 _ACEOF
11250 rm -f conftest$ac_exeext
11251 if { (ac_try="$ac_link"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_cv_func_closedir_void=no
11271 else
11272 echo "$as_me: program exited with status $ac_status" >&5
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ( exit $ac_status )
11277 ac_cv_func_closedir_void=yes
11279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11285 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11286 if test $ac_cv_func_closedir_void = yes; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define CLOSEDIR_VOID 1
11290 _ACEOF
11294 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11295 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11296 if test "${ac_cv_lib_error_at_line+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <error.h>
11307 main ()
11309 error_at_line (0, 0, "", 0, "an error occurred");
11311 return 0;
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (ac_try="$ac_link"
11316 case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_link") 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } && {
11328 test -z "$ac_c_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest$ac_exeext &&
11331 $as_test_x conftest$ac_exeext; then
11332 ac_cv_lib_error_at_line=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_cv_lib_error_at_line=no
11340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11341 conftest$ac_exeext conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11344 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11345 if test $ac_cv_lib_error_at_line = no; then
11346 case " $LIBOBJS " in
11347 *" error.$ac_objext "* ) ;;
11348 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11350 esac
11355 for ac_header in vfork.h
11357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 ac_res=`eval echo '${'$as_ac_Header'}'`
11365 { echo "$as_me:$LINENO: result: $ac_res" >&5
11366 echo "${ECHO_T}$ac_res" >&6; }
11367 else
11368 # Is the header compilable?
11369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 $ac_includes_default
11378 #include <$ac_header>
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385 esac
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_compile") 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest.$ac_objext; then
11397 ac_header_compiler=yes
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_compiler=no
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11407 echo "${ECHO_T}$ac_header_compiler" >&6; }
11409 # Is the header present?
11410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #include <$ac_header>
11419 _ACEOF
11420 if { (ac_try="$ac_cpp conftest.$ac_ext"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } >/dev/null && {
11433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 }; then
11436 ac_header_preproc=yes
11437 else
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_header_preproc=no
11444 rm -f conftest.err conftest.$ac_ext
11445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6; }
11448 # So? What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 yes:no: )
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455 ac_header_preproc=yes
11457 no:yes:* )
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11472 esac
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478 eval "$as_ac_Header=\$ac_header_preproc"
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488 _ACEOF
11492 done
11496 for ac_func in fork vfork
11498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11512 #define $ac_func innocuous_$ac_func
11514 /* System header to define __stub macros and hopefully few prototypes,
11515 which can conflict with char $ac_func (); below.
11516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517 <limits.h> exists even on freestanding compilers. */
11519 #ifdef __STDC__
11520 # include <limits.h>
11521 #else
11522 # include <assert.h>
11523 #endif
11525 #undef $ac_func
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char $ac_func ();
11534 /* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537 #if defined __stub_$ac_func || defined __stub___$ac_func
11538 choke me
11539 #endif
11542 main ()
11544 return $ac_func ();
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 eval "$as_ac_var=yes"
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 eval "$as_ac_var=no"
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11578 ac_res=`eval echo '${'$as_ac_var'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580 echo "${ECHO_T}$ac_res" >&6; }
11581 if test `eval echo '${'$as_ac_var'}'` = yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 _ACEOF
11587 done
11589 if test "x$ac_cv_func_fork" = xyes; then
11590 { echo "$as_me:$LINENO: checking for working fork" >&5
11591 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11592 if test "${ac_cv_func_fork_works+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 if test "$cross_compiling" = yes; then
11596 ac_cv_func_fork_works=cross
11597 else
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11606 main ()
11609 /* By Ruediger Kuhlmann. */
11610 return fork () < 0;
11613 return 0;
11615 _ACEOF
11616 rm -f conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_link") 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11627 { (case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_try") 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_func_fork_works=yes
11637 else
11638 echo "$as_me: program exited with status $ac_status" >&5
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ( exit $ac_status )
11643 ac_cv_func_fork_works=no
11645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11651 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11653 else
11654 ac_cv_func_fork_works=$ac_cv_func_fork
11656 if test "x$ac_cv_func_fork_works" = xcross; then
11657 case $host in
11658 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11659 # Override, as these systems have only a dummy fork() stub
11660 ac_cv_func_fork_works=no
11663 ac_cv_func_fork_works=yes
11665 esac
11666 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11667 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11669 ac_cv_func_vfork_works=$ac_cv_func_vfork
11670 if test "x$ac_cv_func_vfork" = xyes; then
11671 { echo "$as_me:$LINENO: checking for working vfork" >&5
11672 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11673 if test "${ac_cv_func_vfork_works+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676 if test "$cross_compiling" = yes; then
11677 ac_cv_func_vfork_works=cross
11678 else
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 /* Thanks to Paul Eggert for this test. */
11686 $ac_includes_default
11687 #include <sys/wait.h>
11688 #ifdef HAVE_VFORK_H
11689 # include <vfork.h>
11690 #endif
11691 /* On some sparc systems, changes by the child to local and incoming
11692 argument registers are propagated back to the parent. The compiler
11693 is told about this with #include <vfork.h>, but some compilers
11694 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11695 static variable whose address is put into a register that is
11696 clobbered by the vfork. */
11697 static void
11698 #ifdef __cplusplus
11699 sparc_address_test (int arg)
11700 # else
11701 sparc_address_test (arg) int arg;
11702 #endif
11704 static pid_t child;
11705 if (!child) {
11706 child = vfork ();
11707 if (child < 0) {
11708 perror ("vfork");
11709 _exit(2);
11711 if (!child) {
11712 arg = getpid();
11713 write(-1, "", 0);
11714 _exit (arg);
11720 main ()
11722 pid_t parent = getpid ();
11723 pid_t child;
11725 sparc_address_test (0);
11727 child = vfork ();
11729 if (child == 0) {
11730 /* Here is another test for sparc vfork register problems. This
11731 test uses lots of local variables, at least as many local
11732 variables as main has allocated so far including compiler
11733 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11734 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11735 reuse the register of parent for one of the local variables,
11736 since it will think that parent can't possibly be used any more
11737 in this routine. Assigning to the local variable will thus
11738 munge parent in the parent process. */
11739 pid_t
11740 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11741 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11742 /* Convince the compiler that p..p7 are live; otherwise, it might
11743 use the same hardware register for all 8 local variables. */
11744 if (p != p1 || p != p2 || p != p3 || p != p4
11745 || p != p5 || p != p6 || p != p7)
11746 _exit(1);
11748 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11749 from child file descriptors. If the child closes a descriptor
11750 before it execs or exits, this munges the parent's descriptor
11751 as well. Test for this by closing stdout in the child. */
11752 _exit(close(fileno(stdout)) != 0);
11753 } else {
11754 int status;
11755 struct stat st;
11757 while (wait(&status) != child)
11759 return (
11760 /* Was there some problem with vforking? */
11761 child < 0
11763 /* Did the child fail? (This shouldn't happen.) */
11764 || status
11766 /* Did the vfork/compiler bug occur? */
11767 || parent != getpid()
11769 /* Did the file descriptor bug occur? */
11770 || fstat(fileno(stdout), &st) != 0
11774 _ACEOF
11775 rm -f conftest$ac_exeext
11776 if { (ac_try="$ac_link"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_link") 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_func_vfork_works=yes
11796 else
11797 echo "$as_me: program exited with status $ac_status" >&5
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ( exit $ac_status )
11802 ac_cv_func_vfork_works=no
11804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11810 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11813 if test "x$ac_cv_func_fork_works" = xcross; then
11814 ac_cv_func_vfork_works=$ac_cv_func_vfork
11815 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11816 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11819 if test "x$ac_cv_func_vfork_works" = xyes; then
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_WORKING_VFORK 1
11823 _ACEOF
11825 else
11827 cat >>confdefs.h <<\_ACEOF
11828 #define vfork fork
11829 _ACEOF
11832 if test "x$ac_cv_func_fork_works" = xyes; then
11834 cat >>confdefs.h <<\_ACEOF
11835 #define HAVE_WORKING_FORK 1
11836 _ACEOF
11840 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11841 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11842 if test "${ac_cv_sys_largefile_source+set}" = set; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845 while :; do
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 #include <sys/types.h> /* for off_t */
11853 #include <stdio.h>
11855 main ()
11857 int (*fp) (FILE *, off_t, int) = fseeko;
11858 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11860 return 0;
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (ac_try="$ac_link"
11865 case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_link") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest$ac_exeext &&
11880 $as_test_x conftest$ac_exeext; then
11881 ac_cv_sys_largefile_source=no; break
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11890 conftest$ac_exeext conftest.$ac_ext
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #define _LARGEFILE_SOURCE 1
11898 #include <sys/types.h> /* for off_t */
11899 #include <stdio.h>
11901 main ()
11903 int (*fp) (FILE *, off_t, int) = fseeko;
11904 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11906 return 0;
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_link") 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } && {
11923 test -z "$ac_c_werror_flag" ||
11924 test ! -s conftest.err
11925 } && test -s conftest$ac_exeext &&
11926 $as_test_x conftest$ac_exeext; then
11927 ac_cv_sys_largefile_source=1; break
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11936 conftest$ac_exeext conftest.$ac_ext
11937 ac_cv_sys_largefile_source=unknown
11938 break
11939 done
11941 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11942 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11943 case $ac_cv_sys_largefile_source in #(
11944 no | unknown) ;;
11946 cat >>confdefs.h <<_ACEOF
11947 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11948 _ACEOF
11950 esac
11951 rm -f conftest*
11953 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11954 # in glibc 2.1.3, but that breaks too many other things.
11955 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11956 if test $ac_cv_sys_largefile_source != unknown; then
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_FSEEKO 1
11960 _ACEOF
11964 if test $ac_cv_c_compiler_gnu = yes; then
11965 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11966 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11967 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 ac_pattern="Autoconf.*'x'"
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 #include <sgtty.h>
11978 Autoconf TIOCGETP
11979 _ACEOF
11980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11981 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11982 ac_cv_prog_gcc_traditional=yes
11983 else
11984 ac_cv_prog_gcc_traditional=no
11986 rm -f conftest*
11989 if test $ac_cv_prog_gcc_traditional = no; then
11990 cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 #include <termio.h>
11997 Autoconf TCGETA
11998 _ACEOF
11999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12000 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12001 ac_cv_prog_gcc_traditional=yes
12003 rm -f conftest*
12007 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12008 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12009 if test $ac_cv_prog_gcc_traditional = yes; then
12010 CC="$CC -traditional"
12014 # XXX: these are commented out until we determine whether it matters if our malloc()
12015 # acts exactly like glibc's or not
12016 # AC_FUNC_MALLOC
12017 # AC_FUNC_REALLOC
12018 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12019 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12020 if test "${ac_cv_func_memcmp_working+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023 if test "$cross_compiling" = yes; then
12024 ac_cv_func_memcmp_working=no
12025 else
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 $ac_includes_default
12034 main ()
12037 /* Some versions of memcmp are not 8-bit clean. */
12038 char c0 = '\100', c1 = '\200', c2 = '\201';
12039 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12040 return 1;
12042 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12043 or more and with at least one buffer not starting on a 4-byte boundary.
12044 William Lewis provided this test program. */
12046 char foo[21];
12047 char bar[21];
12048 int i;
12049 for (i = 0; i < 4; i++)
12051 char *a = foo + i;
12052 char *b = bar + i;
12053 strcpy (a, "--------01111111");
12054 strcpy (b, "--------10000000");
12055 if (memcmp (a, b, 16) >= 0)
12056 return 1;
12058 return 0;
12062 return 0;
12064 _ACEOF
12065 rm -f conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_link") 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12076 { (case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_try") 2>&5
12082 ac_status=$?
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; }; then
12085 ac_cv_func_memcmp_working=yes
12086 else
12087 echo "$as_me: program exited with status $ac_status" >&5
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 ( exit $ac_status )
12092 ac_cv_func_memcmp_working=no
12094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12099 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12100 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12101 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12102 *" memcmp.$ac_objext "* ) ;;
12103 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12105 esac
12112 for ac_header in $ac_header_list
12114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 ac_res=`eval echo '${'$as_ac_Header'}'`
12122 { echo "$as_me:$LINENO: result: $ac_res" >&5
12123 echo "${ECHO_T}$ac_res" >&6; }
12124 else
12125 # Is the header compilable?
12126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h. */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 $ac_includes_default
12135 #include <$ac_header>
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_compile") 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest.$ac_objext; then
12154 ac_header_compiler=yes
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_header_compiler=no
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6; }
12166 # Is the header present?
12167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <$ac_header>
12176 _ACEOF
12177 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 }; then
12193 ac_header_preproc=yes
12194 else
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_header_preproc=no
12201 rm -f conftest.err conftest.$ac_ext
12202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12203 echo "${ECHO_T}$ac_header_preproc" >&6; }
12205 # So? What about this header?
12206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 yes:no: )
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12212 ac_header_preproc=yes
12214 no:yes:* )
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12229 esac
12230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235 eval "$as_ac_Header=\$ac_header_preproc"
12237 ac_res=`eval echo '${'$as_ac_Header'}'`
12238 { echo "$as_me:$LINENO: result: $ac_res" >&5
12239 echo "${ECHO_T}$ac_res" >&6; }
12242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12245 _ACEOF
12249 done
12259 for ac_func in $ac_func_list
12261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12275 #define $ac_func innocuous_$ac_func
12277 /* System header to define __stub macros and hopefully few prototypes,
12278 which can conflict with char $ac_func (); below.
12279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12280 <limits.h> exists even on freestanding compilers. */
12282 #ifdef __STDC__
12283 # include <limits.h>
12284 #else
12285 # include <assert.h>
12286 #endif
12288 #undef $ac_func
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12293 #ifdef __cplusplus
12294 extern "C"
12295 #endif
12296 char $ac_func ();
12297 /* The GNU C library defines this for functions which it implements
12298 to always fail with ENOSYS. Some functions are actually named
12299 something starting with __ and the normal name is an alias. */
12300 #if defined __stub_$ac_func || defined __stub___$ac_func
12301 choke me
12302 #endif
12305 main ()
12307 return $ac_func ();
12309 return 0;
12311 _ACEOF
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (ac_try="$ac_link"
12314 case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_link") 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest$ac_exeext &&
12329 $as_test_x conftest$ac_exeext; then
12330 eval "$as_ac_var=yes"
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 eval "$as_ac_var=no"
12338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339 conftest$ac_exeext conftest.$ac_ext
12341 ac_res=`eval echo '${'$as_ac_var'}'`
12342 { echo "$as_me:$LINENO: result: $ac_res" >&5
12343 echo "${ECHO_T}$ac_res" >&6; }
12344 if test `eval echo '${'$as_ac_var'}'` = yes; then
12345 cat >>confdefs.h <<_ACEOF
12346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12347 _ACEOF
12350 done
12368 { echo "$as_me:$LINENO: checking for working mktime" >&5
12369 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
12370 if test "${ac_cv_func_working_mktime+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373 if test "$cross_compiling" = yes; then
12374 ac_cv_func_working_mktime=no
12375 else
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 /* Test program from Paul Eggert and Tony Leneis. */
12383 #ifdef TIME_WITH_SYS_TIME
12384 # include <sys/time.h>
12385 # include <time.h>
12386 #else
12387 # ifdef HAVE_SYS_TIME_H
12388 # include <sys/time.h>
12389 # else
12390 # include <time.h>
12391 # endif
12392 #endif
12394 #include <stdlib.h>
12396 #ifdef HAVE_UNISTD_H
12397 # include <unistd.h>
12398 #endif
12400 #ifndef HAVE_ALARM
12401 # define alarm(X) /* empty */
12402 #endif
12404 /* Work around redefinition to rpl_putenv by other config tests. */
12405 #undef putenv
12407 static time_t time_t_max;
12408 static time_t time_t_min;
12410 /* Values we'll use to set the TZ environment variable. */
12411 static char *tz_strings[] = {
12412 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12413 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12415 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12417 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12418 Based on a problem report from Andreas Jaeger. */
12419 static int
12420 spring_forward_gap ()
12422 /* glibc (up to about 1998-10-07) failed this test. */
12423 struct tm tm;
12425 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12426 instead of "TZ=America/Vancouver" in order to detect the bug even
12427 on systems that don't support the Olson extension, or don't have the
12428 full zoneinfo tables installed. */
12429 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12431 tm.tm_year = 98;
12432 tm.tm_mon = 3;
12433 tm.tm_mday = 5;
12434 tm.tm_hour = 2;
12435 tm.tm_min = 0;
12436 tm.tm_sec = 0;
12437 tm.tm_isdst = -1;
12438 return mktime (&tm) != (time_t) -1;
12441 static int
12442 mktime_test1 (now)
12443 time_t now;
12445 struct tm *lt;
12446 return ! (lt = localtime (&now)) || mktime (lt) == now;
12449 static int
12450 mktime_test (now)
12451 time_t now;
12453 return (mktime_test1 (now)
12454 && mktime_test1 ((time_t) (time_t_max - now))
12455 && mktime_test1 ((time_t) (time_t_min + now)));
12458 static int
12459 irix_6_4_bug ()
12461 /* Based on code from Ariel Faigon. */
12462 struct tm tm;
12463 tm.tm_year = 96;
12464 tm.tm_mon = 3;
12465 tm.tm_mday = 0;
12466 tm.tm_hour = 0;
12467 tm.tm_min = 0;
12468 tm.tm_sec = 0;
12469 tm.tm_isdst = -1;
12470 mktime (&tm);
12471 return tm.tm_mon == 2 && tm.tm_mday == 31;
12474 static int
12475 bigtime_test (j)
12476 int j;
12478 struct tm tm;
12479 time_t now;
12480 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12481 now = mktime (&tm);
12482 if (now != (time_t) -1)
12484 struct tm *lt = localtime (&now);
12485 if (! (lt
12486 && lt->tm_year == tm.tm_year
12487 && lt->tm_mon == tm.tm_mon
12488 && lt->tm_mday == tm.tm_mday
12489 && lt->tm_hour == tm.tm_hour
12490 && lt->tm_min == tm.tm_min
12491 && lt->tm_sec == tm.tm_sec
12492 && lt->tm_yday == tm.tm_yday
12493 && lt->tm_wday == tm.tm_wday
12494 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12495 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12496 return 0;
12498 return 1;
12501 static int
12502 year_2050_test ()
12504 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12505 ignoring leap seconds. */
12506 unsigned long int answer = 2527315200UL;
12508 struct tm tm;
12509 time_t t;
12510 tm.tm_year = 2050 - 1900;
12511 tm.tm_mon = 2 - 1;
12512 tm.tm_mday = 1;
12513 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12514 tm.tm_isdst = -1;
12516 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12517 instead of "TZ=America/Vancouver" in order to detect the bug even
12518 on systems that don't support the Olson extension, or don't have the
12519 full zoneinfo tables installed. */
12520 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12522 t = mktime (&tm);
12524 /* Check that the result is either a failure, or close enough
12525 to the correct answer that we can assume the discrepancy is
12526 due to leap seconds. */
12527 return (t == (time_t) -1
12528 || (0 < t && answer - 120 <= t && t <= answer + 120));
12532 main ()
12534 time_t t, delta;
12535 int i, j;
12537 /* This test makes some buggy mktime implementations loop.
12538 Give up after 60 seconds; a mktime slower than that
12539 isn't worth using anyway. */
12540 alarm (60);
12542 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12543 continue;
12544 time_t_max--;
12545 if ((time_t) -1 < 0)
12546 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12547 continue;
12548 delta = time_t_max / 997; /* a suitable prime number */
12549 for (i = 0; i < N_STRINGS; i++)
12551 if (tz_strings[i])
12552 putenv (tz_strings[i]);
12554 for (t = 0; t <= time_t_max - delta; t += delta)
12555 if (! mktime_test (t))
12556 return 1;
12557 if (! (mktime_test ((time_t) 1)
12558 && mktime_test ((time_t) (60 * 60))
12559 && mktime_test ((time_t) (60 * 60 * 24))))
12560 return 1;
12562 for (j = 1; 0 < j; j *= 2)
12563 if (! bigtime_test (j))
12564 return 1;
12565 if (! bigtime_test (j - 1))
12566 return 1;
12568 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12570 _ACEOF
12571 rm -f conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_link") 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_func_working_mktime=yes
12592 else
12593 echo "$as_me: program exited with status $ac_status" >&5
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ( exit $ac_status )
12598 ac_cv_func_working_mktime=no
12600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12606 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12607 if test $ac_cv_func_working_mktime = no; then
12608 case " $LIBOBJS " in
12609 *" mktime.$ac_objext "* ) ;;
12610 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12612 esac
12618 for ac_header in stdlib.h unistd.h
12620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 ac_res=`eval echo '${'$as_ac_Header'}'`
12628 { echo "$as_me:$LINENO: result: $ac_res" >&5
12629 echo "${ECHO_T}$ac_res" >&6; }
12630 else
12631 # Is the header compilable?
12632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 #include <$ac_header>
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_header_compiler=yes
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_header_compiler=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12670 echo "${ECHO_T}$ac_header_compiler" >&6; }
12672 # Is the header present?
12673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 #include <$ac_header>
12682 _ACEOF
12683 if { (ac_try="$ac_cpp conftest.$ac_ext"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } >/dev/null && {
12696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 }; then
12699 ac_header_preproc=yes
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_header_preproc=no
12707 rm -f conftest.err conftest.$ac_ext
12708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12709 echo "${ECHO_T}$ac_header_preproc" >&6; }
12711 # So? What about this header?
12712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12713 yes:no: )
12714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12718 ac_header_preproc=yes
12720 no:yes:* )
12721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12735 esac
12736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741 eval "$as_ac_Header=\$ac_header_preproc"
12743 ac_res=`eval echo '${'$as_ac_Header'}'`
12744 { echo "$as_me:$LINENO: result: $ac_res" >&5
12745 echo "${ECHO_T}$ac_res" >&6; }
12748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12749 cat >>confdefs.h <<_ACEOF
12750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12751 _ACEOF
12755 done
12758 for ac_func in getpagesize
12760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12774 #define $ac_func innocuous_$ac_func
12776 /* System header to define __stub macros and hopefully few prototypes,
12777 which can conflict with char $ac_func (); below.
12778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12779 <limits.h> exists even on freestanding compilers. */
12781 #ifdef __STDC__
12782 # include <limits.h>
12783 #else
12784 # include <assert.h>
12785 #endif
12787 #undef $ac_func
12789 /* Override any GCC internal prototype to avoid an error.
12790 Use char because int might match the return type of a GCC
12791 builtin and then its argument prototype would still apply. */
12792 #ifdef __cplusplus
12793 extern "C"
12794 #endif
12795 char $ac_func ();
12796 /* The GNU C library defines this for functions which it implements
12797 to always fail with ENOSYS. Some functions are actually named
12798 something starting with __ and the normal name is an alias. */
12799 #if defined __stub_$ac_func || defined __stub___$ac_func
12800 choke me
12801 #endif
12804 main ()
12806 return $ac_func ();
12808 return 0;
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (ac_try="$ac_link"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_link") 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } && {
12825 test -z "$ac_c_werror_flag" ||
12826 test ! -s conftest.err
12827 } && test -s conftest$ac_exeext &&
12828 $as_test_x conftest$ac_exeext; then
12829 eval "$as_ac_var=yes"
12830 else
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 eval "$as_ac_var=no"
12837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12838 conftest$ac_exeext conftest.$ac_ext
12840 ac_res=`eval echo '${'$as_ac_var'}'`
12841 { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12843 if test `eval echo '${'$as_ac_var'}'` = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12846 _ACEOF
12849 done
12851 { echo "$as_me:$LINENO: checking for working mmap" >&5
12852 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12853 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 if test "$cross_compiling" = yes; then
12857 ac_cv_func_mmap_fixed_mapped=no
12858 else
12859 cat >conftest.$ac_ext <<_ACEOF
12860 /* confdefs.h. */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12865 $ac_includes_default
12866 /* malloc might have been renamed as rpl_malloc. */
12867 #undef malloc
12869 /* Thanks to Mike Haertel and Jim Avera for this test.
12870 Here is a matrix of mmap possibilities:
12871 mmap private not fixed
12872 mmap private fixed at somewhere currently unmapped
12873 mmap private fixed at somewhere already mapped
12874 mmap shared not fixed
12875 mmap shared fixed at somewhere currently unmapped
12876 mmap shared fixed at somewhere already mapped
12877 For private mappings, we should verify that changes cannot be read()
12878 back from the file, nor mmap's back from the file at a different
12879 address. (There have been systems where private was not correctly
12880 implemented like the infamous i386 svr4.0, and systems where the
12881 VM page cache was not coherent with the file system buffer cache
12882 like early versions of FreeBSD and possibly contemporary NetBSD.)
12883 For shared mappings, we should conversely verify that changes get
12884 propagated back to all the places they're supposed to be.
12886 Grep wants private fixed already mapped.
12887 The main things grep needs to know about mmap are:
12888 * does it exist and is it safe to write into the mmap'd area
12889 * how to use it (BSD variants) */
12891 #include <fcntl.h>
12892 #include <sys/mman.h>
12894 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12895 char *malloc ();
12896 #endif
12898 /* This mess was copied from the GNU getpagesize.h. */
12899 #ifndef HAVE_GETPAGESIZE
12900 /* Assume that all systems that can run configure have sys/param.h. */
12901 # ifndef HAVE_SYS_PARAM_H
12902 # define HAVE_SYS_PARAM_H 1
12903 # endif
12905 # ifdef _SC_PAGESIZE
12906 # define getpagesize() sysconf(_SC_PAGESIZE)
12907 # else /* no _SC_PAGESIZE */
12908 # ifdef HAVE_SYS_PARAM_H
12909 # include <sys/param.h>
12910 # ifdef EXEC_PAGESIZE
12911 # define getpagesize() EXEC_PAGESIZE
12912 # else /* no EXEC_PAGESIZE */
12913 # ifdef NBPG
12914 # define getpagesize() NBPG * CLSIZE
12915 # ifndef CLSIZE
12916 # define CLSIZE 1
12917 # endif /* no CLSIZE */
12918 # else /* no NBPG */
12919 # ifdef NBPC
12920 # define getpagesize() NBPC
12921 # else /* no NBPC */
12922 # ifdef PAGESIZE
12923 # define getpagesize() PAGESIZE
12924 # endif /* PAGESIZE */
12925 # endif /* no NBPC */
12926 # endif /* no NBPG */
12927 # endif /* no EXEC_PAGESIZE */
12928 # else /* no HAVE_SYS_PARAM_H */
12929 # define getpagesize() 8192 /* punt totally */
12930 # endif /* no HAVE_SYS_PARAM_H */
12931 # endif /* no _SC_PAGESIZE */
12933 #endif /* no HAVE_GETPAGESIZE */
12936 main ()
12938 char *data, *data2, *data3;
12939 int i, pagesize;
12940 int fd;
12942 pagesize = getpagesize ();
12944 /* First, make a file with some known garbage in it. */
12945 data = (char *) malloc (pagesize);
12946 if (!data)
12947 return 1;
12948 for (i = 0; i < pagesize; ++i)
12949 *(data + i) = rand ();
12950 umask (0);
12951 fd = creat ("conftest.mmap", 0600);
12952 if (fd < 0)
12953 return 1;
12954 if (write (fd, data, pagesize) != pagesize)
12955 return 1;
12956 close (fd);
12958 /* Next, try to mmap the file at a fixed address which already has
12959 something else allocated at it. If we can, also make sure that
12960 we see the same garbage. */
12961 fd = open ("conftest.mmap", O_RDWR);
12962 if (fd < 0)
12963 return 1;
12964 data2 = (char *) malloc (2 * pagesize);
12965 if (!data2)
12966 return 1;
12967 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12968 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12969 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12970 return 1;
12971 for (i = 0; i < pagesize; ++i)
12972 if (*(data + i) != *(data2 + i))
12973 return 1;
12975 /* Finally, make sure that changes to the mapped area do not
12976 percolate back to the file as seen by read(). (This is a bug on
12977 some variants of i386 svr4.0.) */
12978 for (i = 0; i < pagesize; ++i)
12979 *(data2 + i) = *(data2 + i) + 1;
12980 data3 = (char *) malloc (pagesize);
12981 if (!data3)
12982 return 1;
12983 if (read (fd, data3, pagesize) != pagesize)
12984 return 1;
12985 for (i = 0; i < pagesize; ++i)
12986 if (*(data + i) != *(data3 + i))
12987 return 1;
12988 close (fd);
12989 return 0;
12991 _ACEOF
12992 rm -f conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_func_mmap_fixed_mapped=yes
13013 else
13014 echo "$as_me: program exited with status $ac_status" >&5
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ( exit $ac_status )
13019 ac_cv_func_mmap_fixed_mapped=no
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13026 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13027 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13028 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13030 cat >>confdefs.h <<\_ACEOF
13031 #define HAVE_MMAP 1
13032 _ACEOF
13035 rm -f conftest.mmap
13039 for ac_header in sys/select.h sys/socket.h
13041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 ac_res=`eval echo '${'$as_ac_Header'}'`
13049 { echo "$as_me:$LINENO: result: $ac_res" >&5
13050 echo "${ECHO_T}$ac_res" >&6; }
13051 else
13052 # Is the header compilable?
13053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h. */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 $ac_includes_default
13062 #include <$ac_header>
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (ac_try="$ac_compile"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compile") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest.$ac_objext; then
13081 ac_header_compiler=yes
13082 else
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 ac_header_compiler=no
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13091 echo "${ECHO_T}$ac_header_compiler" >&6; }
13093 # Is the header present?
13094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 #include <$ac_header>
13103 _ACEOF
13104 if { (ac_try="$ac_cpp conftest.$ac_ext"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108 esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } >/dev/null && {
13117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13118 test ! -s conftest.err
13119 }; then
13120 ac_header_preproc=yes
13121 else
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13125 ac_header_preproc=no
13128 rm -f conftest.err conftest.$ac_ext
13129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13130 echo "${ECHO_T}$ac_header_preproc" >&6; }
13132 # So? What about this header?
13133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13134 yes:no: )
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13139 ac_header_preproc=yes
13141 no:yes:* )
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13156 esac
13157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 eval "$as_ac_Header=\$ac_header_preproc"
13164 ac_res=`eval echo '${'$as_ac_Header'}'`
13165 { echo "$as_me:$LINENO: result: $ac_res" >&5
13166 echo "${ECHO_T}$ac_res" >&6; }
13169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13170 cat >>confdefs.h <<_ACEOF
13171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13172 _ACEOF
13176 done
13178 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13179 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13180 if test "${ac_cv_func_select_args+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13184 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13185 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h. */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 $ac_includes_default
13193 #ifdef HAVE_SYS_SELECT_H
13194 # include <sys/select.h>
13195 #endif
13196 #ifdef HAVE_SYS_SOCKET_H
13197 # include <sys/socket.h>
13198 #endif
13201 main ()
13203 extern int select ($ac_arg1,
13204 $ac_arg234, $ac_arg234, $ac_arg234,
13205 $ac_arg5);
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (ac_try="$ac_compile"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_compile") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } && {
13224 test -z "$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 } && test -s conftest.$ac_objext; then
13227 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13228 else
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 done
13237 done
13238 done
13239 # Provide a safe default value.
13240 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13243 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13244 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13245 ac_save_IFS=$IFS; IFS=','
13246 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13247 IFS=$ac_save_IFS
13248 shift
13250 cat >>confdefs.h <<_ACEOF
13251 #define SELECT_TYPE_ARG1 $1
13252 _ACEOF
13255 cat >>confdefs.h <<_ACEOF
13256 #define SELECT_TYPE_ARG234 ($2)
13257 _ACEOF
13260 cat >>confdefs.h <<_ACEOF
13261 #define SELECT_TYPE_ARG5 ($3)
13262 _ACEOF
13264 rm -f conftest*
13266 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13267 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13268 if test "$ac_cv_prog_cc_c89" != no; then
13269 { echo "$as_me:$LINENO: result: yes" >&5
13270 echo "${ECHO_T}yes" >&6; }
13272 cat >>confdefs.h <<\_ACEOF
13273 #define PROTOTYPES 1
13274 _ACEOF
13277 cat >>confdefs.h <<\_ACEOF
13278 #define __PROTOTYPES 1
13279 _ACEOF
13281 else
13282 { echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6; }
13286 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13287 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13288 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 ac_cv_func_setvbuf_reversed=no
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <stdio.h>
13299 # ifdef PROTOTYPES
13300 int (setvbuf) (FILE *, int, char *, size_t);
13301 # endif
13303 main ()
13305 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13307 return 0;
13309 _ACEOF
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_link") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest$ac_exeext &&
13327 $as_test_x conftest$ac_exeext; then
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 #include <stdio.h>
13335 # ifdef PROTOTYPES
13336 int (setvbuf) (FILE *, int, char *, size_t);
13337 # endif
13339 main ()
13341 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13354 ac_status=$?
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_c_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext &&
13363 $as_test_x conftest$ac_exeext; then
13364 # It compiles and links either way, so it must not be declared
13365 # with a prototype and most likely this is a K&R C compiler.
13366 # Try running it.
13367 if test "$cross_compiling" = yes; then
13368 : # Assume setvbuf is not reversed when cross-compiling.
13369 else
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 $ac_includes_default
13378 main ()
13380 /* This call has the arguments reversed.
13381 A reversed system may check and see that the address of buf
13382 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13383 char buf;
13384 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13385 return 1;
13386 putchar ('\r');
13387 return 0; /* Non-reversed systems SEGV here. */
13389 return 0;
13391 _ACEOF
13392 rm -f conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_cv_func_setvbuf_reversed=yes
13413 else
13414 echo "$as_me: program exited with status $ac_status" >&5
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13423 ac_cv_func_setvbuf_reversed=yes
13424 else
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13432 conftest$ac_exeext conftest.$ac_ext
13433 else
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13441 conftest$ac_exeext conftest.$ac_ext
13443 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13444 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13445 if test $ac_cv_func_setvbuf_reversed = yes; then
13447 cat >>confdefs.h <<\_ACEOF
13448 #define SETVBUF_REVERSED 1
13449 _ACEOF
13453 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13454 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13455 if test "${ac_cv_type_signal+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h. */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <sys/types.h>
13465 #include <signal.h>
13468 main ()
13470 return *(signal (0, 0)) (0) == 1;
13472 return 0;
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (ac_try="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13492 ac_cv_type_signal=int
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_type_signal=void
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13503 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13505 cat >>confdefs.h <<_ACEOF
13506 #define RETSIGTYPE $ac_cv_type_signal
13507 _ACEOF
13510 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13511 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13512 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515 rm -f conftest.sym conftest.file
13516 echo >conftest.file
13517 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13518 if test "$cross_compiling" = yes; then
13519 ac_cv_func_lstat_dereferences_slashed_symlink=no
13520 else
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13529 main ()
13531 struct stat sbuf;
13532 /* Linux will dereference the symlink and fail.
13533 That is better in the sense that it means we will not
13534 have to compile and use the lstat wrapper. */
13535 return lstat ("conftest.sym/", &sbuf) == 0;
13537 return 0;
13539 _ACEOF
13540 rm -f conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13551 { (case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554 esac
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_try") 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13561 else
13562 echo "$as_me: program exited with status $ac_status" >&5
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ( exit $ac_status )
13567 ac_cv_func_lstat_dereferences_slashed_symlink=no
13569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13573 else
13574 # If the `ln -s' command failed, then we probably don't even
13575 # have an lstat function.
13576 ac_cv_func_lstat_dereferences_slashed_symlink=no
13578 rm -f conftest.sym conftest.file
13581 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13582 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13584 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13586 cat >>confdefs.h <<_ACEOF
13587 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13588 _ACEOF
13591 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13592 case " $LIBOBJS " in
13593 *" lstat.$ac_objext "* ) ;;
13594 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13596 esac
13600 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13601 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13602 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605 if test "$cross_compiling" = yes; then
13606 ac_cv_func_stat_empty_string_bug=yes
13607 else
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13616 main ()
13618 struct stat sbuf;
13619 return stat ("", &sbuf) == 0;
13621 return 0;
13623 _ACEOF
13624 rm -f conftest$ac_exeext
13625 if { (ac_try="$ac_link"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_link") 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_func_stat_empty_string_bug=no
13645 else
13646 echo "$as_me: program exited with status $ac_status" >&5
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ( exit $ac_status )
13651 ac_cv_func_stat_empty_string_bug=yes
13653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13658 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13659 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13660 if test $ac_cv_func_stat_empty_string_bug = yes; then
13661 case " $LIBOBJS " in
13662 *" stat.$ac_objext "* ) ;;
13663 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13665 esac
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STAT_EMPTY_STRING_BUG 1
13670 _ACEOF
13674 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13675 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13676 if test "${ac_cv_func_strcoll_works+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 if test "$cross_compiling" = yes; then
13680 ac_cv_func_strcoll_works=no
13681 else
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13690 main ()
13692 return (strcoll ("abc", "def") >= 0 ||
13693 strcoll ("ABC", "DEF") >= 0 ||
13694 strcoll ("123", "456") >= 0)
13696 return 0;
13698 _ACEOF
13699 rm -f conftest$ac_exeext
13700 if { (ac_try="$ac_link"
13701 case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_link") 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_func_strcoll_works=yes
13720 else
13721 echo "$as_me: program exited with status $ac_status" >&5
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ( exit $ac_status )
13726 ac_cv_func_strcoll_works=no
13728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13733 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13734 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13735 if test $ac_cv_func_strcoll_works = yes; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define HAVE_STRCOLL 1
13739 _ACEOF
13744 for ac_func in strftime
13746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13760 #define $ac_func innocuous_$ac_func
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func (); below.
13764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13765 <limits.h> exists even on freestanding compilers. */
13767 #ifdef __STDC__
13768 # include <limits.h>
13769 #else
13770 # include <assert.h>
13771 #endif
13773 #undef $ac_func
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 char $ac_func ();
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined __stub_$ac_func || defined __stub___$ac_func
13786 choke me
13787 #endif
13790 main ()
13792 return $ac_func ();
13794 return 0;
13796 _ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (ac_try="$ac_link"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 eval "$as_ac_var=yes"
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 eval "$as_ac_var=no"
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13826 ac_res=`eval echo '${'$as_ac_var'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_var'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13832 _ACEOF
13834 else
13835 # strftime is in -lintl on SCO UNIX.
13836 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13837 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13838 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841 ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-lintl $LIBS"
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h. */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char strftime ();
13858 main ()
13860 return strftime ();
13862 return 0;
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_link") 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest$ac_exeext &&
13882 $as_test_x conftest$ac_exeext; then
13883 ac_cv_lib_intl_strftime=yes
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_cv_lib_intl_strftime=no
13891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13892 conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13895 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13896 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13897 if test $ac_cv_lib_intl_strftime = yes; then
13898 cat >>confdefs.h <<\_ACEOF
13899 #define HAVE_STRFTIME 1
13900 _ACEOF
13902 LIBS="-lintl $LIBS"
13906 done
13908 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13909 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13910 if test "${ac_cv_func_strnlen_working+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913 if test "$cross_compiling" = yes; then
13914 ac_cv_func_strnlen_working=no
13915 else
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h. */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 $ac_includes_default
13924 main ()
13927 #define S "foobar"
13928 #define S_LEN (sizeof S - 1)
13930 /* At least one implementation is buggy: that of AIX 4.3 would
13931 give strnlen (S, 1) == 3. */
13933 int i;
13934 for (i = 0; i < S_LEN + 1; ++i)
13936 int expected = i <= S_LEN ? i : S_LEN;
13937 if (strnlen (S, i) != expected)
13938 return 1;
13940 return 0;
13943 return 0;
13945 _ACEOF
13946 rm -f conftest$ac_exeext
13947 if { (ac_try="$ac_link"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_func_strnlen_working=yes
13967 else
13968 echo "$as_me: program exited with status $ac_status" >&5
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ( exit $ac_status )
13973 ac_cv_func_strnlen_working=no
13975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13981 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13982 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13983 *" strnlen.$ac_objext "* ) ;;
13984 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13986 esac
13989 { echo "$as_me:$LINENO: checking for working strtod" >&5
13990 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13991 if test "${ac_cv_func_strtod+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 if test "$cross_compiling" = yes; then
13995 ac_cv_func_strtod=no
13996 else
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h. */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14004 $ac_includes_default
14005 #ifndef strtod
14006 double strtod ();
14007 #endif
14009 main()
14012 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14013 char *string = " +69";
14014 char *term;
14015 double value;
14016 value = strtod (string, &term);
14017 if (value != 69 || term != (string + 4))
14018 return 1;
14022 /* Under Solaris 2.4, strtod returns the wrong value for the
14023 terminating character under some conditions. */
14024 char *string = "NaN";
14025 char *term;
14026 strtod (string, &term);
14027 if (term != string && *(term - 1) == 0)
14028 return 1;
14030 return 0;
14033 _ACEOF
14034 rm -f conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_cv_func_strtod=yes
14055 else
14056 echo "$as_me: program exited with status $ac_status" >&5
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ( exit $ac_status )
14061 ac_cv_func_strtod=no
14063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14068 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14069 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14070 if test $ac_cv_func_strtod = no; then
14071 case " $LIBOBJS " in
14072 *" strtod.$ac_objext "* ) ;;
14073 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14075 esac
14077 { echo "$as_me:$LINENO: checking for pow" >&5
14078 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14079 if test "${ac_cv_func_pow+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h. */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14090 #define pow innocuous_pow
14092 /* System header to define __stub macros and hopefully few prototypes,
14093 which can conflict with char pow (); below.
14094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14095 <limits.h> exists even on freestanding compilers. */
14097 #ifdef __STDC__
14098 # include <limits.h>
14099 #else
14100 # include <assert.h>
14101 #endif
14103 #undef pow
14105 /* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
14108 #ifdef __cplusplus
14109 extern "C"
14110 #endif
14111 char pow ();
14112 /* The GNU C library defines this for functions which it implements
14113 to always fail with ENOSYS. Some functions are actually named
14114 something starting with __ and the normal name is an alias. */
14115 #if defined __stub_pow || defined __stub___pow
14116 choke me
14117 #endif
14120 main ()
14122 return pow ();
14124 return 0;
14126 _ACEOF
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_link") 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && {
14141 test -z "$ac_c_werror_flag" ||
14142 test ! -s conftest.err
14143 } && test -s conftest$ac_exeext &&
14144 $as_test_x conftest$ac_exeext; then
14145 ac_cv_func_pow=yes
14146 else
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_cv_func_pow=no
14153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154 conftest$ac_exeext conftest.$ac_ext
14156 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14157 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14159 if test $ac_cv_func_pow = no; then
14160 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14161 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14162 if test "${ac_cv_lib_m_pow+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lm $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14174 /* Override any GCC internal prototype to avoid an error.
14175 Use char because int might match the return type of a GCC
14176 builtin and then its argument prototype would still apply. */
14177 #ifdef __cplusplus
14178 extern "C"
14179 #endif
14180 char pow ();
14182 main ()
14184 return pow ();
14186 return 0;
14188 _ACEOF
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest$ac_exeext &&
14206 $as_test_x conftest$ac_exeext; then
14207 ac_cv_lib_m_pow=yes
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_lib_m_pow=no
14215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14216 conftest$ac_exeext conftest.$ac_ext
14217 LIBS=$ac_check_lib_save_LIBS
14219 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14220 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14221 if test $ac_cv_lib_m_pow = yes; then
14222 POW_LIB=-lm
14223 else
14224 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14225 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14240 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14241 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14242 if test "${ac_cv_func_utime_null+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 rm -f conftest.data; >conftest.data
14246 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14247 if test "$cross_compiling" = yes; then
14248 ac_cv_func_utime_null=no
14249 else
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 $ac_includes_default
14257 #ifdef HAVE_UTIME_H
14258 # include <utime.h>
14259 #endif
14261 main ()
14263 struct stat s, t;
14264 return ! (stat ("conftest.data", &s) == 0
14265 && utime ("conftest.data", 0) == 0
14266 && stat ("conftest.data", &t) == 0
14267 && t.st_mtime >= s.st_mtime
14268 && t.st_mtime - s.st_mtime < 120);
14270 return 0;
14272 _ACEOF
14273 rm -f conftest$ac_exeext
14274 if { (ac_try="$ac_link"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_link") 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_func_utime_null=yes
14294 else
14295 echo "$as_me: program exited with status $ac_status" >&5
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ( exit $ac_status )
14300 ac_cv_func_utime_null=no
14302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14308 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14309 if test $ac_cv_func_utime_null = yes; then
14311 cat >>confdefs.h <<\_ACEOF
14312 #define HAVE_UTIME_NULL 1
14313 _ACEOF
14316 rm -f conftest.data
14319 for ac_func in vprintf
14321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h. */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14335 #define $ac_func innocuous_$ac_func
14337 /* System header to define __stub macros and hopefully few prototypes,
14338 which can conflict with char $ac_func (); below.
14339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14340 <limits.h> exists even on freestanding compilers. */
14342 #ifdef __STDC__
14343 # include <limits.h>
14344 #else
14345 # include <assert.h>
14346 #endif
14348 #undef $ac_func
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char $ac_func ();
14357 /* The GNU C library defines this for functions which it implements
14358 to always fail with ENOSYS. Some functions are actually named
14359 something starting with __ and the normal name is an alias. */
14360 #if defined __stub_$ac_func || defined __stub___$ac_func
14361 choke me
14362 #endif
14365 main ()
14367 return $ac_func ();
14369 return 0;
14371 _ACEOF
14372 rm -f conftest.$ac_objext conftest$ac_exeext
14373 if { (ac_try="$ac_link"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_link") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && {
14386 test -z "$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 } && test -s conftest$ac_exeext &&
14389 $as_test_x conftest$ac_exeext; then
14390 eval "$as_ac_var=yes"
14391 else
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 eval "$as_ac_var=no"
14398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14399 conftest$ac_exeext conftest.$ac_ext
14401 ac_res=`eval echo '${'$as_ac_var'}'`
14402 { echo "$as_me:$LINENO: result: $ac_res" >&5
14403 echo "${ECHO_T}$ac_res" >&6; }
14404 if test `eval echo '${'$as_ac_var'}'` = yes; then
14405 cat >>confdefs.h <<_ACEOF
14406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14407 _ACEOF
14409 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14410 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14411 if test "${ac_cv_func__doprnt+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h. */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14422 #define _doprnt innocuous__doprnt
14424 /* System header to define __stub macros and hopefully few prototypes,
14425 which can conflict with char _doprnt (); below.
14426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14427 <limits.h> exists even on freestanding compilers. */
14429 #ifdef __STDC__
14430 # include <limits.h>
14431 #else
14432 # include <assert.h>
14433 #endif
14435 #undef _doprnt
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char _doprnt ();
14444 /* The GNU C library defines this for functions which it implements
14445 to always fail with ENOSYS. Some functions are actually named
14446 something starting with __ and the normal name is an alias. */
14447 #if defined __stub__doprnt || defined __stub____doprnt
14448 choke me
14449 #endif
14452 main ()
14454 return _doprnt ();
14456 return 0;
14458 _ACEOF
14459 rm -f conftest.$ac_objext conftest$ac_exeext
14460 if { (ac_try="$ac_link"
14461 case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14464 esac
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_link") 2>conftest.er1
14467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest$ac_exeext &&
14476 $as_test_x conftest$ac_exeext; then
14477 ac_cv_func__doprnt=yes
14478 else
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_cv_func__doprnt=no
14485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14486 conftest$ac_exeext conftest.$ac_ext
14488 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14489 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14490 if test $ac_cv_func__doprnt = yes; then
14492 cat >>confdefs.h <<\_ACEOF
14493 #define HAVE_DOPRNT 1
14494 _ACEOF
14499 done
14551 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
14553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14567 #define $ac_func innocuous_$ac_func
14569 /* System header to define __stub macros and hopefully few prototypes,
14570 which can conflict with char $ac_func (); below.
14571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14572 <limits.h> exists even on freestanding compilers. */
14574 #ifdef __STDC__
14575 # include <limits.h>
14576 #else
14577 # include <assert.h>
14578 #endif
14580 #undef $ac_func
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585 #ifdef __cplusplus
14586 extern "C"
14587 #endif
14588 char $ac_func ();
14589 /* The GNU C library defines this for functions which it implements
14590 to always fail with ENOSYS. Some functions are actually named
14591 something starting with __ and the normal name is an alias. */
14592 #if defined __stub_$ac_func || defined __stub___$ac_func
14593 choke me
14594 #endif
14597 main ()
14599 return $ac_func ();
14601 return 0;
14603 _ACEOF
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest$ac_exeext &&
14621 $as_test_x conftest$ac_exeext; then
14622 eval "$as_ac_var=yes"
14623 else
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 eval "$as_ac_var=no"
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631 conftest$ac_exeext conftest.$ac_ext
14633 ac_res=`eval echo '${'$as_ac_var'}'`
14634 { echo "$as_me:$LINENO: result: $ac_res" >&5
14635 echo "${ECHO_T}$ac_res" >&6; }
14636 if test `eval echo '${'$as_ac_var'}'` = yes; then
14637 cat >>confdefs.h <<_ACEOF
14638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14639 _ACEOF
14642 done
14645 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14647 for ac_func in gethostbyname_r
14649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14663 #define $ac_func innocuous_$ac_func
14665 /* System header to define __stub macros and hopefully few prototypes,
14666 which can conflict with char $ac_func (); below.
14667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14668 <limits.h> exists even on freestanding compilers. */
14670 #ifdef __STDC__
14671 # include <limits.h>
14672 #else
14673 # include <assert.h>
14674 #endif
14676 #undef $ac_func
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14681 #ifdef __cplusplus
14682 extern "C"
14683 #endif
14684 char $ac_func ();
14685 /* The GNU C library defines this for functions which it implements
14686 to always fail with ENOSYS. Some functions are actually named
14687 something starting with __ and the normal name is an alias. */
14688 #if defined __stub_$ac_func || defined __stub___$ac_func
14689 choke me
14690 #endif
14693 main ()
14695 return $ac_func ();
14697 return 0;
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (ac_try="$ac_link"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_link") 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest$ac_exeext &&
14717 $as_test_x conftest$ac_exeext; then
14718 eval "$as_ac_var=yes"
14719 else
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 eval "$as_ac_var=no"
14726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14727 conftest$ac_exeext conftest.$ac_ext
14729 ac_res=`eval echo '${'$as_ac_var'}'`
14730 { echo "$as_me:$LINENO: result: $ac_res" >&5
14731 echo "${ECHO_T}$ac_res" >&6; }
14732 if test `eval echo '${'$as_ac_var'}'` = yes; then
14733 cat >>confdefs.h <<_ACEOF
14734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14735 _ACEOF
14738 done
14741 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14742 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <pthread.h>
14751 main ()
14753 int foo = PTHREAD_RWLOCK_INITIALIZER;
14755 return 0;
14757 _ACEOF
14758 rm -f conftest.$ac_objext conftest$ac_exeext
14759 if { (ac_try="$ac_link"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_link") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext &&
14775 $as_test_x conftest$ac_exeext; then
14776 { echo "$as_me:$LINENO: result: yes" >&5
14777 echo "${ECHO_T}yes" >&6; }
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14781 _ACEOF
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 { echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6; }
14792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14793 conftest$ac_exeext conftest.$ac_ext
14795 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14796 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <pthread.h>
14805 main ()
14807 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14809 return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_link") 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest$ac_exeext &&
14829 $as_test_x conftest$ac_exeext; then
14830 { echo "$as_me:$LINENO: result: yes" >&5
14831 echo "${ECHO_T}yes" >&6; }
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14835 _ACEOF
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 { echo "$as_me:$LINENO: result: no" >&5
14842 echo "${ECHO_T}no" >&6; }
14846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14847 conftest$ac_exeext conftest.$ac_ext
14849 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14850 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14859 main ()
14861 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14863 return 0;
14865 _ACEOF
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (ac_try="$ac_link"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_link") 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest$ac_exeext &&
14883 $as_test_x conftest$ac_exeext; then
14884 { echo "$as_me:$LINENO: result: yes" >&5
14885 echo "${ECHO_T}yes" >&6; }
14887 cat >>confdefs.h <<\_ACEOF
14888 #define HAVE_GCC_ATOMICS 1
14889 _ACEOF
14891 else
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 { echo "$as_me:$LINENO: result: no" >&5
14896 echo "${ECHO_T}no" >&6; }
14900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14901 conftest$ac_exeext conftest.$ac_ext
14904 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14905 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h. */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912 static int __attribute__((pure)) test(void) {}
14914 main ()
14918 return 0;
14920 _ACEOF
14921 rm -f conftest.$ac_objext
14922 if { (ac_try="$ac_compile"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_compile") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest.$ac_objext; then
14938 { echo "$as_me:$LINENO: result: yes" >&5
14939 echo "${ECHO_T}yes" >&6; }
14941 cat >>confdefs.h <<_ACEOF
14942 #define HAVE_ATTRIBUTE_pure 1
14943 _ACEOF
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 { echo "$as_me:$LINENO: result: no" >&5
14950 echo "${ECHO_T}no" >&6; }
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14957 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 static int __attribute__((malloc)) test(void) {}
14966 main ()
14970 return 0;
14972 _ACEOF
14973 rm -f conftest.$ac_objext
14974 if { (ac_try="$ac_compile"
14975 case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_compile") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest.$ac_objext; then
14990 { echo "$as_me:$LINENO: result: yes" >&5
14991 echo "${ECHO_T}yes" >&6; }
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_ATTRIBUTE_malloc 1
14995 _ACEOF
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 { echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6; }
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15009 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 static int __attribute__((const)) test(void) {}
15018 main ()
15022 return 0;
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_compile") 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest.$ac_objext; then
15042 { echo "$as_me:$LINENO: result: yes" >&5
15043 echo "${ECHO_T}yes" >&6; }
15045 cat >>confdefs.h <<_ACEOF
15046 #define HAVE_ATTRIBUTE_const 1
15047 _ACEOF
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 { echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6; }
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15061 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 static int __attribute__((unused)) test(void) {}
15070 main ()
15074 return 0;
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_compile") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } && {
15091 test -z "$ac_c_werror_flag" ||
15092 test ! -s conftest.err
15093 } && test -s conftest.$ac_objext; then
15094 { echo "$as_me:$LINENO: result: yes" >&5
15095 echo "${ECHO_T}yes" >&6; }
15097 cat >>confdefs.h <<_ACEOF
15098 #define HAVE_ATTRIBUTE_unused 1
15099 _ACEOF
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 { echo "$as_me:$LINENO: result: no" >&5
15106 echo "${ECHO_T}no" >&6; }
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15113 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h. */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 static int __attribute__((always_inline)) test(void) {}
15122 main ()
15126 return 0;
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (ac_try="$ac_compile"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_compile") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest.$ac_objext; then
15146 { echo "$as_me:$LINENO: result: yes" >&5
15147 echo "${ECHO_T}yes" >&6; }
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_ATTRIBUTE_always_inline 1
15151 _ACEOF
15153 else
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 { echo "$as_me:$LINENO: result: no" >&5
15158 echo "${ECHO_T}no" >&6; }
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15165 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15166 saved_CFLAGS="${CFLAGS}"
15167 CFLAGS="${CFLAGS} -ffunction-sections"
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15176 main ()
15178 int x = 1;
15180 return 0;
15182 _ACEOF
15183 rm -f conftest.$ac_objext
15184 if { (ac_try="$ac_compile"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_compile") 2>conftest.er1
15191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && {
15197 test -z "$ac_c_werror_flag" ||
15198 test ! -s conftest.err
15199 } && test -s conftest.$ac_objext; then
15200 { echo "$as_me:$LINENO: result: yes" >&5
15201 echo "${ECHO_T}yes" >&6; }
15202 saved_LDFLAGS="${LDFLAGS}"
15203 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15204 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15205 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15214 main ()
15216 int x = 1;
15218 return 0;
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_link") 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest$ac_exeext &&
15238 $as_test_x conftest$ac_exeext; then
15239 { echo "$as_me:$LINENO: result: yes" >&5
15240 echo "${ECHO_T}yes" >&6; }
15241 GC_CFLAGS="-ffunction-sections"
15242 GC_LDFLAGS="-Wl,--gc-sections"
15243 else
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 { echo "$as_me:$LINENO: result: no" >&5
15248 echo "${ECHO_T}no" >&6; }
15252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15253 conftest$ac_exeext conftest.$ac_ext
15254 LDFLAGS="${saved_LDFLAGS}"
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 { echo "$as_me:$LINENO: result: no" >&5
15260 echo "${ECHO_T}no" >&6; }
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 CFLAGS="${saved_CFLAGS}"
15269 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15270 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15271 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15272 { echo "$as_me:$LINENO: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6; }
15274 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15275 else
15276 { echo "$as_me:$LINENO: result: no" >&5
15277 echo "${ECHO_T}no" >&6; }
15278 AST_DECLARATION_AFTER_STATEMENT=
15282 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15283 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <resolv.h>
15292 main ()
15294 int foo = res_ninit(NULL);
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 { echo "$as_me:$LINENO: result: yes" >&5
15318 echo "${ECHO_T}yes" >&6; }
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_RES_NINIT 1
15322 _ACEOF
15324 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15325 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 #include <resolv.h>
15334 main ()
15336 int foo = res_ndestroy(NULL);
15338 return 0;
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 { echo "$as_me:$LINENO: result: yes" >&5
15360 echo "${ECHO_T}yes" >&6; }
15362 cat >>confdefs.h <<\_ACEOF
15363 #define HAVE_RES_NDESTROY 1
15364 _ACEOF
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 { echo "$as_me:$LINENO: result: no" >&5
15371 echo "${ECHO_T}no" >&6; }
15375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15376 conftest$ac_exeext conftest.$ac_ext
15377 else
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 { echo "$as_me:$LINENO: result: no" >&5
15382 echo "${ECHO_T}no" >&6; }
15386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15387 conftest$ac_exeext conftest.$ac_ext
15389 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15390 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15391 cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h. */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 #include <dlfcn.h>
15399 main ()
15401 int foo = RTLD_NOLOAD;
15403 return 0;
15405 _ACEOF
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_link") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest$ac_exeext &&
15423 $as_test_x conftest$ac_exeext; then
15424 { echo "$as_me:$LINENO: result: yes" >&5
15425 echo "${ECHO_T}yes" >&6; }
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_RTLD_NOLOAD 1
15429 _ACEOF
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 { echo "$as_me:$LINENO: result: no" >&5
15436 echo "${ECHO_T}no" >&6; }
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15443 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15444 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <netinet/in.h>
15453 main ()
15455 int foo = IP_MTU_DISCOVER;
15457 return 0;
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (ac_try="$ac_link"
15462 case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_link") 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } && {
15474 test -z "$ac_c_werror_flag" ||
15475 test ! -s conftest.err
15476 } && test -s conftest$ac_exeext &&
15477 $as_test_x conftest$ac_exeext; then
15478 { echo "$as_me:$LINENO: result: yes" >&5
15479 echo "${ECHO_T}yes" >&6; }
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_IP_MTU_DISCOVER 1
15483 _ACEOF
15485 else
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 { echo "$as_me:$LINENO: result: no" >&5
15490 echo "${ECHO_T}no" >&6; }
15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495 conftest$ac_exeext conftest.$ac_ext
15497 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15498 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15499 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15500 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15504 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15505 else
15506 # Is the header compilable?
15507 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15508 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 $ac_includes_default
15516 #include <libkern/OSAtomic.h>
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (ac_try="$ac_compile"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_compile") 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && {
15532 test -z "$ac_c_werror_flag" ||
15533 test ! -s conftest.err
15534 } && test -s conftest.$ac_objext; then
15535 ac_header_compiler=yes
15536 else
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 ac_header_compiler=no
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15545 echo "${ECHO_T}$ac_header_compiler" >&6; }
15547 # Is the header present?
15548 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15549 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h. */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 #include <libkern/OSAtomic.h>
15557 _ACEOF
15558 if { (ac_try="$ac_cpp conftest.$ac_ext"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15565 ac_status=$?
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } >/dev/null && {
15571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15572 test ! -s conftest.err
15573 }; then
15574 ac_header_preproc=yes
15575 else
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_header_preproc=no
15582 rm -f conftest.err conftest.$ac_ext
15583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15584 echo "${ECHO_T}$ac_header_preproc" >&6; }
15586 # So? What about this header?
15587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15588 yes:no: )
15589 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15590 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15592 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15593 ac_header_preproc=yes
15595 no:yes:* )
15596 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15597 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15599 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15601 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15603 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15605 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15607 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15610 esac
15611 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15612 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15613 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15618 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15619 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15622 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15624 cat >>confdefs.h <<_ACEOF
15625 #define HAVE_OSX_ATOMICS 1
15626 _ACEOF
15632 { echo "$as_me:$LINENO: checking for int" >&5
15633 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15634 if test "${ac_cv_type_int+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h. */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 $ac_includes_default
15644 typedef int ac__type_new_;
15646 main ()
15648 if ((ac__type_new_ *) 0)
15649 return 0;
15650 if (sizeof (ac__type_new_))
15651 return 0;
15653 return 0;
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (ac_try="$ac_compile"
15658 case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest.$ac_objext; then
15673 ac_cv_type_int=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_cv_type_int=no
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15684 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15686 # The cast to long int works around a bug in the HP C Compiler
15687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15689 # This bug is HP SR number 8606223364.
15690 { echo "$as_me:$LINENO: checking size of int" >&5
15691 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15692 if test "${ac_cv_sizeof_int+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 if test "$cross_compiling" = yes; then
15696 # Depending upon the size, compute the lo and hi bounds.
15697 cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h. */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 $ac_includes_default
15704 typedef int ac__type_sizeof_;
15706 main ()
15708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15709 test_array [0] = 0
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 ac_lo=0 ac_mid=0
15733 while :; do
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 $ac_includes_default
15741 typedef int ac__type_sizeof_;
15743 main ()
15745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15746 test_array [0] = 0
15749 return 0;
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest.$ac_objext; then
15769 ac_hi=$ac_mid; break
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_lo=`expr $ac_mid + 1`
15775 if test $ac_lo -le $ac_mid; then
15776 ac_lo= ac_hi=
15777 break
15779 ac_mid=`expr 2 '*' $ac_mid + 1`
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 done
15784 else
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 $ac_includes_default
15795 typedef int ac__type_sizeof_;
15797 main ()
15799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15800 test_array [0] = 0
15803 return 0;
15805 _ACEOF
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_compile") 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } && {
15820 test -z "$ac_c_werror_flag" ||
15821 test ! -s conftest.err
15822 } && test -s conftest.$ac_objext; then
15823 ac_hi=-1 ac_mid=-1
15824 while :; do
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 $ac_includes_default
15832 typedef int ac__type_sizeof_;
15834 main ()
15836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15837 test_array [0] = 0
15840 return 0;
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (ac_try="$ac_compile"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest.$ac_objext; then
15860 ac_lo=$ac_mid; break
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_hi=`expr '(' $ac_mid ')' - 1`
15866 if test $ac_mid -le $ac_hi; then
15867 ac_lo= ac_hi=
15868 break
15870 ac_mid=`expr 2 '*' $ac_mid`
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 done
15875 else
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_lo= ac_hi=
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 # Binary search between lo and hi bounds.
15887 while test "x$ac_lo" != "x$ac_hi"; do
15888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15896 typedef int ac__type_sizeof_;
15898 main ()
15900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15901 test_array [0] = 0
15904 return 0;
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 test -z "$ac_c_werror_flag" ||
15922 test ! -s conftest.err
15923 } && test -s conftest.$ac_objext; then
15924 ac_hi=$ac_mid
15925 else
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_lo=`expr '(' $ac_mid ')' + 1`
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 done
15934 case $ac_lo in
15935 ?*) ac_cv_sizeof_int=$ac_lo;;
15936 '') if test "$ac_cv_type_int" = yes; then
15937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15938 See \`config.log' for more details." >&5
15939 echo "$as_me: error: cannot compute sizeof (int)
15940 See \`config.log' for more details." >&2;}
15941 { (exit 77); exit 77; }; }
15942 else
15943 ac_cv_sizeof_int=0
15944 fi ;;
15945 esac
15946 else
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 $ac_includes_default
15954 typedef int ac__type_sizeof_;
15955 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15956 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15957 #include <stdio.h>
15958 #include <stdlib.h>
15960 main ()
15963 FILE *f = fopen ("conftest.val", "w");
15964 if (! f)
15965 return 1;
15966 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15968 long int i = longval ();
15969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15970 return 1;
15971 fprintf (f, "%ld\n", i);
15973 else
15975 unsigned long int i = ulongval ();
15976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15977 return 1;
15978 fprintf (f, "%lu\n", i);
15980 return ferror (f) || fclose (f) != 0;
15983 return 0;
15985 _ACEOF
15986 rm -f conftest$ac_exeext
15987 if { (ac_try="$ac_link"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_link") 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15997 { (case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_try") 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_cv_sizeof_int=`cat conftest.val`
16007 else
16008 echo "$as_me: program exited with status $ac_status" >&5
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ( exit $ac_status )
16013 if test "$ac_cv_type_int" = yes; then
16014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16015 See \`config.log' for more details." >&5
16016 echo "$as_me: error: cannot compute sizeof (int)
16017 See \`config.log' for more details." >&2;}
16018 { (exit 77); exit 77; }; }
16019 else
16020 ac_cv_sizeof_int=0
16023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16025 rm -f conftest.val
16027 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16028 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16032 cat >>confdefs.h <<_ACEOF
16033 #define SIZEOF_INT $ac_cv_sizeof_int
16034 _ACEOF
16038 # do the package library checks now
16041 if test "${USE_ALSA}" != "no"; then
16042 pbxlibdir=""
16043 if test "x${ALSA_DIR}" != "x"; then
16044 if test -d ${ALSA_DIR}/lib; then
16045 pbxlibdir="-L${ALSA_DIR}/lib"
16046 else
16047 pbxlibdir="-L${ALSA_DIR}"
16050 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16051 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16052 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055 ac_check_lib_save_LIBS=$LIBS
16056 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any GCC internal prototype to avoid an error.
16065 Use char because int might match the return type of a GCC
16066 builtin and then its argument prototype would still apply. */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 char snd_spcm_init ();
16072 main ()
16074 return snd_spcm_init ();
16076 return 0;
16078 _ACEOF
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (ac_try="$ac_link"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_link") 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } && {
16093 test -z "$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 } && test -s conftest$ac_exeext &&
16096 $as_test_x conftest$ac_exeext; then
16097 ac_cv_lib_asound_snd_spcm_init=yes
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_cv_lib_asound_snd_spcm_init=no
16105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16106 conftest$ac_exeext conftest.$ac_ext
16107 LIBS=$ac_check_lib_save_LIBS
16109 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16110 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16111 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16112 AST_ALSA_FOUND=yes
16113 else
16114 AST_ALSA_FOUND=no
16118 if test "${AST_ALSA_FOUND}" = "yes"; then
16119 ALSA_LIB="-lasound -lm -ldl"
16120 ALSA_HEADER_FOUND="1"
16121 if test "x${ALSA_DIR}" != "x"; then
16122 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16123 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16124 saved_cppflags="${CPPFLAGS}"
16125 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16126 if test "xalsa/asoundlib.h" != "x" ; then
16127 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16130 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16137 else
16138 # Is the header compilable?
16139 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16140 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 $ac_includes_default
16148 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16149 _ACEOF
16150 rm -f conftest.$ac_objext
16151 if { (ac_try="$ac_compile"
16152 case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16155 esac
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_compile") 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } && {
16164 test -z "$ac_c_werror_flag" ||
16165 test ! -s conftest.err
16166 } && test -s conftest.$ac_objext; then
16167 ac_header_compiler=yes
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 ac_header_compiler=no
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16177 echo "${ECHO_T}$ac_header_compiler" >&6; }
16179 # Is the header present?
16180 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16181 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16182 cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h. */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16189 _ACEOF
16190 if { (ac_try="$ac_cpp conftest.$ac_ext"
16191 case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194 esac
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null && {
16203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16204 test ! -s conftest.err
16205 }; then
16206 ac_header_preproc=yes
16207 else
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_header_preproc=no
16214 rm -f conftest.err conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16216 echo "${ECHO_T}$ac_header_preproc" >&6; }
16218 # So? What about this header?
16219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16220 yes:no: )
16221 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16222 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16224 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16225 ac_header_preproc=yes
16227 no:yes:* )
16228 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16229 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16231 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16233 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16235 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16237 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16239 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16242 esac
16243 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16244 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248 eval "$as_ac_Header=\$ac_header_preproc"
16250 ac_res=`eval echo '${'$as_ac_Header'}'`
16251 { echo "$as_me:$LINENO: result: $ac_res" >&5
16252 echo "${ECHO_T}$ac_res" >&6; }
16255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16256 ALSA_HEADER_FOUND=1
16257 else
16258 ALSA_HEADER_FOUND=0
16263 CPPFLAGS="${saved_cppflags}"
16264 else
16265 if test "xalsa/asoundlib.h" != "x" ; then
16266 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16267 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16268 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16269 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16273 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16274 else
16275 # Is the header compilable?
16276 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16277 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 $ac_includes_default
16285 #include <alsa/asoundlib.h>
16286 _ACEOF
16287 rm -f conftest.$ac_objext
16288 if { (ac_try="$ac_compile"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_compile") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } && {
16301 test -z "$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 } && test -s conftest.$ac_objext; then
16304 ac_header_compiler=yes
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_header_compiler=no
16312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16314 echo "${ECHO_T}$ac_header_compiler" >&6; }
16316 # Is the header present?
16317 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16318 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <alsa/asoundlib.h>
16326 _ACEOF
16327 if { (ac_try="$ac_cpp conftest.$ac_ext"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } >/dev/null && {
16340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 }; then
16343 ac_header_preproc=yes
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ac_header_preproc=no
16351 rm -f conftest.err conftest.$ac_ext
16352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16353 echo "${ECHO_T}$ac_header_preproc" >&6; }
16355 # So? What about this header?
16356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16357 yes:no: )
16358 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16359 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16361 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16362 ac_header_preproc=yes
16364 no:yes:* )
16365 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16366 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16368 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16370 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16372 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16373 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16374 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16376 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16379 esac
16380 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16381 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16382 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16387 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16388 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16391 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16392 ALSA_HEADER_FOUND=1
16393 else
16394 ALSA_HEADER_FOUND=0
16400 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16401 if test -n "${ALSA_MANDATORY}" ;
16402 then
16403 { echo "$as_me:$LINENO: ***" >&5
16404 echo "$as_me: ***" >&6;}
16405 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16406 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16407 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16408 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16409 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16410 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16411 exit 1
16413 ALSA_LIB=""
16414 ALSA_INCLUDE=""
16415 PBX_ALSA=0
16416 else
16417 PBX_ALSA=1
16419 cat >>confdefs.h <<_ACEOF
16420 #define HAVE_ALSA 1
16421 _ACEOF
16424 elif test -n "${ALSA_MANDATORY}";
16425 then
16426 { echo "$as_me:$LINENO: ***" >&5
16427 echo "$as_me: ***" >&6;}
16428 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16429 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16430 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16431 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16432 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16433 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16434 exit 1
16440 if test "${USE_CURSES}" != "no"; then
16441 pbxlibdir=""
16442 if test "x${CURSES_DIR}" != "x"; then
16443 if test -d ${CURSES_DIR}/lib; then
16444 pbxlibdir="-L${CURSES_DIR}/lib"
16445 else
16446 pbxlibdir="-L${CURSES_DIR}"
16449 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16450 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16451 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454 ac_check_lib_save_LIBS=$LIBS
16455 LIBS="-lcurses ${pbxlibdir} $LIBS"
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16463 /* Override any GCC internal prototype to avoid an error.
16464 Use char because int might match the return type of a GCC
16465 builtin and then its argument prototype would still apply. */
16466 #ifdef __cplusplus
16467 extern "C"
16468 #endif
16469 char initscr ();
16471 main ()
16473 return initscr ();
16475 return 0;
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (ac_try="$ac_link"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_link") 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest$ac_exeext &&
16495 $as_test_x conftest$ac_exeext; then
16496 ac_cv_lib_curses_initscr=yes
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_cv_lib_curses_initscr=no
16504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16505 conftest$ac_exeext conftest.$ac_ext
16506 LIBS=$ac_check_lib_save_LIBS
16508 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16509 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16510 if test $ac_cv_lib_curses_initscr = yes; then
16511 AST_CURSES_FOUND=yes
16512 else
16513 AST_CURSES_FOUND=no
16517 if test "${AST_CURSES_FOUND}" = "yes"; then
16518 CURSES_LIB="-lcurses "
16519 CURSES_HEADER_FOUND="1"
16520 if test "x${CURSES_DIR}" != "x"; then
16521 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16522 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16523 saved_cppflags="${CPPFLAGS}"
16524 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16525 if test "xcurses.h" != "x" ; then
16526 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16529 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 ac_res=`eval echo '${'$as_ac_Header'}'`
16534 { echo "$as_me:$LINENO: result: $ac_res" >&5
16535 echo "${ECHO_T}$ac_res" >&6; }
16536 else
16537 # Is the header compilable?
16538 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16539 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 $ac_includes_default
16547 #include <${CURSES_DIR}/include/curses.h>
16548 _ACEOF
16549 rm -f conftest.$ac_objext
16550 if { (ac_try="$ac_compile"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_compile") 2>conftest.er1
16557 ac_status=$?
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest.$ac_objext; then
16566 ac_header_compiler=yes
16567 else
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_header_compiler=no
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16576 echo "${ECHO_T}$ac_header_compiler" >&6; }
16578 # Is the header present?
16579 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16580 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 #include <${CURSES_DIR}/include/curses.h>
16588 _ACEOF
16589 if { (ac_try="$ac_cpp conftest.$ac_ext"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } >/dev/null && {
16602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 }; then
16605 ac_header_preproc=yes
16606 else
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_preproc=no
16613 rm -f conftest.err conftest.$ac_ext
16614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6; }
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16619 yes:no: )
16620 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16623 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16624 ac_header_preproc=yes
16626 no:yes:* )
16627 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16628 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16630 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16632 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16634 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16636 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16638 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16641 esac
16642 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16643 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647 eval "$as_ac_Header=\$ac_header_preproc"
16649 ac_res=`eval echo '${'$as_ac_Header'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655 CURSES_HEADER_FOUND=1
16656 else
16657 CURSES_HEADER_FOUND=0
16662 CPPFLAGS="${saved_cppflags}"
16663 else
16664 if test "xcurses.h" != "x" ; then
16665 if test "${ac_cv_header_curses_h+set}" = set; then
16666 { echo "$as_me:$LINENO: checking for curses.h" >&5
16667 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16668 if test "${ac_cv_header_curses_h+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16672 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16673 else
16674 # Is the header compilable?
16675 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16676 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 $ac_includes_default
16684 #include <curses.h>
16685 _ACEOF
16686 rm -f conftest.$ac_objext
16687 if { (ac_try="$ac_compile"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_compile") 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } && {
16700 test -z "$ac_c_werror_flag" ||
16701 test ! -s conftest.err
16702 } && test -s conftest.$ac_objext; then
16703 ac_header_compiler=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_header_compiler=no
16711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16713 echo "${ECHO_T}$ac_header_compiler" >&6; }
16715 # Is the header present?
16716 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16717 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16718 cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h. */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <curses.h>
16725 _ACEOF
16726 if { (ac_try="$ac_cpp conftest.$ac_ext"
16727 case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } >/dev/null && {
16739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16740 test ! -s conftest.err
16741 }; then
16742 ac_header_preproc=yes
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_header_preproc=no
16750 rm -f conftest.err conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752 echo "${ECHO_T}$ac_header_preproc" >&6; }
16754 # So? What about this header?
16755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16756 yes:no: )
16757 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16758 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16760 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16761 ac_header_preproc=yes
16763 no:yes:* )
16764 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16765 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16767 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16769 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16771 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16772 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16773 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16774 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16775 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16778 esac
16779 { echo "$as_me:$LINENO: checking for curses.h" >&5
16780 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16781 if test "${ac_cv_header_curses_h+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784 ac_cv_header_curses_h=$ac_header_preproc
16786 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16787 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16790 if test $ac_cv_header_curses_h = yes; then
16791 CURSES_HEADER_FOUND=1
16792 else
16793 CURSES_HEADER_FOUND=0
16799 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16800 if test -n "${CURSES_MANDATORY}" ;
16801 then
16802 { echo "$as_me:$LINENO: ***" >&5
16803 echo "$as_me: ***" >&6;}
16804 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16805 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16806 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16807 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16808 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16809 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16810 exit 1
16812 CURSES_LIB=""
16813 CURSES_INCLUDE=""
16814 PBX_CURSES=0
16815 else
16816 PBX_CURSES=1
16818 cat >>confdefs.h <<_ACEOF
16819 #define HAVE_CURSES 1
16820 _ACEOF
16823 elif test -n "${CURSES_MANDATORY}";
16824 then
16825 { echo "$as_me:$LINENO: ***" >&5
16826 echo "$as_me: ***" >&6;}
16827 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16828 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16829 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16830 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16831 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16832 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16833 exit 1
16838 GSM_INTERNAL="yes"
16840 GSM_SYSTEM="yes"
16841 if test "${USE_GSM}" != "no"; then
16842 if test "${GSM_DIR}" = "internal"; then
16843 GSM_SYSTEM="no"
16844 elif test "${GSM_DIR}" != ""; then
16845 GSM_INTERNAL="no"
16847 if test "${GSM_SYSTEM}" = "yes"; then
16848 gsmlibdir=""
16849 if test "x${GSM_DIR}" != "x"; then
16850 if test -d ${GSM_DIR}/lib; then
16851 gsmlibdir="-L${GSM_DIR}/lib"
16852 else
16853 gsmlibdir="-L${GSM_DIR}"
16856 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16857 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16858 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861 ac_check_lib_save_LIBS=$LIBS
16862 LIBS="-lgsm ${gsmlibdir} $LIBS"
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16870 /* Override any GCC internal prototype to avoid an error.
16871 Use char because int might match the return type of a GCC
16872 builtin and then its argument prototype would still apply. */
16873 #ifdef __cplusplus
16874 extern "C"
16875 #endif
16876 char gsm_create ();
16878 main ()
16880 return gsm_create ();
16882 return 0;
16884 _ACEOF
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (ac_try="$ac_link"
16887 case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_link") 2>conftest.er1
16893 ac_status=$?
16894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } && {
16899 test -z "$ac_c_werror_flag" ||
16900 test ! -s conftest.err
16901 } && test -s conftest$ac_exeext &&
16902 $as_test_x conftest$ac_exeext; then
16903 ac_cv_lib_gsm_gsm_create=yes
16904 else
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16908 ac_cv_lib_gsm_gsm_create=no
16911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16912 conftest$ac_exeext conftest.$ac_ext
16913 LIBS=$ac_check_lib_save_LIBS
16915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16916 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16917 if test $ac_cv_lib_gsm_gsm_create = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define HAVE_GSM 1
16921 _ACEOF
16925 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16926 if test "x${GSM_DIR}" != "x" ; then
16927 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
16928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16929 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
16930 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
16931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 ac_res=`eval echo '${'$as_ac_Header'}'`
16935 { echo "$as_me:$LINENO: result: $ac_res" >&5
16936 echo "${ECHO_T}$ac_res" >&6; }
16937 else
16938 # Is the header compilable?
16939 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
16940 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h. */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 $ac_includes_default
16948 #include <${GSM_DIR}/include/gsm.h>
16949 _ACEOF
16950 rm -f conftest.$ac_objext
16951 if { (ac_try="$ac_compile"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16968 else
16969 echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_compiler=no
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6; }
16979 # Is the header present?
16980 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
16981 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <${GSM_DIR}/include/gsm.h>
16989 _ACEOF
16990 if { (ac_try="$ac_cpp conftest.$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null && {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 }; then
17006 ac_header_preproc=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 yes:no: )
17021 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17027 no:yes:* )
17028 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17042 esac
17043 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17044 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 ac_res=`eval echo '${'$as_ac_Header'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052 echo "${ECHO_T}$ac_res" >&6; }
17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17056 GSM_HEADER_FOUND=1
17057 else
17058 GSM_HEADER_FOUND=0
17062 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17064 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17065 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 ac_res=`eval echo '${'$as_ac_Header'}'`
17070 { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17072 else
17073 # Is the header compilable?
17074 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17075 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 $ac_includes_default
17083 #include <${GSM_DIR}/include/gsm/gsm.h>
17084 _ACEOF
17085 rm -f conftest.$ac_objext
17086 if { (ac_try="$ac_compile"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_compile") 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } && {
17099 test -z "$ac_c_werror_flag" ||
17100 test ! -s conftest.err
17101 } && test -s conftest.$ac_objext; then
17102 ac_header_compiler=yes
17103 else
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_header_compiler=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17112 echo "${ECHO_T}$ac_header_compiler" >&6; }
17114 # Is the header present?
17115 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17116 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h. */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 #include <${GSM_DIR}/include/gsm/gsm.h>
17124 _ACEOF
17125 if { (ac_try="$ac_cpp conftest.$ac_ext"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17132 ac_status=$?
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } >/dev/null && {
17138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17139 test ! -s conftest.err
17140 }; then
17141 ac_header_preproc=yes
17142 else
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ac_header_preproc=no
17149 rm -f conftest.err conftest.$ac_ext
17150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17151 echo "${ECHO_T}$ac_header_preproc" >&6; }
17153 # So? What about this header?
17154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17155 yes:no: )
17156 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17157 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17159 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17160 ac_header_preproc=yes
17162 no:yes:* )
17163 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17164 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17165 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17166 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17167 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17168 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17169 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17170 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17171 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17172 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17173 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17174 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17177 esac
17178 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17179 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183 eval "$as_ac_Header=\$ac_header_preproc"
17185 ac_res=`eval echo '${'$as_ac_Header'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17191 GSM_GSM_HEADER_FOUND=1
17192 else
17193 GSM_GSM_HEADER_FOUND=0
17197 else
17198 if test "${ac_cv_header_gsm_h+set}" = set; then
17199 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17200 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17201 if test "${ac_cv_header_gsm_h+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17205 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17206 else
17207 # Is the header compilable?
17208 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17209 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 $ac_includes_default
17217 #include <gsm.h>
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (ac_try="$ac_compile"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224 esac
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_compile") 2>conftest.er1
17227 ac_status=$?
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } && {
17233 test -z "$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17235 } && test -s conftest.$ac_objext; then
17236 ac_header_compiler=yes
17237 else
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_header_compiler=no
17244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17246 echo "${ECHO_T}$ac_header_compiler" >&6; }
17248 # Is the header present?
17249 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17250 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17251 cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <gsm.h>
17258 _ACEOF
17259 if { (ac_try="$ac_cpp conftest.$ac_ext"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } >/dev/null && {
17272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 }; then
17275 ac_header_preproc=yes
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_header_preproc=no
17283 rm -f conftest.err conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17285 echo "${ECHO_T}$ac_header_preproc" >&6; }
17287 # So? What about this header?
17288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17289 yes:no: )
17290 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17291 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17293 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17294 ac_header_preproc=yes
17296 no:yes:* )
17297 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17298 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17300 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17302 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17303 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17304 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17306 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17308 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17311 esac
17312 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17313 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17314 if test "${ac_cv_header_gsm_h+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317 ac_cv_header_gsm_h=$ac_header_preproc
17319 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17320 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17323 if test $ac_cv_header_gsm_h = yes; then
17324 GSM_HEADER_FOUND=1
17325 else
17326 GSM_HEADER_FOUND=0
17330 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17331 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17332 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17333 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17337 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17338 else
17339 # Is the header compilable?
17340 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17341 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17342 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 $ac_includes_default
17349 #include <gsm/gsm.h>
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest.$ac_objext; then
17368 ac_header_compiler=yes
17369 else
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_header_compiler=no
17376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17378 echo "${ECHO_T}$ac_header_compiler" >&6; }
17380 # Is the header present?
17381 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17382 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 #include <gsm/gsm.h>
17390 _ACEOF
17391 if { (ac_try="$ac_cpp conftest.$ac_ext"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } >/dev/null && {
17404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 }; then
17407 ac_header_preproc=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_preproc=no
17415 rm -f conftest.err conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17417 echo "${ECHO_T}$ac_header_preproc" >&6; }
17419 # So? What about this header?
17420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17421 yes:no: )
17422 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17423 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17425 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17426 ac_header_preproc=yes
17428 no:yes:* )
17429 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17430 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17432 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17434 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17436 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17438 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17440 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17443 esac
17444 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17445 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17446 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17451 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17452 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17455 if test $ac_cv_header_gsm_gsm_h = yes; then
17456 GSM_GSM_HEADER_FOUND=1
17457 else
17458 GSM_GSM_HEADER_FOUND=0
17463 if test "${GSM_HEADER_FOUND}" = "0" ; then
17464 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17465 if test "x${GSM_MANDATORY}" = "xyes" ; then
17466 { echo "$as_me:$LINENO: ***" >&5
17467 echo "$as_me: ***" >&6;}
17468 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17469 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17470 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17471 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17472 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17473 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17474 exit 1
17478 GSM_OK=0
17479 if test "${GSM_HEADER_FOUND}" = "1" ; then
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_GSM_HEADER 1
17483 _ACEOF
17485 GSM_OK=1
17486 else
17487 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17489 cat >>confdefs.h <<_ACEOF
17490 #define HAVE_GSM_GSM_HEADER 1
17491 _ACEOF
17493 GSM_OK=1
17496 if test "${GSM_OK}" = "1" ; then
17497 GSM_LIB="-lgsm"
17498 if test "x${GSM_DIR}" != "x"; then
17499 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17500 GSM_INCLUDE="-I${GSM_DIR}/include"
17502 PBX_GSM=1
17503 GSM_INTERNAL="no"
17507 if test "${GSM_INTERNAL}" = "yes"; then
17508 PBX_GSM=1
17510 cat >>confdefs.h <<_ACEOF
17511 #define HAVE_GSM_HEADER 1
17512 _ACEOF
17518 if test "${USE_IKSEMEL}" != "no"; then
17519 pbxlibdir=""
17520 if test "x${IKSEMEL_DIR}" != "x"; then
17521 if test -d ${IKSEMEL_DIR}/lib; then
17522 pbxlibdir="-L${IKSEMEL_DIR}/lib"
17523 else
17524 pbxlibdir="-L${IKSEMEL_DIR}"
17527 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
17528 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
17529 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532 ac_check_lib_save_LIBS=$LIBS
17533 LIBS="-liksemel ${pbxlibdir} $LIBS"
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17544 #ifdef __cplusplus
17545 extern "C"
17546 #endif
17547 char iks_start_sasl ();
17549 main ()
17551 return iks_start_sasl ();
17553 return 0;
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_link") 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest$ac_exeext &&
17573 $as_test_x conftest$ac_exeext; then
17574 ac_cv_lib_iksemel_iks_start_sasl=yes
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_cv_lib_iksemel_iks_start_sasl=no
17582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583 conftest$ac_exeext conftest.$ac_ext
17584 LIBS=$ac_check_lib_save_LIBS
17586 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
17587 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
17588 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
17589 AST_IKSEMEL_FOUND=yes
17590 else
17591 AST_IKSEMEL_FOUND=no
17595 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
17596 IKSEMEL_LIB="-liksemel "
17597 IKSEMEL_HEADER_FOUND="1"
17598 if test "x${IKSEMEL_DIR}" != "x"; then
17599 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
17600 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
17601 saved_cppflags="${CPPFLAGS}"
17602 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
17603 if test "xiksemel.h" != "x" ; then
17604 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
17605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17606 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17607 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 ac_res=`eval echo '${'$as_ac_Header'}'`
17612 { echo "$as_me:$LINENO: result: $ac_res" >&5
17613 echo "${ECHO_T}$ac_res" >&6; }
17614 else
17615 # Is the header compilable?
17616 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
17617 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
17618 cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h. */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 $ac_includes_default
17625 #include <${IKSEMEL_DIR}/include/iksemel.h>
17626 _ACEOF
17627 rm -f conftest.$ac_objext
17628 if { (ac_try="$ac_compile"
17629 case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_compile") 2>conftest.er1
17635 ac_status=$?
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && {
17641 test -z "$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 } && test -s conftest.$ac_objext; then
17644 ac_header_compiler=yes
17645 else
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ac_header_compiler=no
17652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17654 echo "${ECHO_T}$ac_header_compiler" >&6; }
17656 # Is the header present?
17657 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
17658 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 #include <${IKSEMEL_DIR}/include/iksemel.h>
17666 _ACEOF
17667 if { (ac_try="$ac_cpp conftest.$ac_ext"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17674 ac_status=$?
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } >/dev/null && {
17680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 }; then
17683 ac_header_preproc=yes
17684 else
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_header_preproc=no
17691 rm -f conftest.err conftest.$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17693 echo "${ECHO_T}$ac_header_preproc" >&6; }
17695 # So? What about this header?
17696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17697 yes:no: )
17698 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17699 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17700 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
17701 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
17702 ac_header_preproc=yes
17704 no:yes:* )
17705 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
17706 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
17708 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
17709 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
17710 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
17711 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17712 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17713 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
17714 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
17715 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
17716 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
17719 esac
17720 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17721 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 eval "$as_ac_Header=\$ac_header_preproc"
17727 ac_res=`eval echo '${'$as_ac_Header'}'`
17728 { echo "$as_me:$LINENO: result: $ac_res" >&5
17729 echo "${ECHO_T}$ac_res" >&6; }
17732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17733 IKSEMEL_HEADER_FOUND=1
17734 else
17735 IKSEMEL_HEADER_FOUND=0
17740 CPPFLAGS="${saved_cppflags}"
17741 else
17742 if test "xiksemel.h" != "x" ; then
17743 if test "${ac_cv_header_iksemel_h+set}" = set; then
17744 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17745 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17746 if test "${ac_cv_header_iksemel_h+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17750 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
17751 else
17752 # Is the header compilable?
17753 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
17754 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
17755 cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h. */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 $ac_includes_default
17762 #include <iksemel.h>
17763 _ACEOF
17764 rm -f conftest.$ac_objext
17765 if { (ac_try="$ac_compile"
17766 case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_compile") 2>conftest.er1
17772 ac_status=$?
17773 grep -v '^ *+' conftest.er1 >conftest.err
17774 rm -f conftest.er1
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } && {
17778 test -z "$ac_c_werror_flag" ||
17779 test ! -s conftest.err
17780 } && test -s conftest.$ac_objext; then
17781 ac_header_compiler=yes
17782 else
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_header_compiler=no
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17791 echo "${ECHO_T}$ac_header_compiler" >&6; }
17793 # Is the header present?
17794 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
17795 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <iksemel.h>
17803 _ACEOF
17804 if { (ac_try="$ac_cpp conftest.$ac_ext"
17805 case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } >/dev/null && {
17817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17818 test ! -s conftest.err
17819 }; then
17820 ac_header_preproc=yes
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 ac_header_preproc=no
17828 rm -f conftest.err conftest.$ac_ext
17829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17830 echo "${ECHO_T}$ac_header_preproc" >&6; }
17832 # So? What about this header?
17833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17834 yes:no: )
17835 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17836 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17837 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
17838 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
17839 ac_header_preproc=yes
17841 no:yes:* )
17842 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
17843 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
17844 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
17845 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
17846 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
17847 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
17848 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17849 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17850 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
17851 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
17852 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
17853 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
17856 esac
17857 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17858 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17859 if test "${ac_cv_header_iksemel_h+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862 ac_cv_header_iksemel_h=$ac_header_preproc
17864 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17865 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
17868 if test $ac_cv_header_iksemel_h = yes; then
17869 IKSEMEL_HEADER_FOUND=1
17870 else
17871 IKSEMEL_HEADER_FOUND=0
17877 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
17878 if test -n "${IKSEMEL_MANDATORY}" ;
17879 then
17880 { echo "$as_me:$LINENO: ***" >&5
17881 echo "$as_me: ***" >&6;}
17882 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
17883 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
17884 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
17885 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
17886 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17887 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17888 exit 1
17890 IKSEMEL_LIB=""
17891 IKSEMEL_INCLUDE=""
17892 PBX_IKSEMEL=0
17893 else
17894 PBX_IKSEMEL=1
17896 cat >>confdefs.h <<_ACEOF
17897 #define HAVE_IKSEMEL 1
17898 _ACEOF
17901 elif test -n "${IKSEMEL_MANDATORY}";
17902 then
17903 { echo "$as_me:$LINENO: ***" >&5
17904 echo "$as_me: ***" >&6;}
17905 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
17906 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
17907 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17908 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17909 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17910 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17911 exit 1
17916 if test "${PBX_IKSEMEL}" = 1; then
17918 if test "${USE_GNUTLS}" != "no"; then
17919 pbxlibdir=""
17920 if test "x${GNUTLS_DIR}" != "x"; then
17921 if test -d ${GNUTLS_DIR}/lib; then
17922 pbxlibdir="-L${GNUTLS_DIR}/lib"
17923 else
17924 pbxlibdir="-L${GNUTLS_DIR}"
17927 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
17928 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
17929 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char gnutls_bye ();
17949 main ()
17951 return gnutls_bye ();
17953 return 0;
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_link") 2>conftest.er1
17964 ac_status=$?
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && {
17970 test -z "$ac_c_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest$ac_exeext &&
17973 $as_test_x conftest$ac_exeext; then
17974 ac_cv_lib_gnutls_gnutls_bye=yes
17975 else
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_cv_lib_gnutls_gnutls_bye=no
17982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17983 conftest$ac_exeext conftest.$ac_ext
17984 LIBS=$ac_check_lib_save_LIBS
17986 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
17987 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
17988 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
17989 AST_GNUTLS_FOUND=yes
17990 else
17991 AST_GNUTLS_FOUND=no
17995 if test "${AST_GNUTLS_FOUND}" = "yes"; then
17996 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
17997 GNUTLS_HEADER_FOUND="1"
17998 if test "x${GNUTLS_DIR}" != "x"; then
17999 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18000 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18001 saved_cppflags="${CPPFLAGS}"
18002 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18003 if test "xgnutls/gnutls.h" != "x" ; then
18004 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18006 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18007 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 ac_res=`eval echo '${'$as_ac_Header'}'`
18012 { echo "$as_me:$LINENO: result: $ac_res" >&5
18013 echo "${ECHO_T}$ac_res" >&6; }
18014 else
18015 # Is the header compilable?
18016 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18017 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18018 cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h. */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 $ac_includes_default
18025 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18026 _ACEOF
18027 rm -f conftest.$ac_objext
18028 if { (ac_try="$ac_compile"
18029 case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18032 esac
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_compile") 2>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } && {
18041 test -z "$ac_c_werror_flag" ||
18042 test ! -s conftest.err
18043 } && test -s conftest.$ac_objext; then
18044 ac_header_compiler=yes
18045 else
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18049 ac_header_compiler=no
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18054 echo "${ECHO_T}$ac_header_compiler" >&6; }
18056 # Is the header present?
18057 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18058 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h. */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18066 _ACEOF
18067 if { (ac_try="$ac_cpp conftest.$ac_ext"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18071 esac
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } >/dev/null && {
18080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18081 test ! -s conftest.err
18082 }; then
18083 ac_header_preproc=yes
18084 else
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18088 ac_header_preproc=no
18091 rm -f conftest.err conftest.$ac_ext
18092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18093 echo "${ECHO_T}$ac_header_preproc" >&6; }
18095 # So? What about this header?
18096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18097 yes:no: )
18098 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18099 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18101 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18102 ac_header_preproc=yes
18104 no:yes:* )
18105 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18106 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18107 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18108 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18109 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18110 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18111 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18112 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18113 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18114 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18115 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18116 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18119 esac
18120 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18121 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125 eval "$as_ac_Header=\$ac_header_preproc"
18127 ac_res=`eval echo '${'$as_ac_Header'}'`
18128 { echo "$as_me:$LINENO: result: $ac_res" >&5
18129 echo "${ECHO_T}$ac_res" >&6; }
18132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18133 GNUTLS_HEADER_FOUND=1
18134 else
18135 GNUTLS_HEADER_FOUND=0
18140 CPPFLAGS="${saved_cppflags}"
18141 else
18142 if test "xgnutls/gnutls.h" != "x" ; then
18143 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18144 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18145 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18146 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18151 else
18152 # Is the header compilable?
18153 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18154 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h. */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 $ac_includes_default
18162 #include <gnutls/gnutls.h>
18163 _ACEOF
18164 rm -f conftest.$ac_objext
18165 if { (ac_try="$ac_compile"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_compile") 2>conftest.er1
18172 ac_status=$?
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest.$ac_objext; then
18181 ac_header_compiler=yes
18182 else
18183 echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18186 ac_header_compiler=no
18189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18191 echo "${ECHO_T}$ac_header_compiler" >&6; }
18193 # Is the header present?
18194 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18195 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18196 cat >conftest.$ac_ext <<_ACEOF
18197 /* confdefs.h. */
18198 _ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18202 #include <gnutls/gnutls.h>
18203 _ACEOF
18204 if { (ac_try="$ac_cpp conftest.$ac_ext"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } >/dev/null && {
18217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 }; then
18220 ac_header_preproc=yes
18221 else
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_header_preproc=no
18228 rm -f conftest.err conftest.$ac_ext
18229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18230 echo "${ECHO_T}$ac_header_preproc" >&6; }
18232 # So? What about this header?
18233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18234 yes:no: )
18235 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18236 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18237 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18238 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18239 ac_header_preproc=yes
18241 no:yes:* )
18242 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18243 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18244 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18245 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18246 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18247 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18249 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18251 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18253 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18256 esac
18257 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18258 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18259 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18264 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18265 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18268 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18269 GNUTLS_HEADER_FOUND=1
18270 else
18271 GNUTLS_HEADER_FOUND=0
18277 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18278 if test -n "${GNUTLS_MANDATORY}" ;
18279 then
18280 { echo "$as_me:$LINENO: ***" >&5
18281 echo "$as_me: ***" >&6;}
18282 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18283 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18284 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18285 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18286 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18287 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18288 exit 1
18290 GNUTLS_LIB=""
18291 GNUTLS_INCLUDE=""
18292 PBX_GNUTLS=0
18293 else
18294 PBX_GNUTLS=1
18296 cat >>confdefs.h <<_ACEOF
18297 #define HAVE_GNUTLS 1
18298 _ACEOF
18301 elif test -n "${GNUTLS_MANDATORY}";
18302 then
18303 { echo "$as_me:$LINENO: ***" >&5
18304 echo "$as_me: ***" >&6;}
18305 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18306 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18307 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18308 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18309 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18310 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18311 exit 1
18317 if test "${USE_IMAP_TK}" != "no"; then
18318 if test "${IMAP_TK_DIR}" = ""; then
18319 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18320 if test -n "${IMAP_TK_MANDATORY}"; then
18321 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
18322 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
18323 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
18324 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
18325 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
18326 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
18327 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
18328 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
18331 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18332 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18333 saved_cppflags="${CPPFLAGS}"
18334 saved_libs="${LIBS}"
18335 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
18336 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18338 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
18339 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h. */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 #include "c-client.h"
18347 void mm_searched (MAILSTREAM *stream,unsigned long number)
18350 void mm_exists (MAILSTREAM *stream,unsigned long number)
18353 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18356 void mm_flags (MAILSTREAM *stream,unsigned long number)
18359 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18362 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18365 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18368 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18371 void mm_log (char *string,long errflg)
18374 void mm_dlog (char *string)
18377 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18380 void mm_critical (MAILSTREAM *stream)
18383 void mm_nocritical (MAILSTREAM *stream)
18386 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18389 void mm_fatal (char *string)
18393 main ()
18396 MAILSTREAM *foo = mail_open(NULL, "", 0);
18400 return 0;
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_link") 2>conftest.er1
18411 ac_status=$?
18412 grep -v '^ *+' conftest.er1 >conftest.err
18413 rm -f conftest.er1
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } && {
18417 test -z "$ac_c_werror_flag" ||
18418 test ! -s conftest.err
18419 } && test -s conftest$ac_exeext &&
18420 $as_test_x conftest$ac_exeext; then
18421 ac_cv_imap_tk="yes"
18422 else
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_cv_imap_tk="no"
18430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18431 conftest$ac_exeext conftest.$ac_ext
18432 if test "${ac_cv_imap_tk}" = "yes"; then
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #include "c-client.h"
18440 void mm_searched (MAILSTREAM *stream,unsigned long number)
18443 void mm_exists (MAILSTREAM *stream,unsigned long number)
18446 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18449 void mm_flags (MAILSTREAM *stream,unsigned long number)
18452 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18455 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18458 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18461 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18464 void mm_log (char *string,long errflg)
18467 void mm_dlog (char *string)
18470 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18473 void mm_critical (MAILSTREAM *stream)
18476 void mm_nocritical (MAILSTREAM *stream)
18479 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18482 void mm_fatal (char *string)
18486 main ()
18489 long check = mail_expunge_full(NULL, "", 0);
18493 return 0;
18495 _ACEOF
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18504 ac_status=$?
18505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } && {
18510 test -z "$ac_c_werror_flag" ||
18511 test ! -s conftest.err
18512 } && test -s conftest$ac_exeext &&
18513 $as_test_x conftest$ac_exeext; then
18514 ac_cv_imap_tk2006="yes"
18515 else
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18519 ac_cv_imap_tk2006="no"
18523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18524 conftest$ac_exeext conftest.$ac_ext
18526 CPPFLAGS="${saved_cppflags}"
18527 LIBS="${saved_libs}"
18528 if test "${ac_cv_imap_tk}" = "yes"; then
18529 { echo "$as_me:$LINENO: result: yes" >&5
18530 echo "${ECHO_T}yes" >&6; }
18531 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18532 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
18533 PBX_IMAP_TK=1
18535 cat >>confdefs.h <<\_ACEOF
18536 #define HAVE_IMAP_TK 1
18537 _ACEOF
18539 if test "${ac_cv_imap_tk2006}" = "yes"; then
18541 cat >>confdefs.h <<\_ACEOF
18542 #define HAVE_IMAP_TK2006 1
18543 _ACEOF
18546 elif test -n "${IMAP_TK_MANDATORY}"; then
18547 { echo "$as_me:$LINENO: result: no" >&5
18548 echo "${ECHO_T}no" >&6; }
18549 { echo "$as_me:$LINENO: ***" >&5
18550 echo "$as_me: ***" >&6;}
18551 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
18552 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
18553 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18554 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18555 { echo "$as_me:$LINENO: *** including --without-imap." >&5
18556 echo "$as_me: *** including --without-imap." >&6;}
18557 exit 1
18558 else
18559 { echo "$as_me:$LINENO: result: no" >&5
18560 echo "${ECHO_T}no" >&6; }
18564 # Needed by unixodbc
18566 if test "${USE_LTDL}" != "no"; then
18567 pbxlibdir=""
18568 if test "x${LTDL_DIR}" != "x"; then
18569 if test -d ${LTDL_DIR}/lib; then
18570 pbxlibdir="-L${LTDL_DIR}/lib"
18571 else
18572 pbxlibdir="-L${LTDL_DIR}"
18575 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
18576 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
18577 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580 ac_check_lib_save_LIBS=$LIBS
18581 LIBS="-lltdl ${pbxlibdir} $LIBS"
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18589 /* Override any GCC internal prototype to avoid an error.
18590 Use char because int might match the return type of a GCC
18591 builtin and then its argument prototype would still apply. */
18592 #ifdef __cplusplus
18593 extern "C"
18594 #endif
18595 char lt_dlinit ();
18597 main ()
18599 return lt_dlinit ();
18601 return 0;
18603 _ACEOF
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (ac_try="$ac_link"
18606 case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_link") 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } && {
18618 test -z "$ac_c_werror_flag" ||
18619 test ! -s conftest.err
18620 } && test -s conftest$ac_exeext &&
18621 $as_test_x conftest$ac_exeext; then
18622 ac_cv_lib_ltdl_lt_dlinit=yes
18623 else
18624 echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18627 ac_cv_lib_ltdl_lt_dlinit=no
18630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18631 conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18634 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
18635 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
18636 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
18637 AST_LTDL_FOUND=yes
18638 else
18639 AST_LTDL_FOUND=no
18643 if test "${AST_LTDL_FOUND}" = "yes"; then
18644 LTDL_LIB="-lltdl "
18645 LTDL_HEADER_FOUND="1"
18646 if test "x${LTDL_DIR}" != "x"; then
18647 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
18648 LTDL_INCLUDE="-I${LTDL_DIR}/include"
18649 saved_cppflags="${CPPFLAGS}"
18650 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
18651 if test "xltdl.h" != "x" ; then
18652 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
18653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18654 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18655 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_res=`eval echo '${'$as_ac_Header'}'`
18660 { echo "$as_me:$LINENO: result: $ac_res" >&5
18661 echo "${ECHO_T}$ac_res" >&6; }
18662 else
18663 # Is the header compilable?
18664 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
18665 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18673 #include <${LTDL_DIR}/include/ltdl.h>
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (ac_try="$ac_compile"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_compile") 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } && {
18689 test -z "$ac_c_werror_flag" ||
18690 test ! -s conftest.err
18691 } && test -s conftest.$ac_objext; then
18692 ac_header_compiler=yes
18693 else
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_header_compiler=no
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18702 echo "${ECHO_T}$ac_header_compiler" >&6; }
18704 # Is the header present?
18705 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
18706 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 #include <${LTDL_DIR}/include/ltdl.h>
18714 _ACEOF
18715 if { (ac_try="$ac_cpp conftest.$ac_ext"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } >/dev/null && {
18728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18729 test ! -s conftest.err
18730 }; then
18731 ac_header_preproc=yes
18732 else
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_header_preproc=no
18739 rm -f conftest.err conftest.$ac_ext
18740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18741 echo "${ECHO_T}$ac_header_preproc" >&6; }
18743 # So? What about this header?
18744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18745 yes:no: )
18746 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18747 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18748 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
18749 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
18750 ac_header_preproc=yes
18752 no:yes:* )
18753 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
18754 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
18756 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
18757 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
18758 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
18760 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
18761 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
18762 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
18763 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
18764 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
18767 esac
18768 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18769 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773 eval "$as_ac_Header=\$ac_header_preproc"
18775 ac_res=`eval echo '${'$as_ac_Header'}'`
18776 { echo "$as_me:$LINENO: result: $ac_res" >&5
18777 echo "${ECHO_T}$ac_res" >&6; }
18780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18781 LTDL_HEADER_FOUND=1
18782 else
18783 LTDL_HEADER_FOUND=0
18788 CPPFLAGS="${saved_cppflags}"
18789 else
18790 if test "xltdl.h" != "x" ; then
18791 if test "${ac_cv_header_ltdl_h+set}" = set; then
18792 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
18793 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
18794 if test "${ac_cv_header_ltdl_h+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
18798 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
18799 else
18800 # Is the header compilable?
18801 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
18802 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 $ac_includes_default
18810 #include <ltdl.h>
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (ac_try="$ac_compile"
18814 case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_compile") 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && {
18826 test -z "$ac_c_werror_flag" ||
18827 test ! -s conftest.err
18828 } && test -s conftest.$ac_objext; then
18829 ac_header_compiler=yes
18830 else
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18834 ac_header_compiler=no
18837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18839 echo "${ECHO_T}$ac_header_compiler" >&6; }
18841 # Is the header present?
18842 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
18843 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 #include <ltdl.h>
18851 _ACEOF
18852 if { (ac_try="$ac_cpp conftest.$ac_ext"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } >/dev/null && {
18865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 }; then
18868 ac_header_preproc=yes
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_header_preproc=no
18876 rm -f conftest.err conftest.$ac_ext
18877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18878 echo "${ECHO_T}$ac_header_preproc" >&6; }
18880 # So? What about this header?
18881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18882 yes:no: )
18883 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18884 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
18886 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
18887 ac_header_preproc=yes
18889 no:yes:* )
18890 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
18891 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
18893 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
18894 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
18895 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
18897 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
18899 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
18900 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
18901 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
18904 esac
18905 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
18906 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
18907 if test "${ac_cv_header_ltdl_h+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910 ac_cv_header_ltdl_h=$ac_header_preproc
18912 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
18913 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
18916 if test $ac_cv_header_ltdl_h = yes; then
18917 LTDL_HEADER_FOUND=1
18918 else
18919 LTDL_HEADER_FOUND=0
18925 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
18926 if test -n "${LTDL_MANDATORY}" ;
18927 then
18928 { echo "$as_me:$LINENO: ***" >&5
18929 echo "$as_me: ***" >&6;}
18930 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
18931 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
18932 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
18933 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
18934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
18935 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
18936 exit 1
18938 LTDL_LIB=""
18939 LTDL_INCLUDE=""
18940 PBX_LTDL=0
18941 else
18942 PBX_LTDL=1
18944 cat >>confdefs.h <<_ACEOF
18945 #define HAVE_LTDL 1
18946 _ACEOF
18949 elif test -n "${LTDL_MANDATORY}";
18950 then
18951 { echo "$as_me:$LINENO: ***" >&5
18952 echo "$as_me: ***" >&6;}
18953 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
18954 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
18955 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18956 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18957 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
18958 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
18959 exit 1
18964 ac_ext=cpp
18965 ac_cpp='$CXXCPP $CPPFLAGS'
18966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18971 if test "${USE_KDE}" != "no"; then
18972 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
18973 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
18974 saved_libs="${LIBS}"
18975 saved_cppflags="${CPPFLAGS}"
18976 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
18977 if test -d ${KDE_DIR}/lib; then
18978 kdelibdir="${KDE_DIR}/lib"
18979 else
18980 kdelibdir="${KDE_DIR}"
18982 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include "kcrash.h"
18993 main ()
18995 KCrash::defaultCrashHandler(1);
18997 return 0;
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19009 ac_status=$?
19010 grep -v '^ *+' conftest.er1 >conftest.err
19011 rm -f conftest.er1
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } && {
19015 test -z "$ac_cxx_werror_flag" ||
19016 test ! -s conftest.err
19017 } && test -s conftest$ac_exeext &&
19018 $as_test_x conftest$ac_exeext; then
19019 ac_cv_lib_kde_crash="yes"
19020 else
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19024 ac_cv_lib_kde_crash="no"
19027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19028 conftest$ac_exeext conftest.$ac_ext
19030 LIBS="${saved_libs}"
19031 CPPFLAGS="${saved_cppflags}"
19033 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19034 { echo "$as_me:$LINENO: result: yes" >&5
19035 echo "${ECHO_T}yes" >&6; }
19036 KDE_LIB="-lkdecore -lkdeui"
19037 if test "${KDE_DIR}" != ""; then
19038 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19039 KDE_INCLUDE="-I${KDE_DIR}/include"
19041 PBX_KDE=1
19043 cat >>confdefs.h <<\_ACEOF
19044 #define HAVE_LIBKDE 1
19045 _ACEOF
19047 elif test -n "${KDE_MANDATORY}"; then
19048 { echo "$as_me:$LINENO: result: no" >&5
19049 echo "${ECHO_T}no" >&6; }
19050 { echo "$as_me:$LINENO: ***" >&5
19051 echo "$as_me: ***" >&6;}
19052 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
19053 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
19054 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19055 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19056 { echo "$as_me:$LINENO: *** including --without-kde." >&5
19057 echo "$as_me: *** including --without-kde." >&6;}
19058 exit 1
19059 else
19060 { echo "$as_me:$LINENO: result: no" >&5
19061 echo "${ECHO_T}no" >&6; }
19064 if test "${PBX_KDE}" = 1; then
19065 if test -n "$ac_tool_prefix"; then
19066 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
19067 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19070 if test "${ac_cv_path_KDEINIT+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073 case $KDEINIT in
19074 [\\/]* | ?:[\\/]*)
19075 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19079 for as_dir in $PATH
19081 IFS=$as_save_IFS
19082 test -z "$as_dir" && as_dir=.
19083 for ac_exec_ext in '' $ac_executable_extensions; do
19084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19085 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19087 break 2
19089 done
19090 done
19091 IFS=$as_save_IFS
19094 esac
19096 KDEINIT=$ac_cv_path_KDEINIT
19097 if test -n "$KDEINIT"; then
19098 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
19099 echo "${ECHO_T}$KDEINIT" >&6; }
19100 else
19101 { echo "$as_me:$LINENO: result: no" >&5
19102 echo "${ECHO_T}no" >&6; }
19107 if test -z "$ac_cv_path_KDEINIT"; then
19108 ac_pt_KDEINIT=$KDEINIT
19109 # Extract the first word of "kdeinit", so it can be a program name with args.
19110 set dummy kdeinit; ac_word=$2
19111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19113 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116 case $ac_pt_KDEINIT in
19117 [\\/]* | ?:[\\/]*)
19118 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19122 for as_dir in $PATH
19124 IFS=$as_save_IFS
19125 test -z "$as_dir" && as_dir=.
19126 for ac_exec_ext in '' $ac_executable_extensions; do
19127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19128 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19130 break 2
19132 done
19133 done
19134 IFS=$as_save_IFS
19137 esac
19139 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19140 if test -n "$ac_pt_KDEINIT"; then
19141 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
19142 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19143 else
19144 { echo "$as_me:$LINENO: result: no" >&5
19145 echo "${ECHO_T}no" >&6; }
19148 if test "x$ac_pt_KDEINIT" = x; then
19149 KDEINIT="No"
19150 else
19151 case $cross_compiling:$ac_tool_warned in
19152 yes:)
19153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19154 whose name does not start with the host triplet. If you think this
19155 configuration is useful to you, please write to autoconf@gnu.org." >&5
19156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19157 whose name does not start with the host triplet. If you think this
19158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19159 ac_tool_warned=yes ;;
19160 esac
19161 KDEINIT=$ac_pt_KDEINIT
19163 else
19164 KDEINIT="$ac_cv_path_KDEINIT"
19167 if test ! x"${KDEINIT}" = xNo; then
19168 KDEDIR=$(${DIRNAME} ${KDEINIT})
19169 KDEDIR=$(${DIRNAME} ${KDEDIR})
19174 ac_ext=c
19175 ac_cpp='$CPP $CPPFLAGS'
19176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19182 if test "${USE_MISDN}" != "no"; then
19183 pbxlibdir=""
19184 if test "x${MISDN_DIR}" != "x"; then
19185 if test -d ${MISDN_DIR}/lib; then
19186 pbxlibdir="-L${MISDN_DIR}/lib"
19187 else
19188 pbxlibdir="-L${MISDN_DIR}"
19191 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19192 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19193 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 ac_check_lib_save_LIBS=$LIBS
19197 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19198 cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h. */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19205 /* Override any GCC internal prototype to avoid an error.
19206 Use char because int might match the return type of a GCC
19207 builtin and then its argument prototype would still apply. */
19208 #ifdef __cplusplus
19209 extern "C"
19210 #endif
19211 char mISDN_open ();
19213 main ()
19215 return mISDN_open ();
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_link") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest$ac_exeext &&
19237 $as_test_x conftest$ac_exeext; then
19238 ac_cv_lib_mISDN_mISDN_open=yes
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_lib_mISDN_mISDN_open=no
19246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19250 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19251 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19252 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19253 AST_MISDN_FOUND=yes
19254 else
19255 AST_MISDN_FOUND=no
19259 if test "${AST_MISDN_FOUND}" = "yes"; then
19260 MISDN_LIB="-lmISDN "
19261 MISDN_HEADER_FOUND="1"
19262 if test "x${MISDN_DIR}" != "x"; then
19263 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
19264 MISDN_INCLUDE="-I${MISDN_DIR}/include"
19265 saved_cppflags="${CPPFLAGS}"
19266 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
19267 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19268 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
19269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19270 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19271 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 ac_res=`eval echo '${'$as_ac_Header'}'`
19276 { echo "$as_me:$LINENO: result: $ac_res" >&5
19277 echo "${ECHO_T}$ac_res" >&6; }
19278 else
19279 # Is the header compilable?
19280 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
19281 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19288 $ac_includes_default
19289 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19290 _ACEOF
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest.$ac_objext; then
19308 ac_header_compiler=yes
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_header_compiler=no
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19318 echo "${ECHO_T}$ac_header_compiler" >&6; }
19320 # Is the header present?
19321 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
19322 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19330 _ACEOF
19331 if { (ac_try="$ac_cpp conftest.$ac_ext"
19332 case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19338 ac_status=$?
19339 grep -v '^ *+' conftest.er1 >conftest.err
19340 rm -f conftest.er1
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } >/dev/null && {
19344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 }; then
19347 ac_header_preproc=yes
19348 else
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ac_header_preproc=no
19355 rm -f conftest.err conftest.$ac_ext
19356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19357 echo "${ECHO_T}$ac_header_preproc" >&6; }
19359 # So? What about this header?
19360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19361 yes:no: )
19362 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19363 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19365 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19366 ac_header_preproc=yes
19368 no:yes:* )
19369 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19370 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19371 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19372 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19373 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19374 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19375 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19376 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19377 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19378 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19380 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19383 esac
19384 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19385 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 eval "$as_ac_Header=\$ac_header_preproc"
19391 ac_res=`eval echo '${'$as_ac_Header'}'`
19392 { echo "$as_me:$LINENO: result: $ac_res" >&5
19393 echo "${ECHO_T}$ac_res" >&6; }
19396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19397 MISDN_HEADER_FOUND=1
19398 else
19399 MISDN_HEADER_FOUND=0
19404 CPPFLAGS="${saved_cppflags}"
19405 else
19406 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19407 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19408 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19409 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19410 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19414 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19415 else
19416 # Is the header compilable?
19417 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19418 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h. */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 $ac_includes_default
19426 #include <mISDNuser/mISDNlib.h>
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_compile") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest.$ac_objext; then
19445 ac_header_compiler=yes
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ac_header_compiler=no
19453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19455 echo "${ECHO_T}$ac_header_compiler" >&6; }
19457 # Is the header present?
19458 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
19459 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h. */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 #include <mISDNuser/mISDNlib.h>
19467 _ACEOF
19468 if { (ac_try="$ac_cpp conftest.$ac_ext"
19469 case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } >/dev/null && {
19481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 }; then
19484 ac_header_preproc=yes
19485 else
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_header_preproc=no
19492 rm -f conftest.err conftest.$ac_ext
19493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19494 echo "${ECHO_T}$ac_header_preproc" >&6; }
19496 # So? What about this header?
19497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19498 yes:no: )
19499 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19500 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19502 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19503 ac_header_preproc=yes
19505 no:yes:* )
19506 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19511 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19512 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19513 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19515 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19517 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19520 esac
19521 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19522 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19523 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
19528 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19529 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19532 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
19533 MISDN_HEADER_FOUND=1
19534 else
19535 MISDN_HEADER_FOUND=0
19541 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
19542 if test -n "${MISDN_MANDATORY}" ;
19543 then
19544 { echo "$as_me:$LINENO: ***" >&5
19545 echo "$as_me: ***" >&6;}
19546 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
19547 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
19548 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
19549 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
19550 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19551 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19552 exit 1
19554 MISDN_LIB=""
19555 MISDN_INCLUDE=""
19556 PBX_MISDN=0
19557 else
19558 PBX_MISDN=1
19560 cat >>confdefs.h <<_ACEOF
19561 #define HAVE_MISDN 1
19562 _ACEOF
19565 elif test -n "${MISDN_MANDATORY}";
19566 then
19567 { echo "$as_me:$LINENO: ***" >&5
19568 echo "$as_me: ***" >&6;}
19569 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
19570 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
19571 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19572 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19573 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19574 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19575 exit 1
19580 if test "${PBX_MISDN}" = 1; then
19582 if test "${USE_ISDNNET}" != "no"; then
19583 pbxlibdir=""
19584 if test "x${ISDNNET_DIR}" != "x"; then
19585 if test -d ${ISDNNET_DIR}/lib; then
19586 pbxlibdir="-L${ISDNNET_DIR}/lib"
19587 else
19588 pbxlibdir="-L${ISDNNET_DIR}"
19591 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
19592 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
19593 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 char init_manager ();
19613 main ()
19615 return init_manager ();
19617 return 0;
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19638 ac_cv_lib_isdnnet_init_manager=yes
19639 else
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 ac_cv_lib_isdnnet_init_manager=no
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19650 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
19651 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
19652 if test $ac_cv_lib_isdnnet_init_manager = yes; then
19653 AST_ISDNNET_FOUND=yes
19654 else
19655 AST_ISDNNET_FOUND=no
19659 if test "${AST_ISDNNET_FOUND}" = "yes"; then
19660 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
19661 ISDNNET_HEADER_FOUND="1"
19662 if test "x${ISDNNET_DIR}" != "x"; then
19663 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
19664 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
19665 saved_cppflags="${CPPFLAGS}"
19666 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
19667 if test "xmISDNuser/isdn_net.h" != "x" ; then
19668 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
19669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19670 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
19671 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 ac_res=`eval echo '${'$as_ac_Header'}'`
19676 { echo "$as_me:$LINENO: result: $ac_res" >&5
19677 echo "${ECHO_T}$ac_res" >&6; }
19678 else
19679 # Is the header compilable?
19680 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
19681 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
19682 cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h. */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19688 $ac_includes_default
19689 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_compile") 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest.$ac_objext; then
19708 ac_header_compiler=yes
19709 else
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_header_compiler=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19718 echo "${ECHO_T}$ac_header_compiler" >&6; }
19720 # Is the header present?
19721 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
19722 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
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 <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
19730 _ACEOF
19731 if { (ac_try="$ac_cpp conftest.$ac_ext"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } >/dev/null && {
19744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 }; then
19747 ac_header_preproc=yes
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 ac_header_preproc=no
19755 rm -f conftest.err conftest.$ac_ext
19756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19757 echo "${ECHO_T}$ac_header_preproc" >&6; }
19759 # So? What about this header?
19760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19761 yes:no: )
19762 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
19763 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
19765 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
19766 ac_header_preproc=yes
19768 no:yes:* )
19769 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
19770 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
19772 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
19774 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
19776 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
19778 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
19780 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
19783 esac
19784 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
19785 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 eval "$as_ac_Header=\$ac_header_preproc"
19791 ac_res=`eval echo '${'$as_ac_Header'}'`
19792 { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19797 ISDNNET_HEADER_FOUND=1
19798 else
19799 ISDNNET_HEADER_FOUND=0
19804 CPPFLAGS="${saved_cppflags}"
19805 else
19806 if test "xmISDNuser/isdn_net.h" != "x" ; then
19807 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19808 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
19809 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19810 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
19814 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
19815 else
19816 # Is the header compilable?
19817 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
19818 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h. */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 $ac_includes_default
19826 #include <mISDNuser/isdn_net.h>
19827 _ACEOF
19828 rm -f conftest.$ac_objext
19829 if { (ac_try="$ac_compile"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_compile") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest.$ac_objext; then
19845 ac_header_compiler=yes
19846 else
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_header_compiler=no
19853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19855 echo "${ECHO_T}$ac_header_compiler" >&6; }
19857 # Is the header present?
19858 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
19859 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #include <mISDNuser/isdn_net.h>
19867 _ACEOF
19868 if { (ac_try="$ac_cpp conftest.$ac_ext"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } >/dev/null && {
19881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 }; then
19884 ac_header_preproc=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_header_preproc=no
19892 rm -f conftest.err conftest.$ac_ext
19893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19894 echo "${ECHO_T}$ac_header_preproc" >&6; }
19896 # So? What about this header?
19897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19898 yes:no: )
19899 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
19900 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
19902 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
19903 ac_header_preproc=yes
19905 no:yes:* )
19906 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
19907 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
19909 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
19911 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
19913 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
19915 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
19916 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
19917 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
19920 esac
19921 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
19922 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19923 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
19928 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
19929 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
19932 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
19933 ISDNNET_HEADER_FOUND=1
19934 else
19935 ISDNNET_HEADER_FOUND=0
19941 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
19942 if test -n "${ISDNNET_MANDATORY}" ;
19943 then
19944 { echo "$as_me:$LINENO: ***" >&5
19945 echo "$as_me: ***" >&6;}
19946 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
19947 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
19948 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
19949 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
19950 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
19951 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
19952 exit 1
19954 ISDNNET_LIB=""
19955 ISDNNET_INCLUDE=""
19956 PBX_ISDNNET=0
19957 else
19958 PBX_ISDNNET=1
19960 cat >>confdefs.h <<_ACEOF
19961 #define HAVE_ISDNNET 1
19962 _ACEOF
19965 elif test -n "${ISDNNET_MANDATORY}";
19966 then
19967 { echo "$as_me:$LINENO: ***" >&5
19968 echo "$as_me: ***" >&6;}
19969 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
19970 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
19971 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19972 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19973 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
19974 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
19975 exit 1
19980 if test "${USE_SUPPSERV}" != "no"; then
19981 pbxlibdir=""
19982 if test "x${SUPPSERV_DIR}" != "x"; then
19983 if test -d ${SUPPSERV_DIR}/lib; then
19984 pbxlibdir="-L${SUPPSERV_DIR}/lib"
19985 else
19986 pbxlibdir="-L${SUPPSERV_DIR}"
19989 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
19990 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
19991 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994 ac_check_lib_save_LIBS=$LIBS
19995 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
19996 cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h. */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20003 /* Override any GCC internal prototype to avoid an error.
20004 Use char because int might match the return type of a GCC
20005 builtin and then its argument prototype would still apply. */
20006 #ifdef __cplusplus
20007 extern "C"
20008 #endif
20009 char encodeFac ();
20011 main ()
20013 return encodeFac ();
20015 return 0;
20017 _ACEOF
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_link") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest$ac_exeext &&
20035 $as_test_x conftest$ac_exeext; then
20036 ac_cv_lib_suppserv_encodeFac=yes
20037 else
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ac_cv_lib_suppserv_encodeFac=no
20044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20045 conftest$ac_exeext conftest.$ac_ext
20046 LIBS=$ac_check_lib_save_LIBS
20048 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
20049 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20050 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20051 AST_SUPPSERV_FOUND=yes
20052 else
20053 AST_SUPPSERV_FOUND=no
20057 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20058 SUPPSERV_LIB="-lsuppserv "
20059 SUPPSERV_HEADER_FOUND="1"
20060 if test "x${SUPPSERV_DIR}" != "x"; then
20061 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
20062 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
20063 saved_cppflags="${CPPFLAGS}"
20064 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
20065 if test "xmISDNuser/suppserv.h" != "x" ; then
20066 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
20067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20068 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20069 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 ac_res=`eval echo '${'$as_ac_Header'}'`
20074 { echo "$as_me:$LINENO: result: $ac_res" >&5
20075 echo "${ECHO_T}$ac_res" >&6; }
20076 else
20077 # Is the header compilable?
20078 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
20079 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 $ac_includes_default
20087 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20088 _ACEOF
20089 rm -f conftest.$ac_objext
20090 if { (ac_try="$ac_compile"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_compile") 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && {
20103 test -z "$ac_c_werror_flag" ||
20104 test ! -s conftest.err
20105 } && test -s conftest.$ac_objext; then
20106 ac_header_compiler=yes
20107 else
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20111 ac_header_compiler=no
20114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20116 echo "${ECHO_T}$ac_header_compiler" >&6; }
20118 # Is the header present?
20119 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
20120 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h. */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20128 _ACEOF
20129 if { (ac_try="$ac_cpp conftest.$ac_ext"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } >/dev/null && {
20142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 }; then
20145 ac_header_preproc=yes
20146 else
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_header_preproc=no
20153 rm -f conftest.err conftest.$ac_ext
20154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20155 echo "${ECHO_T}$ac_header_preproc" >&6; }
20157 # So? What about this header?
20158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20159 yes:no: )
20160 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20161 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20162 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20163 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20164 ac_header_preproc=yes
20166 no:yes:* )
20167 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
20168 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20170 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20172 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20173 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20174 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20175 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20176 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20177 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20178 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20181 esac
20182 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20183 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187 eval "$as_ac_Header=\$ac_header_preproc"
20189 ac_res=`eval echo '${'$as_ac_Header'}'`
20190 { echo "$as_me:$LINENO: result: $ac_res" >&5
20191 echo "${ECHO_T}$ac_res" >&6; }
20194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20195 SUPPSERV_HEADER_FOUND=1
20196 else
20197 SUPPSERV_HEADER_FOUND=0
20202 CPPFLAGS="${saved_cppflags}"
20203 else
20204 if test "xmISDNuser/suppserv.h" != "x" ; then
20205 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20206 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20207 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20208 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20212 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20213 else
20214 # Is the header compilable?
20215 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20216 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h. */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 $ac_includes_default
20224 #include <mISDNuser/suppserv.h>
20225 _ACEOF
20226 rm -f conftest.$ac_objext
20227 if { (ac_try="$ac_compile"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_header_compiler=yes
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_header_compiler=no
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20253 echo "${ECHO_T}$ac_header_compiler" >&6; }
20255 # Is the header present?
20256 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20257 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #include <mISDNuser/suppserv.h>
20265 _ACEOF
20266 if { (ac_try="$ac_cpp conftest.$ac_ext"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } >/dev/null && {
20279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 }; then
20282 ac_header_preproc=yes
20283 else
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_header_preproc=no
20290 rm -f conftest.err conftest.$ac_ext
20291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20292 echo "${ECHO_T}$ac_header_preproc" >&6; }
20294 # So? What about this header?
20295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20296 yes:no: )
20297 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20298 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20300 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20301 ac_header_preproc=yes
20303 no:yes:* )
20304 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20305 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20307 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20309 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20311 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20313 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20315 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20318 esac
20319 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20320 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20321 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
20326 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20327 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20330 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20331 SUPPSERV_HEADER_FOUND=1
20332 else
20333 SUPPSERV_HEADER_FOUND=0
20339 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20340 if test -n "${SUPPSERV_MANDATORY}" ;
20341 then
20342 { echo "$as_me:$LINENO: ***" >&5
20343 echo "$as_me: ***" >&6;}
20344 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20345 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20346 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20347 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20348 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20349 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20350 exit 1
20352 SUPPSERV_LIB=""
20353 SUPPSERV_INCLUDE=""
20354 PBX_SUPPSERV=0
20355 else
20356 PBX_SUPPSERV=1
20358 cat >>confdefs.h <<_ACEOF
20359 #define HAVE_SUPPSERV 1
20360 _ACEOF
20363 elif test -n "${SUPPSERV_MANDATORY}";
20364 then
20365 { echo "$as_me:$LINENO: ***" >&5
20366 echo "$as_me: ***" >&6;}
20367 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20368 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20369 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20370 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20371 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20372 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20373 exit 1
20377 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20378 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20379 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20380 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20384 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20385 else
20386 # Is the header compilable?
20387 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20388 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 $ac_includes_default
20396 #include <linux/mISDNdsp.h>
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (ac_try="$ac_compile"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_compile") 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest.$ac_objext; then
20415 ac_header_compiler=yes
20416 else
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ac_header_compiler=no
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20425 echo "${ECHO_T}$ac_header_compiler" >&6; }
20427 # Is the header present?
20428 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20429 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <linux/mISDNdsp.h>
20437 _ACEOF
20438 if { (ac_try="$ac_cpp conftest.$ac_ext"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } >/dev/null && {
20451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 }; then
20454 ac_header_preproc=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_header_preproc=no
20462 rm -f conftest.err conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20464 echo "${ECHO_T}$ac_header_preproc" >&6; }
20466 # So? What about this header?
20467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20468 yes:no: )
20469 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20470 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20472 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20473 ac_header_preproc=yes
20475 no:yes:* )
20476 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20477 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20479 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20481 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20483 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20485 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20487 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20490 esac
20491 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20492 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20493 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
20498 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20499 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20502 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505 #define MISDN_1_2 1
20506 _ACEOF
20514 if test "${USE_NBS}" != "no"; then
20515 pbxlibdir=""
20516 if test "x${NBS_DIR}" != "x"; then
20517 if test -d ${NBS_DIR}/lib; then
20518 pbxlibdir="-L${NBS_DIR}/lib"
20519 else
20520 pbxlibdir="-L${NBS_DIR}"
20523 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20524 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20525 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528 ac_check_lib_save_LIBS=$LIBS
20529 LIBS="-lnbs ${pbxlibdir} $LIBS"
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20537 /* Override any GCC internal prototype to avoid an error.
20538 Use char because int might match the return type of a GCC
20539 builtin and then its argument prototype would still apply. */
20540 #ifdef __cplusplus
20541 extern "C"
20542 #endif
20543 char nbs_connect ();
20545 main ()
20547 return nbs_connect ();
20549 return 0;
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 ac_cv_lib_nbs_nbs_connect=yes
20571 else
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_lib_nbs_nbs_connect=no
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20580 LIBS=$ac_check_lib_save_LIBS
20582 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20583 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20584 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20585 AST_NBS_FOUND=yes
20586 else
20587 AST_NBS_FOUND=no
20591 if test "${AST_NBS_FOUND}" = "yes"; then
20592 NBS_LIB="-lnbs "
20593 NBS_HEADER_FOUND="1"
20594 if test "x${NBS_DIR}" != "x"; then
20595 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20596 NBS_INCLUDE="-I${NBS_DIR}/include"
20597 saved_cppflags="${CPPFLAGS}"
20598 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
20599 if test "xnbs.h" != "x" ; then
20600 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20603 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_res=`eval echo '${'$as_ac_Header'}'`
20608 { echo "$as_me:$LINENO: result: $ac_res" >&5
20609 echo "${ECHO_T}$ac_res" >&6; }
20610 else
20611 # Is the header compilable?
20612 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
20613 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20621 #include <${NBS_DIR}/include/nbs.h>
20622 _ACEOF
20623 rm -f conftest.$ac_objext
20624 if { (ac_try="$ac_compile"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_compile") 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest.$ac_objext; then
20640 ac_header_compiler=yes
20641 else
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_header_compiler=no
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650 echo "${ECHO_T}$ac_header_compiler" >&6; }
20652 # Is the header present?
20653 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
20654 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h. */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20661 #include <${NBS_DIR}/include/nbs.h>
20662 _ACEOF
20663 if { (ac_try="$ac_cpp conftest.$ac_ext"
20664 case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20670 ac_status=$?
20671 grep -v '^ *+' conftest.er1 >conftest.err
20672 rm -f conftest.er1
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } >/dev/null && {
20676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20677 test ! -s conftest.err
20678 }; then
20679 ac_header_preproc=yes
20680 else
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 ac_header_preproc=no
20687 rm -f conftest.err conftest.$ac_ext
20688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20689 echo "${ECHO_T}$ac_header_preproc" >&6; }
20691 # So? What about this header?
20692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20693 yes:no: )
20694 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20695 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
20697 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
20698 ac_header_preproc=yes
20700 no:yes:* )
20701 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
20702 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
20704 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
20706 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
20708 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
20710 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
20711 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
20712 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
20715 esac
20716 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20717 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721 eval "$as_ac_Header=\$ac_header_preproc"
20723 ac_res=`eval echo '${'$as_ac_Header'}'`
20724 { echo "$as_me:$LINENO: result: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20729 NBS_HEADER_FOUND=1
20730 else
20731 NBS_HEADER_FOUND=0
20736 CPPFLAGS="${saved_cppflags}"
20737 else
20738 if test "xnbs.h" != "x" ; then
20739 if test "${ac_cv_header_nbs_h+set}" = set; then
20740 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20741 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20742 if test "${ac_cv_header_nbs_h+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20746 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20747 else
20748 # Is the header compilable?
20749 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
20750 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
20751 cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h. */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757 $ac_includes_default
20758 #include <nbs.h>
20759 _ACEOF
20760 rm -f conftest.$ac_objext
20761 if { (ac_try="$ac_compile"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_compile") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest.$ac_objext; then
20777 ac_header_compiler=yes
20778 else
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20782 ac_header_compiler=no
20785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20787 echo "${ECHO_T}$ac_header_compiler" >&6; }
20789 # Is the header present?
20790 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
20791 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 #include <nbs.h>
20799 _ACEOF
20800 if { (ac_try="$ac_cpp conftest.$ac_ext"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } >/dev/null && {
20813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 }; then
20816 ac_header_preproc=yes
20817 else
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ac_header_preproc=no
20824 rm -f conftest.err conftest.$ac_ext
20825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20826 echo "${ECHO_T}$ac_header_preproc" >&6; }
20828 # So? What about this header?
20829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20830 yes:no: )
20831 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20832 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
20834 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
20835 ac_header_preproc=yes
20837 no:yes:* )
20838 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
20839 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
20841 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
20842 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
20843 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
20845 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
20847 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
20849 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
20852 esac
20853 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20854 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20855 if test "${ac_cv_header_nbs_h+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 ac_cv_header_nbs_h=$ac_header_preproc
20860 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20861 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20864 if test $ac_cv_header_nbs_h = yes; then
20865 NBS_HEADER_FOUND=1
20866 else
20867 NBS_HEADER_FOUND=0
20873 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
20874 if test -n "${NBS_MANDATORY}" ;
20875 then
20876 { echo "$as_me:$LINENO: ***" >&5
20877 echo "$as_me: ***" >&6;}
20878 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
20879 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
20880 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
20881 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
20882 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
20883 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
20884 exit 1
20886 NBS_LIB=""
20887 NBS_INCLUDE=""
20888 PBX_NBS=0
20889 else
20890 PBX_NBS=1
20892 cat >>confdefs.h <<_ACEOF
20893 #define HAVE_NBS 1
20894 _ACEOF
20897 elif test -n "${NBS_MANDATORY}";
20898 then
20899 { echo "$as_me:$LINENO: ***" >&5
20900 echo "$as_me: ***" >&6;}
20901 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
20902 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
20903 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20904 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20905 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
20906 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
20907 exit 1
20913 if test "${USE_NCURSES}" != "no"; then
20914 pbxlibdir=""
20915 if test "x${NCURSES_DIR}" != "x"; then
20916 if test -d ${NCURSES_DIR}/lib; then
20917 pbxlibdir="-L${NCURSES_DIR}/lib"
20918 else
20919 pbxlibdir="-L${NCURSES_DIR}"
20922 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
20923 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
20924 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927 ac_check_lib_save_LIBS=$LIBS
20928 LIBS="-lncurses ${pbxlibdir} $LIBS"
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20936 /* Override any GCC internal prototype to avoid an error.
20937 Use char because int might match the return type of a GCC
20938 builtin and then its argument prototype would still apply. */
20939 #ifdef __cplusplus
20940 extern "C"
20941 #endif
20942 char initscr ();
20944 main ()
20946 return initscr ();
20948 return 0;
20950 _ACEOF
20951 rm -f conftest.$ac_objext conftest$ac_exeext
20952 if { (ac_try="$ac_link"
20953 case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_link") 2>conftest.er1
20959 ac_status=$?
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && {
20965 test -z "$ac_c_werror_flag" ||
20966 test ! -s conftest.err
20967 } && test -s conftest$ac_exeext &&
20968 $as_test_x conftest$ac_exeext; then
20969 ac_cv_lib_ncurses_initscr=yes
20970 else
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 ac_cv_lib_ncurses_initscr=no
20977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20978 conftest$ac_exeext conftest.$ac_ext
20979 LIBS=$ac_check_lib_save_LIBS
20981 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
20982 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
20983 if test $ac_cv_lib_ncurses_initscr = yes; then
20984 AST_NCURSES_FOUND=yes
20985 else
20986 AST_NCURSES_FOUND=no
20990 if test "${AST_NCURSES_FOUND}" = "yes"; then
20991 NCURSES_LIB="-lncurses "
20992 NCURSES_HEADER_FOUND="1"
20993 if test "x${NCURSES_DIR}" != "x"; then
20994 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
20995 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
20996 saved_cppflags="${CPPFLAGS}"
20997 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
20998 if test "xcurses.h" != "x" ; then
20999 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
21000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21001 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
21002 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 ac_res=`eval echo '${'$as_ac_Header'}'`
21007 { echo "$as_me:$LINENO: result: $ac_res" >&5
21008 echo "${ECHO_T}$ac_res" >&6; }
21009 else
21010 # Is the header compilable?
21011 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
21012 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 #include <${NCURSES_DIR}/include/curses.h>
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_compile") 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && {
21036 test -z "$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 } && test -s conftest.$ac_objext; then
21039 ac_header_compiler=yes
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_compiler=no
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21049 echo "${ECHO_T}$ac_header_compiler" >&6; }
21051 # Is the header present?
21052 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
21053 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <${NCURSES_DIR}/include/curses.h>
21061 _ACEOF
21062 if { (ac_try="$ac_cpp conftest.$ac_ext"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } >/dev/null && {
21075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21076 test ! -s conftest.err
21077 }; then
21078 ac_header_preproc=yes
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_header_preproc=no
21086 rm -f conftest.err conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6; }
21090 # So? What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21092 yes:no: )
21093 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21094 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
21096 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
21097 ac_header_preproc=yes
21099 no:yes:* )
21100 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
21101 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
21103 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
21104 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
21105 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
21106 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
21107 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
21109 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
21111 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
21114 esac
21115 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
21116 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
21117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120 eval "$as_ac_Header=\$ac_header_preproc"
21122 ac_res=`eval echo '${'$as_ac_Header'}'`
21123 { echo "$as_me:$LINENO: result: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21128 NCURSES_HEADER_FOUND=1
21129 else
21130 NCURSES_HEADER_FOUND=0
21135 CPPFLAGS="${saved_cppflags}"
21136 else
21137 if test "xcurses.h" != "x" ; then
21138 if test "${ac_cv_header_curses_h+set}" = set; then
21139 { echo "$as_me:$LINENO: checking for curses.h" >&5
21140 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21141 if test "${ac_cv_header_curses_h+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21145 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21146 else
21147 # Is the header compilable?
21148 { echo "$as_me:$LINENO: checking curses.h usability" >&5
21149 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h. */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 $ac_includes_default
21157 #include <curses.h>
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21176 ac_header_compiler=yes
21177 else
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_compiler=no
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21186 echo "${ECHO_T}$ac_header_compiler" >&6; }
21188 # Is the header present?
21189 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21190 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <curses.h>
21198 _ACEOF
21199 if { (ac_try="$ac_cpp conftest.$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 }; then
21215 ac_header_preproc=yes
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_preproc=no
21223 rm -f conftest.err conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6; }
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21229 yes:no: )
21230 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21234 ac_header_preproc=yes
21236 no:yes:* )
21237 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21251 esac
21252 { echo "$as_me:$LINENO: checking for curses.h" >&5
21253 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21254 if test "${ac_cv_header_curses_h+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257 ac_cv_header_curses_h=$ac_header_preproc
21259 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21260 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21263 if test $ac_cv_header_curses_h = yes; then
21264 NCURSES_HEADER_FOUND=1
21265 else
21266 NCURSES_HEADER_FOUND=0
21272 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21273 if test -n "${NCURSES_MANDATORY}" ;
21274 then
21275 { echo "$as_me:$LINENO: ***" >&5
21276 echo "$as_me: ***" >&6;}
21277 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21278 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21279 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21280 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21281 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21282 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21283 exit 1
21285 NCURSES_LIB=""
21286 NCURSES_INCLUDE=""
21287 PBX_NCURSES=0
21288 else
21289 PBX_NCURSES=1
21291 cat >>confdefs.h <<_ACEOF
21292 #define HAVE_NCURSES 1
21293 _ACEOF
21296 elif test -n "${NCURSES_MANDATORY}";
21297 then
21298 { echo "$as_me:$LINENO: ***" >&5
21299 echo "$as_me: ***" >&6;}
21300 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21301 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21302 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21303 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21304 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21305 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21306 exit 1
21311 NETSNMP_CONFIG=No
21312 if test "${USE_NETSNMP}" != "no"; then
21313 if test "x${NETSNMP_DIR}" != "x"; then
21314 if test -n "$ac_tool_prefix"; then
21315 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21316 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21319 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322 case $NETSNMP_CONFIG in
21323 [\\/]* | ?:[\\/]*)
21324 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21328 for as_dir in ${NETSNMP_DIR}/bin
21330 IFS=$as_save_IFS
21331 test -z "$as_dir" && as_dir=.
21332 for ac_exec_ext in '' $ac_executable_extensions; do
21333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21334 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21336 break 2
21338 done
21339 done
21340 IFS=$as_save_IFS
21343 esac
21345 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21346 if test -n "$NETSNMP_CONFIG"; then
21347 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21348 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21349 else
21350 { echo "$as_me:$LINENO: result: no" >&5
21351 echo "${ECHO_T}no" >&6; }
21356 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21357 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21358 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21359 set dummy net-snmp-config; ac_word=$2
21360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21362 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 else
21365 case $ac_pt_NETSNMP_CONFIG in
21366 [\\/]* | ?:[\\/]*)
21367 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21371 for as_dir in ${NETSNMP_DIR}/bin
21373 IFS=$as_save_IFS
21374 test -z "$as_dir" && as_dir=.
21375 for ac_exec_ext in '' $ac_executable_extensions; do
21376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21377 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21379 break 2
21381 done
21382 done
21383 IFS=$as_save_IFS
21386 esac
21388 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21389 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21390 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21391 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21392 else
21393 { echo "$as_me:$LINENO: result: no" >&5
21394 echo "${ECHO_T}no" >&6; }
21397 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21398 NETSNMP_CONFIG="No"
21399 else
21400 case $cross_compiling:$ac_tool_warned in
21401 yes:)
21402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21403 whose name does not start with the host triplet. If you think this
21404 configuration is useful to you, please write to autoconf@gnu.org." >&5
21405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21406 whose name does not start with the host triplet. If you think this
21407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21408 ac_tool_warned=yes ;;
21409 esac
21410 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21412 else
21413 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21416 if test x"${NETSNMP_CONFIG}" = xNo; then
21417 { echo "$as_me:$LINENO: ***" >&5
21418 echo "$as_me: ***" >&6;}
21419 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21420 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21421 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21422 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21423 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21424 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21425 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21426 echo "$as_me: *** including --without-netsnmp" >&6;}
21427 exit 1
21429 else
21430 if test -n "$ac_tool_prefix"; then
21431 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21432 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21435 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438 case $NETSNMP_CONFIG in
21439 [\\/]* | ?:[\\/]*)
21440 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21444 for as_dir in $PATH
21446 IFS=$as_save_IFS
21447 test -z "$as_dir" && as_dir=.
21448 for ac_exec_ext in '' $ac_executable_extensions; do
21449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21452 break 2
21454 done
21455 done
21456 IFS=$as_save_IFS
21459 esac
21461 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21462 if test -n "$NETSNMP_CONFIG"; then
21463 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21464 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21465 else
21466 { echo "$as_me:$LINENO: result: no" >&5
21467 echo "${ECHO_T}no" >&6; }
21472 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21473 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21474 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21475 set dummy net-snmp-config; ac_word=$2
21476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21478 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481 case $ac_pt_NETSNMP_CONFIG in
21482 [\\/]* | ?:[\\/]*)
21483 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21487 for as_dir in $PATH
21489 IFS=$as_save_IFS
21490 test -z "$as_dir" && as_dir=.
21491 for ac_exec_ext in '' $ac_executable_extensions; do
21492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21493 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21495 break 2
21497 done
21498 done
21499 IFS=$as_save_IFS
21502 esac
21504 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21505 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21506 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21507 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21508 else
21509 { echo "$as_me:$LINENO: result: no" >&5
21510 echo "${ECHO_T}no" >&6; }
21513 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21514 NETSNMP_CONFIG="No"
21515 else
21516 case $cross_compiling:$ac_tool_warned in
21517 yes:)
21518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21519 whose name does not start with the host triplet. If you think this
21520 configuration is useful to you, please write to autoconf@gnu.org." >&5
21521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21522 whose name does not start with the host triplet. If you think this
21523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21524 ac_tool_warned=yes ;;
21525 esac
21526 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21528 else
21529 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21534 if test x"${NETSNMP_CONFIG}" != xNo; then
21535 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
21537 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21538 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21539 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542 ac_check_lib_save_LIBS=$LIBS
21543 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h. */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21551 /* Override any GCC internal prototype to avoid an error.
21552 Use char because int might match the return type of a GCC
21553 builtin and then its argument prototype would still apply. */
21554 #ifdef __cplusplus
21555 extern "C"
21556 #endif
21557 char snmp_register_callback ();
21559 main ()
21561 return snmp_register_callback ();
21563 return 0;
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_link") 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest$ac_exeext &&
21583 $as_test_x conftest$ac_exeext; then
21584 ac_cv_lib_netsnmp_snmp_register_callback=yes
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_cv_lib_netsnmp_snmp_register_callback=no
21592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21593 conftest$ac_exeext conftest.$ac_ext
21594 LIBS=$ac_check_lib_save_LIBS
21596 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21597 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
21598 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
21600 cat >>confdefs.h <<_ACEOF
21601 #define HAVE_NETSNMP 1
21602 _ACEOF
21607 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
21608 NETSNMP_LIB="${NETSNMP_libs}"
21609 PBX_NETSNMP=1
21610 elif test -n "${NETSNMP_MANDATORY}";
21611 then
21612 { echo "$as_me:$LINENO: ***" >&5
21613 echo "$as_me: ***" >&6;}
21614 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21615 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21616 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21617 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21618 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21619 echo "$as_me: *** including --without-netsnmp" >&6;}
21620 exit 1
21622 elif test -n "${NETSNMP_MANDATORY}";
21623 then
21624 { echo "$as_me:$LINENO: ***" >&5
21625 echo "$as_me: ***" >&6;}
21626 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21627 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21628 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21629 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21630 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21631 echo "$as_me: *** including --without-netsnmp" >&6;}
21632 exit 1
21636 if test "${USE_NEWT}" != "no"; then
21637 pbxlibdir=""
21638 if test "x${NEWT_DIR}" != "x"; then
21639 if test -d ${NEWT_DIR}/lib; then
21640 pbxlibdir="-L${NEWT_DIR}/lib"
21641 else
21642 pbxlibdir="-L${NEWT_DIR}"
21645 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
21646 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
21647 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650 ac_check_lib_save_LIBS=$LIBS
21651 LIBS="-lnewt ${pbxlibdir} $LIBS"
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */
21662 #ifdef __cplusplus
21663 extern "C"
21664 #endif
21665 char newtBell ();
21667 main ()
21669 return newtBell ();
21671 return 0;
21673 _ACEOF
21674 rm -f conftest.$ac_objext conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_link") 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest$ac_exeext &&
21691 $as_test_x conftest$ac_exeext; then
21692 ac_cv_lib_newt_newtBell=yes
21693 else
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_cv_lib_newt_newtBell=no
21700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21701 conftest$ac_exeext conftest.$ac_ext
21702 LIBS=$ac_check_lib_save_LIBS
21704 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
21705 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
21706 if test $ac_cv_lib_newt_newtBell = yes; then
21707 AST_NEWT_FOUND=yes
21708 else
21709 AST_NEWT_FOUND=no
21713 if test "${AST_NEWT_FOUND}" = "yes"; then
21714 NEWT_LIB="-lnewt "
21715 NEWT_HEADER_FOUND="1"
21716 if test "x${NEWT_DIR}" != "x"; then
21717 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
21718 NEWT_INCLUDE="-I${NEWT_DIR}/include"
21719 saved_cppflags="${CPPFLAGS}"
21720 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
21721 if test "xnewt.h" != "x" ; then
21722 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
21725 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
21726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 ac_res=`eval echo '${'$as_ac_Header'}'`
21730 { echo "$as_me:$LINENO: result: $ac_res" >&5
21731 echo "${ECHO_T}$ac_res" >&6; }
21732 else
21733 # Is the header compilable?
21734 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
21735 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h. */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 $ac_includes_default
21743 #include <${NEWT_DIR}/include/newt.h>
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21753 ac_status=$?
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } && {
21759 test -z "$ac_c_werror_flag" ||
21760 test ! -s conftest.err
21761 } && test -s conftest.$ac_objext; then
21762 ac_header_compiler=yes
21763 else
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ac_header_compiler=no
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21772 echo "${ECHO_T}$ac_header_compiler" >&6; }
21774 # Is the header present?
21775 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
21776 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 #include <${NEWT_DIR}/include/newt.h>
21784 _ACEOF
21785 if { (ac_try="$ac_cpp conftest.$ac_ext"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } >/dev/null && {
21798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 }; then
21801 ac_header_preproc=yes
21802 else
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_header_preproc=no
21809 rm -f conftest.err conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21811 echo "${ECHO_T}$ac_header_preproc" >&6; }
21813 # So? What about this header?
21814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21815 yes:no: )
21816 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21817 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
21819 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
21820 ac_header_preproc=yes
21822 no:yes:* )
21823 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
21824 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
21826 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
21828 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
21830 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
21832 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
21834 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
21837 esac
21838 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
21839 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
21840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 eval "$as_ac_Header=\$ac_header_preproc"
21845 ac_res=`eval echo '${'$as_ac_Header'}'`
21846 { echo "$as_me:$LINENO: result: $ac_res" >&5
21847 echo "${ECHO_T}$ac_res" >&6; }
21850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21851 NEWT_HEADER_FOUND=1
21852 else
21853 NEWT_HEADER_FOUND=0
21858 CPPFLAGS="${saved_cppflags}"
21859 else
21860 if test "xnewt.h" != "x" ; then
21861 if test "${ac_cv_header_newt_h+set}" = set; then
21862 { echo "$as_me:$LINENO: checking for newt.h" >&5
21863 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21864 if test "${ac_cv_header_newt_h+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21868 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21869 else
21870 # Is the header compilable?
21871 { echo "$as_me:$LINENO: checking newt.h usability" >&5
21872 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h. */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 $ac_includes_default
21880 #include <newt.h>
21881 _ACEOF
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 ac_header_compiler=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_header_compiler=no
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21909 echo "${ECHO_T}$ac_header_compiler" >&6; }
21911 # Is the header present?
21912 { echo "$as_me:$LINENO: checking newt.h presence" >&5
21913 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 #include <newt.h>
21921 _ACEOF
21922 if { (ac_try="$ac_cpp conftest.$ac_ext"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } >/dev/null && {
21935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 }; then
21938 ac_header_preproc=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_header_preproc=no
21946 rm -f conftest.err conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948 echo "${ECHO_T}$ac_header_preproc" >&6; }
21950 # So? What about this header?
21951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21952 yes:no: )
21953 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21954 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
21956 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
21957 ac_header_preproc=yes
21959 no:yes:* )
21960 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
21961 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
21963 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
21965 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
21967 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
21969 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
21971 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
21974 esac
21975 { echo "$as_me:$LINENO: checking for newt.h" >&5
21976 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21977 if test "${ac_cv_header_newt_h+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980 ac_cv_header_newt_h=$ac_header_preproc
21982 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21983 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21986 if test $ac_cv_header_newt_h = yes; then
21987 NEWT_HEADER_FOUND=1
21988 else
21989 NEWT_HEADER_FOUND=0
21995 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
21996 if test -n "${NEWT_MANDATORY}" ;
21997 then
21998 { echo "$as_me:$LINENO: ***" >&5
21999 echo "$as_me: ***" >&6;}
22000 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
22001 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
22002 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
22003 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
22004 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
22005 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
22006 exit 1
22008 NEWT_LIB=""
22009 NEWT_INCLUDE=""
22010 PBX_NEWT=0
22011 else
22012 PBX_NEWT=1
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_NEWT 1
22016 _ACEOF
22019 elif test -n "${NEWT_MANDATORY}";
22020 then
22021 { echo "$as_me:$LINENO: ***" >&5
22022 echo "$as_me: ***" >&6;}
22023 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
22024 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
22025 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22026 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22027 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
22028 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
22029 exit 1
22035 if test "${USE_UNIXODBC}" != "no"; then
22036 pbxlibdir=""
22037 if test "x${UNIXODBC_DIR}" != "x"; then
22038 if test -d ${UNIXODBC_DIR}/lib; then
22039 pbxlibdir="-L${UNIXODBC_DIR}/lib"
22040 else
22041 pbxlibdir="-L${UNIXODBC_DIR}"
22044 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
22045 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
22046 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049 ac_check_lib_save_LIBS=$LIBS
22050 LIBS="-lodbc ${pbxlibdir} $LIBS"
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22058 /* Override any GCC internal prototype to avoid an error.
22059 Use char because int might match the return type of a GCC
22060 builtin and then its argument prototype would still apply. */
22061 #ifdef __cplusplus
22062 extern "C"
22063 #endif
22064 char SQLConnect ();
22066 main ()
22068 return SQLConnect ();
22070 return 0;
22072 _ACEOF
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080 (eval "$ac_link") 2>conftest.er1
22081 ac_status=$?
22082 grep -v '^ *+' conftest.er1 >conftest.err
22083 rm -f conftest.er1
22084 cat conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } && {
22087 test -z "$ac_c_werror_flag" ||
22088 test ! -s conftest.err
22089 } && test -s conftest$ac_exeext &&
22090 $as_test_x conftest$ac_exeext; then
22091 ac_cv_lib_odbc_SQLConnect=yes
22092 else
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 ac_cv_lib_odbc_SQLConnect=no
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100 conftest$ac_exeext conftest.$ac_ext
22101 LIBS=$ac_check_lib_save_LIBS
22103 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22104 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22105 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22106 AST_UNIXODBC_FOUND=yes
22107 else
22108 AST_UNIXODBC_FOUND=no
22112 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22113 UNIXODBC_LIB="-lodbc "
22114 UNIXODBC_HEADER_FOUND="1"
22115 if test "x${UNIXODBC_DIR}" != "x"; then
22116 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22117 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
22118 saved_cppflags="${CPPFLAGS}"
22119 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
22120 if test "xsql.h" != "x" ; then
22121 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
22122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22123 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22124 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 ac_res=`eval echo '${'$as_ac_Header'}'`
22129 { echo "$as_me:$LINENO: result: $ac_res" >&5
22130 echo "${ECHO_T}$ac_res" >&6; }
22131 else
22132 # Is the header compilable?
22133 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
22134 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
22135 cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h. */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 $ac_includes_default
22142 #include <${UNIXODBC_DIR}/include/sql.h>
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (ac_try="$ac_compile"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_compile") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest.$ac_objext; then
22161 ac_header_compiler=yes
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_header_compiler=no
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22171 echo "${ECHO_T}$ac_header_compiler" >&6; }
22173 # Is the header present?
22174 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
22175 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h. */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 #include <${UNIXODBC_DIR}/include/sql.h>
22183 _ACEOF
22184 if { (ac_try="$ac_cpp conftest.$ac_ext"
22185 case "(($ac_try" in
22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187 *) ac_try_echo=$ac_try;;
22188 esac
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22191 ac_status=$?
22192 grep -v '^ *+' conftest.er1 >conftest.err
22193 rm -f conftest.er1
22194 cat conftest.err >&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } >/dev/null && {
22197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22198 test ! -s conftest.err
22199 }; then
22200 ac_header_preproc=yes
22201 else
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ac_header_preproc=no
22208 rm -f conftest.err conftest.$ac_ext
22209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22210 echo "${ECHO_T}$ac_header_preproc" >&6; }
22212 # So? What about this header?
22213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22214 yes:no: )
22215 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22216 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
22218 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
22219 ac_header_preproc=yes
22221 no:yes:* )
22222 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
22223 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
22225 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
22227 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
22229 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22230 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
22231 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
22232 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
22233 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
22236 esac
22237 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22238 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242 eval "$as_ac_Header=\$ac_header_preproc"
22244 ac_res=`eval echo '${'$as_ac_Header'}'`
22245 { echo "$as_me:$LINENO: result: $ac_res" >&5
22246 echo "${ECHO_T}$ac_res" >&6; }
22249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22250 UNIXODBC_HEADER_FOUND=1
22251 else
22252 UNIXODBC_HEADER_FOUND=0
22257 CPPFLAGS="${saved_cppflags}"
22258 else
22259 if test "xsql.h" != "x" ; then
22260 if test "${ac_cv_header_sql_h+set}" = set; then
22261 { echo "$as_me:$LINENO: checking for sql.h" >&5
22262 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22263 if test "${ac_cv_header_sql_h+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22267 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22268 else
22269 # Is the header compilable?
22270 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22271 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h. */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278 $ac_includes_default
22279 #include <sql.h>
22280 _ACEOF
22281 rm -f conftest.$ac_objext
22282 if { (ac_try="$ac_compile"
22283 case "(($ac_try" in
22284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285 *) ac_try_echo=$ac_try;;
22286 esac
22287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22288 (eval "$ac_compile") 2>conftest.er1
22289 ac_status=$?
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } && {
22295 test -z "$ac_c_werror_flag" ||
22296 test ! -s conftest.err
22297 } && test -s conftest.$ac_objext; then
22298 ac_header_compiler=yes
22299 else
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 ac_header_compiler=no
22306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22308 echo "${ECHO_T}$ac_header_compiler" >&6; }
22310 # Is the header present?
22311 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22312 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h. */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 #include <sql.h>
22320 _ACEOF
22321 if { (ac_try="$ac_cpp conftest.$ac_ext"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22328 ac_status=$?
22329 grep -v '^ *+' conftest.er1 >conftest.err
22330 rm -f conftest.er1
22331 cat conftest.err >&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } >/dev/null && {
22334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 }; then
22337 ac_header_preproc=yes
22338 else
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22342 ac_header_preproc=no
22345 rm -f conftest.err conftest.$ac_ext
22346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22347 echo "${ECHO_T}$ac_header_preproc" >&6; }
22349 # So? What about this header?
22350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22351 yes:no: )
22352 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22353 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22355 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22356 ac_header_preproc=yes
22358 no:yes:* )
22359 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22360 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22362 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22364 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22365 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22366 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22367 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22368 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22369 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22370 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22373 esac
22374 { echo "$as_me:$LINENO: checking for sql.h" >&5
22375 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22376 if test "${ac_cv_header_sql_h+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379 ac_cv_header_sql_h=$ac_header_preproc
22381 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22382 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22385 if test $ac_cv_header_sql_h = yes; then
22386 UNIXODBC_HEADER_FOUND=1
22387 else
22388 UNIXODBC_HEADER_FOUND=0
22394 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22395 if test -n "${UNIXODBC_MANDATORY}" ;
22396 then
22397 { echo "$as_me:$LINENO: ***" >&5
22398 echo "$as_me: ***" >&6;}
22399 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22400 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22401 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22402 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22403 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22404 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22405 exit 1
22407 UNIXODBC_LIB=""
22408 UNIXODBC_INCLUDE=""
22409 PBX_UNIXODBC=0
22410 else
22411 PBX_UNIXODBC=1
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_UNIXODBC 1
22415 _ACEOF
22418 elif test -n "${UNIXODBC_MANDATORY}";
22419 then
22420 { echo "$as_me:$LINENO: ***" >&5
22421 echo "$as_me: ***" >&6;}
22422 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22423 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22424 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22425 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22426 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22427 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22428 exit 1
22434 if test "${USE_OGG}" != "no"; then
22435 pbxlibdir=""
22436 if test "x${OGG_DIR}" != "x"; then
22437 if test -d ${OGG_DIR}/lib; then
22438 pbxlibdir="-L${OGG_DIR}/lib"
22439 else
22440 pbxlibdir="-L${OGG_DIR}"
22443 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22444 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22445 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448 ac_check_lib_save_LIBS=$LIBS
22449 LIBS="-logg ${pbxlibdir} $LIBS"
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22457 /* Override any GCC internal prototype to avoid an error.
22458 Use char because int might match the return type of a GCC
22459 builtin and then its argument prototype would still apply. */
22460 #ifdef __cplusplus
22461 extern "C"
22462 #endif
22463 char ogg_sync_init ();
22465 main ()
22467 return ogg_sync_init ();
22469 return 0;
22471 _ACEOF
22472 rm -f conftest.$ac_objext conftest$ac_exeext
22473 if { (ac_try="$ac_link"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_link") 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest$ac_exeext &&
22489 $as_test_x conftest$ac_exeext; then
22490 ac_cv_lib_ogg_ogg_sync_init=yes
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ac_cv_lib_ogg_ogg_sync_init=no
22498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22499 conftest$ac_exeext conftest.$ac_ext
22500 LIBS=$ac_check_lib_save_LIBS
22502 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22503 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22504 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22505 AST_OGG_FOUND=yes
22506 else
22507 AST_OGG_FOUND=no
22511 if test "${AST_OGG_FOUND}" = "yes"; then
22512 OGG_LIB="-logg "
22513 OGG_HEADER_FOUND="1"
22514 if test "x${OGG_DIR}" != "x"; then
22515 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
22516 OGG_INCLUDE="-I${OGG_DIR}/include"
22517 saved_cppflags="${CPPFLAGS}"
22518 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
22519 if test "x" != "x" ; then
22520 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
22521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22522 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22523 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 ac_res=`eval echo '${'$as_ac_Header'}'`
22528 { echo "$as_me:$LINENO: result: $ac_res" >&5
22529 echo "${ECHO_T}$ac_res" >&6; }
22530 else
22531 # Is the header compilable?
22532 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
22533 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 #include <${OGG_DIR}/include/>
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548 esac
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_compile") 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } && {
22557 test -z "$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 } && test -s conftest.$ac_objext; then
22560 ac_header_compiler=yes
22561 else
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_header_compiler=no
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22570 echo "${ECHO_T}$ac_header_compiler" >&6; }
22572 # Is the header present?
22573 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
22574 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <${OGG_DIR}/include/>
22582 _ACEOF
22583 if { (ac_try="$ac_cpp conftest.$ac_ext"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } >/dev/null && {
22596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 }; then
22599 ac_header_preproc=yes
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_header_preproc=no
22607 rm -f conftest.err conftest.$ac_ext
22608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22609 echo "${ECHO_T}$ac_header_preproc" >&6; }
22611 # So? What about this header?
22612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22613 yes:no: )
22614 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
22615 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
22617 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
22618 ac_header_preproc=yes
22620 no:yes:* )
22621 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
22622 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
22623 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
22624 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
22626 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
22628 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
22630 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
22632 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
22635 esac
22636 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22637 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 eval "$as_ac_Header=\$ac_header_preproc"
22643 ac_res=`eval echo '${'$as_ac_Header'}'`
22644 { echo "$as_me:$LINENO: result: $ac_res" >&5
22645 echo "${ECHO_T}$ac_res" >&6; }
22648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22649 OGG_HEADER_FOUND=1
22650 else
22651 OGG_HEADER_FOUND=0
22656 CPPFLAGS="${saved_cppflags}"
22657 else
22658 if test "x" != "x" ; then
22659 if test "${ac_cv_header_+set}" = set; then
22660 { echo "$as_me:$LINENO: checking for " >&5
22661 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22662 if test "${ac_cv_header_+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22666 echo "${ECHO_T}$ac_cv_header_" >&6; }
22667 else
22668 # Is the header compilable?
22669 { echo "$as_me:$LINENO: checking usability" >&5
22670 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 #include <>
22679 _ACEOF
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22685 esac
22686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_header_compiler=yes
22698 else
22699 echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22702 ac_header_compiler=no
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22707 echo "${ECHO_T}$ac_header_compiler" >&6; }
22709 # Is the header present?
22710 { echo "$as_me:$LINENO: checking presence" >&5
22711 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 #include <>
22719 _ACEOF
22720 if { (ac_try="$ac_cpp conftest.$ac_ext"
22721 case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22724 esac
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22727 ac_status=$?
22728 grep -v '^ *+' conftest.er1 >conftest.err
22729 rm -f conftest.er1
22730 cat conftest.err >&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } >/dev/null && {
22733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22734 test ! -s conftest.err
22735 }; then
22736 ac_header_preproc=yes
22737 else
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22741 ac_header_preproc=no
22744 rm -f conftest.err conftest.$ac_ext
22745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22746 echo "${ECHO_T}$ac_header_preproc" >&6; }
22748 # So? What about this header?
22749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22750 yes:no: )
22751 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22752 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22753 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22754 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22755 ac_header_preproc=yes
22757 no:yes:* )
22758 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22759 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22760 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22761 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22762 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22763 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22764 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22765 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22766 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22767 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22768 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22769 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22772 esac
22773 { echo "$as_me:$LINENO: checking for " >&5
22774 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22775 if test "${ac_cv_header_+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 ac_cv_header_=$ac_header_preproc
22780 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22781 echo "${ECHO_T}$ac_cv_header_" >&6; }
22784 if test $ac_cv_header_ = yes; then
22785 OGG_HEADER_FOUND=1
22786 else
22787 OGG_HEADER_FOUND=0
22793 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
22794 if test -n "${OGG_MANDATORY}" ;
22795 then
22796 { echo "$as_me:$LINENO: ***" >&5
22797 echo "$as_me: ***" >&6;}
22798 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
22799 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
22800 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
22801 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
22802 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22803 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22804 exit 1
22806 OGG_LIB=""
22807 OGG_INCLUDE=""
22808 PBX_OGG=0
22809 else
22810 PBX_OGG=1
22812 cat >>confdefs.h <<_ACEOF
22813 #define HAVE_OGG 1
22814 _ACEOF
22817 elif test -n "${OGG_MANDATORY}";
22818 then
22819 { echo "$as_me:$LINENO: ***" >&5
22820 echo "$as_me: ***" >&6;}
22821 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
22822 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
22823 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22824 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22825 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22826 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22827 exit 1
22832 if test "${USE_OSS}" != "no"; then
22833 PBX_OSS=0
22834 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22835 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22836 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22837 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22840 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22841 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22842 else
22843 # Is the header compilable?
22844 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22845 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
22853 #include <linux/soundcard.h>
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_compile") 2>conftest.er1
22863 ac_status=$?
22864 grep -v '^ *+' conftest.er1 >conftest.err
22865 rm -f conftest.er1
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } && {
22869 test -z "$ac_c_werror_flag" ||
22870 test ! -s conftest.err
22871 } && test -s conftest.$ac_objext; then
22872 ac_header_compiler=yes
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_header_compiler=no
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22882 echo "${ECHO_T}$ac_header_compiler" >&6; }
22884 # Is the header present?
22885 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22886 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 #include <linux/soundcard.h>
22894 _ACEOF
22895 if { (ac_try="$ac_cpp conftest.$ac_ext"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22902 ac_status=$?
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } >/dev/null && {
22908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 }; then
22911 ac_header_preproc=yes
22912 else
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22916 ac_header_preproc=no
22919 rm -f conftest.err conftest.$ac_ext
22920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22921 echo "${ECHO_T}$ac_header_preproc" >&6; }
22923 # So? What about this header?
22924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22925 yes:no: )
22926 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22927 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22929 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22930 ac_header_preproc=yes
22932 no:yes:* )
22933 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22934 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22935 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22936 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22937 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22938 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22939 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22940 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22941 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22942 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22943 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22944 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22947 esac
22948 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22949 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22950 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22955 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22956 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22959 if test $ac_cv_header_linux_soundcard_h = yes; then
22961 PBX_OSS=1
22963 cat >>confdefs.h <<_ACEOF
22964 #define HAVE_OSS 1
22965 _ACEOF
22971 if test "$PBX_OSS" = "0"; then
22972 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22973 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22974 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22975 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22979 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22980 else
22981 # Is the header compilable?
22982 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22983 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22984 cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h. */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 $ac_includes_default
22991 #include <sys/soundcard.h>
22992 _ACEOF
22993 rm -f conftest.$ac_objext
22994 if { (ac_try="$ac_compile"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_compile") 2>conftest.er1
23001 ac_status=$?
23002 grep -v '^ *+' conftest.er1 >conftest.err
23003 rm -f conftest.er1
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest.$ac_objext; then
23010 ac_header_compiler=yes
23011 else
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_header_compiler=no
23018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23020 echo "${ECHO_T}$ac_header_compiler" >&6; }
23022 # Is the header present?
23023 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
23024 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
23025 cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h. */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 #include <sys/soundcard.h>
23032 _ACEOF
23033 if { (ac_try="$ac_cpp conftest.$ac_ext"
23034 case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } >/dev/null && {
23046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 }; then
23049 ac_header_preproc=yes
23050 else
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_header_preproc=no
23057 rm -f conftest.err conftest.$ac_ext
23058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23059 echo "${ECHO_T}$ac_header_preproc" >&6; }
23061 # So? What about this header?
23062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23063 yes:no: )
23064 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23065 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
23067 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
23068 ac_header_preproc=yes
23070 no:yes:* )
23071 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
23072 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
23073 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
23074 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
23076 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23078 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23079 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
23080 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
23081 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
23082 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
23085 esac
23086 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
23087 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
23088 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091 ac_cv_header_sys_soundcard_h=$ac_header_preproc
23093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
23094 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23097 if test $ac_cv_header_sys_soundcard_h = yes; then
23099 PBX_OSS=1
23101 cat >>confdefs.h <<_ACEOF
23102 #define HAVE_OSS 1
23103 _ACEOF
23110 if test "$PBX_OSS" = "0"; then
23112 if test "${USE_OSS}" != "no"; then
23113 pbxlibdir=""
23114 if test "x${OSS_DIR}" != "x"; then
23115 if test -d ${OSS_DIR}/lib; then
23116 pbxlibdir="-L${OSS_DIR}/lib"
23117 else
23118 pbxlibdir="-L${OSS_DIR}"
23121 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
23122 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
23123 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126 ac_check_lib_save_LIBS=$LIBS
23127 LIBS="-lossaudio ${pbxlibdir} $LIBS"
23128 cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h. */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23135 /* Override any GCC internal prototype to avoid an error.
23136 Use char because int might match the return type of a GCC
23137 builtin and then its argument prototype would still apply. */
23138 #ifdef __cplusplus
23139 extern "C"
23140 #endif
23141 char oss_ioctl_mixer ();
23143 main ()
23145 return oss_ioctl_mixer ();
23147 return 0;
23149 _ACEOF
23150 rm -f conftest.$ac_objext conftest$ac_exeext
23151 if { (ac_try="$ac_link"
23152 case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23155 esac
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_link") 2>conftest.er1
23158 ac_status=$?
23159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest$ac_exeext &&
23167 $as_test_x conftest$ac_exeext; then
23168 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
23169 else
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23173 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
23176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23177 conftest$ac_exeext conftest.$ac_ext
23178 LIBS=$ac_check_lib_save_LIBS
23180 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
23181 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
23182 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
23183 AST_OSS_FOUND=yes
23184 else
23185 AST_OSS_FOUND=no
23189 if test "${AST_OSS_FOUND}" = "yes"; then
23190 OSS_LIB="-lossaudio "
23191 OSS_HEADER_FOUND="1"
23192 if test "x${OSS_DIR}" != "x"; then
23193 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
23194 OSS_INCLUDE="-I${OSS_DIR}/include"
23195 saved_cppflags="${CPPFLAGS}"
23196 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
23197 if test "xsoundcard.h" != "x" ; then
23198 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
23199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23200 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23201 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 ac_res=`eval echo '${'$as_ac_Header'}'`
23206 { echo "$as_me:$LINENO: result: $ac_res" >&5
23207 echo "${ECHO_T}$ac_res" >&6; }
23208 else
23209 # Is the header compilable?
23210 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
23211 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
23212 cat >conftest.$ac_ext <<_ACEOF
23213 /* confdefs.h. */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23218 $ac_includes_default
23219 #include <${OSS_DIR}/include/soundcard.h>
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_compile") 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } && {
23235 test -z "$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23237 } && test -s conftest.$ac_objext; then
23238 ac_header_compiler=yes
23239 else
23240 echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23243 ac_header_compiler=no
23246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23248 echo "${ECHO_T}$ac_header_compiler" >&6; }
23250 # Is the header present?
23251 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
23252 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
23253 cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h. */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h. */
23259 #include <${OSS_DIR}/include/soundcard.h>
23260 _ACEOF
23261 if { (ac_try="$ac_cpp conftest.$ac_ext"
23262 case "(($ac_try" in
23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264 *) ac_try_echo=$ac_try;;
23265 esac
23266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } >/dev/null && {
23274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 }; then
23277 ac_header_preproc=yes
23278 else
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_header_preproc=no
23285 rm -f conftest.err conftest.$ac_ext
23286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23287 echo "${ECHO_T}$ac_header_preproc" >&6; }
23289 # So? What about this header?
23290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23291 yes:no: )
23292 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23293 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23294 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
23295 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
23296 ac_header_preproc=yes
23298 no:yes:* )
23299 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
23300 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
23302 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
23304 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
23305 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23306 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23307 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
23308 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
23309 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
23310 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
23313 esac
23314 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23315 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319 eval "$as_ac_Header=\$ac_header_preproc"
23321 ac_res=`eval echo '${'$as_ac_Header'}'`
23322 { echo "$as_me:$LINENO: result: $ac_res" >&5
23323 echo "${ECHO_T}$ac_res" >&6; }
23326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23327 OSS_HEADER_FOUND=1
23328 else
23329 OSS_HEADER_FOUND=0
23334 CPPFLAGS="${saved_cppflags}"
23335 else
23336 if test "xsoundcard.h" != "x" ; then
23337 if test "${ac_cv_header_soundcard_h+set}" = set; then
23338 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23339 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23340 if test "${ac_cv_header_soundcard_h+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23344 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23345 else
23346 # Is the header compilable?
23347 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
23348 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h. */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 $ac_includes_default
23356 #include <soundcard.h>
23357 _ACEOF
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_compile") 2>conftest.er1
23366 ac_status=$?
23367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest.$ac_objext; then
23375 ac_header_compiler=yes
23376 else
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_header_compiler=no
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23385 echo "${ECHO_T}$ac_header_compiler" >&6; }
23387 # Is the header present?
23388 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
23389 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
23390 cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h. */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 #include <soundcard.h>
23397 _ACEOF
23398 if { (ac_try="$ac_cpp conftest.$ac_ext"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } >/dev/null && {
23411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 }; then
23414 ac_header_preproc=yes
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 ac_header_preproc=no
23422 rm -f conftest.err conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23424 echo "${ECHO_T}$ac_header_preproc" >&6; }
23426 # So? What about this header?
23427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23428 yes:no: )
23429 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23430 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23431 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
23432 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
23433 ac_header_preproc=yes
23435 no:yes:* )
23436 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
23437 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
23438 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
23439 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
23440 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
23441 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
23442 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23443 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
23445 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
23447 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
23450 esac
23451 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23452 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23453 if test "${ac_cv_header_soundcard_h+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455 else
23456 ac_cv_header_soundcard_h=$ac_header_preproc
23458 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23459 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23462 if test $ac_cv_header_soundcard_h = yes; then
23463 OSS_HEADER_FOUND=1
23464 else
23465 OSS_HEADER_FOUND=0
23471 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
23472 if test -n "${OSS_MANDATORY}" ;
23473 then
23474 { echo "$as_me:$LINENO: ***" >&5
23475 echo "$as_me: ***" >&6;}
23476 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
23477 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
23478 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
23479 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
23480 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23481 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23482 exit 1
23484 OSS_LIB=""
23485 OSS_INCLUDE=""
23486 PBX_OSS=0
23487 else
23488 PBX_OSS=1
23490 cat >>confdefs.h <<_ACEOF
23491 #define HAVE_OSS 1
23492 _ACEOF
23495 elif test -n "${OSS_MANDATORY}";
23496 then
23497 { echo "$as_me:$LINENO: ***" >&5
23498 echo "$as_me: ***" >&6;}
23499 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23500 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23501 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23502 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23504 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23505 exit 1
23512 PG_CONFIG=No
23513 if test "${USE_PGSQL}" != "no"; then
23514 if test "x${PGSQL_DIR}" != "x"; then
23515 if test -n "$ac_tool_prefix"; then
23516 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23517 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23520 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23522 else
23523 case $PG_CONFIG in
23524 [\\/]* | ?:[\\/]*)
23525 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23529 for as_dir in ${PGSQL_DIR}/bin
23531 IFS=$as_save_IFS
23532 test -z "$as_dir" && as_dir=.
23533 for ac_exec_ext in '' $ac_executable_extensions; do
23534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23535 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23537 break 2
23539 done
23540 done
23541 IFS=$as_save_IFS
23544 esac
23546 PG_CONFIG=$ac_cv_path_PG_CONFIG
23547 if test -n "$PG_CONFIG"; then
23548 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23549 echo "${ECHO_T}$PG_CONFIG" >&6; }
23550 else
23551 { echo "$as_me:$LINENO: result: no" >&5
23552 echo "${ECHO_T}no" >&6; }
23557 if test -z "$ac_cv_path_PG_CONFIG"; then
23558 ac_pt_PG_CONFIG=$PG_CONFIG
23559 # Extract the first word of "pg_config", so it can be a program name with args.
23560 set dummy pg_config; ac_word=$2
23561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23563 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566 case $ac_pt_PG_CONFIG in
23567 [\\/]* | ?:[\\/]*)
23568 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23572 for as_dir in ${PGSQL_DIR}/bin
23574 IFS=$as_save_IFS
23575 test -z "$as_dir" && as_dir=.
23576 for ac_exec_ext in '' $ac_executable_extensions; do
23577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23578 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23580 break 2
23582 done
23583 done
23584 IFS=$as_save_IFS
23587 esac
23589 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23590 if test -n "$ac_pt_PG_CONFIG"; then
23591 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23592 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23593 else
23594 { echo "$as_me:$LINENO: result: no" >&5
23595 echo "${ECHO_T}no" >&6; }
23598 if test "x$ac_pt_PG_CONFIG" = x; then
23599 PG_CONFIG="No"
23600 else
23601 case $cross_compiling:$ac_tool_warned in
23602 yes:)
23603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23604 whose name does not start with the host triplet. If you think this
23605 configuration is useful to you, please write to autoconf@gnu.org." >&5
23606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23607 whose name does not start with the host triplet. If you think this
23608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23609 ac_tool_warned=yes ;;
23610 esac
23611 PG_CONFIG=$ac_pt_PG_CONFIG
23613 else
23614 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23617 if test x"${PG_CONFIG}" = xNo; then
23618 { echo "$as_me:$LINENO: ***" >&5
23619 echo "$as_me: ***" >&6;}
23620 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23621 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23622 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23623 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23624 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23625 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23626 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23627 echo "$as_me: *** including --without-postgres" >&6;}
23628 exit 1
23630 else
23631 if test -n "$ac_tool_prefix"; then
23632 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23633 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23636 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23638 else
23639 case $PG_CONFIG in
23640 [\\/]* | ?:[\\/]*)
23641 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23645 for as_dir in $PATH
23647 IFS=$as_save_IFS
23648 test -z "$as_dir" && as_dir=.
23649 for ac_exec_ext in '' $ac_executable_extensions; do
23650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23651 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23653 break 2
23655 done
23656 done
23657 IFS=$as_save_IFS
23660 esac
23662 PG_CONFIG=$ac_cv_path_PG_CONFIG
23663 if test -n "$PG_CONFIG"; then
23664 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23665 echo "${ECHO_T}$PG_CONFIG" >&6; }
23666 else
23667 { echo "$as_me:$LINENO: result: no" >&5
23668 echo "${ECHO_T}no" >&6; }
23673 if test -z "$ac_cv_path_PG_CONFIG"; then
23674 ac_pt_PG_CONFIG=$PG_CONFIG
23675 # Extract the first word of "pg_config", so it can be a program name with args.
23676 set dummy pg_config; ac_word=$2
23677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23679 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23682 case $ac_pt_PG_CONFIG in
23683 [\\/]* | ?:[\\/]*)
23684 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23688 for as_dir in $PATH
23690 IFS=$as_save_IFS
23691 test -z "$as_dir" && as_dir=.
23692 for ac_exec_ext in '' $ac_executable_extensions; do
23693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23694 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23696 break 2
23698 done
23699 done
23700 IFS=$as_save_IFS
23703 esac
23705 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23706 if test -n "$ac_pt_PG_CONFIG"; then
23707 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23708 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23709 else
23710 { echo "$as_me:$LINENO: result: no" >&5
23711 echo "${ECHO_T}no" >&6; }
23714 if test "x$ac_pt_PG_CONFIG" = x; then
23715 PG_CONFIG="No"
23716 else
23717 case $cross_compiling:$ac_tool_warned in
23718 yes:)
23719 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23720 whose name does not start with the host triplet. If you think this
23721 configuration is useful to you, please write to autoconf@gnu.org." >&5
23722 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23723 whose name does not start with the host triplet. If you think this
23724 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23725 ac_tool_warned=yes ;;
23726 esac
23727 PG_CONFIG=$ac_pt_PG_CONFIG
23729 else
23730 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23735 if test "${PG_CONFIG}" != No; then
23736 PGSQL_libdir=`${PG_CONFIG} --libdir`
23737 PGSQL_includedir=`${PG_CONFIG} --includedir`
23739 if test "x$?" != "x0" ; then
23740 if test -n "${PGSQL_MANDATORY}" ; then
23741 { echo "$as_me:$LINENO: ***" >&5
23742 echo "$as_me: ***" >&6;}
23743 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23744 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23745 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23746 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23747 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23748 echo "$as_me: *** including --without-postgres" >&6;}
23749 exit 1
23751 else
23752 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
23753 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
23754 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757 ac_check_lib_save_LIBS=$LIBS
23758 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23759 cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h. */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23766 /* Override any GCC internal prototype to avoid an error.
23767 Use char because int might match the return type of a GCC
23768 builtin and then its argument prototype would still apply. */
23769 #ifdef __cplusplus
23770 extern "C"
23771 #endif
23772 char PQexec ();
23774 main ()
23776 return PQexec ();
23778 return 0;
23780 _ACEOF
23781 rm -f conftest.$ac_objext conftest$ac_exeext
23782 if { (ac_try="$ac_link"
23783 case "(($ac_try" in
23784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785 *) ac_try_echo=$ac_try;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_link") 2>conftest.er1
23789 ac_status=$?
23790 grep -v '^ *+' conftest.er1 >conftest.err
23791 rm -f conftest.er1
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && {
23795 test -z "$ac_c_werror_flag" ||
23796 test ! -s conftest.err
23797 } && test -s conftest$ac_exeext &&
23798 $as_test_x conftest$ac_exeext; then
23799 ac_cv_lib_pq_PQexec=yes
23800 else
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23804 ac_cv_lib_pq_PQexec=no
23807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23808 conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23811 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23812 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23813 if test $ac_cv_lib_pq_PQexec = yes; then
23815 cat >>confdefs.h <<_ACEOF
23816 #define HAVE_PGSQL 1
23817 _ACEOF
23822 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23823 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
23824 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23825 PBX_PGSQL=1
23826 elif test -n "${PGSQL_MANDATORY}";
23827 then
23828 { echo "$as_me:$LINENO: ***" >&5
23829 echo "$as_me: ***" >&6;}
23830 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23831 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23832 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23833 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23834 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23835 echo "$as_me: *** including --without-postgres" >&6;}
23836 exit 1
23839 elif test -n "${PGSQL_MANDATORY}";
23840 then
23841 { echo "$as_me:$LINENO: ***" >&5
23842 echo "$as_me: ***" >&6;}
23843 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23844 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23845 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23846 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23847 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23848 echo "$as_me: *** including --without-postgres" >&6;}
23849 exit 1
23853 if test "${USE_POPT}" != "no"; then
23854 pbxlibdir=""
23855 if test "x${POPT_DIR}" != "x"; then
23856 if test -d ${POPT_DIR}/lib; then
23857 pbxlibdir="-L${POPT_DIR}/lib"
23858 else
23859 pbxlibdir="-L${POPT_DIR}"
23862 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23863 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23864 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867 ac_check_lib_save_LIBS=$LIBS
23868 LIBS="-lpopt ${pbxlibdir} $LIBS"
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h. */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23876 /* Override any GCC internal prototype to avoid an error.
23877 Use char because int might match the return type of a GCC
23878 builtin and then its argument prototype would still apply. */
23879 #ifdef __cplusplus
23880 extern "C"
23881 #endif
23882 char poptStrerror ();
23884 main ()
23886 return poptStrerror ();
23888 return 0;
23890 _ACEOF
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23896 esac
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898 (eval "$ac_link") 2>conftest.er1
23899 ac_status=$?
23900 grep -v '^ *+' conftest.er1 >conftest.err
23901 rm -f conftest.er1
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } && {
23905 test -z "$ac_c_werror_flag" ||
23906 test ! -s conftest.err
23907 } && test -s conftest$ac_exeext &&
23908 $as_test_x conftest$ac_exeext; then
23909 ac_cv_lib_popt_poptStrerror=yes
23910 else
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 ac_cv_lib_popt_poptStrerror=no
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918 conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23921 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23922 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23923 if test $ac_cv_lib_popt_poptStrerror = yes; then
23924 AST_POPT_FOUND=yes
23925 else
23926 AST_POPT_FOUND=no
23930 if test "${AST_POPT_FOUND}" = "yes"; then
23931 POPT_LIB="-lpopt "
23932 POPT_HEADER_FOUND="1"
23933 if test "x${POPT_DIR}" != "x"; then
23934 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23935 POPT_INCLUDE="-I${POPT_DIR}/include"
23936 saved_cppflags="${CPPFLAGS}"
23937 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
23938 if test "xpopt.h" != "x" ; then
23939 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
23940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23941 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23942 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 ac_res=`eval echo '${'$as_ac_Header'}'`
23947 { echo "$as_me:$LINENO: result: $ac_res" >&5
23948 echo "${ECHO_T}$ac_res" >&6; }
23949 else
23950 # Is the header compilable?
23951 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
23952 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h. */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 $ac_includes_default
23960 #include <${POPT_DIR}/include/popt.h>
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23970 ac_status=$?
23971 grep -v '^ *+' conftest.er1 >conftest.err
23972 rm -f conftest.er1
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23979 ac_header_compiler=yes
23980 else
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ac_header_compiler=no
23987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23989 echo "${ECHO_T}$ac_header_compiler" >&6; }
23991 # Is the header present?
23992 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23993 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23994 cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h. */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24000 #include <${POPT_DIR}/include/popt.h>
24001 _ACEOF
24002 if { (ac_try="$ac_cpp conftest.$ac_ext"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24009 ac_status=$?
24010 grep -v '^ *+' conftest.er1 >conftest.err
24011 rm -f conftest.er1
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } >/dev/null && {
24015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 }; then
24018 ac_header_preproc=yes
24019 else
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_header_preproc=no
24026 rm -f conftest.err conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24028 echo "${ECHO_T}$ac_header_preproc" >&6; }
24030 # So? What about this header?
24031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24032 yes:no: )
24033 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24034 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
24036 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
24037 ac_header_preproc=yes
24039 no:yes:* )
24040 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
24041 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
24042 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
24043 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
24045 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
24047 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
24049 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
24051 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
24054 esac
24055 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
24056 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
24057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24058 echo $ECHO_N "(cached) $ECHO_C" >&6
24059 else
24060 eval "$as_ac_Header=\$ac_header_preproc"
24062 ac_res=`eval echo '${'$as_ac_Header'}'`
24063 { echo "$as_me:$LINENO: result: $ac_res" >&5
24064 echo "${ECHO_T}$ac_res" >&6; }
24067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24068 POPT_HEADER_FOUND=1
24069 else
24070 POPT_HEADER_FOUND=0
24075 CPPFLAGS="${saved_cppflags}"
24076 else
24077 if test "xpopt.h" != "x" ; then
24078 if test "${ac_cv_header_popt_h+set}" = set; then
24079 { echo "$as_me:$LINENO: checking for popt.h" >&5
24080 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24081 if test "${ac_cv_header_popt_h+set}" = set; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24084 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24085 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24086 else
24087 # Is the header compilable?
24088 { echo "$as_me:$LINENO: checking popt.h usability" >&5
24089 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
24090 cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h. */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 $ac_includes_default
24097 #include <popt.h>
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24104 esac
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24107 ac_status=$?
24108 grep -v '^ *+' conftest.er1 >conftest.err
24109 rm -f conftest.er1
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 ac_header_compiler=yes
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_header_compiler=no
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24126 echo "${ECHO_T}$ac_header_compiler" >&6; }
24128 # Is the header present?
24129 { echo "$as_me:$LINENO: checking popt.h presence" >&5
24130 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
24131 cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h. */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 #include <popt.h>
24138 _ACEOF
24139 if { (ac_try="$ac_cpp conftest.$ac_ext"
24140 case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24146 ac_status=$?
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } >/dev/null && {
24152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 }; then
24155 ac_header_preproc=yes
24156 else
24157 echo "$as_me: failed program was:" >&5
24158 sed 's/^/| /' conftest.$ac_ext >&5
24160 ac_header_preproc=no
24163 rm -f conftest.err conftest.$ac_ext
24164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24165 echo "${ECHO_T}$ac_header_preproc" >&6; }
24167 # So? What about this header?
24168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24169 yes:no: )
24170 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24171 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24172 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
24173 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
24174 ac_header_preproc=yes
24176 no:yes:* )
24177 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
24178 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
24179 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
24180 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
24181 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
24182 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
24183 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
24184 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24185 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
24186 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
24187 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
24188 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
24191 esac
24192 { echo "$as_me:$LINENO: checking for popt.h" >&5
24193 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24194 if test "${ac_cv_header_popt_h+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24196 else
24197 ac_cv_header_popt_h=$ac_header_preproc
24199 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24200 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24203 if test $ac_cv_header_popt_h = yes; then
24204 POPT_HEADER_FOUND=1
24205 else
24206 POPT_HEADER_FOUND=0
24212 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
24213 if test -n "${POPT_MANDATORY}" ;
24214 then
24215 { echo "$as_me:$LINENO: ***" >&5
24216 echo "$as_me: ***" >&6;}
24217 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
24218 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
24219 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
24220 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
24221 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24222 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24223 exit 1
24225 POPT_LIB=""
24226 POPT_INCLUDE=""
24227 PBX_POPT=0
24228 else
24229 PBX_POPT=1
24231 cat >>confdefs.h <<_ACEOF
24232 #define HAVE_POPT 1
24233 _ACEOF
24236 elif test -n "${POPT_MANDATORY}";
24237 then
24238 { echo "$as_me:$LINENO: ***" >&5
24239 echo "$as_me: ***" >&6;}
24240 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
24241 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
24242 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24243 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24244 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24245 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24246 exit 1
24252 if test "${USE_PRI}" != "no"; then
24253 pbxlibdir=""
24254 if test "x${PRI_DIR}" != "x"; then
24255 if test -d ${PRI_DIR}/lib; then
24256 pbxlibdir="-L${PRI_DIR}/lib"
24257 else
24258 pbxlibdir="-L${PRI_DIR}"
24261 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
24262 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
24263 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24265 else
24266 ac_check_lib_save_LIBS=$LIBS
24267 LIBS="-lpri ${pbxlibdir} $LIBS"
24268 cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h. */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24275 /* Override any GCC internal prototype to avoid an error.
24276 Use char because int might match the return type of a GCC
24277 builtin and then its argument prototype would still apply. */
24278 #ifdef __cplusplus
24279 extern "C"
24280 #endif
24281 char pri_keypad_facility ();
24283 main ()
24285 return pri_keypad_facility ();
24287 return 0;
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_link") 2>conftest.er1
24298 ac_status=$?
24299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } && {
24304 test -z "$ac_c_werror_flag" ||
24305 test ! -s conftest.err
24306 } && test -s conftest$ac_exeext &&
24307 $as_test_x conftest$ac_exeext; then
24308 ac_cv_lib_pri_pri_keypad_facility=yes
24309 else
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24313 ac_cv_lib_pri_pri_keypad_facility=no
24316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24317 conftest$ac_exeext conftest.$ac_ext
24318 LIBS=$ac_check_lib_save_LIBS
24320 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
24321 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
24322 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
24323 AST_PRI_FOUND=yes
24324 else
24325 AST_PRI_FOUND=no
24329 if test "${AST_PRI_FOUND}" = "yes"; then
24330 PRI_LIB="-lpri "
24331 PRI_HEADER_FOUND="1"
24332 if test "x${PRI_DIR}" != "x"; then
24333 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
24334 PRI_INCLUDE="-I${PRI_DIR}/include"
24335 saved_cppflags="${CPPFLAGS}"
24336 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
24337 if test "xlibpri.h" != "x" ; then
24338 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
24339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24340 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24341 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 ac_res=`eval echo '${'$as_ac_Header'}'`
24346 { echo "$as_me:$LINENO: result: $ac_res" >&5
24347 echo "${ECHO_T}$ac_res" >&6; }
24348 else
24349 # Is the header compilable?
24350 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
24351 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
24352 cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h. */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 $ac_includes_default
24359 #include <${PRI_DIR}/include/libpri.h>
24360 _ACEOF
24361 rm -f conftest.$ac_objext
24362 if { (ac_try="$ac_compile"
24363 case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24366 esac
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_compile") 2>conftest.er1
24369 ac_status=$?
24370 grep -v '^ *+' conftest.er1 >conftest.err
24371 rm -f conftest.er1
24372 cat conftest.err >&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } && {
24375 test -z "$ac_c_werror_flag" ||
24376 test ! -s conftest.err
24377 } && test -s conftest.$ac_objext; then
24378 ac_header_compiler=yes
24379 else
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24383 ac_header_compiler=no
24386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24388 echo "${ECHO_T}$ac_header_compiler" >&6; }
24390 # Is the header present?
24391 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
24392 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
24393 cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h. */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24399 #include <${PRI_DIR}/include/libpri.h>
24400 _ACEOF
24401 if { (ac_try="$ac_cpp conftest.$ac_ext"
24402 case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24408 ac_status=$?
24409 grep -v '^ *+' conftest.er1 >conftest.err
24410 rm -f conftest.er1
24411 cat conftest.err >&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); } >/dev/null && {
24414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24415 test ! -s conftest.err
24416 }; then
24417 ac_header_preproc=yes
24418 else
24419 echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24422 ac_header_preproc=no
24425 rm -f conftest.err conftest.$ac_ext
24426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24427 echo "${ECHO_T}$ac_header_preproc" >&6; }
24429 # So? What about this header?
24430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24431 yes:no: )
24432 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24433 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24434 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
24435 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
24436 ac_header_preproc=yes
24438 no:yes:* )
24439 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
24440 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
24441 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
24442 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
24443 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
24444 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24446 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24447 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
24448 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
24449 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
24450 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
24453 esac
24454 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24455 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24458 else
24459 eval "$as_ac_Header=\$ac_header_preproc"
24461 ac_res=`eval echo '${'$as_ac_Header'}'`
24462 { echo "$as_me:$LINENO: result: $ac_res" >&5
24463 echo "${ECHO_T}$ac_res" >&6; }
24466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24467 PRI_HEADER_FOUND=1
24468 else
24469 PRI_HEADER_FOUND=0
24474 CPPFLAGS="${saved_cppflags}"
24475 else
24476 if test "xlibpri.h" != "x" ; then
24477 if test "${ac_cv_header_libpri_h+set}" = set; then
24478 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24479 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24480 if test "${ac_cv_header_libpri_h+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24484 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24485 else
24486 # Is the header compilable?
24487 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24488 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24489 cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h. */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24495 $ac_includes_default
24496 #include <libpri.h>
24497 _ACEOF
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_compile") 2>conftest.er1
24506 ac_status=$?
24507 grep -v '^ *+' conftest.er1 >conftest.err
24508 rm -f conftest.er1
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } && {
24512 test -z "$ac_c_werror_flag" ||
24513 test ! -s conftest.err
24514 } && test -s conftest.$ac_objext; then
24515 ac_header_compiler=yes
24516 else
24517 echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24520 ac_header_compiler=no
24523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24525 echo "${ECHO_T}$ac_header_compiler" >&6; }
24527 # Is the header present?
24528 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24529 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24530 cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h. */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 #include <libpri.h>
24537 _ACEOF
24538 if { (ac_try="$ac_cpp conftest.$ac_ext"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24545 ac_status=$?
24546 grep -v '^ *+' conftest.er1 >conftest.err
24547 rm -f conftest.er1
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } >/dev/null && {
24551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24552 test ! -s conftest.err
24553 }; then
24554 ac_header_preproc=yes
24555 else
24556 echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24559 ac_header_preproc=no
24562 rm -f conftest.err conftest.$ac_ext
24563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24564 echo "${ECHO_T}$ac_header_preproc" >&6; }
24566 # So? What about this header?
24567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24568 yes:no: )
24569 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24570 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24571 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24572 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24573 ac_header_preproc=yes
24575 no:yes:* )
24576 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24577 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24578 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24579 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24580 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24581 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24582 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24583 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24585 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24587 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24590 esac
24591 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24592 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24593 if test "${ac_cv_header_libpri_h+set}" = set; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24595 else
24596 ac_cv_header_libpri_h=$ac_header_preproc
24598 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24599 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24602 if test $ac_cv_header_libpri_h = yes; then
24603 PRI_HEADER_FOUND=1
24604 else
24605 PRI_HEADER_FOUND=0
24611 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
24612 if test -n "${PRI_MANDATORY}" ;
24613 then
24614 { echo "$as_me:$LINENO: ***" >&5
24615 echo "$as_me: ***" >&6;}
24616 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24617 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24618 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
24619 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
24620 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24621 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24622 exit 1
24624 PRI_LIB=""
24625 PRI_INCLUDE=""
24626 PBX_PRI=0
24627 else
24628 PBX_PRI=1
24630 cat >>confdefs.h <<_ACEOF
24631 #define HAVE_PRI 1
24632 _ACEOF
24635 elif test -n "${PRI_MANDATORY}";
24636 then
24637 { echo "$as_me:$LINENO: ***" >&5
24638 echo "$as_me: ***" >&6;}
24639 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24640 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24641 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24642 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24643 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24644 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24645 exit 1
24650 if test "${USE_PWLIB}" != "no"; then
24651 if test -n "${PWLIB_DIR}"; then
24652 PWLIBDIR="${PWLIB_DIR}"
24656 PWLIB_INCDIR=
24657 PWLIB_LIBDIR=
24658 ac_ext=cpp
24659 ac_cpp='$CXXCPP $CPPFLAGS'
24660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24664 if test "${PWLIBDIR:-unset}" != "unset" ; then
24665 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
24666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24667 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24668 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 ac_res=`eval echo '${'$as_ac_Header'}'`
24673 { echo "$as_me:$LINENO: result: $ac_res" >&5
24674 echo "${ECHO_T}$ac_res" >&6; }
24675 else
24676 # Is the header compilable?
24677 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
24678 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
24679 cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h. */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24686 #include <${PWLIBDIR}/version.h>
24687 _ACEOF
24688 rm -f conftest.$ac_objext
24689 if { (ac_try="$ac_compile"
24690 case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_compile") 2>conftest.er1
24696 ac_status=$?
24697 grep -v '^ *+' conftest.er1 >conftest.err
24698 rm -f conftest.er1
24699 cat conftest.err >&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && {
24702 test -z "$ac_cxx_werror_flag" ||
24703 test ! -s conftest.err
24704 } && test -s conftest.$ac_objext; then
24705 ac_header_compiler=yes
24706 else
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24710 ac_header_compiler=no
24713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24715 echo "${ECHO_T}$ac_header_compiler" >&6; }
24717 # Is the header present?
24718 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
24719 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
24720 cat >conftest.$ac_ext <<_ACEOF
24721 /* confdefs.h. */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h. */
24726 #include <${PWLIBDIR}/version.h>
24727 _ACEOF
24728 if { (ac_try="$ac_cpp conftest.$ac_ext"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732 esac
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24735 ac_status=$?
24736 grep -v '^ *+' conftest.er1 >conftest.err
24737 rm -f conftest.er1
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } >/dev/null && {
24741 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24742 test ! -s conftest.err
24743 }; then
24744 ac_header_preproc=yes
24745 else
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ac_header_preproc=no
24752 rm -f conftest.err conftest.$ac_ext
24753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24754 echo "${ECHO_T}$ac_header_preproc" >&6; }
24756 # So? What about this header?
24757 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24758 yes:no: )
24759 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24760 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24761 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
24762 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
24763 ac_header_preproc=yes
24765 no:yes:* )
24766 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
24767 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
24768 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
24769 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
24770 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
24771 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
24772 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
24773 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24774 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
24775 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
24777 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
24780 esac
24781 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24782 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786 eval "$as_ac_Header=\$ac_header_preproc"
24788 ac_res=`eval echo '${'$as_ac_Header'}'`
24789 { echo "$as_me:$LINENO: result: $ac_res" >&5
24790 echo "${ECHO_T}$ac_res" >&6; }
24793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24794 HAS_PWLIB=1
24799 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24800 if test "${OPENH323DIR:-unset}" != "unset"; then
24801 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24803 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24804 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24808 ac_res=`eval echo '${'$as_ac_Header'}'`
24809 { echo "$as_me:$LINENO: result: $ac_res" >&5
24810 echo "${ECHO_T}$ac_res" >&6; }
24811 else
24812 # Is the header compilable?
24813 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
24814 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
24815 cat >conftest.$ac_ext <<_ACEOF
24816 /* confdefs.h. */
24817 _ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h. */
24821 $ac_includes_default
24822 #include <${OPENH323DIR}/../pwlib/version.h>
24823 _ACEOF
24824 rm -f conftest.$ac_objext
24825 if { (ac_try="$ac_compile"
24826 case "(($ac_try" in
24827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24829 esac
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24832 ac_status=$?
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_cxx_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24841 ac_header_compiler=yes
24842 else
24843 echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_header_compiler=no
24849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24851 echo "${ECHO_T}$ac_header_compiler" >&6; }
24853 # Is the header present?
24854 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
24855 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
24856 cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h. */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 #include <${OPENH323DIR}/../pwlib/version.h>
24863 _ACEOF
24864 if { (ac_try="$ac_cpp conftest.$ac_ext"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24868 esac
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } >/dev/null && {
24877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24878 test ! -s conftest.err
24879 }; then
24880 ac_header_preproc=yes
24881 else
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_header_preproc=no
24888 rm -f conftest.err conftest.$ac_ext
24889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24890 echo "${ECHO_T}$ac_header_preproc" >&6; }
24892 # So? What about this header?
24893 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24894 yes:no: )
24895 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24896 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24897 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
24898 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
24899 ac_header_preproc=yes
24901 no:yes:* )
24902 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
24903 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
24905 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
24907 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
24909 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24910 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
24911 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
24912 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
24913 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
24916 esac
24917 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24918 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922 eval "$as_ac_Header=\$ac_header_preproc"
24924 ac_res=`eval echo '${'$as_ac_Header'}'`
24925 { echo "$as_me:$LINENO: result: $ac_res" >&5
24926 echo "${ECHO_T}$ac_res" >&6; }
24929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24930 HAS_PWLIB=1
24935 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24936 PWLIBDIR="${OPENH323DIR}/../pwlib"
24937 else
24938 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24940 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24941 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24943 echo $ECHO_N "(cached) $ECHO_C" >&6
24945 ac_res=`eval echo '${'$as_ac_Header'}'`
24946 { echo "$as_me:$LINENO: result: $ac_res" >&5
24947 echo "${ECHO_T}$ac_res" >&6; }
24948 else
24949 # Is the header compilable?
24950 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
24951 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
24952 cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h. */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 $ac_includes_default
24959 #include <${HOME}/pwlib/include/ptlib.h>
24960 _ACEOF
24961 rm -f conftest.$ac_objext
24962 if { (ac_try="$ac_compile"
24963 case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24966 esac
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_compile") 2>conftest.er1
24969 ac_status=$?
24970 grep -v '^ *+' conftest.er1 >conftest.err
24971 rm -f conftest.er1
24972 cat conftest.err >&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_cxx_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest.$ac_objext; then
24978 ac_header_compiler=yes
24979 else
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24983 ac_header_compiler=no
24986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24988 echo "${ECHO_T}$ac_header_compiler" >&6; }
24990 # Is the header present?
24991 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
24992 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
24993 cat >conftest.$ac_ext <<_ACEOF
24994 /* confdefs.h. */
24995 _ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h. */
24999 #include <${HOME}/pwlib/include/ptlib.h>
25000 _ACEOF
25001 if { (ac_try="$ac_cpp conftest.$ac_ext"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25005 esac
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25008 ac_status=$?
25009 grep -v '^ *+' conftest.er1 >conftest.err
25010 rm -f conftest.er1
25011 cat conftest.err >&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } >/dev/null && {
25014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25015 test ! -s conftest.err
25016 }; then
25017 ac_header_preproc=yes
25018 else
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 ac_header_preproc=no
25025 rm -f conftest.err conftest.$ac_ext
25026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25027 echo "${ECHO_T}$ac_header_preproc" >&6; }
25029 # So? What about this header?
25030 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25031 yes:no: )
25032 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25033 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
25035 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
25036 ac_header_preproc=yes
25038 no:yes:* )
25039 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
25040 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
25041 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
25042 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25043 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
25044 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
25045 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25046 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25047 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
25048 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
25050 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25053 esac
25054 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
25055 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
25056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059 eval "$as_ac_Header=\$ac_header_preproc"
25061 ac_res=`eval echo '${'$as_ac_Header'}'`
25062 { echo "$as_me:$LINENO: result: $ac_res" >&5
25063 echo "${ECHO_T}$ac_res" >&6; }
25066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25067 HAS_PWLIB=1
25071 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25072 PWLIBDIR="${HOME}/pwlib"
25073 else
25074 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25075 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
25076 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
25077 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25080 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25081 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25082 else
25083 # Is the header compilable?
25084 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
25085 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
25086 cat >conftest.$ac_ext <<_ACEOF
25087 /* confdefs.h. */
25088 _ACEOF
25089 cat confdefs.h >>conftest.$ac_ext
25090 cat >>conftest.$ac_ext <<_ACEOF
25091 /* end confdefs.h. */
25092 $ac_includes_default
25093 #include </usr/local/include/ptlib.h>
25094 _ACEOF
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_compile") 2>conftest.er1
25103 ac_status=$?
25104 grep -v '^ *+' conftest.er1 >conftest.err
25105 rm -f conftest.er1
25106 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } && {
25109 test -z "$ac_cxx_werror_flag" ||
25110 test ! -s conftest.err
25111 } && test -s conftest.$ac_objext; then
25112 ac_header_compiler=yes
25113 else
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_header_compiler=no
25120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25122 echo "${ECHO_T}$ac_header_compiler" >&6; }
25124 # Is the header present?
25125 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
25126 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
25127 cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h. */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 #include </usr/local/include/ptlib.h>
25134 _ACEOF
25135 if { (ac_try="$ac_cpp conftest.$ac_ext"
25136 case "(($ac_try" in
25137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138 *) ac_try_echo=$ac_try;;
25139 esac
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25142 ac_status=$?
25143 grep -v '^ *+' conftest.er1 >conftest.err
25144 rm -f conftest.er1
25145 cat conftest.err >&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } >/dev/null && {
25148 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25149 test ! -s conftest.err
25150 }; then
25151 ac_header_preproc=yes
25152 else
25153 echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25156 ac_header_preproc=no
25159 rm -f conftest.err conftest.$ac_ext
25160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25161 echo "${ECHO_T}$ac_header_preproc" >&6; }
25163 # So? What about this header?
25164 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25165 yes:no: )
25166 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25167 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
25169 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
25170 ac_header_preproc=yes
25172 no:yes:* )
25173 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
25174 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
25175 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
25176 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25177 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
25178 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
25179 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25180 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25181 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
25182 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25183 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
25184 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25187 esac
25188 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
25189 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
25190 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25192 else
25193 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
25195 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25196 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25199 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25200 HAS_PWLIB=1
25204 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25205 # Extract the first word of "ptlib-config", so it can be a program name with args.
25206 set dummy ptlib-config; ac_word=$2
25207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25209 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25210 echo $ECHO_N "(cached) $ECHO_C" >&6
25211 else
25212 case $PTLIB_CONFIG in
25213 [\\/]* | ?:[\\/]*)
25214 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25218 for as_dir in /usr/local/bin
25220 IFS=$as_save_IFS
25221 test -z "$as_dir" && as_dir=.
25222 for ac_exec_ext in '' $ac_executable_extensions; do
25223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25224 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25226 break 2
25228 done
25229 done
25230 IFS=$as_save_IFS
25233 esac
25235 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25236 if test -n "$PTLIB_CONFIG"; then
25237 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25238 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25239 else
25240 { echo "$as_me:$LINENO: result: no" >&5
25241 echo "${ECHO_T}no" >&6; }
25245 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25246 # Extract the first word of "ptlib-config", so it can be a program name with args.
25247 set dummy ptlib-config; ac_word=$2
25248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25250 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253 case $PTLIB_CONFIG in
25254 [\\/]* | ?:[\\/]*)
25255 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25259 for as_dir in /usr/local/share/pwlib/make
25261 IFS=$as_save_IFS
25262 test -z "$as_dir" && as_dir=.
25263 for ac_exec_ext in '' $ac_executable_extensions; do
25264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25265 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25267 break 2
25269 done
25270 done
25271 IFS=$as_save_IFS
25274 esac
25276 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25277 if test -n "$PTLIB_CONFIG"; then
25278 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25279 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25280 else
25281 { echo "$as_me:$LINENO: result: no" >&5
25282 echo "${ECHO_T}no" >&6; }
25287 PWLIB_INCDIR="/usr/local/include"
25288 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25289 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25290 if test "x$LIB64" != "x"; then
25291 PWLIB_LIBDIR="/usr/local/lib64"
25292 else
25293 PWLIB_LIBDIR="/usr/local/lib"
25296 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25297 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25298 else
25299 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25300 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25301 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25302 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25306 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25307 else
25308 # Is the header compilable?
25309 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
25310 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
25311 cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h. */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317 $ac_includes_default
25318 #include </usr/include/ptlib.h>
25319 _ACEOF
25320 rm -f conftest.$ac_objext
25321 if { (ac_try="$ac_compile"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25325 esac
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327 (eval "$ac_compile") 2>conftest.er1
25328 ac_status=$?
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } && {
25334 test -z "$ac_cxx_werror_flag" ||
25335 test ! -s conftest.err
25336 } && test -s conftest.$ac_objext; then
25337 ac_header_compiler=yes
25338 else
25339 echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25342 ac_header_compiler=no
25345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25347 echo "${ECHO_T}$ac_header_compiler" >&6; }
25349 # Is the header present?
25350 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
25351 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
25352 cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h. */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 #include </usr/include/ptlib.h>
25359 _ACEOF
25360 if { (ac_try="$ac_cpp conftest.$ac_ext"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25364 esac
25365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25367 ac_status=$?
25368 grep -v '^ *+' conftest.er1 >conftest.err
25369 rm -f conftest.er1
25370 cat conftest.err >&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); } >/dev/null && {
25373 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25374 test ! -s conftest.err
25375 }; then
25376 ac_header_preproc=yes
25377 else
25378 echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25381 ac_header_preproc=no
25384 rm -f conftest.err conftest.$ac_ext
25385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25386 echo "${ECHO_T}$ac_header_preproc" >&6; }
25388 # So? What about this header?
25389 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25390 yes:no: )
25391 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25392 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
25394 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
25395 ac_header_preproc=yes
25397 no:yes:* )
25398 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
25399 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
25400 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
25401 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25402 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
25403 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
25404 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25405 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25406 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
25407 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25408 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
25409 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25412 esac
25413 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25414 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25415 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25416 echo $ECHO_N "(cached) $ECHO_C" >&6
25417 else
25418 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
25420 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25421 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25424 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25425 HAS_PWLIB=1
25429 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25430 # Extract the first word of "ptlib-config", so it can be a program name with args.
25431 set dummy ptlib-config; ac_word=$2
25432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25434 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436 else
25437 case $PTLIB_CONFIG in
25438 [\\/]* | ?:[\\/]*)
25439 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25443 for as_dir in /usr/share/pwlib/make
25445 IFS=$as_save_IFS
25446 test -z "$as_dir" && as_dir=.
25447 for ac_exec_ext in '' $ac_executable_extensions; do
25448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25449 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25451 break 2
25453 done
25454 done
25455 IFS=$as_save_IFS
25458 esac
25460 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25461 if test -n "$PTLIB_CONFIG"; then
25462 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25463 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25464 else
25465 { echo "$as_me:$LINENO: result: no" >&5
25466 echo "${ECHO_T}no" >&6; }
25470 PWLIB_INCDIR="/usr/include"
25471 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25472 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25473 if test "x$LIB64" != "x"; then
25474 PWLIB_LIBDIR="/usr/lib64"
25475 else
25476 PWLIB_LIBDIR="/usr/lib"
25479 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25480 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25487 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25488 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
25489 # exit
25492 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25493 if test "${PWLIBDIR:-unset}" = "unset" ; then
25494 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25495 PWLIBDIR=`$PTLIB_CONFIG --prefix`
25496 else
25497 echo "Cannot find ptlib-config - please install and try again"
25498 exit
25502 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
25503 PWLIBDIR="/usr/share/pwlib"
25504 PWLIB_INCDIR="/usr/include"
25505 if test "x$LIB64" != "x"; then
25506 PWLIB_LIBDIR="/usr/lib64"
25507 else
25508 PWLIB_LIBDIR="/usr/lib"
25511 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
25512 PWLIBDIR="/usr/local/share/pwlib"
25513 PWLIB_INCDIR="/usr/local/include"
25514 if test "x$LIB64" != "x"; then
25515 PWLIB_LIBDIR="/usr/local/lib64"
25516 else
25517 PWLIB_LIBDIR="/usr/local/lib"
25521 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
25522 PWLIB_INCDIR="${PWLIBDIR}/include"
25524 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25525 PWLIB_LIBDIR="${PWLIBDIR}/lib"
25532 ac_ext=c
25533 ac_cpp='$CPP $CPPFLAGS'
25534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25540 if test "${HAS_PWLIB:-unset}" != "unset"; then
25541 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
25542 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
25543 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
25544 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
25545 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
25546 let PWLIB_REQ=1*10000+9*100+2
25548 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
25549 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25550 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
25551 { echo "$as_me:$LINENO: result: no" >&5
25552 echo "${ECHO_T}no" >&6; }
25553 unset HAS_PWLIB
25554 else
25555 { echo "$as_me:$LINENO: result: yes" >&5
25556 echo "${ECHO_T}yes" >&6; }
25561 if test "${HAS_PWLIB:-unset}" != "unset"; then
25563 PWLIB_OSTYPE=
25564 case "$host_os" in
25565 linux*) PWLIB_OSTYPE=linux ;
25567 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
25569 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
25570 ENDLDLIBS="-lossaudio" ;
25572 netbsd* ) PWLIB_OSTYPE=NetBSD ;
25573 ENDLDLIBS="-lossaudio" ;
25575 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
25577 darwin* ) PWLIB_OSTYPE=Darwin ;
25579 beos*) PWLIB_OSTYPE=beos ;
25580 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
25582 cygwin*) PWLIB_OSTYPE=cygwin ;
25584 mingw*) PWLIB_OSTYPE=mingw ;
25585 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
25586 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
25588 * ) PWLIB_OSTYPE="$host_os" ;
25589 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
25590 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
25592 esac
25594 PWLIB_MACHTYPE=
25595 case "$host_cpu" in
25596 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
25599 x86_64) PWLIB_MACHTYPE=x86_64 ;
25600 P_64BIT=1 ;
25601 LIB64=1 ;
25604 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
25605 P_64BIT=1 ;
25608 sparc ) PWLIB_MACHTYPE=sparc ;
25611 powerpc ) PWLIB_MACHTYPE=ppc ;
25614 ppc ) PWLIB_MACHTYPE=ppc ;
25617 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
25618 P_64BIT=1 ;
25619 LIB64=1 ;
25622 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
25623 P_64BIT=1 ;
25624 LIB64=1 ;
25627 ia64) PWLIB_MACHTYPE=ia64 ;
25628 P_64BIT=1 ;
25631 s390x) PWLIB_MACHTYPE=s390x ;
25632 P_64BIT=1 ;
25633 LIB64=1 ;
25636 s390) PWLIB_MACHTYPE=s390 ;
25639 * ) PWLIB_MACHTYPE="$host_cpu";
25640 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
25641 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
25642 esac
25644 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
25649 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
25652 if test "${HAS_PWLIB:-unset}" != "unset"; then
25653 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
25654 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
25656 saved_cppflags="${CPPFLAGS}"
25657 saved_libs="${LIBS}"
25658 if test "${PWLIB_LIB:-unset}" != "unset"; then
25659 LIBS="${LIBS} ${PWLIB_LIB} "
25660 else
25661 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
25663 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
25665 ac_ext=cpp
25666 ac_cpp='$CXXCPP $CPPFLAGS'
25667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25672 cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h. */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25678 #include "ptlib.h"
25680 main ()
25682 BOOL q = PTime::IsDaylightSavings();
25684 return 0;
25686 _ACEOF
25687 rm -f conftest.$ac_objext conftest$ac_exeext
25688 if { (ac_try="$ac_link"
25689 case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694 (eval "$ac_link") 2>conftest.er1
25695 ac_status=$?
25696 grep -v '^ *+' conftest.er1 >conftest.err
25697 rm -f conftest.er1
25698 cat conftest.err >&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } && {
25701 test -z "$ac_cxx_werror_flag" ||
25702 test ! -s conftest.err
25703 } && test -s conftest$ac_exeext &&
25704 $as_test_x conftest$ac_exeext; then
25705 { echo "$as_me:$LINENO: result: yes" >&5
25706 echo "${ECHO_T}yes" >&6; }
25707 ac_cv_lib_PWLIB="yes"
25709 else
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25713 { echo "$as_me:$LINENO: result: no" >&5
25714 echo "${ECHO_T}no" >&6; }
25715 ac_cv_lib_PWLIB="no"
25720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25721 conftest$ac_exeext conftest.$ac_ext
25723 ac_ext=c
25724 ac_cpp='$CPP $CPPFLAGS'
25725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25730 LIBS="${saved_libs}"
25731 CPPFLAGS="${saved_cppflags}"
25733 if test "${ac_cv_lib_PWLIB}" = "yes"; then
25734 if test "${PWLIB_LIB:-undef}" = "undef"; then
25735 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
25736 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
25737 else
25738 PWLIB_LIB="-l${PLATFORM_PWLIB}"
25741 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
25742 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
25744 PBX_PWLIB=1
25746 cat >>confdefs.h <<\_ACEOF
25747 #define HAVE_PWLIB 1
25748 _ACEOF
25756 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
25757 { echo "$as_me:$LINENO: ***" >&5
25758 echo "$as_me: ***" >&6;}
25759 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
25760 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
25761 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25762 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25763 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
25764 echo "$as_me: *** including --without-pwlib" >&6;}
25765 exit 1
25768 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
25769 if test -n "${OPENH323_DIR}"; then
25770 OPENH323DIR="${OPENH323_DIR}"
25773 OPENH323_INCDIR=
25774 OPENH323_LIBDIR=
25775 ac_ext=cpp
25776 ac_cpp='$CXXCPP $CPPFLAGS'
25777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25781 if test "${OPENH323DIR:-unset}" != "unset" ; then
25782 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
25783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25784 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25785 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25789 ac_res=`eval echo '${'$as_ac_Header'}'`
25790 { echo "$as_me:$LINENO: result: $ac_res" >&5
25791 echo "${ECHO_T}$ac_res" >&6; }
25792 else
25793 # Is the header compilable?
25794 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
25795 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
25796 cat >conftest.$ac_ext <<_ACEOF
25797 /* confdefs.h. */
25798 _ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h. */
25802 $ac_includes_default
25803 #include <${OPENH323DIR}/version.h>
25804 _ACEOF
25805 rm -f conftest.$ac_objext
25806 if { (ac_try="$ac_compile"
25807 case "(($ac_try" in
25808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25809 *) ac_try_echo=$ac_try;;
25810 esac
25811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25812 (eval "$ac_compile") 2>conftest.er1
25813 ac_status=$?
25814 grep -v '^ *+' conftest.er1 >conftest.err
25815 rm -f conftest.er1
25816 cat conftest.err >&5
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } && {
25819 test -z "$ac_cxx_werror_flag" ||
25820 test ! -s conftest.err
25821 } && test -s conftest.$ac_objext; then
25822 ac_header_compiler=yes
25823 else
25824 echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25827 ac_header_compiler=no
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25832 echo "${ECHO_T}$ac_header_compiler" >&6; }
25834 # Is the header present?
25835 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
25836 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
25837 cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h. */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25843 #include <${OPENH323DIR}/version.h>
25844 _ACEOF
25845 if { (ac_try="$ac_cpp conftest.$ac_ext"
25846 case "(($ac_try" in
25847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848 *) ac_try_echo=$ac_try;;
25849 esac
25850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25852 ac_status=$?
25853 grep -v '^ *+' conftest.er1 >conftest.err
25854 rm -f conftest.er1
25855 cat conftest.err >&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); } >/dev/null && {
25858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25859 test ! -s conftest.err
25860 }; then
25861 ac_header_preproc=yes
25862 else
25863 echo "$as_me: failed program was:" >&5
25864 sed 's/^/| /' conftest.$ac_ext >&5
25866 ac_header_preproc=no
25869 rm -f conftest.err conftest.$ac_ext
25870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25871 echo "${ECHO_T}$ac_header_preproc" >&6; }
25873 # So? What about this header?
25874 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25875 yes:no: )
25876 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25877 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25878 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
25879 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
25880 ac_header_preproc=yes
25882 no:yes:* )
25883 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
25884 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
25885 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
25886 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
25887 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
25888 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
25890 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
25892 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
25893 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
25894 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
25897 esac
25898 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25899 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903 eval "$as_ac_Header=\$ac_header_preproc"
25905 ac_res=`eval echo '${'$as_ac_Header'}'`
25906 { echo "$as_me:$LINENO: result: $ac_res" >&5
25907 echo "${ECHO_T}$ac_res" >&6; }
25910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25911 HAS_OPENH323=1
25916 if test "${HAS_OPENH323:-unset}" = "unset" ; then
25917 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
25918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25919 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25920 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 ac_res=`eval echo '${'$as_ac_Header'}'`
25925 { echo "$as_me:$LINENO: result: $ac_res" >&5
25926 echo "${ECHO_T}$ac_res" >&6; }
25927 else
25928 # Is the header compilable?
25929 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
25930 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
25931 cat >conftest.$ac_ext <<_ACEOF
25932 /* confdefs.h. */
25933 _ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h. */
25937 $ac_includes_default
25938 #include <${PWLIBDIR}/../openh323/version.h>
25939 _ACEOF
25940 rm -f conftest.$ac_objext
25941 if { (ac_try="$ac_compile"
25942 case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25945 esac
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_compile") 2>conftest.er1
25948 ac_status=$?
25949 grep -v '^ *+' conftest.er1 >conftest.err
25950 rm -f conftest.er1
25951 cat conftest.err >&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } && {
25954 test -z "$ac_cxx_werror_flag" ||
25955 test ! -s conftest.err
25956 } && test -s conftest.$ac_objext; then
25957 ac_header_compiler=yes
25958 else
25959 echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25962 ac_header_compiler=no
25965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25967 echo "${ECHO_T}$ac_header_compiler" >&6; }
25969 # Is the header present?
25970 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
25971 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
25972 cat >conftest.$ac_ext <<_ACEOF
25973 /* confdefs.h. */
25974 _ACEOF
25975 cat confdefs.h >>conftest.$ac_ext
25976 cat >>conftest.$ac_ext <<_ACEOF
25977 /* end confdefs.h. */
25978 #include <${PWLIBDIR}/../openh323/version.h>
25979 _ACEOF
25980 if { (ac_try="$ac_cpp conftest.$ac_ext"
25981 case "(($ac_try" in
25982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25984 esac
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } >/dev/null && {
25993 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25994 test ! -s conftest.err
25995 }; then
25996 ac_header_preproc=yes
25997 else
25998 echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26001 ac_header_preproc=no
26004 rm -f conftest.err conftest.$ac_ext
26005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26006 echo "${ECHO_T}$ac_header_preproc" >&6; }
26008 # So? What about this header?
26009 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26010 yes:no: )
26011 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26012 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26013 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
26014 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
26015 ac_header_preproc=yes
26017 no:yes:* )
26018 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
26019 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
26020 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
26021 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
26022 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
26023 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
26024 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
26025 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26026 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
26027 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
26028 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
26029 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
26032 esac
26033 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26034 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26038 eval "$as_ac_Header=\$ac_header_preproc"
26040 ac_res=`eval echo '${'$as_ac_Header'}'`
26041 { echo "$as_me:$LINENO: result: $ac_res" >&5
26042 echo "${ECHO_T}$ac_res" >&6; }
26045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26046 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
26050 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26051 OPENH323DIR="${PWLIBDIR}/../openh323"
26052 saved_cppflags="${CPPFLAGS}"
26053 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
26054 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
26055 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
26056 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
26057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26058 echo $ECHO_N "(cached) $ECHO_C" >&6
26059 else
26060 cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h. */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h. */
26066 #include <ptlib.h>
26068 #include <${OPENH323DIR}/include/h323.h>
26069 _ACEOF
26070 rm -f conftest.$ac_objext
26071 if { (ac_try="$ac_compile"
26072 case "(($ac_try" in
26073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074 *) ac_try_echo=$ac_try;;
26075 esac
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077 (eval "$ac_compile") 2>conftest.er1
26078 ac_status=$?
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } && {
26084 test -z "$ac_cxx_werror_flag" ||
26085 test ! -s conftest.err
26086 } && test -s conftest.$ac_objext; then
26087 eval "$as_ac_Header=yes"
26088 else
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 eval "$as_ac_Header=no"
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 ac_res=`eval echo '${'$as_ac_Header'}'`
26098 { echo "$as_me:$LINENO: result: $ac_res" >&5
26099 echo "${ECHO_T}$ac_res" >&6; }
26100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26102 else
26103 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
26107 CPPFLAGS="${saved_cppflags}"
26108 else
26109 saved_cppflags="${CPPFLAGS}"
26110 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
26111 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
26112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26113 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26114 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26116 echo $ECHO_N "(cached) $ECHO_C" >&6
26118 ac_res=`eval echo '${'$as_ac_Header'}'`
26119 { echo "$as_me:$LINENO: result: $ac_res" >&5
26120 echo "${ECHO_T}$ac_res" >&6; }
26121 else
26122 # Is the header compilable?
26123 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
26124 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
26125 cat >conftest.$ac_ext <<_ACEOF
26126 /* confdefs.h. */
26127 _ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h. */
26131 $ac_includes_default
26132 #include <${HOME}/openh323/include/h323.h>
26133 _ACEOF
26134 rm -f conftest.$ac_objext
26135 if { (ac_try="$ac_compile"
26136 case "(($ac_try" in
26137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138 *) ac_try_echo=$ac_try;;
26139 esac
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141 (eval "$ac_compile") 2>conftest.er1
26142 ac_status=$?
26143 grep -v '^ *+' conftest.er1 >conftest.err
26144 rm -f conftest.er1
26145 cat conftest.err >&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } && {
26148 test -z "$ac_cxx_werror_flag" ||
26149 test ! -s conftest.err
26150 } && test -s conftest.$ac_objext; then
26151 ac_header_compiler=yes
26152 else
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 ac_header_compiler=no
26159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26161 echo "${ECHO_T}$ac_header_compiler" >&6; }
26163 # Is the header present?
26164 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
26165 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h. */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 #include <${HOME}/openh323/include/h323.h>
26173 _ACEOF
26174 if { (ac_try="$ac_cpp conftest.$ac_ext"
26175 case "(($ac_try" in
26176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26177 *) ac_try_echo=$ac_try;;
26178 esac
26179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26181 ac_status=$?
26182 grep -v '^ *+' conftest.er1 >conftest.err
26183 rm -f conftest.er1
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } >/dev/null && {
26187 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26188 test ! -s conftest.err
26189 }; then
26190 ac_header_preproc=yes
26191 else
26192 echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26195 ac_header_preproc=no
26198 rm -f conftest.err conftest.$ac_ext
26199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26200 echo "${ECHO_T}$ac_header_preproc" >&6; }
26202 # So? What about this header?
26203 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26204 yes:no: )
26205 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26206 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
26208 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
26209 ac_header_preproc=yes
26211 no:yes:* )
26212 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26213 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26215 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26217 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26218 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26219 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26220 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
26221 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
26222 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26223 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26226 esac
26227 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26228 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232 eval "$as_ac_Header=\$ac_header_preproc"
26234 ac_res=`eval echo '${'$as_ac_Header'}'`
26235 { echo "$as_me:$LINENO: result: $ac_res" >&5
26236 echo "${ECHO_T}$ac_res" >&6; }
26239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240 HAS_OPENH323=1
26244 CPPFLAGS="${saved_cppflags}"
26245 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26246 OPENH323DIR="${HOME}/openh323"
26247 else
26248 saved_cppflags="${CPPFLAGS}"
26249 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26250 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26251 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26252 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26253 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26256 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26257 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26258 else
26259 # Is the header compilable?
26260 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26261 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26262 cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h. */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26269 #include </usr/local/include/openh323/h323.h>
26270 _ACEOF
26271 rm -f conftest.$ac_objext
26272 if { (ac_try="$ac_compile"
26273 case "(($ac_try" in
26274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275 *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278 (eval "$ac_compile") 2>conftest.er1
26279 ac_status=$?
26280 grep -v '^ *+' conftest.er1 >conftest.err
26281 rm -f conftest.er1
26282 cat conftest.err >&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } && {
26285 test -z "$ac_cxx_werror_flag" ||
26286 test ! -s conftest.err
26287 } && test -s conftest.$ac_objext; then
26288 ac_header_compiler=yes
26289 else
26290 echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26293 ac_header_compiler=no
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26298 echo "${ECHO_T}$ac_header_compiler" >&6; }
26300 # Is the header present?
26301 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26302 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26303 cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h. */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26309 #include </usr/local/include/openh323/h323.h>
26310 _ACEOF
26311 if { (ac_try="$ac_cpp conftest.$ac_ext"
26312 case "(($ac_try" in
26313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26314 *) ac_try_echo=$ac_try;;
26315 esac
26316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26318 ac_status=$?
26319 grep -v '^ *+' conftest.er1 >conftest.err
26320 rm -f conftest.er1
26321 cat conftest.err >&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } >/dev/null && {
26324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26325 test ! -s conftest.err
26326 }; then
26327 ac_header_preproc=yes
26328 else
26329 echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26332 ac_header_preproc=no
26335 rm -f conftest.err conftest.$ac_ext
26336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26337 echo "${ECHO_T}$ac_header_preproc" >&6; }
26339 # So? What about this header?
26340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26341 yes:no: )
26342 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26343 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
26345 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
26346 ac_header_preproc=yes
26348 no:yes:* )
26349 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26350 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26351 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26352 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26354 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26355 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26356 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
26358 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
26359 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26360 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26363 esac
26364 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26365 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26366 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26367 echo $ECHO_N "(cached) $ECHO_C" >&6
26368 else
26369 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
26371 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26372 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26375 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26376 HAS_OPENH323=1
26380 CPPFLAGS="${saved_cppflags}"
26381 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26382 OPENH323DIR="/usr/local/share/openh323"
26383 OPENH323_INCDIR="/usr/local/include/openh323"
26384 if test "x$LIB64" != "x"; then
26385 OPENH323_LIBDIR="/usr/local/lib64"
26386 else
26387 OPENH323_LIBDIR="/usr/local/lib"
26389 else
26390 saved_cppflags="${CPPFLAGS}"
26391 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26392 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26393 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26394 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26396 else
26397 cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h. */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h. */
26403 #include <ptlib.h>
26405 #include </usr/include/openh323/h323.h>
26406 _ACEOF
26407 rm -f conftest.$ac_objext
26408 if { (ac_try="$ac_compile"
26409 case "(($ac_try" in
26410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411 *) ac_try_echo=$ac_try;;
26412 esac
26413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26414 (eval "$ac_compile") 2>conftest.er1
26415 ac_status=$?
26416 grep -v '^ *+' conftest.er1 >conftest.err
26417 rm -f conftest.er1
26418 cat conftest.err >&5
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } && {
26421 test -z "$ac_cxx_werror_flag" ||
26422 test ! -s conftest.err
26423 } && test -s conftest.$ac_objext; then
26424 ac_cv_header__usr_include_openh323_h323_h=yes
26425 else
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 ac_cv_header__usr_include_openh323_h323_h=no
26432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26434 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26435 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26436 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26437 HAS_OPENH323=1
26441 CPPFLAGS="${saved_cppflags}"
26442 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26443 OPENH323DIR="/usr/share/openh323"
26444 OPENH323_INCDIR="/usr/include/openh323"
26445 if test "x$LIB64" != "x"; then
26446 OPENH323_LIBDIR="/usr/lib64"
26447 else
26448 OPENH323_LIBDIR="/usr/lib"
26456 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26457 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26458 OPENH323_INCDIR="${OPENH323DIR}/include"
26460 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26461 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26464 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26465 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26466 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26472 ac_ext=c
26473 ac_cpp='$CPP $CPPFLAGS'
26474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26480 if test "${HAS_OPENH323:-unset}" != "unset"; then
26481 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26482 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
26483 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
26484 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
26485 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
26486 let OPENH323_REQ=1*10000+17*100+3
26488 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
26489 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26490 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
26491 { echo "$as_me:$LINENO: result: no" >&5
26492 echo "${ECHO_T}no" >&6; }
26493 unset HAS_OPENH323
26494 else
26495 { echo "$as_me:$LINENO: result: yes" >&5
26496 echo "${ECHO_T}yes" >&6; }
26501 if test "${HAS_OPENH323:-unset}" != "unset"; then
26502 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
26503 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
26504 OPENH323_SUFFIX=
26505 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
26506 for pfx in $prefixes; do
26507 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
26508 libfile=
26509 if test -n "$files"; then
26510 for f in $files; do
26511 if test -f $f -a ! -L $f; then
26512 libfile=`basename $f`
26513 break;
26515 done
26517 if test -n "$libfile"; then
26518 OPENH323_PREFIX=$pfx
26519 break;
26521 done
26522 if test "${libfile:-unset}" != "unset"; then
26523 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
26525 case "${OPENH323_SUFFIX}" in
26527 OPENH323_BUILD="notrace";;
26529 OPENH323_BUILD="opt";;
26531 OPENH323_BUILD="debug";;
26533 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
26534 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
26535 if test "x$notrace" = "x"; then
26536 notrace="0"
26538 if test "$notrace" -ne 0; then
26539 OPENH323_BUILD="notrace"
26540 else
26541 OPENH323_BUILD="opt"
26543 OPENH323_LIB="-l${OPENH323_PREFIX}"
26544 else
26545 OPENH323_BUILD="notrace"
26548 esac
26549 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
26550 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
26556 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
26558 if test "${HAS_OPENH323:-unset}" != "unset"; then
26559 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
26560 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
26562 saved_cppflags="${CPPFLAGS}"
26563 saved_libs="${LIBS}"
26564 if test "${OPENH323_LIB:-unset}" != "unset"; then
26565 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
26566 else
26567 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
26569 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
26571 ac_ext=cpp
26572 ac_cpp='$CXXCPP $CPPFLAGS'
26573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26578 cat >conftest.$ac_ext <<_ACEOF
26579 /* confdefs.h. */
26580 _ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h. */
26584 #include "ptlib.h"
26585 #include "h323.h"
26586 #include "h323ep.h"
26588 main ()
26590 H323EndPoint ep = H323EndPoint();
26592 return 0;
26594 _ACEOF
26595 rm -f conftest.$ac_objext conftest$ac_exeext
26596 if { (ac_try="$ac_link"
26597 case "(($ac_try" in
26598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_link") 2>conftest.er1
26603 ac_status=$?
26604 grep -v '^ *+' conftest.er1 >conftest.err
26605 rm -f conftest.er1
26606 cat conftest.err >&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_cxx_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest$ac_exeext &&
26612 $as_test_x conftest$ac_exeext; then
26613 { echo "$as_me:$LINENO: result: yes" >&5
26614 echo "${ECHO_T}yes" >&6; }
26615 ac_cv_lib_OPENH323="yes"
26617 else
26618 echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26621 { echo "$as_me:$LINENO: result: no" >&5
26622 echo "${ECHO_T}no" >&6; }
26623 ac_cv_lib_OPENH323="no"
26628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26629 conftest$ac_exeext conftest.$ac_ext
26631 ac_ext=c
26632 ac_cpp='$CPP $CPPFLAGS'
26633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26638 LIBS="${saved_libs}"
26639 CPPFLAGS="${saved_cppflags}"
26641 if test "${ac_cv_lib_OPENH323}" = "yes"; then
26642 if test "${OPENH323_LIB:-undef}" = "undef"; then
26643 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
26644 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
26645 else
26646 OPENH323_LIB="-l${PLATFORM_OPENH323}"
26649 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
26650 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
26652 PBX_OPENH323=1
26654 cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_OPENH323 1
26656 _ACEOF
26662 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
26663 { echo "$as_me:$LINENO: ***" >&5
26664 echo "$as_me: ***" >&6;}
26665 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
26666 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
26667 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26668 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26669 { echo "$as_me:$LINENO: *** including --without-h323" >&5
26670 echo "$as_me: *** including --without-h323" >&6;}
26671 exit 1
26675 ac_ext=cpp
26676 ac_cpp='$CXXCPP $CPPFLAGS'
26677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26682 if test "${USE_QT}" != "no"; then
26683 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
26684 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
26685 saved_libs="${LIBS}"
26686 saved_cppflags="${CPPFLAGS}"
26687 if test "x${QT_DIR}" != "x"; then
26688 LIBS="${LIBS} -L${QT_DIR}/lib"
26689 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
26691 LIBS="${LIBS} -lqt"
26692 qtlib="qt"
26693 cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h. */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26700 #include <qt3/qdatetime.h>
26702 main ()
26704 QDate date();
26706 return 0;
26709 _ACEOF
26710 rm -f conftest.$ac_objext conftest$ac_exeext
26711 if { (ac_try="$ac_link"
26712 case "(($ac_try" in
26713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26714 *) ac_try_echo=$ac_try;;
26715 esac
26716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26717 (eval "$ac_link") 2>conftest.er1
26718 ac_status=$?
26719 grep -v '^ *+' conftest.er1 >conftest.err
26720 rm -f conftest.er1
26721 cat conftest.err >&5
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); } && {
26724 test -z "$ac_cxx_werror_flag" ||
26725 test ! -s conftest.err
26726 } && test -s conftest$ac_exeext &&
26727 $as_test_x conftest$ac_exeext; then
26728 ac_cv_lib_qt_qt_date="yes"
26729 else
26730 echo "$as_me: failed program was:" >&5
26731 sed 's/^/| /' conftest.$ac_ext >&5
26733 ac_cv_lib_qt_qt_date="no"
26736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26737 conftest$ac_exeext conftest.$ac_ext
26738 LIBS="${saved_libs}"
26739 CPPFLAGS="${saved_cppflags}"
26741 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
26742 saved_libs="${LIBS}"
26743 saved_cppflags="${CPPFLAGS}"
26744 if test "x${QT_DIR}" != "x"; then
26745 LIBS="${LIBS} -L${QT_DIR}/lib"
26746 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
26748 LIBS="${LIBS} -lqt-mt"
26749 qtlib="qt-mt"
26750 cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h. */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 #include <qt3/qdatetime.h>
26759 main ()
26761 QDate date();
26763 return 0;
26766 _ACEOF
26767 rm -f conftest.$ac_objext conftest$ac_exeext
26768 if { (ac_try="$ac_link"
26769 case "(($ac_try" in
26770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771 *) ac_try_echo=$ac_try;;
26772 esac
26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774 (eval "$ac_link") 2>conftest.er1
26775 ac_status=$?
26776 grep -v '^ *+' conftest.er1 >conftest.err
26777 rm -f conftest.er1
26778 cat conftest.err >&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } && {
26781 test -z "$ac_cxx_werror_flag" ||
26782 test ! -s conftest.err
26783 } && test -s conftest$ac_exeext &&
26784 $as_test_x conftest$ac_exeext; then
26785 ac_cv_lib_qt_qt_date="yes"
26786 else
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 ac_cv_lib_qt_qt_date="no"
26793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26794 conftest$ac_exeext conftest.$ac_ext
26795 LIBS="${saved_libs}"
26796 CPPFLAGS="${saved_cppflags}"
26799 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
26800 { echo "$as_me:$LINENO: result: yes" >&5
26801 echo "${ECHO_T}yes" >&6; }
26802 else
26803 { echo "$as_me:$LINENO: result: no" >&5
26804 echo "${ECHO_T}no" >&6; }
26807 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
26808 QT_LIB="-l${qtlib}"
26809 if test "${QT_DIR}" != ""; then
26810 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
26811 QT_INCLUDE="-I${QT_DIR}/include"
26813 PBX_QT=1
26815 cat >>confdefs.h <<\_ACEOF
26816 #define HAVE_QT 1
26817 _ACEOF
26819 if test -n "$ac_tool_prefix"; then
26820 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
26821 set dummy ${ac_tool_prefix}moc; ac_word=$2
26822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26824 if test "${ac_cv_path_QTMOC+set}" = set; then
26825 echo $ECHO_N "(cached) $ECHO_C" >&6
26826 else
26827 case $QTMOC in
26828 [\\/]* | ?:[\\/]*)
26829 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
26832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26833 for as_dir in $PATH
26835 IFS=$as_save_IFS
26836 test -z "$as_dir" && as_dir=.
26837 for ac_exec_ext in '' $ac_executable_extensions; do
26838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26839 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
26840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26841 break 2
26843 done
26844 done
26845 IFS=$as_save_IFS
26848 esac
26850 QTMOC=$ac_cv_path_QTMOC
26851 if test -n "$QTMOC"; then
26852 { echo "$as_me:$LINENO: result: $QTMOC" >&5
26853 echo "${ECHO_T}$QTMOC" >&6; }
26854 else
26855 { echo "$as_me:$LINENO: result: no" >&5
26856 echo "${ECHO_T}no" >&6; }
26861 if test -z "$ac_cv_path_QTMOC"; then
26862 ac_pt_QTMOC=$QTMOC
26863 # Extract the first word of "moc", so it can be a program name with args.
26864 set dummy moc; ac_word=$2
26865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26867 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26869 else
26870 case $ac_pt_QTMOC in
26871 [\\/]* | ?:[\\/]*)
26872 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
26875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26876 for as_dir in $PATH
26878 IFS=$as_save_IFS
26879 test -z "$as_dir" && as_dir=.
26880 for ac_exec_ext in '' $ac_executable_extensions; do
26881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26882 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
26883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26884 break 2
26886 done
26887 done
26888 IFS=$as_save_IFS
26891 esac
26893 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
26894 if test -n "$ac_pt_QTMOC"; then
26895 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
26896 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
26897 else
26898 { echo "$as_me:$LINENO: result: no" >&5
26899 echo "${ECHO_T}no" >&6; }
26902 if test "x$ac_pt_QTMOC" = x; then
26903 QTMOC="No"
26904 else
26905 case $cross_compiling:$ac_tool_warned in
26906 yes:)
26907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
26908 whose name does not start with the host triplet. If you think this
26909 configuration is useful to you, please write to autoconf@gnu.org." >&5
26910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
26911 whose name does not start with the host triplet. If you think this
26912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
26913 ac_tool_warned=yes ;;
26914 esac
26915 QTMOC=$ac_pt_QTMOC
26917 else
26918 QTMOC="$ac_cv_path_QTMOC"
26921 elif test -n "${QT_MANDATORY}";
26922 then
26923 { echo "$as_me:$LINENO: ***" >&5
26924 echo "$as_me: ***" >&6;}
26925 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
26926 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
26927 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26928 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26929 { echo "$as_me:$LINENO: *** including --without-qt." >&5
26930 echo "$as_me: *** including --without-qt." >&6;}
26931 exit 1
26935 ac_ext=c
26936 ac_cpp='$CPP $CPPFLAGS'
26937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26943 if test "${USE_RADIUS}" != "no"; then
26944 pbxlibdir=""
26945 if test "x${RADIUS_DIR}" != "x"; then
26946 if test -d ${RADIUS_DIR}/lib; then
26947 pbxlibdir="-L${RADIUS_DIR}/lib"
26948 else
26949 pbxlibdir="-L${RADIUS_DIR}"
26952 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
26953 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
26954 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
26955 echo $ECHO_N "(cached) $ECHO_C" >&6
26956 else
26957 ac_check_lib_save_LIBS=$LIBS
26958 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
26959 cat >conftest.$ac_ext <<_ACEOF
26960 /* confdefs.h. */
26961 _ACEOF
26962 cat confdefs.h >>conftest.$ac_ext
26963 cat >>conftest.$ac_ext <<_ACEOF
26964 /* end confdefs.h. */
26966 /* Override any GCC internal prototype to avoid an error.
26967 Use char because int might match the return type of a GCC
26968 builtin and then its argument prototype would still apply. */
26969 #ifdef __cplusplus
26970 extern "C"
26971 #endif
26972 char rc_read_config ();
26974 main ()
26976 return rc_read_config ();
26978 return 0;
26980 _ACEOF
26981 rm -f conftest.$ac_objext conftest$ac_exeext
26982 if { (ac_try="$ac_link"
26983 case "(($ac_try" in
26984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985 *) ac_try_echo=$ac_try;;
26986 esac
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988 (eval "$ac_link") 2>conftest.er1
26989 ac_status=$?
26990 grep -v '^ *+' conftest.er1 >conftest.err
26991 rm -f conftest.er1
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } && {
26995 test -z "$ac_c_werror_flag" ||
26996 test ! -s conftest.err
26997 } && test -s conftest$ac_exeext &&
26998 $as_test_x conftest$ac_exeext; then
26999 ac_cv_lib_radiusclient_ng_rc_read_config=yes
27000 else
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 ac_cv_lib_radiusclient_ng_rc_read_config=no
27007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27008 conftest$ac_exeext conftest.$ac_ext
27009 LIBS=$ac_check_lib_save_LIBS
27011 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
27012 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
27013 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
27014 AST_RADIUS_FOUND=yes
27015 else
27016 AST_RADIUS_FOUND=no
27020 if test "${AST_RADIUS_FOUND}" = "yes"; then
27021 RADIUS_LIB="-lradiusclient-ng "
27022 RADIUS_HEADER_FOUND="1"
27023 if test "x${RADIUS_DIR}" != "x"; then
27024 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
27025 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
27026 saved_cppflags="${CPPFLAGS}"
27027 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
27028 if test "xradiusclient-ng.h" != "x" ; then
27029 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
27030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27031 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27032 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 ac_res=`eval echo '${'$as_ac_Header'}'`
27037 { echo "$as_me:$LINENO: result: $ac_res" >&5
27038 echo "${ECHO_T}$ac_res" >&6; }
27039 else
27040 # Is the header compilable?
27041 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
27042 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
27043 cat >conftest.$ac_ext <<_ACEOF
27044 /* confdefs.h. */
27045 _ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h. */
27049 $ac_includes_default
27050 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_compile") 2>conftest.er1
27060 ac_status=$?
27061 grep -v '^ *+' conftest.er1 >conftest.err
27062 rm -f conftest.er1
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } && {
27066 test -z "$ac_c_werror_flag" ||
27067 test ! -s conftest.err
27068 } && test -s conftest.$ac_objext; then
27069 ac_header_compiler=yes
27070 else
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27074 ac_header_compiler=no
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27079 echo "${ECHO_T}$ac_header_compiler" >&6; }
27081 # Is the header present?
27082 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
27083 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h. */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27090 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27091 _ACEOF
27092 if { (ac_try="$ac_cpp conftest.$ac_ext"
27093 case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27099 ac_status=$?
27100 grep -v '^ *+' conftest.er1 >conftest.err
27101 rm -f conftest.er1
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } >/dev/null && {
27105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27106 test ! -s conftest.err
27107 }; then
27108 ac_header_preproc=yes
27109 else
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27113 ac_header_preproc=no
27116 rm -f conftest.err conftest.$ac_ext
27117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27118 echo "${ECHO_T}$ac_header_preproc" >&6; }
27120 # So? What about this header?
27121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27122 yes:no: )
27123 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27124 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27125 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
27126 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27127 ac_header_preproc=yes
27129 no:yes:* )
27130 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
27131 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
27132 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
27133 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
27135 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
27136 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27137 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27138 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27139 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27141 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27144 esac
27145 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27146 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27148 echo $ECHO_N "(cached) $ECHO_C" >&6
27149 else
27150 eval "$as_ac_Header=\$ac_header_preproc"
27152 ac_res=`eval echo '${'$as_ac_Header'}'`
27153 { echo "$as_me:$LINENO: result: $ac_res" >&5
27154 echo "${ECHO_T}$ac_res" >&6; }
27157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27158 RADIUS_HEADER_FOUND=1
27159 else
27160 RADIUS_HEADER_FOUND=0
27165 CPPFLAGS="${saved_cppflags}"
27166 else
27167 if test "xradiusclient-ng.h" != "x" ; then
27168 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27169 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27170 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27171 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27174 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27175 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27176 else
27177 # Is the header compilable?
27178 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
27179 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
27180 cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h. */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h. */
27186 $ac_includes_default
27187 #include <radiusclient-ng.h>
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_compile") 2>conftest.er1
27197 ac_status=$?
27198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } && {
27203 test -z "$ac_c_werror_flag" ||
27204 test ! -s conftest.err
27205 } && test -s conftest.$ac_objext; then
27206 ac_header_compiler=yes
27207 else
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_header_compiler=no
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27216 echo "${ECHO_T}$ac_header_compiler" >&6; }
27218 # Is the header present?
27219 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
27220 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
27221 cat >conftest.$ac_ext <<_ACEOF
27222 /* confdefs.h. */
27223 _ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27227 #include <radiusclient-ng.h>
27228 _ACEOF
27229 if { (ac_try="$ac_cpp conftest.$ac_ext"
27230 case "(($ac_try" in
27231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232 *) ac_try_echo=$ac_try;;
27233 esac
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27236 ac_status=$?
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } >/dev/null && {
27242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27243 test ! -s conftest.err
27244 }; then
27245 ac_header_preproc=yes
27246 else
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27250 ac_header_preproc=no
27253 rm -f conftest.err conftest.$ac_ext
27254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27255 echo "${ECHO_T}$ac_header_preproc" >&6; }
27257 # So? What about this header?
27258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27259 yes:no: )
27260 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27261 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27262 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
27263 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27264 ac_header_preproc=yes
27266 no:yes:* )
27267 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
27268 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
27269 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
27270 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27271 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
27272 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27274 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27275 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27276 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27278 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27281 esac
27282 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27283 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27284 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 else
27287 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
27289 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27290 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27293 if test $ac_cv_header_radiusclient_ng_h = yes; then
27294 RADIUS_HEADER_FOUND=1
27295 else
27296 RADIUS_HEADER_FOUND=0
27302 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
27303 if test -n "${RADIUS_MANDATORY}" ;
27304 then
27305 { echo "$as_me:$LINENO: ***" >&5
27306 echo "$as_me: ***" >&6;}
27307 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
27308 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
27309 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
27310 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
27311 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27312 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27313 exit 1
27315 RADIUS_LIB=""
27316 RADIUS_INCLUDE=""
27317 PBX_RADIUS=0
27318 else
27319 PBX_RADIUS=1
27321 cat >>confdefs.h <<_ACEOF
27322 #define HAVE_RADIUS 1
27323 _ACEOF
27326 elif test -n "${RADIUS_MANDATORY}";
27327 then
27328 { echo "$as_me:$LINENO: ***" >&5
27329 echo "$as_me: ***" >&6;}
27330 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
27331 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
27332 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27333 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27334 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27335 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27336 exit 1
27342 if test "${USE_SPEEX}" != "no"; then
27343 pbxlibdir=""
27344 if test "x${SPEEX_DIR}" != "x"; then
27345 if test -d ${SPEEX_DIR}/lib; then
27346 pbxlibdir="-L${SPEEX_DIR}/lib"
27347 else
27348 pbxlibdir="-L${SPEEX_DIR}"
27351 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
27352 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
27353 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355 else
27356 ac_check_lib_save_LIBS=$LIBS
27357 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
27358 cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h. */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h. */
27365 /* Override any GCC internal prototype to avoid an error.
27366 Use char because int might match the return type of a GCC
27367 builtin and then its argument prototype would still apply. */
27368 #ifdef __cplusplus
27369 extern "C"
27370 #endif
27371 char speex_encode ();
27373 main ()
27375 return speex_encode ();
27377 return 0;
27379 _ACEOF
27380 rm -f conftest.$ac_objext conftest$ac_exeext
27381 if { (ac_try="$ac_link"
27382 case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385 esac
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_link") 2>conftest.er1
27388 ac_status=$?
27389 grep -v '^ *+' conftest.er1 >conftest.err
27390 rm -f conftest.er1
27391 cat conftest.err >&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); } && {
27394 test -z "$ac_c_werror_flag" ||
27395 test ! -s conftest.err
27396 } && test -s conftest$ac_exeext &&
27397 $as_test_x conftest$ac_exeext; then
27398 ac_cv_lib_speex_speex_encode=yes
27399 else
27400 echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27403 ac_cv_lib_speex_speex_encode=no
27406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27407 conftest$ac_exeext conftest.$ac_ext
27408 LIBS=$ac_check_lib_save_LIBS
27410 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
27411 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
27412 if test $ac_cv_lib_speex_speex_encode = yes; then
27413 AST_SPEEX_FOUND=yes
27414 else
27415 AST_SPEEX_FOUND=no
27419 if test "${AST_SPEEX_FOUND}" = "yes"; then
27420 SPEEX_LIB="-lspeex -lm"
27421 SPEEX_HEADER_FOUND="1"
27422 if test "x${SPEEX_DIR}" != "x"; then
27423 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
27424 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
27425 saved_cppflags="${CPPFLAGS}"
27426 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
27427 if test "xspeex/speex.h" != "x" ; then
27428 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
27429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27430 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
27431 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
27432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27435 ac_res=`eval echo '${'$as_ac_Header'}'`
27436 { echo "$as_me:$LINENO: result: $ac_res" >&5
27437 echo "${ECHO_T}$ac_res" >&6; }
27438 else
27439 # Is the header compilable?
27440 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
27441 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
27442 cat >conftest.$ac_ext <<_ACEOF
27443 /* confdefs.h. */
27444 _ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h. */
27448 $ac_includes_default
27449 #include <${SPEEX_DIR}/include/speex/speex.h>
27450 _ACEOF
27451 rm -f conftest.$ac_objext
27452 if { (ac_try="$ac_compile"
27453 case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_compile") 2>conftest.er1
27459 ac_status=$?
27460 grep -v '^ *+' conftest.er1 >conftest.err
27461 rm -f conftest.er1
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } && {
27465 test -z "$ac_c_werror_flag" ||
27466 test ! -s conftest.err
27467 } && test -s conftest.$ac_objext; then
27468 ac_header_compiler=yes
27469 else
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27473 ac_header_compiler=no
27476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27478 echo "${ECHO_T}$ac_header_compiler" >&6; }
27480 # Is the header present?
27481 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
27482 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
27483 cat >conftest.$ac_ext <<_ACEOF
27484 /* confdefs.h. */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27489 #include <${SPEEX_DIR}/include/speex/speex.h>
27490 _ACEOF
27491 if { (ac_try="$ac_cpp conftest.$ac_ext"
27492 case "(($ac_try" in
27493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494 *) ac_try_echo=$ac_try;;
27495 esac
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27498 ac_status=$?
27499 grep -v '^ *+' conftest.er1 >conftest.err
27500 rm -f conftest.er1
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } >/dev/null && {
27504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27505 test ! -s conftest.err
27506 }; then
27507 ac_header_preproc=yes
27508 else
27509 echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27512 ac_header_preproc=no
27515 rm -f conftest.err conftest.$ac_ext
27516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27517 echo "${ECHO_T}$ac_header_preproc" >&6; }
27519 # So? What about this header?
27520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27521 yes:no: )
27522 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27523 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
27525 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
27526 ac_header_preproc=yes
27528 no:yes:* )
27529 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
27530 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
27531 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
27532 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
27533 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
27534 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
27535 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27536 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27537 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
27538 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
27539 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
27540 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
27543 esac
27544 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
27545 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
27546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549 eval "$as_ac_Header=\$ac_header_preproc"
27551 ac_res=`eval echo '${'$as_ac_Header'}'`
27552 { echo "$as_me:$LINENO: result: $ac_res" >&5
27553 echo "${ECHO_T}$ac_res" >&6; }
27556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27557 SPEEX_HEADER_FOUND=1
27558 else
27559 SPEEX_HEADER_FOUND=0
27564 CPPFLAGS="${saved_cppflags}"
27565 else
27566 if test "xspeex/speex.h" != "x" ; then
27567 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27568 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27569 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27570 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27571 echo $ECHO_N "(cached) $ECHO_C" >&6
27573 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27574 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27575 else
27576 # Is the header compilable?
27577 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27578 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27579 cat >conftest.$ac_ext <<_ACEOF
27580 /* confdefs.h. */
27581 _ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h. */
27585 $ac_includes_default
27586 #include <speex/speex.h>
27587 _ACEOF
27588 rm -f conftest.$ac_objext
27589 if { (ac_try="$ac_compile"
27590 case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27593 esac
27594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_compile") 2>conftest.er1
27596 ac_status=$?
27597 grep -v '^ *+' conftest.er1 >conftest.err
27598 rm -f conftest.er1
27599 cat conftest.err >&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); } && {
27602 test -z "$ac_c_werror_flag" ||
27603 test ! -s conftest.err
27604 } && test -s conftest.$ac_objext; then
27605 ac_header_compiler=yes
27606 else
27607 echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.$ac_ext >&5
27610 ac_header_compiler=no
27613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27615 echo "${ECHO_T}$ac_header_compiler" >&6; }
27617 # Is the header present?
27618 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27619 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27620 cat >conftest.$ac_ext <<_ACEOF
27621 /* confdefs.h. */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27626 #include <speex/speex.h>
27627 _ACEOF
27628 if { (ac_try="$ac_cpp conftest.$ac_ext"
27629 case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27632 esac
27633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27635 ac_status=$?
27636 grep -v '^ *+' conftest.er1 >conftest.err
27637 rm -f conftest.er1
27638 cat conftest.err >&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } >/dev/null && {
27641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27642 test ! -s conftest.err
27643 }; then
27644 ac_header_preproc=yes
27645 else
27646 echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27649 ac_header_preproc=no
27652 rm -f conftest.err conftest.$ac_ext
27653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27654 echo "${ECHO_T}$ac_header_preproc" >&6; }
27656 # So? What about this header?
27657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27658 yes:no: )
27659 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27660 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27661 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27662 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27663 ac_header_preproc=yes
27665 no:yes:* )
27666 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27667 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27668 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27669 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27671 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27673 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27675 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27677 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27680 esac
27681 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27682 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27683 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686 ac_cv_header_speex_speex_h=$ac_header_preproc
27688 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27689 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27692 if test $ac_cv_header_speex_speex_h = yes; then
27693 SPEEX_HEADER_FOUND=1
27694 else
27695 SPEEX_HEADER_FOUND=0
27701 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
27702 if test -n "${SPEEX_MANDATORY}" ;
27703 then
27704 { echo "$as_me:$LINENO: ***" >&5
27705 echo "$as_me: ***" >&6;}
27706 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27707 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27708 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
27709 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
27710 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27711 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27712 exit 1
27714 SPEEX_LIB=""
27715 SPEEX_INCLUDE=""
27716 PBX_SPEEX=0
27717 else
27718 PBX_SPEEX=1
27720 cat >>confdefs.h <<_ACEOF
27721 #define HAVE_SPEEX 1
27722 _ACEOF
27725 elif test -n "${SPEEX_MANDATORY}";
27726 then
27727 { echo "$as_me:$LINENO: ***" >&5
27728 echo "$as_me: ***" >&6;}
27729 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
27730 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
27731 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27732 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27733 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27734 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27735 exit 1
27741 if test "${USE_SQLITE}" != "no"; then
27742 pbxlibdir=""
27743 if test "x${SQLITE_DIR}" != "x"; then
27744 if test -d ${SQLITE_DIR}/lib; then
27745 pbxlibdir="-L${SQLITE_DIR}/lib"
27746 else
27747 pbxlibdir="-L${SQLITE_DIR}"
27750 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
27751 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
27752 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27754 else
27755 ac_check_lib_save_LIBS=$LIBS
27756 LIBS="-lsqlite ${pbxlibdir} $LIBS"
27757 cat >conftest.$ac_ext <<_ACEOF
27758 /* confdefs.h. */
27759 _ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h. */
27764 /* Override any GCC internal prototype to avoid an error.
27765 Use char because int might match the return type of a GCC
27766 builtin and then its argument prototype would still apply. */
27767 #ifdef __cplusplus
27768 extern "C"
27769 #endif
27770 char sqlite_exec ();
27772 main ()
27774 return sqlite_exec ();
27776 return 0;
27778 _ACEOF
27779 rm -f conftest.$ac_objext conftest$ac_exeext
27780 if { (ac_try="$ac_link"
27781 case "(($ac_try" in
27782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27783 *) ac_try_echo=$ac_try;;
27784 esac
27785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27786 (eval "$ac_link") 2>conftest.er1
27787 ac_status=$?
27788 grep -v '^ *+' conftest.er1 >conftest.err
27789 rm -f conftest.er1
27790 cat conftest.err >&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } && {
27793 test -z "$ac_c_werror_flag" ||
27794 test ! -s conftest.err
27795 } && test -s conftest$ac_exeext &&
27796 $as_test_x conftest$ac_exeext; then
27797 ac_cv_lib_sqlite_sqlite_exec=yes
27798 else
27799 echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.$ac_ext >&5
27802 ac_cv_lib_sqlite_sqlite_exec=no
27805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27806 conftest$ac_exeext conftest.$ac_ext
27807 LIBS=$ac_check_lib_save_LIBS
27809 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
27810 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
27811 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
27812 AST_SQLITE_FOUND=yes
27813 else
27814 AST_SQLITE_FOUND=no
27818 if test "${AST_SQLITE_FOUND}" = "yes"; then
27819 SQLITE_LIB="-lsqlite "
27820 SQLITE_HEADER_FOUND="1"
27821 if test "x${SQLITE_DIR}" != "x"; then
27822 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
27823 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
27824 saved_cppflags="${CPPFLAGS}"
27825 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
27826 if test "xsqlite.h" != "x" ; then
27827 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
27828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27829 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
27830 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
27831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27834 ac_res=`eval echo '${'$as_ac_Header'}'`
27835 { echo "$as_me:$LINENO: result: $ac_res" >&5
27836 echo "${ECHO_T}$ac_res" >&6; }
27837 else
27838 # Is the header compilable?
27839 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
27840 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
27841 cat >conftest.$ac_ext <<_ACEOF
27842 /* confdefs.h. */
27843 _ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h. */
27847 $ac_includes_default
27848 #include <${SQLITE_DIR}/include/sqlite.h>
27849 _ACEOF
27850 rm -f conftest.$ac_objext
27851 if { (ac_try="$ac_compile"
27852 case "(($ac_try" in
27853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854 *) ac_try_echo=$ac_try;;
27855 esac
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857 (eval "$ac_compile") 2>conftest.er1
27858 ac_status=$?
27859 grep -v '^ *+' conftest.er1 >conftest.err
27860 rm -f conftest.er1
27861 cat conftest.err >&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } && {
27864 test -z "$ac_c_werror_flag" ||
27865 test ! -s conftest.err
27866 } && test -s conftest.$ac_objext; then
27867 ac_header_compiler=yes
27868 else
27869 echo "$as_me: failed program was:" >&5
27870 sed 's/^/| /' conftest.$ac_ext >&5
27872 ac_header_compiler=no
27875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27877 echo "${ECHO_T}$ac_header_compiler" >&6; }
27879 # Is the header present?
27880 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
27881 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
27882 cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h. */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h. */
27888 #include <${SQLITE_DIR}/include/sqlite.h>
27889 _ACEOF
27890 if { (ac_try="$ac_cpp conftest.$ac_ext"
27891 case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27894 esac
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27897 ac_status=$?
27898 grep -v '^ *+' conftest.er1 >conftest.err
27899 rm -f conftest.er1
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } >/dev/null && {
27903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27904 test ! -s conftest.err
27905 }; then
27906 ac_header_preproc=yes
27907 else
27908 echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27911 ac_header_preproc=no
27914 rm -f conftest.err conftest.$ac_ext
27915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27916 echo "${ECHO_T}$ac_header_preproc" >&6; }
27918 # So? What about this header?
27919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27920 yes:no: )
27921 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
27922 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27923 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
27924 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
27925 ac_header_preproc=yes
27927 no:yes:* )
27928 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
27929 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
27930 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
27931 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
27933 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
27935 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
27937 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
27938 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
27939 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
27942 esac
27943 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
27944 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
27945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27946 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 else
27948 eval "$as_ac_Header=\$ac_header_preproc"
27950 ac_res=`eval echo '${'$as_ac_Header'}'`
27951 { echo "$as_me:$LINENO: result: $ac_res" >&5
27952 echo "${ECHO_T}$ac_res" >&6; }
27955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27956 SQLITE_HEADER_FOUND=1
27957 else
27958 SQLITE_HEADER_FOUND=0
27963 CPPFLAGS="${saved_cppflags}"
27964 else
27965 if test "xsqlite.h" != "x" ; then
27966 if test "${ac_cv_header_sqlite_h+set}" = set; then
27967 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27968 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27969 if test "${ac_cv_header_sqlite_h+set}" = set; then
27970 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27973 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27974 else
27975 # Is the header compilable?
27976 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
27977 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
27978 cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h. */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27984 $ac_includes_default
27985 #include <sqlite.h>
27986 _ACEOF
27987 rm -f conftest.$ac_objext
27988 if { (ac_try="$ac_compile"
27989 case "(($ac_try" in
27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991 *) ac_try_echo=$ac_try;;
27992 esac
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_compile") 2>conftest.er1
27995 ac_status=$?
27996 grep -v '^ *+' conftest.er1 >conftest.err
27997 rm -f conftest.er1
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } && {
28001 test -z "$ac_c_werror_flag" ||
28002 test ! -s conftest.err
28003 } && test -s conftest.$ac_objext; then
28004 ac_header_compiler=yes
28005 else
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 ac_header_compiler=no
28012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28014 echo "${ECHO_T}$ac_header_compiler" >&6; }
28016 # Is the header present?
28017 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
28018 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
28019 cat >conftest.$ac_ext <<_ACEOF
28020 /* confdefs.h. */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28025 #include <sqlite.h>
28026 _ACEOF
28027 if { (ac_try="$ac_cpp conftest.$ac_ext"
28028 case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28034 ac_status=$?
28035 grep -v '^ *+' conftest.er1 >conftest.err
28036 rm -f conftest.er1
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } >/dev/null && {
28040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28041 test ! -s conftest.err
28042 }; then
28043 ac_header_preproc=yes
28044 else
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28048 ac_header_preproc=no
28051 rm -f conftest.err conftest.$ac_ext
28052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28053 echo "${ECHO_T}$ac_header_preproc" >&6; }
28055 # So? What about this header?
28056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28057 yes:no: )
28058 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28059 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28060 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
28061 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
28062 ac_header_preproc=yes
28064 no:yes:* )
28065 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
28066 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
28068 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
28069 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
28070 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28072 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28073 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
28074 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
28075 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
28076 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
28079 esac
28080 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28081 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28082 if test "${ac_cv_header_sqlite_h+set}" = set; then
28083 echo $ECHO_N "(cached) $ECHO_C" >&6
28084 else
28085 ac_cv_header_sqlite_h=$ac_header_preproc
28087 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28088 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28091 if test $ac_cv_header_sqlite_h = yes; then
28092 SQLITE_HEADER_FOUND=1
28093 else
28094 SQLITE_HEADER_FOUND=0
28100 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
28101 if test -n "${SQLITE_MANDATORY}" ;
28102 then
28103 { echo "$as_me:$LINENO: ***" >&5
28104 echo "$as_me: ***" >&6;}
28105 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
28106 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
28107 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
28108 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
28109 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28110 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28111 exit 1
28113 SQLITE_LIB=""
28114 SQLITE_INCLUDE=""
28115 PBX_SQLITE=0
28116 else
28117 PBX_SQLITE=1
28119 cat >>confdefs.h <<_ACEOF
28120 #define HAVE_SQLITE 1
28121 _ACEOF
28124 elif test -n "${SQLITE_MANDATORY}";
28125 then
28126 { echo "$as_me:$LINENO: ***" >&5
28127 echo "$as_me: ***" >&6;}
28128 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
28129 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
28130 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28131 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28132 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28133 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28134 exit 1
28140 if test "${USE_OPENSSL}" != "no"; then
28141 pbxlibdir=""
28142 if test "x${OPENSSL_DIR}" != "x"; then
28143 if test -d ${OPENSSL_DIR}/lib; then
28144 pbxlibdir="-L${OPENSSL_DIR}/lib"
28145 else
28146 pbxlibdir="-L${OPENSSL_DIR}"
28149 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
28150 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
28151 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154 ac_check_lib_save_LIBS=$LIBS
28155 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
28156 cat >conftest.$ac_ext <<_ACEOF
28157 /* confdefs.h. */
28158 _ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28163 /* Override any GCC internal prototype to avoid an error.
28164 Use char because int might match the return type of a GCC
28165 builtin and then its argument prototype would still apply. */
28166 #ifdef __cplusplus
28167 extern "C"
28168 #endif
28169 char ssl2_connect ();
28171 main ()
28173 return ssl2_connect ();
28175 return 0;
28177 _ACEOF
28178 rm -f conftest.$ac_objext conftest$ac_exeext
28179 if { (ac_try="$ac_link"
28180 case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28183 esac
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185 (eval "$ac_link") 2>conftest.er1
28186 ac_status=$?
28187 grep -v '^ *+' conftest.er1 >conftest.err
28188 rm -f conftest.er1
28189 cat conftest.err >&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); } && {
28192 test -z "$ac_c_werror_flag" ||
28193 test ! -s conftest.err
28194 } && test -s conftest$ac_exeext &&
28195 $as_test_x conftest$ac_exeext; then
28196 ac_cv_lib_ssl_ssl2_connect=yes
28197 else
28198 echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28201 ac_cv_lib_ssl_ssl2_connect=no
28204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28205 conftest$ac_exeext conftest.$ac_ext
28206 LIBS=$ac_check_lib_save_LIBS
28208 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
28209 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
28210 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
28211 AST_OPENSSL_FOUND=yes
28212 else
28213 AST_OPENSSL_FOUND=no
28217 if test "${AST_OPENSSL_FOUND}" = "yes"; then
28218 OPENSSL_LIB="-lssl -lcrypto"
28219 OPENSSL_HEADER_FOUND="1"
28220 if test "x${OPENSSL_DIR}" != "x"; then
28221 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
28222 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
28223 saved_cppflags="${CPPFLAGS}"
28224 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
28225 if test "xopenssl/ssl.h" != "x" ; then
28226 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
28227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28228 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28229 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
28233 ac_res=`eval echo '${'$as_ac_Header'}'`
28234 { echo "$as_me:$LINENO: result: $ac_res" >&5
28235 echo "${ECHO_T}$ac_res" >&6; }
28236 else
28237 # Is the header compilable?
28238 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
28239 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
28240 cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h. */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 $ac_includes_default
28247 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28248 _ACEOF
28249 rm -f conftest.$ac_objext
28250 if { (ac_try="$ac_compile"
28251 case "(($ac_try" in
28252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253 *) ac_try_echo=$ac_try;;
28254 esac
28255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256 (eval "$ac_compile") 2>conftest.er1
28257 ac_status=$?
28258 grep -v '^ *+' conftest.er1 >conftest.err
28259 rm -f conftest.er1
28260 cat conftest.err >&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } && {
28263 test -z "$ac_c_werror_flag" ||
28264 test ! -s conftest.err
28265 } && test -s conftest.$ac_objext; then
28266 ac_header_compiler=yes
28267 else
28268 echo "$as_me: failed program was:" >&5
28269 sed 's/^/| /' conftest.$ac_ext >&5
28271 ac_header_compiler=no
28274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28276 echo "${ECHO_T}$ac_header_compiler" >&6; }
28278 # Is the header present?
28279 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
28280 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
28281 cat >conftest.$ac_ext <<_ACEOF
28282 /* confdefs.h. */
28283 _ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h. */
28287 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28288 _ACEOF
28289 if { (ac_try="$ac_cpp conftest.$ac_ext"
28290 case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28293 esac
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28296 ac_status=$?
28297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } >/dev/null && {
28302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28303 test ! -s conftest.err
28304 }; then
28305 ac_header_preproc=yes
28306 else
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 ac_header_preproc=no
28313 rm -f conftest.err conftest.$ac_ext
28314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28315 echo "${ECHO_T}$ac_header_preproc" >&6; }
28317 # So? What about this header?
28318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28319 yes:no: )
28320 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28321 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28322 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
28323 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
28324 ac_header_preproc=yes
28326 no:yes:* )
28327 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
28328 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
28329 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
28330 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28331 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
28332 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
28333 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28334 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28335 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
28336 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28337 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
28338 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28341 esac
28342 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28343 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347 eval "$as_ac_Header=\$ac_header_preproc"
28349 ac_res=`eval echo '${'$as_ac_Header'}'`
28350 { echo "$as_me:$LINENO: result: $ac_res" >&5
28351 echo "${ECHO_T}$ac_res" >&6; }
28354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28355 OPENSSL_HEADER_FOUND=1
28356 else
28357 OPENSSL_HEADER_FOUND=0
28362 CPPFLAGS="${saved_cppflags}"
28363 else
28364 if test "xopenssl/ssl.h" != "x" ; then
28365 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28366 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28367 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28368 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28372 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28373 else
28374 # Is the header compilable?
28375 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
28376 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
28377 cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h. */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28383 $ac_includes_default
28384 #include <openssl/ssl.h>
28385 _ACEOF
28386 rm -f conftest.$ac_objext
28387 if { (ac_try="$ac_compile"
28388 case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28391 esac
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_compile") 2>conftest.er1
28394 ac_status=$?
28395 grep -v '^ *+' conftest.er1 >conftest.err
28396 rm -f conftest.er1
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } && {
28400 test -z "$ac_c_werror_flag" ||
28401 test ! -s conftest.err
28402 } && test -s conftest.$ac_objext; then
28403 ac_header_compiler=yes
28404 else
28405 echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28408 ac_header_compiler=no
28411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28413 echo "${ECHO_T}$ac_header_compiler" >&6; }
28415 # Is the header present?
28416 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
28417 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
28418 cat >conftest.$ac_ext <<_ACEOF
28419 /* confdefs.h. */
28420 _ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h. */
28424 #include <openssl/ssl.h>
28425 _ACEOF
28426 if { (ac_try="$ac_cpp conftest.$ac_ext"
28427 case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28433 ac_status=$?
28434 grep -v '^ *+' conftest.er1 >conftest.err
28435 rm -f conftest.er1
28436 cat conftest.err >&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } >/dev/null && {
28439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28440 test ! -s conftest.err
28441 }; then
28442 ac_header_preproc=yes
28443 else
28444 echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28447 ac_header_preproc=no
28450 rm -f conftest.err conftest.$ac_ext
28451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28452 echo "${ECHO_T}$ac_header_preproc" >&6; }
28454 # So? What about this header?
28455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28456 yes:no: )
28457 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28458 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28459 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
28460 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
28461 ac_header_preproc=yes
28463 no:yes:* )
28464 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
28465 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
28466 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
28467 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28468 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
28469 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
28470 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28471 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28472 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
28473 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28474 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
28475 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28478 esac
28479 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28480 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28481 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28482 echo $ECHO_N "(cached) $ECHO_C" >&6
28483 else
28484 ac_cv_header_openssl_ssl_h=$ac_header_preproc
28486 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28487 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28490 if test $ac_cv_header_openssl_ssl_h = yes; then
28491 OPENSSL_HEADER_FOUND=1
28492 else
28493 OPENSSL_HEADER_FOUND=0
28499 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
28500 if test -n "${OPENSSL_MANDATORY}" ;
28501 then
28502 { echo "$as_me:$LINENO: ***" >&5
28503 echo "$as_me: ***" >&6;}
28504 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
28505 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
28506 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
28507 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
28508 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28509 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28510 exit 1
28512 OPENSSL_LIB=""
28513 OPENSSL_INCLUDE=""
28514 PBX_OPENSSL=0
28515 else
28516 PBX_OPENSSL=1
28518 cat >>confdefs.h <<_ACEOF
28519 #define HAVE_OPENSSL 1
28520 _ACEOF
28523 elif test -n "${OPENSSL_MANDATORY}";
28524 then
28525 { echo "$as_me:$LINENO: ***" >&5
28526 echo "$as_me: ***" >&6;}
28527 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
28528 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
28529 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28530 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28531 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28532 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28533 exit 1
28537 if test "$PBX_OPENSSL" = "1";
28538 then
28540 if test "${USE_OSPTK}" != "no"; then
28541 pbxlibdir=""
28542 if test "x${OSPTK_DIR}" != "x"; then
28543 if test -d ${OSPTK_DIR}/lib; then
28544 pbxlibdir="-L${OSPTK_DIR}/lib"
28545 else
28546 pbxlibdir="-L${OSPTK_DIR}"
28549 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
28550 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
28551 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
28552 echo $ECHO_N "(cached) $ECHO_C" >&6
28553 else
28554 ac_check_lib_save_LIBS=$LIBS
28555 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
28556 cat >conftest.$ac_ext <<_ACEOF
28557 /* confdefs.h. */
28558 _ACEOF
28559 cat confdefs.h >>conftest.$ac_ext
28560 cat >>conftest.$ac_ext <<_ACEOF
28561 /* end confdefs.h. */
28563 /* Override any GCC internal prototype to avoid an error.
28564 Use char because int might match the return type of a GCC
28565 builtin and then its argument prototype would still apply. */
28566 #ifdef __cplusplus
28567 extern "C"
28568 #endif
28569 char OSPPCryptoDecrypt ();
28571 main ()
28573 return OSPPCryptoDecrypt ();
28575 return 0;
28577 _ACEOF
28578 rm -f conftest.$ac_objext conftest$ac_exeext
28579 if { (ac_try="$ac_link"
28580 case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28583 esac
28584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585 (eval "$ac_link") 2>conftest.er1
28586 ac_status=$?
28587 grep -v '^ *+' conftest.er1 >conftest.err
28588 rm -f conftest.er1
28589 cat conftest.err >&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); } && {
28592 test -z "$ac_c_werror_flag" ||
28593 test ! -s conftest.err
28594 } && test -s conftest$ac_exeext &&
28595 $as_test_x conftest$ac_exeext; then
28596 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
28597 else
28598 echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28601 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
28604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28605 conftest$ac_exeext conftest.$ac_ext
28606 LIBS=$ac_check_lib_save_LIBS
28608 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
28609 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
28610 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
28611 AST_OSPTK_FOUND=yes
28612 else
28613 AST_OSPTK_FOUND=no
28617 if test "${AST_OSPTK_FOUND}" = "yes"; then
28618 OSPTK_LIB="-losptk -lcrypto -lssl"
28619 OSPTK_HEADER_FOUND="1"
28620 if test "x${OSPTK_DIR}" != "x"; then
28621 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
28622 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
28623 saved_cppflags="${CPPFLAGS}"
28624 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
28625 if test "xosp/osp.h" != "x" ; then
28626 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
28627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28628 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
28629 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
28630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28631 echo $ECHO_N "(cached) $ECHO_C" >&6
28633 ac_res=`eval echo '${'$as_ac_Header'}'`
28634 { echo "$as_me:$LINENO: result: $ac_res" >&5
28635 echo "${ECHO_T}$ac_res" >&6; }
28636 else
28637 # Is the header compilable?
28638 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
28639 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
28640 cat >conftest.$ac_ext <<_ACEOF
28641 /* confdefs.h. */
28642 _ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h. */
28646 $ac_includes_default
28647 #include <${OSPTK_DIR}/include/osp/osp.h>
28648 _ACEOF
28649 rm -f conftest.$ac_objext
28650 if { (ac_try="$ac_compile"
28651 case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_compile") 2>conftest.er1
28657 ac_status=$?
28658 grep -v '^ *+' conftest.er1 >conftest.err
28659 rm -f conftest.er1
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } && {
28663 test -z "$ac_c_werror_flag" ||
28664 test ! -s conftest.err
28665 } && test -s conftest.$ac_objext; then
28666 ac_header_compiler=yes
28667 else
28668 echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28671 ac_header_compiler=no
28674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28676 echo "${ECHO_T}$ac_header_compiler" >&6; }
28678 # Is the header present?
28679 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
28680 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
28681 cat >conftest.$ac_ext <<_ACEOF
28682 /* confdefs.h. */
28683 _ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h. */
28687 #include <${OSPTK_DIR}/include/osp/osp.h>
28688 _ACEOF
28689 if { (ac_try="$ac_cpp conftest.$ac_ext"
28690 case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28696 ac_status=$?
28697 grep -v '^ *+' conftest.er1 >conftest.err
28698 rm -f conftest.er1
28699 cat conftest.err >&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); } >/dev/null && {
28702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28703 test ! -s conftest.err
28704 }; then
28705 ac_header_preproc=yes
28706 else
28707 echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28710 ac_header_preproc=no
28713 rm -f conftest.err conftest.$ac_ext
28714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28715 echo "${ECHO_T}$ac_header_preproc" >&6; }
28717 # So? What about this header?
28718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28719 yes:no: )
28720 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28721 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28722 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
28723 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
28724 ac_header_preproc=yes
28726 no:yes:* )
28727 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
28728 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
28729 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
28730 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
28731 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
28732 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
28733 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
28734 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
28735 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
28736 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
28737 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
28738 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
28741 esac
28742 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
28743 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
28744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28746 else
28747 eval "$as_ac_Header=\$ac_header_preproc"
28749 ac_res=`eval echo '${'$as_ac_Header'}'`
28750 { echo "$as_me:$LINENO: result: $ac_res" >&5
28751 echo "${ECHO_T}$ac_res" >&6; }
28754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28755 OSPTK_HEADER_FOUND=1
28756 else
28757 OSPTK_HEADER_FOUND=0
28762 CPPFLAGS="${saved_cppflags}"
28763 else
28764 if test "xosp/osp.h" != "x" ; then
28765 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28766 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28767 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28768 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28771 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28772 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28773 else
28774 # Is the header compilable?
28775 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
28776 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
28777 cat >conftest.$ac_ext <<_ACEOF
28778 /* confdefs.h. */
28779 _ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h. */
28783 $ac_includes_default
28784 #include <osp/osp.h>
28785 _ACEOF
28786 rm -f conftest.$ac_objext
28787 if { (ac_try="$ac_compile"
28788 case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28791 esac
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_compile") 2>conftest.er1
28794 ac_status=$?
28795 grep -v '^ *+' conftest.er1 >conftest.err
28796 rm -f conftest.er1
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } && {
28800 test -z "$ac_c_werror_flag" ||
28801 test ! -s conftest.err
28802 } && test -s conftest.$ac_objext; then
28803 ac_header_compiler=yes
28804 else
28805 echo "$as_me: failed program was:" >&5
28806 sed 's/^/| /' conftest.$ac_ext >&5
28808 ac_header_compiler=no
28811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28813 echo "${ECHO_T}$ac_header_compiler" >&6; }
28815 # Is the header present?
28816 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
28817 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
28818 cat >conftest.$ac_ext <<_ACEOF
28819 /* confdefs.h. */
28820 _ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h. */
28824 #include <osp/osp.h>
28825 _ACEOF
28826 if { (ac_try="$ac_cpp conftest.$ac_ext"
28827 case "(($ac_try" in
28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28830 esac
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28833 ac_status=$?
28834 grep -v '^ *+' conftest.er1 >conftest.err
28835 rm -f conftest.er1
28836 cat conftest.err >&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } >/dev/null && {
28839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28840 test ! -s conftest.err
28841 }; then
28842 ac_header_preproc=yes
28843 else
28844 echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28847 ac_header_preproc=no
28850 rm -f conftest.err conftest.$ac_ext
28851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28852 echo "${ECHO_T}$ac_header_preproc" >&6; }
28854 # So? What about this header?
28855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28856 yes:no: )
28857 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28858 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
28860 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
28861 ac_header_preproc=yes
28863 no:yes:* )
28864 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
28865 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
28867 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
28869 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
28871 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
28873 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
28875 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
28878 esac
28879 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28880 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28881 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28883 else
28884 ac_cv_header_osp_osp_h=$ac_header_preproc
28886 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28887 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28890 if test $ac_cv_header_osp_osp_h = yes; then
28891 OSPTK_HEADER_FOUND=1
28892 else
28893 OSPTK_HEADER_FOUND=0
28899 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
28900 if test -n "${OSPTK_MANDATORY}" ;
28901 then
28902 { echo "$as_me:$LINENO: ***" >&5
28903 echo "$as_me: ***" >&6;}
28904 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
28905 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
28906 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
28907 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
28908 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28909 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28910 exit 1
28912 OSPTK_LIB=""
28913 OSPTK_INCLUDE=""
28914 PBX_OSPTK=0
28915 else
28916 PBX_OSPTK=1
28918 cat >>confdefs.h <<_ACEOF
28919 #define HAVE_OSPTK 1
28920 _ACEOF
28923 elif test -n "${OSPTK_MANDATORY}";
28924 then
28925 { echo "$as_me:$LINENO: ***" >&5
28926 echo "$as_me: ***" >&6;}
28927 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
28928 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
28929 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28930 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28931 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28932 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28933 exit 1
28940 if test "${USE_FREETDS}" != "no"; then
28941 pbxlibdir=""
28942 if test "x${FREETDS_DIR}" != "x"; then
28943 if test -d ${FREETDS_DIR}/lib; then
28944 pbxlibdir="-L${FREETDS_DIR}/lib"
28945 else
28946 pbxlibdir="-L${FREETDS_DIR}"
28949 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
28950 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
28951 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
28953 else
28954 ac_check_lib_save_LIBS=$LIBS
28955 LIBS="-ltds ${pbxlibdir} $LIBS"
28956 cat >conftest.$ac_ext <<_ACEOF
28957 /* confdefs.h. */
28958 _ACEOF
28959 cat confdefs.h >>conftest.$ac_ext
28960 cat >>conftest.$ac_ext <<_ACEOF
28961 /* end confdefs.h. */
28963 /* Override any GCC internal prototype to avoid an error.
28964 Use char because int might match the return type of a GCC
28965 builtin and then its argument prototype would still apply. */
28966 #ifdef __cplusplus
28967 extern "C"
28968 #endif
28969 char tds_version ();
28971 main ()
28973 return tds_version ();
28975 return 0;
28977 _ACEOF
28978 rm -f conftest.$ac_objext conftest$ac_exeext
28979 if { (ac_try="$ac_link"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28983 esac
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_link") 2>conftest.er1
28986 ac_status=$?
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } && {
28992 test -z "$ac_c_werror_flag" ||
28993 test ! -s conftest.err
28994 } && test -s conftest$ac_exeext &&
28995 $as_test_x conftest$ac_exeext; then
28996 ac_cv_lib_tds_tds_version=yes
28997 else
28998 echo "$as_me: failed program was:" >&5
28999 sed 's/^/| /' conftest.$ac_ext >&5
29001 ac_cv_lib_tds_tds_version=no
29004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29005 conftest$ac_exeext conftest.$ac_ext
29006 LIBS=$ac_check_lib_save_LIBS
29008 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
29009 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
29010 if test $ac_cv_lib_tds_tds_version = yes; then
29011 AST_FREETDS_FOUND=yes
29012 else
29013 AST_FREETDS_FOUND=no
29017 if test "${AST_FREETDS_FOUND}" = "yes"; then
29018 FREETDS_LIB="-ltds "
29019 FREETDS_HEADER_FOUND="1"
29020 if test "x${FREETDS_DIR}" != "x"; then
29021 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
29022 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
29023 saved_cppflags="${CPPFLAGS}"
29024 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
29025 if test "xtds.h" != "x" ; then
29026 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
29027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29029 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29033 ac_res=`eval echo '${'$as_ac_Header'}'`
29034 { echo "$as_me:$LINENO: result: $ac_res" >&5
29035 echo "${ECHO_T}$ac_res" >&6; }
29036 else
29037 # Is the header compilable?
29038 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
29039 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
29040 cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h. */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h. */
29046 $ac_includes_default
29047 #include <${FREETDS_DIR}/include/tds.h>
29048 _ACEOF
29049 rm -f conftest.$ac_objext
29050 if { (ac_try="$ac_compile"
29051 case "(($ac_try" in
29052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29053 *) ac_try_echo=$ac_try;;
29054 esac
29055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29056 (eval "$ac_compile") 2>conftest.er1
29057 ac_status=$?
29058 grep -v '^ *+' conftest.er1 >conftest.err
29059 rm -f conftest.er1
29060 cat conftest.err >&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } && {
29063 test -z "$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29065 } && test -s conftest.$ac_objext; then
29066 ac_header_compiler=yes
29067 else
29068 echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29071 ac_header_compiler=no
29074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29076 echo "${ECHO_T}$ac_header_compiler" >&6; }
29078 # Is the header present?
29079 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
29080 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
29081 cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h. */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29087 #include <${FREETDS_DIR}/include/tds.h>
29088 _ACEOF
29089 if { (ac_try="$ac_cpp conftest.$ac_ext"
29090 case "(($ac_try" in
29091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29092 *) ac_try_echo=$ac_try;;
29093 esac
29094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29096 ac_status=$?
29097 grep -v '^ *+' conftest.er1 >conftest.err
29098 rm -f conftest.er1
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } >/dev/null && {
29102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29103 test ! -s conftest.err
29104 }; then
29105 ac_header_preproc=yes
29106 else
29107 echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29110 ac_header_preproc=no
29113 rm -f conftest.err conftest.$ac_ext
29114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29115 echo "${ECHO_T}$ac_header_preproc" >&6; }
29117 # So? What about this header?
29118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29119 yes:no: )
29120 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29121 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29122 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
29123 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
29124 ac_header_preproc=yes
29126 no:yes:* )
29127 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
29128 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
29129 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
29130 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
29131 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
29132 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
29133 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
29134 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29135 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
29136 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
29138 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
29141 esac
29142 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29143 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29146 else
29147 eval "$as_ac_Header=\$ac_header_preproc"
29149 ac_res=`eval echo '${'$as_ac_Header'}'`
29150 { echo "$as_me:$LINENO: result: $ac_res" >&5
29151 echo "${ECHO_T}$ac_res" >&6; }
29154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29155 FREETDS_HEADER_FOUND=1
29156 else
29157 FREETDS_HEADER_FOUND=0
29162 CPPFLAGS="${saved_cppflags}"
29163 else
29164 if test "xtds.h" != "x" ; then
29165 if test "${ac_cv_header_tds_h+set}" = set; then
29166 { echo "$as_me:$LINENO: checking for tds.h" >&5
29167 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29168 if test "${ac_cv_header_tds_h+set}" = set; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29171 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29172 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29173 else
29174 # Is the header compilable?
29175 { echo "$as_me:$LINENO: checking tds.h usability" >&5
29176 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
29177 cat >conftest.$ac_ext <<_ACEOF
29178 /* confdefs.h. */
29179 _ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h. */
29183 $ac_includes_default
29184 #include <tds.h>
29185 _ACEOF
29186 rm -f conftest.$ac_objext
29187 if { (ac_try="$ac_compile"
29188 case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_compile") 2>conftest.er1
29194 ac_status=$?
29195 grep -v '^ *+' conftest.er1 >conftest.err
29196 rm -f conftest.er1
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } && {
29200 test -z "$ac_c_werror_flag" ||
29201 test ! -s conftest.err
29202 } && test -s conftest.$ac_objext; then
29203 ac_header_compiler=yes
29204 else
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29208 ac_header_compiler=no
29211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29213 echo "${ECHO_T}$ac_header_compiler" >&6; }
29215 # Is the header present?
29216 { echo "$as_me:$LINENO: checking tds.h presence" >&5
29217 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
29218 cat >conftest.$ac_ext <<_ACEOF
29219 /* confdefs.h. */
29220 _ACEOF
29221 cat confdefs.h >>conftest.$ac_ext
29222 cat >>conftest.$ac_ext <<_ACEOF
29223 /* end confdefs.h. */
29224 #include <tds.h>
29225 _ACEOF
29226 if { (ac_try="$ac_cpp conftest.$ac_ext"
29227 case "(($ac_try" in
29228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29229 *) ac_try_echo=$ac_try;;
29230 esac
29231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29233 ac_status=$?
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } >/dev/null && {
29239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29240 test ! -s conftest.err
29241 }; then
29242 ac_header_preproc=yes
29243 else
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_header_preproc=no
29250 rm -f conftest.err conftest.$ac_ext
29251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29252 echo "${ECHO_T}$ac_header_preproc" >&6; }
29254 # So? What about this header?
29255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29256 yes:no: )
29257 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29258 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
29260 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
29261 ac_header_preproc=yes
29263 no:yes:* )
29264 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
29265 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
29267 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
29269 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
29270 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
29271 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
29273 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
29275 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
29278 esac
29279 { echo "$as_me:$LINENO: checking for tds.h" >&5
29280 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29281 if test "${ac_cv_header_tds_h+set}" = set; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283 else
29284 ac_cv_header_tds_h=$ac_header_preproc
29286 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29287 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29290 if test $ac_cv_header_tds_h = yes; then
29291 FREETDS_HEADER_FOUND=1
29292 else
29293 FREETDS_HEADER_FOUND=0
29299 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
29300 if test -n "${FREETDS_MANDATORY}" ;
29301 then
29302 { echo "$as_me:$LINENO: ***" >&5
29303 echo "$as_me: ***" >&6;}
29304 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
29305 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
29306 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
29307 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
29308 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29309 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29310 exit 1
29312 FREETDS_LIB=""
29313 FREETDS_INCLUDE=""
29314 PBX_FREETDS=0
29315 else
29316 PBX_FREETDS=1
29318 cat >>confdefs.h <<_ACEOF
29319 #define HAVE_FREETDS 1
29320 _ACEOF
29323 elif test -n "${FREETDS_MANDATORY}";
29324 then
29325 { echo "$as_me:$LINENO: ***" >&5
29326 echo "$as_me: ***" >&6;}
29327 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
29328 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
29329 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29330 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29331 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29332 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29333 exit 1
29337 if test "${PBX_FREETDS}" != "0";
29338 then
29339 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
29340 *0.64*)
29341 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
29343 *0.63*)
29344 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
29346 *0.62*)
29347 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
29350 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
29352 esac
29356 if test "${USE_TERMCAP}" != "no"; then
29357 pbxlibdir=""
29358 if test "x${TERMCAP_DIR}" != "x"; then
29359 if test -d ${TERMCAP_DIR}/lib; then
29360 pbxlibdir="-L${TERMCAP_DIR}/lib"
29361 else
29362 pbxlibdir="-L${TERMCAP_DIR}"
29365 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29366 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
29367 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370 ac_check_lib_save_LIBS=$LIBS
29371 LIBS="-ltermcap ${pbxlibdir} $LIBS"
29372 cat >conftest.$ac_ext <<_ACEOF
29373 /* confdefs.h. */
29374 _ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h. */
29379 /* Override any GCC internal prototype to avoid an error.
29380 Use char because int might match the return type of a GCC
29381 builtin and then its argument prototype would still apply. */
29382 #ifdef __cplusplus
29383 extern "C"
29384 #endif
29385 char tgetent ();
29387 main ()
29389 return tgetent ();
29391 return 0;
29393 _ACEOF
29394 rm -f conftest.$ac_objext conftest$ac_exeext
29395 if { (ac_try="$ac_link"
29396 case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29399 esac
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_link") 2>conftest.er1
29402 ac_status=$?
29403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && {
29408 test -z "$ac_c_werror_flag" ||
29409 test ! -s conftest.err
29410 } && test -s conftest$ac_exeext &&
29411 $as_test_x conftest$ac_exeext; then
29412 ac_cv_lib_termcap_tgetent=yes
29413 else
29414 echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29417 ac_cv_lib_termcap_tgetent=no
29420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29421 conftest$ac_exeext conftest.$ac_ext
29422 LIBS=$ac_check_lib_save_LIBS
29424 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29425 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
29426 if test $ac_cv_lib_termcap_tgetent = yes; then
29427 AST_TERMCAP_FOUND=yes
29428 else
29429 AST_TERMCAP_FOUND=no
29433 if test "${AST_TERMCAP_FOUND}" = "yes"; then
29434 TERMCAP_LIB="-ltermcap "
29435 TERMCAP_HEADER_FOUND="1"
29436 if test "x${TERMCAP_DIR}" != "x"; then
29437 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
29438 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
29439 saved_cppflags="${CPPFLAGS}"
29440 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
29441 if test "x" != "x" ; then
29442 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
29445 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
29446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 ac_res=`eval echo '${'$as_ac_Header'}'`
29450 { echo "$as_me:$LINENO: result: $ac_res" >&5
29451 echo "${ECHO_T}$ac_res" >&6; }
29452 else
29453 # Is the header compilable?
29454 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
29455 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
29456 cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h. */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29462 $ac_includes_default
29463 #include <${TERMCAP_DIR}/include/>
29464 _ACEOF
29465 rm -f conftest.$ac_objext
29466 if { (ac_try="$ac_compile"
29467 case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_compile") 2>conftest.er1
29473 ac_status=$?
29474 grep -v '^ *+' conftest.er1 >conftest.err
29475 rm -f conftest.er1
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); } && {
29479 test -z "$ac_c_werror_flag" ||
29480 test ! -s conftest.err
29481 } && test -s conftest.$ac_objext; then
29482 ac_header_compiler=yes
29483 else
29484 echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29487 ac_header_compiler=no
29490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29492 echo "${ECHO_T}$ac_header_compiler" >&6; }
29494 # Is the header present?
29495 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
29496 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
29497 cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h. */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h. */
29503 #include <${TERMCAP_DIR}/include/>
29504 _ACEOF
29505 if { (ac_try="$ac_cpp conftest.$ac_ext"
29506 case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29512 ac_status=$?
29513 grep -v '^ *+' conftest.er1 >conftest.err
29514 rm -f conftest.er1
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } >/dev/null && {
29518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29519 test ! -s conftest.err
29520 }; then
29521 ac_header_preproc=yes
29522 else
29523 echo "$as_me: failed program was:" >&5
29524 sed 's/^/| /' conftest.$ac_ext >&5
29526 ac_header_preproc=no
29529 rm -f conftest.err conftest.$ac_ext
29530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29531 echo "${ECHO_T}$ac_header_preproc" >&6; }
29533 # So? What about this header?
29534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29535 yes:no: )
29536 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
29537 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
29538 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
29539 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
29540 ac_header_preproc=yes
29542 no:yes:* )
29543 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
29544 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
29546 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
29548 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
29550 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
29552 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
29554 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
29557 esac
29558 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
29559 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
29560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 echo $ECHO_N "(cached) $ECHO_C" >&6
29562 else
29563 eval "$as_ac_Header=\$ac_header_preproc"
29565 ac_res=`eval echo '${'$as_ac_Header'}'`
29566 { echo "$as_me:$LINENO: result: $ac_res" >&5
29567 echo "${ECHO_T}$ac_res" >&6; }
29570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29571 TERMCAP_HEADER_FOUND=1
29572 else
29573 TERMCAP_HEADER_FOUND=0
29578 CPPFLAGS="${saved_cppflags}"
29579 else
29580 if test "x" != "x" ; then
29581 if test "${ac_cv_header_+set}" = set; then
29582 { echo "$as_me:$LINENO: checking for " >&5
29583 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29584 if test "${ac_cv_header_+set}" = set; then
29585 echo $ECHO_N "(cached) $ECHO_C" >&6
29587 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29588 echo "${ECHO_T}$ac_cv_header_" >&6; }
29589 else
29590 # Is the header compilable?
29591 { echo "$as_me:$LINENO: checking usability" >&5
29592 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29593 cat >conftest.$ac_ext <<_ACEOF
29594 /* confdefs.h. */
29595 _ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29599 $ac_includes_default
29600 #include <>
29601 _ACEOF
29602 rm -f conftest.$ac_objext
29603 if { (ac_try="$ac_compile"
29604 case "(($ac_try" in
29605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606 *) ac_try_echo=$ac_try;;
29607 esac
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609 (eval "$ac_compile") 2>conftest.er1
29610 ac_status=$?
29611 grep -v '^ *+' conftest.er1 >conftest.err
29612 rm -f conftest.er1
29613 cat conftest.err >&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } && {
29616 test -z "$ac_c_werror_flag" ||
29617 test ! -s conftest.err
29618 } && test -s conftest.$ac_objext; then
29619 ac_header_compiler=yes
29620 else
29621 echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29624 ac_header_compiler=no
29627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29629 echo "${ECHO_T}$ac_header_compiler" >&6; }
29631 # Is the header present?
29632 { echo "$as_me:$LINENO: checking presence" >&5
29633 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29634 cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h. */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29640 #include <>
29641 _ACEOF
29642 if { (ac_try="$ac_cpp conftest.$ac_ext"
29643 case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29649 ac_status=$?
29650 grep -v '^ *+' conftest.er1 >conftest.err
29651 rm -f conftest.er1
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } >/dev/null && {
29655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29657 }; then
29658 ac_header_preproc=yes
29659 else
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663 ac_header_preproc=no
29666 rm -f conftest.err conftest.$ac_ext
29667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29668 echo "${ECHO_T}$ac_header_preproc" >&6; }
29670 # So? What about this header?
29671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29672 yes:no: )
29673 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29674 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29675 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29676 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29677 ac_header_preproc=yes
29679 no:yes:* )
29680 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29681 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29682 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29683 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29685 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29687 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29689 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29691 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29694 esac
29695 { echo "$as_me:$LINENO: checking for " >&5
29696 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29697 if test "${ac_cv_header_+set}" = set; then
29698 echo $ECHO_N "(cached) $ECHO_C" >&6
29699 else
29700 ac_cv_header_=$ac_header_preproc
29702 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29703 echo "${ECHO_T}$ac_cv_header_" >&6; }
29706 if test $ac_cv_header_ = yes; then
29707 TERMCAP_HEADER_FOUND=1
29708 else
29709 TERMCAP_HEADER_FOUND=0
29715 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
29716 if test -n "${TERMCAP_MANDATORY}" ;
29717 then
29718 { echo "$as_me:$LINENO: ***" >&5
29719 echo "$as_me: ***" >&6;}
29720 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
29721 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
29722 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
29723 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
29724 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
29725 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
29726 exit 1
29728 TERMCAP_LIB=""
29729 TERMCAP_INCLUDE=""
29730 PBX_TERMCAP=0
29731 else
29732 PBX_TERMCAP=1
29734 cat >>confdefs.h <<_ACEOF
29735 #define HAVE_TERMCAP 1
29736 _ACEOF
29739 elif test -n "${TERMCAP_MANDATORY}";
29740 then
29741 { echo "$as_me:$LINENO: ***" >&5
29742 echo "$as_me: ***" >&6;}
29743 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
29744 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
29745 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29746 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29747 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
29748 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
29749 exit 1
29755 if test "${USE_TINFO}" != "no"; then
29756 pbxlibdir=""
29757 if test "x${TINFO_DIR}" != "x"; then
29758 if test -d ${TINFO_DIR}/lib; then
29759 pbxlibdir="-L${TINFO_DIR}/lib"
29760 else
29761 pbxlibdir="-L${TINFO_DIR}"
29764 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
29765 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
29766 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29768 else
29769 ac_check_lib_save_LIBS=$LIBS
29770 LIBS="-ltinfo ${pbxlibdir} $LIBS"
29771 cat >conftest.$ac_ext <<_ACEOF
29772 /* confdefs.h. */
29773 _ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h. */
29778 /* Override any GCC internal prototype to avoid an error.
29779 Use char because int might match the return type of a GCC
29780 builtin and then its argument prototype would still apply. */
29781 #ifdef __cplusplus
29782 extern "C"
29783 #endif
29784 char tgetent ();
29786 main ()
29788 return tgetent ();
29790 return 0;
29792 _ACEOF
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (ac_try="$ac_link"
29795 case "(($ac_try" in
29796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797 *) ac_try_echo=$ac_try;;
29798 esac
29799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29800 (eval "$ac_link") 2>conftest.er1
29801 ac_status=$?
29802 grep -v '^ *+' conftest.er1 >conftest.err
29803 rm -f conftest.er1
29804 cat conftest.err >&5
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); } && {
29807 test -z "$ac_c_werror_flag" ||
29808 test ! -s conftest.err
29809 } && test -s conftest$ac_exeext &&
29810 $as_test_x conftest$ac_exeext; then
29811 ac_cv_lib_tinfo_tgetent=yes
29812 else
29813 echo "$as_me: failed program was:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29816 ac_cv_lib_tinfo_tgetent=no
29819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29820 conftest$ac_exeext conftest.$ac_ext
29821 LIBS=$ac_check_lib_save_LIBS
29823 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29824 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
29825 if test $ac_cv_lib_tinfo_tgetent = yes; then
29826 AST_TINFO_FOUND=yes
29827 else
29828 AST_TINFO_FOUND=no
29832 if test "${AST_TINFO_FOUND}" = "yes"; then
29833 TINFO_LIB="-ltinfo "
29834 TINFO_HEADER_FOUND="1"
29835 if test "x${TINFO_DIR}" != "x"; then
29836 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
29837 TINFO_INCLUDE="-I${TINFO_DIR}/include"
29838 saved_cppflags="${CPPFLAGS}"
29839 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
29840 if test "x" != "x" ; then
29841 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
29842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29843 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
29844 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
29845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29848 ac_res=`eval echo '${'$as_ac_Header'}'`
29849 { echo "$as_me:$LINENO: result: $ac_res" >&5
29850 echo "${ECHO_T}$ac_res" >&6; }
29851 else
29852 # Is the header compilable?
29853 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
29854 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
29855 cat >conftest.$ac_ext <<_ACEOF
29856 /* confdefs.h. */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h. */
29861 $ac_includes_default
29862 #include <${TINFO_DIR}/include/>
29863 _ACEOF
29864 rm -f conftest.$ac_objext
29865 if { (ac_try="$ac_compile"
29866 case "(($ac_try" in
29867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_compile") 2>conftest.er1
29872 ac_status=$?
29873 grep -v '^ *+' conftest.er1 >conftest.err
29874 rm -f conftest.er1
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } && {
29878 test -z "$ac_c_werror_flag" ||
29879 test ! -s conftest.err
29880 } && test -s conftest.$ac_objext; then
29881 ac_header_compiler=yes
29882 else
29883 echo "$as_me: failed program was:" >&5
29884 sed 's/^/| /' conftest.$ac_ext >&5
29886 ac_header_compiler=no
29889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29891 echo "${ECHO_T}$ac_header_compiler" >&6; }
29893 # Is the header present?
29894 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
29895 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
29896 cat >conftest.$ac_ext <<_ACEOF
29897 /* confdefs.h. */
29898 _ACEOF
29899 cat confdefs.h >>conftest.$ac_ext
29900 cat >>conftest.$ac_ext <<_ACEOF
29901 /* end confdefs.h. */
29902 #include <${TINFO_DIR}/include/>
29903 _ACEOF
29904 if { (ac_try="$ac_cpp conftest.$ac_ext"
29905 case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29908 esac
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29911 ac_status=$?
29912 grep -v '^ *+' conftest.er1 >conftest.err
29913 rm -f conftest.er1
29914 cat conftest.err >&5
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); } >/dev/null && {
29917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29918 test ! -s conftest.err
29919 }; then
29920 ac_header_preproc=yes
29921 else
29922 echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29925 ac_header_preproc=no
29928 rm -f conftest.err conftest.$ac_ext
29929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29930 echo "${ECHO_T}$ac_header_preproc" >&6; }
29932 # So? What about this header?
29933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29934 yes:no: )
29935 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
29936 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
29937 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
29938 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
29939 ac_header_preproc=yes
29941 no:yes:* )
29942 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
29943 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
29944 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
29945 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
29947 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
29948 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
29949 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
29950 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
29951 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
29952 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
29953 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
29956 esac
29957 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
29958 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
29959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29960 echo $ECHO_N "(cached) $ECHO_C" >&6
29961 else
29962 eval "$as_ac_Header=\$ac_header_preproc"
29964 ac_res=`eval echo '${'$as_ac_Header'}'`
29965 { echo "$as_me:$LINENO: result: $ac_res" >&5
29966 echo "${ECHO_T}$ac_res" >&6; }
29969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29970 TINFO_HEADER_FOUND=1
29971 else
29972 TINFO_HEADER_FOUND=0
29977 CPPFLAGS="${saved_cppflags}"
29978 else
29979 if test "x" != "x" ; then
29980 if test "${ac_cv_header_+set}" = set; then
29981 { echo "$as_me:$LINENO: checking for " >&5
29982 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29983 if test "${ac_cv_header_+set}" = set; then
29984 echo $ECHO_N "(cached) $ECHO_C" >&6
29986 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29987 echo "${ECHO_T}$ac_cv_header_" >&6; }
29988 else
29989 # Is the header compilable?
29990 { echo "$as_me:$LINENO: checking usability" >&5
29991 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29992 cat >conftest.$ac_ext <<_ACEOF
29993 /* confdefs.h. */
29994 _ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h. */
29998 $ac_includes_default
29999 #include <>
30000 _ACEOF
30001 rm -f conftest.$ac_objext
30002 if { (ac_try="$ac_compile"
30003 case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30006 esac
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_compile") 2>conftest.er1
30009 ac_status=$?
30010 grep -v '^ *+' conftest.er1 >conftest.err
30011 rm -f conftest.er1
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } && {
30015 test -z "$ac_c_werror_flag" ||
30016 test ! -s conftest.err
30017 } && test -s conftest.$ac_objext; then
30018 ac_header_compiler=yes
30019 else
30020 echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30023 ac_header_compiler=no
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30028 echo "${ECHO_T}$ac_header_compiler" >&6; }
30030 # Is the header present?
30031 { echo "$as_me:$LINENO: checking presence" >&5
30032 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30033 cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h. */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h. */
30039 #include <>
30040 _ACEOF
30041 if { (ac_try="$ac_cpp conftest.$ac_ext"
30042 case "(($ac_try" in
30043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044 *) ac_try_echo=$ac_try;;
30045 esac
30046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30048 ac_status=$?
30049 grep -v '^ *+' conftest.er1 >conftest.err
30050 rm -f conftest.er1
30051 cat conftest.err >&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); } >/dev/null && {
30054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30055 test ! -s conftest.err
30056 }; then
30057 ac_header_preproc=yes
30058 else
30059 echo "$as_me: failed program was:" >&5
30060 sed 's/^/| /' conftest.$ac_ext >&5
30062 ac_header_preproc=no
30065 rm -f conftest.err conftest.$ac_ext
30066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30067 echo "${ECHO_T}$ac_header_preproc" >&6; }
30069 # So? What about this header?
30070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30071 yes:no: )
30072 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30073 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30074 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30075 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30076 ac_header_preproc=yes
30078 no:yes:* )
30079 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30080 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30081 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30082 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30083 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30084 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30086 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30088 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30089 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30090 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30093 esac
30094 { echo "$as_me:$LINENO: checking for " >&5
30095 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30096 if test "${ac_cv_header_+set}" = set; then
30097 echo $ECHO_N "(cached) $ECHO_C" >&6
30098 else
30099 ac_cv_header_=$ac_header_preproc
30101 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30102 echo "${ECHO_T}$ac_cv_header_" >&6; }
30105 if test $ac_cv_header_ = yes; then
30106 TINFO_HEADER_FOUND=1
30107 else
30108 TINFO_HEADER_FOUND=0
30114 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
30115 if test -n "${TINFO_MANDATORY}" ;
30116 then
30117 { echo "$as_me:$LINENO: ***" >&5
30118 echo "$as_me: ***" >&6;}
30119 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
30120 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
30121 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
30122 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
30123 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30124 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30125 exit 1
30127 TINFO_LIB=""
30128 TINFO_INCLUDE=""
30129 PBX_TINFO=0
30130 else
30131 PBX_TINFO=1
30133 cat >>confdefs.h <<_ACEOF
30134 #define HAVE_TINFO 1
30135 _ACEOF
30138 elif test -n "${TINFO_MANDATORY}";
30139 then
30140 { echo "$as_me:$LINENO: ***" >&5
30141 echo "$as_me: ***" >&6;}
30142 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
30143 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
30144 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30145 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30146 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30147 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30148 exit 1
30153 if test "${host_os}" != "linux-gnu" ; then
30154 tonezone_extra="-lm"
30158 if test "${USE_TONEZONE}" != "no"; then
30159 pbxlibdir=""
30160 if test "x${TONEZONE_DIR}" != "x"; then
30161 if test -d ${TONEZONE_DIR}/lib; then
30162 pbxlibdir="-L${TONEZONE_DIR}/lib"
30163 else
30164 pbxlibdir="-L${TONEZONE_DIR}"
30167 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
30168 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
30169 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
30170 echo $ECHO_N "(cached) $ECHO_C" >&6
30171 else
30172 ac_check_lib_save_LIBS=$LIBS
30173 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
30174 cat >conftest.$ac_ext <<_ACEOF
30175 /* confdefs.h. */
30176 _ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h. */
30181 /* Override any GCC internal prototype to avoid an error.
30182 Use char because int might match the return type of a GCC
30183 builtin and then its argument prototype would still apply. */
30184 #ifdef __cplusplus
30185 extern "C"
30186 #endif
30187 char tone_zone_find ();
30189 main ()
30191 return tone_zone_find ();
30193 return 0;
30195 _ACEOF
30196 rm -f conftest.$ac_objext conftest$ac_exeext
30197 if { (ac_try="$ac_link"
30198 case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_link") 2>conftest.er1
30204 ac_status=$?
30205 grep -v '^ *+' conftest.er1 >conftest.err
30206 rm -f conftest.er1
30207 cat conftest.err >&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); } && {
30210 test -z "$ac_c_werror_flag" ||
30211 test ! -s conftest.err
30212 } && test -s conftest$ac_exeext &&
30213 $as_test_x conftest$ac_exeext; then
30214 ac_cv_lib_tonezone_tone_zone_find=yes
30215 else
30216 echo "$as_me: failed program was:" >&5
30217 sed 's/^/| /' conftest.$ac_ext >&5
30219 ac_cv_lib_tonezone_tone_zone_find=no
30222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30223 conftest$ac_exeext conftest.$ac_ext
30224 LIBS=$ac_check_lib_save_LIBS
30226 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
30227 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
30228 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
30229 AST_TONEZONE_FOUND=yes
30230 else
30231 AST_TONEZONE_FOUND=no
30235 if test "${AST_TONEZONE_FOUND}" = "yes"; then
30236 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
30237 TONEZONE_HEADER_FOUND="1"
30238 if test "x${TONEZONE_DIR}" != "x"; then
30239 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
30240 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
30241 saved_cppflags="${CPPFLAGS}"
30242 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
30243 if test "xzaptel/tonezone.h" != "x" ; then
30244 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
30245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30246 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30247 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 ac_res=`eval echo '${'$as_ac_Header'}'`
30252 { echo "$as_me:$LINENO: result: $ac_res" >&5
30253 echo "${ECHO_T}$ac_res" >&6; }
30254 else
30255 # Is the header compilable?
30256 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
30257 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h. */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30264 $ac_includes_default
30265 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30266 _ACEOF
30267 rm -f conftest.$ac_objext
30268 if { (ac_try="$ac_compile"
30269 case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_compile") 2>conftest.er1
30275 ac_status=$?
30276 grep -v '^ *+' conftest.er1 >conftest.err
30277 rm -f conftest.er1
30278 cat conftest.err >&5
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); } && {
30281 test -z "$ac_c_werror_flag" ||
30282 test ! -s conftest.err
30283 } && test -s conftest.$ac_objext; then
30284 ac_header_compiler=yes
30285 else
30286 echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30289 ac_header_compiler=no
30292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30294 echo "${ECHO_T}$ac_header_compiler" >&6; }
30296 # Is the header present?
30297 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
30298 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
30299 cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h. */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30305 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30306 _ACEOF
30307 if { (ac_try="$ac_cpp conftest.$ac_ext"
30308 case "(($ac_try" in
30309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310 *) ac_try_echo=$ac_try;;
30311 esac
30312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30314 ac_status=$?
30315 grep -v '^ *+' conftest.er1 >conftest.err
30316 rm -f conftest.er1
30317 cat conftest.err >&5
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); } >/dev/null && {
30320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30321 test ! -s conftest.err
30322 }; then
30323 ac_header_preproc=yes
30324 else
30325 echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30328 ac_header_preproc=no
30331 rm -f conftest.err conftest.$ac_ext
30332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30333 echo "${ECHO_T}$ac_header_preproc" >&6; }
30335 # So? What about this header?
30336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30337 yes:no: )
30338 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
30339 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
30341 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
30342 ac_header_preproc=yes
30344 no:yes:* )
30345 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
30346 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
30347 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
30348 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
30349 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
30350 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
30351 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
30352 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
30353 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
30354 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
30356 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
30359 esac
30360 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30361 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30363 echo $ECHO_N "(cached) $ECHO_C" >&6
30364 else
30365 eval "$as_ac_Header=\$ac_header_preproc"
30367 ac_res=`eval echo '${'$as_ac_Header'}'`
30368 { echo "$as_me:$LINENO: result: $ac_res" >&5
30369 echo "${ECHO_T}$ac_res" >&6; }
30372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30373 TONEZONE_HEADER_FOUND=1
30374 else
30375 TONEZONE_HEADER_FOUND=0
30380 CPPFLAGS="${saved_cppflags}"
30381 else
30382 if test "xzaptel/tonezone.h" != "x" ; then
30383 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30384 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
30385 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
30386 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30389 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
30390 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
30391 else
30392 # Is the header compilable?
30393 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
30394 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
30395 cat >conftest.$ac_ext <<_ACEOF
30396 /* confdefs.h. */
30397 _ACEOF
30398 cat confdefs.h >>conftest.$ac_ext
30399 cat >>conftest.$ac_ext <<_ACEOF
30400 /* end confdefs.h. */
30401 $ac_includes_default
30402 #include <zaptel/tonezone.h>
30403 _ACEOF
30404 rm -f conftest.$ac_objext
30405 if { (ac_try="$ac_compile"
30406 case "(($ac_try" in
30407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30408 *) ac_try_echo=$ac_try;;
30409 esac
30410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30411 (eval "$ac_compile") 2>conftest.er1
30412 ac_status=$?
30413 grep -v '^ *+' conftest.er1 >conftest.err
30414 rm -f conftest.er1
30415 cat conftest.err >&5
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); } && {
30418 test -z "$ac_c_werror_flag" ||
30419 test ! -s conftest.err
30420 } && test -s conftest.$ac_objext; then
30421 ac_header_compiler=yes
30422 else
30423 echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.$ac_ext >&5
30426 ac_header_compiler=no
30429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30431 echo "${ECHO_T}$ac_header_compiler" >&6; }
30433 # Is the header present?
30434 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
30435 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
30436 cat >conftest.$ac_ext <<_ACEOF
30437 /* confdefs.h. */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h. */
30442 #include <zaptel/tonezone.h>
30443 _ACEOF
30444 if { (ac_try="$ac_cpp conftest.$ac_ext"
30445 case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448 esac
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30451 ac_status=$?
30452 grep -v '^ *+' conftest.er1 >conftest.err
30453 rm -f conftest.er1
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } >/dev/null && {
30457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30458 test ! -s conftest.err
30459 }; then
30460 ac_header_preproc=yes
30461 else
30462 echo "$as_me: failed program was:" >&5
30463 sed 's/^/| /' conftest.$ac_ext >&5
30465 ac_header_preproc=no
30468 rm -f conftest.err conftest.$ac_ext
30469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30470 echo "${ECHO_T}$ac_header_preproc" >&6; }
30472 # So? What about this header?
30473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30474 yes:no: )
30475 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
30476 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30477 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
30478 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
30479 ac_header_preproc=yes
30481 no:yes:* )
30482 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
30483 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
30484 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
30485 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
30486 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
30487 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
30488 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
30489 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
30490 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
30491 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
30492 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
30493 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
30496 esac
30497 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
30498 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
30499 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30500 echo $ECHO_N "(cached) $ECHO_C" >&6
30501 else
30502 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
30504 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
30505 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
30508 if test $ac_cv_header_zaptel_tonezone_h = yes; then
30509 TONEZONE_HEADER_FOUND=1
30510 else
30511 TONEZONE_HEADER_FOUND=0
30517 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
30518 if test -n "${TONEZONE_MANDATORY}" ;
30519 then
30520 { echo "$as_me:$LINENO: ***" >&5
30521 echo "$as_me: ***" >&6;}
30522 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
30523 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
30524 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
30525 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
30526 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
30527 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
30528 exit 1
30530 TONEZONE_LIB=""
30531 TONEZONE_INCLUDE=""
30532 PBX_TONEZONE=0
30533 else
30534 PBX_TONEZONE=1
30536 cat >>confdefs.h <<_ACEOF
30537 #define HAVE_TONEZONE 1
30538 _ACEOF
30541 elif test -n "${TONEZONE_MANDATORY}";
30542 then
30543 { echo "$as_me:$LINENO: ***" >&5
30544 echo "$as_me: ***" >&6;}
30545 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
30546 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
30547 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30548 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30549 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
30550 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
30551 exit 1
30557 if test "${USE_VORBIS}" != "no"; then
30558 pbxlibdir=""
30559 if test "x${VORBIS_DIR}" != "x"; then
30560 if test -d ${VORBIS_DIR}/lib; then
30561 pbxlibdir="-L${VORBIS_DIR}/lib"
30562 else
30563 pbxlibdir="-L${VORBIS_DIR}"
30566 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
30567 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
30568 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571 ac_check_lib_save_LIBS=$LIBS
30572 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h. */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h. */
30580 /* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply. */
30583 #ifdef __cplusplus
30584 extern "C"
30585 #endif
30586 char vorbis_info_init ();
30588 main ()
30590 return vorbis_info_init ();
30592 return 0;
30594 _ACEOF
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
30597 case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_link") 2>conftest.er1
30603 ac_status=$?
30604 grep -v '^ *+' conftest.er1 >conftest.err
30605 rm -f conftest.er1
30606 cat conftest.err >&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } && {
30609 test -z "$ac_c_werror_flag" ||
30610 test ! -s conftest.err
30611 } && test -s conftest$ac_exeext &&
30612 $as_test_x conftest$ac_exeext; then
30613 ac_cv_lib_vorbis_vorbis_info_init=yes
30614 else
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30618 ac_cv_lib_vorbis_vorbis_info_init=no
30621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30622 conftest$ac_exeext conftest.$ac_ext
30623 LIBS=$ac_check_lib_save_LIBS
30625 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
30626 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
30627 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
30628 AST_VORBIS_FOUND=yes
30629 else
30630 AST_VORBIS_FOUND=no
30634 if test "${AST_VORBIS_FOUND}" = "yes"; then
30635 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
30636 VORBIS_HEADER_FOUND="1"
30637 if test "x${VORBIS_DIR}" != "x"; then
30638 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
30639 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
30640 saved_cppflags="${CPPFLAGS}"
30641 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
30642 if test "xvorbis/codec.h" != "x" ; then
30643 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
30644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30645 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
30646 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
30647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30648 echo $ECHO_N "(cached) $ECHO_C" >&6
30650 ac_res=`eval echo '${'$as_ac_Header'}'`
30651 { echo "$as_me:$LINENO: result: $ac_res" >&5
30652 echo "${ECHO_T}$ac_res" >&6; }
30653 else
30654 # Is the header compilable?
30655 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
30656 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
30657 cat >conftest.$ac_ext <<_ACEOF
30658 /* confdefs.h. */
30659 _ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h. */
30663 $ac_includes_default
30664 #include <${VORBIS_DIR}/include/vorbis/codec.h>
30665 _ACEOF
30666 rm -f conftest.$ac_objext
30667 if { (ac_try="$ac_compile"
30668 case "(($ac_try" in
30669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670 *) ac_try_echo=$ac_try;;
30671 esac
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673 (eval "$ac_compile") 2>conftest.er1
30674 ac_status=$?
30675 grep -v '^ *+' conftest.er1 >conftest.err
30676 rm -f conftest.er1
30677 cat conftest.err >&5
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); } && {
30680 test -z "$ac_c_werror_flag" ||
30681 test ! -s conftest.err
30682 } && test -s conftest.$ac_objext; then
30683 ac_header_compiler=yes
30684 else
30685 echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30688 ac_header_compiler=no
30691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30693 echo "${ECHO_T}$ac_header_compiler" >&6; }
30695 # Is the header present?
30696 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
30697 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
30698 cat >conftest.$ac_ext <<_ACEOF
30699 /* confdefs.h. */
30700 _ACEOF
30701 cat confdefs.h >>conftest.$ac_ext
30702 cat >>conftest.$ac_ext <<_ACEOF
30703 /* end confdefs.h. */
30704 #include <${VORBIS_DIR}/include/vorbis/codec.h>
30705 _ACEOF
30706 if { (ac_try="$ac_cpp conftest.$ac_ext"
30707 case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30713 ac_status=$?
30714 grep -v '^ *+' conftest.er1 >conftest.err
30715 rm -f conftest.er1
30716 cat conftest.err >&5
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } >/dev/null && {
30719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30720 test ! -s conftest.err
30721 }; then
30722 ac_header_preproc=yes
30723 else
30724 echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30727 ac_header_preproc=no
30730 rm -f conftest.err conftest.$ac_ext
30731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30732 echo "${ECHO_T}$ac_header_preproc" >&6; }
30734 # So? What about this header?
30735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30736 yes:no: )
30737 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
30738 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30739 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
30740 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
30741 ac_header_preproc=yes
30743 no:yes:* )
30744 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
30745 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
30746 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
30747 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
30748 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
30749 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
30750 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
30751 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
30752 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
30753 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
30754 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
30755 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
30758 esac
30759 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
30760 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
30761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30763 else
30764 eval "$as_ac_Header=\$ac_header_preproc"
30766 ac_res=`eval echo '${'$as_ac_Header'}'`
30767 { echo "$as_me:$LINENO: result: $ac_res" >&5
30768 echo "${ECHO_T}$ac_res" >&6; }
30771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30772 VORBIS_HEADER_FOUND=1
30773 else
30774 VORBIS_HEADER_FOUND=0
30779 CPPFLAGS="${saved_cppflags}"
30780 else
30781 if test "xvorbis/codec.h" != "x" ; then
30782 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
30783 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
30784 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
30785 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30788 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
30789 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
30790 else
30791 # Is the header compilable?
30792 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
30793 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
30794 cat >conftest.$ac_ext <<_ACEOF
30795 /* confdefs.h. */
30796 _ACEOF
30797 cat confdefs.h >>conftest.$ac_ext
30798 cat >>conftest.$ac_ext <<_ACEOF
30799 /* end confdefs.h. */
30800 $ac_includes_default
30801 #include <vorbis/codec.h>
30802 _ACEOF
30803 rm -f conftest.$ac_objext
30804 if { (ac_try="$ac_compile"
30805 case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30808 esac
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_compile") 2>conftest.er1
30811 ac_status=$?
30812 grep -v '^ *+' conftest.er1 >conftest.err
30813 rm -f conftest.er1
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); } && {
30817 test -z "$ac_c_werror_flag" ||
30818 test ! -s conftest.err
30819 } && test -s conftest.$ac_objext; then
30820 ac_header_compiler=yes
30821 else
30822 echo "$as_me: failed program was:" >&5
30823 sed 's/^/| /' conftest.$ac_ext >&5
30825 ac_header_compiler=no
30828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30830 echo "${ECHO_T}$ac_header_compiler" >&6; }
30832 # Is the header present?
30833 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
30834 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
30835 cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h. */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h. */
30841 #include <vorbis/codec.h>
30842 _ACEOF
30843 if { (ac_try="$ac_cpp conftest.$ac_ext"
30844 case "(($ac_try" in
30845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846 *) ac_try_echo=$ac_try;;
30847 esac
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30850 ac_status=$?
30851 grep -v '^ *+' conftest.er1 >conftest.err
30852 rm -f conftest.er1
30853 cat conftest.err >&5
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } >/dev/null && {
30856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30857 test ! -s conftest.err
30858 }; then
30859 ac_header_preproc=yes
30860 else
30861 echo "$as_me: failed program was:" >&5
30862 sed 's/^/| /' conftest.$ac_ext >&5
30864 ac_header_preproc=no
30867 rm -f conftest.err conftest.$ac_ext
30868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30869 echo "${ECHO_T}$ac_header_preproc" >&6; }
30871 # So? What about this header?
30872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30873 yes:no: )
30874 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
30875 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30876 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
30877 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
30878 ac_header_preproc=yes
30880 no:yes:* )
30881 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
30882 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
30883 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
30884 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
30885 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
30886 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
30887 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
30888 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
30889 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
30890 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
30891 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
30892 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
30895 esac
30896 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
30897 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
30898 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30900 else
30901 ac_cv_header_vorbis_codec_h=$ac_header_preproc
30903 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
30904 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
30907 if test $ac_cv_header_vorbis_codec_h = yes; then
30908 VORBIS_HEADER_FOUND=1
30909 else
30910 VORBIS_HEADER_FOUND=0
30916 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
30917 if test -n "${VORBIS_MANDATORY}" ;
30918 then
30919 { echo "$as_me:$LINENO: ***" >&5
30920 echo "$as_me: ***" >&6;}
30921 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
30922 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
30923 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
30924 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
30925 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30926 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30927 exit 1
30929 VORBIS_LIB=""
30930 VORBIS_INCLUDE=""
30931 PBX_VORBIS=0
30932 else
30933 PBX_VORBIS=1
30935 cat >>confdefs.h <<_ACEOF
30936 #define HAVE_VORBIS 1
30937 _ACEOF
30940 elif test -n "${VORBIS_MANDATORY}";
30941 then
30942 { echo "$as_me:$LINENO: ***" >&5
30943 echo "$as_me: ***" >&6;}
30944 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
30945 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
30946 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30947 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30948 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30949 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30950 exit 1
30955 ac_ext=cpp
30956 ac_cpp='$CXXCPP $CPPFLAGS'
30957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30962 if test "${USE_VPB}" != "no"; then
30963 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
30964 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
30965 saved_libs="${LIBS}"
30966 saved_cppflags="${CPPFLAGS}"
30967 if test "x${VPB_DIR}" != "x"; then
30968 if test -d ${VPB_DIR}/lib; then
30969 vpblibdir=${VPB_DIR}/lib
30970 else
30971 vpblibdir=${VPB_DIR}
30973 LIBS="${LIBS} -L${vpblibdir}"
30974 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
30976 LIBS="${LIBS} -lvpb -lpthread"
30977 cat >conftest.$ac_ext <<_ACEOF
30979 /* confdefs.h. */
30980 _ACEOF
30981 cat confdefs.h >>conftest.$ac_ext
30982 cat >>conftest.$ac_ext <<_ACEOF
30983 /* end confdefs.h. */
30984 #include <vpbapi.h>
30986 main ()
30988 int q = vpb_open(0,0);
30990 return 0;
30993 _ACEOF
30994 rm -f conftest.$ac_objext conftest$ac_exeext
30995 if { (ac_try="$ac_link"
30996 case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
30999 esac
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_link") 2>conftest.er1
31002 ac_status=$?
31003 grep -v '^ *+' conftest.er1 >conftest.err
31004 rm -f conftest.er1
31005 cat conftest.err >&5
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); } && {
31008 test -z "$ac_cxx_werror_flag" ||
31009 test ! -s conftest.err
31010 } && test -s conftest$ac_exeext &&
31011 $as_test_x conftest$ac_exeext; then
31012 { echo "$as_me:$LINENO: result: yes" >&5
31013 echo "${ECHO_T}yes" >&6; }
31014 ac_cv_lib_vpb_vpb_open="yes"
31016 else
31017 echo "$as_me: failed program was:" >&5
31018 sed 's/^/| /' conftest.$ac_ext >&5
31020 { echo "$as_me:$LINENO: result: no" >&5
31021 echo "${ECHO_T}no" >&6; }
31022 ac_cv_lib_vpb_vpb_open="no"
31027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31028 conftest$ac_exeext conftest.$ac_ext
31029 LIBS="${saved_libs}"
31030 CPPFLAGS="${saved_cppflags}"
31031 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
31032 VPB_LIB="-lvpb"
31033 if test "${VPB_DIR}" != ""; then
31034 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
31035 VPB_INCLUDE="-I${VPB_DIR}/include"
31037 PBX_VPB=1
31039 cat >>confdefs.h <<\_ACEOF
31040 #define HAVE_VPB 1
31041 _ACEOF
31043 elif test -n "${VPB_MANDATORY}"; then
31044 { echo "$as_me:$LINENO: ***" >&5
31045 echo "$as_me: ***" >&6;}
31046 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
31047 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
31048 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31049 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31050 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
31051 echo "$as_me: *** including --without-vpb." >&6;}
31052 exit 1
31056 ac_ext=c
31057 ac_cpp='$CPP $CPPFLAGS'
31058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31064 if test "${USE_ZLIB}" != "no"; then
31065 pbxlibdir=""
31066 if test "x${ZLIB_DIR}" != "x"; then
31067 if test -d ${ZLIB_DIR}/lib; then
31068 pbxlibdir="-L${ZLIB_DIR}/lib"
31069 else
31070 pbxlibdir="-L${ZLIB_DIR}"
31073 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
31074 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
31075 if test "${ac_cv_lib_z_compress+set}" = set; then
31076 echo $ECHO_N "(cached) $ECHO_C" >&6
31077 else
31078 ac_check_lib_save_LIBS=$LIBS
31079 LIBS="-lz ${pbxlibdir} $LIBS"
31080 cat >conftest.$ac_ext <<_ACEOF
31081 /* confdefs.h. */
31082 _ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h. */
31087 /* Override any GCC internal prototype to avoid an error.
31088 Use char because int might match the return type of a GCC
31089 builtin and then its argument prototype would still apply. */
31090 #ifdef __cplusplus
31091 extern "C"
31092 #endif
31093 char compress ();
31095 main ()
31097 return compress ();
31099 return 0;
31101 _ACEOF
31102 rm -f conftest.$ac_objext conftest$ac_exeext
31103 if { (ac_try="$ac_link"
31104 case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31107 esac
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_link") 2>conftest.er1
31110 ac_status=$?
31111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } && {
31116 test -z "$ac_c_werror_flag" ||
31117 test ! -s conftest.err
31118 } && test -s conftest$ac_exeext &&
31119 $as_test_x conftest$ac_exeext; then
31120 ac_cv_lib_z_compress=yes
31121 else
31122 echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31125 ac_cv_lib_z_compress=no
31128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31129 conftest$ac_exeext conftest.$ac_ext
31130 LIBS=$ac_check_lib_save_LIBS
31132 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
31133 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
31134 if test $ac_cv_lib_z_compress = yes; then
31135 AST_ZLIB_FOUND=yes
31136 else
31137 AST_ZLIB_FOUND=no
31141 if test "${AST_ZLIB_FOUND}" = "yes"; then
31142 ZLIB_LIB="-lz "
31143 ZLIB_HEADER_FOUND="1"
31144 if test "x${ZLIB_DIR}" != "x"; then
31145 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
31146 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
31147 saved_cppflags="${CPPFLAGS}"
31148 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
31149 if test "xzlib.h" != "x" ; then
31150 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
31151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31152 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
31153 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
31154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31157 ac_res=`eval echo '${'$as_ac_Header'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159 echo "${ECHO_T}$ac_res" >&6; }
31160 else
31161 # Is the header compilable?
31162 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
31163 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
31164 cat >conftest.$ac_ext <<_ACEOF
31165 /* confdefs.h. */
31166 _ACEOF
31167 cat confdefs.h >>conftest.$ac_ext
31168 cat >>conftest.$ac_ext <<_ACEOF
31169 /* end confdefs.h. */
31170 $ac_includes_default
31171 #include <${ZLIB_DIR}/include/zlib.h>
31172 _ACEOF
31173 rm -f conftest.$ac_objext
31174 if { (ac_try="$ac_compile"
31175 case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178 esac
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_compile") 2>conftest.er1
31181 ac_status=$?
31182 grep -v '^ *+' conftest.er1 >conftest.err
31183 rm -f conftest.er1
31184 cat conftest.err >&5
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); } && {
31187 test -z "$ac_c_werror_flag" ||
31188 test ! -s conftest.err
31189 } && test -s conftest.$ac_objext; then
31190 ac_header_compiler=yes
31191 else
31192 echo "$as_me: failed program was:" >&5
31193 sed 's/^/| /' conftest.$ac_ext >&5
31195 ac_header_compiler=no
31198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31200 echo "${ECHO_T}$ac_header_compiler" >&6; }
31202 # Is the header present?
31203 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
31204 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
31205 cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h. */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h. */
31211 #include <${ZLIB_DIR}/include/zlib.h>
31212 _ACEOF
31213 if { (ac_try="$ac_cpp conftest.$ac_ext"
31214 case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217 esac
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31220 ac_status=$?
31221 grep -v '^ *+' conftest.er1 >conftest.err
31222 rm -f conftest.er1
31223 cat conftest.err >&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); } >/dev/null && {
31226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31227 test ! -s conftest.err
31228 }; then
31229 ac_header_preproc=yes
31230 else
31231 echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31234 ac_header_preproc=no
31237 rm -f conftest.err conftest.$ac_ext
31238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31239 echo "${ECHO_T}$ac_header_preproc" >&6; }
31241 # So? What about this header?
31242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31243 yes:no: )
31244 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31245 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
31247 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
31248 ac_header_preproc=yes
31250 no:yes:* )
31251 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
31252 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
31253 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
31254 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
31255 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
31256 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
31257 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31258 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
31260 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
31261 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
31262 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
31265 esac
31266 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
31267 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
31268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31269 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 else
31271 eval "$as_ac_Header=\$ac_header_preproc"
31273 ac_res=`eval echo '${'$as_ac_Header'}'`
31274 { echo "$as_me:$LINENO: result: $ac_res" >&5
31275 echo "${ECHO_T}$ac_res" >&6; }
31278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31279 ZLIB_HEADER_FOUND=1
31280 else
31281 ZLIB_HEADER_FOUND=0
31286 CPPFLAGS="${saved_cppflags}"
31287 else
31288 if test "xzlib.h" != "x" ; then
31289 if test "${ac_cv_header_zlib_h+set}" = set; then
31290 { echo "$as_me:$LINENO: checking for zlib.h" >&5
31291 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
31292 if test "${ac_cv_header_zlib_h+set}" = set; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31295 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31296 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31297 else
31298 # Is the header compilable?
31299 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
31300 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
31301 cat >conftest.$ac_ext <<_ACEOF
31302 /* confdefs.h. */
31303 _ACEOF
31304 cat confdefs.h >>conftest.$ac_ext
31305 cat >>conftest.$ac_ext <<_ACEOF
31306 /* end confdefs.h. */
31307 $ac_includes_default
31308 #include <zlib.h>
31309 _ACEOF
31310 rm -f conftest.$ac_objext
31311 if { (ac_try="$ac_compile"
31312 case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_compile") 2>conftest.er1
31318 ac_status=$?
31319 grep -v '^ *+' conftest.er1 >conftest.err
31320 rm -f conftest.er1
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } && {
31324 test -z "$ac_c_werror_flag" ||
31325 test ! -s conftest.err
31326 } && test -s conftest.$ac_objext; then
31327 ac_header_compiler=yes
31328 else
31329 echo "$as_me: failed program was:" >&5
31330 sed 's/^/| /' conftest.$ac_ext >&5
31332 ac_header_compiler=no
31335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31337 echo "${ECHO_T}$ac_header_compiler" >&6; }
31339 # Is the header present?
31340 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
31341 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
31342 cat >conftest.$ac_ext <<_ACEOF
31343 /* confdefs.h. */
31344 _ACEOF
31345 cat confdefs.h >>conftest.$ac_ext
31346 cat >>conftest.$ac_ext <<_ACEOF
31347 /* end confdefs.h. */
31348 #include <zlib.h>
31349 _ACEOF
31350 if { (ac_try="$ac_cpp conftest.$ac_ext"
31351 case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31357 ac_status=$?
31358 grep -v '^ *+' conftest.er1 >conftest.err
31359 rm -f conftest.er1
31360 cat conftest.err >&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); } >/dev/null && {
31363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31364 test ! -s conftest.err
31365 }; then
31366 ac_header_preproc=yes
31367 else
31368 echo "$as_me: failed program was:" >&5
31369 sed 's/^/| /' conftest.$ac_ext >&5
31371 ac_header_preproc=no
31374 rm -f conftest.err conftest.$ac_ext
31375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31376 echo "${ECHO_T}$ac_header_preproc" >&6; }
31378 # So? What about this header?
31379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31380 yes:no: )
31381 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31382 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31383 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31384 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31385 ac_header_preproc=yes
31387 no:yes:* )
31388 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31389 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31390 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31391 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31392 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31393 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31394 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31395 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31396 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31397 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31398 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31399 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31402 esac
31403 { echo "$as_me:$LINENO: checking for zlib.h" >&5
31404 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
31405 if test "${ac_cv_header_zlib_h+set}" = set; then
31406 echo $ECHO_N "(cached) $ECHO_C" >&6
31407 else
31408 ac_cv_header_zlib_h=$ac_header_preproc
31410 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31411 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31414 if test $ac_cv_header_zlib_h = yes; then
31415 ZLIB_HEADER_FOUND=1
31416 else
31417 ZLIB_HEADER_FOUND=0
31423 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
31424 if test -n "${ZLIB_MANDATORY}" ;
31425 then
31426 { echo "$as_me:$LINENO: ***" >&5
31427 echo "$as_me: ***" >&6;}
31428 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
31429 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
31430 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
31431 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
31432 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
31433 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
31434 exit 1
31436 ZLIB_LIB=""
31437 ZLIB_INCLUDE=""
31438 PBX_ZLIB=0
31439 else
31440 PBX_ZLIB=1
31442 cat >>confdefs.h <<_ACEOF
31443 #define HAVE_ZLIB 1
31444 _ACEOF
31447 elif test -n "${ZLIB_MANDATORY}";
31448 then
31449 { echo "$as_me:$LINENO: ***" >&5
31450 echo "$as_me: ***" >&6;}
31451 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
31452 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
31453 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31454 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31455 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
31456 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
31457 exit 1
31462 if test "${USE_ZAPTEL}" != "no"; then
31463 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
31464 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
31465 saved_cppflags="${CPPFLAGS}"
31466 if test "x${ZAPTEL_DIR}" != "x"; then
31467 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
31469 cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h. */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h. */
31476 #include <zaptel/zaptel.h>
31478 main ()
31480 int foo = ZT_DIAL_OP_CANCEL;
31482 return 0;
31485 _ACEOF
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491 esac
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
31494 ac_status=$?
31495 grep -v '^ *+' conftest.er1 >conftest.err
31496 rm -f conftest.er1
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } && {
31500 test -z "$ac_c_werror_flag" ||
31501 test ! -s conftest.err
31502 } && test -s conftest.$ac_objext; then
31503 { echo "$as_me:$LINENO: result: yes" >&5
31504 echo "${ECHO_T}yes" >&6; }
31505 ac_cv_zaptel_h="yes"
31507 else
31508 echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31511 { echo "$as_me:$LINENO: result: no" >&5
31512 echo "${ECHO_T}no" >&6; }
31513 ac_cv_zaptel_h="no"
31518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31519 CPPFLAGS="${saved_cppflags}"
31520 if test "${ac_cv_zaptel_h}" = "yes"; then
31521 if test "${ZAPTEL_DIR}" != ""; then
31522 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
31524 PBX_ZAPTEL=1
31526 cat >>confdefs.h <<\_ACEOF
31527 #define HAVE_ZAPTEL 1
31528 _ACEOF
31530 elif test -n "${ZAPTEL_MANDATORY}";
31531 then
31532 { echo "$as_me:$LINENO: ***" >&5
31533 echo "$as_me: ***" >&6;}
31534 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
31535 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
31536 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31537 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31538 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
31539 echo "$as_me: *** including --without-zaptel." >&6;}
31540 exit 1
31544 if test "${PBX_ZAPTEL}" = 1; then
31545 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
31546 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
31547 saved_cppflags="${CPPFLAGS}"
31548 if test "x${ZAPTEL_DIR}" != "x"; then
31549 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
31551 cat >conftest.$ac_ext <<_ACEOF
31553 /* confdefs.h. */
31554 _ACEOF
31555 cat confdefs.h >>conftest.$ac_ext
31556 cat >>conftest.$ac_ext <<_ACEOF
31557 /* end confdefs.h. */
31558 #include <zaptel/zaptel.h>
31560 main ()
31562 int foo = ZT_EVENT_REMOVED;
31564 return 0;
31567 _ACEOF
31568 rm -f conftest.$ac_objext
31569 if { (ac_try="$ac_compile"
31570 case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_compile") 2>conftest.er1
31576 ac_status=$?
31577 grep -v '^ *+' conftest.er1 >conftest.err
31578 rm -f conftest.er1
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } && {
31582 test -z "$ac_c_werror_flag" ||
31583 test ! -s conftest.err
31584 } && test -s conftest.$ac_objext; then
31585 { echo "$as_me:$LINENO: result: yes" >&5
31586 echo "${ECHO_T}yes" >&6; }
31587 ac_cv_zaptel_vldtmf="yes"
31589 else
31590 echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31593 { echo "$as_me:$LINENO: result: no" >&5
31594 echo "${ECHO_T}no" >&6; }
31595 ac_cv_zaptel_vldtmf="no"
31600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31601 CPPFLAGS="${saved_cppflags}"
31602 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
31603 PBX_ZAPTEL_VLDTMF=1
31605 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
31606 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
31607 saved_cppflags="${CPPFLAGS}"
31608 if test "x${ZAPTEL_DIR}" != "x"; then
31609 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
31611 cat >conftest.$ac_ext <<_ACEOF
31613 /* confdefs.h. */
31614 _ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h. */
31618 #include <zaptel/zaptel.h>
31620 main ()
31622 int foo = ZT_TCOP_ALLOCATE;
31624 return 0;
31627 _ACEOF
31628 rm -f conftest.$ac_objext
31629 if { (ac_try="$ac_compile"
31630 case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633 esac
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_compile") 2>conftest.er1
31636 ac_status=$?
31637 grep -v '^ *+' conftest.er1 >conftest.err
31638 rm -f conftest.er1
31639 cat conftest.err >&5
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } && {
31642 test -z "$ac_c_werror_flag" ||
31643 test ! -s conftest.err
31644 } && test -s conftest.$ac_objext; then
31645 { echo "$as_me:$LINENO: result: yes" >&5
31646 echo "${ECHO_T}yes" >&6; }
31647 ac_cv_zaptel_transcode="yes"
31649 else
31650 echo "$as_me: failed program was:" >&5
31651 sed 's/^/| /' conftest.$ac_ext >&5
31653 { echo "$as_me:$LINENO: result: no" >&5
31654 echo "${ECHO_T}no" >&6; }
31655 ac_cv_zaptel_transcode="no"
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661 CPPFLAGS="${saved_cppflags}"
31662 if test "${ac_cv_zaptel_transcode}" = "yes"; then
31663 PBX_ZAPTEL_TRANSCODE=1
31669 EDITLINE_LIB=""
31670 if test "x$TERMCAP_LIB" != "x" ; then
31671 EDITLINE_LIB="$TERMCAP_LIB"
31672 elif test "x$TINFO_LIB" != "x" ; then
31673 EDITLINE_LIB="$TINFO_LIB"
31674 elif test "x$CURSES_LIB" != "x" ; then
31675 EDITLINE_LIB="$CURSES_LIB"
31676 elif test "x$NCURSES_LIB" != "x" ; then
31677 EDITLINE_LIB="$NCURSES_LIB"
31678 else
31679 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
31680 echo "$as_me: error: *** termcap support not found" >&2;}
31681 { (exit 1); exit 1; }; }
31685 if test "${ac_cv_header_h323_h+set}" = set; then
31686 { echo "$as_me:$LINENO: checking for h323.h" >&5
31687 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
31688 if test "${ac_cv_header_h323_h+set}" = set; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31691 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
31692 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
31693 else
31694 # Is the header compilable?
31695 { echo "$as_me:$LINENO: checking h323.h usability" >&5
31696 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
31697 cat >conftest.$ac_ext <<_ACEOF
31698 /* confdefs.h. */
31699 _ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h. */
31703 $ac_includes_default
31704 #include <h323.h>
31705 _ACEOF
31706 rm -f conftest.$ac_objext
31707 if { (ac_try="$ac_compile"
31708 case "(($ac_try" in
31709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710 *) ac_try_echo=$ac_try;;
31711 esac
31712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713 (eval "$ac_compile") 2>conftest.er1
31714 ac_status=$?
31715 grep -v '^ *+' conftest.er1 >conftest.err
31716 rm -f conftest.er1
31717 cat conftest.err >&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); } && {
31720 test -z "$ac_c_werror_flag" ||
31721 test ! -s conftest.err
31722 } && test -s conftest.$ac_objext; then
31723 ac_header_compiler=yes
31724 else
31725 echo "$as_me: failed program was:" >&5
31726 sed 's/^/| /' conftest.$ac_ext >&5
31728 ac_header_compiler=no
31731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31733 echo "${ECHO_T}$ac_header_compiler" >&6; }
31735 # Is the header present?
31736 { echo "$as_me:$LINENO: checking h323.h presence" >&5
31737 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
31738 cat >conftest.$ac_ext <<_ACEOF
31739 /* confdefs.h. */
31740 _ACEOF
31741 cat confdefs.h >>conftest.$ac_ext
31742 cat >>conftest.$ac_ext <<_ACEOF
31743 /* end confdefs.h. */
31744 #include <h323.h>
31745 _ACEOF
31746 if { (ac_try="$ac_cpp conftest.$ac_ext"
31747 case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31750 esac
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31753 ac_status=$?
31754 grep -v '^ *+' conftest.er1 >conftest.err
31755 rm -f conftest.er1
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } >/dev/null && {
31759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31760 test ! -s conftest.err
31761 }; then
31762 ac_header_preproc=yes
31763 else
31764 echo "$as_me: failed program was:" >&5
31765 sed 's/^/| /' conftest.$ac_ext >&5
31767 ac_header_preproc=no
31770 rm -f conftest.err conftest.$ac_ext
31771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31772 echo "${ECHO_T}$ac_header_preproc" >&6; }
31774 # So? What about this header?
31775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31776 yes:no: )
31777 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
31778 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31779 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
31780 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
31781 ac_header_preproc=yes
31783 no:yes:* )
31784 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
31785 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
31786 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
31787 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
31788 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
31789 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
31790 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
31791 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
31792 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
31793 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
31794 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
31795 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
31798 esac
31799 { echo "$as_me:$LINENO: checking for h323.h" >&5
31800 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
31801 if test "${ac_cv_header_h323_h+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 else
31804 ac_cv_header_h323_h=$ac_header_preproc
31806 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
31807 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
31810 if test $ac_cv_header_h323_h = yes; then
31811 PBX_H323=1
31812 else
31813 PBX_H323=0
31819 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
31820 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
31821 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
31822 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
31823 echo $ECHO_N "(cached) $ECHO_C" >&6
31825 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
31826 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
31827 else
31828 # Is the header compilable?
31829 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
31830 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
31831 cat >conftest.$ac_ext <<_ACEOF
31832 /* confdefs.h. */
31833 _ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h. */
31837 $ac_includes_default
31838 #include <linux/compiler.h>
31839 _ACEOF
31840 rm -f conftest.$ac_objext
31841 if { (ac_try="$ac_compile"
31842 case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_compile") 2>conftest.er1
31848 ac_status=$?
31849 grep -v '^ *+' conftest.er1 >conftest.err
31850 rm -f conftest.er1
31851 cat conftest.err >&5
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } && {
31854 test -z "$ac_c_werror_flag" ||
31855 test ! -s conftest.err
31856 } && test -s conftest.$ac_objext; then
31857 ac_header_compiler=yes
31858 else
31859 echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31862 ac_header_compiler=no
31865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31867 echo "${ECHO_T}$ac_header_compiler" >&6; }
31869 # Is the header present?
31870 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
31871 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
31872 cat >conftest.$ac_ext <<_ACEOF
31873 /* confdefs.h. */
31874 _ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h. */
31878 #include <linux/compiler.h>
31879 _ACEOF
31880 if { (ac_try="$ac_cpp conftest.$ac_ext"
31881 case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31884 esac
31885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31887 ac_status=$?
31888 grep -v '^ *+' conftest.er1 >conftest.err
31889 rm -f conftest.er1
31890 cat conftest.err >&5
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); } >/dev/null && {
31893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31894 test ! -s conftest.err
31895 }; then
31896 ac_header_preproc=yes
31897 else
31898 echo "$as_me: failed program was:" >&5
31899 sed 's/^/| /' conftest.$ac_ext >&5
31901 ac_header_preproc=no
31904 rm -f conftest.err conftest.$ac_ext
31905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31906 echo "${ECHO_T}$ac_header_preproc" >&6; }
31908 # So? What about this header?
31909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31910 yes:no: )
31911 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
31912 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31913 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
31914 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
31915 ac_header_preproc=yes
31917 no:yes:* )
31918 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
31919 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
31920 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
31921 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
31922 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
31923 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
31924 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
31925 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
31926 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
31927 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
31928 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
31929 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
31932 esac
31933 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
31934 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
31935 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31937 else
31938 ac_cv_header_linux_compiler_h=$ac_header_preproc
31940 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
31941 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
31944 if test $ac_cv_header_linux_compiler_h = yes; then
31946 cat >>confdefs.h <<_ACEOF
31947 #define HAVE_LINUX_COMPILER_H 1
31948 _ACEOF
31954 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
31955 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
31956 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
31957 echo $ECHO_N "(cached) $ECHO_C" >&6
31958 else
31959 cat >conftest.$ac_ext <<_ACEOF
31960 /* confdefs.h. */
31961 _ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h. */
31966 #include <linux/version.h>
31967 #ifdef HAVE_LINUX_COMPILER_H
31968 #include <linux/compiler.h>
31969 #endif
31972 #include <linux/ixjuser.h>
31973 _ACEOF
31974 rm -f conftest.$ac_objext
31975 if { (ac_try="$ac_compile"
31976 case "(($ac_try" in
31977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 *) ac_try_echo=$ac_try;;
31979 esac
31980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981 (eval "$ac_compile") 2>conftest.er1
31982 ac_status=$?
31983 grep -v '^ *+' conftest.er1 >conftest.err
31984 rm -f conftest.er1
31985 cat conftest.err >&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); } && {
31988 test -z "$ac_c_werror_flag" ||
31989 test ! -s conftest.err
31990 } && test -s conftest.$ac_objext; then
31991 ac_cv_header_linux_ixjuser_h=yes
31992 else
31993 echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31996 ac_cv_header_linux_ixjuser_h=no
31999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32001 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
32002 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
32003 if test $ac_cv_header_linux_ixjuser_h = yes; then
32004 PBX_IXJUSER=1
32005 else
32006 PBX_IXJUSER=0
32012 PBX_GTK=0
32013 if test -n "$ac_tool_prefix"; then
32014 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
32015 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
32016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32018 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32020 else
32021 if test -n "$GTKCONFIG"; then
32022 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
32023 else
32024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32025 for as_dir in $PATH
32027 IFS=$as_save_IFS
32028 test -z "$as_dir" && as_dir=.
32029 for ac_exec_ext in '' $ac_executable_extensions; do
32030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32031 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
32032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32033 break 2
32035 done
32036 done
32037 IFS=$as_save_IFS
32041 GTKCONFIG=$ac_cv_prog_GTKCONFIG
32042 if test -n "$GTKCONFIG"; then
32043 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
32044 echo "${ECHO_T}$GTKCONFIG" >&6; }
32045 else
32046 { echo "$as_me:$LINENO: result: no" >&5
32047 echo "${ECHO_T}no" >&6; }
32052 if test -z "$ac_cv_prog_GTKCONFIG"; then
32053 ac_ct_GTKCONFIG=$GTKCONFIG
32054 # Extract the first word of "gtk-config", so it can be a program name with args.
32055 set dummy gtk-config; ac_word=$2
32056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32058 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32060 else
32061 if test -n "$ac_ct_GTKCONFIG"; then
32062 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
32063 else
32064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32065 for as_dir in $PATH
32067 IFS=$as_save_IFS
32068 test -z "$as_dir" && as_dir=.
32069 for ac_exec_ext in '' $ac_executable_extensions; do
32070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32071 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
32072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32073 break 2
32075 done
32076 done
32077 IFS=$as_save_IFS
32081 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
32082 if test -n "$ac_ct_GTKCONFIG"; then
32083 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
32084 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
32085 else
32086 { echo "$as_me:$LINENO: result: no" >&5
32087 echo "${ECHO_T}no" >&6; }
32090 if test "x$ac_ct_GTKCONFIG" = x; then
32091 GTKCONFIG="No"
32092 else
32093 case $cross_compiling:$ac_tool_warned in
32094 yes:)
32095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32096 whose name does not start with the host triplet. If you think this
32097 configuration is useful to you, please write to autoconf@gnu.org." >&5
32098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32099 whose name does not start with the host triplet. If you think this
32100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32101 ac_tool_warned=yes ;;
32102 esac
32103 GTKCONFIG=$ac_ct_GTKCONFIG
32105 else
32106 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
32109 if test ! "x${GTKCONFIG}" = xNo; then
32110 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
32111 GTK_LIB=$(${GTKCONFIG} --libs gthread)
32112 PBX_GTK=1
32114 cat >>confdefs.h <<\_ACEOF
32115 #define HAVE_GTK 1
32116 _ACEOF
32123 PBX_GTK2=0
32124 if test -n "$ac_tool_prefix"; then
32125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32126 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32129 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
32130 echo $ECHO_N "(cached) $ECHO_C" >&6
32131 else
32132 if test -n "$PKGCONFIG"; then
32133 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
32134 else
32135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32136 for as_dir in $PATH
32138 IFS=$as_save_IFS
32139 test -z "$as_dir" && as_dir=.
32140 for ac_exec_ext in '' $ac_executable_extensions; do
32141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32142 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
32143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32144 break 2
32146 done
32147 done
32148 IFS=$as_save_IFS
32152 PKGCONFIG=$ac_cv_prog_PKGCONFIG
32153 if test -n "$PKGCONFIG"; then
32154 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
32155 echo "${ECHO_T}$PKGCONFIG" >&6; }
32156 else
32157 { echo "$as_me:$LINENO: result: no" >&5
32158 echo "${ECHO_T}no" >&6; }
32163 if test -z "$ac_cv_prog_PKGCONFIG"; then
32164 ac_ct_PKGCONFIG=$PKGCONFIG
32165 # Extract the first word of "pkg-config", so it can be a program name with args.
32166 set dummy pkg-config; ac_word=$2
32167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32169 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32171 else
32172 if test -n "$ac_ct_PKGCONFIG"; then
32173 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
32174 else
32175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32176 for as_dir in $PATH
32178 IFS=$as_save_IFS
32179 test -z "$as_dir" && as_dir=.
32180 for ac_exec_ext in '' $ac_executable_extensions; do
32181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32182 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
32183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32184 break 2
32186 done
32187 done
32188 IFS=$as_save_IFS
32192 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
32193 if test -n "$ac_ct_PKGCONFIG"; then
32194 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
32195 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
32196 else
32197 { echo "$as_me:$LINENO: result: no" >&5
32198 echo "${ECHO_T}no" >&6; }
32201 if test "x$ac_ct_PKGCONFIG" = x; then
32202 PKGCONFIG="No"
32203 else
32204 case $cross_compiling:$ac_tool_warned in
32205 yes:)
32206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32207 whose name does not start with the host triplet. If you think this
32208 configuration is useful to you, please write to autoconf@gnu.org." >&5
32209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32210 whose name does not start with the host triplet. If you think this
32211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32212 ac_tool_warned=yes ;;
32213 esac
32214 PKGCONFIG=$ac_ct_PKGCONFIG
32216 else
32217 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
32220 if test ! "x${PKGCONFIG}" = xNo; then
32221 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
32222 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
32223 PBX_GTK2=1
32225 cat >>confdefs.h <<\_ACEOF
32226 #define HAVE_GTK2 1
32227 _ACEOF
32234 if test "${USE_CURL}" != "no"; then
32235 if test -n "$ac_tool_prefix"; then
32236 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
32237 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
32238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32240 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
32241 echo $ECHO_N "(cached) $ECHO_C" >&6
32242 else
32243 case $CURL_CONFIG in
32244 [\\/]* | ?:[\\/]*)
32245 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
32248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32249 for as_dir in $PATH
32251 IFS=$as_save_IFS
32252 test -z "$as_dir" && as_dir=.
32253 for ac_exec_ext in '' $ac_executable_extensions; do
32254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32255 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32257 break 2
32259 done
32260 done
32261 IFS=$as_save_IFS
32264 esac
32266 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
32267 if test -n "$CURL_CONFIG"; then
32268 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
32269 echo "${ECHO_T}$CURL_CONFIG" >&6; }
32270 else
32271 { echo "$as_me:$LINENO: result: no" >&5
32272 echo "${ECHO_T}no" >&6; }
32277 if test -z "$ac_cv_path_CURL_CONFIG"; then
32278 ac_pt_CURL_CONFIG=$CURL_CONFIG
32279 # Extract the first word of "curl-config", so it can be a program name with args.
32280 set dummy curl-config; ac_word=$2
32281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32283 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
32284 echo $ECHO_N "(cached) $ECHO_C" >&6
32285 else
32286 case $ac_pt_CURL_CONFIG in
32287 [\\/]* | ?:[\\/]*)
32288 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
32291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32292 for as_dir in $PATH
32294 IFS=$as_save_IFS
32295 test -z "$as_dir" && as_dir=.
32296 for ac_exec_ext in '' $ac_executable_extensions; do
32297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32298 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32300 break 2
32302 done
32303 done
32304 IFS=$as_save_IFS
32307 esac
32309 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
32310 if test -n "$ac_pt_CURL_CONFIG"; then
32311 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
32312 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
32313 else
32314 { echo "$as_me:$LINENO: result: no" >&5
32315 echo "${ECHO_T}no" >&6; }
32318 if test "x$ac_pt_CURL_CONFIG" = x; then
32319 CURL_CONFIG="No"
32320 else
32321 case $cross_compiling:$ac_tool_warned in
32322 yes:)
32323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32324 whose name does not start with the host triplet. If you think this
32325 configuration is useful to you, please write to autoconf@gnu.org." >&5
32326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32327 whose name does not start with the host triplet. If you think this
32328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32329 ac_tool_warned=yes ;;
32330 esac
32331 CURL_CONFIG=$ac_pt_CURL_CONFIG
32333 else
32334 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
32337 if test ! x"${CURL_CONFIG}" = xNo; then
32338 # check for version
32339 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
32340 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
32341 CURL_LIB=$(${CURL_CONFIG} --libs)
32343 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
32344 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
32345 saved_cppflags="${CPPFLAGS}"
32346 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
32347 cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h. */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353 #include <curl/curl.h>
32355 main ()
32357 curl_version();
32359 return 0;
32362 _ACEOF
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32368 esac
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
32371 ac_status=$?
32372 grep -v '^ *+' conftest.er1 >conftest.err
32373 rm -f conftest.er1
32374 cat conftest.err >&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); } && {
32377 test -z "$ac_c_werror_flag" ||
32378 test ! -s conftest.err
32379 } && test -s conftest.$ac_objext; then
32381 { echo "$as_me:$LINENO: result: yes" >&5
32382 echo "${ECHO_T}yes" >&6; }
32383 ac_cv_curl_h="yes"
32385 else
32386 echo "$as_me: failed program was:" >&5
32387 sed 's/^/| /' conftest.$ac_ext >&5
32390 { echo "$as_me:$LINENO: result: no" >&5
32391 echo "${ECHO_T}no" >&6; }
32392 ac_cv_curl_h="no"
32397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32398 CPPFLAGS="${saved_cppflags}"
32399 if test "${ac_cv_curl_h}" = "yes"; then
32400 PBX_CURL=1
32402 cat >>confdefs.h <<\_ACEOF
32403 #define HAVE_CURL 1
32404 _ACEOF
32411 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
32413 cat >confcache <<\_ACEOF
32414 # This file is a shell script that caches the results of configure
32415 # tests run on this system so they can be shared between configure
32416 # scripts and configure runs, see configure's option --config-cache.
32417 # It is not useful on other systems. If it contains results you don't
32418 # want to keep, you may remove or edit it.
32420 # config.status only pays attention to the cache file if you give it
32421 # the --recheck option to rerun configure.
32423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32425 # following values.
32427 _ACEOF
32429 # The following way of writing the cache mishandles newlines in values,
32430 # but we know of no workaround that is simple, portable, and efficient.
32431 # So, we kill variables containing newlines.
32432 # Ultrix sh set writes to stderr and can't be redirected directly,
32433 # and sets the high bit in the cache file unless we assign to the vars.
32435 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32436 eval ac_val=\$$ac_var
32437 case $ac_val in #(
32438 *${as_nl}*)
32439 case $ac_var in #(
32440 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32441 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32442 esac
32443 case $ac_var in #(
32444 _ | IFS | as_nl) ;; #(
32445 *) $as_unset $ac_var ;;
32446 esac ;;
32447 esac
32448 done
32450 (set) 2>&1 |
32451 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32452 *${as_nl}ac_space=\ *)
32453 # `set' does not quote correctly, so add quotes (double-quote
32454 # substitution turns \\\\ into \\, and sed turns \\ into \).
32455 sed -n \
32456 "s/'/'\\\\''/g;
32457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32458 ;; #(
32460 # `set' quotes correctly as required by POSIX, so do not add quotes.
32461 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32463 esac |
32464 sort
32466 sed '
32467 /^ac_cv_env_/b end
32468 t clear
32469 :clear
32470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32471 t end
32472 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32473 :end' >>confcache
32474 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32475 if test -w "$cache_file"; then
32476 test "x$cache_file" != "x/dev/null" &&
32477 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32478 echo "$as_me: updating cache $cache_file" >&6;}
32479 cat confcache >$cache_file
32480 else
32481 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32482 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32485 rm -f confcache
32487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32488 # Let make expand exec_prefix.
32489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32491 DEFS=-DHAVE_CONFIG_H
32493 ac_libobjs=
32494 ac_ltlibobjs=
32495 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32496 # 1. Remove the extension, and $U if already installed.
32497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32498 ac_i=`echo "$ac_i" | sed "$ac_script"`
32499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32500 # will be set to the directory where LIBOBJS objects are built.
32501 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32502 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32503 done
32504 LIBOBJS=$ac_libobjs
32506 LTLIBOBJS=$ac_ltlibobjs
32510 : ${CONFIG_STATUS=./config.status}
32511 ac_clean_files_save=$ac_clean_files
32512 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32513 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32514 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32515 cat >$CONFIG_STATUS <<_ACEOF
32516 #! $SHELL
32517 # Generated by $as_me.
32518 # Run this file to recreate the current configuration.
32519 # Compiler output produced by configure, useful for debugging
32520 # configure, is in config.log if it exists.
32522 debug=false
32523 ac_cs_recheck=false
32524 ac_cs_silent=false
32525 SHELL=\${CONFIG_SHELL-$SHELL}
32526 _ACEOF
32528 cat >>$CONFIG_STATUS <<\_ACEOF
32529 ## --------------------- ##
32530 ## M4sh Initialization. ##
32531 ## --------------------- ##
32533 # Be more Bourne compatible
32534 DUALCASE=1; export DUALCASE # for MKS sh
32535 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32536 emulate sh
32537 NULLCMD=:
32538 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32539 # is contrary to our usage. Disable this feature.
32540 alias -g '${1+"$@"}'='"$@"'
32541 setopt NO_GLOB_SUBST
32542 else
32543 case `(set -o) 2>/dev/null` in
32544 *posix*) set -o posix ;;
32545 esac
32552 # PATH needs CR
32553 # Avoid depending upon Character Ranges.
32554 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32555 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32556 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32557 as_cr_digits='0123456789'
32558 as_cr_alnum=$as_cr_Letters$as_cr_digits
32560 # The user is always right.
32561 if test "${PATH_SEPARATOR+set}" != set; then
32562 echo "#! /bin/sh" >conf$$.sh
32563 echo "exit 0" >>conf$$.sh
32564 chmod +x conf$$.sh
32565 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32566 PATH_SEPARATOR=';'
32567 else
32568 PATH_SEPARATOR=:
32570 rm -f conf$$.sh
32573 # Support unset when possible.
32574 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32575 as_unset=unset
32576 else
32577 as_unset=false
32581 # IFS
32582 # We need space, tab and new line, in precisely that order. Quoting is
32583 # there to prevent editors from complaining about space-tab.
32584 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32585 # splitting by setting IFS to empty value.)
32586 as_nl='
32588 IFS=" "" $as_nl"
32590 # Find who we are. Look in the path if we contain no directory separator.
32591 case $0 in
32592 *[\\/]* ) as_myself=$0 ;;
32593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32594 for as_dir in $PATH
32596 IFS=$as_save_IFS
32597 test -z "$as_dir" && as_dir=.
32598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32599 done
32600 IFS=$as_save_IFS
32603 esac
32604 # We did not find ourselves, most probably we were run as `sh COMMAND'
32605 # in which case we are not to be found in the path.
32606 if test "x$as_myself" = x; then
32607 as_myself=$0
32609 if test ! -f "$as_myself"; then
32610 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32611 { (exit 1); exit 1; }
32614 # Work around bugs in pre-3.0 UWIN ksh.
32615 for as_var in ENV MAIL MAILPATH
32616 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32617 done
32618 PS1='$ '
32619 PS2='> '
32620 PS4='+ '
32622 # NLS nuisances.
32623 for as_var in \
32624 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32625 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32626 LC_TELEPHONE LC_TIME
32628 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32629 eval $as_var=C; export $as_var
32630 else
32631 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32633 done
32635 # Required to use basename.
32636 if expr a : '\(a\)' >/dev/null 2>&1 &&
32637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32638 as_expr=expr
32639 else
32640 as_expr=false
32643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32644 as_basename=basename
32645 else
32646 as_basename=false
32650 # Name of the executable.
32651 as_me=`$as_basename -- "$0" ||
32652 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32653 X"$0" : 'X\(//\)$' \| \
32654 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32655 echo X/"$0" |
32656 sed '/^.*\/\([^/][^/]*\)\/*$/{
32657 s//\1/
32660 /^X\/\(\/\/\)$/{
32661 s//\1/
32664 /^X\/\(\/\).*/{
32665 s//\1/
32668 s/.*/./; q'`
32670 # CDPATH.
32671 $as_unset CDPATH
32675 as_lineno_1=$LINENO
32676 as_lineno_2=$LINENO
32677 test "x$as_lineno_1" != "x$as_lineno_2" &&
32678 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32680 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32681 # uniformly replaced by the line number. The first 'sed' inserts a
32682 # line-number line after each line using $LINENO; the second 'sed'
32683 # does the real work. The second script uses 'N' to pair each
32684 # line-number line with the line containing $LINENO, and appends
32685 # trailing '-' during substitution so that $LINENO is not a special
32686 # case at line end.
32687 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32688 # scripts with optimization help from Paolo Bonzini. Blame Lee
32689 # E. McMahon (1931-1989) for sed's syntax. :-)
32690 sed -n '
32692 /[$]LINENO/=
32693 ' <$as_myself |
32694 sed '
32695 s/[$]LINENO.*/&-/
32696 t lineno
32698 :lineno
32700 :loop
32701 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32702 t loop
32703 s/-\n.*//
32704 ' >$as_me.lineno &&
32705 chmod +x "$as_me.lineno" ||
32706 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32707 { (exit 1); exit 1; }; }
32709 # Don't try to exec as it changes $[0], causing all sort of problems
32710 # (the dirname of $[0] is not the place where we might find the
32711 # original and so on. Autoconf is especially sensitive to this).
32712 . "./$as_me.lineno"
32713 # Exit status is that of the last command.
32714 exit
32718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32719 as_dirname=dirname
32720 else
32721 as_dirname=false
32724 ECHO_C= ECHO_N= ECHO_T=
32725 case `echo -n x` in
32726 -n*)
32727 case `echo 'x\c'` in
32728 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32729 *) ECHO_C='\c';;
32730 esac;;
32732 ECHO_N='-n';;
32733 esac
32735 if expr a : '\(a\)' >/dev/null 2>&1 &&
32736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32737 as_expr=expr
32738 else
32739 as_expr=false
32742 rm -f conf$$ conf$$.exe conf$$.file
32743 if test -d conf$$.dir; then
32744 rm -f conf$$.dir/conf$$.file
32745 else
32746 rm -f conf$$.dir
32747 mkdir conf$$.dir
32749 echo >conf$$.file
32750 if ln -s conf$$.file conf$$ 2>/dev/null; then
32751 as_ln_s='ln -s'
32752 # ... but there are two gotchas:
32753 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32754 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32755 # In both cases, we have to default to `cp -p'.
32756 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32757 as_ln_s='cp -p'
32758 elif ln conf$$.file conf$$ 2>/dev/null; then
32759 as_ln_s=ln
32760 else
32761 as_ln_s='cp -p'
32763 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32764 rmdir conf$$.dir 2>/dev/null
32766 if mkdir -p . 2>/dev/null; then
32767 as_mkdir_p=:
32768 else
32769 test -d ./-p && rmdir ./-p
32770 as_mkdir_p=false
32773 if test -x / >/dev/null 2>&1; then
32774 as_test_x='test -x'
32775 else
32776 if ls -dL / >/dev/null 2>&1; then
32777 as_ls_L_option=L
32778 else
32779 as_ls_L_option=
32781 as_test_x='
32782 eval sh -c '\''
32783 if test -d "$1"; then
32784 test -d "$1/.";
32785 else
32786 case $1 in
32787 -*)set "./$1";;
32788 esac;
32789 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32790 ???[sx]*):;;*)false;;esac;fi
32791 '\'' sh
32794 as_executable_p=$as_test_x
32796 # Sed expression to map a string onto a valid CPP name.
32797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32799 # Sed expression to map a string onto a valid variable name.
32800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32803 exec 6>&1
32805 # Save the log message, to keep $[0] and so on meaningful, and to
32806 # report actual input values of CONFIG_FILES etc. instead of their
32807 # values after options handling.
32808 ac_log="
32809 This file was extended by $as_me, which was
32810 generated by GNU Autoconf 2.61. Invocation command line was
32812 CONFIG_FILES = $CONFIG_FILES
32813 CONFIG_HEADERS = $CONFIG_HEADERS
32814 CONFIG_LINKS = $CONFIG_LINKS
32815 CONFIG_COMMANDS = $CONFIG_COMMANDS
32816 $ $0 $@
32818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32821 _ACEOF
32823 cat >>$CONFIG_STATUS <<_ACEOF
32824 # Files that config.status was made for.
32825 config_files="$ac_config_files"
32826 config_headers="$ac_config_headers"
32828 _ACEOF
32830 cat >>$CONFIG_STATUS <<\_ACEOF
32831 ac_cs_usage="\
32832 \`$as_me' instantiates files from templates according to the
32833 current configuration.
32835 Usage: $0 [OPTIONS] [FILE]...
32837 -h, --help print this help, then exit
32838 -V, --version print version number and configuration settings, then exit
32839 -q, --quiet do not print progress messages
32840 -d, --debug don't remove temporary files
32841 --recheck update $as_me by reconfiguring in the same conditions
32842 --file=FILE[:TEMPLATE]
32843 instantiate the configuration file FILE
32844 --header=FILE[:TEMPLATE]
32845 instantiate the configuration header FILE
32847 Configuration files:
32848 $config_files
32850 Configuration headers:
32851 $config_headers
32853 Report bugs to <bug-autoconf@gnu.org>."
32855 _ACEOF
32856 cat >>$CONFIG_STATUS <<_ACEOF
32857 ac_cs_version="\\
32858 config.status
32859 configured by $0, generated by GNU Autoconf 2.61,
32860 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32862 Copyright (C) 2006 Free Software Foundation, Inc.
32863 This config.status script is free software; the Free Software Foundation
32864 gives unlimited permission to copy, distribute and modify it."
32866 ac_pwd='$ac_pwd'
32867 srcdir='$srcdir'
32868 INSTALL='$INSTALL'
32869 _ACEOF
32871 cat >>$CONFIG_STATUS <<\_ACEOF
32872 # If no file are specified by the user, then we need to provide default
32873 # value. By we need to know if files were specified by the user.
32874 ac_need_defaults=:
32875 while test $# != 0
32877 case $1 in
32878 --*=*)
32879 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32880 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32881 ac_shift=:
32884 ac_option=$1
32885 ac_optarg=$2
32886 ac_shift=shift
32888 esac
32890 case $ac_option in
32891 # Handling of the options.
32892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32893 ac_cs_recheck=: ;;
32894 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32895 echo "$ac_cs_version"; exit ;;
32896 --debug | --debu | --deb | --de | --d | -d )
32897 debug=: ;;
32898 --file | --fil | --fi | --f )
32899 $ac_shift
32900 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32901 ac_need_defaults=false;;
32902 --header | --heade | --head | --hea )
32903 $ac_shift
32904 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32905 ac_need_defaults=false;;
32906 --he | --h)
32907 # Conflict between --help and --header
32908 { echo "$as_me: error: ambiguous option: $1
32909 Try \`$0 --help' for more information." >&2
32910 { (exit 1); exit 1; }; };;
32911 --help | --hel | -h )
32912 echo "$ac_cs_usage"; exit ;;
32913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32914 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32915 ac_cs_silent=: ;;
32917 # This is an error.
32918 -*) { echo "$as_me: error: unrecognized option: $1
32919 Try \`$0 --help' for more information." >&2
32920 { (exit 1); exit 1; }; } ;;
32922 *) ac_config_targets="$ac_config_targets $1"
32923 ac_need_defaults=false ;;
32925 esac
32926 shift
32927 done
32929 ac_configure_extra_args=
32931 if $ac_cs_silent; then
32932 exec 6>/dev/null
32933 ac_configure_extra_args="$ac_configure_extra_args --silent"
32936 _ACEOF
32937 cat >>$CONFIG_STATUS <<_ACEOF
32938 if \$ac_cs_recheck; then
32939 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32940 CONFIG_SHELL=$SHELL
32941 export CONFIG_SHELL
32942 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32945 _ACEOF
32946 cat >>$CONFIG_STATUS <<\_ACEOF
32947 exec 5>>config.log
32949 echo
32950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32951 ## Running $as_me. ##
32952 _ASBOX
32953 echo "$ac_log"
32954 } >&5
32956 _ACEOF
32957 cat >>$CONFIG_STATUS <<_ACEOF
32958 _ACEOF
32960 cat >>$CONFIG_STATUS <<\_ACEOF
32962 # Handling of arguments.
32963 for ac_config_target in $ac_config_targets
32965 case $ac_config_target in
32966 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
32967 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
32968 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
32969 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
32971 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32972 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32973 { (exit 1); exit 1; }; };;
32974 esac
32975 done
32978 # If the user did not use the arguments to specify the items to instantiate,
32979 # then the envvar interface is used. Set only those that are not.
32980 # We use the long form for the default assignment because of an extremely
32981 # bizarre bug on SunOS 4.1.3.
32982 if $ac_need_defaults; then
32983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32987 # Have a temporary directory for convenience. Make it in the build tree
32988 # simply because there is no reason against having it here, and in addition,
32989 # creating and moving files from /tmp can sometimes cause problems.
32990 # Hook for its removal unless debugging.
32991 # Note that there is a small window in which the directory will not be cleaned:
32992 # after its creation but before its name has been assigned to `$tmp'.
32993 $debug ||
32995 tmp=
32996 trap 'exit_status=$?
32997 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32999 trap '{ (exit 1); exit 1; }' 1 2 13 15
33001 # Create a (secure) tmp directory for tmp files.
33004 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33005 test -n "$tmp" && test -d "$tmp"
33006 } ||
33008 tmp=./conf$$-$RANDOM
33009 (umask 077 && mkdir "$tmp")
33010 } ||
33012 echo "$me: cannot create a temporary directory in ." >&2
33013 { (exit 1); exit 1; }
33017 # Set up the sed scripts for CONFIG_FILES section.
33020 # No need to generate the scripts if there are no CONFIG_FILES.
33021 # This happens for instance when ./config.status config.h
33022 if test -n "$CONFIG_FILES"; then
33024 _ACEOF
33028 ac_delim='%!_!# '
33029 for ac_last_try in false false false false false :; do
33030 cat >conf$$subs.sed <<_ACEOF
33031 SHELL!$SHELL$ac_delim
33032 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33033 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33034 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33035 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33036 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33037 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33038 exec_prefix!$exec_prefix$ac_delim
33039 prefix!$prefix$ac_delim
33040 program_transform_name!$program_transform_name$ac_delim
33041 bindir!$bindir$ac_delim
33042 sbindir!$sbindir$ac_delim
33043 libexecdir!$libexecdir$ac_delim
33044 datarootdir!$datarootdir$ac_delim
33045 datadir!$datadir$ac_delim
33046 sysconfdir!$sysconfdir$ac_delim
33047 sharedstatedir!$sharedstatedir$ac_delim
33048 localstatedir!$localstatedir$ac_delim
33049 includedir!$includedir$ac_delim
33050 oldincludedir!$oldincludedir$ac_delim
33051 docdir!$docdir$ac_delim
33052 infodir!$infodir$ac_delim
33053 htmldir!$htmldir$ac_delim
33054 dvidir!$dvidir$ac_delim
33055 pdfdir!$pdfdir$ac_delim
33056 psdir!$psdir$ac_delim
33057 libdir!$libdir$ac_delim
33058 localedir!$localedir$ac_delim
33059 mandir!$mandir$ac_delim
33060 DEFS!$DEFS$ac_delim
33061 ECHO_C!$ECHO_C$ac_delim
33062 ECHO_N!$ECHO_N$ac_delim
33063 ECHO_T!$ECHO_T$ac_delim
33064 LIBS!$LIBS$ac_delim
33065 build_alias!$build_alias$ac_delim
33066 host_alias!$host_alias$ac_delim
33067 target_alias!$target_alias$ac_delim
33068 build!$build$ac_delim
33069 build_cpu!$build_cpu$ac_delim
33070 build_vendor!$build_vendor$ac_delim
33071 build_os!$build_os$ac_delim
33072 host!$host$ac_delim
33073 host_cpu!$host_cpu$ac_delim
33074 host_vendor!$host_vendor$ac_delim
33075 host_os!$host_os$ac_delim
33076 CC!$CC$ac_delim
33077 CFLAGS!$CFLAGS$ac_delim
33078 LDFLAGS!$LDFLAGS$ac_delim
33079 CPPFLAGS!$CPPFLAGS$ac_delim
33080 ac_ct_CC!$ac_ct_CC$ac_delim
33081 EXEEXT!$EXEEXT$ac_delim
33082 OBJEXT!$OBJEXT$ac_delim
33083 CPP!$CPP$ac_delim
33084 GREP!$GREP$ac_delim
33085 EGREP!$EGREP$ac_delim
33086 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
33087 BUILD_CPU!$BUILD_CPU$ac_delim
33088 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
33089 BUILD_OS!$BUILD_OS$ac_delim
33090 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
33091 HOST_CPU!$HOST_CPU$ac_delim
33092 HOST_VENDOR!$HOST_VENDOR$ac_delim
33093 HOST_OS!$HOST_OS$ac_delim
33094 OSARCH!$OSARCH$ac_delim
33095 UNAME!$UNAME$ac_delim
33096 PBX_OSREV!$PBX_OSREV$ac_delim
33097 CXX!$CXX$ac_delim
33098 LD!$LD$ac_delim
33099 RANLIB!$RANLIB$ac_delim
33100 CXXFLAGS!$CXXFLAGS$ac_delim
33101 ac_ct_CXX!$ac_ct_CXX$ac_delim
33102 CXXCPP!$CXXCPP$ac_delim
33103 SED!$SED$ac_delim
33104 AWK!$AWK$ac_delim
33105 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33106 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33107 INSTALL_DATA!$INSTALL_DATA$ac_delim
33108 LN_S!$LN_S$ac_delim
33109 GNU_MAKE!$GNU_MAKE$ac_delim
33110 STRIP!$STRIP$ac_delim
33111 AR!$AR$ac_delim
33112 GNU_LD!$GNU_LD$ac_delim
33113 FIND!$FIND$ac_delim
33114 COMPRESS!$COMPRESS$ac_delim
33115 BASENAME!$BASENAME$ac_delim
33116 ID!$ID$ac_delim
33117 DIRNAME!$DIRNAME$ac_delim
33118 LN!$LN$ac_delim
33119 DOT!$DOT$ac_delim
33120 WGET!$WGET$ac_delim
33121 FETCH!$FETCH$ac_delim
33122 DOWNLOAD!$DOWNLOAD$ac_delim
33123 acx_pthread_config!$acx_pthread_config$ac_delim
33124 PTHREAD_CC!$PTHREAD_CC$ac_delim
33125 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
33126 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
33127 AST_DEVMODE!$AST_DEVMODE$ac_delim
33128 _ACEOF
33130 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33131 break
33132 elif $ac_last_try; then
33133 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33135 { (exit 1); exit 1; }; }
33136 else
33137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33139 done
33141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33142 if test -n "$ac_eof"; then
33143 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33144 ac_eof=`expr $ac_eof + 1`
33147 cat >>$CONFIG_STATUS <<_ACEOF
33148 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33150 _ACEOF
33151 sed '
33152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33153 s/^/s,@/; s/!/@,|#_!!_#|/
33156 s/'"$ac_delim"'$/,g/; t
33157 s/$/\\/; p
33158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33159 ' >>$CONFIG_STATUS <conf$$subs.sed
33160 rm -f conf$$subs.sed
33161 cat >>$CONFIG_STATUS <<_ACEOF
33162 CEOF$ac_eof
33163 _ACEOF
33166 ac_delim='%!_!# '
33167 for ac_last_try in false false false false false :; do
33168 cat >conf$$subs.sed <<_ACEOF
33169 ALSA_LIB!$ALSA_LIB$ac_delim
33170 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
33171 ALSA_DIR!$ALSA_DIR$ac_delim
33172 PBX_ALSA!$PBX_ALSA$ac_delim
33173 CURL_LIB!$CURL_LIB$ac_delim
33174 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
33175 CURL_DIR!$CURL_DIR$ac_delim
33176 PBX_CURL!$PBX_CURL$ac_delim
33177 CURSES_LIB!$CURSES_LIB$ac_delim
33178 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
33179 CURSES_DIR!$CURSES_DIR$ac_delim
33180 PBX_CURSES!$PBX_CURSES$ac_delim
33181 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
33182 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
33183 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
33184 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
33185 GSM_LIB!$GSM_LIB$ac_delim
33186 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
33187 GSM_DIR!$GSM_DIR$ac_delim
33188 PBX_GSM!$PBX_GSM$ac_delim
33189 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
33190 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
33191 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
33192 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
33193 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
33194 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
33195 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
33196 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
33197 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
33198 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
33199 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
33200 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
33201 KDE_LIB!$KDE_LIB$ac_delim
33202 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
33203 KDE_DIR!$KDE_DIR$ac_delim
33204 PBX_KDE!$PBX_KDE$ac_delim
33205 LTDL_LIB!$LTDL_LIB$ac_delim
33206 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
33207 LTDL_DIR!$LTDL_DIR$ac_delim
33208 PBX_LTDL!$PBX_LTDL$ac_delim
33209 MISDN_LIB!$MISDN_LIB$ac_delim
33210 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
33211 MISDN_DIR!$MISDN_DIR$ac_delim
33212 PBX_MISDN!$PBX_MISDN$ac_delim
33213 NBS_LIB!$NBS_LIB$ac_delim
33214 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
33215 NBS_DIR!$NBS_DIR$ac_delim
33216 PBX_NBS!$PBX_NBS$ac_delim
33217 NCURSES_LIB!$NCURSES_LIB$ac_delim
33218 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
33219 NCURSES_DIR!$NCURSES_DIR$ac_delim
33220 PBX_NCURSES!$PBX_NCURSES$ac_delim
33221 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
33222 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
33223 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
33224 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
33225 NEWT_LIB!$NEWT_LIB$ac_delim
33226 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
33227 NEWT_DIR!$NEWT_DIR$ac_delim
33228 PBX_NEWT!$PBX_NEWT$ac_delim
33229 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
33230 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
33231 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
33232 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
33233 OGG_LIB!$OGG_LIB$ac_delim
33234 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
33235 OGG_DIR!$OGG_DIR$ac_delim
33236 PBX_OGG!$PBX_OGG$ac_delim
33237 OSPTK_LIB!$OSPTK_LIB$ac_delim
33238 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
33239 OSPTK_DIR!$OSPTK_DIR$ac_delim
33240 PBX_OSPTK!$PBX_OSPTK$ac_delim
33241 OSS_LIB!$OSS_LIB$ac_delim
33242 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
33243 OSS_DIR!$OSS_DIR$ac_delim
33244 PBX_OSS!$PBX_OSS$ac_delim
33245 POPT_LIB!$POPT_LIB$ac_delim
33246 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
33247 POPT_DIR!$POPT_DIR$ac_delim
33248 PBX_POPT!$PBX_POPT$ac_delim
33249 PGSQL_LIB!$PGSQL_LIB$ac_delim
33250 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
33251 PGSQL_DIR!$PGSQL_DIR$ac_delim
33252 PBX_PGSQL!$PBX_PGSQL$ac_delim
33253 PRI_LIB!$PRI_LIB$ac_delim
33254 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
33255 PRI_DIR!$PRI_DIR$ac_delim
33256 PBX_PRI!$PBX_PRI$ac_delim
33257 PWLIB_LIB!$PWLIB_LIB$ac_delim
33258 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
33259 PWLIB_DIR!$PWLIB_DIR$ac_delim
33260 PBX_PWLIB!$PBX_PWLIB$ac_delim
33261 OPENH323_LIB!$OPENH323_LIB$ac_delim
33262 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
33263 OPENH323_DIR!$OPENH323_DIR$ac_delim
33264 PBX_OPENH323!$PBX_OPENH323$ac_delim
33265 QT_LIB!$QT_LIB$ac_delim
33266 _ACEOF
33268 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33269 break
33270 elif $ac_last_try; then
33271 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33272 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33273 { (exit 1); exit 1; }; }
33274 else
33275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33277 done
33279 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33280 if test -n "$ac_eof"; then
33281 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33282 ac_eof=`expr $ac_eof + 1`
33285 cat >>$CONFIG_STATUS <<_ACEOF
33286 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33288 _ACEOF
33289 sed '
33290 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33291 s/^/s,@/; s/!/@,|#_!!_#|/
33294 s/'"$ac_delim"'$/,g/; t
33295 s/$/\\/; p
33296 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33297 ' >>$CONFIG_STATUS <conf$$subs.sed
33298 rm -f conf$$subs.sed
33299 cat >>$CONFIG_STATUS <<_ACEOF
33300 CEOF$ac_eof
33301 _ACEOF
33304 ac_delim='%!_!# '
33305 for ac_last_try in false false false false false :; do
33306 cat >conf$$subs.sed <<_ACEOF
33307 QT_INCLUDE!$QT_INCLUDE$ac_delim
33308 QT_DIR!$QT_DIR$ac_delim
33309 PBX_QT!$PBX_QT$ac_delim
33310 RADIUS_LIB!$RADIUS_LIB$ac_delim
33311 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
33312 RADIUS_DIR!$RADIUS_DIR$ac_delim
33313 PBX_RADIUS!$PBX_RADIUS$ac_delim
33314 SPEEX_LIB!$SPEEX_LIB$ac_delim
33315 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
33316 SPEEX_DIR!$SPEEX_DIR$ac_delim
33317 PBX_SPEEX!$PBX_SPEEX$ac_delim
33318 SQLITE_LIB!$SQLITE_LIB$ac_delim
33319 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
33320 SQLITE_DIR!$SQLITE_DIR$ac_delim
33321 PBX_SQLITE!$PBX_SQLITE$ac_delim
33322 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
33323 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
33324 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
33325 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
33326 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
33327 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
33328 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
33329 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
33330 FREETDS_LIB!$FREETDS_LIB$ac_delim
33331 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
33332 FREETDS_DIR!$FREETDS_DIR$ac_delim
33333 PBX_FREETDS!$PBX_FREETDS$ac_delim
33334 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
33335 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
33336 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
33337 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
33338 TINFO_LIB!$TINFO_LIB$ac_delim
33339 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
33340 TINFO_DIR!$TINFO_DIR$ac_delim
33341 PBX_TINFO!$PBX_TINFO$ac_delim
33342 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
33343 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
33344 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
33345 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
33346 VORBIS_LIB!$VORBIS_LIB$ac_delim
33347 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
33348 VORBIS_DIR!$VORBIS_DIR$ac_delim
33349 PBX_VORBIS!$PBX_VORBIS$ac_delim
33350 VPB_LIB!$VPB_LIB$ac_delim
33351 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
33352 VPB_DIR!$VPB_DIR$ac_delim
33353 PBX_VPB!$PBX_VPB$ac_delim
33354 ZLIB_LIB!$ZLIB_LIB$ac_delim
33355 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
33356 ZLIB_DIR!$ZLIB_DIR$ac_delim
33357 PBX_ZLIB!$PBX_ZLIB$ac_delim
33358 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
33359 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
33360 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
33361 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
33362 ALLOCA!$ALLOCA$ac_delim
33363 LIBOBJS!$LIBOBJS$ac_delim
33364 POW_LIB!$POW_LIB$ac_delim
33365 GC_CFLAGS!$GC_CFLAGS$ac_delim
33366 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
33367 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
33368 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
33369 KDEINIT!$KDEINIT$ac_delim
33370 KDEDIR!$KDEDIR$ac_delim
33371 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
33372 PG_CONFIG!$PG_CONFIG$ac_delim
33373 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
33374 PWLIBDIR!$PWLIBDIR$ac_delim
33375 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
33376 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
33377 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
33378 OPENH323DIR!$OPENH323DIR$ac_delim
33379 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
33380 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
33381 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
33382 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
33383 QTMOC!$QTMOC$ac_delim
33384 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
33385 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
33386 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
33387 PBX_H323!$PBX_H323$ac_delim
33388 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
33389 GTKCONFIG!$GTKCONFIG$ac_delim
33390 PBX_GTK!$PBX_GTK$ac_delim
33391 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
33392 GTK_LIB!$GTK_LIB$ac_delim
33393 PKGCONFIG!$PKGCONFIG$ac_delim
33394 PBX_GTK2!$PBX_GTK2$ac_delim
33395 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
33396 GTK2_LIB!$GTK2_LIB$ac_delim
33397 CURL_CONFIG!$CURL_CONFIG$ac_delim
33398 LTLIBOBJS!$LTLIBOBJS$ac_delim
33399 _ACEOF
33401 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
33402 break
33403 elif $ac_last_try; then
33404 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33405 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33406 { (exit 1); exit 1; }; }
33407 else
33408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33410 done
33412 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33413 if test -n "$ac_eof"; then
33414 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33415 ac_eof=`expr $ac_eof + 1`
33418 cat >>$CONFIG_STATUS <<_ACEOF
33419 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33421 _ACEOF
33422 sed '
33423 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33424 s/^/s,@/; s/!/@,|#_!!_#|/
33427 s/'"$ac_delim"'$/,g/; t
33428 s/$/\\/; p
33429 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33430 ' >>$CONFIG_STATUS <conf$$subs.sed
33431 rm -f conf$$subs.sed
33432 cat >>$CONFIG_STATUS <<_ACEOF
33433 :end
33434 s/|#_!!_#|//g
33435 CEOF$ac_eof
33436 _ACEOF
33439 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33440 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33441 # trailing colons and then remove the whole line if VPATH becomes empty
33442 # (actually we leave an empty line to preserve line numbers).
33443 if test "x$srcdir" = x.; then
33444 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33445 s/:*\$(srcdir):*/:/
33446 s/:*\${srcdir}:*/:/
33447 s/:*@srcdir@:*/:/
33448 s/^\([^=]*=[ ]*\):*/\1/
33449 s/:*$//
33450 s/^[^=]*=[ ]*$//
33454 cat >>$CONFIG_STATUS <<\_ACEOF
33455 fi # test -n "$CONFIG_FILES"
33458 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
33460 case $ac_tag in
33461 :[FHLC]) ac_mode=$ac_tag; continue;;
33462 esac
33463 case $ac_mode$ac_tag in
33464 :[FHL]*:*);;
33465 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33466 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33467 { (exit 1); exit 1; }; };;
33468 :[FH]-) ac_tag=-:-;;
33469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33470 esac
33471 ac_save_IFS=$IFS
33472 IFS=:
33473 set x $ac_tag
33474 IFS=$ac_save_IFS
33475 shift
33476 ac_file=$1
33477 shift
33479 case $ac_mode in
33480 :L) ac_source=$1;;
33481 :[FH])
33482 ac_file_inputs=
33483 for ac_f
33485 case $ac_f in
33486 -) ac_f="$tmp/stdin";;
33487 *) # Look for the file first in the build tree, then in the source tree
33488 # (if the path is not absolute). The absolute path cannot be DOS-style,
33489 # because $ac_f cannot contain `:'.
33490 test -f "$ac_f" ||
33491 case $ac_f in
33492 [\\/$]*) false;;
33493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33494 esac ||
33495 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33496 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33497 { (exit 1); exit 1; }; };;
33498 esac
33499 ac_file_inputs="$ac_file_inputs $ac_f"
33500 done
33502 # Let's still pretend it is `configure' which instantiates (i.e., don't
33503 # use $as_me), people would be surprised to read:
33504 # /* config.h. Generated by config.status. */
33505 configure_input="Generated from "`IFS=:
33506 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33507 if test x"$ac_file" != x-; then
33508 configure_input="$ac_file. $configure_input"
33509 { echo "$as_me:$LINENO: creating $ac_file" >&5
33510 echo "$as_me: creating $ac_file" >&6;}
33513 case $ac_tag in
33514 *:-:* | *:-) cat >"$tmp/stdin";;
33515 esac
33517 esac
33519 ac_dir=`$as_dirname -- "$ac_file" ||
33520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33521 X"$ac_file" : 'X\(//\)[^/]' \| \
33522 X"$ac_file" : 'X\(//\)$' \| \
33523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33524 echo X"$ac_file" |
33525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33526 s//\1/
33529 /^X\(\/\/\)[^/].*/{
33530 s//\1/
33533 /^X\(\/\/\)$/{
33534 s//\1/
33537 /^X\(\/\).*/{
33538 s//\1/
33541 s/.*/./; q'`
33542 { as_dir="$ac_dir"
33543 case $as_dir in #(
33544 -*) as_dir=./$as_dir;;
33545 esac
33546 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33547 as_dirs=
33548 while :; do
33549 case $as_dir in #(
33550 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33551 *) as_qdir=$as_dir;;
33552 esac
33553 as_dirs="'$as_qdir' $as_dirs"
33554 as_dir=`$as_dirname -- "$as_dir" ||
33555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33556 X"$as_dir" : 'X\(//\)[^/]' \| \
33557 X"$as_dir" : 'X\(//\)$' \| \
33558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33559 echo X"$as_dir" |
33560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33561 s//\1/
33564 /^X\(\/\/\)[^/].*/{
33565 s//\1/
33568 /^X\(\/\/\)$/{
33569 s//\1/
33572 /^X\(\/\).*/{
33573 s//\1/
33576 s/.*/./; q'`
33577 test -d "$as_dir" && break
33578 done
33579 test -z "$as_dirs" || eval "mkdir $as_dirs"
33580 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33581 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33582 { (exit 1); exit 1; }; }; }
33583 ac_builddir=.
33585 case "$ac_dir" in
33586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33589 # A ".." for each directory in $ac_dir_suffix.
33590 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33591 case $ac_top_builddir_sub in
33592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33594 esac ;;
33595 esac
33596 ac_abs_top_builddir=$ac_pwd
33597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33598 # for backward compatibility:
33599 ac_top_builddir=$ac_top_build_prefix
33601 case $srcdir in
33602 .) # We are building in place.
33603 ac_srcdir=.
33604 ac_top_srcdir=$ac_top_builddir_sub
33605 ac_abs_top_srcdir=$ac_pwd ;;
33606 [\\/]* | ?:[\\/]* ) # Absolute name.
33607 ac_srcdir=$srcdir$ac_dir_suffix;
33608 ac_top_srcdir=$srcdir
33609 ac_abs_top_srcdir=$srcdir ;;
33610 *) # Relative name.
33611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33612 ac_top_srcdir=$ac_top_build_prefix$srcdir
33613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33614 esac
33615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33618 case $ac_mode in
33621 # CONFIG_FILE
33624 case $INSTALL in
33625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33627 esac
33628 _ACEOF
33630 cat >>$CONFIG_STATUS <<\_ACEOF
33631 # If the template does not know about datarootdir, expand it.
33632 # FIXME: This hack should be removed a few years after 2.60.
33633 ac_datarootdir_hack=; ac_datarootdir_seen=
33635 case `sed -n '/datarootdir/ {
33639 /@datadir@/p
33640 /@docdir@/p
33641 /@infodir@/p
33642 /@localedir@/p
33643 /@mandir@/p
33644 ' $ac_file_inputs` in
33645 *datarootdir*) ac_datarootdir_seen=yes;;
33646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33647 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33648 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33649 _ACEOF
33650 cat >>$CONFIG_STATUS <<_ACEOF
33651 ac_datarootdir_hack='
33652 s&@datadir@&$datadir&g
33653 s&@docdir@&$docdir&g
33654 s&@infodir@&$infodir&g
33655 s&@localedir@&$localedir&g
33656 s&@mandir@&$mandir&g
33657 s&\\\${datarootdir}&$datarootdir&g' ;;
33658 esac
33659 _ACEOF
33661 # Neutralize VPATH when `$srcdir' = `.'.
33662 # Shell code in configure.ac might set extrasub.
33663 # FIXME: do we really want to maintain this feature?
33664 cat >>$CONFIG_STATUS <<_ACEOF
33665 sed "$ac_vpsub
33666 $extrasub
33667 _ACEOF
33668 cat >>$CONFIG_STATUS <<\_ACEOF
33670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33671 s&@configure_input@&$configure_input&;t t
33672 s&@top_builddir@&$ac_top_builddir_sub&;t t
33673 s&@srcdir@&$ac_srcdir&;t t
33674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33675 s&@top_srcdir@&$ac_top_srcdir&;t t
33676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33677 s&@builddir@&$ac_builddir&;t t
33678 s&@abs_builddir@&$ac_abs_builddir&;t t
33679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33680 s&@INSTALL@&$ac_INSTALL&;t t
33681 $ac_datarootdir_hack
33682 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
33684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33685 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33687 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33688 which seems to be undefined. Please make sure it is defined." >&5
33689 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33690 which seems to be undefined. Please make sure it is defined." >&2;}
33692 rm -f "$tmp/stdin"
33693 case $ac_file in
33694 -) cat "$tmp/out"; rm -f "$tmp/out";;
33695 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33696 esac
33700 # CONFIG_HEADER
33702 _ACEOF
33704 # Transform confdefs.h into a sed script `conftest.defines', that
33705 # substitutes the proper values into config.h.in to produce config.h.
33706 rm -f conftest.defines conftest.tail
33707 # First, append a space to every undef/define line, to ease matching.
33708 echo 's/$/ /' >conftest.defines
33709 # Then, protect against being on the right side of a sed subst, or in
33710 # an unquoted here document, in config.status. If some macros were
33711 # called several times there might be several #defines for the same
33712 # symbol, which is useless. But do not sort them, since the last
33713 # AC_DEFINE must be honored.
33714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33715 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33716 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33717 # PARAMS is the parameter list in the macro definition--in most cases, it's
33718 # just an empty string.
33719 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33720 ac_dB='\\)[ (].*,\\1define\\2'
33721 ac_dC=' '
33722 ac_dD=' ,'
33724 uniq confdefs.h |
33725 sed -n '
33726 t rset
33727 :rset
33728 s/^[ ]*#[ ]*define[ ][ ]*//
33729 t ok
33732 s/[\\&,]/\\&/g
33733 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33734 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33735 ' >>conftest.defines
33737 # Remove the space that was appended to ease matching.
33738 # Then replace #undef with comments. This is necessary, for
33739 # example, in the case of _POSIX_SOURCE, which is predefined and required
33740 # on some systems where configure will not decide to define it.
33741 # (The regexp can be short, since the line contains either #define or #undef.)
33742 echo 's/ $//
33743 s,^[ #]*u.*,/* & */,' >>conftest.defines
33745 # Break up conftest.defines:
33746 ac_max_sed_lines=50
33748 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33749 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33750 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33751 # et cetera.
33752 ac_in='$ac_file_inputs'
33753 ac_out='"$tmp/out1"'
33754 ac_nxt='"$tmp/out2"'
33756 while :
33758 # Write a here document:
33759 cat >>$CONFIG_STATUS <<_ACEOF
33760 # First, check the format of the line:
33761 cat >"\$tmp/defines.sed" <<\\CEOF
33762 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33763 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33765 :def
33766 _ACEOF
33767 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33768 echo 'CEOF
33769 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33770 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33771 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33772 grep . conftest.tail >/dev/null || break
33773 rm -f conftest.defines
33774 mv conftest.tail conftest.defines
33775 done
33776 rm -f conftest.defines conftest.tail
33778 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33779 cat >>$CONFIG_STATUS <<\_ACEOF
33780 if test x"$ac_file" != x-; then
33781 echo "/* $configure_input */" >"$tmp/config.h"
33782 cat "$ac_result" >>"$tmp/config.h"
33783 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33784 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33785 echo "$as_me: $ac_file is unchanged" >&6;}
33786 else
33787 rm -f $ac_file
33788 mv "$tmp/config.h" $ac_file
33790 else
33791 echo "/* $configure_input */"
33792 cat "$ac_result"
33794 rm -f "$tmp/out12"
33798 esac
33800 done # for ac_tag
33803 { (exit 0); exit 0; }
33804 _ACEOF
33805 chmod +x $CONFIG_STATUS
33806 ac_clean_files=$ac_clean_files_save
33809 # configure is writing to config.log, and then calls config.status.
33810 # config.status does its own redirection, appending to config.log.
33811 # Unfortunately, on DOS this fails, as config.log is still kept open
33812 # by configure, so config.status won't be able to write to it; its
33813 # output is simply discarded. So we exec the FD to /dev/null,
33814 # effectively closing config.log, so it can be properly (re)opened and
33815 # appended to by config.status. When coming back to configure, we
33816 # need to make the FD available again.
33817 if test "$no_create" != yes; then
33818 ac_cs_success=:
33819 ac_config_status_args=
33820 test "$silent" = yes &&
33821 ac_config_status_args="$ac_config_status_args --quiet"
33822 exec 5>/dev/null
33823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33824 exec 5>>config.log
33825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33826 # would make configure fail if this is the last instruction.
33827 $ac_cs_success || { (exit 1); exit 1; }
33831 if test "x${silent}" != "xyes" ; then
33832 echo
33833 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
33834 echo " .\$7\$7.. .7\$\$7:. "
33835 echo " .\$\$:. ,\$7.7 "
33836 echo " .\$7. 7\$\$\$\$ .\$\$77 "
33837 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
33838 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
33839 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
33840 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
33841 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
33842 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
33843 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
33844 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
33845 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
33846 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
33847 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
33848 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
33849 echo " \$\$\$\$\$ \$\$\$ "
33850 echo " \$\$\$\$7. \$\$ (TM) "
33851 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
33852 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
33853 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
33854 echo
33857 { echo "$as_me:$LINENO: Package configured for: " >&5
33858 echo "$as_me: Package configured for: " >&6;}
33859 { echo "$as_me:$LINENO: OS type : $host_os" >&5
33860 echo "$as_me: OS type : $host_os" >&6;}
33861 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
33862 echo "$as_me: Host CPU : $host_cpu" >&6;}
33863 if test "${cross_compiling}" = "yes"; then
33864 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
33865 echo "$as_me: Cross Compilation = YES" >&6;}