2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="include/ptlib.h"
274 ac_subdirs_all
="$ac_subdirs_all plugins"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT PWLIBDIR PWINSTDIR INSTALLPREFIX LIBDIR MAJOR_VERSION MINOR_VERSION BUILD_NUMBER PWLIB_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MACHTYPE OSTYPE OSRELEASE TARGETDIR SHAREDLIBEXT CXXCPP EGREP HAS_REGEX HAS_PLUGINS HAS_SASL HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_VIDEO_CAPTURE HAS_ALSA STDCCFLAGS STDCXXFLAGS OPTSTDCCFLAGS ENDLDLIBS LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CXX_set
=${CXX+set}
754 ac_env_CXX_value
=$CXX
755 ac_cv_env_CXX_set
=${CXX+set}
756 ac_cv_env_CXX_value
=$CXX
757 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value
=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CXXCPP_set
=${CXXCPP+set}
770 ac_env_CXXCPP_value
=$CXXCPP
771 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
772 ac_cv_env_CXXCPP_value
=$CXXCPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
837 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-internalregex force internal regex library
849 --enable-plugins enable plugins
' support in PWLIB
850 --disable-resolver disable DNS resolver support in PWLIB
851 --disable-openldap disable OpenLDAP support in PWLIB
852 --disable-openssl disable OpenSSL support in PWLIB
853 --disable-expat disable XML support in PWLIB
854 --disable-ipv6 disable IPV6 support in PWLIB
855 --disable-qos disable QOS support in PWLIB
856 --disable-sdl disable SDL support in PWLIB
857 --disable-video disable non-plugin video device support in PWLIB
858 --enable-alsa disable non-plugin ALSA audio support
860 Some influential environment variables:
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CXXCPP C++ preprocessor
869 Use these variables to override the choices made by `configure' or to
help
870 it to
find libraries and programs with nonstandard names
/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
879 test -d $ac_dir ||
continue
882 if test "$ac_dir" != .
; then
883 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix
= ac_top_builddir
=
891 .
) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?
:[\\/]* ) # Absolute path.
899 ac_srcdir
=$srcdir$ac_dir_suffix;
900 ac_top_srcdir
=$srcdir ;;
902 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu
; then
916 $SHELL $ac_srcdir/configure.gnu
--help=recursive
917 elif test -f $ac_srcdir/configure
; then
919 $SHELL $ac_srcdir/configure
--help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.
in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
935 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation
, Inc.
937 This configure
script is free software
; the Free Software Foundation
938 gives unlimited permission to copy
, distribute and modify it.
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
982 test -z "$as_dir" && as_dir
=.
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1007 ac_must_keep_next
=false
1013 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1015 |
-silent |
--silent |
--silen |
--sile |
--sil)
1017 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1023 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true
; then
1025 ac_must_keep_next
=false
# Got value, back to normal.
1028 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1029 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1030 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1031 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 -* ) ac_must_keep_next
=true
;;
1039 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1046 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1047 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1095 if test -n "$ac_subst_files"; then
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1110 if test -s confdefs.h; then
1117 sed "/^$/d" confdefs.h | sort
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 for ac_signal
in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest
* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h
<<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1145 cat >>confdefs.h
<<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150 cat >>confdefs.h
<<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1155 cat >>confdefs.h
<<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1160 cat >>confdefs.h
<<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE
; then
1169 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1171 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 for ac_site_file
in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1190 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1191 *) . .
/$cache_file;;
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1200 # Check that the precious variables saved in the cache have kept the same
1202 ac_cache_corrupted
=false
1203 for ac_var
in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1206 eval ac_new_set
=\
$ac_env_${ac_var}_set
1207 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val
="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted
=: ;;
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted
=: ;;
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted
=:
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1233 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg
=$ac_var=$ac_new_val ;;
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1252 ac_cpp
='$CPP $CPPFLAGS'
1253 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1277 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1278 if test -f $ac_dir/install-sh
; then
1280 ac_install_sh
="$ac_aux_dir/install-sh -c"
1282 elif test -f $ac_dir/install.sh
; then
1284 ac_install_sh
="$ac_aux_dir/install.sh -c"
1286 elif test -f $ac_dir/shtool
; then
1288 ac_install_sh
="$ac_aux_dir/shtool install -c"
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1297 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1303 subdirs
="$subdirs plugins"
1307 ac_cpp
='$CXXCPP $CPPFLAGS'
1308 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1315 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CXX+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1328 test -z "$as_dir" && as_dir
=.
1329 for ac_exec_ext
in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1349 test -n "$CXX" && break
1352 if test -z "$CXX"; then
1354 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy
$ac_prog; ac_word
=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
1366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1370 test -z "$as_dir" && as_dir
=.
1371 for ac_exec_ext
in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CXX
="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
1383 if test -n "$ac_ct_CXX"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1385 echo "${ECHO_T}$ac_ct_CXX" >&6
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$ac_ct_CXX" && break
1393 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
1399 # Provide some information about the compiler.
1400 echo "$as_me:$LINENO:" \
1401 "checking for C++ compiler version" >&5
1402 ac_compiler
=`set X $ac_compile; echo $2`
1403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1404 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1407 (exit $ac_status); }
1408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1409 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1414 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1419 cat >conftest.
$ac_ext <<_ACEOF
1420 #line $LINENO "configure"
1423 cat confdefs.h
>>conftest.
$ac_ext
1424 cat >>conftest.
$ac_ext <<_ACEOF
1425 /* end confdefs.h. */
1435 ac_clean_files_save
=$ac_clean_files
1436 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1437 # Try to create an executable without -o first, disregard a.out.
1438 # It will help us diagnose broken compilers, and finding out an intuition
1440 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1441 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1442 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1443 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1444 (eval $ac_link_default) 2>&5
1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1447 (exit $ac_status); }; then
1448 # Find the output, starting from the most likely. This scheme is
1449 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1452 # Be careful to initialize this variable, since it used to be cached.
1453 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1455 # b.out is created by i960 compilers.
1456 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1458 test -f "$ac_file" ||
continue
1460 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1463 # This is the source file.
1466 # We found the default executable, but exeext='' is most
1470 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1471 # FIXME: I believe we export ac_cv_exeext for Libtool,
1472 # but it would be cool to find out if it's true. Does anybody
1473 # maintain Libtool? --akim.
1481 echo "$as_me: failed program was:" >&5
1482 sed 's/^/| /' conftest.
$ac_ext >&5
1484 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1485 See \`config.log' for more details." >&5
1486 echo "$as_me: error: C++ compiler cannot create executables
1487 See \`config.log' for more details." >&2;}
1488 { (exit 77); exit 77; }; }
1491 ac_exeext
=$ac_cv_exeext
1492 echo "$as_me:$LINENO: result: $ac_file" >&5
1493 echo "${ECHO_T}$ac_file" >&6
1495 # Check the compiler produces executables we can run. If not, either
1496 # the compiler is broken, or we cross compile.
1497 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1498 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1499 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1500 # If not cross compiling, check that we can run a simple program.
1501 if test "$cross_compiling" != yes; then
1502 if { ac_try
='./$ac_file'
1503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; }; then
1510 if test "$cross_compiling" = maybe
; then
1513 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1514 If you meant to cross compile, use \`--host'.
1515 See \`config.log' for more details." >&5
1516 echo "$as_me: error: cannot run C++ compiled programs.
1517 If you meant to cross compile, use \`--host'.
1518 See \`config.log' for more details." >&2;}
1519 { (exit 1); exit 1; }; }
1523 echo "$as_me:$LINENO: result: yes" >&5
1524 echo "${ECHO_T}yes" >&6
1526 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1527 ac_clean_files
=$ac_clean_files_save
1528 # Check the compiler produces executables we can run. If not, either
1529 # the compiler is broken, or we cross compile.
1530 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1531 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1532 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1533 echo "${ECHO_T}$cross_compiling" >&6
1535 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1536 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1538 (eval $ac_link) 2>&5
1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1541 (exit $ac_status); }; then
1542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1544 # work properly (i.e., refer to `conftest.exe'), while it won't with
1546 for ac_file
in conftest.exe conftest conftest.
*; do
1547 test -f "$ac_file" ||
continue
1549 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1550 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1558 See \`config.log' for more details." >&5
1559 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1560 See \`config.log' for more details." >&2;}
1561 { (exit 1); exit 1; }; }
1564 rm -f conftest
$ac_cv_exeext
1565 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1566 echo "${ECHO_T}$ac_cv_exeext" >&6
1568 rm -f conftest.
$ac_ext
1569 EXEEXT
=$ac_cv_exeext
1571 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1572 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1573 if test "${ac_cv_objext+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 cat >conftest.
$ac_ext <<_ACEOF
1577 #line $LINENO "configure"
1580 cat confdefs.h
>>conftest.
$ac_ext
1581 cat >>conftest.
$ac_ext <<_ACEOF
1582 /* end confdefs.h. */
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1601 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1606 echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.
$ac_ext >&5
1609 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1610 See \`config.log' for more details." >&5
1611 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1612 See \`config.log' for more details." >&2;}
1613 { (exit 1); exit 1; }; }
1616 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1618 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1619 echo "${ECHO_T}$ac_cv_objext" >&6
1620 OBJEXT
=$ac_cv_objext
1622 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1623 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1624 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 cat >conftest.
$ac_ext <<_ACEOF
1628 #line $LINENO "configure"
1631 cat confdefs.h
>>conftest.
$ac_ext
1632 cat >>conftest.
$ac_ext <<_ACEOF
1633 /* end confdefs.h. */
1646 rm -f conftest.
$ac_objext
1647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try
='test -s conftest.$ac_objext'
1653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; }; then
1660 echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.
$ac_ext >&5
1665 rm -f conftest.
$ac_objext conftest.
$ac_ext
1666 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
1669 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1670 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1671 GXX
=`test $ac_compiler_gnu = yes && echo yes`
1672 ac_test_CXXFLAGS
=${CXXFLAGS+set}
1673 ac_save_CXXFLAGS
=$CXXFLAGS
1675 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1676 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1677 if test "${ac_cv_prog_cxx_g+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 cat >conftest.
$ac_ext <<_ACEOF
1681 #line $LINENO "configure"
1684 cat confdefs.h
>>conftest.
$ac_ext
1685 cat >>conftest.
$ac_ext <<_ACEOF
1686 /* end confdefs.h. */
1696 rm -f conftest.
$ac_objext
1697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1698 (eval $ac_compile) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); } &&
1702 { ac_try
='test -s conftest.$ac_objext'
1703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; }; then
1708 ac_cv_prog_cxx_g
=yes
1710 echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
1715 rm -f conftest.
$ac_objext conftest.
$ac_ext
1717 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1719 if test "$ac_test_CXXFLAGS" = set; then
1720 CXXFLAGS
=$ac_save_CXXFLAGS
1721 elif test $ac_cv_prog_cxx_g = yes; then
1722 if test "$GXX" = yes; then
1728 if test "$GXX" = yes; then
1734 for ac_declaration
in \
1736 '#include <stdlib.h>' \
1737 'extern "C" void std::exit (int) throw (); using std::exit;' \
1738 'extern "C" void std::exit (int); using std::exit;' \
1739 'extern "C" void exit (int) throw ();' \
1740 'extern "C" void exit (int);' \
1743 cat >conftest.
$ac_ext <<_ACEOF
1744 #line $LINENO "configure"
1747 cat confdefs.h
>>conftest.
$ac_ext
1748 cat >>conftest.
$ac_ext <<_ACEOF
1749 /* end confdefs.h. */
1760 rm -f conftest.
$ac_objext
1761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1762 (eval $ac_compile) 2>&5
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); } &&
1766 { ac_try
='test -s conftest.$ac_objext'
1767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1774 echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.
$ac_ext >&5
1779 rm -f conftest.
$ac_objext conftest.
$ac_ext
1780 cat >conftest.
$ac_ext <<_ACEOF
1781 #line $LINENO "configure"
1784 cat confdefs.h
>>conftest.
$ac_ext
1785 cat >>conftest.
$ac_ext <<_ACEOF
1786 /* end confdefs.h. */
1796 rm -f conftest.
$ac_objext
1797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1798 (eval $ac_compile) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); } &&
1802 { ac_try
='test -s conftest.$ac_objext'
1803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; }; then
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.
$ac_ext >&5
1814 rm -f conftest.
$ac_objext conftest.
$ac_ext
1817 if test -n "$ac_declaration"; then
1818 echo '#ifdef __cplusplus' >>confdefs.h
1819 echo $ac_declaration >>confdefs.h
1820 echo '#endif' >>confdefs.h
1824 ac_cpp
='$CPP $CPPFLAGS'
1825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1831 ac_cpp
='$CXXCPP $CPPFLAGS'
1832 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1842 if test "x$prefix" = "xNONE"; then
1843 INSTALLPREFIX
="/usr/local"
1845 INSTALLPREFIX
="${prefix}"
1855 MAJOR_VERSION
=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1856 MINOR_VERSION
=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1857 BUILD_NUMBER
=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1858 PWLIB_VERSION
="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1863 MAJOR_VERSION
=$MAJOR_VERSION
1865 MINOR_VERSION
=$MINOR_VERSION
1867 BUILD_NUMBER
=$BUILD_NUMBER
1870 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1871 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1874 cat >>confdefs.h
<<_ACEOF
1875 #define PWLIB_MAJOR $MAJOR_VERSION
1879 cat >>confdefs.h
<<_ACEOF
1880 #define PWLIB_MINOR $MINOR_VERSION
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PWLIB_BUILD $BUILD_NUMBER
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PWLIB_VERSION "$PWLIB_VERSION"
1895 # Make sure we can run config.sub.
1896 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1897 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1898 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1899 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: checking build system type" >&5
1902 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1903 if test "${ac_cv_build+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 ac_cv_build_alias
=$build_alias
1907 test -z "$ac_cv_build_alias" &&
1908 ac_cv_build_alias
=`$ac_config_guess`
1909 test -z "$ac_cv_build_alias" &&
1910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1911 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1912 { (exit 1); exit 1; }; }
1913 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1915 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1919 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1920 echo "${ECHO_T}$ac_cv_build" >&6
1922 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1923 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1924 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927 echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1929 if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_cv_host_alias
=$host_alias
1933 test -z "$ac_cv_host_alias" &&
1934 ac_cv_host_alias
=$ac_cv_build_alias
1935 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1942 echo "${ECHO_T}$ac_cv_host" >&6
1944 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1945 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1946 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 echo "$as_me:$LINENO: checking target system type" >&5
1950 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1951 if test "${ac_cv_target+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 ac_cv_target_alias
=$target_alias
1955 test "x$ac_cv_target_alias" = "x" &&
1956 ac_cv_target_alias
=$ac_cv_host_alias
1957 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1958 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1959 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1960 { (exit 1); exit 1; }; }
1963 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1964 echo "${ECHO_T}$ac_cv_target" >&6
1965 target
=$ac_cv_target
1966 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1967 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1968 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1971 # The aliases save the names the user supplied, while $host etc.
1972 # will get canonicalized.
1973 test -n "$target_alias" &&
1974 test "$program_prefix$program_suffix$program_transform_name" = \
1976 program_prefix
=${target_alias}-
1981 case "$target_os" in
1982 linux
*) OSTYPE
=linux
;
1983 OSRELEASE
="\"`uname -r`\"";
1985 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
1988 freebsd
* ) OSTYPE
=FreeBSD
;
1989 OS_TAG
="P_FREEBSD" ;
1990 if test "x$OSRELEASE" = "x"; then
1991 OSRELEASE
="`sysctl -n kern.osreldate`" ;
1993 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
1996 openbsd
* ) OSTYPE
=OpenBSD
;
1997 OS_TAG
="P_OPENBSD" ;
1998 OSRELEASE
="`sysctl -n kern.osrevision`" ;
1999 ENDLDLIBS
="-lossaudio" ;
2000 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2003 netbsd
* ) OSTYPE
=NetBSD
;
2005 OSRELEASE
="`/sbin/sysctl -n kern.osrevision`" ;
2006 ENDLDLIBS
="-lossaudio" ;
2007 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2010 solaris
* | sunos
* ) OSTYPE
=solaris
;
2011 OS_TAG
="P_SOLARIS" ;
2012 OSRELEASE
=`uname -r | sed "s/5\.//g"` ;
2013 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2016 darwin
* ) OSTYPE
=Darwin
;
2018 OSRELEASE
="`uname -r | sed 's/\.//g'`" ;
2019 SHAREDLIBEXT
="dylib";
2020 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2023 beos
*) OSTYPE
=beos
;
2025 OSRELEASE
=`uname -r` ;
2026 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
2029 * ) OSTYPE
="$target_os" ;
2030 OS_TAG
="P_UNKNOWN_OS" ;
2031 OSRELEASE
="\"${OSTYPE}_`uname -r`\"" ;
2032 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2033 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2039 case "$target_cpu" in
2040 x86 | i686 | i586 | i486 | i386
) MACHTYPE
=x86
2043 x86_64
) MACHTYPE
=x86_64
;
2048 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) MACHTYPE
=alpha
;
2052 sparc
) MACHTYPE
=sparc
;
2055 powerpc
) MACHTYPE
=ppc
;
2058 ppc
) MACHTYPE
=ppc
;
2061 powerpc64
) MACHTYPE
=ppc64
;
2066 ppc64
) MACHTYPE
=ppc64
;
2071 ia64
) MACHTYPE
=ia64
;
2075 s390x
) MACHTYPE
=s390x
;
2080 s390
) MACHTYPE
=s390
;
2083 * ) MACHTYPE
=$target_cpu ;
2084 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2085 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2088 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2089 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2090 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2091 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2092 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2093 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2099 OSRELEASE
=$OSRELEASE
2101 TARGETDIR
=$TARGETDIR
2104 cat >>confdefs.h
<<_ACEOF
2105 #define $OS_TAG $OSRELEASE
2110 cat >>confdefs.h
<<\_ACEOF
2111 #define PHAS_TEMPLATES 1
2115 if test "x$P_64BIT" != "x" ; then
2117 cat >>confdefs.h
<<\_ACEOF
2123 if test ${OSTYPE} != beos
; then
2125 cat >>confdefs.h
<<\_ACEOF
2126 #define P_PTHREADS 1
2132 if test "x${SHAREDLIBEXT}" = "x" ; then
2135 SHAREDLIBEXT
=$SHAREDLIBEXT
2138 cat >>confdefs.h
<<\_ACEOF
2139 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2146 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2147 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2148 if test "${ac_cv_c_bigendian+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 # See if sys/param.h defines the BYTE_ORDER macro.
2152 cat >conftest.
$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2156 cat confdefs.h
>>conftest.
$ac_ext
2157 cat >>conftest.
$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2159 #include <sys/types.h>
2160 #include <sys/param.h>
2165 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2173 rm -f conftest.
$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try
='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 # It does; now see whether it defined to BIG_ENDIAN or not.
2186 cat >conftest.
$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2190 cat confdefs.h
>>conftest.
$ac_ext
2191 cat >>conftest.
$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2193 #include <sys/types.h>
2194 #include <sys/param.h>
2199 #if BYTE_ORDER != BIG_ENDIAN
2207 rm -f conftest.
$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try
='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 ac_cv_c_bigendian
=yes
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.
$ac_ext >&5
2224 ac_cv_c_bigendian
=no
2226 rm -f conftest.
$ac_objext conftest.
$ac_ext
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.
$ac_ext >&5
2231 # It does not; compile a test program.
2232 if test "$cross_compiling" = yes; then
2233 # try to guess the endianness by grepping values into an object file
2234 ac_cv_c_bigendian
=unknown
2235 cat >conftest.
$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2239 cat confdefs.h
>>conftest.
$ac_ext
2240 cat >>conftest.
$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2242 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2243 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2244 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2245 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2246 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2247 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2251 _ascii (); _ebcdic ();
2256 rm -f conftest.
$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try
='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2268 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
2269 ac_cv_c_bigendian
=yes
2271 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
2272 if test "$ac_cv_c_bigendian" = unknown
; then
2273 ac_cv_c_bigendian
=no
2275 # finding both strings is unlikely to happen, but who knows?
2276 ac_cv_c_bigendian
=unknown
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.
$ac_ext >&5
2284 rm -f conftest.
$ac_objext conftest.
$ac_ext
2286 cat >conftest.
$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2296 /* Are we little or big endian? From Harbison&Steele. */
2300 char c[sizeof (long)];
2303 exit (u.c[sizeof (long) - 1] == 1);
2306 rm -f conftest
$ac_exeext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2308 (eval $ac_link) 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_cv_c_bigendian
=no
2319 echo "$as_me: program exited with status $ac_status" >&5
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.
$ac_ext >&5
2324 ac_cv_c_bigendian
=yes
2326 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2329 rm -f conftest.
$ac_objext conftest.
$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2333 case $ac_cv_c_bigendian in
2336 cat >>confdefs.h
<<\_ACEOF
2337 #define WORDS_BIGENDIAN 1
2343 { { echo "$as_me:$LINENO: error: unknown endianness
2344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2345 echo "$as_me: error: unknown endianness
2346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2347 { (exit 1); exit 1; }; } ;;
2350 if test ${ac_cv_c_bigendian} = yes ; then
2351 PBYTE_ORDER
=PBIG_ENDIAN
2353 PBYTE_ORDER
=PLITTLE_ENDIAN
2357 cat >>confdefs.h
<<_ACEOF
2358 #define PBYTE_ORDER $PBYTE_ORDER
2363 ac_cpp
='$CXXCPP $CPPFLAGS'
2364 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2369 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2370 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2371 cat >conftest.
$ac_ext <<_ACEOF
2372 int main(int ac,char **av) { return 0; }
2374 $CXX $CXXFLAGS -felide-constructors conftest.cc
> /dev
/null
2>&1
2375 if test $?
= 0 ; then
2376 echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2378 STDCXXFLAGS
="$STDCXXFLAGS -felide-constructors"
2380 echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2384 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2385 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2386 cat >conftest.
$ac_ext <<_ACEOF
2387 int main(int ac,char **av) { return 0; }
2389 $STDCXX $CXXFLAGS -Wreorder conftest.cc
> /dev
/null
2>&1
2390 if test $?
= 0 ; then
2391 echo "$as_me:$LINENO: result: yes" >&5
2392 echo "${ECHO_T}yes" >&6
2393 STDCXXFLAGS
="$STDCXXFLAGS -Wreorder"
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2399 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2400 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2401 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2402 # if test $? = 0 ; then
2403 # AC_MSG_RESULT(yes)
2404 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2411 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2412 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2413 cat >conftest.
$ac_ext <<_ACEOF
2414 int main(int ac,char **av) { return 0; }
2416 $CXX $CFLAGS -Wl,--gc-sections conftest.cc
> /dev
/null
2>&1
2417 if test $?
= 0 ; then
2418 echo "$as_me:$LINENO: result: yes" >&5
2419 echo "${ECHO_T}yes" >&6
2421 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2422 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2423 cat >conftest.
$ac_ext <<_ACEOF
2424 int main(int ac,char **av) { return 0; }
2426 $CXX $CFLAGS -ffunction-sections -c conftest.cc
> /dev
/null
2>&1
2427 if test $?
= 0 ; then
2428 echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6
2430 STDCCFLAGS
="$STDCCFLAGS -ffunction-sections"
2433 echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2437 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2438 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2439 cat >conftest.
$ac_ext <<_ACEOF
2440 int main(int ac,char **av) { return 0; }
2442 $CXX $CFLAGS -fdata-sections -c conftest.cc
> /dev
/null
2>&1
2443 if test $?
= 0 ; then
2444 echo "$as_me:$LINENO: result: yes" >&5
2445 echo "${ECHO_T}yes" >&6
2446 STDCCFLAGS
="$STDCCFLAGS -fdata-sections"
2449 echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6
2454 if test $GCSECTIONS = 1; then
2455 if test "${OSTYPE}" != "Darwin" ; then
2456 P_STATIC_LDFLAGS
="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2466 ac_cpp
='$CXXCPP $CPPFLAGS'
2467 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2473 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2474 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2475 if test "${ac_cv_c_long_double+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.
$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2482 cat confdefs.h
>>conftest.
$ac_ext
2483 cat >>conftest.
$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2486 long double foo = 0.0;
2490 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2491 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2492 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2499 rm -f conftest.
$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try
='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_c_long_double
=yes
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.
$ac_ext >&5
2516 ac_cv_c_long_double
=no
2518 rm -f conftest.
$ac_objext conftest.
$ac_ext
2520 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2521 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2522 if test $ac_cv_c_long_double = yes; then
2524 cat >>confdefs.h
<<\_ACEOF
2525 #define HAVE_LONG_DOUBLE 1
2530 if test $ac_cv_c_long_double != yes ; then
2532 cat >>confdefs.h
<<\_ACEOF
2533 #define PNO_LONG_DOUBLE
2538 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2539 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2540 cat >conftest.
$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2544 cat confdefs.h
>>conftest.
$ac_ext
2545 cat >>conftest.
$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547 #define _POSIX_PTHREAD_SEMANTICS
2552 DIR *s; struct dirent * e; readdir_r(s, e);
2557 rm -f conftest.
$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try
='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 P_HAS_POSIX_READDIR_R
=2
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.
$ac_ext >&5
2574 P_HAS_POSIX_READDIR_R
=0
2576 rm -f conftest.
$ac_objext conftest.
$ac_ext
2577 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2578 echo "$as_me:$LINENO: result: yes" >&5
2579 echo "${ECHO_T}yes" >&6
2581 echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2583 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2584 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2585 cat >conftest.
$ac_ext <<_ACEOF
2586 #line $LINENO "configure"
2589 cat confdefs.h
>>conftest.
$ac_ext
2590 cat >>conftest.
$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2596 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2601 rm -f conftest.
$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try
='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 P_HAS_POSIX_READDIR_R
=3
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.
$ac_ext >&5
2618 P_HAS_POSIX_READDIR_R
=0
2620 rm -f conftest.
$ac_objext conftest.
$ac_ext
2621 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2622 echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6
2625 echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2629 cat >>confdefs.h
<<_ACEOF
2630 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2636 echo "$as_me:$LINENO: checking if using STL streams" >&5
2637 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2638 cat >conftest.
$ac_ext <<_ACEOF
2639 #line $LINENO "configure"
2642 cat confdefs.h
>>conftest.
$ac_ext
2643 cat >>conftest.
$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2649 int v = (int)std::ios_base::seekdir();
2654 rm -f conftest.
$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try
='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.
$ac_ext >&5
2672 rm -f conftest.
$ac_objext conftest.
$ac_ext
2673 if test ${P_HAS_STL_STREAMS} = 1 ; then
2674 echo "$as_me:$LINENO: result: yes" >&5
2675 echo "${ECHO_T}yes" >&6
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2680 cat >>confdefs.h
<<_ACEOF
2681 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2687 P_NEEDS_GNU_CXX_NAMESPACE
=0
2688 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2689 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2690 cat >conftest.
$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2694 cat confdefs.h
>>conftest.
$ac_ext
2695 cat >>conftest.
$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2697 #include <bits/atomicity.h>
2706 rm -f conftest.
$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try
='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.
$ac_ext >&5
2724 rm -f conftest.
$ac_objext conftest.
$ac_ext
2725 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2728 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2729 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2730 cat >conftest.
$ac_ext <<_ACEOF
2731 #line $LINENO "configure"
2734 cat confdefs.h
>>conftest.
$ac_ext
2735 cat >>conftest.
$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2737 #include <bits/atomicity.h>
2741 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2746 rm -f conftest.
$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try
='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 P_NEEDS_GNU_CXX_NAMESPACE
=1
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.
$ac_ext >&5
2764 rm -f conftest.
$ac_objext conftest.
$ac_ext
2765 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2766 echo "$as_me:$LINENO: result: yes" >&5
2767 echo "${ECHO_T}yes" >&6
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2776 cat >>confdefs.h
<<_ACEOF
2777 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2780 cat >>confdefs.h
<<_ACEOF
2781 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2787 if test ${OSTYPE} != Darwin
; then
2788 cat >conftest.
$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <semaphore.h>
2799 sem_t *s; sem_init(s, 0, 0);
2804 rm -f conftest.
$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try
='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.
$ac_ext >&5
2822 rm -f conftest.
$ac_objext conftest.
$ac_ext
2823 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2824 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2825 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2826 cat >>confdefs.h
<<\_ACEOF
2827 #define P_HAS_SEMAPHORES 1
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2836 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2837 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2838 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2839 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2840 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2841 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2842 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2849 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2850 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2851 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 ac_check_lib_save_LIBS
=$LIBS
2855 LIBS
="-lpthread $LIBS"
2856 cat >conftest.
$ac_ext <<_ACEOF
2857 #line $LINENO "configure"
2860 cat confdefs.h
>>conftest.
$ac_ext
2861 cat >>conftest.
$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2864 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870 char pthread_create ();
2879 rm -f conftest.
$ac_objext conftest
$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try
='test -s conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_lib_pthread_pthread_create
=yes
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.
$ac_ext >&5
2896 ac_cv_lib_pthread_pthread_create
=no
2898 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2899 LIBS
=$ac_check_lib_save_LIBS
2901 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2902 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2903 if test $ac_cv_lib_pthread_pthread_create = yes; then
2909 if test ${HAS_PTHREADS} = yes ; then
2910 ENDLDLIBS
="$ENDLDLIBS -lpthread"
2911 STDCCFLAGS
="$STDCCFLAGS -D_REENTRANT"
2913 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2914 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2915 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 ac_check_lib_save_LIBS
=$LIBS
2920 cat >conftest.
$ac_ext <<_ACEOF
2921 #line $LINENO "configure"
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2934 char pthread_create ();
2943 rm -f conftest.
$ac_objext conftest
$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try
='test -s conftest$ac_exeext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 ac_cv_lib_c_r_pthread_create
=yes
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2960 ac_cv_lib_c_r_pthread_create
=no
2962 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2963 LIBS
=$ac_check_lib_save_LIBS
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2966 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2967 if test $ac_cv_lib_c_r_pthread_create = yes; then
2973 if test ${HAS_PTHREADS} = yes ; then
2974 ENDLDLIBS
="$ENDLDLIBS -pthread"
2975 STDCCFLAGS
="$STDCCFLAGS -D_REENTRANT -pthread"
2980 if test ${HAS_PTHREADS} != yes ; then
2981 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2982 echo "$as_me: error: must have pthreads!" >&2;}
2983 { (exit 1); exit 1; }; }
2987 if test ${HAS_PTHREADS} = yes ; then
2988 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
2989 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
2990 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 ac_check_lib_save_LIBS
=$LIBS
2994 LIBS
="-lpthread $LIBS"
2995 cat >conftest.
$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2999 cat confdefs.h
>>conftest.
$ac_ext
3000 cat >>conftest.
$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 /* Override any gcc2 internal prototype to avoid an error. */
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3009 char pthread_mutex_timedlock ();
3013 pthread_mutex_timedlock ();
3018 rm -f conftest.
$ac_objext conftest
$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try
='test -s conftest$ac_exeext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_lib_pthread_pthread_mutex_timedlock
=yes
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 ac_cv_lib_pthread_pthread_mutex_timedlock
=no
3037 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3038 LIBS
=$ac_check_lib_save_LIBS
3040 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3041 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3042 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3043 HAS_PTHREADS_XPG6
=yes
3045 HAS_PTHREADS_XPG6
=no
3048 if test ${HAS_PTHREADS_XPG6} = yes ; then
3050 cat >>confdefs.h
<<\_ACEOF
3051 #define P_PTHREADS_XPG6 1
3056 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3057 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3058 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 ac_check_lib_save_LIBS
=$LIBS
3062 LIBS
="-lpthread $LIBS"
3063 cat >conftest.
$ac_ext <<_ACEOF
3064 #line $LINENO "configure"
3067 cat confdefs.h
>>conftest.
$ac_ext
3068 cat >>conftest.
$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 /* Override any gcc2 internal prototype to avoid an error. */
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3077 char sem_timedwait ();
3086 rm -f conftest.
$ac_objext conftest
$ac_exeext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try
='test -s conftest$ac_exeext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_lib_pthread_sem_timedwait
=yes
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.
$ac_ext >&5
3103 ac_cv_lib_pthread_sem_timedwait
=no
3105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3106 LIBS
=$ac_check_lib_save_LIBS
3108 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3109 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3110 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3111 HAS_SEMAPHORES_XPG6
=yes
3113 HAS_SEMAPHORES_XPG6
=no
3116 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3117 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3118 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3119 cat >conftest.
$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <semaphore.h>
3130 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3135 rm -f conftest.
$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try
='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 HAS_SEMAPHORES_XPG6
=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3152 HAS_SEMAPHORES_XPG6
=no
3154 rm -f conftest.
$ac_objext conftest.
$ac_ext
3155 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3157 cat >>confdefs.h
<<\_ACEOF
3158 #define P_HAS_SEMAPHORES_XPG6 1
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3170 P_HAS_RECURSIVE_MUTEX
=0
3171 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3172 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3173 cat >conftest.
$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3177 cat confdefs.h
>>conftest.
$ac_ext
3178 cat >>conftest.
$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #include <pthread.h>
3184 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3189 rm -f conftest.
$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try
='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 P_HAS_RECURSIVE_MUTEX
=1
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.
$ac_ext >&5
3207 rm -f conftest.
$ac_objext conftest.
$ac_ext
3208 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3209 echo "$as_me:$LINENO: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3212 echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3215 cat >>confdefs.h
<<_ACEOF
3216 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3223 ac_cpp
='$CXXCPP $CPPFLAGS'
3224 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3227 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3229 if test -z "$CXXCPP"; then
3230 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 # Double quotes because CXXCPP needs to be expanded
3234 for CXXCPP
in "$CXX -E" "/lib/cpp"
3237 for ac_cxx_preproc_warn_flag
in '' yes
3239 # Use a header file that comes with gcc, so configuring glibc
3240 # with a fresh cross-compiler works.
3241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242 # <limits.h> exists even on freestanding compilers.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp. "Syntax error" is here to catch this case.
3245 cat >conftest.
$ac_ext <<_ACEOF
3246 #line $LINENO "configure"
3249 cat confdefs.h
>>conftest.
$ac_ext
3250 cat >>conftest.
$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3253 # include <limits.h>
3255 # include <assert.h>
3259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1
>conftest.err
3264 cat conftest.err
>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev
/null
; then
3267 if test -s conftest.err
; then
3268 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3275 if test -z "$ac_cpp_err"; then
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.
$ac_ext >&5
3281 # Broken: fails on valid input.
3284 rm -f conftest.err conftest.
$ac_ext
3286 # OK, works on sane cases. Now check whether non-existent headers
3287 # can be detected and how.
3288 cat >conftest.
$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3292 cat confdefs.h
>>conftest.
$ac_ext
3293 cat >>conftest.
$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1
>conftest.err
3302 cat conftest.err
>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev
/null
; then
3305 if test -s conftest.err
; then
3306 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3313 if test -z "$ac_cpp_err"; then
3314 # Broken: success on invalid input.
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.
$ac_ext >&5
3320 # Passes both tests.
3324 rm -f conftest.err conftest.
$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.
$ac_ext
3329 if $ac_preproc_ok; then
3334 ac_cv_prog_CXXCPP
=$CXXCPP
3337 CXXCPP
=$ac_cv_prog_CXXCPP
3339 ac_cv_prog_CXXCPP
=$CXXCPP
3341 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3342 echo "${ECHO_T}$CXXCPP" >&6
3344 for ac_cxx_preproc_warn_flag
in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.
$ac_ext <<_ACEOF
3353 #line $LINENO "configure"
3356 cat confdefs.h
>>conftest.
$ac_ext
3357 cat >>conftest.
$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3360 # include <limits.h>
3362 # include <assert.h>
3366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3369 grep -v '^ *+' conftest.er1
>conftest.err
3371 cat conftest.err
>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev
/null
; then
3374 if test -s conftest.err
; then
3375 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3382 if test -z "$ac_cpp_err"; then
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.
$ac_ext >&5
3388 # Broken: fails on valid input.
3391 rm -f conftest.err conftest.
$ac_ext
3393 # OK, works on sane cases. Now check whether non-existent headers
3394 # can be detected and how.
3395 cat >conftest.
$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3399 cat confdefs.h
>>conftest.
$ac_ext
3400 cat >>conftest.
$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <ac_nonexistent.h>
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1
>conftest.err
3409 cat conftest.err
>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev
/null
; then
3412 if test -s conftest.err
; then
3413 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3420 if test -z "$ac_cpp_err"; then
3421 # Broken: success on invalid input.
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.
$ac_ext >&5
3427 # Passes both tests.
3431 rm -f conftest.err conftest.
$ac_ext
3434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435 rm -f conftest.err conftest.
$ac_ext
3436 if $ac_preproc_ok; then
3439 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3440 See \`config.log' for more details." >&5
3441 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3442 See \`config.log' for more details." >&2;}
3443 { (exit 1); exit 1; }; }
3447 ac_cpp
='$CXXCPP $CPPFLAGS'
3448 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3453 echo "$as_me:$LINENO: checking for egrep" >&5
3454 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3455 if test "${ac_cv_prog_egrep+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3459 then ac_cv_prog_egrep
='grep -E'
3460 else ac_cv_prog_egrep
='egrep'
3463 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3464 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3465 EGREP
=$ac_cv_prog_egrep
3468 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3469 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3470 if test "${ac_cv_header_stdc+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 cat >conftest.
$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3477 cat confdefs.h
>>conftest.
$ac_ext
3478 cat >>conftest.
$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3493 rm -f conftest.
$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try
='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_header_stdc
=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.
$ac_ext >&5
3510 ac_cv_header_stdc
=no
3512 rm -f conftest.
$ac_objext conftest.
$ac_ext
3514 if test $ac_cv_header_stdc = yes; then
3515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3516 cat >conftest.
$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3520 cat confdefs.h
>>conftest.
$ac_ext
3521 cat >>conftest.
$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 $EGREP "memchr" >/dev
/null
2>&1; then
3530 ac_cv_header_stdc
=no
3536 if test $ac_cv_header_stdc = yes; then
3537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3538 cat >conftest.
$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3542 cat confdefs.h
>>conftest.
$ac_ext
3543 cat >>conftest.
$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev
/null
2>&1; then
3552 ac_cv_header_stdc
=no
3558 if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then
3563 cat >conftest.
$ac_ext <<_ACEOF
3564 #line $LINENO "configure"
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 #if ((' ' & 0x0FF) == 0x020)
3572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3575 # define ISLOWER(c) \
3576 (('a' <= (c) && (c) <= 'i') \
3577 || ('j' <= (c) && (c) <= 'r') \
3578 || ('s' <= (c) && (c) <= 'z'))
3579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3587 for (i = 0; i < 256; i++)
3588 if (XOR (islower (i), ISLOWER (i))
3589 || toupper (i) != TOUPPER (i))
3594 rm -f conftest
$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596 (eval $ac_link) 2>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3607 echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3612 ac_cv_header_stdc
=no
3614 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3619 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3620 if test $ac_cv_header_stdc = yes; then
3622 cat >>confdefs.h
<<\_ACEOF
3623 #define STDC_HEADERS 1
3628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3638 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3639 inttypes.h stdint.h unistd.h
3641 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3642 echo "$as_me:$LINENO: checking for $ac_header" >&5
3643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 cat >conftest.
$ac_ext <<_ACEOF
3648 #line $LINENO "configure"
3651 cat confdefs.h
>>conftest.
$ac_ext
3652 cat >>conftest.
$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3656 #include <$ac_header>
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try
='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 eval "$as_ac_Header=yes"
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.
$ac_ext >&5
3675 eval "$as_ac_Header=no"
3677 rm -f conftest.
$ac_objext conftest.
$ac_ext
3679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3682 cat >>confdefs.h
<<_ACEOF
3683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692 for ac_header
in regex.h
3694 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3696 echo "$as_me:$LINENO: checking for $ac_header" >&5
3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3704 # Is the header compilable?
3705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3707 cat >conftest.
$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3711 cat confdefs.h
>>conftest.
$ac_ext
3712 cat >>conftest.
$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 $ac_includes_default
3715 #include <$ac_header>
3717 rm -f conftest.
$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try
='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_header_compiler
=yes
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.
$ac_ext >&5
3734 ac_header_compiler
=no
3736 rm -f conftest.
$ac_objext conftest.
$ac_ext
3737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3738 echo "${ECHO_T}$ac_header_compiler" >&6
3740 # Is the header present?
3741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3743 cat >conftest.
$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3747 cat confdefs.h
>>conftest.
$ac_ext
3748 cat >>conftest.
$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <$ac_header>
3752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1
>conftest.err
3757 cat conftest.err
>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } >/dev
/null
; then
3760 if test -s conftest.err
; then
3761 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3768 if test -z "$ac_cpp_err"; then
3769 ac_header_preproc
=yes
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.
$ac_ext >&5
3774 ac_header_preproc
=no
3776 rm -f conftest.err conftest.
$ac_ext
3777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3778 echo "${ECHO_T}$ac_header_preproc" >&6
3780 # So? What about this header?
3781 case $ac_header_compiler:$ac_header_preproc in
3783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3789 ## ------------------------------------ ##
3790 ## Report this to bug-autoconf@gnu.org. ##
3791 ## ------------------------------------ ##
3794 sed "s/^/$as_me: WARNING: /" >&2
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3805 ## ------------------------------------ ##
3806 ## Report this to bug-autoconf@gnu.org. ##
3807 ## ------------------------------------ ##
3810 sed "s/^/$as_me: WARNING: /" >&2
3813 echo "$as_me:$LINENO: checking for $ac_header" >&5
3814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 eval "$as_ac_Header=$ac_header_preproc"
3820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3825 cat >>confdefs.h
<<_ACEOF
3826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3834 # Check whether --enable-internalregex or --disable-internalregex was given.
3835 if test "${enable_internalregex+set}" = set; then
3836 enableval
="$enable_internalregex"
3837 internalregex
=$enableval
3839 if test "$internalregex" = "yes" ; then
3840 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3841 echo "$as_me: Forcing use of internal regex library" >&6;}
3843 if test "$HAS_REGEX" = "yes" ; then
3844 echo "$as_me:$LINENO: checking for regcomp" >&5
3845 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3846 if test "${ac_cv_func_regcomp+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 cat >conftest.
$ac_ext <<_ACEOF
3850 #line $LINENO "configure"
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 /* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char regcomp (); below.
3858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859 <limits.h> exists even on freestanding compilers. */
3861 # include <limits.h>
3863 # include <assert.h>
3865 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3873 /* The GNU C library defines this for functions which it implements
3874 to always fail with ENOSYS. Some functions are actually named
3875 something starting with __ and the normal name is an alias. */
3876 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3879 char (*f) () = regcomp;
3888 return f != regcomp;
3893 rm -f conftest.
$ac_objext conftest
$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try
='test -s conftest$ac_exeext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_func_regcomp
=yes
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.
$ac_ext >&5
3910 ac_cv_func_regcomp
=no
3912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3914 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3915 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3916 if test $ac_cv_func_regcomp = yes; then
3920 if test "$HAS_REGEX" = "yes" ; then
3924 cat >>confdefs.h
<<\_ACEOF
3938 if test ${OSTYPE} = beos
; then
3941 cat >>confdefs.h
<<\_ACEOF
3942 #define P_DYNALINK 1
3945 elif test ${OSTYPE} = Darwin
; then
3948 cat >>confdefs.h
<<\_ACEOF
3949 #define P_DYNALINK 1
3954 for ac_header
in dlfcn.h
3956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3958 echo "$as_me:$LINENO: checking for $ac_header" >&5
3959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966 # Is the header compilable?
3967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3969 cat >conftest.
$ac_ext <<_ACEOF
3970 #line $LINENO "configure"
3973 cat confdefs.h
>>conftest.
$ac_ext
3974 cat >>conftest.
$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 $ac_includes_default
3977 #include <$ac_header>
3979 rm -f conftest.
$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try
='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_header_compiler
=yes
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.
$ac_ext >&5
3996 ac_header_compiler
=no
3998 rm -f conftest.
$ac_objext conftest.
$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4000 echo "${ECHO_T}$ac_header_compiler" >&6
4002 # Is the header present?
4003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4005 cat >conftest.
$ac_ext <<_ACEOF
4006 #line $LINENO "configure"
4009 cat confdefs.h
>>conftest.
$ac_ext
4010 cat >>conftest.
$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <$ac_header>
4014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4017 grep -v '^ *+' conftest.er1
>conftest.err
4019 cat conftest.err
>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev
/null
; then
4022 if test -s conftest.err
; then
4023 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4030 if test -z "$ac_cpp_err"; then
4031 ac_header_preproc
=yes
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.
$ac_ext >&5
4036 ac_header_preproc
=no
4038 rm -f conftest.err conftest.
$ac_ext
4039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4040 echo "${ECHO_T}$ac_header_preproc" >&6
4042 # So? What about this header?
4043 case $ac_header_compiler:$ac_header_preproc in
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4051 ## ------------------------------------ ##
4052 ## Report this to bug-autoconf@gnu.org. ##
4053 ## ------------------------------------ ##
4056 sed "s/^/$as_me: WARNING: /" >&2
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4067 ## ------------------------------------ ##
4068 ## Report this to bug-autoconf@gnu.org. ##
4069 ## ------------------------------------ ##
4072 sed "s/^/$as_me: WARNING: /" >&2
4075 echo "$as_me:$LINENO: checking for $ac_header" >&5
4076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 eval "$as_ac_Header=$ac_header_preproc"
4082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4087 cat >>confdefs.h
<<_ACEOF
4088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 if test "$HAS_DLFCN" = yes ; then
4098 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4099 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4100 cat >conftest.
$ac_ext <<_ACEOF
4101 #line $LINENO "configure"
4104 cat confdefs.h
>>conftest.
$ac_ext
4105 cat >>conftest.
$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4111 void * p = dlopen("lib", 0);
4116 rm -f conftest.
$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try
='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4135 rm -f conftest.
$ac_objext conftest.
$ac_ext
4136 if test "$HAS_DLOPEN" = no
; then
4137 echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4140 echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6
4144 cat >>confdefs.h
<<\_ACEOF
4145 #define P_DYNALINK 1
4148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 ac_check_lib_save_LIBS
=$LIBS
4155 cat >conftest.
$ac_ext <<_ACEOF
4156 #line $LINENO "configure"
4159 cat confdefs.h
>>conftest.
$ac_ext
4160 cat >>conftest.
$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4178 rm -f conftest.
$ac_objext conftest
$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try
='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_lib_dl_dlopen
=yes
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.
$ac_ext >&5
4195 ac_cv_lib_dl_dlopen
=no
4197 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4198 LIBS
=$ac_check_lib_save_LIBS
4200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4202 if test $ac_cv_lib_dl_dlopen = yes; then
4213 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4214 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4215 # Check whether --enable-plugins or --disable-plugins was given.
4216 if test "${enable_plugins+set}" = set; then
4217 enableval
="$enable_plugins"
4222 if test "${plugins}" = "no" ; then
4223 echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6
4225 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4226 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4227 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4229 echo "$as_me:$LINENO: result: plugins enabled" >&5
4230 echo "${ECHO_T}plugins enabled" >&6
4233 cat >>confdefs.h
<<\_ACEOF
4234 #define P_HAS_PLUGINS 1
4241 if test "x$LIB64" != "x" ; then
4243 cat >>confdefs.h
<<_ACEOF
4244 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4249 cat >>confdefs.h
<<_ACEOF
4250 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4257 # Check whether --enable-resolver or --disable-resolver was given.
4258 if test "${enable_resolver+set}" = set; then
4259 enableval
="$enable_resolver"
4263 if test "$resolver" = "no" ; then
4264 cat >>confdefs.h
<<\_ACEOF
4269 echo "$as_me:$LINENO: checking for res_search" >&5
4270 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4271 if test "${ac_cv_func_res_search+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.
$ac_ext <<_ACEOF
4275 #line $LINENO "configure"
4278 cat confdefs.h
>>conftest.
$ac_ext
4279 cat >>conftest.
$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char res_search (); below.
4283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 <limits.h> exists even on freestanding compilers. */
4286 # include <limits.h>
4288 # include <assert.h>
4290 /* Override any gcc2 internal prototype to avoid an error. */
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_res_search) || defined (__stub___res_search)
4304 char (*f) () = res_search;
4313 return f != res_search;
4318 rm -f conftest.
$ac_objext conftest
$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try
='test -s conftest$ac_exeext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_func_res_search
=yes
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.
$ac_ext >&5
4335 ac_cv_func_res_search
=no
4337 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4339 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4340 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4341 if test $ac_cv_func_res_search = yes; then
4345 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4348 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4349 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4351 cat >conftest.
$ac_ext <<_ACEOF
4353 #include <netinet/in.h>
4355 int main(int argc,char **argv){
4356 res_search (NULL, 0, 0, NULL, 0);
4359 rm -f conftest.
$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try
='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.
$ac_ext >&5
4377 rm -f conftest.
$ac_objext conftest.
$ac_ext
4378 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4379 echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6
4381 RESOLVER_LIBS
="-lresolv"
4383 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4384 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4385 if test "${ac_cv_search___res_search+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 ac_func_search_save_LIBS
=$LIBS
4389 ac_cv_search___res_search
=no
4390 cat >conftest.
$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4398 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char __res_search ();
4413 rm -f conftest.
$ac_objext conftest
$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try
='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_search___res_search
="none required"
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.
$ac_ext >&5
4431 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4432 if test "$ac_cv_search___res_search" = no
; then
4433 for ac_lib
in resolv
; do
4434 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4435 cat >conftest.
$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4439 cat confdefs.h
>>conftest.
$ac_ext
4440 cat >>conftest.
$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4449 char __res_search ();
4458 rm -f conftest.
$ac_objext conftest
$ac_exeext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4460 (eval $ac_link) 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try
='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_search___res_search
="-l$ac_lib"
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.
$ac_ext >&5
4477 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4480 LIBS
=$ac_func_search_save_LIBS
4482 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4483 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4484 if test "$ac_cv_search___res_search" != no
; then
4485 test "$ac_cv_search___res_search" = "none required" || LIBS
="$ac_cv_search___res_search $LIBS"
4492 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4494 cat >>confdefs.h
<<\_ACEOF
4503 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4504 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4505 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_check_lib_save_LIBS
=$LIBS
4509 LIBS
="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4510 cat >conftest.
$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4514 cat confdefs.h
>>conftest.
$ac_ext
4515 cat >>conftest.
$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4518 /* Override any gcc2 internal prototype to avoid an error. */
4522 /* We use char because int might match the return type of a gcc2
4523 builtin and then its argument prototype would still apply. */
4524 char sasl_client_auth ();
4528 sasl_client_auth ();
4533 rm -f conftest.
$ac_objext conftest
$ac_exeext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try
='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 ac_cv_lib_sasl_sasl_client_auth
=yes
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4550 ac_cv_lib_sasl_sasl_client_auth
=no
4552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4553 LIBS
=$ac_check_lib_save_LIBS
4555 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4556 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4557 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4563 if test ${HAS_SASL:-unset} = "unset" ; then
4564 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4565 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4566 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 ac_check_lib_save_LIBS
=$LIBS
4570 LIBS
="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4571 cat >conftest.
$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4575 cat confdefs.h
>>conftest.
$ac_ext
4576 cat >>conftest.
$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4585 char sasl_version ();
4594 rm -f conftest.
$ac_objext conftest
$ac_exeext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try
='test -s conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_lib_sasl2_sasl_version
=yes
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.
$ac_ext >&5
4611 ac_cv_lib_sasl2_sasl_version
=no
4613 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4614 LIBS
=$ac_check_lib_save_LIBS
4616 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4617 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4618 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4626 if test ${HAS_SASL:-unset} != "unset" ; then
4628 ENDLDLIBS
="$ENDLDLIBS -lsasl"
4629 cat >>confdefs.h
<<\_ACEOF
4635 elif test ${HAS_SASL2:-unset} != "unset" ; then
4637 ENDLDLIBS
="$ENDLDLIBS -lsasl2"
4638 cat >>confdefs.h
<<\_ACEOF
4650 # Check whether --enable-openldap or --disable-openldap was given.
4651 if test "${enable_openldap+set}" = set; then
4652 enableval
="$enable_openldap"
4656 if test "$openldap" = "no" ; then
4659 cat >>confdefs.h
<<\_ACEOF
4663 elif test $HAS_SASL = 0 ; then
4664 { echo "$as_me:$LINENO: OpenLDAP disabled as SASL is not available" >&5
4665 echo "$as_me: OpenLDAP disabled as SASL is not available" >&6;}
4667 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4669 for ac_header
in ldap.h
4671 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4673 echo "$as_me:$LINENO: checking for $ac_header" >&5
4674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4681 # Is the header compilable?
4682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4684 cat >conftest.
$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4688 cat confdefs.h
>>conftest.
$ac_ext
4689 cat >>conftest.
$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 #include <$ac_header>
4694 rm -f conftest.
$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try
='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_header_compiler
=yes
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.
$ac_ext >&5
4711 ac_header_compiler
=no
4713 rm -f conftest.
$ac_objext conftest.
$ac_ext
4714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 echo "${ECHO_T}$ac_header_compiler" >&6
4717 # Is the header present?
4718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4720 cat >conftest.
$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4724 cat confdefs.h
>>conftest.
$ac_ext
4725 cat >>conftest.
$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #include <$ac_header>
4729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4732 grep -v '^ *+' conftest.er1
>conftest.err
4734 cat conftest.err
>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } >/dev
/null
; then
4737 if test -s conftest.err
; then
4738 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4745 if test -z "$ac_cpp_err"; then
4746 ac_header_preproc
=yes
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.
$ac_ext >&5
4751 ac_header_preproc
=no
4753 rm -f conftest.err conftest.
$ac_ext
4754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 echo "${ECHO_T}$ac_header_preproc" >&6
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc in
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4766 ## ------------------------------------ ##
4767 ## Report this to bug-autoconf@gnu.org. ##
4768 ## ------------------------------------ ##
4771 sed "s/^/$as_me: WARNING: /" >&2
4774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4782 ## ------------------------------------ ##
4783 ## Report this to bug-autoconf@gnu.org. ##
4784 ## ------------------------------------ ##
4787 sed "s/^/$as_me: WARNING: /" >&2
4790 echo "$as_me:$LINENO: checking for $ac_header" >&5
4791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 eval "$as_ac_Header=$ac_header_preproc"
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4802 cat >>confdefs.h
<<_ACEOF
4803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811 if test "${OSTYPE:-unknown}" = "solaris"; then
4812 OPENLDAPSYSLIBS
=-lposix4
4815 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4816 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4817 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4818 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 ac_check_lib_save_LIBS
=$LIBS
4822 LIBS
="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4823 cat >conftest.
$ac_ext <<_ACEOF
4824 #line $LINENO "configure"
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4831 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4846 rm -f conftest.
$ac_objext conftest
$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try
='test -s conftest$ac_exeext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_lib_ldap_ldap_open
=yes
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4863 ac_cv_lib_ldap_ldap_open
=no
4865 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4866 LIBS
=$ac_check_lib_save_LIBS
4868 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4869 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4870 if test $ac_cv_lib_ldap_ldap_open = yes; then
4877 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4878 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4879 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 test "$cross_compiling" = yes &&
4883 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4884 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4885 { (exit 1); exit 1; }; }
4886 if test -r "/usr/local/include/ldap.h"; then
4887 ac_cv_file__usr_local_include_ldap_h
=yes
4889 ac_cv_file__usr_local_include_ldap_h
=no
4892 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4893 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4894 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4898 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4899 OPENLDAPINCLUDEDIR
=/usr
/local
/include
4900 OPENLDAPLIBDIR
=/usr
/local
/lib
4901 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4902 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4903 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_check_lib_save_LIBS
=$LIBS
4907 LIBS
="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4908 cat >conftest.
$ac_ext <<_ACEOF
4909 #line $LINENO "configure"
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 /* Override any gcc2 internal prototype to avoid an error. */
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4931 rm -f conftest.
$ac_objext conftest
$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try
='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_cv_lib_ldap_ldap_open
=yes
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.
$ac_ext >&5
4948 ac_cv_lib_ldap_ldap_open
=no
4950 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4951 LIBS
=$ac_check_lib_save_LIBS
4953 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4954 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4955 if test $ac_cv_lib_ldap_ldap_open = yes; then
4965 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4969 cat >>confdefs.h
<<\_ACEOF
4973 ENDLDLIBS
="-lldap -lldap_r -llber $ENDLDLIBS"
4974 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
4975 STDCCFLAGS
="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4977 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
4978 LDFLAGS
="$LDFLAGS -L${OPENLDAPLIBDIR}"
4986 # Check whether --enable-openssl or --disable-openssl was given.
4987 if test "${enable_openssl+set}" = set; then
4988 enableval
="$enable_openssl"
4992 if test "$openssl" = "no" ; then
4993 cat >>confdefs.h
<<\_ACEOF
5001 if test ${OPENSSLDIR:-unset} != "unset" ; then
5002 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5003 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5004 if test -e ${OPENSSLDIR}/include
/openssl
/ssl.h
; then
5005 echo "$as_me:$LINENO: result: yes" >&5
5006 echo "${ECHO_T}yes" >&6
5008 SSLINCLUDEDIR
="${OPENSSLDIR}/include"
5009 SSLLIBDIR
="${OPENSSLDIR}/lib"
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5017 if test "${SSLHDR:-unset}" = "unset" ; then
5019 for ac_header
in openssl
/ssl.h
5021 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 # Is the header compilable?
5032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5034 cat >conftest.
$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042 #include <$ac_header>
5044 rm -f conftest.
$ac_objext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046 (eval $ac_compile) 2>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try
='test -s conftest.$ac_objext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 ac_header_compiler
=yes
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.
$ac_ext >&5
5061 ac_header_compiler
=no
5063 rm -f conftest.
$ac_objext conftest.
$ac_ext
5064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5065 echo "${ECHO_T}$ac_header_compiler" >&6
5067 # Is the header present?
5068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5070 cat >conftest.
$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5074 cat confdefs.h
>>conftest.
$ac_ext
5075 cat >>conftest.
$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <$ac_header>
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1
>conftest.err
5084 cat conftest.err
>&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev
/null
; then
5087 if test -s conftest.err
; then
5088 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5095 if test -z "$ac_cpp_err"; then
5096 ac_header_preproc
=yes
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.
$ac_ext >&5
5101 ac_header_preproc
=no
5103 rm -f conftest.err conftest.
$ac_ext
5104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5105 echo "${ECHO_T}$ac_header_preproc" >&6
5107 # So? What about this header?
5108 case $ac_header_compiler:$ac_header_preproc in
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5116 ## ------------------------------------ ##
5117 ## Report this to bug-autoconf@gnu.org. ##
5118 ## ------------------------------------ ##
5121 sed "s/^/$as_me: WARNING: /" >&2
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5132 ## ------------------------------------ ##
5133 ## Report this to bug-autoconf@gnu.org. ##
5134 ## ------------------------------------ ##
5137 sed "s/^/$as_me: WARNING: /" >&2
5140 echo "$as_me:$LINENO: checking for $ac_header" >&5
5141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 eval "$as_ac_Header=$ac_header_preproc"
5147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5152 cat >>confdefs.h
<<_ACEOF
5153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5160 if test "${SSLHDR:-unset}" = "unset" ; then
5161 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5162 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5163 cat >conftest.
$ac_ext <<_ACEOF
5164 #define OPENSSL_NO_KRB5
5165 #include <openssl/ssl.h>
5166 int main(int argc,char **argv){}
5168 rm -f conftest.
$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try
='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.
$ac_ext >&5
5186 rm -f conftest.
$ac_objext conftest.
$ac_ext
5187 if test ${SSLHDR:-unset} != "unset" ; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189 echo "${ECHO_T}yes" >&6
5190 SSLCCFLAGS
=" -DOPENSSL_NO_KRB5"
5191 P_STATIC_LDFLAGS
="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5192 P_STATIC_ENDLDLIBS
="-lkrb5 -lk5crypto -lcom_err"
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5200 if test "${SSLHDR:-unset}" = "unset" ; then
5202 for openssl_dir
in /usr
/local
/openssl
/usr
/local
/ssl
; do
5203 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5204 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5205 if test ! -f ${openssl_dir}/include
/openssl
/ssl.h
; then
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5209 cat >conftest.
$ac_ext <<_ACEOF
5210 #include "${openssl_dir}/include/openssl/ssl.h"
5211 int main(int argc,char **argv){ return 0; }
5213 $CXX $CXXFLAGS -I${openssl_dir}/include
-c conftest.cc
> /dev
/null
2>&1
5214 if test $?
= 0 ; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216 echo "${ECHO_T}yes" >&6
5219 SSLINCLUDEDIR
="${openssl_dir}/include"
5220 SSLLIBDIR
="${openssl_dir}/lib"
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5226 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5227 cat >conftest.
$ac_ext <<_ACEOF
5228 #define OPENSSL_NO_KRB5
5229 #include "${openssl_dir}/include/openssl/ssl.h"
5230 int main(int argc,char **argv){}
5232 $CXX $CXXFLAGS -I${openssl_dir}/openssl
/include
-c conftest.cc
> /dev
/null
2>&1
5233 if test $?
= 0 ; then
5234 echo "$as_me:$LINENO: result: yes" >&5
5235 echo "${ECHO_T}yes" >&6
5237 SSLCCFLAGS
=" -DOPENSSL_NO_KRB5"
5238 SSLINCLUDEDIR
="${openssl_dir}/include"
5239 SSLLIBDIR
="${openssl_dir}/lib"
5240 P_STATIC_LDFLAGS
="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5241 P_STATIC_ENDLDLIBS
="-lkrb5 -lk5crypto -lcom_err"
5244 echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5252 if test ${SSLHDR:-unset} != "unset" ; then
5256 cat >>confdefs.h
<<\_ACEOF
5260 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5261 STDCCFLAGS
="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5263 if test ${SSLLIBDIR:-unset} != "unset" ; then
5264 LDFLAGS
="$LDFLAGS -L${SSLLIBDIR}"
5266 STDCCFLAGS
="${STDCCFLAGS}${SSLCCFLAGS}"
5267 ENDLDLIBS
="$ENDLDLIBS -lssl -lcrypto"
5276 # Check whether --enable-expat or --disable-expat was given.
5277 if test "${enable_expat+set}" = set; then
5278 enableval
="$enable_expat"
5282 if test "$expat" = "no" ; then
5285 cat >>confdefs.h
<<\_ACEOF
5292 for ac_header
in expat.h
5294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5296 echo "$as_me:$LINENO: checking for $ac_header" >&5
5297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5307 cat >conftest.
$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try
='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_header_compiler
=yes
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.
$ac_ext >&5
5334 ac_header_compiler
=no
5336 rm -f conftest.
$ac_objext conftest.
$ac_ext
5337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5338 echo "${ECHO_T}$ac_header_compiler" >&6
5340 # Is the header present?
5341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5343 cat >conftest.
$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <$ac_header>
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5355 grep -v '^ *+' conftest.er1
>conftest.err
5357 cat conftest.err
>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev
/null
; then
5360 if test -s conftest.err
; then
5361 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5368 if test -z "$ac_cpp_err"; then
5369 ac_header_preproc
=yes
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.
$ac_ext >&5
5374 ac_header_preproc
=no
5376 rm -f conftest.err conftest.
$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378 echo "${ECHO_T}$ac_header_preproc" >&6
5380 # So? What about this header?
5381 case $ac_header_compiler:$ac_header_preproc in
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5389 ## ------------------------------------ ##
5390 ## Report this to bug-autoconf@gnu.org. ##
5391 ## ------------------------------------ ##
5394 sed "s/^/$as_me: WARNING: /" >&2
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5405 ## ------------------------------------ ##
5406 ## Report this to bug-autoconf@gnu.org. ##
5407 ## ------------------------------------ ##
5410 sed "s/^/$as_me: WARNING: /" >&2
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 eval "$as_ac_Header=$ac_header_preproc"
5420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425 cat >>confdefs.h
<<_ACEOF
5426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5433 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5434 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5435 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5436 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_check_lib_save_LIBS
=$LIBS
5440 LIBS
="-lexpat $LIBS"
5441 cat >conftest.
$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5445 cat confdefs.h
>>conftest.
$ac_ext
5446 cat >>conftest.
$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5449 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5455 char XML_ParserCreate ();
5459 XML_ParserCreate ();
5464 rm -f conftest.
$ac_objext conftest
$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try
='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_lib_expat_XML_ParserCreate
=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.
$ac_ext >&5
5481 ac_cv_lib_expat_XML_ParserCreate
=no
5483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5484 LIBS
=$ac_check_lib_save_LIBS
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5487 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5488 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5495 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5496 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5497 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 test "$cross_compiling" = yes &&
5501 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5502 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5503 { (exit 1); exit 1; }; }
5504 if test -r "/usr/local/include/expat.h"; then
5505 ac_cv_file__usr_local_include_expat_h
=yes
5507 ac_cv_file__usr_local_include_expat_h
=no
5510 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5511 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5512 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5516 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5517 EXPATINCLUDEDIR
=/usr
/local
/include
5518 EXPATLIBDIR
=/usr
/local
/lib
5522 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5526 cat >>confdefs.h
<<\_ACEOF
5530 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5531 STDCCFLAGS
="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5533 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5534 LDFLAGS
="$LDFLAGS -L${EXPATLIBDIR}"
5536 ENDLDLIBS
="$ENDLDLIBS -lexpat"
5546 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5547 if test "${enable_ipv6+set}" = set; then
5548 enableval
="$enable_ipv6"
5552 if test "$ipv6" = "no" ; then
5553 cat >>confdefs.h
<<\_ACEOF
5554 #define P_HAS_IPV6 0
5560 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5561 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5562 if test "${HAS_IPV6+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 cat >conftest.
$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5569 cat confdefs.h
>>conftest.
$ac_ext
5570 cat >>conftest.
$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <sys/types.h>
5573 #include <netinet/in.h>
5577 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5582 rm -f conftest.
$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try
='test -s conftest.$ac_objext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.
$ac_ext >&5
5601 rm -f conftest.
$ac_objext conftest.
$ac_ext
5603 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5604 echo "${ECHO_T}$HAS_IPV6" >&6
5606 if test $HAS_IPV6 = yes ; then
5608 cat >>confdefs.h
<<\_ACEOF
5609 #define P_HAS_IPV6 1
5617 # Check whether --enable-qos or --disable-qos was given.
5618 if test "${enable_qos+set}" = set; then
5619 enableval
="$enable_qos"
5623 if test "$qos" = "no" ; then
5625 cat >>confdefs.h
<<\_ACEOF
5631 cat >>confdefs.h
<<\_ACEOF
5640 # Check whether --enable-sdl or --disable-sdl was given.
5641 if test "${enable_sdl+set}" = set; then
5642 enableval
="$enable_sdl"
5646 if test "$sdl" = "no" ; then
5649 cat >>confdefs.h
<<\_ACEOF
5654 if test "${SDLLIB:-unset}" = "unset" ; then
5659 for ac_header
in SDL
/SDL.h
5661 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671 # Is the header compilable?
5672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5674 cat >conftest.
$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5678 cat confdefs.h
>>conftest.
$ac_ext
5679 cat >>conftest.
$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5682 #include <$ac_header>
5684 rm -f conftest.
$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -s conftest.$ac_objext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_header_compiler
=yes
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.
$ac_ext >&5
5701 ac_header_compiler
=no
5703 rm -f conftest.
$ac_objext conftest.
$ac_ext
5704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5705 echo "${ECHO_T}$ac_header_compiler" >&6
5707 # Is the header present?
5708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5710 cat >conftest.
$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5714 cat confdefs.h
>>conftest.
$ac_ext
5715 cat >>conftest.
$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <$ac_header>
5719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5722 grep -v '^ *+' conftest.er1
>conftest.err
5724 cat conftest.err
>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } >/dev
/null
; then
5727 if test -s conftest.err
; then
5728 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5735 if test -z "$ac_cpp_err"; then
5736 ac_header_preproc
=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.
$ac_ext >&5
5741 ac_header_preproc
=no
5743 rm -f conftest.err conftest.
$ac_ext
5744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5745 echo "${ECHO_T}$ac_header_preproc" >&6
5747 # So? What about this header?
5748 case $ac_header_compiler:$ac_header_preproc in
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5756 ## ------------------------------------ ##
5757 ## Report this to bug-autoconf@gnu.org. ##
5758 ## ------------------------------------ ##
5761 sed "s/^/$as_me: WARNING: /" >&2
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5772 ## ------------------------------------ ##
5773 ## Report this to bug-autoconf@gnu.org. ##
5774 ## ------------------------------------ ##
5777 sed "s/^/$as_me: WARNING: /" >&2
5780 echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 eval "$as_ac_Header=$ac_header_preproc"
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5792 cat >>confdefs.h
<<_ACEOF
5793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5800 if test "${HAS_SDL:-unset}" != "unset" ; then
5801 if test "${X11LIBDIR:-unset}" == "unset" ; then
5802 X11LIBDIR
=/usr
/X11R
6/lib
5804 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5805 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5806 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_check_lib_save_LIBS
=$LIBS
5810 LIBS
="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5811 cat >conftest.
$ac_ext <<_ACEOF
5812 #line $LINENO "configure"
5815 cat confdefs.h
>>conftest.
$ac_ext
5816 cat >>conftest.
$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5825 char SDL_CreateYUVOverlay ();
5829 SDL_CreateYUVOverlay ();
5834 rm -f conftest.
$ac_objext conftest
$ac_exeext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836 (eval $ac_link) 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try
='test -s conftest$ac_exeext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_lib_SDL_SDL_CreateYUVOverlay
=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 ac_cv_lib_SDL_SDL_CreateYUVOverlay
=no
5853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5854 LIBS
=$ac_check_lib_save_LIBS
5856 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5857 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5858 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5866 if test "${HAS_SDL:-unset}" = "unset" ; then
5867 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5868 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5869 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 test "$cross_compiling" = yes &&
5873 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5874 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5875 { (exit 1); exit 1; }; }
5876 if test -r "/usr/local/include/SDL11/SDL.h"; then
5877 ac_cv_file__usr_local_include_SDL11_SDL_h
=yes
5879 ac_cv_file__usr_local_include_SDL11_SDL_h
=no
5882 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5883 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5884 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5888 if test "${HAS_SDL:-unset}" != "unset" ; then
5893 if test "${HAS_SDL:-unset}" != "unset" ; then
5897 cat >>confdefs.h
<<\_ACEOF
5901 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5902 STDCCFLAGS
="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5904 if test ${SDLLIBDIR:-unset} != "unset" ; then
5905 LDFLAGS
="$LDFLAGS -L${SDLLIBDIR}"
5907 ENDLDLIBS
="$ENDLDLIBS -l${SDLLIB}"
5913 # Check whether --enable-video or --disable-video was given.
5914 if test "${enable_video+set}" = set; then
5915 enableval
="$enable_video"
5920 if test "$HAS_PLUGINS" = "0" ; then
5921 if test "$video" != "no" ; then
5922 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5923 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5924 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5925 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5929 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5931 # Is the header compilable?
5932 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5933 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5934 cat >conftest.
$ac_ext <<_ACEOF
5935 #line $LINENO "configure"
5938 cat confdefs.h
>>conftest.
$ac_ext
5939 cat >>conftest.
$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5942 #include <linux/videodev.h>
5944 rm -f conftest.
$ac_objext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946 (eval $ac_compile) 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try
='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_header_compiler
=yes
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.
$ac_ext >&5
5961 ac_header_compiler
=no
5963 rm -f conftest.
$ac_objext conftest.
$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5965 echo "${ECHO_T}$ac_header_compiler" >&6
5967 # Is the header present?
5968 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
5969 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
5970 cat >conftest.
$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <linux/videodev.h>
5979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5980 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev
/null
; then
5987 if test -s conftest.err
; then
5988 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5995 if test -z "$ac_cpp_err"; then
5996 ac_header_preproc
=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.
$ac_ext >&5
6001 ac_header_preproc
=no
6003 rm -f conftest.err conftest.
$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6005 echo "${ECHO_T}$ac_header_preproc" >&6
6007 # So? What about this header?
6008 case $ac_header_compiler:$ac_header_preproc in
6010 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6011 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6013 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6016 ## ------------------------------------ ##
6017 ## Report this to bug-autoconf@gnu.org. ##
6018 ## ------------------------------------ ##
6021 sed "s/^/$as_me: WARNING: /" >&2
6024 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6025 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6027 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6029 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6032 ## ------------------------------------ ##
6033 ## Report this to bug-autoconf@gnu.org. ##
6034 ## ------------------------------------ ##
6037 sed "s/^/$as_me: WARNING: /" >&2
6040 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6041 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6042 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 ac_cv_header_linux_videodev_h
=$ac_header_preproc
6047 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6048 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6051 if test $ac_cv_header_linux_videodev_h = yes; then
6056 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6057 { echo "$as_me:$LINENO: No Video Capture support" >&5
6058 echo "$as_me: No Video Capture support" >&6;}
6060 cat >>confdefs.h
<<\_ACEOF
6061 #define NO_VIDEO_CAPTURE
6069 # Check whether --enable-alsa or --disable-alsa was given.
6070 if test "${enable_alsa+set}" = set; then
6071 enableval
="$enable_alsa"
6072 enable_alsa
=$enableval
6076 if test "$HAS_PLUGINS" = "0" ; then
6077 if test "$enable_alsa" != "no" ; then
6078 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6079 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6080 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6081 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6085 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6087 # Is the header compilable?
6088 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6089 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6090 cat >conftest.
$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6094 cat confdefs.h
>>conftest.
$ac_ext
6095 cat >>conftest.
$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 $ac_includes_default
6098 #include <alsa/asoundlib.h>
6100 rm -f conftest.
$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try
='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_header_compiler
=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.
$ac_ext >&5
6117 ac_header_compiler
=no
6119 rm -f conftest.
$ac_objext conftest.
$ac_ext
6120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6121 echo "${ECHO_T}$ac_header_compiler" >&6
6123 # Is the header present?
6124 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6125 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6126 cat >conftest.
$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <alsa/asoundlib.h>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1
>conftest.err
6140 cat conftest.err
>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev
/null
; then
6143 if test -s conftest.err
; then
6144 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6151 if test -z "$ac_cpp_err"; then
6152 ac_header_preproc
=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 ac_header_preproc
=no
6159 rm -f conftest.err conftest.
$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6161 echo "${ECHO_T}$ac_header_preproc" >&6
6163 # So? What about this header?
6164 case $ac_header_compiler:$ac_header_preproc in
6166 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6167 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6169 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6172 ## ------------------------------------ ##
6173 ## Report this to bug-autoconf@gnu.org. ##
6174 ## ------------------------------------ ##
6177 sed "s/^/$as_me: WARNING: /" >&2
6180 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6188 ## ------------------------------------ ##
6189 ## Report this to bug-autoconf@gnu.org. ##
6190 ## ------------------------------------ ##
6193 sed "s/^/$as_me: WARNING: /" >&2
6196 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6197 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6198 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
6203 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6204 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6207 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6212 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6213 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6214 if test "${HAS_ALSA}" = "1"; then
6215 echo "$as_me:$LINENO: result: yes" >&5
6216 echo "${ECHO_T}yes" >&6
6217 ENDLDLIBS
="$ENDLDLIBS -lasound"
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6226 if test "$OSTYPE" = "solaris" ; then
6229 echo "$as_me:$LINENO: checking for swab" >&5
6230 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6231 if test "${ac_cv_func_swab+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6238 cat confdefs.h
>>conftest.
$ac_ext
6239 cat >>conftest.
$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char swab (); below.
6243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 <limits.h> exists even on freestanding compilers. */
6246 # include <limits.h>
6248 # include <assert.h>
6250 /* Override any gcc2 internal prototype to avoid an error. */
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6258 /* The GNU C library defines this for functions which it implements
6259 to always fail with ENOSYS. Some functions are actually named
6260 something starting with __ and the normal name is an alias. */
6261 #if defined (__stub_swab) || defined (__stub___swab)
6264 char (*f) () = swab;
6278 rm -f conftest.
$ac_objext conftest
$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try
='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.
$ac_ext >&5
6297 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6300 echo "${ECHO_T}$ac_cv_func_swab" >&6
6301 if test $ac_cv_func_swab = yes; then
6306 if test "x$ac_cv_func_swab" = "xyes" ; then
6308 cat >>confdefs.h
<<\_ACEOF
6309 #define USE_SYSTEM_SWAB
6315 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6316 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6317 ENDLDLIBS
="$ENDLDLIBS $RESOLVER_LIBS"
6321 if test "${OSTYPE}" != "Darwin" ; then
6322 if test ${HAS_LIBDL} = yes ; then
6323 ENDLDLIBS
="$ENDLDLIBS -ldl"
6333 ac_config_files
="$ac_config_files make/ptbuildopts.mak"
6335 ac_config_files
="$ac_config_files make/ptlib-config"
6337 ac_config_files
="$ac_config_files Makefile"
6340 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6341 ac_config_headers
="$ac_config_headers include/ptbuildopts.h"
6344 cat >confcache
<<\_ACEOF
6345 # This file is a shell script that caches the results of configure
6346 # tests run on this system so they can be shared between configure
6347 # scripts and configure runs, see configure's option --config-cache.
6348 # It is not useful on other systems. If it contains results you don't
6349 # want to keep, you may remove or edit it.
6351 # config.status only pays attention to the cache file if you give it
6352 # the --recheck option to rerun configure.
6354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6360 # The following way of writing the cache mishandles newlines in values,
6361 # but we know of no workaround that is simple, portable, and efficient.
6362 # So, don't put newlines in cache variables' values.
6363 # Ultrix sh set writes to stderr and can't be redirected directly,
6364 # and sets the high bit in the cache file unless we assign to the vars.
6367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6369 # `set' does not quote correctly, so add quotes (double-quote
6370 # substitution turns \\\\ into \\, and sed turns \\ into \).
6373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6376 # `set' quotes correctly as required by POSIX, so do not add quotes.
6378 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6387 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6389 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6390 if test -w $cache_file; then
6391 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6392 cat confcache
>$cache_file
6394 echo "not updating unwritable cache $cache_file"
6399 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6400 # Let make expand exec_prefix.
6401 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6405 # trailing colons and then remove the whole line if VPATH becomes empty
6406 # (actually we leave an empty line to preserve line numbers).
6407 if test "x$srcdir" = x.
; then
6408 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6409 s/:*\$(srcdir):*/:/;
6410 s/:*\${srcdir}:*/:/;
6412 s/^\([^=]*=[ ]*\):*/\1/;
6418 DEFS
=-DHAVE_CONFIG_H
6422 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6423 # 1. Remove the extension, and $U if already installed.
6424 ac_i
=`echo "$ac_i" |
6425 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6427 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6428 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6432 LTLIBOBJS
=$ac_ltlibobjs
6436 : ${CONFIG_STATUS=./config.status}
6437 ac_clean_files_save
=$ac_clean_files
6438 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6439 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6440 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6441 cat >$CONFIG_STATUS <<_ACEOF
6443 # Generated by $as_me.
6444 # Run this file to recreate the current configuration.
6445 # Compiler output produced by configure, useful for debugging
6446 # configure, is in config.log if it exists.
6451 SHELL=\${CONFIG_SHELL-$SHELL}
6454 cat >>$CONFIG_STATUS <<\_ACEOF
6455 ## --------------------- ##
6456 ## M4sh Initialization. ##
6457 ## --------------------- ##
6459 # Be Bourne compatible
6460 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6464 # is contrary to our usage. Disable this feature.
6465 alias -g '${1+"$@"}'='"$@"'
6466 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6470 # Support unset when possible.
6471 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6478 # Work around bugs in pre-3.0 UWIN ksh.
6479 $as_unset ENV MAIL MAILPATH
6486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6488 LC_TELEPHONE LC_TIME
6490 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6491 eval $as_var=C
; export $as_var
6497 # Required to use basename.
6498 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6504 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6505 as_basename
=basename
6511 # Name of the executable.
6512 as_me
=`$as_basename "$0" ||
6513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6514 X"$0" : 'X\(//\)$' \| \
6515 X"$0" : 'X\(/\)$' \| \
6516 . : '\(.\)' 2>/dev/null ||
6518 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6519 /^X\/\(\/\/\)$/{ s//\1/; q; }
6520 /^X\/\(\/\).*/{ s//\1/; q; }
6524 # PATH needs CR, and LINENO needs CR and PATH.
6525 # Avoid depending upon Character Ranges.
6526 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6527 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6528 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6529 as_cr_digits
='0123456789'
6530 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6532 # The user is always right.
6533 if test "${PATH_SEPARATOR+set}" != set; then
6534 echo "#! /bin/sh" >conf$$.sh
6535 echo "exit 0" >>conf$$.sh
6537 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6548 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6549 test "x$as_lineno_1" != "x$as_lineno_2" &&
6550 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6551 # Find who we are. Look in the path if we contain no path at all
6554 *[\\/]* ) as_myself
=$0 ;;
6555 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir
=.
6560 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6565 # We did not find ourselves, most probably we were run as `sh COMMAND'
6566 # in which case we are not to be found in the path.
6567 if test "x$as_myself" = x
; then
6570 if test ! -f "$as_myself"; then
6571 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6572 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6573 { (exit 1); exit 1; }; }
6575 case $CONFIG_SHELL in
6577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6578 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6581 test -z "$as_dir" && as_dir
=.
6582 for as_base
in sh bash ksh sh5
; do
6585 if ("$as_dir/$as_base" -c '
6588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6589 test "x$as_lineno_1" != "x$as_lineno_2" &&
6590 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6591 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6592 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6593 CONFIG_SHELL
=$as_dir/$as_base
6595 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6604 # uniformly replaced by the line number. The first 'sed' inserts a
6605 # line-number line before each line; the second 'sed' does the real
6606 # work. The second script uses 'N' to pair each line-number line
6607 # with the numbered line, and appends trailing '-' during
6608 # substitution so that $LINENO is not a special case at line end.
6609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6610 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6611 sed '=' <$as_myself |
6616 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6619 s,^['$as_cr_digits']*\n,,
6621 chmod +x
$as_me.lineno ||
6622 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6623 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6624 { (exit 1); exit 1; }; }
6626 # Don't try to exec as it changes $[0], causing all sort of problems
6627 # (the dirname of $[0] is not the place where we might find the
6628 # original and so on. Autoconf is especially sensible to this).
6630 # Exit status is that of the last command.
6635 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6636 *c
*,-n*) ECHO_N
= ECHO_C
='
6638 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6639 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6642 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6648 rm -f conf$$ conf$$.exe conf$$.
file
6650 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6651 # We could just check for DJGPP; but this test a) works b) is more generic
6652 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6653 if test -f conf$$.exe
; then
6654 # Don't use ln at all; we don't have any links
6659 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6664 rm -f conf$$ conf$$.exe conf$$.
file
6666 if mkdir
-p .
2>/dev
/null
; then
6672 as_executable_p
="test -f"
6674 # Sed expression to map a string onto a valid CPP name.
6675 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6677 # Sed expression to map a string onto a valid variable name.
6678 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6682 # We need space, tab and new line, in precisely that order.
6692 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6693 # report actual input values of CONFIG_FILES etc. instead of their
6694 # values after options handling. Logging --version etc. is OK.
6698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6699 ## Running $as_me. ##
6704 This file was extended by $as_me, which was
6705 generated by GNU Autoconf 2.57. Invocation command line was
6707 CONFIG_FILES = $CONFIG_FILES
6708 CONFIG_HEADERS = $CONFIG_HEADERS
6709 CONFIG_LINKS = $CONFIG_LINKS
6710 CONFIG_COMMANDS = $CONFIG_COMMANDS
6714 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6718 # Files that config.status was made for.
6719 if test -n "$ac_config_files"; then
6720 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6723 if test -n "$ac_config_headers"; then
6724 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6727 if test -n "$ac_config_links"; then
6728 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6731 if test -n "$ac_config_commands"; then
6732 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6735 cat >>$CONFIG_STATUS <<\_ACEOF
6738 \`$as_me' instantiates files from templates according to the
6739 current configuration.
6741 Usage: $0 [OPTIONS] [FILE]...
6743 -h, --help print this help, then exit
6744 -V, --version print version number, then exit
6745 -q, --quiet do not print progress messages
6746 -d, --debug don't remove temporary files
6747 --recheck update $as_me by reconfiguring in the same conditions
6748 --file=FILE[:TEMPLATE]
6749 instantiate the configuration file FILE
6750 --header=FILE[:TEMPLATE]
6751 instantiate the configuration header FILE
6753 Configuration files:
6756 Configuration headers:
6759 Report bugs to <bug-autoconf@gnu.org>."
6762 cat >>$CONFIG_STATUS <<_ACEOF
6765 configured by $0, generated by GNU Autoconf 2.57,
6766 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6768 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6769 Free Software Foundation, Inc.
6770 This config.status script is free software; the Free Software Foundation
6771 gives unlimited permission to copy, distribute and modify it."
6775 cat >>$CONFIG_STATUS <<\_ACEOF
6776 # If no file are specified by the user, then we need to provide default
6777 # value. By we need to know if files were specified by the user.
6783 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6784 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6792 *) # This is not an option, so the user has probably given explicit
6795 ac_need_defaults
=false
;;
6799 # Handling of the options.
6801 cat >>$CONFIG_STATUS <<\_ACEOF
6802 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6804 --version |
--vers* |
-V )
6805 echo "$ac_cs_version"; exit 0 ;;
6807 # Conflict between --help and --header
6808 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6809 Try \`$0 --help' for more information." >&5
6810 echo "$as_me: error: ambiguous option: $1
6811 Try \`$0 --help' for more information." >&2;}
6812 { (exit 1); exit 1; }; };;
6813 --help |
--hel |
-h )
6814 echo "$ac_cs_usage"; exit 0 ;;
6815 --debug |
--d* |
-d )
6817 --file |
--fil |
--fi |
--f )
6819 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6820 ac_need_defaults
=false
;;
6821 --header |
--heade |
--head |
--hea )
6823 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6824 ac_need_defaults
=false
;;
6825 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6826 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6830 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6831 Try \`$0 --help' for more information." >&5
6832 echo "$as_me: error: unrecognized option: $1
6833 Try \`$0 --help' for more information." >&2;}
6834 { (exit 1); exit 1; }; } ;;
6836 *) ac_config_targets
="$ac_config_targets $1" ;;
6842 ac_configure_extra_args
=
6844 if $ac_cs_silent; then
6846 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6850 cat >>$CONFIG_STATUS <<_ACEOF
6851 if \$ac_cs_recheck; then
6852 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6853 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6862 cat >>$CONFIG_STATUS <<\_ACEOF
6863 for ac_config_target
in $ac_config_targets
6865 case "$ac_config_target" in
6866 # Handling of arguments.
6867 "make/ptbuildopts.mak" ) CONFIG_FILES
="$CONFIG_FILES make/ptbuildopts.mak" ;;
6868 "make/ptlib-config" ) CONFIG_FILES
="$CONFIG_FILES make/ptlib-config" ;;
6869 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6870 "include/ptbuildopts.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/ptbuildopts.h" ;;
6871 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6872 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6873 { (exit 1); exit 1; }; };;
6877 # If the user did not use the arguments to specify the items to instantiate,
6878 # then the envvar interface is used. Set only those that are not.
6879 # We use the long form for the default assignment because of an extremely
6880 # bizarre bug on SunOS 4.1.3.
6881 if $ac_need_defaults; then
6882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6886 # Have a temporary directory for convenience. Make it in the build tree
6887 # simply because there is no reason to put it here, and in addition,
6888 # creating and moving files from /tmp can sometimes cause problems.
6889 # Create a temporary directory, and hook for its removal unless debugging.
6892 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6893 trap '{ (exit 1); exit 1; }' 1 2 13 15
6896 # Create a (secure) tmp directory for tmp files.
6899 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6900 test -n "$tmp" && test -d "$tmp"
6903 tmp
=.
/confstat$$
-$RANDOM
6904 (umask 077 && mkdir
$tmp)
6907 echo "$me: cannot create a temporary directory in ." >&2
6908 { (exit 1); exit 1; }
6913 cat >>$CONFIG_STATUS <<_ACEOF
6916 # CONFIG_FILES section.
6919 # No need to generate the scripts if there are no CONFIG_FILES.
6920 # This happens for instance when ./config.status config.h
6921 if test -n "\$CONFIG_FILES"; then
6922 # Protect against being on the right side of a sed subst in config.status.
6923 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6924 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6925 s,@SHELL@,$SHELL,;t t
6926 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6927 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6928 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6929 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6930 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6931 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6932 s,@exec_prefix@,$exec_prefix,;t t
6933 s,@prefix@,$prefix,;t t
6934 s,@program_transform_name@,$program_transform_name,;t t
6935 s,@bindir@,$bindir,;t t
6936 s,@sbindir@,$sbindir,;t t
6937 s,@libexecdir@,$libexecdir,;t t
6938 s,@datadir@,$datadir,;t t
6939 s,@sysconfdir@,$sysconfdir,;t t
6940 s,@sharedstatedir@,$sharedstatedir,;t t
6941 s,@localstatedir@,$localstatedir,;t t
6942 s,@libdir@,$libdir,;t t
6943 s,@includedir@,$includedir,;t t
6944 s,@oldincludedir@,$oldincludedir,;t t
6945 s,@infodir@,$infodir,;t t
6946 s,@mandir@,$mandir,;t t
6947 s,@build_alias@,$build_alias,;t t
6948 s,@host_alias@,$host_alias,;t t
6949 s,@target_alias@,$target_alias,;t t
6951 s,@ECHO_C@,$ECHO_C,;t t
6952 s,@ECHO_N@,$ECHO_N,;t t
6953 s,@ECHO_T@,$ECHO_T,;t t
6955 s,@subdirs@,$subdirs,;t t
6957 s,@CXXFLAGS@,$CXXFLAGS,;t t
6958 s,@LDFLAGS@,$LDFLAGS,;t t
6959 s,@CPPFLAGS@,$CPPFLAGS,;t t
6960 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6961 s,@EXEEXT@,$EXEEXT,;t t
6962 s,@OBJEXT@,$OBJEXT,;t t
6963 s,@PWLIBDIR@,$PWLIBDIR,;t t
6964 s,@PWINSTDIR@,$PWINSTDIR,;t t
6965 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6966 s,@LIBDIR@,$LIBDIR,;t t
6967 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
6968 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
6969 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
6970 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
6971 s,@build@,$build,;t t
6972 s,@build_cpu@,$build_cpu,;t t
6973 s,@build_vendor@,$build_vendor,;t t
6974 s,@build_os@,$build_os,;t t
6976 s,@host_cpu@,$host_cpu,;t t
6977 s,@host_vendor@,$host_vendor,;t t
6978 s,@host_os@,$host_os,;t t
6979 s,@target@,$target,;t t
6980 s,@target_cpu@,$target_cpu,;t t
6981 s,@target_vendor@,$target_vendor,;t t
6982 s,@target_os@,$target_os,;t t
6983 s,@MACHTYPE@,$MACHTYPE,;t t
6984 s,@OSTYPE@,$OSTYPE,;t t
6985 s,@OSRELEASE@,$OSRELEASE,;t t
6986 s,@TARGETDIR@,$TARGETDIR,;t t
6987 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
6988 s,@CXXCPP@,$CXXCPP,;t t
6989 s,@EGREP@,$EGREP,;t t
6990 s,@HAS_REGEX@,$HAS_REGEX,;t t
6991 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
6992 s,@HAS_SASL@,$HAS_SASL,;t t
6993 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
6994 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
6995 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
6996 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
6997 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
6998 s,@HAS_IPV6@,$HAS_IPV6,;t t
6999 s,@HAS_SDL@,$HAS_SDL,;t t
7000 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7001 s,@HAS_ALSA@,$HAS_ALSA,;t t
7002 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7003 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7004 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7005 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7006 s,@LIBOBJS@,$LIBOBJS,;t t
7007 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7013 # Split the substitutions into bite-sized pieces for seds with
7014 # small command number limits, like on Digital OSF/1 and HP-UX.
7016 ac_sed_frag
=1 # Number of current file.
7017 ac_beg
=1 # First line for current file.
7018 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7021 while $ac_more_lines; do
7022 if test $ac_beg -gt 1; then
7023 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7025 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7027 if test ! -s $tmp/subs.frag
; then
7030 # The purpose of the label and of the branching condition is to
7031 # speed up the sed processing (if there are no `@' at all, there
7032 # is no need to browse any of the substitutions).
7033 # These are the two extra sed commands mentioned above.
7035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7036 if test -z "$ac_sed_cmds"; then
7037 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7039 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7041 ac_sed_frag
=`expr $ac_sed_frag + 1`
7043 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7046 if test -z "$ac_sed_cmds"; then
7049 fi # test -n "$CONFIG_FILES"
7052 cat >>$CONFIG_STATUS <<\_ACEOF
7053 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7056 - |
*:- |
*:-:* ) # input from stdin
7058 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7059 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7060 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7061 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7062 * ) ac_file_in
=$ac_file.
in ;;
7065 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7066 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7068 X"$ac_file" : 'X\(//\)[^/]' \| \
7069 X"$ac_file" : 'X\(//\)$' \| \
7070 X"$ac_file" : 'X\(/\)' \| \
7071 . : '\(.\)' 2>/dev/null ||
7073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7075 /^X\(\/\/\)$/{ s//\1/; q; }
7076 /^X\(\/\).*/{ s//\1/; q; }
7078 { if $as_mkdir_p; then
7083 while test ! -d "$as_dir"; do
7084 as_dirs
="$as_dir $as_dirs"
7085 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7087 X"$as_dir" : 'X\(//\)[^/]' \| \
7088 X"$as_dir" : 'X\(//\)$' \| \
7089 X"$as_dir" : 'X\(/\)' \| \
7090 . : '\(.\)' 2>/dev/null ||
7092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7094 /^X\(\/\/\)$/{ s//\1/; q; }
7095 /^X\(\/\).*/{ s//\1/; q; }
7098 test ! -n "$as_dirs" || mkdir
$as_dirs
7099 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7101 { (exit 1); exit 1; }; }; }
7105 if test "$ac_dir" != .
; then
7106 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7107 # A "../" for each directory in $ac_dir_suffix.
7108 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7110 ac_dir_suffix
= ac_top_builddir
=
7114 .
) # No --srcdir option. We are building in place.
7116 if test -z "$ac_top_builddir"; then
7119 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7121 [\\/]* | ?
:[\\/]* ) # Absolute path.
7122 ac_srcdir
=$srcdir$ac_dir_suffix;
7123 ac_top_srcdir
=$srcdir ;;
7125 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7126 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7128 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7130 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7131 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7132 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7133 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7137 if test x
"$ac_file" != x-
; then
7138 { echo "$as_me:$LINENO: creating $ac_file" >&5
7139 echo "$as_me: creating $ac_file" >&6;}
7142 # Let's still pretend it is `configure' which instantiates (i.e., don't
7143 # use $as_me), people would be surprised to read:
7144 # /* config.h. Generated by config.status. */
7145 if test x
"$ac_file" = x-
; then
7148 configure_input
="$ac_file. "
7150 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7151 sed 's,.*/,,'` by configure."
7153 # First look for the input files in the build tree, otherwise in the
7155 ac_file_inputs
=`IFS=:
7156 for f in $ac_file_in; do
7158 -) echo $tmp/stdin ;;
7160 # Absolute (can't be DOS-style, as IFS=:)
7161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7162 echo "$as_me: error: cannot find input file: $f" >&2;}
7163 { (exit 1); exit 1; }; }
7166 if test -f "$f"; then
7169 elif test -f "$srcdir/$f"; then
7174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7175 echo "$as_me: error: cannot find input file: $f" >&2;}
7176 { (exit 1); exit 1; }; }
7179 done` ||
{ (exit 1); exit 1; }
7181 cat >>$CONFIG_STATUS <<_ACEOF
7185 cat >>$CONFIG_STATUS <<\_ACEOF
7187 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7188 s
,@configure_input@
,$configure_input,;t t
7189 s
,@srcdir@
,$ac_srcdir,;t t
7190 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7191 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7192 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7193 s
,@builddir@
,$ac_builddir,;t t
7194 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7195 s
,@top_builddir@
,$ac_top_builddir,;t t
7196 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7197 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7199 if test x"$ac_file" != x-; then
7200 mv $tmp/out $ac_file
7206 # Run the commands associated with the file.
7208 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7212 cat >>$CONFIG_STATUS <<\_ACEOF
7215 # CONFIG_HEADER section.
7218 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7219 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7221 # ac_d sets the value in "#define NAME VALUE" lines.
7222 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7223 ac_dB
='[ ].*$,\1#\2'
7226 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7227 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7228 ac_uB
='$,\1#\2define\3'
7232 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7235 - |
*:- |
*:-:* ) # input from stdin
7237 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7238 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7239 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7240 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7241 * ) ac_file_in
=$ac_file.
in ;;
7244 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7245 echo "$as_me: creating $ac_file" >&6;}
7247 # First look for the input files in the build tree, otherwise in the
7249 ac_file_inputs
=`IFS=:
7250 for f in $ac_file_in; do
7252 -) echo $tmp/stdin ;;
7254 # Absolute (can't be DOS-style, as IFS=:)
7255 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7256 echo "$as_me: error: cannot find input file: $f" >&2;}
7257 { (exit 1); exit 1; }; }
7260 if test -f "$f"; then
7263 elif test -f "$srcdir/$f"; then
7268 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7269 echo "$as_me: error: cannot find input file: $f" >&2;}
7270 { (exit 1); exit 1; }; }
7273 done` ||
{ (exit 1); exit 1; }
7274 # Remove the trailing spaces.
7275 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7279 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7280 # `conftest.undefs', that substitutes the proper values into
7281 # config.h.in to produce config.h. The first handles `#define'
7282 # templates, and the second `#undef' templates.
7283 # And first: Protect against being on the right side of a sed subst in
7284 # config.status. Protect against being in an unquoted here document
7286 rm -f conftest.defines conftest.undefs
7287 # Using a here document instead of a string reduces the quoting nightmare.
7288 # Putting comments in sed scripts is not portable.
7290 # `end' is used to avoid that the second main sed command (meant for
7291 # 0-ary CPP macros) applies to n-ary macro definitions.
7292 # See the Autoconf documentation for `clear'.
7293 cat >confdef2sed.
sed <<\_ACEOF
7298 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7300 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7303 # If some macros were called several times there might be several times
7304 # the same #defines, which is useless. Nevertheless, we may not want to
7305 # sort them, since we want the *last* AC-DEFINE to be honored.
7306 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7307 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7308 rm -f confdef2sed.sed
7310 # This sed command replaces #undef with comments. This is necessary, for
7311 # example, in the case of _POSIX_SOURCE, which is predefined and required
7312 # on some systems where configure will not decide to define it.
7313 cat >>conftest.undefs <<\_ACEOF
7314 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7317 # Break up conftest.defines because some shells have a limit on the size
7318 # of here documents, and old seds have small limits too (100 cmds).
7319 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7320 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7321 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7322 echo ' :' >>$CONFIG_STATUS
7324 while grep . conftest.defines >/dev/null
7326 # Write a limited-size here document to $tmp/defines.sed.
7327 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7328 # Speed up: don't consider the non `#define' lines.
7329 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7330 # Work around the forget-to-reset-the-flag bug.
7331 echo 't clr' >>$CONFIG_STATUS
7332 echo ': clr' >>$CONFIG_STATUS
7333 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7335 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7339 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7340 rm -f conftest.defines
7341 mv conftest.
tail conftest.defines
7343 rm -f conftest.defines
7344 echo ' fi # grep' >>$CONFIG_STATUS
7345 echo >>$CONFIG_STATUS
7347 # Break up conftest.undefs because some shells have a limit on the size
7348 # of here documents, and old seds have small limits too (100 cmds).
7349 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7351 while grep . conftest.undefs
>/dev
/null
7353 # Write a limited-size here document to $tmp/undefs.sed.
7354 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7355 # Speed up: don't consider the non
`#undef'
7356 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7357 # Work around the forget-to-reset-the-flag bug.
7358 echo 't clr' >>$CONFIG_STATUS
7359 echo ': clr' >>$CONFIG_STATUS
7360 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7362 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7366 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7367 rm -f conftest.undefs
7368 mv conftest.tail conftest.undefs
7370 rm -f conftest.undefs
7372 cat >>$CONFIG_STATUS <<\_ACEOF
7373 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7374 # use $as_me), people would be surprised to read:
7375 # /* config.h. Generated by config.status. */
7376 if test x
"$ac_file" = x-
; then
7377 echo "/* Generated by configure. */" >$tmp/config.h
7379 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7381 cat $tmp/in >>$tmp/config.h
7383 if test x
"$ac_file" != x-
; then
7384 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7386 echo "$as_me: $ac_file is unchanged" >&6;}
7388 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7390 X"$ac_file" : 'X\(//\)[^/]' \| \
7391 X"$ac_file" : 'X\(//\)$' \| \
7392 X"$ac_file" : 'X\(/\)' \| \
7393 . : '\(.\)' 2>/dev/null ||
7395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7397 /^X\(\/\/\)$/{ s//\1/; q; }
7398 /^X\(\/\).*/{ s//\1/; q; }
7400 { if $as_mkdir_p; then
7405 while test ! -d "$as_dir"; do
7406 as_dirs
="$as_dir $as_dirs"
7407 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7409 X"$as_dir" : 'X\(//\)[^/]' \| \
7410 X"$as_dir" : 'X\(//\)$' \| \
7411 X"$as_dir" : 'X\(/\)' \| \
7412 . : '\(.\)' 2>/dev/null ||
7414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7416 /^X\(\/\/\)$/{ s//\1/; q; }
7417 /^X\(\/\).*/{ s//\1/; q; }
7420 test ! -n "$as_dirs" || mkdir
$as_dirs
7421 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7423 { (exit 1); exit 1; }; }; }
7426 mv $tmp/config.h
$ac_file
7435 cat >>$CONFIG_STATUS <<\_ACEOF
7437 { (exit 0); exit 0; }
7439 chmod +x
$CONFIG_STATUS
7440 ac_clean_files
=$ac_clean_files_save
7443 # configure is writing to config.log, and then calls config.status.
7444 # config.status does its own redirection, appending to config.log.
7445 # Unfortunately, on DOS this fails, as config.log is still kept open
7446 # by configure, so config.status won't be able to write to it; its
7447 # output is simply discarded. So we exec the FD to /dev/null,
7448 # effectively closing config.log, so it can be properly (re)opened and
7449 # appended to by config.status. When coming back to configure, we
7450 # need to make the FD available again.
7451 if test "$no_create" != yes; then
7453 ac_config_status_args
=
7454 test "$silent" = yes &&
7455 ac_config_status_args
="$ac_config_status_args --quiet"
7457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7460 # would make configure fail if this is the last instruction.
7461 $ac_cs_success ||
{ (exit 1); exit 1; }
7465 # CONFIG_SUBDIRS section.
7467 if test "$no_recursion" != yes; then
7469 # Remove --cache-file and --srcdir arguments so they do not pile up.
7470 ac_sub_configure_args
=
7472 for ac_arg
in $ac_configure_args; do
7473 if test -n "$ac_prev"; then
7478 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
7479 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
7480 ac_prev
=cache_file
;;
7481 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
7482 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
7485 --config-cache |
-C)
7487 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
7489 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
7491 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
7493 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
7495 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
7499 # Always prepend --prefix to ensure using the same prefix
7500 # in subdir configurations.
7501 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
7504 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
7506 # Do not complain, so a configure script can configure whichever
7507 # parts of a large source tree are present.
7508 test -d $srcdir/$ac_dir ||
continue
7510 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7511 echo "$as_me: configuring in $ac_dir" >&6;}
7512 { if $as_mkdir_p; then
7517 while test ! -d "$as_dir"; do
7518 as_dirs
="$as_dir $as_dirs"
7519 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7521 X"$as_dir" : 'X\(//\)[^/]' \| \
7522 X"$as_dir" : 'X\(//\)$' \| \
7523 X"$as_dir" : 'X\(/\)' \| \
7524 . : '\(.\)' 2>/dev/null ||
7526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7528 /^X\(\/\/\)$/{ s//\1/; q; }
7529 /^X\(\/\).*/{ s//\1/; q; }
7532 test ! -n "$as_dirs" || mkdir
$as_dirs
7533 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7535 { (exit 1); exit 1; }; }; }
7539 if test "$ac_dir" != .
; then
7540 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7541 # A "../" for each directory in $ac_dir_suffix.
7542 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7544 ac_dir_suffix
= ac_top_builddir
=
7548 .
) # No --srcdir option. We are building in place.
7550 if test -z "$ac_top_builddir"; then
7553 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7555 [\\/]* | ?
:[\\/]* ) # Absolute path.
7556 ac_srcdir
=$srcdir$ac_dir_suffix;
7557 ac_top_srcdir
=$srcdir ;;
7559 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7560 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7562 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7564 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7565 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7566 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7567 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7572 # Check for guested configure; otherwise get Cygnus style configure.
7573 if test -f $ac_srcdir/configure.gnu
; then
7574 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
7575 elif test -f $ac_srcdir/configure
; then
7576 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
7577 elif test -f $ac_srcdir/configure.
in; then
7578 ac_sub_configure
=$ac_configure
7580 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7581 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7585 # The recursion is here.
7586 if test -n "$ac_sub_configure"; then
7587 # Make the cache file name correct relative to the subdirectory.
7589 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
7591 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
7594 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7595 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7596 # The eval makes quoting arguments work.
7597 eval $ac_sub_configure $ac_sub_configure_args \
7598 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7599 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7600 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7601 { (exit 1); exit 1; }; }