Add PlayTone
[pwlib.git] / configure
blobe67c53eb68d2d1b31d978ee13ca6b222e34192ac
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="include/ptlib.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 subdirs
655 CXXFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CXX
659 EXEEXT
660 OBJEXT
661 PWLIBDIR
662 PWINSTDIR
663 INSTALLPREFIX
664 LIBDIR
665 MAJOR_VERSION
666 MINOR_VERSION
667 BUILD_NUMBER
668 PWLIB_VERSION
669 build
670 build_cpu
671 build_vendor
672 build_os
673 host
674 host_cpu
675 host_vendor
676 host_os
677 target
678 target_cpu
679 target_vendor
680 target_os
681 MACHTYPE
682 OSTYPE
683 OSRELEASE
684 TARGETDIR
685 USE_GCC
686 USE_PCH
687 SHAREDLIBEXT
688 CXXCPP
689 GREP
690 EGREP
691 FLEX
693 BISON
694 HAS_REGEX
695 HAS_PLUGINS
696 HAS_RESOLVER
697 HAS_SASL
698 HAS_SASL2
699 HAS_OPENLDAP
700 HAS_OPENSSL
701 P_STATIC_ENDLDLIBS
702 P_STATIC_LDFLAGS
703 HAS_EXPAT
704 HAS_VXML
705 HAS_JABBER
706 HAS_XMLRPC
707 HAS_SOAP
708 HAS_TTS
709 HAS_IPV6
710 HAS_SDL
711 HAS_VIDEO
712 HAS_VIDEO_CAPTURE
713 USE_SHM_VIDEO_DEVICES
714 HAS_ASN
715 HAS_STUN
716 HAS_PIPECHAN
717 HAS_DTMF
718 HAS_WAVFILE
719 HAS_SOCKS
720 HAS_FTP
721 HAS_SNMP
722 HAS_TELNET
723 HAS_REMCONN
724 HAS_SERIAL
725 HAS_POP3SMTP
726 HAS_HTTP
727 HAS_HTTPSVC
728 HAS_CONFIG_FILE
729 HAS_SOCKAGG
730 HAS_VIDFILE
731 HAS_AUDIO
732 HAS_OSS
733 HAS_ALSA
734 HAS_ODBC
735 STDCCFLAGS
736 STDCXXFLAGS
737 OPTSTDCCFLAGS
738 ENDLDLIBS
739 DEBUG_FLAG
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 LIBOBJS
744 LTLIBOBJS'
745 ac_subst_files=''
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
750 CXXFLAGS
751 LDFLAGS
752 LIBS
753 CPPFLAGS
755 CXXCPP'
756 ac_subdirs_all='plugins'
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
804 ac_prev=
805 ac_dashdash=
806 for ac_option
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
815 case $ac_option in
816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *) ac_optarg=yes ;;
818 esac
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
824 ac_dashdash=yes ;;
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 ac_prev=bindir ;;
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 bindir=$ac_optarg ;;
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
843 --config-cache | -C)
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
847 ac_prev=datadir ;;
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863 { (exit 1); exit 1; }; }
864 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
865 eval enable_$ac_feature=no ;;
867 -docdir | --docdir | --docdi | --doc | --do)
868 ac_prev=docdir ;;
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 docdir=$ac_optarg ;;
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873 ac_prev=dvidir ;;
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 dvidir=$ac_optarg ;;
877 -enable-* | --enable-*)
878 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
881 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
882 { (exit 1); exit 1; }; }
883 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
884 eval enable_$ac_feature=\$ac_optarg ;;
886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888 | --exec | --exe | --ex)
889 ac_prev=exec_prefix ;;
890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892 | --exec=* | --exe=* | --ex=*)
893 exec_prefix=$ac_optarg ;;
895 -gas | --gas | --ga | --g)
896 # Obsolete; use --with-gas.
897 with_gas=yes ;;
899 -help | --help | --hel | --he | -h)
900 ac_init_help=long ;;
901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902 ac_init_help=recursive ;;
903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904 ac_init_help=short ;;
906 -host | --host | --hos | --ho)
907 ac_prev=host_alias ;;
908 -host=* | --host=* | --hos=* | --ho=*)
909 host_alias=$ac_optarg ;;
911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 ac_prev=htmldir ;;
913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 | --ht=*)
915 htmldir=$ac_optarg ;;
917 -includedir | --includedir | --includedi | --included | --include \
918 | --includ | --inclu | --incl | --inc)
919 ac_prev=includedir ;;
920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921 | --includ=* | --inclu=* | --incl=* | --inc=*)
922 includedir=$ac_optarg ;;
924 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 ac_prev=infodir ;;
926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927 infodir=$ac_optarg ;;
929 -libdir | --libdir | --libdi | --libd)
930 ac_prev=libdir ;;
931 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 libdir=$ac_optarg ;;
934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935 | --libexe | --libex | --libe)
936 ac_prev=libexecdir ;;
937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938 | --libexe=* | --libex=* | --libe=*)
939 libexecdir=$ac_optarg ;;
941 -localedir | --localedir | --localedi | --localed | --locale)
942 ac_prev=localedir ;;
943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944 localedir=$ac_optarg ;;
946 -localstatedir | --localstatedir | --localstatedi | --localstated \
947 | --localstate | --localstat | --localsta | --localst | --locals)
948 ac_prev=localstatedir ;;
949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951 localstatedir=$ac_optarg ;;
953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 ac_prev=mandir ;;
955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 mandir=$ac_optarg ;;
958 -nfp | --nfp | --nf)
959 # Obsolete; use --without-fp.
960 with_fp=no ;;
962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963 | --no-cr | --no-c | -n)
964 no_create=yes ;;
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 no_recursion=yes ;;
970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972 | --oldin | --oldi | --old | --ol | --o)
973 ac_prev=oldincludedir ;;
974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977 oldincludedir=$ac_optarg ;;
979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 ac_prev=prefix ;;
981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 prefix=$ac_optarg ;;
984 -program-prefix | --program-prefix | --program-prefi | --program-pref \
985 | --program-pre | --program-pr | --program-p)
986 ac_prev=program_prefix ;;
987 -program-prefix=* | --program-prefix=* | --program-prefi=* \
988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989 program_prefix=$ac_optarg ;;
991 -program-suffix | --program-suffix | --program-suffi | --program-suff \
992 | --program-suf | --program-su | --program-s)
993 ac_prev=program_suffix ;;
994 -program-suffix=* | --program-suffix=* | --program-suffi=* \
995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996 program_suffix=$ac_optarg ;;
998 -program-transform-name | --program-transform-name \
999 | --program-transform-nam | --program-transform-na \
1000 | --program-transform-n | --program-transform- \
1001 | --program-transform | --program-transfor \
1002 | --program-transfo | --program-transf \
1003 | --program-trans | --program-tran \
1004 | --progr-tra | --program-tr | --program-t)
1005 ac_prev=program_transform_name ;;
1006 -program-transform-name=* | --program-transform-name=* \
1007 | --program-transform-nam=* | --program-transform-na=* \
1008 | --program-transform-n=* | --program-transform-=* \
1009 | --program-transform=* | --program-transfor=* \
1010 | --program-transfo=* | --program-transf=* \
1011 | --program-trans=* | --program-tran=* \
1012 | --progr-tra=* | --program-tr=* | --program-t=*)
1013 program_transform_name=$ac_optarg ;;
1015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 ac_prev=pdfdir ;;
1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018 pdfdir=$ac_optarg ;;
1020 -psdir | --psdir | --psdi | --psd | --ps)
1021 ac_prev=psdir ;;
1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 psdir=$ac_optarg ;;
1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1027 silent=yes ;;
1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 ac_prev=sbindir ;;
1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 | --sbi=* | --sb=*)
1033 sbindir=$ac_optarg ;;
1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037 | --sharedst | --shareds | --shared | --share | --shar \
1038 | --sha | --sh)
1039 ac_prev=sharedstatedir ;;
1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 | --sha=* | --sh=*)
1044 sharedstatedir=$ac_optarg ;;
1046 -site | --site | --sit)
1047 ac_prev=site ;;
1048 -site=* | --site=* | --sit=*)
1049 site=$ac_optarg ;;
1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 ac_prev=srcdir ;;
1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054 srcdir=$ac_optarg ;;
1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057 | --syscon | --sysco | --sysc | --sys | --sy)
1058 ac_prev=sysconfdir ;;
1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061 sysconfdir=$ac_optarg ;;
1063 -target | --target | --targe | --targ | --tar | --ta | --t)
1064 ac_prev=target_alias ;;
1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066 target_alias=$ac_optarg ;;
1068 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 verbose=yes ;;
1071 -version | --version | --versio | --versi | --vers | -V)
1072 ac_init_version=: ;;
1074 -with-* | --with-*)
1075 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=\$ac_optarg ;;
1083 -without-* | --without-*)
1084 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid package name: $ac_package" >&2
1088 { (exit 1); exit 1; }; }
1089 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1090 eval with_$ac_package=no ;;
1092 --x)
1093 # Obsolete; use --with-x.
1094 with_x=yes ;;
1096 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1097 | --x-incl | --x-inc | --x-in | --x-i)
1098 ac_prev=x_includes ;;
1099 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1100 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1101 x_includes=$ac_optarg ;;
1103 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1104 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1105 ac_prev=x_libraries ;;
1106 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1107 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1108 x_libraries=$ac_optarg ;;
1110 -*) { echo "$as_me: error: unrecognized option: $ac_option
1111 Try \`$0 --help' for more information." >&2
1112 { (exit 1); exit 1; }; }
1115 *=*)
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1120 { (exit 1); exit 1; }; }
1121 eval $ac_envvar=\$ac_optarg
1122 export $ac_envvar ;;
1125 # FIXME: should be removed in autoconf 3.0.
1126 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1127 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1128 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1129 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 esac
1133 done
1135 if test -n "$ac_prev"; then
1136 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1137 { echo "$as_me: error: missing argument to $ac_option" >&2
1138 { (exit 1); exit 1; }; }
1141 # Be sure to have absolute directory names.
1142 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1147 eval ac_val=\$$ac_var
1148 case $ac_val in
1149 [\\/$]* | ?:[\\/]* ) continue;;
1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151 esac
1152 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1153 { (exit 1); exit 1; }; }
1154 done
1156 # There might be people who depend on the old broken behavior: `$host'
1157 # used to hold the argument of --host etc.
1158 # FIXME: To remove some day.
1159 build=$build_alias
1160 host=$host_alias
1161 target=$target_alias
1163 # FIXME: To remove some day.
1164 if test "x$host_alias" != x; then
1165 if test "x$build_alias" = x; then
1166 cross_compiling=maybe
1167 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1168 If a cross compiler is detected then cross compile mode will be used." >&2
1169 elif test "x$build_alias" != "x$host_alias"; then
1170 cross_compiling=yes
1174 ac_tool_prefix=
1175 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177 test "$silent" = yes && exec 6>/dev/null
1180 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1181 ac_ls_di=`ls -di .` &&
1182 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1183 { echo "$as_me: error: Working directory cannot be determined" >&2
1184 { (exit 1); exit 1; }; }
1185 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 { echo "$as_me: error: pwd does not report name of working directory" >&2
1187 { (exit 1); exit 1; }; }
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$0" ||
1195 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$0" : 'X\(//\)[^/]' \| \
1197 X"$0" : 'X\(//\)$' \| \
1198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1199 echo X"$0" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1208 /^X\(\/\/\)$/{
1209 s//\1/
1212 /^X\(\/\).*/{
1213 s//\1/
1216 s/.*/./; q'`
1217 srcdir=$ac_confdir
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 srcdir=..
1221 else
1222 ac_srcdir_defaulted=no
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1227 { (exit 1); exit 1; }; }
1229 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230 ac_abs_confdir=`(
1231 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1232 { (exit 1); exit 1; }; }
1233 pwd)`
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1241 case $srcdir in
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 esac
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249 done
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258 \`configure' configures this package to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1267 Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 [PREFIX]
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1311 _ACEOF
1313 cat <<\_ACEOF
1315 System types:
1316 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318 --target=TARGET configure for building compilers for TARGET [HOST]
1319 _ACEOF
1322 if test -n "$ac_init_help"; then
1324 cat <<\_ACEOF
1326 Optional Features:
1327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1329 --enable-pch disable precompiled headers
1330 --enable-minsize minimise the size of the lib by disabling least used options
1331 --enable-openh323 include only options needed with openh323
1332 --enable-opal include only options needed with opal
1333 --enable-internalregex force internal regex library
1334 --enable-plugins enable plugin support
1335 --disable-resolver disable DNS resolver support
1336 --disable-sasl disable SASL support
1337 --disable-openldap disable OpenLDAP support
1338 --disable-openssl disable OpenSSL support
1339 --disable-expat disable XML support
1340 --disable-vxml disable VXML support
1341 --disable-jabber disable Jabber support
1342 --disable-xmlrpc disable XMLRPC support
1343 --disable-soap disable SOAP support
1344 --disable-tts disable Text-ToSpeech support (default enabled)
1345 --disable-ipv6 disable IPV6 support
1346 --disable-qos disable QOS support
1347 --disable-sdl disable SDL support
1348 --disable-video disable video device support
1349 --enable-v4l enable V4L video support
1350 --enable-v4l2 enable V4L2 video support
1351 --enable-bsdvideo enable BSD video support
1352 --enable-avc enable IEEE1394/AVC video support
1353 --enable-dc enable IEEE1394/DC video support
1354 --enable-shmvideo enable shared memory video devices
1355 --disable-asn disable ASN decoding/encoding support
1356 --disable-stun disable STUN protocol support
1357 --disable-pipechan disable pipechannel support
1358 --disable-dtmf disable DTMF protocol support
1359 --disable-wavfile disable WAVFILE support
1360 --disable-socks disable SOCKS protocol support
1361 --disable-ftp disable FTP support
1362 --disable-snmp disable SNMP protocol support
1363 --disable-telnet disable Telnet protocol support
1364 --disable-remconn disable remote connection support
1365 --disable-serial disable serial port support
1366 --disable-pop3smtp disable POP3/SMTP support
1367 --disable-http disable HTTP support
1368 --disable-httpsvc disable HTTP service support
1369 --disable-configfile disable config file support
1370 --enable-sockagg enable socket aggregation (experimental)
1371 --enable-vidfile enable video file support
1372 --disable-audio disable audio support
1373 --enable-alsa enable ALSA audio support
1374 --enable-oss enable OSS audio support
1375 --enable-memcheck enable leak testing code (off by default)
1376 --disable-odbc disable ODBC support
1377 --exceptions enable C++ exceptions
1379 Some influential environment variables:
1380 CXX C++ compiler command
1381 CXXFLAGS C++ compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CXXCPP C++ preprocessor
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1392 _ACEOF
1393 ac_status=$?
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" || continue
1400 ac_builddir=.
1402 case "$ac_dir" in
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 esac ;;
1412 esac
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1418 case $srcdir in
1419 .) # We are building in place.
1420 ac_srcdir=.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1427 *) # Relative name.
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 esac
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1442 else
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 fi || ac_status=$?
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1446 done
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1451 cat <<\_ACEOF
1452 configure
1453 generated by GNU Autoconf 2.61
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by $as_me, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1469 $ $0 $@
1471 _ACEOF
1472 exec 5>>config.log
1474 cat <<_ASUNAME
1475 ## --------- ##
1476 ## Platform. ##
1477 ## --------- ##
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496 _ASUNAME
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 echo "PATH: $as_dir"
1504 done
1505 IFS=$as_save_IFS
1507 } >&5
1509 cat >&5 <<_ACEOF
1512 ## ----------- ##
1513 ## Core tests. ##
1514 ## ----------- ##
1516 _ACEOF
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1524 ac_configure_args=
1525 ac_configure_args0=
1526 ac_configure_args1=
1527 ac_must_keep_next=false
1528 for ac_pass in 1 2
1530 for ac_arg
1532 case $ac_arg in
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1536 continue ;;
1537 *\'*)
1538 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1539 esac
1540 case $ac_pass in
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1546 else
1547 case $ac_arg in
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 esac
1556 -* ) ac_must_keep_next=true ;;
1557 esac
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 esac
1562 done
1563 done
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1575 echo
1577 cat <<\_ASBOX
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1581 _ASBOX
1582 echo
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in #(
1588 *${as_nl}*)
1589 case $ac_var in #(
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 esac
1593 case $ac_var in #(
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1596 esac ;;
1597 esac
1598 done
1599 (set) 2>&1 |
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1602 sed -n \
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 ;; #(
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 esac |
1610 sort
1612 echo
1614 cat <<\_ASBOX
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1630 if test -n "$ac_subst_files"; then
1631 cat <<\_ASBOX
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_files
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1648 if test -s confdefs.h; then
1649 cat <<\_ASBOX
1650 ## ----------- ##
1651 ## confdefs.h. ##
1652 ## ----------- ##
1653 _ASBOX
1654 echo
1655 cat confdefs.h
1656 echo
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1661 } >&5
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 exit $exit_status
1666 for ac_signal in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 done
1669 ac_signal=0
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 _ACEOF
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x "$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707 else
1708 set x "$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1711 shift
1712 for ac_site_file
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1718 . "$ac_site_file"
1720 done
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1733 else
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1760 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1761 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1762 echo "$as_me: former value: $ac_old_val" >&2;}
1763 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1764 echo "$as_me: current value: $ac_new_val" >&2;}
1765 ac_cache_corrupted=:
1766 fi;;
1767 esac
1768 # Pass precious variables to config.status.
1769 if test "$ac_new_set" = set; then
1770 case $ac_new_val in
1771 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 *) ac_arg=$ac_var=$ac_new_val ;;
1773 esac
1774 case " $ac_configure_args " in
1775 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1776 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1777 esac
1779 done
1780 if $ac_cache_corrupted; then
1781 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1782 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1783 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1784 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1785 { (exit 1); exit 1; }; }
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_aux_dir=
1813 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1814 if test -f "$ac_dir/install-sh"; then
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/install-sh -c"
1817 break
1818 elif test -f "$ac_dir/install.sh"; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install.sh -c"
1821 break
1822 elif test -f "$ac_dir/shtool"; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/shtool install -c"
1825 break
1827 done
1828 if test -z "$ac_aux_dir"; then
1829 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1830 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1831 { (exit 1); exit 1; }; }
1834 # These three variables are undocumented and unsupported,
1835 # and are intended to be withdrawn in a future Autoconf release.
1836 # They can cause serious problems if a builder's source tree is in a directory
1837 # whose full name contains unusual characters.
1838 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1839 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1840 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1843 subdirs="$subdirs plugins"
1846 ac_ext=cpp
1847 ac_cpp='$CXXCPP $CPPFLAGS'
1848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1851 if test -z "$CXX"; then
1852 if test -n "$CCC"; then
1853 CXX=$CCC
1854 else
1855 if test -n "$ac_tool_prefix"; then
1856 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_CXX+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$CXX"; then
1866 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1879 done
1880 done
1881 IFS=$as_save_IFS
1885 CXX=$ac_cv_prog_CXX
1886 if test -n "$CXX"; then
1887 { echo "$as_me:$LINENO: result: $CXX" >&5
1888 echo "${ECHO_T}$CXX" >&6; }
1889 else
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1895 test -n "$CXX" && break
1896 done
1898 if test -z "$CXX"; then
1899 ac_ct_CXX=$CXX
1900 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903 set dummy $ac_prog; ac_word=$2
1904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1906 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$ac_ct_CXX"; then
1910 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1919 ac_cv_prog_ac_ct_CXX="$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1925 IFS=$as_save_IFS
1929 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1930 if test -n "$ac_ct_CXX"; then
1931 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1932 echo "${ECHO_T}$ac_ct_CXX" >&6; }
1933 else
1934 { echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6; }
1939 test -n "$ac_ct_CXX" && break
1940 done
1942 if test "x$ac_ct_CXX" = x; then
1943 CXX="g++"
1944 else
1945 case $cross_compiling:$ac_tool_warned in
1946 yes:)
1947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1948 whose name does not start with the host triplet. If you think this
1949 configuration is useful to you, please write to autoconf@gnu.org." >&5
1950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1951 whose name does not start with the host triplet. If you think this
1952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1953 ac_tool_warned=yes ;;
1954 esac
1955 CXX=$ac_ct_CXX
1961 # Provide some information about the compiler.
1962 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1963 ac_compiler=`set X $ac_compile; echo $2`
1964 { (ac_try="$ac_compiler --version >&5"
1965 case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1970 (eval "$ac_compiler --version >&5") 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974 { (ac_try="$ac_compiler -v >&5"
1975 case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978 esac
1979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1980 (eval "$ac_compiler -v >&5") 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1984 { (ac_try="$ac_compiler -V >&5"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1990 (eval "$ac_compiler -V >&5") 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }
1995 cat >conftest.$ac_ext <<_ACEOF
1996 /* confdefs.h. */
1997 _ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2003 main ()
2007 return 0;
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2016 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019 # List of possible output files, starting from the most likely.
2020 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2021 # only as a last resort. b.out is created by i960 compilers.
2022 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2024 # The IRIX 6 linker writes into existing files which may not be
2025 # executable, retaining their permissions. Remove them first so a
2026 # subsequent execution test works.
2027 ac_rmfiles=
2028 for ac_file in $ac_files
2030 case $ac_file in
2031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2033 esac
2034 done
2035 rm -f $ac_rmfiles
2037 if { (ac_try="$ac_link_default"
2038 case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041 esac
2042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2043 (eval "$ac_link_default") 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; then
2047 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2048 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2049 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2050 # so that the user can short-circuit this test for compilers unknown to
2051 # Autoconf.
2052 for ac_file in $ac_files ''
2054 test -f "$ac_file" || continue
2055 case $ac_file in
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2058 [ab].out )
2059 # We found the default executable, but exeext='' is most
2060 # certainly right.
2061 break;;
2062 *.* )
2063 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2064 then :; else
2065 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2067 # We set ac_cv_exeext here because the later test for it is not
2068 # safe: cross compilers may not add the suffix if given an `-o'
2069 # argument, so we may need to know it at that point already.
2070 # Even if this section looks crufty: it has the advantage of
2071 # actually working.
2072 break;;
2074 break;;
2075 esac
2076 done
2077 test "$ac_cv_exeext" = no && ac_cv_exeext=
2079 else
2080 ac_file=''
2083 { echo "$as_me:$LINENO: result: $ac_file" >&5
2084 echo "${ECHO_T}$ac_file" >&6; }
2085 if test -z "$ac_file"; then
2086 echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&2;}
2093 { (exit 77); exit 77; }; }
2096 ac_exeext=$ac_cv_exeext
2098 # Check that the compiler produces executables we can run. If not, either
2099 # the compiler is broken, or we cross compile.
2100 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2101 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2103 # If not cross compiling, check that we can run a simple program.
2104 if test "$cross_compiling" != yes; then
2105 if { ac_try='./$ac_file'
2106 { (case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_try") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 cross_compiling=no
2116 else
2117 if test "$cross_compiling" = maybe; then
2118 cross_compiling=yes
2119 else
2120 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot run C++ compiled programs.
2124 If you meant to cross compile, use \`--host'.
2125 See \`config.log' for more details." >&2;}
2126 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2134 ac_clean_files=$ac_clean_files_save
2135 # Check that the compiler produces executables we can run. If not, either
2136 # the compiler is broken, or we cross compile.
2137 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2139 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6; }
2142 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2144 if { (ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_link") 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2156 # work properly (i.e., refer to `conftest.exe'), while it won't with
2157 # `rm'.
2158 for ac_file in conftest.exe conftest conftest.*; do
2159 test -f "$ac_file" || continue
2160 case $ac_file in
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 break;;
2164 * ) break;;
2165 esac
2166 done
2167 else
2168 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2175 rm -f conftest$ac_cv_exeext
2176 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2181 ac_exeext=$EXEEXT
2182 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2184 if test "${ac_cv_objext+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 cat >conftest.$ac_ext <<_ACEOF
2188 /* confdefs.h. */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2195 main ()
2199 return 0;
2201 _ACEOF
2202 rm -f conftest.o conftest.obj
2203 if { (ac_try="$ac_compile"
2204 case "(($ac_try" in
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2207 esac
2208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209 (eval "$ac_compile") 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 for ac_file in conftest.o conftest.obj conftest.*; do
2214 test -f "$ac_file" || continue;
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218 break;;
2219 esac
2220 done
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235 echo "${ECHO_T}$ac_cv_objext" >&6; }
2236 OBJEXT=$ac_cv_objext
2237 ac_objext=$OBJEXT
2238 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 main ()
2253 #ifndef __GNUC__
2254 choke me
2255 #endif
2258 return 0;
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (ac_try="$ac_compile"
2263 case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266 esac
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_compile") 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } && {
2275 test -z "$ac_cxx_werror_flag" ||
2276 test ! -s conftest.err
2277 } && test -s conftest.$ac_objext; then
2278 ac_compiler_gnu=yes
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 ac_compiler_gnu=no
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2290 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2291 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2292 GXX=`test $ac_compiler_gnu = yes && echo yes`
2293 ac_test_CXXFLAGS=${CXXFLAGS+set}
2294 ac_save_CXXFLAGS=$CXXFLAGS
2295 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2296 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_cxx_g+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2301 ac_cxx_werror_flag=yes
2302 ac_cv_prog_cxx_g=no
2303 CXXFLAGS="-g"
2304 cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h. */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2312 main ()
2316 return 0;
2318 _ACEOF
2319 rm -f conftest.$ac_objext
2320 if { (ac_try="$ac_compile"
2321 case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>conftest.er1
2327 ac_status=$?
2328 grep -v '^ *+' conftest.er1 >conftest.err
2329 rm -f conftest.er1
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } && {
2333 test -z "$ac_cxx_werror_flag" ||
2334 test ! -s conftest.err
2335 } && test -s conftest.$ac_objext; then
2336 ac_cv_prog_cxx_g=yes
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 CXXFLAGS=""
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 main ()
2354 return 0;
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (ac_try="$ac_compile"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compile") 2>conftest.er1
2365 ac_status=$?
2366 grep -v '^ *+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } && {
2371 test -z "$ac_cxx_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest.$ac_objext; then
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2380 CXXFLAGS="-g"
2381 cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h. */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2389 main ()
2393 return 0;
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (ac_try="$ac_compile"
2398 case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compile") 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } && {
2410 test -z "$ac_cxx_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest.$ac_objext; then
2413 ac_cv_prog_cxx_g=yes
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2432 if test "$ac_test_CXXFLAGS" = set; then
2433 CXXFLAGS=$ac_save_CXXFLAGS
2434 elif test $ac_cv_prog_cxx_g = yes; then
2435 if test "$GXX" = yes; then
2436 CXXFLAGS="-g -O2"
2437 else
2438 CXXFLAGS="-g"
2440 else
2441 if test "$GXX" = yes; then
2442 CXXFLAGS="-O2"
2443 else
2444 CXXFLAGS=
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_ext=cpp
2455 ac_cpp='$CXXCPP $CPPFLAGS'
2456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2462 PWLIBDIR=`pwd`
2466 if test "x$prefix" = "xNONE"; then
2467 INSTALLPREFIX="/usr/local"
2468 else
2469 INSTALLPREFIX="${prefix}"
2475 LIBDIR=${libdir}
2480 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2481 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2482 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2483 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2488 MAJOR_VERSION=$MAJOR_VERSION
2490 MINOR_VERSION=$MINOR_VERSION
2492 BUILD_NUMBER=$BUILD_NUMBER
2495 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
2496 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
2499 cat >>confdefs.h <<_ACEOF
2500 #define PWLIB_MAJOR $MAJOR_VERSION
2501 _ACEOF
2504 cat >>confdefs.h <<_ACEOF
2505 #define PWLIB_MINOR $MINOR_VERSION
2506 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PWLIB_BUILD $BUILD_NUMBER
2511 _ACEOF
2514 cat >>confdefs.h <<_ACEOF
2515 #define PWLIB_VERSION "$PWLIB_VERSION"
2516 _ACEOF
2520 # Make sure we can run config.sub.
2521 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2522 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2523 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2524 { (exit 1); exit 1; }; }
2526 { echo "$as_me:$LINENO: checking build system type" >&5
2527 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2528 if test "${ac_cv_build+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 ac_build_alias=$build_alias
2532 test "x$ac_build_alias" = x &&
2533 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2534 test "x$ac_build_alias" = x &&
2535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2537 { (exit 1); exit 1; }; }
2538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2539 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2540 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2541 { (exit 1); exit 1; }; }
2544 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2545 echo "${ECHO_T}$ac_cv_build" >&6; }
2546 case $ac_cv_build in
2547 *-*-*) ;;
2548 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2549 echo "$as_me: error: invalid value of canonical build" >&2;}
2550 { (exit 1); exit 1; }; };;
2551 esac
2552 build=$ac_cv_build
2553 ac_save_IFS=$IFS; IFS='-'
2554 set x $ac_cv_build
2555 shift
2556 build_cpu=$1
2557 build_vendor=$2
2558 shift; shift
2559 # Remember, the first character of IFS is used to create $*,
2560 # except with old shells:
2561 build_os=$*
2562 IFS=$ac_save_IFS
2563 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2566 { echo "$as_me:$LINENO: checking host system type" >&5
2567 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2568 if test "${ac_cv_host+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 if test "x$host_alias" = x; then
2572 ac_cv_host=$ac_cv_build
2573 else
2574 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2575 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2576 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2577 { (exit 1); exit 1; }; }
2581 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2582 echo "${ECHO_T}$ac_cv_host" >&6; }
2583 case $ac_cv_host in
2584 *-*-*) ;;
2585 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2586 echo "$as_me: error: invalid value of canonical host" >&2;}
2587 { (exit 1); exit 1; }; };;
2588 esac
2589 host=$ac_cv_host
2590 ac_save_IFS=$IFS; IFS='-'
2591 set x $ac_cv_host
2592 shift
2593 host_cpu=$1
2594 host_vendor=$2
2595 shift; shift
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2598 host_os=$*
2599 IFS=$ac_save_IFS
2600 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603 { echo "$as_me:$LINENO: checking target system type" >&5
2604 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2605 if test "${ac_cv_target+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test "x$target_alias" = x; then
2609 ac_cv_target=$ac_cv_host
2610 else
2611 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2612 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2613 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2614 { (exit 1); exit 1; }; }
2618 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2619 echo "${ECHO_T}$ac_cv_target" >&6; }
2620 case $ac_cv_target in
2621 *-*-*) ;;
2622 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2623 echo "$as_me: error: invalid value of canonical target" >&2;}
2624 { (exit 1); exit 1; }; };;
2625 esac
2626 target=$ac_cv_target
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_target
2629 shift
2630 target_cpu=$1
2631 target_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 target_os=$*
2636 IFS=$ac_save_IFS
2637 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2640 # The aliases save the names the user supplied, while $host etc.
2641 # will get canonicalized.
2642 test -n "$target_alias" &&
2643 test "$program_prefix$program_suffix$program_transform_name" = \
2644 NONENONEs,x,x, &&
2645 program_prefix=${target_alias}-
2647 TARGETDIR=unix
2648 OSTYPE=
2649 NEEDS_PTHREADS=yes
2651 case "$target_os" in
2652 linux*) OSTYPE=linux ;
2653 OSRELEASE="\"`uname -r`\"";
2654 OS_TAG="P_LINUX" ;
2655 need_pragma=yes ;
2658 freebsd* ) OSTYPE=FreeBSD ;
2659 OS_TAG="P_FREEBSD" ;
2660 if test "x$OSRELEASE" = "x"; then
2661 OSRELEASE="`sysctl -n kern.osreldate`" ;
2663 need_pragma=yes ;
2666 openbsd* ) OSTYPE=OpenBSD ;
2667 OS_TAG="P_OPENBSD" ;
2668 OSRELEASE="`sysctl -n kern.osrevision`" ;
2669 ENDLDLIBS="-lossaudio" ;
2670 need_pragma=yes ;
2673 netbsd* ) OSTYPE=NetBSD ;
2674 OS_TAG="P_NETBSD" ;
2675 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2676 ENDLDLIBS="-lossaudio" ;
2677 need_pragma=yes ;
2680 solaris* | sunos* ) OSTYPE=solaris ;
2681 OS_TAG="P_SOLARIS" ;
2682 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2683 need_pragma=yes ;
2686 darwin* ) OSTYPE=Darwin ;
2687 OS_TAG="P_MACOSX" ;
2688 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2689 SHAREDLIBEXT="dylib";
2690 if test -e /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/expat.h ; then
2691 EXPATDIR=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6
2695 beos*) OSTYPE=beos ;
2696 OS_TAG="P_BEOS" ;
2697 OSRELEASE=`uname -r` ;
2698 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2701 cygwin*) OSTYPE=cygwin ;
2702 OS_TAG="P_CYGWIN" ;
2703 OSRELEASE="`uname -r`";
2706 mingw*) OSTYPE=mingw ;
2707 OS_TAG="P_MINGW" ;
2708 OSRELEASE=`uname -r` ;
2709 TARGETDIR=msos ;
2710 SHAREDLIBEXT="dll" ;
2711 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
2712 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
2713 NEEDS_PTHREADS=no ;
2716 * ) OSTYPE="$target_os" ;
2717 OS_TAG="P_UNKNOWN_OS" ;
2718 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2719 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2720 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2722 esac
2724 MACHTYPE=
2726 case "$target_cpu" in
2727 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2730 x86_64) MACHTYPE=x86_64 ;
2731 P_64BIT=1 ;
2732 LIB64=1 ;
2735 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2736 P_64BIT=1 ;
2739 sparc ) MACHTYPE=sparc ;
2742 powerpc ) MACHTYPE=ppc ;
2745 ppc ) MACHTYPE=ppc ;
2748 powerpc64 ) MACHTYPE=ppc64 ;
2749 P_64BIT=1 ;
2750 LIB64=1 ;
2753 ppc64 ) MACHTYPE=ppc64 ;
2754 P_64BIT=1 ;
2755 LIB64=1 ;
2758 ia64) MACHTYPE=ia64 ;
2759 P_64BIT=1 ;
2762 s390x) MACHTYPE=s390x ;
2763 P_64BIT=1 ;
2764 LIB64=1 ;
2767 s390) MACHTYPE=s390 ;
2770 * ) MACHTYPE=$target_cpu ;
2771 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2772 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2773 esac
2775 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2776 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2777 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2778 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2779 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2780 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2782 MACHTYPE=$MACHTYPE
2784 OSTYPE=$OSTYPE
2786 OSRELEASE=$OSRELEASE
2788 TARGETDIR=$TARGETDIR
2791 cat >>confdefs.h <<_ACEOF
2792 #define $OS_TAG $OSRELEASE
2793 _ACEOF
2797 cat >>confdefs.h <<\_ACEOF
2798 #define PHAS_TEMPLATES 1
2799 _ACEOF
2802 if test "x$P_64BIT" != "x" ; then
2804 cat >>confdefs.h <<\_ACEOF
2805 #define P_64BIT 1
2806 _ACEOF
2810 if test ${OSTYPE} != beos ; then
2812 cat >>confdefs.h <<\_ACEOF
2813 #define P_PTHREADS 1
2814 _ACEOF
2818 if test ${OSTYPE} != solaris ; then
2819 LDAP_LIBRARIES="-llber -lldap_r"
2823 USE_GCC=
2824 USE_PCH=
2826 if test x$GXX = xyes ; then
2827 USE_GCC=yes
2828 gcc_version=`$CXX -dumpversion`
2829 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2830 echo "$as_me: gcc version is $gcc_version" >&6;};
2831 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
2832 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
2833 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
2835 { echo "$as_me:$LINENO: checking checking if pragma implementation should be used" >&5
2836 echo $ECHO_N "checking checking if pragma implementation should be used... $ECHO_C" >&6; }
2837 if test ${GXX_MAJOR} -lt 4 ; then
2838 if test "${need_pragma}" = "yes" ; then
2839 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2840 { echo "$as_me:$LINENO: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6; }
2842 else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2846 else
2847 { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2851 { echo "$as_me:$LINENO: checking checking if precompiled headers available" >&5
2852 echo $ECHO_N "checking checking if precompiled headers available... $ECHO_C" >&6; }
2853 if test ${GXX_MAJOR} -lt 4 ; then
2854 enablepch=no
2855 else
2856 enablepch=yes
2857 # Check whether --enable-pch was given.
2858 if test "${enable_pch+set}" = set; then
2859 enableval=$enable_pch; enablepch=$enableval
2863 if test "${enablepch}" = "yes" ; then
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2866 USE_PCH=1
2867 else
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2871 else
2872 USE_GCC=no
2880 if test "x${SHAREDLIBEXT}" = "x" ; then
2881 SHAREDLIBEXT="so"
2883 SHAREDLIBEXT=$SHAREDLIBEXT
2886 cat >>confdefs.h <<\_ACEOF
2887 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2888 _ACEOF
2893 if test ${OSTYPE} != "Darwin" ; then
2895 ac_ext=cpp
2896 ac_cpp='$CXXCPP $CPPFLAGS'
2897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2900 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2902 if test -z "$CXXCPP"; then
2903 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 # Double quotes because CXXCPP needs to be expanded
2907 for CXXCPP in "$CXX -E" "/lib/cpp"
2909 ac_preproc_ok=false
2910 for ac_cxx_preproc_warn_flag in '' yes
2912 # Use a header file that comes with gcc, so configuring glibc
2913 # with a fresh cross-compiler works.
2914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915 # <limits.h> exists even on freestanding compilers.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2924 #ifdef __STDC__
2925 # include <limits.h>
2926 #else
2927 # include <assert.h>
2928 #endif
2929 Syntax error
2930 _ACEOF
2931 if { (ac_try="$ac_cpp conftest.$ac_ext"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null && {
2944 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2945 test ! -s conftest.err
2946 }; then
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 # Broken: fails on valid input.
2953 continue
2956 rm -f conftest.err conftest.$ac_ext
2958 # OK, works on sane cases. Now check whether nonexistent headers
2959 # can be detected and how.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <ac_nonexistent.h>
2967 _ACEOF
2968 if { (ac_try="$ac_cpp conftest.$ac_ext"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null && {
2981 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2982 test ! -s conftest.err
2983 }; then
2984 # Broken: success on invalid input.
2985 continue
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Passes both tests.
2991 ac_preproc_ok=:
2992 break
2995 rm -f conftest.err conftest.$ac_ext
2997 done
2998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2999 rm -f conftest.err conftest.$ac_ext
3000 if $ac_preproc_ok; then
3001 break
3004 done
3005 ac_cv_prog_CXXCPP=$CXXCPP
3008 CXXCPP=$ac_cv_prog_CXXCPP
3009 else
3010 ac_cv_prog_CXXCPP=$CXXCPP
3012 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3013 echo "${ECHO_T}$CXXCPP" >&6; }
3014 ac_preproc_ok=false
3015 for ac_cxx_preproc_warn_flag in '' yes
3017 # Use a header file that comes with gcc, so configuring glibc
3018 # with a fresh cross-compiler works.
3019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3020 # <limits.h> exists even on freestanding compilers.
3021 # On the NeXT, cc -E runs the code through the compiler's parser,
3022 # not just through cpp. "Syntax error" is here to catch this case.
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 #ifdef __STDC__
3030 # include <limits.h>
3031 #else
3032 # include <assert.h>
3033 #endif
3034 Syntax error
3035 _ACEOF
3036 if { (ac_try="$ac_cpp conftest.$ac_ext"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null && {
3049 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3050 test ! -s conftest.err
3051 }; then
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 # Broken: fails on valid input.
3058 continue
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether nonexistent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (ac_try="$ac_cpp conftest.$ac_ext"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } >/dev/null && {
3086 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3087 test ! -s conftest.err
3088 }; then
3089 # Broken: success on invalid input.
3090 continue
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3100 rm -f conftest.err conftest.$ac_ext
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3107 else
3108 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 ac_ext=cpp
3116 ac_cpp='$CXXCPP $CPPFLAGS'
3117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3122 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3123 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3124 if test "${ac_cv_path_GREP+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 # Extract the first word of "grep ggrep" to use in msg output
3128 if test -z "$GREP"; then
3129 set dummy grep ggrep; ac_prog_name=$2
3130 if test "${ac_cv_path_GREP+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 ac_path_GREP_found=false
3134 # Loop through the user's path and test for each of PROGNAME-LIST
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_prog in grep ggrep; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3143 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3144 # Check for GNU ac_path_GREP and select it if it is found.
3145 # Check for GNU $ac_path_GREP
3146 case `"$ac_path_GREP" --version 2>&1` in
3147 *GNU*)
3148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3150 ac_count=0
3151 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3152 while :
3154 cat "conftest.in" "conftest.in" >"conftest.tmp"
3155 mv "conftest.tmp" "conftest.in"
3156 cp "conftest.in" "conftest.nl"
3157 echo 'GREP' >> "conftest.nl"
3158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3160 ac_count=`expr $ac_count + 1`
3161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3162 # Best one so far, save it but keep looking for a better one
3163 ac_cv_path_GREP="$ac_path_GREP"
3164 ac_path_GREP_max=$ac_count
3166 # 10*(2^10) chars as input seems more than enough
3167 test $ac_count -gt 10 && break
3168 done
3169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3170 esac
3173 $ac_path_GREP_found && break 3
3174 done
3175 done
3177 done
3178 IFS=$as_save_IFS
3183 GREP="$ac_cv_path_GREP"
3184 if test -z "$GREP"; then
3185 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3186 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3187 { (exit 1); exit 1; }; }
3190 else
3191 ac_cv_path_GREP=$GREP
3196 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3197 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3198 GREP="$ac_cv_path_GREP"
3201 { echo "$as_me:$LINENO: checking for egrep" >&5
3202 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3203 if test "${ac_cv_path_EGREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3207 then ac_cv_path_EGREP="$GREP -E"
3208 else
3209 # Extract the first word of "egrep" to use in msg output
3210 if test -z "$EGREP"; then
3211 set dummy egrep; ac_prog_name=$2
3212 if test "${ac_cv_path_EGREP+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 ac_path_EGREP_found=false
3216 # Loop through the user's path and test for each of PROGNAME-LIST
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_prog in egrep; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3225 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3226 # Check for GNU ac_path_EGREP and select it if it is found.
3227 # Check for GNU $ac_path_EGREP
3228 case `"$ac_path_EGREP" --version 2>&1` in
3229 *GNU*)
3230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3232 ac_count=0
3233 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3234 while :
3236 cat "conftest.in" "conftest.in" >"conftest.tmp"
3237 mv "conftest.tmp" "conftest.in"
3238 cp "conftest.in" "conftest.nl"
3239 echo 'EGREP' >> "conftest.nl"
3240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3242 ac_count=`expr $ac_count + 1`
3243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3244 # Best one so far, save it but keep looking for a better one
3245 ac_cv_path_EGREP="$ac_path_EGREP"
3246 ac_path_EGREP_max=$ac_count
3248 # 10*(2^10) chars as input seems more than enough
3249 test $ac_count -gt 10 && break
3250 done
3251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3252 esac
3255 $ac_path_EGREP_found && break 3
3256 done
3257 done
3259 done
3260 IFS=$as_save_IFS
3265 EGREP="$ac_cv_path_EGREP"
3266 if test -z "$EGREP"; then
3267 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3268 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3269 { (exit 1); exit 1; }; }
3272 else
3273 ac_cv_path_EGREP=$EGREP
3279 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3280 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3281 EGREP="$ac_cv_path_EGREP"
3284 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3285 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3286 if test "${ac_cv_header_stdc+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <stdlib.h>
3296 #include <stdarg.h>
3297 #include <string.h>
3298 #include <float.h>
3301 main ()
3305 return 0;
3307 _ACEOF
3308 rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_compile") 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } && {
3322 test -z "$ac_cxx_werror_flag" ||
3323 test ! -s conftest.err
3324 } && test -s conftest.$ac_objext; then
3325 ac_cv_header_stdc=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ac_cv_header_stdc=no
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 if test $ac_cv_header_stdc = yes; then
3336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 #include <string.h>
3345 _ACEOF
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 $EGREP "memchr" >/dev/null 2>&1; then
3349 else
3350 ac_cv_header_stdc=no
3352 rm -f conftest*
3356 if test $ac_cv_header_stdc = yes; then
3357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdlib.h>
3366 _ACEOF
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 $EGREP "free" >/dev/null 2>&1; then
3370 else
3371 ac_cv_header_stdc=no
3373 rm -f conftest*
3377 if test $ac_cv_header_stdc = yes; then
3378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3379 if test "$cross_compiling" = yes; then
3381 else
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ctype.h>
3389 #include <stdlib.h>
3390 #if ((' ' & 0x0FF) == 0x020)
3391 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3392 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3393 #else
3394 # define ISLOWER(c) \
3395 (('a' <= (c) && (c) <= 'i') \
3396 || ('j' <= (c) && (c) <= 'r') \
3397 || ('s' <= (c) && (c) <= 'z'))
3398 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3399 #endif
3401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3403 main ()
3405 int i;
3406 for (i = 0; i < 256; i++)
3407 if (XOR (islower (i), ISLOWER (i))
3408 || toupper (i) != TOUPPER (i))
3409 return 2;
3410 return 0;
3412 _ACEOF
3413 rm -f conftest$ac_exeext
3414 if { (ac_try="$ac_link"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3424 { (case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_try") 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3434 else
3435 echo "$as_me: program exited with status $ac_status" >&5
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 ( exit $ac_status )
3440 ac_cv_header_stdc=no
3442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3448 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3449 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3450 if test $ac_cv_header_stdc = yes; then
3452 cat >>confdefs.h <<\_ACEOF
3453 #define STDC_HEADERS 1
3454 _ACEOF
3458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3469 inttypes.h stdint.h unistd.h
3471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 $ac_includes_default
3485 #include <$ac_header>
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_cxx_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3504 eval "$as_ac_Header=yes"
3505 else
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 eval "$as_ac_Header=no"
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_res=`eval echo '${'$as_ac_Header'}'`
3515 { echo "$as_me:$LINENO: result: $ac_res" >&5
3516 echo "${ECHO_T}$ac_res" >&6; }
3517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3518 cat >>confdefs.h <<_ACEOF
3519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3520 _ACEOF
3524 done
3527 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3528 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3529 if test "${ac_cv_c_bigendian+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 # See if sys/param.h defines the BYTE_ORDER macro.
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <sys/types.h>
3540 #include <sys/param.h>
3543 main ()
3545 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3546 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3547 bogus endian macros
3548 #endif
3551 return 0;
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_cxx_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 # It does; now see whether it defined to BIG_ENDIAN or not.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <sys/types.h>
3579 #include <sys/param.h>
3582 main ()
3584 #if BYTE_ORDER != BIG_ENDIAN
3585 not big endian
3586 #endif
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (ac_try="$ac_compile"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compile") 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && {
3606 test -z "$ac_cxx_werror_flag" ||
3607 test ! -s conftest.err
3608 } && test -s conftest.$ac_objext; then
3609 ac_cv_c_bigendian=yes
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 ac_cv_c_bigendian=no
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # It does not; compile a test program.
3623 if test "$cross_compiling" = yes; then
3624 # try to guess the endianness by grepping values into an object file
3625 ac_cv_c_bigendian=unknown
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3633 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3634 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3635 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3636 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3637 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3639 main ()
3641 _ascii (); _ebcdic ();
3643 return 0;
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_cxx_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3664 ac_cv_c_bigendian=yes
3666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3667 if test "$ac_cv_c_bigendian" = unknown; then
3668 ac_cv_c_bigendian=no
3669 else
3670 # finding both strings is unlikely to happen, but who knows?
3671 ac_cv_c_bigendian=unknown
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 else
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 $ac_includes_default
3691 main ()
3694 /* Are we little or big endian? From Harbison&Steele. */
3695 union
3697 long int l;
3698 char c[sizeof (long int)];
3699 } u;
3700 u.l = 1;
3701 return u.c[sizeof (long int) - 1] == 1;
3704 return 0;
3706 _ACEOF
3707 rm -f conftest$ac_exeext
3708 if { (ac_try="$ac_link"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_link") 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3718 { (case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_c_bigendian=no
3728 else
3729 echo "$as_me: program exited with status $ac_status" >&5
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 ( exit $ac_status )
3734 ac_cv_c_bigendian=yes
3736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3745 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3746 case $ac_cv_c_bigendian in
3747 yes)
3749 cat >>confdefs.h <<\_ACEOF
3750 #define WORDS_BIGENDIAN 1
3751 _ACEOF
3756 { { echo "$as_me:$LINENO: error: unknown endianness
3757 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3758 echo "$as_me: error: unknown endianness
3759 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3760 { (exit 1); exit 1; }; } ;;
3761 esac
3763 if test ${ac_cv_c_bigendian} = yes ; then
3764 PBYTE_ORDER=PBIG_ENDIAN
3765 else
3766 PBYTE_ORDER=PLITTLE_ENDIAN
3770 cat >>confdefs.h <<_ACEOF
3771 #define PBYTE_ORDER $PBYTE_ORDER
3772 _ACEOF
3776 ac_ext=cpp
3777 ac_cpp='$CXXCPP $CPPFLAGS'
3778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3783 { echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
3784 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6; }
3785 cat >conftest.$ac_ext <<_ACEOF
3786 int main(int ac,char **av) { return 0; }
3787 _ACEOF
3788 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
3789 if test $? = 0 ; then
3790 { echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6; }
3792 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
3793 else
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3798 { echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
3799 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6; }
3800 cat >conftest.$ac_ext <<_ACEOF
3801 int main(int ac,char **av) { return 0; }
3802 _ACEOF
3803 $CXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
3804 if test $? = 0 ; then
3805 { echo "$as_me:$LINENO: result: yes" >&5
3806 echo "${ECHO_T}yes" >&6; }
3807 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
3808 else
3809 { echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6; }
3815 { echo "$as_me:$LINENO: checking if debug build accepts -g3 -ggdb -O0" >&5
3816 echo $ECHO_N "checking if debug build accepts -g3 -ggdb -O0... $ECHO_C" >&6; }
3817 cat >conftest.$ac_ext <<_ACEOF
3818 int main(int ac,char **av) { return 0; }
3819 _ACEOF
3820 $CXX $CXXFLAGS -g3 -ggdb -O0 conftest.cc > /dev/null 2>&1
3821 if test $? = 0 ; then
3822 { echo "$as_me:$LINENO: result: yes" >&5
3823 echo "${ECHO_T}yes" >&6; }
3824 DEBUG_FLAG="-g3 -ggdb -O0"
3825 else
3826 { echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6; }
3828 DEBUG_FLAG="-g"
3832 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
3833 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
3834 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
3835 # if test $? = 0 ; then
3836 # AC_MSG_RESULT(yes)
3837 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
3838 # else
3839 # AC_MSG_RESULT(no)
3840 # fi
3842 { echo "$as_me:$LINENO: checking if compiler uses RTTI by default" >&5
3843 echo $ECHO_N "checking if compiler uses RTTI by default... $ECHO_C" >&6; }
3844 cat >conftest.$ac_ext <<_ACEOF
3846 #include <typeinfo>
3847 int main(int ac,char **av)
3849 class A
3851 public:
3852 virtual void fred() { }
3854 class B : public A
3856 public:
3857 void fred() { }
3859 B t;
3860 A * p = dynamic_cast<A *>(&t);
3861 return 0;
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_cxx_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3882 DEFAULT_RTTI=1
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 DEFAULT_RTTI=0
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 if test "$DEFAULT_RTTI" = "1" ; then
3892 { echo "$as_me:$LINENO: result: yes" >&5
3893 echo "${ECHO_T}yes" >&6; }
3894 else
3895 { echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6; }
3897 STDCXXFLAGS="$STDCCFLAGS -rtti"
3900 GCSECTIONS=0
3903 if test 0 = 1 ; then
3906 { echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
3907 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6; }
3908 cat >conftest.$ac_ext <<_ACEOF
3909 int main(int ac,char **av) { return 0; }
3910 _ACEOF
3911 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
3912 if test $? = 0 ; then
3913 { echo "$as_me:$LINENO: result: yes" >&5
3914 echo "${ECHO_T}yes" >&6; }
3915 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
3916 GCSECTIONS=1
3917 else
3918 { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3924 if test $GCSECTIONS = 1; then
3925 if test "${OSTYPE}" != "Darwin" ; then
3926 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
3932 ac_ext=cpp
3933 ac_cpp='$CXXCPP $CPPFLAGS'
3934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3939 { echo "$as_me:$LINENO: checking for int" >&5
3940 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
3941 if test "${ac_cv_type_int+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3951 typedef int ac__type_new_;
3953 main ()
3955 if ((ac__type_new_ *) 0)
3956 return 0;
3957 if (sizeof (ac__type_new_))
3958 return 0;
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_cxx_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3980 ac_cv_type_int=yes
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ac_cv_type_int=no
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3991 echo "${ECHO_T}$ac_cv_type_int" >&6; }
3993 # The cast to long int works around a bug in the HP C Compiler
3994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3996 # This bug is HP SR number 8606223364.
3997 { echo "$as_me:$LINENO: checking size of int" >&5
3998 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
3999 if test "${ac_cv_sizeof_int+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 if test "$cross_compiling" = yes; then
4003 # Depending upon the size, compute the lo and hi bounds.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4011 typedef int ac__type_sizeof_;
4013 main ()
4015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4016 test_array [0] = 0
4019 return 0;
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_cxx_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.$ac_objext; then
4039 ac_lo=0 ac_mid=0
4040 while :; do
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 $ac_includes_default
4048 typedef int ac__type_sizeof_;
4050 main ()
4052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4053 test_array [0] = 0
4056 return 0;
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } && {
4073 test -z "$ac_cxx_werror_flag" ||
4074 test ! -s conftest.err
4075 } && test -s conftest.$ac_objext; then
4076 ac_hi=$ac_mid; break
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_lo=`expr $ac_mid + 1`
4082 if test $ac_lo -le $ac_mid; then
4083 ac_lo= ac_hi=
4084 break
4086 ac_mid=`expr 2 '*' $ac_mid + 1`
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 done
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 $ac_includes_default
4102 typedef int ac__type_sizeof_;
4104 main ()
4106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4107 test_array [0] = 0
4110 return 0;
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_cxx_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_hi=-1 ac_mid=-1
4131 while :; do
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 $ac_includes_default
4139 typedef int ac__type_sizeof_;
4141 main ()
4143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4144 test_array [0] = 0
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_cxx_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 ac_lo=$ac_mid; break
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_hi=`expr '(' $ac_mid ')' - 1`
4173 if test $ac_mid -le $ac_hi; then
4174 ac_lo= ac_hi=
4175 break
4177 ac_mid=`expr 2 '*' $ac_mid`
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 done
4182 else
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 ac_lo= ac_hi=
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 # Binary search between lo and hi bounds.
4194 while test "x$ac_lo" != "x$ac_hi"; do
4195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4203 typedef int ac__type_sizeof_;
4205 main ()
4207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4208 test_array [0] = 0
4211 return 0;
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && {
4228 test -z "$ac_cxx_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.$ac_objext; then
4231 ac_hi=$ac_mid
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 ac_lo=`expr '(' $ac_mid ')' + 1`
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 done
4241 case $ac_lo in
4242 ?*) ac_cv_sizeof_int=$ac_lo;;
4243 '') if test "$ac_cv_type_int" = yes; then
4244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4245 See \`config.log' for more details." >&5
4246 echo "$as_me: error: cannot compute sizeof (int)
4247 See \`config.log' for more details." >&2;}
4248 { (exit 77); exit 77; }; }
4249 else
4250 ac_cv_sizeof_int=0
4251 fi ;;
4252 esac
4253 else
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 $ac_includes_default
4261 typedef int ac__type_sizeof_;
4262 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4263 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4264 #include <stdio.h>
4265 #include <stdlib.h>
4267 main ()
4270 FILE *f = fopen ("conftest.val", "w");
4271 if (! f)
4272 return 1;
4273 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4275 long int i = longval ();
4276 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4277 return 1;
4278 fprintf (f, "%ld\n", i);
4280 else
4282 unsigned long int i = ulongval ();
4283 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4284 return 1;
4285 fprintf (f, "%lu\n", i);
4287 return ferror (f) || fclose (f) != 0;
4290 return 0;
4292 _ACEOF
4293 rm -f conftest$ac_exeext
4294 if { (ac_try="$ac_link"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_link") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_cv_sizeof_int=`cat conftest.val`
4314 else
4315 echo "$as_me: program exited with status $ac_status" >&5
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 ( exit $ac_status )
4320 if test "$ac_cv_type_int" = yes; then
4321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4322 See \`config.log' for more details." >&5
4323 echo "$as_me: error: cannot compute sizeof (int)
4324 See \`config.log' for more details." >&2;}
4325 { (exit 77); exit 77; }; }
4326 else
4327 ac_cv_sizeof_int=0
4330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4332 rm -f conftest.val
4334 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4335 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
4339 cat >>confdefs.h <<_ACEOF
4340 #define SIZEOF_INT $ac_cv_sizeof_int
4341 _ACEOF
4348 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
4349 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
4350 if test "${ac_cv_type_long_double_wider+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <float.h>
4360 long double const a[] =
4362 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
4363 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
4365 long double
4366 f (long double x)
4368 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
4369 + (x ? f (x) : 'c'));
4373 main ()
4375 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
4376 + (DBL_MANT_DIG < LDBL_MANT_DIG)
4377 - (LDBL_MAX_EXP < DBL_MAX_EXP)
4378 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
4379 && (int) LDBL_EPSILON == 0
4381 test_array [0] = 0
4384 return 0;
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_cxx_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 ac_cv_type_long_double_wider=yes
4405 else
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_cv_type_long_double_wider=no
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
4415 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
4416 if test $ac_cv_type_long_double_wider = yes; then
4418 cat >>confdefs.h <<\_ACEOF
4419 #define HAVE_LONG_DOUBLE_WIDER 1
4420 _ACEOF
4424 ac_cv_c_long_double=$ac_cv_type_long_double_wider
4425 if test $ac_cv_c_long_double = yes; then
4427 cat >>confdefs.h <<\_ACEOF
4428 #define HAVE_LONG_DOUBLE 1
4429 _ACEOF
4433 if test $ac_cv_c_long_double != yes ; then
4435 cat >>confdefs.h <<\_ACEOF
4436 #define PNO_LONG_DOUBLE
4437 _ACEOF
4441 if test ${OSTYPE} = Darwin ; then
4442 STDCCFLAGS="$STDCCFLAGS -Wno-long-double"
4445 # Extract the first word of "flex", so it can be a program name with args.
4446 set dummy flex; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_path_FLEX+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 case $FLEX in
4453 [\\/]* | ?:[\\/]*)
4454 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4473 esac
4475 FLEX=$ac_cv_path_FLEX
4476 if test -n "$FLEX"; then
4477 { echo "$as_me:$LINENO: result: $FLEX" >&5
4478 echo "${ECHO_T}$FLEX" >&6; }
4479 else
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4485 if test -z "$FLEX" ; then
4486 { { echo "$as_me:$LINENO: error: pwlib needs the GNU Project fast lexical analyzer generator flex" >&5
4487 echo "$as_me: error: pwlib needs the GNU Project fast lexical analyzer generator flex" >&2;}
4488 { (exit 1); exit 1; }; }
4491 # Extract the first word of "ar", so it can be a program name with args.
4492 set dummy ar; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_AR+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 case $AR in
4499 [\\/]* | ?:[\\/]*)
4500 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4514 done
4515 done
4516 IFS=$as_save_IFS
4519 esac
4521 AR=$ac_cv_path_AR
4522 if test -n "$AR"; then
4523 { echo "$as_me:$LINENO: result: $AR" >&5
4524 echo "${ECHO_T}$AR" >&6; }
4525 else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4531 if test -z "$AR" ; then
4532 # Extract the first word of "gar", so it can be a program name with args.
4533 set dummy gar; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_AR+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 case $AR in
4540 [\\/]* | ?:[\\/]*)
4541 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4560 esac
4562 AR=$ac_cv_path_AR
4563 if test -n "$AR"; then
4564 { echo "$as_me:$LINENO: result: $AR" >&5
4565 echo "${ECHO_T}$AR" >&6; }
4566 else
4567 { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4574 # Extract the first word of "bison", so it can be a program name with args.
4575 set dummy bison; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_BISON+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 case $BISON in
4582 [\\/]* | ?:[\\/]*)
4583 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4602 esac
4604 BISON=$ac_cv_path_BISON
4605 if test -n "$BISON"; then
4606 { echo "$as_me:$LINENO: result: $BISON" >&5
4607 echo "${ECHO_T}$BISON" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test -z "$BISON" ; then
4615 { { echo "$as_me:$LINENO: error: pwlib needs the GNU Project parser generator bison" >&5
4616 echo "$as_me: error: pwlib needs the GNU Project parser generator bison" >&2;}
4617 { (exit 1); exit 1; }; }
4620 { echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
4621 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6; }
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #define _POSIX_PTHREAD_SEMANTICS
4629 #include <dirent.h>
4631 main ()
4633 DIR *s; struct dirent * e; readdir_r(s, e);
4635 return 0;
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_cxx_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 P_HAS_POSIX_READDIR_R=2
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 P_HAS_POSIX_READDIR_R=0
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
4665 { echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6; }
4667 else
4668 { echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6; }
4670 { echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
4671 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6; }
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <dirent.h>
4680 main ()
4682 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
4684 return 0;
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (ac_try="$ac_compile"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_compile") 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_cxx_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest.$ac_objext; then
4704 P_HAS_POSIX_READDIR_R=3
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 P_HAS_POSIX_READDIR_R=0
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
4714 { echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6; }
4716 else
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4721 cat >>confdefs.h <<_ACEOF
4722 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
4723 _ACEOF
4727 # Check whether --enable-minsize was given.
4728 if test "${enable_minsize+set}" = set; then
4729 enableval=$enable_minsize;
4732 # Check whether --enable-openh323 was given.
4733 if test "${enable_openh323+set}" = set; then
4734 enableval=$enable_openh323;
4737 # Check whether --enable-opal was given.
4738 if test "${enable_opal+set}" = set; then
4739 enableval=$enable_opal;
4743 default_resolver=yes
4744 default_openldap=yes
4745 default_openssl=yes
4746 default_expat=yes
4747 default_sdl=yes
4748 default_sasl=yes
4749 default_plugins=yes
4750 default_tts=yes
4751 default_asn=yes
4752 default_stun=yes
4753 default_pipechan=yes
4754 default_dtmf=yes
4755 default_wavfile=yes
4756 default_socks=yes
4757 default_ftp=yes
4758 default_snmp=yes
4759 default_telnet=yes
4760 default_remconn=no
4761 default_serial=yes
4762 default_pop3smtp=yes
4763 default_audio=yes
4764 default_video=yes
4765 default_http=yes
4766 default_httpsvc=yes
4767 default_soap=yes
4768 default_xmlrpc=yes
4769 default_jabber=yes
4770 default_configfile=yes
4771 default_alsa=yes
4772 default_oss=yes
4773 default_ipv6=yes
4774 default_qos=yes
4775 default_sockagg=no
4776 default_vidfile=yes
4777 default_shmvideo=yes
4778 default_vxml=yes
4780 if test "${enable_openh323}x" = "yesx" -o "${enable_opal}x" = "yesx" ; then
4781 default_resolver=yes
4782 default_openldap=no
4783 default_openssl=yes
4784 default_expat=no
4785 default_sdl=yes
4786 default_sasl=no
4787 default_plugins=yes
4788 default_tts=yes
4789 default_asn=yes
4790 default_stun=yes
4791 default_pipechan=yes
4792 default_dtmf=yes
4793 default_wavfile=yes
4794 default_socks=no
4795 default_ftp=no
4796 default_snmp=no
4797 default_telnet=no
4798 default_remconn=no
4799 default_serial=no
4800 default_pop3smtp=no
4801 default_audio=yes
4802 default_video=yes
4803 default_http=yes
4804 default_httpsvc=no
4805 default_soap=no
4806 default_xmlrpc=no
4807 default_jabber=no
4808 default_configfile=yes
4809 default_alsa=yes
4810 default_oss=yes
4811 default_ipv6=yes
4812 default_qos=yes
4813 default_sockagg=no
4814 default_vidfile=yes
4815 default_shmvideo=no
4816 default_vxml=yes
4817 elif test "${enable_minsize}x" = "yesx" ; then
4818 default_resolver=no
4819 default_openldap=no
4820 default_openssl=no
4821 default_expat=no
4822 default_sdl=no
4823 default_sasl=no
4824 default_plugins=yes
4825 default_tts=no
4826 default_asn=yes
4827 default_stun=yes
4828 default_pipechan=no
4829 default_dtmf=no
4830 default_wavfile=no
4831 default_socks=no
4832 default_ftp=no
4833 default_snmp=no
4834 default_telnet=no
4835 default_remconn=no
4836 default_serial=no
4837 default_pop3smtp=no
4838 default_audio=yes
4839 default_video=yes
4840 default_http=yes
4841 default_httpsvc=no
4842 default_soap=no
4843 default_xmlrpc=no
4844 default_jabber=no
4845 default_configfile=no
4846 default_alsa=yes
4847 default_oss=no
4848 default_ipv6=no
4849 default_qos=no
4850 default_sockagg=no
4851 default_vidfile=no
4852 default_shmvideo=no
4853 default_vxml=no
4858 P_HAS_RECVMSG=
4859 { echo "$as_me:$LINENO: checking for recvmsg" >&5
4860 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; }
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <sys/types.h>
4868 #include <sys/socket.h>
4869 #include <netinet/in.h>
4871 main ()
4873 int t = SOL_IP; t = IP_PKTINFO; struct msghdr *msg; recvmsg(0, msg, 0);
4875 return 0;
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (ac_try="$ac_compile"
4880 case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4883 esac
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_compile") 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } && {
4892 test -z "$ac_cxx_werror_flag" ||
4893 test ! -s conftest.err
4894 } && test -s conftest.$ac_objext; then
4895 P_HAS_RECVMSG=1
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 if test "${P_HAS_RECVMSG}" = "1" ; then
4905 { echo "$as_me:$LINENO: result: yes" >&5
4906 echo "${ECHO_T}yes" >&6; }
4907 cat >>confdefs.h <<\_ACEOF
4908 #define P_HAS_RECVMSG 1
4909 _ACEOF
4911 else
4912 { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4917 P_HAS_STL_STREAMS=0
4918 { echo "$as_me:$LINENO: checking if using STL streams" >&5
4919 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6; }
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #include <iostream>
4928 main ()
4930 int v = (int)std::ios_base::seekdir();
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (ac_try="$ac_compile"
4937 case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940 esac
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_compile") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_cxx_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
4952 P_HAS_STL_STREAMS=1
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 if test "${P_HAS_STL_STREAMS}" = 1 ; then
4962 { echo "$as_me:$LINENO: result: yes" >&5
4963 echo "${ECHO_T}yes" >&6; }
4964 else
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4968 cat >>confdefs.h <<_ACEOF
4969 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
4970 _ACEOF
4974 P_HAS_ATOMIC_INT=0
4975 P_NEEDS_GNU_CXX_NAMESPACE=0
4976 { echo "$as_me:$LINENO: checking if atomic integer available" >&5
4977 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6; }
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <bits/atomicity.h>
4986 main ()
4988 _Atomic_word val;
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_compile") 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } && {
5007 test -z "$ac_cxx_werror_flag" ||
5008 test ! -s conftest.err
5009 } && test -s conftest.$ac_objext; then
5010 P_HAS_ATOMIC_INT=1
5011 else
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <ext/atomicity.h>
5023 main ()
5025 _Atomic_word val;
5027 return 0;
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (ac_try="$ac_compile"
5032 case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035 esac
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_compile") 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && {
5044 test -z "$ac_cxx_werror_flag" ||
5045 test ! -s conftest.err
5046 } && test -s conftest.$ac_objext; then
5047 P_HAS_ATOMIC_INT=2
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 if test ${P_HAS_ATOMIC_INT} != 0 ; then
5061 { echo "$as_me:$LINENO: result: yes" >&5
5062 echo "${ECHO_T}yes" >&6; }
5063 { echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
5064 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6; }
5065 if test ${P_HAS_ATOMIC_INT} = 1 ; then
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <bits/atomicity.h>
5074 main ()
5076 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_cxx_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5098 P_NEEDS_GNU_CXX_NAMESPACE=1
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 else
5108 P_HAS_ATOMIC_INT=1
5109 cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 #include <ext/atomicity.h>
5117 main ()
5119 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
5121 return 0;
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_cxx_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
5141 P_NEEDS_GNU_CXX_NAMESPACE=1
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
5152 { echo "$as_me:$LINENO: result: yes" >&5
5153 echo "${ECHO_T}yes" >&6; }
5154 else
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5158 else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6; }
5163 cat >>confdefs.h <<_ACEOF
5164 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
5165 _ACEOF
5167 cat >>confdefs.h <<_ACEOF
5168 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
5169 _ACEOF
5174 if test "${OSTYPE:-unknown}" = "solaris"; then
5175 { echo "$as_me:$LINENO: checking checking for FD_SETSIZE" >&5
5176 echo $ECHO_N "checking checking for FD_SETSIZE... $ECHO_C" >&6; }
5177 _FD_SYSTEM_FILE=/etc/system
5178 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -c1`
5179 if test "$_FD_SETSIZE" = "#"; then
5180 _FD_SETSIZE=4098
5181 else
5182 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -f2 -d'='`
5183 if test "x$_FD_SETSIZE" = "x"; then
5184 _FD_SETSIZE=4098
5185 else
5186 STDCCFLAGS="$STDCCFLAGS -DFD_SETSIZE=$_FD_SETSIZE"
5189 { echo "$as_me:$LINENO: result: $_FD_SETSIZE" >&5
5190 echo "${ECHO_T}$_FD_SETSIZE" >&6; }
5195 if test "${OSTYPE:-unknown}" = "solaris"; then
5196 { echo "$as_me:$LINENO: checking for upad128_t" >&5
5197 echo $ECHO_N "checking for upad128_t... $ECHO_C" >&6; }
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <sys/types.h>
5206 main ()
5208 upad128_t upad; upad._q = 0.0;
5210 return 0;
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (ac_try="$ac_compile"
5215 case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compile") 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } && {
5227 test -z "$ac_cxx_werror_flag" ||
5228 test ! -s conftest.err
5229 } && test -s conftest.$ac_objext; then
5230 has_upad128_t=y
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 if test ${has_upad128_t} == "y"; then
5240 { echo "$as_me:$LINENO: result: yes" >&5
5241 echo "${ECHO_T}yes" >&6; }
5242 cat >>confdefs.h <<\_ACEOF
5243 #define P_HAS_UPAD128_T 1
5244 _ACEOF
5246 else
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5254 if test ${OSTYPE} != Darwin ; then
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 #include <semaphore.h>
5263 main ()
5265 sem_t *s; sem_init(s, 0, 0);
5267 return 0;
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_cxx_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
5287 P_HAS_SEMAPHORES=1
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 { echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
5297 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6; }
5298 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
5299 cat >>confdefs.h <<\_ACEOF
5300 #define P_HAS_SEMAPHORES 1
5301 _ACEOF
5303 { echo "$as_me:$LINENO: result: yes" >&5
5304 echo "${ECHO_T}yes" >&6; }
5305 else
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5311 if test "${P_HAS_SEMAPHORES}x" == "x" ; then
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <semaphore.h>
5321 main ()
5323 sem_t *s = sem_open("test", O_CREAT)
5325 return 0;
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_cxx_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 P_HAS_NAMED_SEMAPHORES=1
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 { echo "$as_me:$LINENO: checking if named semaphores are available" >&5
5355 echo $ECHO_N "checking if named semaphores are available... $ECHO_C" >&6; }
5356 if test "${P_HAS_NAMED_SEMAPHORES}x" != "x"; then
5357 cat >>confdefs.h <<\_ACEOF
5358 #define P_HAS_NAMED_SEMAPHORES 1
5359 _ACEOF
5361 { echo "$as_me:$LINENO: result: yes" >&5
5362 echo "${ECHO_T}yes" >&6; }
5363 else
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5366 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
5367 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
5369 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
5371 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
5373 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
5380 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5381 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
5382 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 ac_check_lib_save_LIBS=$LIBS
5386 LIBS="-lpthread $LIBS"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5394 /* Override any GCC internal prototype to avoid an error.
5395 Use char because int might match the return type of a GCC
5396 builtin and then its argument prototype would still apply. */
5397 #ifdef __cplusplus
5398 extern "C"
5399 #endif
5400 char pthread_create ();
5402 main ()
5404 return pthread_create ();
5406 return 0;
5408 _ACEOF
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (ac_try="$ac_link"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_link") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } && {
5423 test -z "$ac_cxx_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest$ac_exeext &&
5426 $as_test_x conftest$ac_exeext; then
5427 ac_cv_lib_pthread_pthread_create=yes
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_cv_lib_pthread_pthread_create=no
5435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5436 conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5439 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5440 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
5441 if test $ac_cv_lib_pthread_pthread_create = yes; then
5442 HAS_PTHREADS=yes
5443 else
5444 HAS_PTHREADS=no
5447 if test ${HAS_PTHREADS} = yes ; then
5448 ENDLDLIBS="$ENDLDLIBS -lpthread"
5449 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
5450 else
5451 if test ${OSTYPE} = FreeBSD ; then
5452 HAS_PTHREADS=yes
5453 ENDLDLIBS="$ENDLDLIBS -pthread"
5454 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
5459 if test ${HAS_PTHREADS} != yes -a ${NEEDS_PTHREADS} = yes; then
5460 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
5461 echo "$as_me: error: must have pthreads!" >&2;}
5462 { (exit 1); exit 1; }; }
5466 if test ${HAS_PTHREADS} = yes ; then
5467 { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is available" >&5
5468 echo $ECHO_N "checking if pthread_mutex_timedlock is available... $ECHO_C" >&6; }
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <pthread.h>
5477 main ()
5479 pthread_mutex_timedlock(NULL, NULL);
5481 return 0;
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 HAS_PTHREADS_XPG6=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 HAS_PTHREADS_XPG6=no
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 if test ${HAS_PTHREADS_XPG6} = yes ; then
5511 { echo "$as_me:$LINENO: result: yes" >&5
5512 echo "${ECHO_T}yes" >&6; }
5514 cat >>confdefs.h <<\_ACEOF
5515 #define P_PTHREADS_XPG6 1
5516 _ACEOF
5518 else
5519 { echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6; }
5523 { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
5524 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
5525 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 ac_check_lib_save_LIBS=$LIBS
5529 LIBS="-lpthread $LIBS"
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5537 /* Override any GCC internal prototype to avoid an error.
5538 Use char because int might match the return type of a GCC
5539 builtin and then its argument prototype would still apply. */
5540 #ifdef __cplusplus
5541 extern "C"
5542 #endif
5543 char sem_timedwait ();
5545 main ()
5547 return sem_timedwait ();
5549 return 0;
5551 _ACEOF
5552 rm -f conftest.$ac_objext conftest$ac_exeext
5553 if { (ac_try="$ac_link"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_link") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_cxx_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest$ac_exeext &&
5569 $as_test_x conftest$ac_exeext; then
5570 ac_cv_lib_pthread_sem_timedwait=yes
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ac_cv_lib_pthread_sem_timedwait=no
5578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5579 conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5582 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
5583 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
5584 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
5585 HAS_SEMAPHORES_XPG6=yes
5586 else
5587 HAS_SEMAPHORES_XPG6=no
5590 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
5591 { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
5592 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <semaphore.h>
5601 main ()
5603 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
5605 return 0;
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_cxx_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 HAS_SEMAPHORES_XPG6=yes
5626 else
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 HAS_SEMAPHORES_XPG6=no
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
5636 cat >>confdefs.h <<\_ACEOF
5637 #define P_HAS_SEMAPHORES_XPG6 1
5638 _ACEOF
5640 { echo "$as_me:$LINENO: result: yes" >&5
5641 echo "${ECHO_T}yes" >&6; }
5642 else
5643 { echo "$as_me:$LINENO: result: no" >&5
5644 echo "${ECHO_T}no" >&6; }
5649 P_HAS_RECURSIVE_MUTEX=0
5650 { echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
5651 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6; }
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <pthread.h>
5660 main ()
5662 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
5664 return 0;
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_cxx_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 P_HAS_RECURSIVE_MUTEX=1
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
5694 { echo "$as_me:$LINENO: result: yes" >&5
5695 echo "${ECHO_T}yes" >&6; }
5696 else
5697 if test ${OSTYPE} == Darwin ; then
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <pthread.h>
5706 main ()
5708 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
5710 return 0;
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_cxx_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 P_HAS_RECURSIVE_MUTEX=1
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
5740 { echo "$as_me:$LINENO: result: yes" >&5
5741 echo "${ECHO_T}yes" >&6; }
5742 else
5743 { echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6; }
5746 else
5747 { echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6; }
5751 cat >>confdefs.h <<_ACEOF
5752 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
5753 _ACEOF
5759 for ac_header in regex.h
5761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 ac_res=`eval echo '${'$as_ac_Header'}'`
5769 { echo "$as_me:$LINENO: result: $ac_res" >&5
5770 echo "${ECHO_T}$ac_res" >&6; }
5771 else
5772 # Is the header compilable?
5773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <$ac_header>
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5786 case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_cxx_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5801 ac_header_compiler=yes
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_header_compiler=no
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5811 echo "${ECHO_T}$ac_header_compiler" >&6; }
5813 # Is the header present?
5814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <$ac_header>
5823 _ACEOF
5824 if { (ac_try="$ac_cpp conftest.$ac_ext"
5825 case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5838 test ! -s conftest.err
5839 }; then
5840 ac_header_preproc=yes
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 ac_header_preproc=no
5848 rm -f conftest.err conftest.$ac_ext
5849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850 echo "${ECHO_T}$ac_header_preproc" >&6; }
5852 # So? What about this header?
5853 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5854 yes:no: )
5855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5859 ac_header_preproc=yes
5861 no:yes:* )
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5876 esac
5877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 eval "$as_ac_Header=\$ac_header_preproc"
5884 ac_res=`eval echo '${'$as_ac_Header'}'`
5885 { echo "$as_me:$LINENO: result: $ac_res" >&5
5886 echo "${ECHO_T}$ac_res" >&6; }
5889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892 _ACEOF
5893 HAS_REGEX=yes
5896 done
5899 # Check whether --enable-internalregex was given.
5900 if test "${enable_internalregex+set}" = set; then
5901 enableval=$enable_internalregex; internalregex=$enableval
5904 if test "$internalregex" = "yes" ; then
5905 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
5906 echo "$as_me: Forcing use of internal regex library" >&6;}
5907 else
5908 if test "$HAS_REGEX" = "yes" ; then
5909 { echo "$as_me:$LINENO: checking for regcomp" >&5
5910 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
5911 if test "${ac_cv_func_regcomp+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
5921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5922 #define regcomp innocuous_regcomp
5924 /* System header to define __stub macros and hopefully few prototypes,
5925 which can conflict with char regcomp (); below.
5926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5927 <limits.h> exists even on freestanding compilers. */
5929 #ifdef __STDC__
5930 # include <limits.h>
5931 #else
5932 # include <assert.h>
5933 #endif
5935 #undef regcomp
5937 /* Override any GCC internal prototype to avoid an error.
5938 Use char because int might match the return type of a GCC
5939 builtin and then its argument prototype would still apply. */
5940 #ifdef __cplusplus
5941 extern "C"
5942 #endif
5943 char regcomp ();
5944 /* The GNU C library defines this for functions which it implements
5945 to always fail with ENOSYS. Some functions are actually named
5946 something starting with __ and the normal name is an alias. */
5947 #if defined __stub_regcomp || defined __stub___regcomp
5948 choke me
5949 #endif
5952 main ()
5954 return regcomp ();
5956 return 0;
5958 _ACEOF
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (ac_try="$ac_link"
5961 case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_link") 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && {
5973 test -z "$ac_cxx_werror_flag" ||
5974 test ! -s conftest.err
5975 } && test -s conftest$ac_exeext &&
5976 $as_test_x conftest$ac_exeext; then
5977 ac_cv_func_regcomp=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_func_regcomp=no
5985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5986 conftest$ac_exeext conftest.$ac_ext
5988 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
5989 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
5990 if test $ac_cv_func_regcomp = yes; then
5991 HAS_REGEX=yes
5994 if test "$HAS_REGEX" = "yes" ; then
5995 HAS_REGEX=1
5998 cat >>confdefs.h <<\_ACEOF
5999 #define P_REGEX 1
6000 _ACEOF
6002 if test ${OSTYPE} = mingw ; then
6003 ENDLDLIBS="$ENDLDLIBS -lregex"
6012 LIBS=""
6013 HAS_LIBDL=no
6014 P_DYNALINK=0
6015 if test ${OSTYPE} = beos ; then
6016 P_DYNALINK=1
6018 cat >>confdefs.h <<\_ACEOF
6019 #define P_DYNALINK 1
6020 _ACEOF
6022 elif test ${OSTYPE} = Darwin ; then
6023 P_DYNALINK=1
6025 cat >>confdefs.h <<\_ACEOF
6026 #define P_DYNALINK 1
6027 _ACEOF
6029 else
6031 for ac_header in dlfcn.h
6033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 ac_res=`eval echo '${'$as_ac_Header'}'`
6041 { echo "$as_me:$LINENO: result: $ac_res" >&5
6042 echo "${ECHO_T}$ac_res" >&6; }
6043 else
6044 # Is the header compilable?
6045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6054 #include <$ac_header>
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (ac_try="$ac_compile"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_cxx_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest.$ac_objext; then
6073 ac_header_compiler=yes
6074 else
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_header_compiler=no
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6083 echo "${ECHO_T}$ac_header_compiler" >&6; }
6085 # Is the header present?
6086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <$ac_header>
6095 _ACEOF
6096 if { (ac_try="$ac_cpp conftest.$ac_ext"
6097 case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } >/dev/null && {
6109 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6110 test ! -s conftest.err
6111 }; then
6112 ac_header_preproc=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_header_preproc=no
6120 rm -f conftest.err conftest.$ac_ext
6121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122 echo "${ECHO_T}$ac_header_preproc" >&6; }
6124 # So? What about this header?
6125 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6126 yes:no: )
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6131 ac_header_preproc=yes
6133 no:yes:* )
6134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6148 esac
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 eval "$as_ac_Header=\$ac_header_preproc"
6156 ac_res=`eval echo '${'$as_ac_Header'}'`
6157 { echo "$as_me:$LINENO: result: $ac_res" >&5
6158 echo "${ECHO_T}$ac_res" >&6; }
6161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6165 HAS_DLFCN=yes
6166 else
6167 HAS_DLFCN=no
6170 done
6172 if test "$HAS_DLFCN" = yes ; then
6173 { echo "$as_me:$LINENO: checking if dlopen is available" >&5
6174 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6; }
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <dlfcn.h>
6183 main ()
6185 void * p = dlopen("lib", 0);
6187 return 0;
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_compile") 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_cxx_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.$ac_objext; then
6207 HAS_DLOPEN=yes
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 HAS_DLOPEN=no
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 if test "$HAS_DLOPEN" = no ; then
6217 { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6219 else
6220 { echo "$as_me:$LINENO: result: yes" >&5
6221 echo "${ECHO_T}yes" >&6; }
6222 P_DYNALINK=1
6224 cat >>confdefs.h <<\_ACEOF
6225 #define P_DYNALINK 1
6226 _ACEOF
6228 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6229 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
6230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 ac_check_lib_save_LIBS=$LIBS
6234 LIBS="-ldl $LIBS"
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6242 /* Override any GCC internal prototype to avoid an error.
6243 Use char because int might match the return type of a GCC
6244 builtin and then its argument prototype would still apply. */
6245 #ifdef __cplusplus
6246 extern "C"
6247 #endif
6248 char dlopen ();
6250 main ()
6252 return dlopen ();
6254 return 0;
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (ac_try="$ac_link"
6259 case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_link") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_cxx_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest$ac_exeext &&
6274 $as_test_x conftest$ac_exeext; then
6275 ac_cv_lib_dl_dlopen=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_cv_lib_dl_dlopen=no
6283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6284 conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6287 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6288 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
6289 if test $ac_cv_lib_dl_dlopen = yes; then
6290 HAS_LIBDL=yes
6291 else
6292 HAS_LIBDL=no
6301 plugins="no"
6302 { echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
6303 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6; }
6304 # Check whether --enable-plugins was given.
6305 if test "${enable_plugins+set}" = set; then
6306 enableval=$enable_plugins;
6309 if test "${enable_plugins}z" = "z" ; then
6310 enable_plugins=default_plugins
6313 HAS_PLUGINS=
6314 if test "${enable_plugins}" = "no" ; then
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6317 elif test "${P_DYNALINK:-unset}" = "unset" ; then
6318 { echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
6319 echo "${ECHO_T}plugins disabled as dlopen not available" >&6; }
6320 else
6321 { echo "$as_me:$LINENO: result: plugins enabled" >&5
6322 echo "${ECHO_T}plugins enabled" >&6; }
6323 HAS_PLUGINS=1
6325 cat >>confdefs.h <<\_ACEOF
6326 #define P_HAS_PLUGINS 1
6327 _ACEOF
6333 if test "x$LIB64" != "x" ; then
6335 cat >>confdefs.h <<_ACEOF
6336 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
6337 _ACEOF
6339 else
6341 cat >>confdefs.h <<_ACEOF
6342 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
6343 _ACEOF
6349 # Check whether --enable-resolver was given.
6350 if test "${enable_resolver+set}" = set; then
6351 enableval=$enable_resolver;
6355 if test "${enable_resolver}z" = "z" ; then
6356 enable_resolver=$default_resolver
6359 HAS_RESOLVER=
6360 if test "$enable_resolver" = "no" ; then
6361 { echo "$as_me:$LINENO: DNS resolver disabled" >&5
6362 echo "$as_me: DNS resolver disabled" >&6;}
6363 else
6365 { echo "$as_me:$LINENO: checking for res_ninit" >&5
6366 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
6367 if test "${ac_cv_func_res_ninit+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 /* Define res_ninit to an innocuous variant, in case <limits.h> declares res_ninit.
6377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6378 #define res_ninit innocuous_res_ninit
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char res_ninit (); below.
6382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6383 <limits.h> exists even on freestanding compilers. */
6385 #ifdef __STDC__
6386 # include <limits.h>
6387 #else
6388 # include <assert.h>
6389 #endif
6391 #undef res_ninit
6393 /* Override any GCC internal prototype to avoid an error.
6394 Use char because int might match the return type of a GCC
6395 builtin and then its argument prototype would still apply. */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 char res_ninit ();
6400 /* The GNU C library defines this for functions which it implements
6401 to always fail with ENOSYS. Some functions are actually named
6402 something starting with __ and the normal name is an alias. */
6403 #if defined __stub_res_ninit || defined __stub___res_ninit
6404 choke me
6405 #endif
6408 main ()
6410 return res_ninit ();
6412 return 0;
6414 _ACEOF
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (ac_try="$ac_link"
6417 case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6420 esac
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_link") 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && {
6429 test -z "$ac_cxx_werror_flag" ||
6430 test ! -s conftest.err
6431 } && test -s conftest$ac_exeext &&
6432 $as_test_x conftest$ac_exeext; then
6433 ac_cv_func_res_ninit=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_cv_func_res_ninit=no
6441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6442 conftest$ac_exeext conftest.$ac_ext
6444 { echo "$as_me:$LINENO: result: $ac_cv_func_res_ninit" >&5
6445 echo "${ECHO_T}$ac_cv_func_res_ninit" >&6; }
6446 if test $ac_cv_func_res_ninit = yes; then
6447 HAS_RES_NINIT
6450 if test "${HAS_RES_NINIT}z" != "z" ; then
6451 cat >>confdefs.h <<\_ACEOF
6452 #define P_HAS_RES_NINIT 1
6453 _ACEOF
6455 HAS_RESOLVER=1
6456 RESOLVER_LIBS=""
6459 if test "${HAS_RESOLVER}z" = "z" ; then
6460 { echo "$as_me:$LINENO: checking for res_ninit in -lresolv" >&5
6461 echo $ECHO_N "checking for res_ninit in -lresolv... $ECHO_C" >&6; }
6462 LIBS="-lresolv"
6463 cat >conftest.$ac_ext <<_ACEOF
6465 #include <netinet/in.h>
6466 #include <resolv.h>
6467 int main(int argc,char **argv){
6468 res_state p; res_ninit(p);
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (ac_try="$ac_link"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_link") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_cxx_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest$ac_exeext &&
6488 $as_test_x conftest$ac_exeext; then
6489 HAS_RES_NINIT=1
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6498 conftest$ac_exeext conftest.$ac_ext
6499 if test "${HAS_RES_NINIT}z" != "z" ; then
6500 { echo "$as_me:$LINENO: result: yes" >&5
6501 echo "${ECHO_T}yes" >&6; }
6502 cat >>confdefs.h <<\_ACEOF
6503 #define P_HAS_RES_NINIT 1
6504 _ACEOF
6506 HAS_RESOLVER=1
6507 RESOLVER_LIBS="-lresolv"
6508 else
6509 { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6512 LIBS=""
6515 if test "${HAS_RESOLVER}z" = "z" ; then
6516 { echo "$as_me:$LINENO: checking for res_search" >&5
6517 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
6518 if test "${ac_cv_func_res_search+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
6528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6529 #define res_search innocuous_res_search
6531 /* System header to define __stub macros and hopefully few prototypes,
6532 which can conflict with char res_search (); below.
6533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6534 <limits.h> exists even on freestanding compilers. */
6536 #ifdef __STDC__
6537 # include <limits.h>
6538 #else
6539 # include <assert.h>
6540 #endif
6542 #undef res_search
6544 /* Override any GCC internal prototype to avoid an error.
6545 Use char because int might match the return type of a GCC
6546 builtin and then its argument prototype would still apply. */
6547 #ifdef __cplusplus
6548 extern "C"
6549 #endif
6550 char res_search ();
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined __stub_res_search || defined __stub___res_search
6555 choke me
6556 #endif
6559 main ()
6561 return res_search ();
6563 return 0;
6565 _ACEOF
6566 rm -f conftest.$ac_objext conftest$ac_exeext
6567 if { (ac_try="$ac_link"
6568 case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_link") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_cxx_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest$ac_exeext &&
6583 $as_test_x conftest$ac_exeext; then
6584 ac_cv_func_res_search=yes
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 ac_cv_func_res_search=no
6592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6593 conftest$ac_exeext conftest.$ac_ext
6595 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
6596 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
6597 if test $ac_cv_func_res_search = yes; then
6598 HAS_RESOLVER=1
6601 if test "${HAS_RESOLVER}z" != "z" ; then
6602 RESOLVER_LIBS=""
6606 if test "${HAS_RESOLVER}z" = "z" ; then
6607 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
6608 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
6609 LIBS="-lresolv"
6610 cat >conftest.$ac_ext <<_ACEOF
6612 #include <netinet/in.h>
6613 #include <resolv.h>
6614 int main(int argc,char **argv){
6615 res_search (NULL, 0, 0, NULL, 0);
6617 _ACEOF
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_link") 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_cxx_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest$ac_exeext &&
6635 $as_test_x conftest$ac_exeext; then
6636 HAS_RESOLVER=1
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6645 conftest$ac_exeext conftest.$ac_ext
6646 if test "${HAS_RESOLVER:-unset}" != "unset" ; then
6647 { echo "$as_me:$LINENO: result: yes" >&5
6648 echo "${ECHO_T}yes" >&6; }
6649 RESOLVER_LIBS="-lresolv"
6650 else
6651 { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6654 LIBS=""
6657 if test "${HAS_RESOLVER}z" = "z" ; then
6658 { echo "$as_me:$LINENO: checking for library containing __res_search" >&5
6659 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6; }
6660 if test "${ac_cv_search___res_search+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 ac_func_search_save_LIBS=$LIBS
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any GCC internal prototype to avoid an error.
6672 Use char because int might match the return type of a GCC
6673 builtin and then its argument prototype would still apply. */
6674 #ifdef __cplusplus
6675 extern "C"
6676 #endif
6677 char __res_search ();
6679 main ()
6681 return __res_search ();
6683 return 0;
6685 _ACEOF
6686 for ac_lib in '' resolv; do
6687 if test -z "$ac_lib"; then
6688 ac_res="none required"
6689 else
6690 ac_res=-l$ac_lib
6691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6693 rm -f conftest.$ac_objext conftest$ac_exeext
6694 if { (ac_try="$ac_link"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_link") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_cxx_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest$ac_exeext &&
6710 $as_test_x conftest$ac_exeext; then
6711 ac_cv_search___res_search=$ac_res
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6720 conftest$ac_exeext
6721 if test "${ac_cv_search___res_search+set}" = set; then
6722 break
6724 done
6725 if test "${ac_cv_search___res_search+set}" = set; then
6727 else
6728 ac_cv_search___res_search=no
6730 rm conftest.$ac_ext
6731 LIBS=$ac_func_search_save_LIBS
6733 { echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
6734 echo "${ECHO_T}$ac_cv_search___res_search" >&6; }
6735 ac_res=$ac_cv_search___res_search
6736 if test "$ac_res" != no; then
6737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6738 HAS_RESOLVER=1
6743 if test "${HAS_RESOLVER}z" != "z" ; then
6745 cat >>confdefs.h <<\_ACEOF
6746 #define P_DNS 1
6747 _ACEOF
6749 HAS_RESOLVER=1
6756 # Check whether --enable-sasl was given.
6757 if test "${enable_sasl+set}" = set; then
6758 enableval=$enable_sasl;
6762 if test "${enable_sasl}z" = "z" ; then
6763 enable_sasl=$default_sasl
6766 HAS_SASL=
6767 HAS_SASL2=
6769 if test "$enable_sasl" = "no" ; then
6770 { echo "$as_me:$LINENO: SASL disabled" >&5
6771 echo "$as_me: SASL disabled" >&6;}
6772 else
6774 { echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
6775 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6; }
6776 my_LIBS=$LIBS
6777 LIBS="$LIBS -lsasl2"
6778 cat >conftest.$ac_ext <<_ACEOF
6779 #ifdef __cplusplus
6780 extern "C"
6781 #endif
6782 char sasl_version ();
6784 main ()
6786 sasl_version ();
6788 return 0;
6790 _ACEOF
6791 rm -f conftest.$ac_objext conftest$ac_exeext
6792 if { (ac_try="$ac_link"
6793 case "(($ac_try" in
6794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6795 *) ac_try_echo=$ac_try;;
6796 esac
6797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6798 (eval "$ac_link") 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } && {
6805 test -z "$ac_cxx_werror_flag" ||
6806 test ! -s conftest.err
6807 } && test -s conftest$ac_exeext &&
6808 $as_test_x conftest$ac_exeext; then
6809 HAS_SASL2=1
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 HAS_SASL2=
6817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6818 conftest$ac_exeext conftest.$ac_ext
6819 if test "${HAS_SASL2}x" = "x" ; then
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6822 LIBS=$my_LIBS
6823 LIBS="$LIBS -lsasl"
6824 { echo "$as_me:$LINENO: checking for sasl_client_auth in sasl" >&5
6825 echo $ECHO_N "checking for sasl_client_auth in sasl... $ECHO_C" >&6; }
6826 cat >conftest.$ac_ext <<_ACEOF
6827 #ifdef __cplusplus
6828 extern "C"
6829 #endif
6830 char sasl_client_out ();
6832 main ()
6834 sasl_client_out ();
6836 return 0;
6838 _ACEOF
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (ac_try="$ac_link"
6841 case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844 esac
6845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846 (eval "$ac_link") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_cxx_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest$ac_exeext &&
6856 $as_test_x conftest$ac_exeext; then
6857 HAS_SASL=1
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 HAS_SASL=
6865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6866 conftest$ac_exeext conftest.$ac_ext
6867 if test "${HAS_SASL}x" = "x" ; then
6868 { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6870 else
6871 { echo "$as_me:$LINENO: result: yes" >&5
6872 echo "${ECHO_T}yes" >&6; }
6875 { echo "$as_me:$LINENO: result: yes" >&5
6876 echo "${ECHO_T}yes" >&6; }
6878 LIBS=$my_LIBS
6880 { echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
6881 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6; }
6882 cat >conftest.$ac_ext <<_ACEOF
6883 #include <sasl.h>
6884 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
6885 _ACEOF
6886 rm -f conftest.$ac_objext
6887 if { (ac_try="$ac_compile"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_compile") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_cxx_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest.$ac_objext; then
6903 HAS_INCLUDE_SASL_H=1
6904 else
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
6913 { echo "$as_me:$LINENO: result: yes" >&5
6914 echo "${ECHO_T}yes" >&6; }
6915 SASL_INCLUDED=1
6916 else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 { echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
6920 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6; }
6921 cat >conftest.$ac_ext <<_ACEOF
6922 #include <sasl/sasl.h>
6923 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_cxx_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.$ac_objext; then
6942 P_HAS_SASL_SASL_H=1
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
6952 { echo "$as_me:$LINENO: result: yes" >&5
6953 echo "${ECHO_T}yes" >&6; }
6954 SASL_INCLUDED=1
6955 cat >>confdefs.h <<\_ACEOF
6956 #define P_HAS_SASL_SASL_H 1
6957 _ACEOF
6959 else
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 HAS_SASL2=
6966 if test "${HAS_SASL2}x" != "x" ; then
6967 HAS_SASL2=1
6968 ENDLDLIBS="$ENDLDLIBS -lsasl2"
6969 cat >>confdefs.h <<\_ACEOF
6970 #define P_SASL2 1
6971 _ACEOF
6973 elif test "${HAS_SASL}x" != "x" ; then
6974 HAS_SASL=1
6975 ENDLDLIBS="$ENDLDLIBS -lsasl"
6976 cat >>confdefs.h <<\_ACEOF
6977 #define P_SASL 1
6978 _ACEOF
6980 else
6981 HAS_SASL=0
6989 HAS_MEDIALIB=no
6990 { echo "$as_me:$LINENO: checking for mlib_VideoColorJFIFYCC2RGB420_Nearest in -lmlib" >&5
6991 echo $ECHO_N "checking for mlib_VideoColorJFIFYCC2RGB420_Nearest in -lmlib... $ECHO_C" >&6; }
6992 if test "${ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 ac_check_lib_save_LIBS=$LIBS
6996 LIBS="-lmlib $LIBS"
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 char mlib_VideoColorJFIFYCC2RGB420_Nearest ();
7012 main ()
7014 return mlib_VideoColorJFIFYCC2RGB420_Nearest ();
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_link") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_cxx_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest$ac_exeext &&
7036 $as_test_x conftest$ac_exeext; then
7037 ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest=yes
7038 else
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7042 ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest=no
7045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7046 conftest$ac_exeext conftest.$ac_ext
7047 LIBS=$ac_check_lib_save_LIBS
7049 { echo "$as_me:$LINENO: result: $ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest" >&5
7050 echo "${ECHO_T}$ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest" >&6; }
7051 if test $ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest = yes; then
7052 HAS_MEDIALIB=yes
7053 else
7054 HAS_MEDIALIB=no
7057 if test $HAS_MEDIALIB = yes; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define P_MEDIALIB 1
7060 _ACEOF
7062 ENDLDLIBS="-lmlib $ENDLDLIBS"
7067 # Check whether --enable-openldap was given.
7068 if test "${enable_openldap+set}" = set; then
7069 enableval=$enable_openldap;
7073 if test "${enable_openldap}z" = "z" ; then
7074 enable_openldap=$default_openldap
7077 HAS_OPENLDAP=
7078 if test "$enable_openldap" = "no" ; then
7079 { echo "$as_me:$LINENO: OpenLDAP disabled" >&5
7080 echo "$as_me: OpenLDAP disabled" >&6;}
7081 else
7082 if test "${HAS_RESOLVER:-unset}" != "unset" -o "${OSTYPE}" = "mingw" ; then
7084 for ac_header in ldap.h
7086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 ac_res=`eval echo '${'$as_ac_Header'}'`
7094 { echo "$as_me:$LINENO: result: $ac_res" >&5
7095 echo "${ECHO_T}$ac_res" >&6; }
7096 else
7097 # Is the header compilable?
7098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7107 #include <$ac_header>
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_cxx_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 ac_header_compiler=yes
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_header_compiler=no
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7136 echo "${ECHO_T}$ac_header_compiler" >&6; }
7138 # Is the header present?
7139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <$ac_header>
7148 _ACEOF
7149 if { (ac_try="$ac_cpp conftest.$ac_ext"
7150 case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153 esac
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } >/dev/null && {
7162 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7163 test ! -s conftest.err
7164 }; then
7165 ac_header_preproc=yes
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_header_preproc=no
7173 rm -f conftest.err conftest.$ac_ext
7174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7175 echo "${ECHO_T}$ac_header_preproc" >&6; }
7177 # So? What about this header?
7178 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7179 yes:no: )
7180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7184 ac_header_preproc=yes
7186 no:yes:* )
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7201 esac
7202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 eval "$as_ac_Header=\$ac_header_preproc"
7209 ac_res=`eval echo '${'$as_ac_Header'}'`
7210 { echo "$as_me:$LINENO: result: $ac_res" >&5
7211 echo "${ECHO_T}$ac_res" >&6; }
7214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 _ACEOF
7218 HAS_OPENLDAP=1
7221 done
7224 if test "${OSTYPE:-unknown}" = "solaris"; then
7225 OPENLDAPSYSLIBS=-lposix4
7228 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
7229 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
7230 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
7231 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 ac_check_lib_save_LIBS=$LIBS
7235 LIBS="-lldap $LDAP_LIBRARIES $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7243 /* Override any GCC internal prototype to avoid an error.
7244 Use char because int might match the return type of a GCC
7245 builtin and then its argument prototype would still apply. */
7246 #ifdef __cplusplus
7247 extern "C"
7248 #endif
7249 char ldap_open ();
7251 main ()
7253 return ldap_open ();
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (ac_try="$ac_link"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_link") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_cxx_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest$ac_exeext &&
7275 $as_test_x conftest$ac_exeext; then
7276 ac_cv_lib_ldap_ldap_open=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 ac_cv_lib_ldap_ldap_open=no
7284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7285 conftest$ac_exeext conftest.$ac_ext
7286 LIBS=$ac_check_lib_save_LIBS
7288 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
7289 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
7290 if test $ac_cv_lib_ldap_ldap_open = yes; then
7291 HAS_OPENLDAP=1
7292 else
7293 HAS_OPENLDAP=
7296 else
7297 { echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
7298 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6; }
7299 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 test "$cross_compiling" = yes &&
7303 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7304 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7305 { (exit 1); exit 1; }; }
7306 if test -r "/usr/local/include/ldap.h"; then
7307 ac_cv_file__usr_local_include_ldap_h=yes
7308 else
7309 ac_cv_file__usr_local_include_ldap_h=no
7312 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
7313 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6; }
7314 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
7315 HAS_OPENLDAP=1
7318 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
7319 OPENLDAPINCLUDEDIR=/usr/local/include
7320 OPENLDAPLIBDIR=/usr/local/lib
7321 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
7322 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
7323 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 ac_check_lib_save_LIBS=$LIBS
7327 LIBS="-lldap -L/usr/local/lib $LDAP_LIBRARIES $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7335 /* Override any GCC internal prototype to avoid an error.
7336 Use char because int might match the return type of a GCC
7337 builtin and then its argument prototype would still apply. */
7338 #ifdef __cplusplus
7339 extern "C"
7340 #endif
7341 char ldap_open ();
7343 main ()
7345 return ldap_open ();
7347 return 0;
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_cxx_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 ac_cv_lib_ldap_ldap_open=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_cv_lib_ldap_ldap_open=no
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext conftest.$ac_ext
7378 LIBS=$ac_check_lib_save_LIBS
7380 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
7381 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
7382 if test $ac_cv_lib_ldap_ldap_open = yes; then
7383 HAS_OPENLDAP=1
7384 else
7385 HAS_OPENLDAP=
7392 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
7393 HAS_OPENLDAP=1
7395 cat >>confdefs.h <<\_ACEOF
7396 #define P_LDAP 1
7397 _ACEOF
7399 ENDLDLIBS="-lldap $LDAP_LIBRARIES $ENDLDLIBS"
7400 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
7401 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
7403 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
7404 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
7417 # Check whether --enable-openssl was given.
7418 if test "${enable_openssl+set}" = set; then
7419 enableval=$enable_openssl;
7423 if test "${enable_openssl}z" = "z" ; then
7424 enable_openssl=$default_openssl
7427 HAS_OPENSSL=
7428 if test "$enable_openssl" = "no" ; then
7429 { echo "$as_me:$LINENO: OpenSSL disabled" >&5
7430 echo "$as_me: OpenSSL disabled" >&6;}
7431 else
7433 if test ${OPENSSLDIR:-unset} != "unset" ; then
7434 { echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
7435 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
7436 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
7437 { echo "$as_me:$LINENO: result: yes" >&5
7438 echo "${ECHO_T}yes" >&6; }
7439 SSLHDR=1
7440 SSLINCLUDEDIR="${OPENSSLDIR}/include"
7441 SSLLIBDIR="${OPENSSLDIR}/lib"
7442 else
7443 { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7449 if test "${SSLHDR:-unset}" = "unset" ; then
7451 for ac_header in openssl/ssl.h
7453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_res=`eval echo '${'$as_ac_Header'}'`
7461 { echo "$as_me:$LINENO: result: $ac_res" >&5
7462 echo "${ECHO_T}$ac_res" >&6; }
7463 else
7464 # Is the header compilable?
7465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 $ac_includes_default
7474 #include <$ac_header>
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (ac_try="$ac_compile"
7478 case "(($ac_try" in
7479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7481 esac
7482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7483 (eval "$ac_compile") 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } && {
7490 test -z "$ac_cxx_werror_flag" ||
7491 test ! -s conftest.err
7492 } && test -s conftest.$ac_objext; then
7493 ac_header_compiler=yes
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 ac_header_compiler=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503 echo "${ECHO_T}$ac_header_compiler" >&6; }
7505 # Is the header present?
7506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 #include <$ac_header>
7515 _ACEOF
7516 if { (ac_try="$ac_cpp conftest.$ac_ext"
7517 case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520 esac
7521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7523 ac_status=$?
7524 grep -v '^ *+' conftest.er1 >conftest.err
7525 rm -f conftest.er1
7526 cat conftest.err >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } >/dev/null && {
7529 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7530 test ! -s conftest.err
7531 }; then
7532 ac_header_preproc=yes
7533 else
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 ac_header_preproc=no
7540 rm -f conftest.err conftest.$ac_ext
7541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7542 echo "${ECHO_T}$ac_header_preproc" >&6; }
7544 # So? What about this header?
7545 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7546 yes:no: )
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7551 ac_header_preproc=yes
7553 no:yes:* )
7554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7568 esac
7569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 eval "$as_ac_Header=\$ac_header_preproc"
7576 ac_res=`eval echo '${'$as_ac_Header'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7582 cat >>confdefs.h <<_ACEOF
7583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7584 _ACEOF
7585 SSLHDR=1
7588 done
7590 if test "${SSLHDR:-unset}" = "unset" ; then
7591 { echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
7592 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6; }
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #define OPENSSL_NO_KRB5
7595 #include <openssl/ssl.h>
7596 int main(int argc,char **argv){}
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7600 case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_cxx_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 SSLHDR=1
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 if test "${SSLHDR:-unset}" != "unset" ; then
7625 { echo "$as_me:$LINENO: result: yes" >&5
7626 echo "${ECHO_T}yes" >&6; }
7627 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
7628 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
7629 if test ${OSTYPE} = linux ; then
7630 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
7632 else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7639 if test "${SSLHDR:-unset}" = "unset" ; then
7641 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
7642 { echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
7643 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6; }
7644 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 else
7648 cat >conftest.$ac_ext <<_ACEOF
7649 #include "${openssl_dir}/include/openssl/ssl.h"
7650 int main(int argc,char **argv){ return 0; }
7651 _ACEOF
7652 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
7653 if test $? = 0 ; then
7654 { echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6; }
7656 SSLHDR=1
7657 SSLCCFLAGS=""
7658 SSLINCLUDEDIR="${openssl_dir}/include"
7659 SSLLIBDIR="${openssl_dir}/lib"
7660 break
7661 else
7662 { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7664 { echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
7665 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6; }
7666 cat >conftest.$ac_ext <<_ACEOF
7667 #define OPENSSL_NO_KRB5
7668 #include "${openssl_dir}/include/openssl/ssl.h"
7669 int main(int argc,char **argv){}
7670 _ACEOF
7671 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
7672 if test $? = 0 ; then
7673 { echo "$as_me:$LINENO: result: yes" >&5
7674 echo "${ECHO_T}yes" >&6; }
7675 SSLHDR=1
7676 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
7677 SSLINCLUDEDIR="${openssl_dir}/include"
7678 SSLLIBDIR="${openssl_dir}/lib"
7679 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
7680 if test ${OSTYPE} = linux ; then
7681 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
7683 break
7684 else
7685 { echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6; }
7690 done
7693 if test ${SSLHDR:-unset} != "unset" ; then
7695 cat >>confdefs.h <<\_ACEOF
7696 #define P_SSL 1
7697 _ACEOF
7699 HAS_OPENSSL=1
7700 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
7701 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
7703 if test ${SSLLIBDIR:-unset} != "unset" ; then
7704 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
7706 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
7707 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
7710 for ac_header in openssl/aes.h
7712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 ac_res=`eval echo '${'$as_ac_Header'}'`
7720 { echo "$as_me:$LINENO: result: $ac_res" >&5
7721 echo "${ECHO_T}$ac_res" >&6; }
7722 else
7723 # Is the header compilable?
7724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 $ac_includes_default
7733 #include <$ac_header>
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_cxx_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7752 ac_header_compiler=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_header_compiler=no
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7762 echo "${ECHO_T}$ac_header_compiler" >&6; }
7764 # Is the header present?
7765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7767 cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h. */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7773 #include <$ac_header>
7774 _ACEOF
7775 if { (ac_try="$ac_cpp conftest.$ac_ext"
7776 case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } >/dev/null && {
7788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7789 test ! -s conftest.err
7790 }; then
7791 ac_header_preproc=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_header_preproc=no
7799 rm -f conftest.err conftest.$ac_ext
7800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7801 echo "${ECHO_T}$ac_header_preproc" >&6; }
7803 # So? What about this header?
7804 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7805 yes:no: )
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7810 ac_header_preproc=yes
7812 no:yes:* )
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7827 esac
7828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 eval "$as_ac_Header=\$ac_header_preproc"
7835 ac_res=`eval echo '${'$as_ac_Header'}'`
7836 { echo "$as_me:$LINENO: result: $ac_res" >&5
7837 echo "${ECHO_T}$ac_res" >&6; }
7840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7841 cat >>confdefs.h <<_ACEOF
7842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7843 _ACEOF
7844 HAS_SSL_AES=yes
7845 else
7846 HAS_SSL_AES=no
7849 done
7851 if test "$HAS_SSL_AES" = yes ; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define P_SSL_AES 1
7855 _ACEOF
7859 { echo "$as_me:$LINENO: checking for const arg to d2i_AutoPrivateKey" >&5
7860 echo $ECHO_N "checking for const arg to d2i_AutoPrivateKey... $ECHO_C" >&6; }
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <openssl/evp.h>
7869 main ()
7871 EVP_PKEY **a; const unsigned char **p; long l;
7872 d2i_AutoPrivateKey(a, p, l);
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_compile") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_cxx_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest.$ac_objext; then
7895 P_SSL_USE_CONST=yes
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 if test "${P_SSL_USE_CONST}x" = "x" ; then
7905 { echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6; }
7907 else
7908 { echo "$as_me:$LINENO: result: yes" >&5
7909 echo "${ECHO_T}yes" >&6; }
7911 cat >>confdefs.h <<\_ACEOF
7912 #define P_SSL_USE_CONST 1
7913 _ACEOF
7926 # Check whether --enable-expat was given.
7927 if test "${enable_expat+set}" = set; then
7928 enableval=$enable_expat;
7932 if test "${enable_expat}z" = "z" ; then
7933 enable_expat=$default_expat
7936 HAS_EXPAT=
7937 if test "$enable_expat" = "no" ; then
7938 { echo "$as_me:$LINENO: Expat disabled" >&5
7939 echo "$as_me: Expat disabled" >&6;}
7940 else
7941 if test "${EXPATDIR}z" != "z" ; then
7942 as_ac_File=`echo "ac_cv_file_${EXPATDIR}/include/expat.h" | $as_tr_sh`
7943 { echo "$as_me:$LINENO: checking for ${EXPATDIR}/include/expat.h" >&5
7944 echo $ECHO_N "checking for ${EXPATDIR}/include/expat.h... $ECHO_C" >&6; }
7945 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 test "$cross_compiling" = yes &&
7949 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7950 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7951 { (exit 1); exit 1; }; }
7952 if test -r "${EXPATDIR}/include/expat.h"; then
7953 eval "$as_ac_File=yes"
7954 else
7955 eval "$as_ac_File=no"
7958 ac_res=`eval echo '${'$as_ac_File'}'`
7959 { echo "$as_me:$LINENO: result: $ac_res" >&5
7960 echo "${ECHO_T}$ac_res" >&6; }
7961 if test `eval echo '${'$as_ac_File'}'` = yes; then
7962 HAS_EXPAT=1
7965 if test "${HAS_EXPAT:-unset}" != "unset" ; then
7966 EXPATINCLUDEDIR=${EXPATDIR}/include
7967 EXPATLIBDIR=${EXPATDIR}/lib
7969 else
7971 for ac_header in expat.h
7973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 ac_res=`eval echo '${'$as_ac_Header'}'`
7981 { echo "$as_me:$LINENO: result: $ac_res" >&5
7982 echo "${ECHO_T}$ac_res" >&6; }
7983 else
7984 # Is the header compilable?
7985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 $ac_includes_default
7994 #include <$ac_header>
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_cxx_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
8013 ac_header_compiler=yes
8014 else
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_header_compiler=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8023 echo "${ECHO_T}$ac_header_compiler" >&6; }
8025 # Is the header present?
8026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <$ac_header>
8035 _ACEOF
8036 if { (ac_try="$ac_cpp conftest.$ac_ext"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } >/dev/null && {
8049 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8050 test ! -s conftest.err
8051 }; then
8052 ac_header_preproc=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_header_preproc=no
8060 rm -f conftest.err conftest.$ac_ext
8061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8062 echo "${ECHO_T}$ac_header_preproc" >&6; }
8064 # So? What about this header?
8065 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8066 yes:no: )
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8071 ac_header_preproc=yes
8073 no:yes:* )
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8088 esac
8089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094 eval "$as_ac_Header=\$ac_header_preproc"
8096 ac_res=`eval echo '${'$as_ac_Header'}'`
8097 { echo "$as_me:$LINENO: result: $ac_res" >&5
8098 echo "${ECHO_T}$ac_res" >&6; }
8101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 _ACEOF
8105 HAS_EXPAT=1
8108 done
8110 if test "${HAS_EXPAT:-unset}" != "unset" ; then
8111 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
8112 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
8113 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 ac_check_lib_save_LIBS=$LIBS
8117 LIBS="-lexpat $LIBS"
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8125 /* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 char XML_ParserCreate ();
8133 main ()
8135 return XML_ParserCreate ();
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_cxx_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest$ac_exeext &&
8157 $as_test_x conftest$ac_exeext; then
8158 ac_cv_lib_expat_XML_ParserCreate=yes
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8163 ac_cv_lib_expat_XML_ParserCreate=no
8166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8170 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
8171 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
8172 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
8173 HAS_EXPAT=1
8174 else
8175 HAS_EXPAT=
8178 else
8179 { echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
8180 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6; }
8181 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 test "$cross_compiling" = yes &&
8185 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8186 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8187 { (exit 1); exit 1; }; }
8188 if test -r "/usr/local/include/expat.h"; then
8189 ac_cv_file__usr_local_include_expat_h=yes
8190 else
8191 ac_cv_file__usr_local_include_expat_h=no
8194 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
8195 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6; }
8196 if test $ac_cv_file__usr_local_include_expat_h = yes; then
8197 HAS_EXPAT=1
8200 if test "${HAS_EXPAT:-unset}" != "unset" ; then
8201 EXPATINCLUDEDIR=/usr/local/include
8202 EXPATLIBDIR=/usr/local/lib
8207 if test "${HAS_EXPAT:-unset}" != "unset" ; then
8208 HAS_EXPAT=1
8210 cat >>confdefs.h <<\_ACEOF
8211 #define P_EXPAT 1
8212 _ACEOF
8214 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
8215 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
8217 if test ${EXPATLIBDIR:-unset} != "unset" ; then
8218 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
8220 ENDLDLIBS="$ENDLDLIBS -lexpat"
8230 HAS_VXML=
8231 HAS_JABBER=
8232 HAS_XMLRPC=
8233 HAS_SOAP=
8234 if test "$enable_expat" = "no" ; then
8235 { echo "$as_me:$LINENO: VXML disabled as Expat is disabled" >&5
8236 echo "$as_me: VXML disabled as Expat is disabled" >&6;}
8237 { echo "$as_me:$LINENO: Jabber disabled as Expat is disabled" >&5
8238 echo "$as_me: Jabber disabled as Expat is disabled" >&6;}
8239 { echo "$as_me:$LINENO: XMLRPC disabled as Expat is disabled" >&5
8240 echo "$as_me: XMLRPC disabled as Expat is disabled" >&6;}
8241 else
8244 # Check whether --enable-vxml was given.
8245 if test "${enable_vxml+set}" = set; then
8246 enableval=$enable_vxml;
8250 if test "${enable_vxml}z" = "z" ; then
8251 enable_vxml=$default_vxml
8253 if test "$enable_vxml" = "no" ; then
8254 { echo "$as_me:$LINENO: VXML disabled" >&5
8255 echo "$as_me: VXML disabled" >&6;}
8256 else
8257 cat >>confdefs.h <<\_ACEOF
8258 #define P_VXML 1
8259 _ACEOF
8261 HAS_VXML=1
8265 # Check whether --enable-jabber was given.
8266 if test "${enable_jabber+set}" = set; then
8267 enableval=$enable_jabber;
8271 if test "${enable_jabber}z" = "z" ; then
8272 enable_jabber=$default_jabber
8274 if test "$enable_jabber" = "no" ; then
8275 { echo "$as_me:$LINENO: Jabber disabled" >&5
8276 echo "$as_me: Jabber disabled" >&6;}
8277 else
8278 cat >>confdefs.h <<\_ACEOF
8279 #define P_JABBER 1
8280 _ACEOF
8282 HAS_JABBER=1
8286 # Check whether --enable-xmlrpc was given.
8287 if test "${enable_xmlrpc+set}" = set; then
8288 enableval=$enable_xmlrpc;
8292 if test "${enable_xmlrpc}z" = "z" ; then
8293 enable_xmlrpc=$default_xmlrpc
8295 if test "$enable_xmlrpc" = "no" ; then
8296 { echo "$as_me:$LINENO: XMLRPC disabled" >&5
8297 echo "$as_me: XMLRPC disabled" >&6;}
8298 else
8299 cat >>confdefs.h <<\_ACEOF
8300 #define P_XMLRPC 1
8301 _ACEOF
8303 HAS_XMLRPC=1
8307 # Check whether --enable-soap was given.
8308 if test "${enable_soap+set}" = set; then
8309 enableval=$enable_soap;
8313 if test "${enable_soap}z" = "z" ; then
8314 enable_soap=$default_soap
8316 if test "$enable_soap" = "no" ; then
8317 { echo "$as_me:$LINENO: SOAP disabled" >&5
8318 echo "$as_me: SOAP disabled" >&6;}
8319 else
8320 cat >>confdefs.h <<\_ACEOF
8321 #define P_SOAP 1
8322 _ACEOF
8324 HAS_SOAP=1
8335 # Check whether --enable-expat was given.
8336 if test "${enable_expat+set}" = set; then
8337 enableval=$enable_expat;
8341 if test "${enable_tts}z" = "z" ; then
8342 enable_tts=$default_tts
8345 HAS_TTS=
8346 if test "$enable_tts" = "no" ; then
8347 { echo "$as_me:$LINENO: Text-to-speech disabled" >&5
8348 echo "$as_me: Text-to-speech disabled" >&6;}
8349 else
8350 cat >>confdefs.h <<\_ACEOF
8351 #define P_TTS 1
8352 _ACEOF
8354 HAS_TTS=1
8360 # Check whether --enable-ipv6 was given.
8361 if test "${enable_ipv6+set}" = set; then
8362 enableval=$enable_ipv6;
8366 if test "${enable_ipv6}z" = "z" ; then
8367 enable_ipv6=$default_ipv6
8370 HAS_IPV6=
8372 if test "$enable_ipv6" = "no" ; then
8373 { echo "$as_me:$LINENO: IPV6 disabled" >&5
8374 echo "$as_me: IPV6 disabled" >&6;}
8375 else
8376 { echo "$as_me:$LINENO: checking for IPv6 support" >&5
8377 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6; }
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <netinet/in.h>
8387 main ()
8389 struct sockaddr_in6 s; s.sin6_scope_id = 0;
8391 return 0;
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_cxx_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8411 HAS_IPV6=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 HAS_IPV6=no
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 if test $HAS_IPV6 = no ; then
8421 { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8423 else
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 #include <sys/socket.h>
8431 #include <netdb.h>
8433 main ()
8435 getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
8437 return 0;
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_cxx_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest.$ac_objext; then
8457 HAS_IPV6=yes
8458 else
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 HAS_IPV6=no
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 if test $HAS_IPV6 = no ; then
8467 { echo "$as_me:$LINENO: result: no" >&5
8468 echo "${ECHO_T}no" >&6; }
8469 else
8470 { echo "$as_me:$LINENO: result: yes" >&5
8471 echo "${ECHO_T}yes" >&6; }
8473 cat >>confdefs.h <<\_ACEOF
8474 #define P_HAS_IPV6 1
8475 _ACEOF
8477 HAS_IPV6=1
8485 # Check whether --enable-qos was given.
8486 if test "${enable_qos+set}" = set; then
8487 enableval=$enable_qos;
8491 if test "${enable_qos}z" = "z" ; then
8492 enable_qos=$default_qos
8495 if test "$enable_qos" != "no" ; then
8497 cat >>confdefs.h <<\_ACEOF
8498 #define P_HAS_QOS 1
8499 _ACEOF
8506 # Check whether --enable-sdl was given.
8507 if test "${enable_sdl+set}" = set; then
8508 enableval=$enable_sdl;
8512 if test "${enable_sdl}z" = "z" ; then
8513 enable_sdl=$default_sdl
8516 HAS_SDL=
8517 if test "$enable_sdl" = "no" ; then
8518 { echo "$as_me:$LINENO: SDL disabled" >&5
8519 echo "$as_me: SDL disabled" >&6;}
8520 cat >>confdefs.h <<\_ACEOF
8521 #define P_SDL 0
8522 _ACEOF
8524 else
8525 if test "${SDLLIB:-unset}" = "unset" ; then
8526 SDLLIB=SDL
8530 for ac_header in SDL/SDL.h
8532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_res=`eval echo '${'$as_ac_Header'}'`
8540 { echo "$as_me:$LINENO: result: $ac_res" >&5
8541 echo "${ECHO_T}$ac_res" >&6; }
8542 else
8543 # Is the header compilable?
8544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #include <$ac_header>
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (ac_try="$ac_compile"
8557 case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_cxx_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 ac_header_compiler=yes
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 ac_header_compiler=no
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582 echo "${ECHO_T}$ac_header_compiler" >&6; }
8584 # Is the header present?
8585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 #include <$ac_header>
8594 _ACEOF
8595 if { (ac_try="$ac_cpp conftest.$ac_ext"
8596 case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } >/dev/null && {
8608 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8609 test ! -s conftest.err
8610 }; then
8611 ac_header_preproc=yes
8612 else
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 ac_header_preproc=no
8619 rm -f conftest.err conftest.$ac_ext
8620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8621 echo "${ECHO_T}$ac_header_preproc" >&6; }
8623 # So? What about this header?
8624 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8625 yes:no: )
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8630 ac_header_preproc=yes
8632 no:yes:* )
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8647 esac
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 eval "$as_ac_Header=\$ac_header_preproc"
8655 ac_res=`eval echo '${'$as_ac_Header'}'`
8656 { echo "$as_me:$LINENO: result: $ac_res" >&5
8657 echo "${ECHO_T}$ac_res" >&6; }
8660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8661 cat >>confdefs.h <<_ACEOF
8662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8663 _ACEOF
8664 HAS_SDL=1
8667 done
8669 if test "${HAS_SDL:-unset}" != "unset" ; then
8670 if test "${X11LIBDIR:-unset}" == "unset" ; then
8671 X11LIBDIR=/usr/X11R6/lib
8673 { echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
8674 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6; }
8675 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 char SDL_CreateYUVOverlay ();
8695 main ()
8697 return SDL_CreateYUVOverlay ();
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_cxx_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest$ac_exeext &&
8719 $as_test_x conftest$ac_exeext; then
8720 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
8728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8729 conftest$ac_exeext conftest.$ac_ext
8730 LIBS=$ac_check_lib_save_LIBS
8732 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
8733 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6; }
8734 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
8735 HAS_SDL=1
8736 else
8737 HAS_SDL=
8742 if test "${HAS_SDL:-unset}" = "unset" ; then
8743 if test "${ac_cv_header_SDL11_SDL_h+set}" = set; then
8744 { echo "$as_me:$LINENO: checking for SDL11/SDL.h" >&5
8745 echo $ECHO_N "checking for SDL11/SDL.h... $ECHO_C" >&6; }
8746 if test "${ac_cv_header_SDL11_SDL_h+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL11_SDL_h" >&5
8750 echo "${ECHO_T}$ac_cv_header_SDL11_SDL_h" >&6; }
8751 else
8752 # Is the header compilable?
8753 { echo "$as_me:$LINENO: checking SDL11/SDL.h usability" >&5
8754 echo $ECHO_N "checking SDL11/SDL.h usability... $ECHO_C" >&6; }
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 $ac_includes_default
8762 #include <SDL11/SDL.h>
8763 _ACEOF
8764 rm -f conftest.$ac_objext
8765 if { (ac_try="$ac_compile"
8766 case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_compile") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_cxx_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest.$ac_objext; then
8781 ac_header_compiler=yes
8782 else
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_header_compiler=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8791 echo "${ECHO_T}$ac_header_compiler" >&6; }
8793 # Is the header present?
8794 { echo "$as_me:$LINENO: checking SDL11/SDL.h presence" >&5
8795 echo $ECHO_N "checking SDL11/SDL.h presence... $ECHO_C" >&6; }
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 #include <SDL11/SDL.h>
8803 _ACEOF
8804 if { (ac_try="$ac_cpp conftest.$ac_ext"
8805 case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808 esac
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } >/dev/null && {
8817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8818 test ! -s conftest.err
8819 }; then
8820 ac_header_preproc=yes
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_header_preproc=no
8828 rm -f conftest.err conftest.$ac_ext
8829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830 echo "${ECHO_T}$ac_header_preproc" >&6; }
8832 # So? What about this header?
8833 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8834 yes:no: )
8835 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
8836 echo "$as_me: WARNING: SDL11/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: proceeding with the compiler's result" >&5
8838 echo "$as_me: WARNING: SDL11/SDL.h: proceeding with the compiler's result" >&2;}
8839 ac_header_preproc=yes
8841 no:yes:* )
8842 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: present but cannot be compiled" >&5
8843 echo "$as_me: WARNING: SDL11/SDL.h: present but cannot be compiled" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: check for missing prerequisite headers?" >&5
8845 echo "$as_me: WARNING: SDL11/SDL.h: check for missing prerequisite headers?" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: see the Autoconf documentation" >&5
8847 echo "$as_me: WARNING: SDL11/SDL.h: see the Autoconf documentation" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
8849 echo "$as_me: WARNING: SDL11/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: proceeding with the preprocessor's result" >&5
8851 echo "$as_me: WARNING: SDL11/SDL.h: proceeding with the preprocessor's result" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: in the future, the compiler will take precedence" >&5
8853 echo "$as_me: WARNING: SDL11/SDL.h: in the future, the compiler will take precedence" >&2;}
8856 esac
8857 { echo "$as_me:$LINENO: checking for SDL11/SDL.h" >&5
8858 echo $ECHO_N "checking for SDL11/SDL.h... $ECHO_C" >&6; }
8859 if test "${ac_cv_header_SDL11_SDL_h+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 ac_cv_header_SDL11_SDL_h=$ac_header_preproc
8864 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL11_SDL_h" >&5
8865 echo "${ECHO_T}$ac_cv_header_SDL11_SDL_h" >&6; }
8868 if test $ac_cv_header_SDL11_SDL_h = yes; then
8869 HAS_SDL=1
8873 if test "${HAS_SDL:-unset}" != "unset" ; then
8874 SDLLIB=SDL-1.1
8878 if test "${HAS_SDL:-unset}" != "unset" ; then
8879 HAS_SDL=1
8881 cat >>confdefs.h <<\_ACEOF
8882 #define P_SDL 1
8883 _ACEOF
8885 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
8886 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
8888 if test ${SDLLIBDIR:-unset} != "unset" ; then
8889 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
8891 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
8899 # Check whether --enable-video was given.
8900 if test "${enable_video+set}" = set; then
8901 enableval=$enable_video;
8905 if test "${enable_video}z" = "z" ; then
8906 enable_video=$default_video
8909 HAS_VIDEO=
8910 HAS_VIDEO_CAPTURE=
8912 if test "$enable_video" = "no" ; then
8914 cat >>confdefs.h <<\_ACEOF
8915 #define NO_VIDEO_CAPTURE
8916 _ACEOF
8918 else
8919 cat >>confdefs.h <<\_ACEOF
8920 #define P_VIDEO 1
8921 _ACEOF
8923 HAS_VIDEO=1
8924 if test "$enable_plugins" = "yes" ; then
8925 HAS_VIDEO_CAPTURE=1
8926 else
8927 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
8928 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
8929 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
8930 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
8934 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
8935 else
8936 # Is the header compilable?
8937 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
8938 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 #include <linux/videodev.h>
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (ac_try="$ac_compile"
8950 case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_cxx_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
8965 ac_header_compiler=yes
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_header_compiler=no
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8975 echo "${ECHO_T}$ac_header_compiler" >&6; }
8977 # Is the header present?
8978 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
8979 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 #include <linux/videodev.h>
8987 _ACEOF
8988 if { (ac_try="$ac_cpp conftest.$ac_ext"
8989 case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992 esac
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } >/dev/null && {
9001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9002 test ! -s conftest.err
9003 }; then
9004 ac_header_preproc=yes
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_header_preproc=no
9012 rm -f conftest.err conftest.$ac_ext
9013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9014 echo "${ECHO_T}$ac_header_preproc" >&6; }
9016 # So? What about this header?
9017 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9018 yes:no: )
9019 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9020 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
9022 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
9023 ac_header_preproc=yes
9025 no:yes:* )
9026 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
9027 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
9029 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
9031 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
9033 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
9035 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
9037 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
9040 esac
9041 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
9042 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
9043 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 ac_cv_header_linux_videodev_h=$ac_header_preproc
9048 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
9052 if test $ac_cv_header_linux_videodev_h = yes; then
9053 HAS_VIDEO_CAPTURE=1
9057 if test "${HAS_VIDEO_CAPTURE}z" = "z" ; then
9058 { echo "$as_me:$LINENO: No Video Capture support" >&5
9059 echo "$as_me: No Video Capture support" >&6;}
9061 cat >>confdefs.h <<\_ACEOF
9062 #define NO_VIDEO_CAPTURE
9063 _ACEOF
9067 # Check whether --enable-v4l was given.
9068 if test "${enable_v4l+set}" = set; then
9069 enableval=$enable_v4l;
9072 # Check whether --enable-v4l2 was given.
9073 if test "${enable_v4l2+set}" = set; then
9074 enableval=$enable_v4l2;
9077 # Check whether --enable-bsdvideo was given.
9078 if test "${enable_bsdvideo+set}" = set; then
9079 enableval=$enable_bsdvideo;
9082 # Check whether --enable-avc was given.
9083 if test "${enable_avc+set}" = set; then
9084 enableval=$enable_avc;
9087 # Check whether --enable-dc was given.
9088 if test "${enable_dc+set}" = set; then
9089 enableval=$enable_dc;
9099 # Check whether --enable-shm_video was given.
9100 if test "${enable_shm_video+set}" = set; then
9101 enableval=$enable_shm_video; shm_video=$enableval
9105 if test "${enable_shmvideo}z" = "z" ; then
9106 shm_video=$default_shmvideo
9109 USE_SHM_VIDEO_DEVICES=
9110 if test "$shm_video" = "yes" ; then
9111 USE_SHM_VIDEO_DEVICES=1
9112 { echo "$as_me:$LINENO: Shared memory video devices enabled" >&5
9113 echo "$as_me: Shared memory video devices enabled" >&6;}
9114 else
9115 { echo "$as_me:$LINENO: Shared memory video devices disabled" >&5
9116 echo "$as_me: Shared memory video devices disabled" >&6;}
9122 # Check whether --enable-asn was given.
9123 if test "${enable_asn+set}" = set; then
9124 enableval=$enable_asn;
9128 if test "${enable_asn}z" = "z" ; then
9129 enable_asn=$default_asn
9132 HAS_ASN=
9133 if test "$enable_asn" = "no" ; then
9134 { echo "$as_me:$LINENO: ASN decoding/encoding support disabled" >&5
9135 echo "$as_me: ASN decoding/encoding support disabled" >&6;}
9136 else
9137 HAS_ASN=1
9138 cat >>confdefs.h <<\_ACEOF
9139 #define P_ASN 1
9140 _ACEOF
9147 # Check whether --enable-stun was given.
9148 if test "${enable_stun+set}" = set; then
9149 enableval=$enable_stun;
9153 if test "${enable_stun}z" = "z" ; then
9154 enable_stun=$default_stun
9157 HAS_STUN=
9158 if test "$enable_stun" = "no" ; then
9159 { echo "$as_me:$LINENO: STUN decoding/encoding support disabled" >&5
9160 echo "$as_me: STUN decoding/encoding support disabled" >&6;}
9161 else
9162 HAS_STUN=1
9163 cat >>confdefs.h <<\_ACEOF
9164 #define P_STUN 1
9165 _ACEOF
9172 # Check whether --enable-pipechan was given.
9173 if test "${enable_pipechan+set}" = set; then
9174 enableval=$enable_pipechan;
9178 if test "${enable_pipechan}z" = "z" ; then
9179 enable_pipechan=$default_pipechan
9182 HAS_PIPECHAN=
9183 if test "$enable_pipechan" = "no" ; then
9184 { echo "$as_me:$LINENO: pipechannel support disabled" >&5
9185 echo "$as_me: pipechannel support disabled" >&6;}
9186 else
9187 HAS_PIPECHAN=1
9188 cat >>confdefs.h <<\_ACEOF
9189 #define P_PIPECHAN 1
9190 _ACEOF
9197 # Check whether --enable-dtmf was given.
9198 if test "${enable_dtmf+set}" = set; then
9199 enableval=$enable_dtmf;
9203 if test "${enable_dtmf}z" = "z" ; then
9204 enable_dtmf=$default_dtmf
9207 HAS_DTMF=
9208 if test "$enable_dtmf" = "no" ; then
9209 { echo "$as_me:$LINENO: DTMF decoding/encoding support disabled" >&5
9210 echo "$as_me: DTMF decoding/encoding support disabled" >&6;}
9211 else
9212 HAS_DTMF=1
9213 cat >>confdefs.h <<\_ACEOF
9214 #define P_DTMF 1
9215 _ACEOF
9222 # Check whether --enable-wavfile was given.
9223 if test "${enable_wavfile+set}" = set; then
9224 enableval=$enable_wavfile;
9228 if test "${enable_wavfile}z" = "z" ; then
9229 enable_wavfile=$default_wavfile
9232 HAS_WAVFILE=
9233 if test "$enable_wavfile" = "no" ; then
9234 { echo "$as_me:$LINENO: WAV file support disabled" >&5
9235 echo "$as_me: WAV file support disabled" >&6;}
9236 else
9237 HAS_WAVFILE=1
9238 cat >>confdefs.h <<\_ACEOF
9239 #define P_WAVFILE 1
9240 _ACEOF
9247 # Check whether --enable-socks was given.
9248 if test "${enable_socks+set}" = set; then
9249 enableval=$enable_socks;
9253 if test "${enable_socks}z" = "z" ; then
9254 enable_socks=$default_socks
9257 HAS_SOCKS=
9258 if test "$enable_socks" = "no" ; then
9259 { echo "$as_me:$LINENO: SOCKS decoding/encoding support disabled" >&5
9260 echo "$as_me: SOCKS decoding/encoding support disabled" >&6;}
9261 else
9262 HAS_SOCKS=1
9263 cat >>confdefs.h <<\_ACEOF
9264 #define P_SOCKS 1
9265 _ACEOF
9272 # Check whether --enable-rtp was given.
9273 if test "${enable_rtp+set}" = set; then
9274 enableval=$enable_rtp;
9278 if test "${enable_ftp}z" = "z" ; then
9279 enable_ftp=$default_ftp
9282 HAS_FTP=
9283 if test "$enable_ftp" = "no" ; then
9284 { echo "$as_me:$LINENO: FTP protocol support disabled" >&5
9285 echo "$as_me: FTP protocol support disabled" >&6;}
9286 else
9287 HAS_FTP=1
9288 cat >>confdefs.h <<\_ACEOF
9289 #define P_FTP 1
9290 _ACEOF
9297 # Check whether --enable-snmp was given.
9298 if test "${enable_snmp+set}" = set; then
9299 enableval=$enable_snmp;
9303 if test "${enable_snmp}z" = "z" ; then
9304 enable_snmp=$default_snmp
9307 HAS_SNMP=
9308 if test "$enable_snmp" = "no" ; then
9309 { echo "$as_me:$LINENO: SNMP protocol support disabled" >&5
9310 echo "$as_me: SNMP protocol support disabled" >&6;}
9311 else
9312 HAS_SNMP=1
9313 cat >>confdefs.h <<\_ACEOF
9314 #define P_SNMP 1
9315 _ACEOF
9322 # Check whether --enable-telnet was given.
9323 if test "${enable_telnet+set}" = set; then
9324 enableval=$enable_telnet;
9328 if test "${enable_telnet}z" = "z" ; then
9329 enable_telnet=$default_telnet
9332 HAS_TELNET=
9333 if test "$enable_telnet" = "no" ; then
9334 { echo "$as_me:$LINENO: Telnet protocol support disabled" >&5
9335 echo "$as_me: Telnet protocol support disabled" >&6;}
9336 else
9337 HAS_TELNET=1
9338 cat >>confdefs.h <<\_ACEOF
9339 #define P_TELNET 1
9340 _ACEOF
9347 # Check whether --enable-remconn was given.
9348 if test "${enable_remconn+set}" = set; then
9349 enableval=$enable_remconn;
9353 if test "${enable_remconn}z" = "z" ; then
9354 enable_remconn=$default_remconn
9357 HAS_REMCONN=
9358 if test "$enable_remconn" = "no" ; then
9359 { echo "$as_me:$LINENO: Remote connection support disabled" >&5
9360 echo "$as_me: Remote connection support disabled" >&6;}
9361 else
9362 HAS_REMCONN=1
9363 cat >>confdefs.h <<\_ACEOF
9364 #define P_REMCONN 1
9365 _ACEOF
9372 # Check whether --enable-serial was given.
9373 if test "${enable_serial+set}" = set; then
9374 enableval=$enable_serial;
9378 if test "${enable_serial}z" = "z" ; then
9379 enable_serial=$default_serial
9382 HAS_SERIAL=
9383 if test "$enable_serial" = "no" ; then
9384 { echo "$as_me:$LINENO: Serial port support disabled" >&5
9385 echo "$as_me: Serial port support disabled" >&6;}
9386 else
9387 HAS_SERIAL=1
9388 cat >>confdefs.h <<\_ACEOF
9389 #define P_SERIAL 1
9390 _ACEOF
9397 # Check whether --enable-pop3smtp was given.
9398 if test "${enable_pop3smtp+set}" = set; then
9399 enableval=$enable_pop3smtp;
9403 if test "${enable_pop3smtp}z" = "z" ; then
9404 enable_pop3smtp=$default_pop3smtp
9407 HAS_POP3SMTP=
9408 if test "$enable_pop3smtp" = "no" ; then
9409 { echo "$as_me:$LINENO: POP3/SMTP protocol support disabled" >&5
9410 echo "$as_me: POP3/SMTP protocol support disabled" >&6;}
9411 else
9412 HAS_POP3SMTP=1
9413 cat >>confdefs.h <<\_ACEOF
9414 #define P_POP3SMTP 1
9415 _ACEOF
9422 # Check whether --enable-http was given.
9423 if test "${enable_http+set}" = set; then
9424 enableval=$enable_http;
9428 if test "${enable_http}z" = "z" ; then
9429 enable_http=$default_http
9432 HAS_HTTP=
9433 if test "$enable_http" = "no" ; then
9434 { echo "$as_me:$LINENO: HTTP protocol support disabled" >&5
9435 echo "$as_me: HTTP protocol support disabled" >&6;}
9436 else
9437 HAS_HTTP=1
9438 cat >>confdefs.h <<\_ACEOF
9439 #define P_HTTP 1
9440 _ACEOF
9447 # Check whether --enable-httpsvc was given.
9448 if test "${enable_httpsvc+set}" = set; then
9449 enableval=$enable_httpsvc;
9453 if test "${enable_httpsvc}z" = "z" ; then
9454 enable_httpsvc=$default_httpsvc
9457 HAS_HTTPSVC=
9458 if test "$enable_httpsvc" = "no" ; then
9459 { echo "$as_me:$LINENO: HTTP service support disabled" >&5
9460 echo "$as_me: HTTP service support disabled" >&6;}
9461 else
9462 HAS_HTTPSVC=1
9463 cat >>confdefs.h <<\_ACEOF
9464 #define P_HTTPSVC 1
9465 _ACEOF
9472 # Check whether --enable-configfile was given.
9473 if test "${enable_configfile+set}" = set; then
9474 enableval=$enable_configfile;
9478 if test "${enable_configfile}z" = "z" ; then
9479 enable_configfile=$default_configfile
9482 HAS_CONFIG_FILE=
9483 if test "$enable_configfile" = "no" ; then
9484 { echo "$as_me:$LINENO: Config file support disabled" >&5
9485 echo "$as_me: Config file support disabled" >&6;}
9486 else
9487 HAS_CONFIG_FILE=1
9488 cat >>confdefs.h <<\_ACEOF
9489 #define P_CONFIG_FILE 1
9490 _ACEOF
9497 # Check whether --enable-sockagg was given.
9498 if test "${enable_sockagg+set}" = set; then
9499 enableval=$enable_sockagg;
9503 if test "${enable_sockagg}z" = "z" ; then
9504 enable_sockagg=$default_sockagg
9507 HAS_SOCKAGG=
9508 if test "$enable_sockagg" = "no" ; then
9509 { echo "$as_me:$LINENO: Socket aggregation support disabled" >&5
9510 echo "$as_me: Socket aggregation support disabled" >&6;}
9511 else
9512 { echo "$as_me:$LINENO: Socket aggregation support enabled (experimental)" >&5
9513 echo "$as_me: Socket aggregation support enabled (experimental)" >&6;}
9514 HAS_SOCKAGG=1
9515 cat >>confdefs.h <<\_ACEOF
9516 #define P_SOCKAGG 1
9517 _ACEOF
9524 if test "$HAS_VIDEO" \!= "1" ; then
9525 default_vidfile=no
9528 # Check whether --enable-vidfile was given.
9529 if test "${enable_vidfile+set}" = set; then
9530 enableval=$enable_vidfile;
9534 if test "${enable_vidfile}z" = "z" ; then
9535 enable_vidfile=$default_vidfile
9538 HAS_VIDFILE=
9539 if test "$enable_vidfile" = "no" ; then
9540 { echo "$as_me:$LINENO: Video file support disabled" >&5
9541 echo "$as_me: Video file support disabled" >&6;}
9542 else
9543 { echo "$as_me:$LINENO: Video file support enabled" >&5
9544 echo "$as_me: Video file support enabled" >&6;}
9545 HAS_VIDFILE=1
9546 cat >>confdefs.h <<\_ACEOF
9547 #define P_VIDFILE 1
9548 _ACEOF
9555 # Check whether --enable-audio was given.
9556 if test "${enable_audio+set}" = set; then
9557 enableval=$enable_audio;
9561 if test "${enable_audio}z" = "z" ; then
9562 enable_audio=$default_audio
9565 HAS_AUDIO=
9566 if test "$enable_audio" = "no" ; then
9567 { echo "$as_me:$LINENO: Audio support disabled" >&5
9568 echo "$as_me: Audio support disabled" >&6;}
9569 else
9570 HAS_AUDIO=1
9571 cat >>confdefs.h <<\_ACEOF
9572 #define P_AUDIO 1
9573 _ACEOF
9579 HAS_ALSA=
9580 HAS_OSS=
9581 if test "$enable_audio" = "yes" ; then
9583 # Check whether --enable-alsa was given.
9584 if test "${enable_alsa+set}" = set; then
9585 enableval=$enable_alsa; enable_alsa=$enableval
9588 # Check whether --enable-oss was given.
9589 if test "${enable_oss+set}" = set; then
9590 enableval=$enable_oss; enable_oss=$enableval
9594 if test "$enable_plugins" = "no" ; then
9596 if test "${enable_alsa}z" = "z" ; then
9597 enable_alsa=$default_alsa
9600 if test "${enable_oss}z" = "z" ; then
9601 enable_oss=$default_oss
9604 if test "$enable_alsa" = "yes" ; then
9605 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
9606 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
9607 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
9608 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
9612 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
9613 else
9614 # Is the header compilable?
9615 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
9616 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 $ac_includes_default
9624 #include <alsa/asoundlib.h>
9625 _ACEOF
9626 rm -f conftest.$ac_objext
9627 if { (ac_try="$ac_compile"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_compile") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_cxx_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest.$ac_objext; then
9643 ac_header_compiler=yes
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 ac_header_compiler=no
9651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9653 echo "${ECHO_T}$ac_header_compiler" >&6; }
9655 # Is the header present?
9656 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
9657 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 #include <alsa/asoundlib.h>
9665 _ACEOF
9666 if { (ac_try="$ac_cpp conftest.$ac_ext"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } >/dev/null && {
9679 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9680 test ! -s conftest.err
9681 }; then
9682 ac_header_preproc=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_header_preproc=no
9690 rm -f conftest.err conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9692 echo "${ECHO_T}$ac_header_preproc" >&6; }
9694 # So? What about this header?
9695 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9696 yes:no: )
9697 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9698 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
9700 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
9701 ac_header_preproc=yes
9703 no:yes:* )
9704 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
9705 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
9707 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
9709 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
9711 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9712 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
9713 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
9714 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
9715 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
9718 esac
9719 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
9720 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
9721 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
9726 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
9727 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
9730 if test $ac_cv_header_alsa_asoundlib_h = yes; then
9731 HAS_ALSA=1
9735 { echo "$as_me:$LINENO: checking for ALSA sound support" >&5
9736 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6; }
9737 if test "${HAS_ALSA}z" != "z"; then
9738 { echo "$as_me:$LINENO: result: yes" >&5
9739 echo "${ECHO_T}yes" >&6; }
9740 ENDLDLIBS="$ENDLDLIBS -lasound"
9741 HAS_ALSA=1
9742 else
9743 { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9748 if test "${HAS_ALSA}z" = "z" ; then
9749 if test "$enable_oss" = "yes" ; then
9750 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9751 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9752 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
9753 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9757 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
9758 else
9759 # Is the header compilable?
9760 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9761 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 $ac_includes_default
9769 #include <sys/soundcard.h>
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (ac_try="$ac_compile"
9773 case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_compile") 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_cxx_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest.$ac_objext; then
9788 ac_header_compiler=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_header_compiler=no
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9798 echo "${ECHO_T}$ac_header_compiler" >&6; }
9800 # Is the header present?
9801 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9802 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 #include <sys/soundcard.h>
9810 _ACEOF
9811 if { (ac_try="$ac_cpp conftest.$ac_ext"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev/null && {
9824 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9825 test ! -s conftest.err
9826 }; then
9827 ac_header_preproc=yes
9828 else
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 ac_header_preproc=no
9835 rm -f conftest.err conftest.$ac_ext
9836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9837 echo "${ECHO_T}$ac_header_preproc" >&6; }
9839 # So? What about this header?
9840 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9841 yes:no: )
9842 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9843 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9845 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9846 ac_header_preproc=yes
9848 no:yes:* )
9849 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9850 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9852 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9854 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9856 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9858 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9860 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
9863 esac
9864 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9865 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
9866 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9872 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
9875 if test $ac_cv_header_sys_soundcard_h = yes; then
9876 SNDCARDHDR=1
9880 { echo "$as_me:$LINENO: checking for OSS sound support" >&5
9881 echo $ECHO_N "checking for OSS sound support... $ECHO_C" >&6; }
9882 if test "${SNDCARDHDR}z" != "z"; then
9883 HAS_OSS=1
9885 { echo "$as_me:$LINENO: result: yes" >&5
9886 echo "${ECHO_T}yes" >&6; }
9887 else
9888 { echo "$as_me:$LINENO: result: no" >&5
9889 echo "${ECHO_T}no" >&6; }
9903 if test "$OSTYPE" = "solaris" ; then
9904 USE_SYSTEM_SWAB=
9905 else
9906 { echo "$as_me:$LINENO: checking for swab" >&5
9907 echo $ECHO_N "checking for swab... $ECHO_C" >&6; }
9908 if test "${ac_cv_func_swab+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 /* Define swab to an innocuous variant, in case <limits.h> declares swab.
9918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9919 #define swab innocuous_swab
9921 /* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char swab (); below.
9923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9924 <limits.h> exists even on freestanding compilers. */
9926 #ifdef __STDC__
9927 # include <limits.h>
9928 #else
9929 # include <assert.h>
9930 #endif
9932 #undef swab
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char swab ();
9941 /* The GNU C library defines this for functions which it implements
9942 to always fail with ENOSYS. Some functions are actually named
9943 something starting with __ and the normal name is an alias. */
9944 #if defined __stub_swab || defined __stub___swab
9945 choke me
9946 #endif
9949 main ()
9951 return swab ();
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9958 case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_link") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_cxx_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest$ac_exeext &&
9973 $as_test_x conftest$ac_exeext; then
9974 ac_cv_func_swab=yes
9975 else
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_cv_func_swab=no
9982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9983 conftest$ac_exeext conftest.$ac_ext
9985 { echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
9986 echo "${ECHO_T}$ac_cv_func_swab" >&6; }
9987 if test $ac_cv_func_swab = yes; then
9988 USE_SYSTEM_SWAB=1
9992 if test "x$ac_cv_func_swab" = "xyes" ; then
9994 cat >>confdefs.h <<\_ACEOF
9995 #define USE_SYSTEM_SWAB
9996 _ACEOF
10001 # Check whether --enable-memcheck was given.
10002 if test "${enable_memcheck+set}" = set; then
10003 enableval=$enable_memcheck; memcheck=$enableval
10007 if test "$memcheck" = "yes" ; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define PMEMORY_CHECK 1
10010 _ACEOF
10012 { echo "$as_me:$LINENO: Memory checking enabled" >&5
10013 echo "$as_me: Memory checking enabled" >&6;}
10019 # Check whether --enable-odbc was given.
10020 if test "${enable_odbc+set}" = set; then
10021 enableval=$enable_odbc;
10025 if test "${enable_odbc}z" = "z" ; then
10026 enable_odbc=$default_odbc
10029 HAS_ODBC=
10030 if test "$enable_odbc" = "no" ; then
10031 { echo "$as_me:$LINENO: ODBC support disabled" >&5
10032 echo "$as_me: ODBC support disabled" >&6;}
10033 else
10035 for ac_header in sql.h
10037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 ac_res=`eval echo '${'$as_ac_Header'}'`
10045 { echo "$as_me:$LINENO: result: $ac_res" >&5
10046 echo "${ECHO_T}$ac_res" >&6; }
10047 else
10048 # Is the header compilable?
10049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 $ac_includes_default
10058 #include <$ac_header>
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (ac_try="$ac_compile"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_compile") 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_cxx_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest.$ac_objext; then
10077 ac_header_compiler=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_header_compiler=no
10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10087 echo "${ECHO_T}$ac_header_compiler" >&6; }
10089 # Is the header present?
10090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <$ac_header>
10099 _ACEOF
10100 if { (ac_try="$ac_cpp conftest.$ac_ext"
10101 case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10107 ac_status=$?
10108 grep -v '^ *+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev/null && {
10113 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10114 test ! -s conftest.err
10115 }; then
10116 ac_header_preproc=yes
10117 else
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 ac_header_preproc=no
10124 rm -f conftest.err conftest.$ac_ext
10125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10126 echo "${ECHO_T}$ac_header_preproc" >&6; }
10128 # So? What about this header?
10129 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10130 yes:no: )
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10135 ac_header_preproc=yes
10137 no:yes:* )
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10152 esac
10153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 eval "$as_ac_Header=\$ac_header_preproc"
10160 ac_res=`eval echo '${'$as_ac_Header'}'`
10161 { echo "$as_me:$LINENO: result: $ac_res" >&5
10162 echo "${ECHO_T}$ac_res" >&6; }
10165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 _ACEOF
10169 HAS_ODBC=1
10172 done
10174 if test "${HAS_ODBC:-unset}" != "unset" ; then
10175 { echo "$as_me:$LINENO: checking for SQLAllocStmt in -lodbc" >&5
10176 echo $ECHO_N "checking for SQLAllocStmt in -lodbc... $ECHO_C" >&6; }
10177 if test "${ac_cv_lib_odbc_SQLAllocStmt+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-lodbc $LIBS"
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char SQLAllocStmt ();
10197 main ()
10199 return SQLAllocStmt ();
10201 return 0;
10203 _ACEOF
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_cxx_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest$ac_exeext &&
10221 $as_test_x conftest$ac_exeext; then
10222 ac_cv_lib_odbc_SQLAllocStmt=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_cv_lib_odbc_SQLAllocStmt=no
10230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10234 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocStmt" >&5
10235 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocStmt" >&6; }
10236 if test $ac_cv_lib_odbc_SQLAllocStmt = yes; then
10237 HAS_ODBC=1
10238 else
10239 HAS_ODBC=
10242 else
10243 { echo "$as_me:$LINENO: checking for /usr/local/include/sql.h" >&5
10244 echo $ECHO_N "checking for /usr/local/include/sql.h... $ECHO_C" >&6; }
10245 if test "${ac_cv_file__usr_local_include_sql_h+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 test "$cross_compiling" = yes &&
10249 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10250 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10251 { (exit 1); exit 1; }; }
10252 if test -r "/usr/local/include/sql.h"; then
10253 ac_cv_file__usr_local_include_sql_h=yes
10254 else
10255 ac_cv_file__usr_local_include_sql_h=no
10258 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_sql_h" >&5
10259 echo "${ECHO_T}$ac_cv_file__usr_local_include_sql_h" >&6; }
10260 if test $ac_cv_file__usr_local_include_sql_h = yes; then
10261 HAS_ODBC=1
10264 if test "${HAS_ODBC:-unset}" != "unset" ; then
10265 ODBCINCLUDEDIR=/usr/local/include
10266 ODBCLIBDIR=/usr/local/lib
10270 if test "${HAS_ODBC:-unset}" != "unset" ; then
10271 HAS_ODBC=1
10273 cat >>confdefs.h <<\_ACEOF
10274 #define P_ODBC 1
10275 _ACEOF
10277 if test ${ODBCINCLUDEDIR:-unset} != "unset" ; then
10278 STDCCFLAGS="$STDCCFLAGS -I${ODBCINCLUDEDIR}"
10280 if test ${ODBCLIBDIR:-unset} != "unset" ; then
10281 LDFLAGS="$LDFLAGS -L${ODBCLIBDIR}"
10283 ENDLDLIBS="$ENDLDLIBS -lodbc"
10284 { echo "$as_me:$LINENO: ODBC support enabled" >&5
10285 echo "$as_me: ODBC support enabled" >&6;}
10293 if test "${HAS_RESOLVER:-unset}" != "unset" ; then
10294 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
10295 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
10299 if test "${OSTYPE}" != "Darwin" ; then
10300 if test ${HAS_LIBDL} = yes ; then
10301 ENDLDLIBS="$ENDLDLIBS -ldl"
10306 # Check whether --enable-exceptions was given.
10307 if test "${enable_exceptions+set}" = set; then
10308 enableval=$enable_exceptions;
10312 if test "${enable_exceptions}z" != "yesz" ; then
10313 { echo "$as_me:$LINENO: C++ exceptions disabled" >&5
10314 echo "$as_me: C++ exceptions disabled" >&6;}
10315 STDCCFLAGS="$STDCCFLAGS -fno-exceptions"
10316 else
10317 cat >>confdefs.h <<\_ACEOF
10318 #define P_EXCEPTIONS 1
10319 _ACEOF
10321 { echo "$as_me:$LINENO: C++ exceptions enabled" >&5
10322 echo "$as_me: C++ exceptions enabled" >&6;}
10323 STDCCFLAGS="$STDCCFLAGS -fexceptions"
10333 # Find a good install program. We prefer a C program (faster),
10334 # so one script is as good as another. But avoid the broken or
10335 # incompatible versions:
10336 # SysV /etc/install, /usr/sbin/install
10337 # SunOS /usr/etc/install
10338 # IRIX /sbin/install
10339 # AIX /bin/install
10340 # AmigaOS /C/install, which installs bootblocks on floppy discs
10341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10344 # OS/2's system install, which has a completely different semantic
10345 # ./install, which can be erroneously created by make from ./install.sh.
10346 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10348 if test -z "$INSTALL"; then
10349 if test "${ac_cv_path_install+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 # Account for people who put trailing slashes in PATH elements.
10358 case $as_dir/ in
10359 ./ | .// | /cC/* | \
10360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10361 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10362 /usr/ucb/* ) ;;
10364 # OSF1 and SCO ODT 3.0 have their own names for install.
10365 # Don't use installbsd from OSF since it installs stuff as root
10366 # by default.
10367 for ac_prog in ginstall scoinst install; do
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10370 if test $ac_prog = install &&
10371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10372 # AIX install. It has an incompatible calling convention.
10374 elif test $ac_prog = install &&
10375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10376 # program-specific install script used by HP pwplus--don't use.
10378 else
10379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10380 break 3
10383 done
10384 done
10386 esac
10387 done
10388 IFS=$as_save_IFS
10392 if test "${ac_cv_path_install+set}" = set; then
10393 INSTALL=$ac_cv_path_install
10394 else
10395 # As a last resort, use the slow shell script. Don't cache a
10396 # value for INSTALL within a source directory, because that will
10397 # break other packages using the cache if that directory is
10398 # removed, or if the value is a relative name.
10399 INSTALL=$ac_install_sh
10402 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10403 echo "${ECHO_T}$INSTALL" >&6; }
10405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10406 # It thinks the first close brace ends the variable substitution.
10407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10414 ac_config_files="$ac_config_files make/ptbuildopts.mak"
10416 ac_config_files="$ac_config_files make/ptlib-config"
10418 ac_config_files="$ac_config_files Makefile"
10421 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
10422 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
10425 cat >confcache <<\_ACEOF
10426 # This file is a shell script that caches the results of configure
10427 # tests run on this system so they can be shared between configure
10428 # scripts and configure runs, see configure's option --config-cache.
10429 # It is not useful on other systems. If it contains results you don't
10430 # want to keep, you may remove or edit it.
10432 # config.status only pays attention to the cache file if you give it
10433 # the --recheck option to rerun configure.
10435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10437 # following values.
10439 _ACEOF
10441 # The following way of writing the cache mishandles newlines in values,
10442 # but we know of no workaround that is simple, portable, and efficient.
10443 # So, we kill variables containing newlines.
10444 # Ultrix sh set writes to stderr and can't be redirected directly,
10445 # and sets the high bit in the cache file unless we assign to the vars.
10447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10448 eval ac_val=\$$ac_var
10449 case $ac_val in #(
10450 *${as_nl}*)
10451 case $ac_var in #(
10452 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10453 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10454 esac
10455 case $ac_var in #(
10456 _ | IFS | as_nl) ;; #(
10457 *) $as_unset $ac_var ;;
10458 esac ;;
10459 esac
10460 done
10462 (set) 2>&1 |
10463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10464 *${as_nl}ac_space=\ *)
10465 # `set' does not quote correctly, so add quotes (double-quote
10466 # substitution turns \\\\ into \\, and sed turns \\ into \).
10467 sed -n \
10468 "s/'/'\\\\''/g;
10469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10470 ;; #(
10472 # `set' quotes correctly as required by POSIX, so do not add quotes.
10473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10475 esac |
10476 sort
10478 sed '
10479 /^ac_cv_env_/b end
10480 t clear
10481 :clear
10482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10483 t end
10484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10485 :end' >>confcache
10486 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10487 if test -w "$cache_file"; then
10488 test "x$cache_file" != "x/dev/null" &&
10489 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10490 echo "$as_me: updating cache $cache_file" >&6;}
10491 cat confcache >$cache_file
10492 else
10493 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10494 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10497 rm -f confcache
10499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10500 # Let make expand exec_prefix.
10501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10503 DEFS=-DHAVE_CONFIG_H
10505 ac_libobjs=
10506 ac_ltlibobjs=
10507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10508 # 1. Remove the extension, and $U if already installed.
10509 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10510 ac_i=`echo "$ac_i" | sed "$ac_script"`
10511 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10512 # will be set to the directory where LIBOBJS objects are built.
10513 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10514 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10515 done
10516 LIBOBJS=$ac_libobjs
10518 LTLIBOBJS=$ac_ltlibobjs
10522 : ${CONFIG_STATUS=./config.status}
10523 ac_clean_files_save=$ac_clean_files
10524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10525 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10526 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10527 cat >$CONFIG_STATUS <<_ACEOF
10528 #! $SHELL
10529 # Generated by $as_me.
10530 # Run this file to recreate the current configuration.
10531 # Compiler output produced by configure, useful for debugging
10532 # configure, is in config.log if it exists.
10534 debug=false
10535 ac_cs_recheck=false
10536 ac_cs_silent=false
10537 SHELL=\${CONFIG_SHELL-$SHELL}
10538 _ACEOF
10540 cat >>$CONFIG_STATUS <<\_ACEOF
10541 ## --------------------- ##
10542 ## M4sh Initialization. ##
10543 ## --------------------- ##
10545 # Be more Bourne compatible
10546 DUALCASE=1; export DUALCASE # for MKS sh
10547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10548 emulate sh
10549 NULLCMD=:
10550 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10551 # is contrary to our usage. Disable this feature.
10552 alias -g '${1+"$@"}'='"$@"'
10553 setopt NO_GLOB_SUBST
10554 else
10555 case `(set -o) 2>/dev/null` in
10556 *posix*) set -o posix ;;
10557 esac
10564 # PATH needs CR
10565 # Avoid depending upon Character Ranges.
10566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10569 as_cr_digits='0123456789'
10570 as_cr_alnum=$as_cr_Letters$as_cr_digits
10572 # The user is always right.
10573 if test "${PATH_SEPARATOR+set}" != set; then
10574 echo "#! /bin/sh" >conf$$.sh
10575 echo "exit 0" >>conf$$.sh
10576 chmod +x conf$$.sh
10577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10578 PATH_SEPARATOR=';'
10579 else
10580 PATH_SEPARATOR=:
10582 rm -f conf$$.sh
10585 # Support unset when possible.
10586 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10587 as_unset=unset
10588 else
10589 as_unset=false
10593 # IFS
10594 # We need space, tab and new line, in precisely that order. Quoting is
10595 # there to prevent editors from complaining about space-tab.
10596 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10597 # splitting by setting IFS to empty value.)
10598 as_nl='
10600 IFS=" "" $as_nl"
10602 # Find who we are. Look in the path if we contain no directory separator.
10603 case $0 in
10604 *[\\/]* ) as_myself=$0 ;;
10605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $PATH
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10611 done
10612 IFS=$as_save_IFS
10615 esac
10616 # We did not find ourselves, most probably we were run as `sh COMMAND'
10617 # in which case we are not to be found in the path.
10618 if test "x$as_myself" = x; then
10619 as_myself=$0
10621 if test ! -f "$as_myself"; then
10622 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10623 { (exit 1); exit 1; }
10626 # Work around bugs in pre-3.0 UWIN ksh.
10627 for as_var in ENV MAIL MAILPATH
10628 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10629 done
10630 PS1='$ '
10631 PS2='> '
10632 PS4='+ '
10634 # NLS nuisances.
10635 for as_var in \
10636 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10637 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10638 LC_TELEPHONE LC_TIME
10640 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10641 eval $as_var=C; export $as_var
10642 else
10643 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10645 done
10647 # Required to use basename.
10648 if expr a : '\(a\)' >/dev/null 2>&1 &&
10649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10650 as_expr=expr
10651 else
10652 as_expr=false
10655 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10656 as_basename=basename
10657 else
10658 as_basename=false
10662 # Name of the executable.
10663 as_me=`$as_basename -- "$0" ||
10664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10665 X"$0" : 'X\(//\)$' \| \
10666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10667 echo X/"$0" |
10668 sed '/^.*\/\([^/][^/]*\)\/*$/{
10669 s//\1/
10672 /^X\/\(\/\/\)$/{
10673 s//\1/
10676 /^X\/\(\/\).*/{
10677 s//\1/
10680 s/.*/./; q'`
10682 # CDPATH.
10683 $as_unset CDPATH
10687 as_lineno_1=$LINENO
10688 as_lineno_2=$LINENO
10689 test "x$as_lineno_1" != "x$as_lineno_2" &&
10690 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10692 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10693 # uniformly replaced by the line number. The first 'sed' inserts a
10694 # line-number line after each line using $LINENO; the second 'sed'
10695 # does the real work. The second script uses 'N' to pair each
10696 # line-number line with the line containing $LINENO, and appends
10697 # trailing '-' during substitution so that $LINENO is not a special
10698 # case at line end.
10699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10700 # scripts with optimization help from Paolo Bonzini. Blame Lee
10701 # E. McMahon (1931-1989) for sed's syntax. :-)
10702 sed -n '
10704 /[$]LINENO/=
10705 ' <$as_myself |
10706 sed '
10707 s/[$]LINENO.*/&-/
10708 t lineno
10710 :lineno
10712 :loop
10713 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10714 t loop
10715 s/-\n.*//
10716 ' >$as_me.lineno &&
10717 chmod +x "$as_me.lineno" ||
10718 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10719 { (exit 1); exit 1; }; }
10721 # Don't try to exec as it changes $[0], causing all sort of problems
10722 # (the dirname of $[0] is not the place where we might find the
10723 # original and so on. Autoconf is especially sensitive to this).
10724 . "./$as_me.lineno"
10725 # Exit status is that of the last command.
10726 exit
10730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10731 as_dirname=dirname
10732 else
10733 as_dirname=false
10736 ECHO_C= ECHO_N= ECHO_T=
10737 case `echo -n x` in
10738 -n*)
10739 case `echo 'x\c'` in
10740 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10741 *) ECHO_C='\c';;
10742 esac;;
10744 ECHO_N='-n';;
10745 esac
10747 if expr a : '\(a\)' >/dev/null 2>&1 &&
10748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10749 as_expr=expr
10750 else
10751 as_expr=false
10754 rm -f conf$$ conf$$.exe conf$$.file
10755 if test -d conf$$.dir; then
10756 rm -f conf$$.dir/conf$$.file
10757 else
10758 rm -f conf$$.dir
10759 mkdir conf$$.dir
10761 echo >conf$$.file
10762 if ln -s conf$$.file conf$$ 2>/dev/null; then
10763 as_ln_s='ln -s'
10764 # ... but there are two gotchas:
10765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10767 # In both cases, we have to default to `cp -p'.
10768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10769 as_ln_s='cp -p'
10770 elif ln conf$$.file conf$$ 2>/dev/null; then
10771 as_ln_s=ln
10772 else
10773 as_ln_s='cp -p'
10775 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10776 rmdir conf$$.dir 2>/dev/null
10778 if mkdir -p . 2>/dev/null; then
10779 as_mkdir_p=:
10780 else
10781 test -d ./-p && rmdir ./-p
10782 as_mkdir_p=false
10785 if test -x / >/dev/null 2>&1; then
10786 as_test_x='test -x'
10787 else
10788 if ls -dL / >/dev/null 2>&1; then
10789 as_ls_L_option=L
10790 else
10791 as_ls_L_option=
10793 as_test_x='
10794 eval sh -c '\''
10795 if test -d "$1"; then
10796 test -d "$1/.";
10797 else
10798 case $1 in
10799 -*)set "./$1";;
10800 esac;
10801 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10802 ???[sx]*):;;*)false;;esac;fi
10803 '\'' sh
10806 as_executable_p=$as_test_x
10808 # Sed expression to map a string onto a valid CPP name.
10809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10811 # Sed expression to map a string onto a valid variable name.
10812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10815 exec 6>&1
10817 # Save the log message, to keep $[0] and so on meaningful, and to
10818 # report actual input values of CONFIG_FILES etc. instead of their
10819 # values after options handling.
10820 ac_log="
10821 This file was extended by $as_me, which was
10822 generated by GNU Autoconf 2.61. Invocation command line was
10824 CONFIG_FILES = $CONFIG_FILES
10825 CONFIG_HEADERS = $CONFIG_HEADERS
10826 CONFIG_LINKS = $CONFIG_LINKS
10827 CONFIG_COMMANDS = $CONFIG_COMMANDS
10828 $ $0 $@
10830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10833 _ACEOF
10835 cat >>$CONFIG_STATUS <<_ACEOF
10836 # Files that config.status was made for.
10837 config_files="$ac_config_files"
10838 config_headers="$ac_config_headers"
10840 _ACEOF
10842 cat >>$CONFIG_STATUS <<\_ACEOF
10843 ac_cs_usage="\
10844 \`$as_me' instantiates files from templates according to the
10845 current configuration.
10847 Usage: $0 [OPTIONS] [FILE]...
10849 -h, --help print this help, then exit
10850 -V, --version print version number and configuration settings, then exit
10851 -q, --quiet do not print progress messages
10852 -d, --debug don't remove temporary files
10853 --recheck update $as_me by reconfiguring in the same conditions
10854 --file=FILE[:TEMPLATE]
10855 instantiate the configuration file FILE
10856 --header=FILE[:TEMPLATE]
10857 instantiate the configuration header FILE
10859 Configuration files:
10860 $config_files
10862 Configuration headers:
10863 $config_headers
10865 Report bugs to <bug-autoconf@gnu.org>."
10867 _ACEOF
10868 cat >>$CONFIG_STATUS <<_ACEOF
10869 ac_cs_version="\\
10870 config.status
10871 configured by $0, generated by GNU Autoconf 2.61,
10872 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10874 Copyright (C) 2006 Free Software Foundation, Inc.
10875 This config.status script is free software; the Free Software Foundation
10876 gives unlimited permission to copy, distribute and modify it."
10878 ac_pwd='$ac_pwd'
10879 srcdir='$srcdir'
10880 INSTALL='$INSTALL'
10881 _ACEOF
10883 cat >>$CONFIG_STATUS <<\_ACEOF
10884 # If no file are specified by the user, then we need to provide default
10885 # value. By we need to know if files were specified by the user.
10886 ac_need_defaults=:
10887 while test $# != 0
10889 case $1 in
10890 --*=*)
10891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10892 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10893 ac_shift=:
10896 ac_option=$1
10897 ac_optarg=$2
10898 ac_shift=shift
10900 esac
10902 case $ac_option in
10903 # Handling of the options.
10904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10905 ac_cs_recheck=: ;;
10906 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10907 echo "$ac_cs_version"; exit ;;
10908 --debug | --debu | --deb | --de | --d | -d )
10909 debug=: ;;
10910 --file | --fil | --fi | --f )
10911 $ac_shift
10912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10913 ac_need_defaults=false;;
10914 --header | --heade | --head | --hea )
10915 $ac_shift
10916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10917 ac_need_defaults=false;;
10918 --he | --h)
10919 # Conflict between --help and --header
10920 { echo "$as_me: error: ambiguous option: $1
10921 Try \`$0 --help' for more information." >&2
10922 { (exit 1); exit 1; }; };;
10923 --help | --hel | -h )
10924 echo "$ac_cs_usage"; exit ;;
10925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10926 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10927 ac_cs_silent=: ;;
10929 # This is an error.
10930 -*) { echo "$as_me: error: unrecognized option: $1
10931 Try \`$0 --help' for more information." >&2
10932 { (exit 1); exit 1; }; } ;;
10934 *) ac_config_targets="$ac_config_targets $1"
10935 ac_need_defaults=false ;;
10937 esac
10938 shift
10939 done
10941 ac_configure_extra_args=
10943 if $ac_cs_silent; then
10944 exec 6>/dev/null
10945 ac_configure_extra_args="$ac_configure_extra_args --silent"
10948 _ACEOF
10949 cat >>$CONFIG_STATUS <<_ACEOF
10950 if \$ac_cs_recheck; then
10951 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10952 CONFIG_SHELL=$SHELL
10953 export CONFIG_SHELL
10954 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10957 _ACEOF
10958 cat >>$CONFIG_STATUS <<\_ACEOF
10959 exec 5>>config.log
10961 echo
10962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10963 ## Running $as_me. ##
10964 _ASBOX
10965 echo "$ac_log"
10966 } >&5
10968 _ACEOF
10969 cat >>$CONFIG_STATUS <<_ACEOF
10970 _ACEOF
10972 cat >>$CONFIG_STATUS <<\_ACEOF
10974 # Handling of arguments.
10975 for ac_config_target in $ac_config_targets
10977 case $ac_config_target in
10978 "make/ptbuildopts.mak") CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
10979 "make/ptlib-config") CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
10980 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10981 "include/ptbuildopts.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
10983 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10984 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10985 { (exit 1); exit 1; }; };;
10986 esac
10987 done
10990 # If the user did not use the arguments to specify the items to instantiate,
10991 # then the envvar interface is used. Set only those that are not.
10992 # We use the long form for the default assignment because of an extremely
10993 # bizarre bug on SunOS 4.1.3.
10994 if $ac_need_defaults; then
10995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10999 # Have a temporary directory for convenience. Make it in the build tree
11000 # simply because there is no reason against having it here, and in addition,
11001 # creating and moving files from /tmp can sometimes cause problems.
11002 # Hook for its removal unless debugging.
11003 # Note that there is a small window in which the directory will not be cleaned:
11004 # after its creation but before its name has been assigned to `$tmp'.
11005 $debug ||
11007 tmp=
11008 trap 'exit_status=$?
11009 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11011 trap '{ (exit 1); exit 1; }' 1 2 13 15
11013 # Create a (secure) tmp directory for tmp files.
11016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11017 test -n "$tmp" && test -d "$tmp"
11018 } ||
11020 tmp=./conf$$-$RANDOM
11021 (umask 077 && mkdir "$tmp")
11022 } ||
11024 echo "$me: cannot create a temporary directory in ." >&2
11025 { (exit 1); exit 1; }
11029 # Set up the sed scripts for CONFIG_FILES section.
11032 # No need to generate the scripts if there are no CONFIG_FILES.
11033 # This happens for instance when ./config.status config.h
11034 if test -n "$CONFIG_FILES"; then
11036 _ACEOF
11040 ac_delim='%!_!# '
11041 for ac_last_try in false false false false false :; do
11042 cat >conf$$subs.sed <<_ACEOF
11043 SHELL!$SHELL$ac_delim
11044 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11045 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11046 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11047 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11048 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11049 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11050 exec_prefix!$exec_prefix$ac_delim
11051 prefix!$prefix$ac_delim
11052 program_transform_name!$program_transform_name$ac_delim
11053 bindir!$bindir$ac_delim
11054 sbindir!$sbindir$ac_delim
11055 libexecdir!$libexecdir$ac_delim
11056 datarootdir!$datarootdir$ac_delim
11057 datadir!$datadir$ac_delim
11058 sysconfdir!$sysconfdir$ac_delim
11059 sharedstatedir!$sharedstatedir$ac_delim
11060 localstatedir!$localstatedir$ac_delim
11061 includedir!$includedir$ac_delim
11062 oldincludedir!$oldincludedir$ac_delim
11063 docdir!$docdir$ac_delim
11064 infodir!$infodir$ac_delim
11065 htmldir!$htmldir$ac_delim
11066 dvidir!$dvidir$ac_delim
11067 pdfdir!$pdfdir$ac_delim
11068 psdir!$psdir$ac_delim
11069 libdir!$libdir$ac_delim
11070 localedir!$localedir$ac_delim
11071 mandir!$mandir$ac_delim
11072 DEFS!$DEFS$ac_delim
11073 ECHO_C!$ECHO_C$ac_delim
11074 ECHO_N!$ECHO_N$ac_delim
11075 ECHO_T!$ECHO_T$ac_delim
11076 LIBS!$LIBS$ac_delim
11077 build_alias!$build_alias$ac_delim
11078 host_alias!$host_alias$ac_delim
11079 target_alias!$target_alias$ac_delim
11080 subdirs!$subdirs$ac_delim
11081 CXX!$CXX$ac_delim
11082 CXXFLAGS!$CXXFLAGS$ac_delim
11083 LDFLAGS!$LDFLAGS$ac_delim
11084 CPPFLAGS!$CPPFLAGS$ac_delim
11085 ac_ct_CXX!$ac_ct_CXX$ac_delim
11086 EXEEXT!$EXEEXT$ac_delim
11087 OBJEXT!$OBJEXT$ac_delim
11088 PWLIBDIR!$PWLIBDIR$ac_delim
11089 PWINSTDIR!$PWINSTDIR$ac_delim
11090 INSTALLPREFIX!$INSTALLPREFIX$ac_delim
11091 LIBDIR!$LIBDIR$ac_delim
11092 MAJOR_VERSION!$MAJOR_VERSION$ac_delim
11093 MINOR_VERSION!$MINOR_VERSION$ac_delim
11094 BUILD_NUMBER!$BUILD_NUMBER$ac_delim
11095 PWLIB_VERSION!$PWLIB_VERSION$ac_delim
11096 build!$build$ac_delim
11097 build_cpu!$build_cpu$ac_delim
11098 build_vendor!$build_vendor$ac_delim
11099 build_os!$build_os$ac_delim
11100 host!$host$ac_delim
11101 host_cpu!$host_cpu$ac_delim
11102 host_vendor!$host_vendor$ac_delim
11103 host_os!$host_os$ac_delim
11104 target!$target$ac_delim
11105 target_cpu!$target_cpu$ac_delim
11106 target_vendor!$target_vendor$ac_delim
11107 target_os!$target_os$ac_delim
11108 MACHTYPE!$MACHTYPE$ac_delim
11109 OSTYPE!$OSTYPE$ac_delim
11110 OSRELEASE!$OSRELEASE$ac_delim
11111 TARGETDIR!$TARGETDIR$ac_delim
11112 USE_GCC!$USE_GCC$ac_delim
11113 USE_PCH!$USE_PCH$ac_delim
11114 SHAREDLIBEXT!$SHAREDLIBEXT$ac_delim
11115 CXXCPP!$CXXCPP$ac_delim
11116 GREP!$GREP$ac_delim
11117 EGREP!$EGREP$ac_delim
11118 FLEX!$FLEX$ac_delim
11119 AR!$AR$ac_delim
11120 BISON!$BISON$ac_delim
11121 HAS_REGEX!$HAS_REGEX$ac_delim
11122 HAS_PLUGINS!$HAS_PLUGINS$ac_delim
11123 HAS_RESOLVER!$HAS_RESOLVER$ac_delim
11124 HAS_SASL!$HAS_SASL$ac_delim
11125 HAS_SASL2!$HAS_SASL2$ac_delim
11126 HAS_OPENLDAP!$HAS_OPENLDAP$ac_delim
11127 HAS_OPENSSL!$HAS_OPENSSL$ac_delim
11128 P_STATIC_ENDLDLIBS!$P_STATIC_ENDLDLIBS$ac_delim
11129 P_STATIC_LDFLAGS!$P_STATIC_LDFLAGS$ac_delim
11130 HAS_EXPAT!$HAS_EXPAT$ac_delim
11131 HAS_VXML!$HAS_VXML$ac_delim
11132 HAS_JABBER!$HAS_JABBER$ac_delim
11133 HAS_XMLRPC!$HAS_XMLRPC$ac_delim
11134 HAS_SOAP!$HAS_SOAP$ac_delim
11135 HAS_TTS!$HAS_TTS$ac_delim
11136 HAS_IPV6!$HAS_IPV6$ac_delim
11137 HAS_SDL!$HAS_SDL$ac_delim
11138 HAS_VIDEO!$HAS_VIDEO$ac_delim
11139 HAS_VIDEO_CAPTURE!$HAS_VIDEO_CAPTURE$ac_delim
11140 _ACEOF
11142 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11143 break
11144 elif $ac_last_try; then
11145 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11146 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11147 { (exit 1); exit 1; }; }
11148 else
11149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11151 done
11153 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11154 if test -n "$ac_eof"; then
11155 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11156 ac_eof=`expr $ac_eof + 1`
11159 cat >>$CONFIG_STATUS <<_ACEOF
11160 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11162 _ACEOF
11163 sed '
11164 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11165 s/^/s,@/; s/!/@,|#_!!_#|/
11168 s/'"$ac_delim"'$/,g/; t
11169 s/$/\\/; p
11170 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11171 ' >>$CONFIG_STATUS <conf$$subs.sed
11172 rm -f conf$$subs.sed
11173 cat >>$CONFIG_STATUS <<_ACEOF
11174 CEOF$ac_eof
11175 _ACEOF
11178 ac_delim='%!_!# '
11179 for ac_last_try in false false false false false :; do
11180 cat >conf$$subs.sed <<_ACEOF
11181 USE_SHM_VIDEO_DEVICES!$USE_SHM_VIDEO_DEVICES$ac_delim
11182 HAS_ASN!$HAS_ASN$ac_delim
11183 HAS_STUN!$HAS_STUN$ac_delim
11184 HAS_PIPECHAN!$HAS_PIPECHAN$ac_delim
11185 HAS_DTMF!$HAS_DTMF$ac_delim
11186 HAS_WAVFILE!$HAS_WAVFILE$ac_delim
11187 HAS_SOCKS!$HAS_SOCKS$ac_delim
11188 HAS_FTP!$HAS_FTP$ac_delim
11189 HAS_SNMP!$HAS_SNMP$ac_delim
11190 HAS_TELNET!$HAS_TELNET$ac_delim
11191 HAS_REMCONN!$HAS_REMCONN$ac_delim
11192 HAS_SERIAL!$HAS_SERIAL$ac_delim
11193 HAS_POP3SMTP!$HAS_POP3SMTP$ac_delim
11194 HAS_HTTP!$HAS_HTTP$ac_delim
11195 HAS_HTTPSVC!$HAS_HTTPSVC$ac_delim
11196 HAS_CONFIG_FILE!$HAS_CONFIG_FILE$ac_delim
11197 HAS_SOCKAGG!$HAS_SOCKAGG$ac_delim
11198 HAS_VIDFILE!$HAS_VIDFILE$ac_delim
11199 HAS_AUDIO!$HAS_AUDIO$ac_delim
11200 HAS_OSS!$HAS_OSS$ac_delim
11201 HAS_ALSA!$HAS_ALSA$ac_delim
11202 HAS_ODBC!$HAS_ODBC$ac_delim
11203 STDCCFLAGS!$STDCCFLAGS$ac_delim
11204 STDCXXFLAGS!$STDCXXFLAGS$ac_delim
11205 OPTSTDCCFLAGS!$OPTSTDCCFLAGS$ac_delim
11206 ENDLDLIBS!$ENDLDLIBS$ac_delim
11207 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
11208 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11209 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11210 INSTALL_DATA!$INSTALL_DATA$ac_delim
11211 LIBOBJS!$LIBOBJS$ac_delim
11212 LTLIBOBJS!$LTLIBOBJS$ac_delim
11213 _ACEOF
11215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
11216 break
11217 elif $ac_last_try; then
11218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11219 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11220 { (exit 1); exit 1; }; }
11221 else
11222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11224 done
11226 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11227 if test -n "$ac_eof"; then
11228 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11229 ac_eof=`expr $ac_eof + 1`
11232 cat >>$CONFIG_STATUS <<_ACEOF
11233 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11235 _ACEOF
11236 sed '
11237 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11238 s/^/s,@/; s/!/@,|#_!!_#|/
11241 s/'"$ac_delim"'$/,g/; t
11242 s/$/\\/; p
11243 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11244 ' >>$CONFIG_STATUS <conf$$subs.sed
11245 rm -f conf$$subs.sed
11246 cat >>$CONFIG_STATUS <<_ACEOF
11247 :end
11248 s/|#_!!_#|//g
11249 CEOF$ac_eof
11250 _ACEOF
11253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11255 # trailing colons and then remove the whole line if VPATH becomes empty
11256 # (actually we leave an empty line to preserve line numbers).
11257 if test "x$srcdir" = x.; then
11258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11259 s/:*\$(srcdir):*/:/
11260 s/:*\${srcdir}:*/:/
11261 s/:*@srcdir@:*/:/
11262 s/^\([^=]*=[ ]*\):*/\1/
11263 s/:*$//
11264 s/^[^=]*=[ ]*$//
11268 cat >>$CONFIG_STATUS <<\_ACEOF
11269 fi # test -n "$CONFIG_FILES"
11272 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11274 case $ac_tag in
11275 :[FHLC]) ac_mode=$ac_tag; continue;;
11276 esac
11277 case $ac_mode$ac_tag in
11278 :[FHL]*:*);;
11279 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11280 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11281 { (exit 1); exit 1; }; };;
11282 :[FH]-) ac_tag=-:-;;
11283 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11284 esac
11285 ac_save_IFS=$IFS
11286 IFS=:
11287 set x $ac_tag
11288 IFS=$ac_save_IFS
11289 shift
11290 ac_file=$1
11291 shift
11293 case $ac_mode in
11294 :L) ac_source=$1;;
11295 :[FH])
11296 ac_file_inputs=
11297 for ac_f
11299 case $ac_f in
11300 -) ac_f="$tmp/stdin";;
11301 *) # Look for the file first in the build tree, then in the source tree
11302 # (if the path is not absolute). The absolute path cannot be DOS-style,
11303 # because $ac_f cannot contain `:'.
11304 test -f "$ac_f" ||
11305 case $ac_f in
11306 [\\/$]*) false;;
11307 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11308 esac ||
11309 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11310 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11311 { (exit 1); exit 1; }; };;
11312 esac
11313 ac_file_inputs="$ac_file_inputs $ac_f"
11314 done
11316 # Let's still pretend it is `configure' which instantiates (i.e., don't
11317 # use $as_me), people would be surprised to read:
11318 # /* config.h. Generated by config.status. */
11319 configure_input="Generated from "`IFS=:
11320 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11321 if test x"$ac_file" != x-; then
11322 configure_input="$ac_file. $configure_input"
11323 { echo "$as_me:$LINENO: creating $ac_file" >&5
11324 echo "$as_me: creating $ac_file" >&6;}
11327 case $ac_tag in
11328 *:-:* | *:-) cat >"$tmp/stdin";;
11329 esac
11331 esac
11333 ac_dir=`$as_dirname -- "$ac_file" ||
11334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11335 X"$ac_file" : 'X\(//\)[^/]' \| \
11336 X"$ac_file" : 'X\(//\)$' \| \
11337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11338 echo X"$ac_file" |
11339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11340 s//\1/
11343 /^X\(\/\/\)[^/].*/{
11344 s//\1/
11347 /^X\(\/\/\)$/{
11348 s//\1/
11351 /^X\(\/\).*/{
11352 s//\1/
11355 s/.*/./; q'`
11356 { as_dir="$ac_dir"
11357 case $as_dir in #(
11358 -*) as_dir=./$as_dir;;
11359 esac
11360 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11361 as_dirs=
11362 while :; do
11363 case $as_dir in #(
11364 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11365 *) as_qdir=$as_dir;;
11366 esac
11367 as_dirs="'$as_qdir' $as_dirs"
11368 as_dir=`$as_dirname -- "$as_dir" ||
11369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11370 X"$as_dir" : 'X\(//\)[^/]' \| \
11371 X"$as_dir" : 'X\(//\)$' \| \
11372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11373 echo X"$as_dir" |
11374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11375 s//\1/
11378 /^X\(\/\/\)[^/].*/{
11379 s//\1/
11382 /^X\(\/\/\)$/{
11383 s//\1/
11386 /^X\(\/\).*/{
11387 s//\1/
11390 s/.*/./; q'`
11391 test -d "$as_dir" && break
11392 done
11393 test -z "$as_dirs" || eval "mkdir $as_dirs"
11394 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11395 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11396 { (exit 1); exit 1; }; }; }
11397 ac_builddir=.
11399 case "$ac_dir" in
11400 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11403 # A ".." for each directory in $ac_dir_suffix.
11404 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11405 case $ac_top_builddir_sub in
11406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11408 esac ;;
11409 esac
11410 ac_abs_top_builddir=$ac_pwd
11411 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11412 # for backward compatibility:
11413 ac_top_builddir=$ac_top_build_prefix
11415 case $srcdir in
11416 .) # We are building in place.
11417 ac_srcdir=.
11418 ac_top_srcdir=$ac_top_builddir_sub
11419 ac_abs_top_srcdir=$ac_pwd ;;
11420 [\\/]* | ?:[\\/]* ) # Absolute name.
11421 ac_srcdir=$srcdir$ac_dir_suffix;
11422 ac_top_srcdir=$srcdir
11423 ac_abs_top_srcdir=$srcdir ;;
11424 *) # Relative name.
11425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11426 ac_top_srcdir=$ac_top_build_prefix$srcdir
11427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11428 esac
11429 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11432 case $ac_mode in
11435 # CONFIG_FILE
11438 case $INSTALL in
11439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11440 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11441 esac
11442 _ACEOF
11444 cat >>$CONFIG_STATUS <<\_ACEOF
11445 # If the template does not know about datarootdir, expand it.
11446 # FIXME: This hack should be removed a few years after 2.60.
11447 ac_datarootdir_hack=; ac_datarootdir_seen=
11449 case `sed -n '/datarootdir/ {
11453 /@datadir@/p
11454 /@docdir@/p
11455 /@infodir@/p
11456 /@localedir@/p
11457 /@mandir@/p
11458 ' $ac_file_inputs` in
11459 *datarootdir*) ac_datarootdir_seen=yes;;
11460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11461 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11462 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11463 _ACEOF
11464 cat >>$CONFIG_STATUS <<_ACEOF
11465 ac_datarootdir_hack='
11466 s&@datadir@&$datadir&g
11467 s&@docdir@&$docdir&g
11468 s&@infodir@&$infodir&g
11469 s&@localedir@&$localedir&g
11470 s&@mandir@&$mandir&g
11471 s&\\\${datarootdir}&$datarootdir&g' ;;
11472 esac
11473 _ACEOF
11475 # Neutralize VPATH when `$srcdir' = `.'.
11476 # Shell code in configure.ac might set extrasub.
11477 # FIXME: do we really want to maintain this feature?
11478 cat >>$CONFIG_STATUS <<_ACEOF
11479 sed "$ac_vpsub
11480 $extrasub
11481 _ACEOF
11482 cat >>$CONFIG_STATUS <<\_ACEOF
11484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11485 s&@configure_input@&$configure_input&;t t
11486 s&@top_builddir@&$ac_top_builddir_sub&;t t
11487 s&@srcdir@&$ac_srcdir&;t t
11488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11489 s&@top_srcdir@&$ac_top_srcdir&;t t
11490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11491 s&@builddir@&$ac_builddir&;t t
11492 s&@abs_builddir@&$ac_abs_builddir&;t t
11493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11494 s&@INSTALL@&$ac_INSTALL&;t t
11495 $ac_datarootdir_hack
11496 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11499 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11501 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11502 which seems to be undefined. Please make sure it is defined." >&5
11503 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11504 which seems to be undefined. Please make sure it is defined." >&2;}
11506 rm -f "$tmp/stdin"
11507 case $ac_file in
11508 -) cat "$tmp/out"; rm -f "$tmp/out";;
11509 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11510 esac
11514 # CONFIG_HEADER
11516 _ACEOF
11518 # Transform confdefs.h into a sed script `conftest.defines', that
11519 # substitutes the proper values into config.h.in to produce config.h.
11520 rm -f conftest.defines conftest.tail
11521 # First, append a space to every undef/define line, to ease matching.
11522 echo 's/$/ /' >conftest.defines
11523 # Then, protect against being on the right side of a sed subst, or in
11524 # an unquoted here document, in config.status. If some macros were
11525 # called several times there might be several #defines for the same
11526 # symbol, which is useless. But do not sort them, since the last
11527 # AC_DEFINE must be honored.
11528 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11529 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11530 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11531 # PARAMS is the parameter list in the macro definition--in most cases, it's
11532 # just an empty string.
11533 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11534 ac_dB='\\)[ (].*,\\1define\\2'
11535 ac_dC=' '
11536 ac_dD=' ,'
11538 uniq confdefs.h |
11539 sed -n '
11540 t rset
11541 :rset
11542 s/^[ ]*#[ ]*define[ ][ ]*//
11543 t ok
11546 s/[\\&,]/\\&/g
11547 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11548 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11549 ' >>conftest.defines
11551 # Remove the space that was appended to ease matching.
11552 # Then replace #undef with comments. This is necessary, for
11553 # example, in the case of _POSIX_SOURCE, which is predefined and required
11554 # on some systems where configure will not decide to define it.
11555 # (The regexp can be short, since the line contains either #define or #undef.)
11556 echo 's/ $//
11557 s,^[ #]*u.*,/* & */,' >>conftest.defines
11559 # Break up conftest.defines:
11560 ac_max_sed_lines=50
11562 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11563 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11564 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11565 # et cetera.
11566 ac_in='$ac_file_inputs'
11567 ac_out='"$tmp/out1"'
11568 ac_nxt='"$tmp/out2"'
11570 while :
11572 # Write a here document:
11573 cat >>$CONFIG_STATUS <<_ACEOF
11574 # First, check the format of the line:
11575 cat >"\$tmp/defines.sed" <<\\CEOF
11576 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11577 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11579 :def
11580 _ACEOF
11581 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11582 echo 'CEOF
11583 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11584 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11585 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11586 grep . conftest.tail >/dev/null || break
11587 rm -f conftest.defines
11588 mv conftest.tail conftest.defines
11589 done
11590 rm -f conftest.defines conftest.tail
11592 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11593 cat >>$CONFIG_STATUS <<\_ACEOF
11594 if test x"$ac_file" != x-; then
11595 echo "/* $configure_input */" >"$tmp/config.h"
11596 cat "$ac_result" >>"$tmp/config.h"
11597 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11598 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11599 echo "$as_me: $ac_file is unchanged" >&6;}
11600 else
11601 rm -f $ac_file
11602 mv "$tmp/config.h" $ac_file
11604 else
11605 echo "/* $configure_input */"
11606 cat "$ac_result"
11608 rm -f "$tmp/out12"
11612 esac
11615 case $ac_file$ac_mode in
11616 "make/ptlib-config":F) chmod a+x make/ptlib-config ;;
11618 esac
11619 done # for ac_tag
11622 { (exit 0); exit 0; }
11623 _ACEOF
11624 chmod +x $CONFIG_STATUS
11625 ac_clean_files=$ac_clean_files_save
11628 # configure is writing to config.log, and then calls config.status.
11629 # config.status does its own redirection, appending to config.log.
11630 # Unfortunately, on DOS this fails, as config.log is still kept open
11631 # by configure, so config.status won't be able to write to it; its
11632 # output is simply discarded. So we exec the FD to /dev/null,
11633 # effectively closing config.log, so it can be properly (re)opened and
11634 # appended to by config.status. When coming back to configure, we
11635 # need to make the FD available again.
11636 if test "$no_create" != yes; then
11637 ac_cs_success=:
11638 ac_config_status_args=
11639 test "$silent" = yes &&
11640 ac_config_status_args="$ac_config_status_args --quiet"
11641 exec 5>/dev/null
11642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11643 exec 5>>config.log
11644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11645 # would make configure fail if this is the last instruction.
11646 $ac_cs_success || { (exit 1); exit 1; }
11650 # CONFIG_SUBDIRS section.
11652 if test "$no_recursion" != yes; then
11654 # Remove --cache-file and --srcdir arguments so they do not pile up.
11655 ac_sub_configure_args=
11656 ac_prev=
11657 eval "set x $ac_configure_args"
11658 shift
11659 for ac_arg
11661 if test -n "$ac_prev"; then
11662 ac_prev=
11663 continue
11665 case $ac_arg in
11666 -cache-file | --cache-file | --cache-fil | --cache-fi \
11667 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11668 ac_prev=cache_file ;;
11669 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11670 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11671 | --c=*)
11673 --config-cache | -C)
11675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11676 ac_prev=srcdir ;;
11677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11679 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11680 ac_prev=prefix ;;
11681 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11684 case $ac_arg in
11685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11686 esac
11687 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
11688 esac
11689 done
11691 # Always prepend --prefix to ensure using the same prefix
11692 # in subdir configurations.
11693 ac_arg="--prefix=$prefix"
11694 case $ac_arg in
11695 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11696 esac
11697 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11699 # Pass --silent
11700 if test "$silent" = yes; then
11701 ac_sub_configure_args="--silent $ac_sub_configure_args"
11704 ac_popdir=`pwd`
11705 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11707 # Do not complain, so a configure script can configure whichever
11708 # parts of a large source tree are present.
11709 test -d "$srcdir/$ac_dir" || continue
11711 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11712 echo "$as_me:$LINENO: $ac_msg" >&5
11713 echo "$ac_msg" >&6
11714 { as_dir="$ac_dir"
11715 case $as_dir in #(
11716 -*) as_dir=./$as_dir;;
11717 esac
11718 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11719 as_dirs=
11720 while :; do
11721 case $as_dir in #(
11722 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11723 *) as_qdir=$as_dir;;
11724 esac
11725 as_dirs="'$as_qdir' $as_dirs"
11726 as_dir=`$as_dirname -- "$as_dir" ||
11727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11728 X"$as_dir" : 'X\(//\)[^/]' \| \
11729 X"$as_dir" : 'X\(//\)$' \| \
11730 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11731 echo X"$as_dir" |
11732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11733 s//\1/
11736 /^X\(\/\/\)[^/].*/{
11737 s//\1/
11740 /^X\(\/\/\)$/{
11741 s//\1/
11744 /^X\(\/\).*/{
11745 s//\1/
11748 s/.*/./; q'`
11749 test -d "$as_dir" && break
11750 done
11751 test -z "$as_dirs" || eval "mkdir $as_dirs"
11752 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11753 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11754 { (exit 1); exit 1; }; }; }
11755 ac_builddir=.
11757 case "$ac_dir" in
11758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11761 # A ".." for each directory in $ac_dir_suffix.
11762 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11763 case $ac_top_builddir_sub in
11764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11766 esac ;;
11767 esac
11768 ac_abs_top_builddir=$ac_pwd
11769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11770 # for backward compatibility:
11771 ac_top_builddir=$ac_top_build_prefix
11773 case $srcdir in
11774 .) # We are building in place.
11775 ac_srcdir=.
11776 ac_top_srcdir=$ac_top_builddir_sub
11777 ac_abs_top_srcdir=$ac_pwd ;;
11778 [\\/]* | ?:[\\/]* ) # Absolute name.
11779 ac_srcdir=$srcdir$ac_dir_suffix;
11780 ac_top_srcdir=$srcdir
11781 ac_abs_top_srcdir=$srcdir ;;
11782 *) # Relative name.
11783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11784 ac_top_srcdir=$ac_top_build_prefix$srcdir
11785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11786 esac
11787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11790 cd "$ac_dir"
11792 # Check for guested configure; otherwise get Cygnus style configure.
11793 if test -f "$ac_srcdir/configure.gnu"; then
11794 ac_sub_configure=$ac_srcdir/configure.gnu
11795 elif test -f "$ac_srcdir/configure"; then
11796 ac_sub_configure=$ac_srcdir/configure
11797 elif test -f "$ac_srcdir/configure.in"; then
11798 # This should be Cygnus configure.
11799 ac_sub_configure=$ac_aux_dir/configure
11800 else
11801 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
11802 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11803 ac_sub_configure=
11806 # The recursion is here.
11807 if test -n "$ac_sub_configure"; then
11808 # Make the cache file name correct relative to the subdirectory.
11809 case $cache_file in
11810 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11811 *) # Relative name.
11812 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11813 esac
11815 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11816 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11817 # The eval makes quoting arguments work.
11818 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11819 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11820 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
11821 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11822 { (exit 1); exit 1; }; }
11825 cd "$ac_popdir"
11826 done