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_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_ALSA STDCCFLAGS 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;};
1873 cat >>confdefs.h
<<_ACEOF
1874 #define PWLIB_MAJOR $MAJOR_VERSION
1877 cat >>confdefs.h
<<_ACEOF
1878 #define PWLIB_MINOR $MINOR_VERSION
1881 cat >>confdefs.h
<<_ACEOF
1882 #define PWLIB_BUILD $BUILD_NUMBER
1885 cat >>confdefs.h
<<_ACEOF
1886 #define PWLIB_VERSION "$PWLIB_VERSION"
1891 # Make sure we can run config.sub.
1892 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1894 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 ac_cv_build_alias
=$build_alias
1903 test -z "$ac_cv_build_alias" &&
1904 ac_cv_build_alias
=`$ac_config_guess`
1905 test -z "$ac_cv_build_alias" &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1911 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6
1918 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1919 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1920 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1923 echo "$as_me:$LINENO: checking host system type" >&5
1924 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1925 if test "${ac_cv_host+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 ac_cv_host_alias
=$host_alias
1929 test -z "$ac_cv_host_alias" &&
1930 ac_cv_host_alias
=$ac_cv_build_alias
1931 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1932 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1933 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1934 { (exit 1); exit 1; }; }
1937 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1938 echo "${ECHO_T}$ac_cv_host" >&6
1940 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1941 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1942 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1945 echo "$as_me:$LINENO: checking target system type" >&5
1946 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1947 if test "${ac_cv_target+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 ac_cv_target_alias
=$target_alias
1951 test "x$ac_cv_target_alias" = "x" &&
1952 ac_cv_target_alias
=$ac_cv_host_alias
1953 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1954 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1955 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1956 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1960 echo "${ECHO_T}$ac_cv_target" >&6
1961 target
=$ac_cv_target
1962 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1963 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1964 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1967 # The aliases save the names the user supplied, while $host etc.
1968 # will get canonicalized.
1969 test -n "$target_alias" &&
1970 test "$program_prefix$program_suffix$program_transform_name" = \
1972 program_prefix
=${target_alias}-
1977 case "$target_os" in
1978 linux
*) OSTYPE
=linux
;
1979 OSRELEASE
="\"`uname -r`\"";
1981 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
1984 freebsd
* ) OSTYPE
=FreeBSD
;
1985 OS_TAG
="P_FREEBSD" ;
1986 if test "x$OSRELEASE" = "x"; then
1987 OSRELEASE
="`sysctl -n kern.osreldate`" ;
1989 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
1992 openbsd
* ) OSTYPE
=OpenBSD
;
1993 OS_TAG
="P_OPENBSD" ;
1994 OSRELEASE
="`sysctl -n kern.osrevision`" ;
1995 ENDLDLIBS
="-lossaudio" ;
1996 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
1999 netbsd
* ) OSTYPE
=NetBSD
;
2001 OSRELEASE
="`/sbin/sysctl -n kern.osrevision`" ;
2002 ENDLDLIBS
="-lossaudio" ;
2003 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2006 solaris
* | sunos
) OSTYPE
=solaris
;
2007 OS_TAG
="P_SOLARIS" ;
2008 OSRELEASE
=`uname -r | sed "s/5\.//g"` ;
2009 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2012 darwin
* ) OSTYPE
=Darwin
;
2014 OSRELEASE
="`uname -r | sed 's/\.//g'`" ;
2015 SHAREDLIBEXT
="dylib";
2016 STDCCFLAGS
="$STDCCFLAGS -DP_USE_PRAGMA"
2019 * ) OSTYPE
="$target_os" ;
2020 OS_TAG
="P_UNKNOWN_OS" ;
2021 OSRELEASE
="\"${OSTYPE}_`uname -r`\"" ;
2022 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2023 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2029 case "$target_cpu" in
2030 x86 | i686 | i586 | i486 | i386
) MACHTYPE
=x86
2033 x86_64
) MACHTYPE
=x86_64
;
2037 alpha | alphaev56
) MACHTYPE
=alpha
;
2041 sparc
) MACHTYPE
=sparc
;
2044 powerpc
) MACHTYPE
=ppc
;
2047 ppc
) MACHTYPE
=ppc
;
2050 powerpc64
) MACHTYPE
=ppc64
;
2054 ppc64
) MACHTYPE
=ppc64
;
2058 ia64
) MACHTYPE
=ia64
;
2062 s390x
) MACHTYPE
=s390x
;
2066 * ) MACHTYPE
=$target_cpu ;
2067 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2068 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2071 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2072 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2073 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2074 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2075 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2076 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2082 OSRELEASE
=$OSRELEASE
2084 TARGETDIR
=$TARGETDIR
2087 cat >>confdefs.h
<<_ACEOF
2088 #define $OS_TAG $OSRELEASE
2092 cat >>confdefs.h
<<\_ACEOF
2093 #define PHAS_TEMPLATES 1
2097 if test "x$P_64BIT" != "x" ; then
2098 cat >>confdefs.h
<<\_ACEOF
2105 cat >>confdefs.h
<<\_ACEOF
2106 #define P_PTHREADS 1
2109 if test ${OSTYPE} != Darwin
; then
2111 cat >>confdefs.h
<<\_ACEOF
2112 #define P_HAS_SEMAPHORES 1
2118 if test "x${SHAREDLIBEXT}" = "x" ; then
2121 SHAREDLIBEXT
=$SHAREDLIBEXT
2124 cat >>confdefs.h
<<\_ACEOF
2125 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2132 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2133 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2134 if test "${ac_cv_c_bigendian+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 # See if sys/param.h defines the BYTE_ORDER macro.
2138 cat >conftest.
$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2142 cat confdefs.h
>>conftest.
$ac_ext
2143 cat >>conftest.
$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145 #include <sys/types.h>
2146 #include <sys/param.h>
2151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2159 rm -f conftest.
$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try
='test -s conftest.$ac_objext'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; }; then
2171 # It does; now see whether it defined to BIG_ENDIAN or not.
2172 cat >conftest.
$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2176 cat confdefs.h
>>conftest.
$ac_ext
2177 cat >>conftest.
$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2179 #include <sys/types.h>
2180 #include <sys/param.h>
2185 #if BYTE_ORDER != BIG_ENDIAN
2193 rm -f conftest.
$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try
='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2205 ac_cv_c_bigendian
=yes
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2210 ac_cv_c_bigendian
=no
2212 rm -f conftest.
$ac_objext conftest.
$ac_ext
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.
$ac_ext >&5
2217 # It does not; compile a test program.
2218 if test "$cross_compiling" = yes; then
2219 # try to guess the endianness by grepping values into an object file
2220 ac_cv_c_bigendian
=unknown
2221 cat >conftest.
$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2225 cat confdefs.h
>>conftest.
$ac_ext
2226 cat >>conftest.
$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2228 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2229 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2231 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2232 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2237 _ascii (); _ebcdic ();
2242 rm -f conftest.
$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try
='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
2255 ac_cv_c_bigendian
=yes
2257 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
2258 if test "$ac_cv_c_bigendian" = unknown
; then
2259 ac_cv_c_bigendian
=no
2261 # finding both strings is unlikely to happen, but who knows?
2262 ac_cv_c_bigendian
=unknown
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.
$ac_ext >&5
2270 rm -f conftest.
$ac_objext conftest.
$ac_ext
2272 cat >conftest.
$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2276 cat confdefs.h
>>conftest.
$ac_ext
2277 cat >>conftest.
$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2282 /* Are we little or big endian? From Harbison&Steele. */
2286 char c[sizeof (long)];
2289 exit (u.c[sizeof (long) - 1] == 1);
2292 rm -f conftest
$ac_exeext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_c_bigendian
=no
2305 echo "$as_me: program exited with status $ac_status" >&5
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.
$ac_ext >&5
2310 ac_cv_c_bigendian
=yes
2312 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2315 rm -f conftest.
$ac_objext conftest.
$ac_ext
2317 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2319 case $ac_cv_c_bigendian in
2322 cat >>confdefs.h
<<\_ACEOF
2323 #define WORDS_BIGENDIAN 1
2329 { { echo "$as_me:$LINENO: error: unknown endianness
2330 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2331 echo "$as_me: error: unknown endianness
2332 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2333 { (exit 1); exit 1; }; } ;;
2336 if test ${ac_cv_c_bigendian} = yes ; then
2337 PBYTE_ORDER
=PBIG_ENDIAN
2339 PBYTE_ORDER
=PLITTLE_ENDIAN
2343 cat >>confdefs.h
<<_ACEOF
2344 #define PBYTE_ORDER $PBYTE_ORDER
2349 ac_cpp
='$CXXCPP $CPPFLAGS'
2350 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2355 echo "$as_me:$LINENO: checking if compiler accepts -fno-rtti" >&5
2356 echo $ECHO_N "checking if compiler accepts -fno-rtti... $ECHO_C" >&6
2357 cat >conftest.
$ac_ext <<_ACEOF
2358 int main(int ac,char **av) { return 0; }
2360 $CXX $CFLAGS -fno-rtti -c conftest.cc
> /dev
/null
2>&1
2361 if test $?
= 0 ; then
2362 echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6
2364 STDCCFLAGS
="$STDCCFLAGS -fno-rtti"
2366 echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2372 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
2373 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2375 int main(int ac,char **av) { return 0; }
2377 $CXX $CFLAGS -Wl,--gc-sections conftest.cc
> /dev
/null
2>&1
2378 if test $?
= 0 ; then
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2383 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2384 cat >conftest.
$ac_ext <<_ACEOF
2385 int main(int ac,char **av) { return 0; }
2387 $CXX $CFLAGS -ffunction-sections -c conftest.cc
> /dev
/null
2>&1
2388 if test $?
= 0 ; then
2389 echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6
2391 STDCCFLAGS
="$STDCCFLAGS -ffunction-sections"
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2398 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
2399 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
2400 cat >conftest.
$ac_ext <<_ACEOF
2401 int main(int ac,char **av) { return 0; }
2403 $CXX $CFLAGS -fdata-sections -c conftest.cc
> /dev
/null
2>&1
2404 if test $?
= 0 ; then
2405 echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407 STDCCFLAGS
="$STDCCFLAGS -fdata-sections"
2410 echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2415 if test $GCSECTIONS = 1; then
2416 if test "${OSTYPE}" != "Darwin" ; then
2417 P_STATIC_LDFLAGS
="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2422 echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2427 ac_cpp
='$CXXCPP $CPPFLAGS'
2428 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2434 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2435 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2436 if test "${ac_cv_c_long_double+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 cat >conftest.
$ac_ext <<_ACEOF
2440 #line $LINENO "configure"
2443 cat confdefs.h
>>conftest.
$ac_ext
2444 cat >>conftest.
$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2447 long double foo = 0.0;
2451 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2452 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2453 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2460 rm -f conftest.
$ac_objext
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462 (eval $ac_compile) 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try
='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_c_long_double
=yes
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.
$ac_ext >&5
2477 ac_cv_c_long_double
=no
2479 rm -f conftest.
$ac_objext conftest.
$ac_ext
2481 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2482 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2483 if test $ac_cv_c_long_double = yes; then
2485 cat >>confdefs.h
<<\_ACEOF
2486 #define HAVE_LONG_DOUBLE 1
2491 if test $ac_cv_c_long_double != yes ; then
2492 cat >>confdefs.h
<<\_ACEOF
2493 #define PNO_LONG_DOUBLE 1
2501 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2502 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2503 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 ac_check_lib_save_LIBS
=$LIBS
2507 LIBS
="-lpthread $LIBS"
2508 cat >conftest.
$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2512 cat confdefs.h
>>conftest.
$ac_ext
2513 cat >>conftest.
$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2516 /* Override any gcc2 internal prototype to avoid an error. */
2520 /* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2522 char pthread_create ();
2531 rm -f conftest.
$ac_objext conftest
$ac_exeext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try
='test -s conftest$ac_exeext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 ac_cv_lib_pthread_pthread_create
=yes
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.
$ac_ext >&5
2548 ac_cv_lib_pthread_pthread_create
=no
2550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2551 LIBS
=$ac_check_lib_save_LIBS
2553 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2554 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2555 if test $ac_cv_lib_pthread_pthread_create = yes; then
2561 if test ${HAS_PTHREADS} = yes ; then
2562 ENDLDLIBS
="$ENDLDLIBS -lpthread"
2563 STDCCFLAGS
="$STDCCFLAGS -D_REENTRANT"
2565 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2566 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2567 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 ac_check_lib_save_LIBS
=$LIBS
2572 cat >conftest.
$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2576 cat confdefs.h
>>conftest.
$ac_ext
2577 cat >>conftest.
$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2580 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char pthread_create ();
2595 rm -f conftest.
$ac_objext conftest
$ac_exeext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try
='test -s conftest$ac_exeext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 ac_cv_lib_c_r_pthread_create
=yes
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.
$ac_ext >&5
2612 ac_cv_lib_c_r_pthread_create
=no
2614 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2615 LIBS
=$ac_check_lib_save_LIBS
2617 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2618 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2619 if test $ac_cv_lib_c_r_pthread_create = yes; then
2625 if test ${HAS_PTHREADS} = yes ; then
2626 ENDLDLIBS
="$ENDLDLIBS -pthread"
2627 STDCCFLAGS
="$STDCCFLAGS -D_REENTRANT -pthread"
2632 if test ${HAS_PTHREADS} != yes ; then
2633 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
2634 echo "$as_me: error: must have pthreads!" >&2;}
2635 { (exit 1); exit 1; }; }
2640 ac_cpp
='$CXXCPP $CPPFLAGS'
2641 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2644 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2645 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2646 if test -z "$CXXCPP"; then
2647 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 # Double quotes because CXXCPP needs to be expanded
2651 for CXXCPP
in "$CXX -E" "/lib/cpp"
2654 for ac_cxx_preproc_warn_flag
in '' yes
2656 # Use a header file that comes with gcc, so configuring glibc
2657 # with a fresh cross-compiler works.
2658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2659 # <limits.h> exists even on freestanding compilers.
2660 # On the NeXT, cc -E runs the code through the compiler's parser,
2661 # not just through cpp. "Syntax error" is here to catch this case.
2662 cat >conftest.
$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2666 cat confdefs.h
>>conftest.
$ac_ext
2667 cat >>conftest.
$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2670 # include <limits.h>
2672 # include <assert.h>
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2679 grep -v '^ *+' conftest.er1
>conftest.err
2681 cat conftest.err
>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } >/dev
/null
; then
2684 if test -s conftest.err
; then
2685 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2692 if test -z "$ac_cpp_err"; then
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.
$ac_ext >&5
2698 # Broken: fails on valid input.
2701 rm -f conftest.err conftest.
$ac_ext
2703 # OK, works on sane cases. Now check whether non-existent headers
2704 # can be detected and how.
2705 cat >conftest.
$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2709 cat confdefs.h
>>conftest.
$ac_ext
2710 cat >>conftest.
$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 #include <ac_nonexistent.h>
2714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2717 grep -v '^ *+' conftest.er1
>conftest.err
2719 cat conftest.err
>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } >/dev
/null
; then
2722 if test -s conftest.err
; then
2723 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2730 if test -z "$ac_cpp_err"; then
2731 # Broken: success on invalid input.
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.
$ac_ext >&5
2737 # Passes both tests.
2741 rm -f conftest.err conftest.
$ac_ext
2744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2745 rm -f conftest.err conftest.
$ac_ext
2746 if $ac_preproc_ok; then
2751 ac_cv_prog_CXXCPP
=$CXXCPP
2754 CXXCPP
=$ac_cv_prog_CXXCPP
2756 ac_cv_prog_CXXCPP
=$CXXCPP
2758 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2759 echo "${ECHO_T}$CXXCPP" >&6
2761 for ac_cxx_preproc_warn_flag
in '' yes
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.
$ac_ext <<_ACEOF
2770 #line $LINENO "configure"
2773 cat confdefs.h
>>conftest.
$ac_ext
2774 cat >>conftest.
$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2777 # include <limits.h>
2779 # include <assert.h>
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1
>conftest.err
2788 cat conftest.err
>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev
/null
; then
2791 if test -s conftest.err
; then
2792 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2799 if test -z "$ac_cpp_err"; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.
$ac_ext >&5
2805 # Broken: fails on valid input.
2808 rm -f conftest.err conftest.
$ac_ext
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.
$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2816 cat confdefs.h
>>conftest.
$ac_ext
2817 cat >>conftest.
$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ac_nonexistent.h>
2821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1
>conftest.err
2826 cat conftest.err
>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } >/dev
/null
; then
2829 if test -s conftest.err
; then
2830 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2837 if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.
$ac_ext >&5
2844 # Passes both tests.
2848 rm -f conftest.err conftest.
$ac_ext
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.
$ac_ext
2853 if $ac_preproc_ok; then
2856 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 ac_cpp
='$CXXCPP $CPPFLAGS'
2865 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2870 echo "$as_me:$LINENO: checking for egrep" >&5
2871 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2872 if test "${ac_cv_prog_egrep+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2876 then ac_cv_prog_egrep
='grep -E'
2877 else ac_cv_prog_egrep
='egrep'
2880 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2881 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2882 EGREP
=$ac_cv_prog_egrep
2885 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2886 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2887 if test "${ac_cv_header_stdc+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 cat >conftest.
$ac_ext <<_ACEOF
2891 #line $LINENO "configure"
2894 cat confdefs.h
>>conftest.
$ac_ext
2895 cat >>conftest.
$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2910 rm -f conftest.
$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try
='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 ac_cv_header_stdc
=yes
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.
$ac_ext >&5
2927 ac_cv_header_stdc
=no
2929 rm -f conftest.
$ac_objext conftest.
$ac_ext
2931 if test $ac_cv_header_stdc = yes; then
2932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2933 cat >conftest.
$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2937 cat confdefs.h
>>conftest.
$ac_ext
2938 cat >>conftest.
$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 $EGREP "memchr" >/dev
/null
2>&1; then
2947 ac_cv_header_stdc
=no
2953 if test $ac_cv_header_stdc = yes; then
2954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2955 cat >conftest.
$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2959 cat confdefs.h
>>conftest.
$ac_ext
2960 cat >>conftest.
$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 $EGREP "free" >/dev
/null
2>&1; then
2969 ac_cv_header_stdc
=no
2975 if test $ac_cv_header_stdc = yes; then
2976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2977 if test "$cross_compiling" = yes; then
2980 cat >conftest.
$ac_ext <<_ACEOF
2981 #line $LINENO "configure"
2984 cat confdefs.h
>>conftest.
$ac_ext
2985 cat >>conftest.
$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2988 #if ((' ' & 0x0FF) == 0x020)
2989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2992 # define ISLOWER(c) \
2993 (('a' <= (c) && (c) <= 'i') \
2994 || ('j' <= (c) && (c) <= 'r') \
2995 || ('s' <= (c) && (c) <= 'z'))
2996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3004 for (i = 0; i < 256; i++)
3005 if (XOR (islower (i), ISLOWER (i))
3006 || toupper (i) != TOUPPER (i))
3011 rm -f conftest
$ac_exeext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3013 (eval $ac_link) 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3024 echo "$as_me: program exited with status $ac_status" >&5
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.
$ac_ext >&5
3029 ac_cv_header_stdc
=no
3031 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3037 if test $ac_cv_header_stdc = yes; then
3039 cat >>confdefs.h
<<\_ACEOF
3040 #define STDC_HEADERS 1
3045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3055 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3056 inttypes.h stdint.h unistd.h
3058 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3059 echo "$as_me:$LINENO: checking for $ac_header" >&5
3060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 cat >conftest.
$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 $ac_includes_default
3073 #include <$ac_header>
3075 rm -f conftest.
$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try
='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 eval "$as_ac_Header=yes"
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.
$ac_ext >&5
3092 eval "$as_ac_Header=no"
3094 rm -f conftest.
$ac_objext conftest.
$ac_ext
3096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3099 cat >>confdefs.h
<<_ACEOF
3100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3109 for ac_header
in regex.h
3111 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3113 echo "$as_me:$LINENO: checking for $ac_header" >&5
3114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3121 # Is the header compilable?
3122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3124 cat >conftest.
$ac_ext <<_ACEOF
3125 #line $LINENO "configure"
3128 cat confdefs.h
>>conftest.
$ac_ext
3129 cat >>conftest.
$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 $ac_includes_default
3132 #include <$ac_header>
3134 rm -f conftest.
$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try
='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_header_compiler
=yes
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.
$ac_ext >&5
3151 ac_header_compiler
=no
3153 rm -f conftest.
$ac_objext conftest.
$ac_ext
3154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3155 echo "${ECHO_T}$ac_header_compiler" >&6
3157 # Is the header present?
3158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3160 cat >conftest.
$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3164 cat confdefs.h
>>conftest.
$ac_ext
3165 cat >>conftest.
$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 #include <$ac_header>
3169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3172 grep -v '^ *+' conftest.er1
>conftest.err
3174 cat conftest.err
>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev
/null
; then
3177 if test -s conftest.err
; then
3178 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3185 if test -z "$ac_cpp_err"; then
3186 ac_header_preproc
=yes
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.
$ac_ext >&5
3191 ac_header_preproc
=no
3193 rm -f conftest.err conftest.
$ac_ext
3194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3195 echo "${ECHO_T}$ac_header_preproc" >&6
3197 # So? What about this header?
3198 case $ac_header_compiler:$ac_header_preproc in
3200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3206 ## ------------------------------------ ##
3207 ## Report this to bug-autoconf@gnu.org. ##
3208 ## ------------------------------------ ##
3211 sed "s/^/$as_me: WARNING: /" >&2
3214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3222 ## ------------------------------------ ##
3223 ## Report this to bug-autoconf@gnu.org. ##
3224 ## ------------------------------------ ##
3227 sed "s/^/$as_me: WARNING: /" >&2
3230 echo "$as_me:$LINENO: checking for $ac_header" >&5
3231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 eval "$as_ac_Header=$ac_header_preproc"
3237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3242 cat >>confdefs.h
<<_ACEOF
3243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3251 # Check whether --enable-internalregex or --disable-internalregex was given.
3252 if test "${enable_internalregex+set}" = set; then
3253 enableval
="$enable_internalregex"
3254 internalregex
=$enableval
3256 if test "$internalregex" = "yes" ; then
3257 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3258 echo "$as_me: Forcing use of internal regex library" >&6;}
3260 if test "$HAS_REGEX" = "yes" ; then
3261 echo "$as_me:$LINENO: checking for regcomp" >&5
3262 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3263 if test "${ac_cv_func_regcomp+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 cat >conftest.
$ac_ext <<_ACEOF
3267 #line $LINENO "configure"
3270 cat confdefs.h
>>conftest.
$ac_ext
3271 cat >>conftest.
$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3273 /* System header to define __stub macros and hopefully few prototypes,
3274 which can conflict with char regcomp (); below.
3275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3276 <limits.h> exists even on freestanding compilers. */
3278 # include <limits.h>
3280 # include <assert.h>
3282 /* Override any gcc2 internal prototype to avoid an error. */
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3290 /* The GNU C library defines this for functions which it implements
3291 to always fail with ENOSYS. Some functions are actually named
3292 something starting with __ and the normal name is an alias. */
3293 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3296 char (*f) () = regcomp;
3305 return f != regcomp;
3310 rm -f conftest.
$ac_objext conftest
$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312 (eval $ac_link) 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -s conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_func_regcomp
=yes
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.
$ac_ext >&5
3327 ac_cv_func_regcomp
=no
3329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3331 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3332 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3333 if test $ac_cv_func_regcomp = yes; then
3337 if test "$HAS_REGEX" = "yes" ; then
3341 cat >>confdefs.h
<<\_ACEOF
3355 if test ${OSTYPE} = Darwin
; then
3358 cat >>confdefs.h
<<\_ACEOF
3359 #define P_DYNALINK 1
3364 for ac_header
in dlfcn.h
3366 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3368 echo "$as_me:$LINENO: checking for $ac_header" >&5
3369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3376 # Is the header compilable?
3377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3379 cat >conftest.
$ac_ext <<_ACEOF
3380 #line $LINENO "configure"
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 $ac_includes_default
3387 #include <$ac_header>
3389 rm -f conftest.
$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try
='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_header_compiler
=yes
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.
$ac_ext >&5
3406 ac_header_compiler
=no
3408 rm -f conftest.
$ac_objext conftest.
$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3410 echo "${ECHO_T}$ac_header_compiler" >&6
3412 # Is the header present?
3413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3415 cat >conftest.
$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3419 cat confdefs.h
>>conftest.
$ac_ext
3420 cat >>conftest.
$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <$ac_header>
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1
>conftest.err
3429 cat conftest.err
>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev
/null
; then
3432 if test -s conftest.err
; then
3433 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3440 if test -z "$ac_cpp_err"; then
3441 ac_header_preproc
=yes
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.
$ac_ext >&5
3446 ac_header_preproc
=no
3448 rm -f conftest.err conftest.
$ac_ext
3449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3450 echo "${ECHO_T}$ac_header_preproc" >&6
3452 # So? What about this header?
3453 case $ac_header_compiler:$ac_header_preproc in
3455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3461 ## ------------------------------------ ##
3462 ## Report this to bug-autoconf@gnu.org. ##
3463 ## ------------------------------------ ##
3466 sed "s/^/$as_me: WARNING: /" >&2
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3477 ## ------------------------------------ ##
3478 ## Report this to bug-autoconf@gnu.org. ##
3479 ## ------------------------------------ ##
3482 sed "s/^/$as_me: WARNING: /" >&2
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 eval "$as_ac_Header=$ac_header_preproc"
3492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3497 cat >>confdefs.h
<<_ACEOF
3498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3507 if test "$HAS_DLFCN" = yes ; then
3508 echo "$as_me:$LINENO: checking if dlopen is available" >&5
3509 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
3510 cat >conftest.
$ac_ext <<_ACEOF
3511 #line $LINENO "configure"
3514 cat confdefs.h
>>conftest.
$ac_ext
3515 cat >>conftest.
$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3521 void * p = dlopen("lib", 0);
3526 rm -f conftest.
$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try
='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.
$ac_ext >&5
3545 rm -f conftest.
$ac_objext conftest.
$ac_ext
3546 if test "$HAS_DLOPEN" = no
; then
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3550 echo "$as_me:$LINENO: result: yes" >&5
3551 echo "${ECHO_T}yes" >&6
3554 cat >>confdefs.h
<<\_ACEOF
3555 #define P_DYNALINK 1
3558 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3559 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 ac_check_lib_save_LIBS
=$LIBS
3565 cat >conftest.
$ac_ext <<_ACEOF
3566 #line $LINENO "configure"
3569 cat confdefs.h
>>conftest.
$ac_ext
3570 cat >>conftest.
$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3573 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3588 rm -f conftest.
$ac_objext conftest
$ac_exeext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3590 (eval $ac_link) 2>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try
='test -s conftest$ac_exeext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_lib_dl_dlopen
=yes
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.
$ac_ext >&5
3605 ac_cv_lib_dl_dlopen
=no
3607 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3608 LIBS
=$ac_check_lib_save_LIBS
3610 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3611 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3612 if test $ac_cv_lib_dl_dlopen = yes; then
3623 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
3624 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
3625 # Check whether --enable-plugins or --disable-plugins was given.
3626 if test "${enable_plugins+set}" = set; then
3627 enableval
="$enable_plugins"
3632 if test "${plugins}" = "no" ; then
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 elif test "${P_DYNALINK:-unset}" = "unset" ; then
3636 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
3637 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
3639 echo "$as_me:$LINENO: result: plugins enabled" >&5
3640 echo "${ECHO_T}plugins enabled" >&6
3643 cat >>confdefs.h
<<\_ACEOF
3644 #define P_HAS_PLUGINS 1
3650 cat >>confdefs.h
<<_ACEOF
3651 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
3657 # Check whether --enable-resolver or --disable-resolver was given.
3658 if test "${enable_resolver+set}" = set; then
3659 enableval
="$enable_resolver"
3663 if test "$resolver" = "no" ; then
3664 cat >>confdefs.h
<<\_ACEOF
3669 echo "$as_me:$LINENO: checking for res_search" >&5
3670 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3671 if test "${ac_cv_func_res_search+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.
$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3678 cat confdefs.h
>>conftest.
$ac_ext
3679 cat >>conftest.
$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 /* System header to define __stub macros and hopefully few prototypes,
3682 which can conflict with char res_search (); below.
3683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 <limits.h> exists even on freestanding compilers. */
3686 # include <limits.h>
3688 # include <assert.h>
3690 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3698 /* The GNU C library defines this for functions which it implements
3699 to always fail with ENOSYS. Some functions are actually named
3700 something starting with __ and the normal name is an alias. */
3701 #if defined (__stub_res_search) || defined (__stub___res_search)
3704 char (*f) () = res_search;
3713 return f != res_search;
3718 rm -f conftest.
$ac_objext conftest
$ac_exeext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720 (eval $ac_link) 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try
='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_func_res_search
=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 ac_cv_func_res_search
=no
3737 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3739 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3740 echo "${ECHO_T}$ac_cv_func_res_search" >&6
3741 if test $ac_cv_func_res_search = yes; then
3745 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3748 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3749 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
3751 cat >conftest.
$ac_ext <<_ACEOF
3753 #include <netinet/in.h>
3755 int main(int argc,char **argv){
3756 res_search (NULL, 0, 0, NULL, 0);
3759 rm -f conftest.
$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try
='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.
$ac_ext >&5
3777 rm -f conftest.
$ac_objext conftest.
$ac_ext
3778 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3779 echo "$as_me:$LINENO: result: yes" >&5
3780 echo "${ECHO_T}yes" >&6
3781 RESOLVER_LIBS
="-lresolv"
3783 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
3784 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
3785 if test "${ac_cv_search___res_search+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 ac_func_search_save_LIBS
=$LIBS
3789 ac_cv_search___res_search
=no
3790 cat >conftest.
$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3794 cat confdefs.h
>>conftest.
$ac_ext
3795 cat >>conftest.
$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3798 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3804 char __res_search ();
3813 rm -f conftest.
$ac_objext conftest
$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try
='test -s conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_search___res_search
="none required"
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.
$ac_ext >&5
3831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3832 if test "$ac_cv_search___res_search" = no
; then
3833 for ac_lib
in resolv
; do
3834 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3835 cat >conftest.
$ac_ext <<_ACEOF
3836 #line $LINENO "configure"
3839 cat confdefs.h
>>conftest.
$ac_ext
3840 cat >>conftest.
$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3849 char __res_search ();
3858 rm -f conftest.
$ac_objext conftest
$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try
='test -s conftest$ac_exeext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_cv_search___res_search
="-l$ac_lib"
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.
$ac_ext >&5
3877 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3880 LIBS
=$ac_func_search_save_LIBS
3882 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
3883 echo "${ECHO_T}$ac_cv_search___res_search" >&6
3884 if test "$ac_cv_search___res_search" != no
; then
3885 test "$ac_cv_search___res_search" = "none required" || LIBS
="$ac_cv_search___res_search $LIBS"
3892 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3894 cat >>confdefs.h
<<\_ACEOF
3903 # Check whether --enable-openldap or --disable-openldap was given.
3904 if test "${enable_openldap+set}" = set; then
3905 enableval
="$enable_openldap"
3909 if test "$openldap" = "no" ; then
3912 cat >>confdefs.h
<<\_ACEOF
3917 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
3919 for ac_header
in ldap.h
3921 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923 echo "$as_me:$LINENO: checking for $ac_header" >&5
3924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3931 # Is the header compilable?
3932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3934 cat >conftest.
$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_includes_default
3942 #include <$ac_header>
3944 rm -f conftest.
$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try
='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_header_compiler
=yes
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3961 ac_header_compiler
=no
3963 rm -f conftest.
$ac_objext conftest.
$ac_ext
3964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3965 echo "${ECHO_T}$ac_header_compiler" >&6
3967 # Is the header present?
3968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3970 cat >conftest.
$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3974 cat confdefs.h
>>conftest.
$ac_ext
3975 cat >>conftest.
$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #include <$ac_header>
3979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1
>conftest.err
3984 cat conftest.err
>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } >/dev
/null
; then
3987 if test -s conftest.err
; then
3988 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3995 if test -z "$ac_cpp_err"; then
3996 ac_header_preproc
=yes
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.
$ac_ext >&5
4001 ac_header_preproc
=no
4003 rm -f conftest.err conftest.
$ac_ext
4004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4005 echo "${ECHO_T}$ac_header_preproc" >&6
4007 # So? What about this header?
4008 case $ac_header_compiler:$ac_header_preproc in
4010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4016 ## ------------------------------------ ##
4017 ## Report this to bug-autoconf@gnu.org. ##
4018 ## ------------------------------------ ##
4021 sed "s/^/$as_me: WARNING: /" >&2
4024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4032 ## ------------------------------------ ##
4033 ## Report this to bug-autoconf@gnu.org. ##
4034 ## ------------------------------------ ##
4037 sed "s/^/$as_me: WARNING: /" >&2
4040 echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 eval "$as_ac_Header=$ac_header_preproc"
4047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4052 cat >>confdefs.h
<<_ACEOF
4053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 if test "${OSTYPE:-unknown}" = "solaris"; then
4062 OPENLDAPSYSLIBS
=-lposix4
4065 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4066 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4067 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4068 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 ac_check_lib_save_LIBS
=$LIBS
4072 LIBS
="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4073 cat >conftest.
$ac_ext <<_ACEOF
4074 #line $LINENO "configure"
4077 cat confdefs.h
>>conftest.
$ac_ext
4078 cat >>conftest.
$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4081 /* Override any gcc2 internal prototype to avoid an error. */
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4096 rm -f conftest.
$ac_objext conftest
$ac_exeext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4098 (eval $ac_link) 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try
='test -s conftest$ac_exeext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 ac_cv_lib_ldap_ldap_open
=yes
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4113 ac_cv_lib_ldap_ldap_open
=no
4115 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4116 LIBS
=$ac_check_lib_save_LIBS
4118 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4119 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4120 if test $ac_cv_lib_ldap_ldap_open = yes; then
4127 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4128 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4129 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 test "$cross_compiling" = yes &&
4133 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4134 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4135 { (exit 1); exit 1; }; }
4136 if test -r "/usr/local/include/ldap.h"; then
4137 ac_cv_file__usr_local_include_ldap_h
=yes
4139 ac_cv_file__usr_local_include_ldap_h
=no
4142 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4143 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4144 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4148 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4149 OPENLDAPINCLUDEDIR
=/usr
/local
/include
4150 OPENLDAPLIBDIR
=/usr
/local
/lib
4151 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4152 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4153 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 ac_check_lib_save_LIBS
=$LIBS
4157 LIBS
="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4158 cat >conftest.
$ac_ext <<_ACEOF
4159 #line $LINENO "configure"
4162 cat confdefs.h
>>conftest.
$ac_ext
4163 cat >>conftest.
$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4181 rm -f conftest.
$ac_objext conftest
$ac_exeext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4183 (eval $ac_link) 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try
='test -s conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_lib_ldap_ldap_open
=yes
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.
$ac_ext >&5
4198 ac_cv_lib_ldap_ldap_open
=no
4200 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4201 LIBS
=$ac_check_lib_save_LIBS
4203 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4204 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4205 if test $ac_cv_lib_ldap_ldap_open = yes; then
4215 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4219 cat >>confdefs.h
<<\_ACEOF
4223 if test ${OPENLDAPINCLUDEDIR:-unset} != "unset" ; then
4224 STDCCFLAGS
="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4226 if test ${OPENLDAPLIBDIR:-unset} != "unset" ; then
4227 LDFLAGS
="$LDFLAGS -L${OPENLDAPLIBDIR}"
4230 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4231 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4232 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 ac_check_lib_save_LIBS
=$LIBS
4236 LIBS
="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4237 cat >conftest.
$ac_ext <<_ACEOF
4238 #line $LINENO "configure"
4241 cat confdefs.h
>>conftest.
$ac_ext
4242 cat >>conftest.
$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4245 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4251 char sasl_client_auth ();
4255 sasl_client_auth ();
4260 rm -f conftest.
$ac_objext conftest
$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try
='test -s conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_lib_sasl_sasl_client_auth
=yes
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.
$ac_ext >&5
4277 ac_cv_lib_sasl_sasl_client_auth
=no
4279 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4280 LIBS
=$ac_check_lib_save_LIBS
4282 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4283 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4284 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4290 if test ${HAS_SASL:-unset} = "unset" ; then
4291 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4292 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4293 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_check_lib_save_LIBS
=$LIBS
4297 LIBS
="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4298 cat >conftest.
$ac_ext <<_ACEOF
4299 #line $LINENO "configure"
4302 cat confdefs.h
>>conftest.
$ac_ext
4303 cat >>conftest.
$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4306 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4312 char sasl_version ();
4321 rm -f conftest.
$ac_objext conftest
$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323 (eval $ac_link) 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try
='test -s conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_lib_sasl2_sasl_version
=yes
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.
$ac_ext >&5
4338 ac_cv_lib_sasl2_sasl_version
=no
4340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4341 LIBS
=$ac_check_lib_save_LIBS
4343 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4344 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4345 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4352 if test ${HAS_SASL:-unset} != "unset" ; then
4353 ENDLDLIBS
="$ENDLDLIBS -lldap -lldap_r -llber -lsasl"
4354 elif test ${HAS_SASL2:-unset} != "unset" ; then
4355 ENDLDLIBS
="$ENDLDLIBS -lldap -lldap_r -llber -lsasl2"
4357 ENDLDLIBS
="$ENDLDLIBS -lldap -lldap_r -llber"
4364 # Check whether --enable-openssl or --disable-openssl was given.
4365 if test "${enable_openssl+set}" = set; then
4366 enableval
="$enable_openssl"
4370 if test "$openssl" = "no" ; then
4371 cat >>confdefs.h
<<\_ACEOF
4379 if test ${OPENSSLDIR:-unset} != "unset" ; then
4380 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
4381 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
4382 if test -e ${OPENSSLDIR}/include
/openssl
/ssl.h
; then
4383 echo "$as_me:$LINENO: result: yes" >&5
4384 echo "${ECHO_T}yes" >&6
4386 SSLINCLUDEDIR
="${OPENSSLDIR}/include"
4387 SSLLIBDIR
="${OPENSSLDIR}/lib"
4389 echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4395 if test "${SSLHDR:-unset}" = "unset" ; then
4397 for ac_header
in openssl
/ssl.h
4399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.
$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4416 cat confdefs.h
>>conftest.
$ac_ext
4417 cat >>conftest.
$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 $ac_includes_default
4420 #include <$ac_header>
4422 rm -f conftest.
$ac_objext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try
='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_header_compiler
=yes
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.
$ac_ext >&5
4439 ac_header_compiler
=no
4441 rm -f conftest.
$ac_objext conftest.
$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4443 echo "${ECHO_T}$ac_header_compiler" >&6
4445 # Is the header present?
4446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4448 cat >conftest.
$ac_ext <<_ACEOF
4449 #line $LINENO "configure"
4452 cat confdefs.h
>>conftest.
$ac_ext
4453 cat >>conftest.
$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <$ac_header>
4457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4458 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4460 grep -v '^ *+' conftest.er1
>conftest.err
4462 cat conftest.err
>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev
/null
; then
4465 if test -s conftest.err
; then
4466 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4473 if test -z "$ac_cpp_err"; then
4474 ac_header_preproc
=yes
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.
$ac_ext >&5
4479 ac_header_preproc
=no
4481 rm -f conftest.err conftest.
$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4483 echo "${ECHO_T}$ac_header_preproc" >&6
4485 # So? What about this header?
4486 case $ac_header_compiler:$ac_header_preproc in
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4494 ## ------------------------------------ ##
4495 ## Report this to bug-autoconf@gnu.org. ##
4496 ## ------------------------------------ ##
4499 sed "s/^/$as_me: WARNING: /" >&2
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4510 ## ------------------------------------ ##
4511 ## Report this to bug-autoconf@gnu.org. ##
4512 ## ------------------------------------ ##
4515 sed "s/^/$as_me: WARNING: /" >&2
4518 echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 eval "$as_ac_Header=$ac_header_preproc"
4525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4530 cat >>confdefs.h
<<_ACEOF
4531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4538 if test "${SSLHDR:-unset}" = "unset" ; then
4539 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
4540 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
4541 cat >conftest.
$ac_ext <<_ACEOF
4542 #define OPENSSL_NO_KRB5
4543 #include <openssl/ssl.h>
4544 int main(int argc,char **argv){}
4546 rm -f conftest.
$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.
$ac_ext >&5
4564 rm -f conftest.
$ac_objext conftest.
$ac_ext
4565 if test ${SSLHDR:-unset} != "unset" ; then
4566 echo "$as_me:$LINENO: result: yes" >&5
4567 echo "${ECHO_T}yes" >&6
4568 SSLCCFLAGS
=" -DOPENSSL_NO_KRB5"
4569 P_STATIC_LDFLAGS
="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4570 P_STATIC_ENDLDLIBS
="-lkrb5 -lk5crypto -lcom_err"
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4578 if test "${SSLHDR:-unset}" = "unset" ; then
4581 ac_cpp
='$CPP $CPPFLAGS'
4582 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4587 for openssl_dir
in /usr
/local
/openssl
/usr
/local
/ssl
; do
4588 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
4589 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
4590 if test ! -f ${openssl_dir}/include
/openssl
/ssl.h
; then
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4594 cat >conftest.
$ac_ext <<_ACEOF
4595 #include "${openssl_dir}/include/openssl/ssl.h"
4596 int main(int argc,char **argv){ return 0; }
4598 $CC $CFLAGS -I${openssl_dir}/include
-c conftest.c
> /dev
/null
2>&1
4599 if test $?
= 0 ; then
4600 echo "$as_me:$LINENO: result: yes" >&5
4601 echo "${ECHO_T}yes" >&6
4604 SSLINCLUDEDIR
="${openssl_dir}/include"
4605 SSLLIBDIR
="${openssl_dir}/lib"
4608 echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4610 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
4611 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
4612 cat >conftest.
$ac_ext <<_ACEOF
4613 #define OPENSSL_NO_KRB5
4614 #include "${openssl_dir}/include/openssl/ssl.h"
4615 int main(int argc,char **argv){}
4617 $CC $CFLAGS -I${openssl_dir}/openssl
/include
-c conftest.c
> /dev
/null
2>&1
4618 if test $?
= 0 ; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6
4622 SSLCCFLAGS
=" -DOPENSSL_NO_KRB5"
4623 SSLINCLUDEDIR
="${openssl_dir}/include"
4624 SSLLIBDIR
="${openssl_dir}/lib"
4625 P_STATIC_LDFLAGS
="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
4626 P_STATIC_ENDLDLIBS
="-lkrb5 -lk5crypto -lcom_err"
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4636 ac_cpp
='$CXXCPP $CPPFLAGS'
4637 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4643 if test ${SSLHDR:-unset} != "unset" ; then
4647 cat >>confdefs.h
<<\_ACEOF
4651 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
4652 STDCCFLAGS
="$STDCCFLAGS -I${SSLINCLUDEDIR}"
4654 if test ${SSLLIBDIR:-unset} != "unset" ; then
4655 LDFLAGS
="$LDFLAGS -L${SSLLIBDIR}"
4657 STDCCFLAGS
="${STDCCFLAGS}${SSLCCFLAGS}"
4658 ENDLDLIBS
="$ENDLDLIBS -lssl -lcrypto"
4667 # Check whether --enable-expat or --disable-expat was given.
4668 if test "${enable_expat+set}" = set; then
4669 enableval
="$enable_expat"
4673 if test "$expat" = "no" ; then
4676 cat >>confdefs.h
<<\_ACEOF
4683 for ac_header
in expat.h
4685 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4687 echo "$as_me:$LINENO: checking for $ac_header" >&5
4688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4695 # Is the header compilable?
4696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4698 cat >conftest.
$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #include <$ac_header>
4708 rm -f conftest.
$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try
='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_header_compiler
=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4725 ac_header_compiler
=no
4727 rm -f conftest.
$ac_objext conftest.
$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4729 echo "${ECHO_T}$ac_header_compiler" >&6
4731 # Is the header present?
4732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4734 cat >conftest.
$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4738 cat confdefs.h
>>conftest.
$ac_ext
4739 cat >>conftest.
$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <$ac_header>
4743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4746 grep -v '^ *+' conftest.er1
>conftest.err
4748 cat conftest.err
>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev
/null
; then
4751 if test -s conftest.err
; then
4752 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4759 if test -z "$ac_cpp_err"; then
4760 ac_header_preproc
=yes
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.
$ac_ext >&5
4765 ac_header_preproc
=no
4767 rm -f conftest.err conftest.
$ac_ext
4768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4769 echo "${ECHO_T}$ac_header_preproc" >&6
4771 # So? What about this header?
4772 case $ac_header_compiler:$ac_header_preproc in
4774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4780 ## ------------------------------------ ##
4781 ## Report this to bug-autoconf@gnu.org. ##
4782 ## ------------------------------------ ##
4785 sed "s/^/$as_me: WARNING: /" >&2
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4796 ## ------------------------------------ ##
4797 ## Report this to bug-autoconf@gnu.org. ##
4798 ## ------------------------------------ ##
4801 sed "s/^/$as_me: WARNING: /" >&2
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 eval "$as_ac_Header=$ac_header_preproc"
4811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4816 cat >>confdefs.h
<<_ACEOF
4817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4824 if test "${HAS_EXPAT:-unset}" != "unset" ; then
4825 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
4826 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
4827 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_check_lib_save_LIBS
=$LIBS
4831 LIBS
="-lexpat $LIBS"
4832 cat >conftest.
$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4836 cat confdefs.h
>>conftest.
$ac_ext
4837 cat >>conftest.
$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4840 /* Override any gcc2 internal prototype to avoid an error. */
4844 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */
4846 char XML_ParserCreate ();
4850 XML_ParserCreate ();
4855 rm -f conftest.
$ac_objext conftest
$ac_exeext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857 (eval $ac_link) 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try
='test -s conftest$ac_exeext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_lib_expat_XML_ParserCreate
=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.
$ac_ext >&5
4872 ac_cv_lib_expat_XML_ParserCreate
=no
4874 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4875 LIBS
=$ac_check_lib_save_LIBS
4877 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4878 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
4879 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
4886 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
4887 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
4888 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 test "$cross_compiling" = yes &&
4892 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4893 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4894 { (exit 1); exit 1; }; }
4895 if test -r "/usr/local/include/expat.h"; then
4896 ac_cv_file__usr_local_include_expat_h
=yes
4898 ac_cv_file__usr_local_include_expat_h
=no
4901 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
4902 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
4903 if test $ac_cv_file__usr_local_include_expat_h = yes; then
4907 if test "${HAS_EXPAT:-unset}" != "unset" ; then
4908 EXPATINCLUDEDIR
=/usr
/local
/include
4909 EXPATLIBDIR
=/usr
/local
/lib
4913 if test "${HAS_EXPAT:-unset}" != "unset" ; then
4917 cat >>confdefs.h
<<\_ACEOF
4921 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
4922 STDCCFLAGS
="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
4924 if test ${EXPATLIBDIR:-unset} != "unset" ; then
4925 LDFLAGS
="$LDFLAGS -L${EXPATLIBDIR}"
4927 ENDLDLIBS
="$ENDLDLIBS -lexpat"
4936 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4937 if test "${enable_ipv6+set}" = set; then
4938 enableval
="$enable_ipv6"
4942 if test "$ipv6" = "no" ; then
4943 cat >>confdefs.h
<<\_ACEOF
4944 #define P_HAS_IPV6 0
4950 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
4951 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
4952 if test "${HAS_IPV6+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 cat >conftest.
$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4959 cat confdefs.h
>>conftest.
$ac_ext
4960 cat >>conftest.
$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <sys/types.h>
4963 #include <netinet/in.h>
4967 struct sockaddr_in6 s; s.sin6_scope_id = 0;
4972 rm -f conftest.
$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try
='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.
$ac_ext >&5
4991 rm -f conftest.
$ac_objext conftest.
$ac_ext
4993 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
4994 echo "${ECHO_T}$HAS_IPV6" >&6
4996 if test $HAS_IPV6 = yes ; then
4998 cat >>confdefs.h
<<\_ACEOF
4999 #define P_HAS_IPV6 1
5007 # Check whether --enable-qos or --disable-qos was given.
5008 if test "${enable_qos+set}" = set; then
5009 enableval
="$enable_qos"
5013 if test "$qos" = "no" ; then
5014 cat >>confdefs.h
<<\_ACEOF
5019 cat >>confdefs.h
<<\_ACEOF
5028 # Check whether --enable-sdl or --disable-sdl was given.
5029 if test "${enable_sdl+set}" = set; then
5030 enableval
="$enable_sdl"
5034 if test "$sdl" = "no" ; then
5037 cat >>confdefs.h
<<\_ACEOF
5042 if test "${SDLLIB:-unset}" = "unset" ; then
5047 for ac_header
in SDL
/SDL.h
5049 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo "$as_me:$LINENO: checking for $ac_header" >&5
5052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 # Is the header compilable?
5060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5062 cat >conftest.
$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5066 cat confdefs.h
>>conftest.
$ac_ext
5067 cat >>conftest.
$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 $ac_includes_default
5070 #include <$ac_header>
5072 rm -f conftest.
$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try
='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_header_compiler
=yes
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5089 ac_header_compiler
=no
5091 rm -f conftest.
$ac_objext conftest.
$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5093 echo "${ECHO_T}$ac_header_compiler" >&6
5095 # Is the header present?
5096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5098 cat >conftest.
$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5102 cat confdefs.h
>>conftest.
$ac_ext
5103 cat >>conftest.
$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #include <$ac_header>
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1
>conftest.err
5112 cat conftest.err
>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev
/null
; then
5115 if test -s conftest.err
; then
5116 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5123 if test -z "$ac_cpp_err"; then
5124 ac_header_preproc
=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 ac_header_preproc
=no
5131 rm -f conftest.err conftest.
$ac_ext
5132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5133 echo "${ECHO_T}$ac_header_preproc" >&6
5135 # So? What about this header?
5136 case $ac_header_compiler:$ac_header_preproc in
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5144 ## ------------------------------------ ##
5145 ## Report this to bug-autoconf@gnu.org. ##
5146 ## ------------------------------------ ##
5149 sed "s/^/$as_me: WARNING: /" >&2
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5165 sed "s/^/$as_me: WARNING: /" >&2
5168 echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 eval "$as_ac_Header=$ac_header_preproc"
5175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5180 cat >>confdefs.h
<<_ACEOF
5181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 if test "${HAS_SDL:-unset}" != "unset" ; then
5189 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5190 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5191 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 ac_check_lib_save_LIBS
=$LIBS
5195 LIBS
="-lSDL -lpthread $LIBS"
5196 cat >conftest.
$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5200 cat confdefs.h
>>conftest.
$ac_ext
5201 cat >>conftest.
$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5204 /* Override any gcc2 internal prototype to avoid an error. */
5208 /* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5210 char SDL_CreateYUVOverlay ();
5214 SDL_CreateYUVOverlay ();
5219 rm -f conftest.
$ac_objext conftest
$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try
='test -s conftest$ac_exeext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 ac_cv_lib_SDL_SDL_CreateYUVOverlay
=yes
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.
$ac_ext >&5
5236 ac_cv_lib_SDL_SDL_CreateYUVOverlay
=no
5238 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5239 LIBS
=$ac_check_lib_save_LIBS
5241 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5242 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5243 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5251 if test "${HAS_SDL:-unset}" = "unset" ; then
5252 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5253 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5254 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 test "$cross_compiling" = yes &&
5258 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5259 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5260 { (exit 1); exit 1; }; }
5261 if test -r "/usr/local/include/SDL11/SDL.h"; then
5262 ac_cv_file__usr_local_include_SDL11_SDL_h
=yes
5264 ac_cv_file__usr_local_include_SDL11_SDL_h
=no
5267 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5268 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5269 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5273 if test "${HAS_SDL:-unset}" != "unset" ; then
5278 if test "${HAS_SDL:-unset}" != "unset" ; then
5282 cat >>confdefs.h
<<\_ACEOF
5286 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5287 STDCCFLAGS
="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5289 if test ${SDLLIBDIR:-unset} != "unset" ; then
5290 LDFLAGS
="$LDFLAGS -L${SDLLIBDIR}"
5292 ENDLDLIBS
="$ENDLDLIBS -l${SDLLIB}"
5298 # Check whether --enable-video or --disable-video was given.
5299 if test "${enable_video+set}" = set; then
5300 enableval
="$enable_video"
5305 if test "$HAS_PLUGINS" = "0" ; then
5306 if test "$video" != "no" ; then
5307 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5308 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5309 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5310 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5314 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5316 # Is the header compilable?
5317 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5318 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5319 cat >conftest.
$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5323 cat confdefs.h
>>conftest.
$ac_ext
5324 cat >>conftest.
$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5327 #include <linux/videodev.h>
5329 rm -f conftest.
$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try
='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_header_compiler
=yes
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.
$ac_ext >&5
5346 ac_header_compiler
=no
5348 rm -f conftest.
$ac_objext conftest.
$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 echo "${ECHO_T}$ac_header_compiler" >&6
5352 # Is the header present?
5353 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
5354 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
5355 cat >conftest.
$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5359 cat confdefs.h
>>conftest.
$ac_ext
5360 cat >>conftest.
$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <linux/videodev.h>
5364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5367 grep -v '^ *+' conftest.er1
>conftest.err
5369 cat conftest.err
>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev
/null
; then
5372 if test -s conftest.err
; then
5373 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5380 if test -z "$ac_cpp_err"; then
5381 ac_header_preproc
=yes
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.
$ac_ext >&5
5386 ac_header_preproc
=no
5388 rm -f conftest.err conftest.
$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc in
5395 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5398 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5401 ## ------------------------------------ ##
5402 ## Report this to bug-autoconf@gnu.org. ##
5403 ## ------------------------------------ ##
5406 sed "s/^/$as_me: WARNING: /" >&2
5409 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
5410 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
5412 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
5414 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
5417 ## ------------------------------------ ##
5418 ## Report this to bug-autoconf@gnu.org. ##
5419 ## ------------------------------------ ##
5422 sed "s/^/$as_me: WARNING: /" >&2
5425 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5426 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5427 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 ac_cv_header_linux_videodev_h
=$ac_header_preproc
5432 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5433 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5436 if test $ac_cv_header_linux_videodev_h = yes; then
5441 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
5442 { echo "$as_me:$LINENO: No Video Capture support" >&5
5443 echo "$as_me: No Video Capture support" >&6;}
5447 cat >>confdefs.h
<<\_ACEOF
5448 #define NO_VIDEO_CAPTURE 1
5452 # Check whether --enable-alsa or --disable-alsa was given.
5453 if test "${enable_alsa+set}" = set; then
5454 enableval
="$enable_alsa"
5455 enable_alsa
=$enableval
5459 if test "$HAS_PLUGINS" = "0" ; then
5460 if test "$enable_alsa" != "no" ; then
5461 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5462 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5463 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5464 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5468 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5470 # Is the header compilable?
5471 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
5472 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
5473 cat >conftest.
$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5477 cat confdefs.h
>>conftest.
$ac_ext
5478 cat >>conftest.
$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5481 #include <alsa/asoundlib.h>
5483 rm -f conftest.
$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try
='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_header_compiler
=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.
$ac_ext >&5
5500 ac_header_compiler
=no
5502 rm -f conftest.
$ac_objext conftest.
$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504 echo "${ECHO_T}$ac_header_compiler" >&6
5506 # Is the header present?
5507 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
5508 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
5509 cat >conftest.
$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5513 cat confdefs.h
>>conftest.
$ac_ext
5514 cat >>conftest.
$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <alsa/asoundlib.h>
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5521 grep -v '^ *+' conftest.er1
>conftest.err
5523 cat conftest.err
>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev
/null
; then
5526 if test -s conftest.err
; then
5527 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5534 if test -z "$ac_cpp_err"; then
5535 ac_header_preproc
=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.
$ac_ext >&5
5540 ac_header_preproc
=no
5542 rm -f conftest.err conftest.
$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5544 echo "${ECHO_T}$ac_header_preproc" >&6
5546 # So? What about this header?
5547 case $ac_header_compiler:$ac_header_preproc in
5549 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5550 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5555 ## ------------------------------------ ##
5556 ## Report this to bug-autoconf@gnu.org. ##
5557 ## ------------------------------------ ##
5560 sed "s/^/$as_me: WARNING: /" >&2
5563 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
5571 ## ------------------------------------ ##
5572 ## Report this to bug-autoconf@gnu.org. ##
5573 ## ------------------------------------ ##
5576 sed "s/^/$as_me: WARNING: /" >&2
5579 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
5580 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
5581 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
5586 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
5587 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
5590 if test $ac_cv_header_alsa_asoundlib_h = yes; then
5595 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
5596 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
5597 if test "${HAS_ALSA}" = "1"; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6
5600 ENDLDLIBS
="$ENDLDLIBS -lasound"
5602 echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5609 if test "$OSTYPE" = "solaris" ; then
5612 echo "$as_me:$LINENO: checking for swab" >&5
5613 echo $ECHO_N "checking for swab... $ECHO_C" >&6
5614 if test "${ac_cv_func_swab+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.
$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5621 cat confdefs.h
>>conftest.
$ac_ext
5622 cat >>conftest.
$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 /* System header to define __stub macros and hopefully few prototypes,
5625 which can conflict with char swab (); below.
5626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5627 <limits.h> exists even on freestanding compilers. */
5629 # include <limits.h>
5631 # include <assert.h>
5633 /* Override any gcc2 internal prototype to avoid an error. */
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_swab) || defined (__stub___swab)
5647 char (*f) () = swab;
5661 rm -f conftest.
$ac_objext conftest
$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try
='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
5683 echo "${ECHO_T}$ac_cv_func_swab" >&6
5684 if test $ac_cv_func_swab = yes; then
5689 if test "x$ac_cv_func_swab" = "xyes" ; then
5690 cat >>confdefs.h
<<\_ACEOF
5691 #define USE_SYSTEM_SWAB 1
5697 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
5698 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
5699 ENDLDLIBS
="$ENDLDLIBS $RESOLVER_LIBS"
5703 if test "${OSTYPE}" != "Darwin" ; then
5704 if test ${HAS_LIBDL} = yes ; then
5705 ENDLDLIBS
="$ENDLDLIBS -ldl"
5714 ac_config_files
="$ac_config_files make/ptbuildopts.mak"
5716 ac_config_files
="$ac_config_files make/ptlib-config"
5718 ac_config_files
="$ac_config_files Makefile"
5721 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
5722 ac_config_headers
="$ac_config_headers include/ptbuildopts.h"
5725 cat >confcache
<<\_ACEOF
5726 # This file is a shell script that caches the results of configure
5727 # tests run on this system so they can be shared between configure
5728 # scripts and configure runs, see configure's option --config-cache.
5729 # It is not useful on other systems. If it contains results you don't
5730 # want to keep, you may remove or edit it.
5732 # config.status only pays attention to the cache file if you give it
5733 # the --recheck option to rerun configure.
5735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5741 # The following way of writing the cache mishandles newlines in values,
5742 # but we know of no workaround that is simple, portable, and efficient.
5743 # So, don't put newlines in cache variables' values.
5744 # Ultrix sh set writes to stderr and can't be redirected directly,
5745 # and sets the high bit in the cache file unless we assign to the vars.
5748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5750 # `set' does not quote correctly, so add quotes (double-quote
5751 # substitution turns \\\\ into \\, and sed turns \\ into \).
5754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5757 # `set' quotes correctly as required by POSIX, so do not add quotes.
5759 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5768 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5770 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5771 if test -w $cache_file; then
5772 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5773 cat confcache
>$cache_file
5775 echo "not updating unwritable cache $cache_file"
5780 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5781 # Let make expand exec_prefix.
5782 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5786 # trailing colons and then remove the whole line if VPATH becomes empty
5787 # (actually we leave an empty line to preserve line numbers).
5788 if test "x$srcdir" = x.
; then
5789 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5790 s/:*\$(srcdir):*/:/;
5791 s/:*\${srcdir}:*/:/;
5793 s/^\([^=]*=[ ]*\):*/\1/;
5799 DEFS
=-DHAVE_CONFIG_H
5803 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5804 # 1. Remove the extension, and $U if already installed.
5805 ac_i
=`echo "$ac_i" |
5806 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5808 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5809 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5813 LTLIBOBJS
=$ac_ltlibobjs
5817 : ${CONFIG_STATUS=./config.status}
5818 ac_clean_files_save
=$ac_clean_files
5819 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5820 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5821 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5822 cat >$CONFIG_STATUS <<_ACEOF
5824 # Generated by $as_me.
5825 # Run this file to recreate the current configuration.
5826 # Compiler output produced by configure, useful for debugging
5827 # configure, is in config.log if it exists.
5832 SHELL=\${CONFIG_SHELL-$SHELL}
5835 cat >>$CONFIG_STATUS <<\_ACEOF
5836 ## --------------------- ##
5837 ## M4sh Initialization. ##
5838 ## --------------------- ##
5840 # Be Bourne compatible
5841 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5844 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5845 # is contrary to our usage. Disable this feature.
5846 alias -g '${1+"$@"}'='"$@"'
5847 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5851 # Support unset when possible.
5852 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
5859 # Work around bugs in pre-3.0 UWIN ksh.
5860 $as_unset ENV MAIL MAILPATH
5867 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5868 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5869 LC_TELEPHONE LC_TIME
5871 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5872 eval $as_var=C
; export $as_var
5878 # Required to use basename.
5879 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5885 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5886 as_basename
=basename
5892 # Name of the executable.
5893 as_me
=`$as_basename "$0" ||
5894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5895 X"$0" : 'X\(//\)$' \| \
5896 X"$0" : 'X\(/\)$' \| \
5897 . : '\(.\)' 2>/dev/null ||
5899 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5900 /^X\/\(\/\/\)$/{ s//\1/; q; }
5901 /^X\/\(\/\).*/{ s//\1/; q; }
5905 # PATH needs CR, and LINENO needs CR and PATH.
5906 # Avoid depending upon Character Ranges.
5907 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5908 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5909 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5910 as_cr_digits
='0123456789'
5911 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5913 # The user is always right.
5914 if test "${PATH_SEPARATOR+set}" != set; then
5915 echo "#! /bin/sh" >conf$$.sh
5916 echo "exit 0" >>conf$$.sh
5918 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5929 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5930 test "x$as_lineno_1" != "x$as_lineno_2" &&
5931 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5932 # Find who we are. Look in the path if we contain no path at all
5935 *[\\/]* ) as_myself
=$0 ;;
5936 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir
=.
5941 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5946 # We did not find ourselves, most probably we were run as `sh COMMAND'
5947 # in which case we are not to be found in the path.
5948 if test "x$as_myself" = x
; then
5951 if test ! -f "$as_myself"; then
5952 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5953 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5954 { (exit 1); exit 1; }; }
5956 case $CONFIG_SHELL in
5958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5959 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5962 test -z "$as_dir" && as_dir
=.
5963 for as_base
in sh bash ksh sh5
; do
5966 if ("$as_dir/$as_base" -c '
5969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5970 test "x$as_lineno_1" != "x$as_lineno_2" &&
5971 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5972 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5973 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5974 CONFIG_SHELL
=$as_dir/$as_base
5976 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5985 # uniformly replaced by the line number. The first 'sed' inserts a
5986 # line-number line before each line; the second 'sed' does the real
5987 # work. The second script uses 'N' to pair each line-number line
5988 # with the numbered line, and appends trailing '-' during
5989 # substitution so that $LINENO is not a special case at line end.
5990 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5991 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5992 sed '=' <$as_myself |
5997 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6000 s,^['$as_cr_digits']*\n,,
6002 chmod +x
$as_me.lineno ||
6003 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6004 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6005 { (exit 1); exit 1; }; }
6007 # Don't try to exec as it changes $[0], causing all sort of problems
6008 # (the dirname of $[0] is not the place where we might find the
6009 # original and so on. Autoconf is especially sensible to this).
6011 # Exit status is that of the last command.
6016 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6017 *c
*,-n*) ECHO_N
= ECHO_C
='
6019 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6020 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6023 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6029 rm -f conf$$ conf$$.exe conf$$.
file
6031 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6032 # We could just check for DJGPP; but this test a) works b) is more generic
6033 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6034 if test -f conf$$.exe
; then
6035 # Don't use ln at all; we don't have any links
6040 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6045 rm -f conf$$ conf$$.exe conf$$.
file
6047 if mkdir
-p .
2>/dev
/null
; then
6053 as_executable_p
="test -f"
6055 # Sed expression to map a string onto a valid CPP name.
6056 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6058 # Sed expression to map a string onto a valid variable name.
6059 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6063 # We need space, tab and new line, in precisely that order.
6073 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6074 # report actual input values of CONFIG_FILES etc. instead of their
6075 # values after options handling. Logging --version etc. is OK.
6079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6080 ## Running $as_me. ##
6085 This file was extended by $as_me, which was
6086 generated by GNU Autoconf 2.57. Invocation command line was
6088 CONFIG_FILES = $CONFIG_FILES
6089 CONFIG_HEADERS = $CONFIG_HEADERS
6090 CONFIG_LINKS = $CONFIG_LINKS
6091 CONFIG_COMMANDS = $CONFIG_COMMANDS
6095 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6099 # Files that config.status was made for.
6100 if test -n "$ac_config_files"; then
6101 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6104 if test -n "$ac_config_headers"; then
6105 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6108 if test -n "$ac_config_links"; then
6109 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6112 if test -n "$ac_config_commands"; then
6113 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6116 cat >>$CONFIG_STATUS <<\_ACEOF
6119 \`$as_me' instantiates files from templates according to the
6120 current configuration.
6122 Usage: $0 [OPTIONS] [FILE]...
6124 -h, --help print this help, then exit
6125 -V, --version print version number, then exit
6126 -q, --quiet do not print progress messages
6127 -d, --debug don't remove temporary files
6128 --recheck update $as_me by reconfiguring in the same conditions
6129 --file=FILE[:TEMPLATE]
6130 instantiate the configuration file FILE
6131 --header=FILE[:TEMPLATE]
6132 instantiate the configuration header FILE
6134 Configuration files:
6137 Configuration headers:
6140 Report bugs to <bug-autoconf@gnu.org>."
6143 cat >>$CONFIG_STATUS <<_ACEOF
6146 configured by $0, generated by GNU Autoconf 2.57,
6147 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6149 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6150 Free Software Foundation, Inc.
6151 This config.status script is free software; the Free Software Foundation
6152 gives unlimited permission to copy, distribute and modify it."
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6157 # If no file are specified by the user, then we need to provide default
6158 # value. By we need to know if files were specified by the user.
6164 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6165 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6173 *) # This is not an option, so the user has probably given explicit
6176 ac_need_defaults
=false
;;
6180 # Handling of the options.
6182 cat >>$CONFIG_STATUS <<\_ACEOF
6183 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6185 --version |
--vers* |
-V )
6186 echo "$ac_cs_version"; exit 0 ;;
6188 # Conflict between --help and --header
6189 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6190 Try \`$0 --help' for more information." >&5
6191 echo "$as_me: error: ambiguous option: $1
6192 Try \`$0 --help' for more information." >&2;}
6193 { (exit 1); exit 1; }; };;
6194 --help |
--hel |
-h )
6195 echo "$ac_cs_usage"; exit 0 ;;
6196 --debug |
--d* |
-d )
6198 --file |
--fil |
--fi |
--f )
6200 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6201 ac_need_defaults
=false
;;
6202 --header |
--heade |
--head |
--hea )
6204 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6205 ac_need_defaults
=false
;;
6206 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6207 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6211 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6212 Try \`$0 --help' for more information." >&5
6213 echo "$as_me: error: unrecognized option: $1
6214 Try \`$0 --help' for more information." >&2;}
6215 { (exit 1); exit 1; }; } ;;
6217 *) ac_config_targets
="$ac_config_targets $1" ;;
6223 ac_configure_extra_args
=
6225 if $ac_cs_silent; then
6227 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6231 cat >>$CONFIG_STATUS <<_ACEOF
6232 if \$ac_cs_recheck; then
6233 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6234 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6243 cat >>$CONFIG_STATUS <<\_ACEOF
6244 for ac_config_target
in $ac_config_targets
6246 case "$ac_config_target" in
6247 # Handling of arguments.
6248 "make/ptbuildopts.mak" ) CONFIG_FILES
="$CONFIG_FILES make/ptbuildopts.mak" ;;
6249 "make/ptlib-config" ) CONFIG_FILES
="$CONFIG_FILES make/ptlib-config" ;;
6250 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6251 "include/ptbuildopts.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/ptbuildopts.h" ;;
6252 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6254 { (exit 1); exit 1; }; };;
6258 # If the user did not use the arguments to specify the items to instantiate,
6259 # then the envvar interface is used. Set only those that are not.
6260 # We use the long form for the default assignment because of an extremely
6261 # bizarre bug on SunOS 4.1.3.
6262 if $ac_need_defaults; then
6263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6267 # Have a temporary directory for convenience. Make it in the build tree
6268 # simply because there is no reason to put it here, and in addition,
6269 # creating and moving files from /tmp can sometimes cause problems.
6270 # Create a temporary directory, and hook for its removal unless debugging.
6273 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6274 trap '{ (exit 1); exit 1; }' 1 2 13 15
6277 # Create a (secure) tmp directory for tmp files.
6280 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6281 test -n "$tmp" && test -d "$tmp"
6284 tmp
=.
/confstat$$
-$RANDOM
6285 (umask 077 && mkdir
$tmp)
6288 echo "$me: cannot create a temporary directory in ." >&2
6289 { (exit 1); exit 1; }
6294 cat >>$CONFIG_STATUS <<_ACEOF
6297 # CONFIG_FILES section.
6300 # No need to generate the scripts if there are no CONFIG_FILES.
6301 # This happens for instance when ./config.status config.h
6302 if test -n "\$CONFIG_FILES"; then
6303 # Protect against being on the right side of a sed subst in config.status.
6304 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6305 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6306 s,@SHELL@,$SHELL,;t t
6307 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6308 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6309 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6310 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6311 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6312 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6313 s,@exec_prefix@,$exec_prefix,;t t
6314 s,@prefix@,$prefix,;t t
6315 s,@program_transform_name@,$program_transform_name,;t t
6316 s,@bindir@,$bindir,;t t
6317 s,@sbindir@,$sbindir,;t t
6318 s,@libexecdir@,$libexecdir,;t t
6319 s,@datadir@,$datadir,;t t
6320 s,@sysconfdir@,$sysconfdir,;t t
6321 s,@sharedstatedir@,$sharedstatedir,;t t
6322 s,@localstatedir@,$localstatedir,;t t
6323 s,@libdir@,$libdir,;t t
6324 s,@includedir@,$includedir,;t t
6325 s,@oldincludedir@,$oldincludedir,;t t
6326 s,@infodir@,$infodir,;t t
6327 s,@mandir@,$mandir,;t t
6328 s,@build_alias@,$build_alias,;t t
6329 s,@host_alias@,$host_alias,;t t
6330 s,@target_alias@,$target_alias,;t t
6332 s,@ECHO_C@,$ECHO_C,;t t
6333 s,@ECHO_N@,$ECHO_N,;t t
6334 s,@ECHO_T@,$ECHO_T,;t t
6336 s,@subdirs@,$subdirs,;t t
6338 s,@CXXFLAGS@,$CXXFLAGS,;t t
6339 s,@LDFLAGS@,$LDFLAGS,;t t
6340 s,@CPPFLAGS@,$CPPFLAGS,;t t
6341 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6342 s,@EXEEXT@,$EXEEXT,;t t
6343 s,@OBJEXT@,$OBJEXT,;t t
6344 s,@PWLIBDIR@,$PWLIBDIR,;t t
6345 s,@PWINSTDIR@,$PWINSTDIR,;t t
6346 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6347 s,@LIBDIR@,$LIBDIR,;t t
6348 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
6349 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
6350 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
6351 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
6352 s,@build@,$build,;t t
6353 s,@build_cpu@,$build_cpu,;t t
6354 s,@build_vendor@,$build_vendor,;t t
6355 s,@build_os@,$build_os,;t t
6357 s,@host_cpu@,$host_cpu,;t t
6358 s,@host_vendor@,$host_vendor,;t t
6359 s,@host_os@,$host_os,;t t
6360 s,@target@,$target,;t t
6361 s,@target_cpu@,$target_cpu,;t t
6362 s,@target_vendor@,$target_vendor,;t t
6363 s,@target_os@,$target_os,;t t
6364 s,@MACHTYPE@,$MACHTYPE,;t t
6365 s,@OSTYPE@,$OSTYPE,;t t
6366 s,@OSRELEASE@,$OSRELEASE,;t t
6367 s,@TARGETDIR@,$TARGETDIR,;t t
6368 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
6369 s,@CXXCPP@,$CXXCPP,;t t
6370 s,@EGREP@,$EGREP,;t t
6371 s,@HAS_REGEX@,$HAS_REGEX,;t t
6372 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
6373 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
6374 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
6375 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
6376 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
6377 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
6378 s,@HAS_IPV6@,$HAS_IPV6,;t t
6379 s,@HAS_SDL@,$HAS_SDL,;t t
6380 s,@HAS_ALSA@,$HAS_ALSA,;t t
6381 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6382 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
6383 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6384 s,@LIBOBJS@,$LIBOBJS,;t t
6385 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6390 cat >>$CONFIG_STATUS <<\_ACEOF
6391 # Split the substitutions into bite-sized pieces for seds with
6392 # small command number limits, like on Digital OSF/1 and HP-UX.
6394 ac_sed_frag
=1 # Number of current file.
6395 ac_beg
=1 # First line for current file.
6396 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6399 while $ac_more_lines; do
6400 if test $ac_beg -gt 1; then
6401 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6403 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6405 if test ! -s $tmp/subs.frag
; then
6408 # The purpose of the label and of the branching condition is to
6409 # speed up the sed processing (if there are no `@' at all, there
6410 # is no need to browse any of the substitutions).
6411 # These are the two extra sed commands mentioned above.
6413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6414 if test -z "$ac_sed_cmds"; then
6415 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6417 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6419 ac_sed_frag
=`expr $ac_sed_frag + 1`
6421 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6424 if test -z "$ac_sed_cmds"; then
6427 fi # test -n "$CONFIG_FILES"
6430 cat >>$CONFIG_STATUS <<\_ACEOF
6431 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6434 - |
*:- |
*:-:* ) # input from stdin
6436 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6437 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6438 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6439 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6440 * ) ac_file_in
=$ac_file.
in ;;
6443 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6444 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6446 X"$ac_file" : 'X\(//\)[^/]' \| \
6447 X"$ac_file" : 'X\(//\)$' \| \
6448 X"$ac_file" : 'X\(/\)' \| \
6449 . : '\(.\)' 2>/dev/null ||
6451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6453 /^X\(\/\/\)$/{ s//\1/; q; }
6454 /^X\(\/\).*/{ s//\1/; q; }
6456 { if $as_mkdir_p; then
6461 while test ! -d "$as_dir"; do
6462 as_dirs
="$as_dir $as_dirs"
6463 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6465 X"$as_dir" : 'X\(//\)[^/]' \| \
6466 X"$as_dir" : 'X\(//\)$' \| \
6467 X"$as_dir" : 'X\(/\)' \| \
6468 . : '\(.\)' 2>/dev/null ||
6470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6472 /^X\(\/\/\)$/{ s//\1/; q; }
6473 /^X\(\/\).*/{ s//\1/; q; }
6476 test ! -n "$as_dirs" || mkdir
$as_dirs
6477 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6479 { (exit 1); exit 1; }; }; }
6483 if test "$ac_dir" != .
; then
6484 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6485 # A "../" for each directory in $ac_dir_suffix.
6486 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6488 ac_dir_suffix
= ac_top_builddir
=
6492 .
) # No --srcdir option. We are building in place.
6494 if test -z "$ac_top_builddir"; then
6497 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6499 [\\/]* | ?
:[\\/]* ) # Absolute path.
6500 ac_srcdir
=$srcdir$ac_dir_suffix;
6501 ac_top_srcdir
=$srcdir ;;
6503 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6504 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6506 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6508 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
6509 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6510 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6511 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6515 if test x
"$ac_file" != x-
; then
6516 { echo "$as_me:$LINENO: creating $ac_file" >&5
6517 echo "$as_me: creating $ac_file" >&6;}
6520 # Let's still pretend it is `configure' which instantiates (i.e., don't
6521 # use $as_me), people would be surprised to read:
6522 # /* config.h. Generated by config.status. */
6523 if test x
"$ac_file" = x-
; then
6526 configure_input
="$ac_file. "
6528 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6529 sed 's,.*/,,'` by configure."
6531 # First look for the input files in the build tree, otherwise in the
6533 ac_file_inputs
=`IFS=:
6534 for f in $ac_file_in; do
6536 -) echo $tmp/stdin ;;
6538 # Absolute (can't be DOS-style, as IFS=:)
6539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6540 echo "$as_me: error: cannot find input file: $f" >&2;}
6541 { (exit 1); exit 1; }; }
6544 if test -f "$f"; then
6547 elif test -f "$srcdir/$f"; then
6552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6553 echo "$as_me: error: cannot find input file: $f" >&2;}
6554 { (exit 1); exit 1; }; }
6557 done` ||
{ (exit 1); exit 1; }
6559 cat >>$CONFIG_STATUS <<_ACEOF
6563 cat >>$CONFIG_STATUS <<\_ACEOF
6565 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6566 s
,@configure_input@
,$configure_input,;t t
6567 s
,@srcdir@
,$ac_srcdir,;t t
6568 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6569 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6570 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6571 s
,@builddir@
,$ac_builddir,;t t
6572 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6573 s
,@top_builddir@
,$ac_top_builddir,;t t
6574 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6575 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6577 if test x"$ac_file" != x-; then
6578 mv $tmp/out $ac_file
6584 # Run the commands associated with the file.
6586 make/ptlib-config ) chmod a+x make/ptlib-config ;;
6590 cat >>$CONFIG_STATUS <<\_ACEOF
6593 # CONFIG_HEADER section.
6596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6599 # ac_d sets the value in "#define NAME VALUE" lines.
6600 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6601 ac_dB
='[ ].*$,\1#\2'
6604 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6605 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6606 ac_uB
='$,\1#\2define\3'
6610 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6613 - |
*:- |
*:-:* ) # input from stdin
6615 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6616 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6617 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6618 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6619 * ) ac_file_in
=$ac_file.
in ;;
6622 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6623 echo "$as_me: creating $ac_file" >&6;}
6625 # First look for the input files in the build tree, otherwise in the
6627 ac_file_inputs
=`IFS=:
6628 for f in $ac_file_in; do
6630 -) echo $tmp/stdin ;;
6632 # Absolute (can't be DOS-style, as IFS=:)
6633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6634 echo "$as_me: error: cannot find input file: $f" >&2;}
6635 { (exit 1); exit 1; }; }
6638 if test -f "$f"; then
6641 elif test -f "$srcdir/$f"; then
6646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6647 echo "$as_me: error: cannot find input file: $f" >&2;}
6648 { (exit 1); exit 1; }; }
6651 done` ||
{ (exit 1); exit 1; }
6652 # Remove the trailing spaces.
6653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6657 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6658 # `conftest.undefs', that substitutes the proper values into
6659 # config.h.in to produce config.h. The first handles `#define'
6660 # templates, and the second `#undef' templates.
6661 # And first: Protect against being on the right side of a sed subst in
6662 # config.status. Protect against being in an unquoted here document
6664 rm -f conftest.defines conftest.undefs
6665 # Using a here document instead of a string reduces the quoting nightmare.
6666 # Putting comments in sed scripts is not portable.
6668 # `end' is used to avoid that the second main sed command (meant for
6669 # 0-ary CPP macros) applies to n-ary macro definitions.
6670 # See the Autoconf documentation for `clear'.
6671 cat >confdef2sed.
sed <<\_ACEOF
6676 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6678 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6681 # If some macros were called several times there might be several times
6682 # the same #defines, which is useless. Nevertheless, we may not want to
6683 # sort them, since we want the *last* AC-DEFINE to be honored.
6684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6686 rm -f confdef2sed.sed
6688 # This sed command replaces #undef with comments. This is necessary, for
6689 # example, in the case of _POSIX_SOURCE, which is predefined and required
6690 # on some systems where configure will not decide to define it.
6691 cat >>conftest.undefs <<\_ACEOF
6692 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6695 # Break up conftest.defines because some shells have a limit on the size
6696 # of here documents, and old seds have small limits too (100 cmds).
6697 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6698 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6699 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6700 echo ' :' >>$CONFIG_STATUS
6702 while grep . conftest.defines >/dev/null
6704 # Write a limited-size here document to $tmp/defines.sed.
6705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6706 # Speed up: don't consider the non `#define' lines.
6707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6708 # Work around the forget-to-reset-the-flag bug.
6709 echo 't clr' >>$CONFIG_STATUS
6710 echo ': clr' >>$CONFIG_STATUS
6711 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6713 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6717 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6718 rm -f conftest.defines
6719 mv conftest.
tail conftest.defines
6721 rm -f conftest.defines
6722 echo ' fi # grep' >>$CONFIG_STATUS
6723 echo >>$CONFIG_STATUS
6725 # Break up conftest.undefs because some shells have a limit on the size
6726 # of here documents, and old seds have small limits too (100 cmds).
6727 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6729 while grep . conftest.undefs
>/dev
/null
6731 # Write a limited-size here document to $tmp/undefs.sed.
6732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6733 # Speed up: don't consider the non
`#undef'
6734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6735 # Work around the forget-to-reset-the-flag bug.
6736 echo 't clr' >>$CONFIG_STATUS
6737 echo ': clr' >>$CONFIG_STATUS
6738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6745 rm -f conftest.undefs
6746 mv conftest.tail conftest.undefs
6748 rm -f conftest.undefs
6750 cat >>$CONFIG_STATUS <<\_ACEOF
6751 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6752 # use $as_me), people would be surprised to read:
6753 # /* config.h. Generated by config.status. */
6754 if test x
"$ac_file" = x-
; then
6755 echo "/* Generated by configure. */" >$tmp/config.h
6757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6759 cat $tmp/in >>$tmp/config.h
6761 if test x
"$ac_file" != x-
; then
6762 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6764 echo "$as_me: $ac_file is unchanged" >&6;}
6766 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6768 X"$ac_file" : 'X\(//\)[^/]' \| \
6769 X"$ac_file" : 'X\(//\)$' \| \
6770 X"$ac_file" : 'X\(/\)' \| \
6771 . : '\(.\)' 2>/dev/null ||
6773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6775 /^X\(\/\/\)$/{ s//\1/; q; }
6776 /^X\(\/\).*/{ s//\1/; q; }
6778 { if $as_mkdir_p; then
6783 while test ! -d "$as_dir"; do
6784 as_dirs
="$as_dir $as_dirs"
6785 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6787 X"$as_dir" : 'X\(//\)[^/]' \| \
6788 X"$as_dir" : 'X\(//\)$' \| \
6789 X"$as_dir" : 'X\(/\)' \| \
6790 . : '\(.\)' 2>/dev/null ||
6792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6794 /^X\(\/\/\)$/{ s//\1/; q; }
6795 /^X\(\/\).*/{ s//\1/; q; }
6798 test ! -n "$as_dirs" || mkdir
$as_dirs
6799 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6800 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6801 { (exit 1); exit 1; }; }; }
6804 mv $tmp/config.h
$ac_file
6813 cat >>$CONFIG_STATUS <<\_ACEOF
6815 { (exit 0); exit 0; }
6817 chmod +x
$CONFIG_STATUS
6818 ac_clean_files
=$ac_clean_files_save
6821 # configure is writing to config.log, and then calls config.status.
6822 # config.status does its own redirection, appending to config.log.
6823 # Unfortunately, on DOS this fails, as config.log is still kept open
6824 # by configure, so config.status won't be able to write to it; its
6825 # output is simply discarded. So we exec the FD to /dev/null,
6826 # effectively closing config.log, so it can be properly (re)opened and
6827 # appended to by config.status. When coming back to configure, we
6828 # need to make the FD available again.
6829 if test "$no_create" != yes; then
6831 ac_config_status_args
=
6832 test "$silent" = yes &&
6833 ac_config_status_args
="$ac_config_status_args --quiet"
6835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6838 # would make configure fail if this is the last instruction.
6839 $ac_cs_success ||
{ (exit 1); exit 1; }
6843 # CONFIG_SUBDIRS section.
6845 if test "$no_recursion" != yes; then
6847 # Remove --cache-file and --srcdir arguments so they do not pile up.
6848 ac_sub_configure_args
=
6850 for ac_arg
in $ac_configure_args; do
6851 if test -n "$ac_prev"; then
6856 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6857 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6858 ac_prev
=cache_file
;;
6859 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6860 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6863 --config-cache |
-C)
6865 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6867 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6869 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6871 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6873 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
6877 # Always prepend --prefix to ensure using the same prefix
6878 # in subdir configurations.
6879 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
6882 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
6884 # Do not complain, so a configure script can configure whichever
6885 # parts of a large source tree are present.
6886 test -d $srcdir/$ac_dir ||
continue
6888 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6889 echo "$as_me: configuring in $ac_dir" >&6;}
6890 { if $as_mkdir_p; then
6895 while test ! -d "$as_dir"; do
6896 as_dirs
="$as_dir $as_dirs"
6897 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6899 X"$as_dir" : 'X\(//\)[^/]' \| \
6900 X"$as_dir" : 'X\(//\)$' \| \
6901 X"$as_dir" : 'X\(/\)' \| \
6902 . : '\(.\)' 2>/dev/null ||
6904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6906 /^X\(\/\/\)$/{ s//\1/; q; }
6907 /^X\(\/\).*/{ s//\1/; q; }
6910 test ! -n "$as_dirs" || mkdir
$as_dirs
6911 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6913 { (exit 1); exit 1; }; }; }
6917 if test "$ac_dir" != .
; then
6918 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6919 # A "../" for each directory in $ac_dir_suffix.
6920 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6922 ac_dir_suffix
= ac_top_builddir
=
6926 .
) # No --srcdir option. We are building in place.
6928 if test -z "$ac_top_builddir"; then
6931 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6933 [\\/]* | ?
:[\\/]* ) # Absolute path.
6934 ac_srcdir
=$srcdir$ac_dir_suffix;
6935 ac_top_srcdir
=$srcdir ;;
6937 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6938 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6942 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
6943 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6944 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6945 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6950 # Check for guested configure; otherwise get Cygnus style configure.
6951 if test -f $ac_srcdir/configure.gnu
; then
6952 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
6953 elif test -f $ac_srcdir/configure
; then
6954 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
6955 elif test -f $ac_srcdir/configure.
in; then
6956 ac_sub_configure
=$ac_configure
6958 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6963 # The recursion is here.
6964 if test -n "$ac_sub_configure"; then
6965 # Make the cache file name correct relative to the subdirectory.
6967 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6969 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
6972 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6973 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6974 # The eval makes quoting arguments work.
6975 eval $ac_sub_configure $ac_sub_configure_args \
6976 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6977 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6978 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6979 { (exit 1); exit 1; }; }