Updated for latest configure.in change
[pwlib.git] / configure
blob0f841058ce891b2adaeb836da315a77f8eef2011
1 #! /bin/sh
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
15 emulate sh
16 NULLCMD=:
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
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
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"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
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`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
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.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
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="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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_SASL2 HAS_SASL HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_IPV6 HAS_SDL HAS_VIDEO_CAPTURE HAS_ALSA STDCCFLAGS STDCXXFLAGS OPTSTDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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.
780 cat <<_ACEOF
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.
790 Configuration:
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 \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
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]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
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]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
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-sasl disable SASL support in PWLIB
852 --disable-openldap disable OpenLDAP support in PWLIB
853 --disable-openssl disable OpenSSL support in PWLIB
854 --disable-expat disable XML support in PWLIB
855 --disable-ipv6 disable IPV6 support in PWLIB
856 --disable-qos disable QOS support in PWLIB
857 --disable-sdl disable SDL support in PWLIB
858 --disable-video disable non-plugin video device support in PWLIB
859 --enable-alsa disable non-plugin ALSA audio support
860 --enable-memcheck enable leak testing code (off by default)
862 Some influential environment variables:
863 CXX C++ compiler command
864 CXXFLAGS C++ compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXXCPP C++ preprocessor
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 cd $ac_popdir
930 done
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935 cat <<\_ACEOF
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942 exit 0
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
952 $ $0 $@
954 _ACEOF
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 _ASUNAME
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
988 } >&5
990 cat >&5 <<_ACEOF
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
997 _ACEOF
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1012 for ac_arg
1014 case $ac_arg in
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 continue ;;
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 esac
1022 case $ac_pass in
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1028 else
1029 case $ac_arg in
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 esac
1038 -* ) ac_must_keep_next=true ;;
1039 esac
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1043 ac_sep=" "
1045 esac
1046 done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1059 echo
1061 cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066 echo
1067 # The following way of writing the cache mishandles newlines in values,
1069 (set) 2>&1 |
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 *ac_space=\ *)
1072 sed -n \
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 sed -n \
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 esac;
1082 echo
1084 cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089 echo
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1094 done | sort
1095 echo
1097 if test -n "$ac_subst_files"; then
1098 cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1112 if test -s confdefs.h; then
1113 cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118 echo
1119 sed "/^$/d" confdefs.h | sort
1120 echo
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1125 } >&5
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 exit $exit_status
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 else
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1181 . "$ac_site_file"
1183 done
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191 case $cache_file in
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1194 esac
1196 else
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199 >$cache_file
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1212 set,)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,set)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,);;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1230 fi;;
1231 esac
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1234 case $ac_new_val in
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1238 esac
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 esac
1244 done
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278 ac_aux_dir=
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280 if test -f $ac_dir/install-sh; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/install-sh -c"
1283 break
1284 elif test -f $ac_dir/install.sh; then
1285 ac_aux_dir=$ac_dir
1286 ac_install_sh="$ac_aux_dir/install.sh -c"
1287 break
1288 elif test -f $ac_dir/shtool; then
1289 ac_aux_dir=$ac_dir
1290 ac_install_sh="$ac_aux_dir/shtool install -c"
1291 break
1293 done
1294 if test -z "$ac_aux_dir"; then
1295 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1296 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1297 { (exit 1); exit 1; }; }
1299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1301 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1305 subdirs="$subdirs plugins"
1308 ac_ext=cc
1309 ac_cpp='$CXXCPP $CPPFLAGS'
1310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1313 if test -n "$ac_tool_prefix"; then
1314 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1318 echo "$as_me:$LINENO: checking for $ac_word" >&5
1319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320 if test "${ac_cv_prog_CXX+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323 if test -n "$CXX"; then
1324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1325 else
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1329 IFS=$as_save_IFS
1330 test -z "$as_dir" && as_dir=.
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335 break 2
1337 done
1338 done
1342 CXX=$ac_cv_prog_CXX
1343 if test -n "$CXX"; then
1344 echo "$as_me:$LINENO: result: $CXX" >&5
1345 echo "${ECHO_T}$CXX" >&6
1346 else
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1351 test -n "$CXX" && break
1352 done
1354 if test -z "$CXX"; then
1355 ac_ct_CXX=$CXX
1356 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1358 # Extract the first word of "$ac_prog", so it can be a program name with args.
1359 set dummy $ac_prog; ac_word=$2
1360 echo "$as_me:$LINENO: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 if test -n "$ac_ct_CXX"; then
1366 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1367 else
1368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 for as_dir in $PATH
1371 IFS=$as_save_IFS
1372 test -z "$as_dir" && as_dir=.
1373 for ac_exec_ext in '' $ac_executable_extensions; do
1374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375 ac_cv_prog_ac_ct_CXX="$ac_prog"
1376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377 break 2
1379 done
1380 done
1384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1385 if test -n "$ac_ct_CXX"; then
1386 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1387 echo "${ECHO_T}$ac_ct_CXX" >&6
1388 else
1389 echo "$as_me:$LINENO: result: no" >&5
1390 echo "${ECHO_T}no" >&6
1393 test -n "$ac_ct_CXX" && break
1394 done
1395 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1397 CXX=$ac_ct_CXX
1401 # Provide some information about the compiler.
1402 echo "$as_me:$LINENO:" \
1403 "checking for C++ compiler version" >&5
1404 ac_compiler=`set X $ac_compile; echo $2`
1405 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1406 (eval $ac_compiler --version </dev/null >&5) 2>&5
1407 ac_status=$?
1408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1409 (exit $ac_status); }
1410 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1411 (eval $ac_compiler -v </dev/null >&5) 2>&5
1412 ac_status=$?
1413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1414 (exit $ac_status); }
1415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1416 (eval $ac_compiler -V </dev/null >&5) 2>&5
1417 ac_status=$?
1418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1419 (exit $ac_status); }
1421 cat >conftest.$ac_ext <<_ACEOF
1422 #line $LINENO "configure"
1423 /* confdefs.h. */
1424 _ACEOF
1425 cat confdefs.h >>conftest.$ac_ext
1426 cat >>conftest.$ac_ext <<_ACEOF
1427 /* end confdefs.h. */
1430 main ()
1434 return 0;
1436 _ACEOF
1437 ac_clean_files_save=$ac_clean_files
1438 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1439 # Try to create an executable without -o first, disregard a.out.
1440 # It will help us diagnose broken compilers, and finding out an intuition
1441 # of exeext.
1442 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1443 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1444 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1445 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1446 (eval $ac_link_default) 2>&5
1447 ac_status=$?
1448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1449 (exit $ac_status); }; then
1450 # Find the output, starting from the most likely. This scheme is
1451 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1452 # resort.
1454 # Be careful to initialize this variable, since it used to be cached.
1455 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1456 ac_cv_exeext=
1457 # b.out is created by i960 compilers.
1458 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1460 test -f "$ac_file" || continue
1461 case $ac_file in
1462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1464 conftest.$ac_ext )
1465 # This is the source file.
1467 [ab].out )
1468 # We found the default executable, but exeext='' is most
1469 # certainly right.
1470 break;;
1471 *.* )
1472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1473 # FIXME: I believe we export ac_cv_exeext for Libtool,
1474 # but it would be cool to find out if it's true. Does anybody
1475 # maintain Libtool? --akim.
1476 export ac_cv_exeext
1477 break;;
1479 break;;
1480 esac
1481 done
1482 else
1483 echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1486 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1487 See \`config.log' for more details." >&5
1488 echo "$as_me: error: C++ compiler cannot create executables
1489 See \`config.log' for more details." >&2;}
1490 { (exit 77); exit 77; }; }
1493 ac_exeext=$ac_cv_exeext
1494 echo "$as_me:$LINENO: result: $ac_file" >&5
1495 echo "${ECHO_T}$ac_file" >&6
1497 # Check the compiler produces executables we can run. If not, either
1498 # the compiler is broken, or we cross compile.
1499 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1500 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1501 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1502 # If not cross compiling, check that we can run a simple program.
1503 if test "$cross_compiling" != yes; then
1504 if { ac_try='./$ac_file'
1505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1506 (eval $ac_try) 2>&5
1507 ac_status=$?
1508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1509 (exit $ac_status); }; }; then
1510 cross_compiling=no
1511 else
1512 if test "$cross_compiling" = maybe; then
1513 cross_compiling=yes
1514 else
1515 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1516 If you meant to cross compile, use \`--host'.
1517 See \`config.log' for more details." >&5
1518 echo "$as_me: error: cannot run C++ compiled programs.
1519 If you meant to cross compile, use \`--host'.
1520 See \`config.log' for more details." >&2;}
1521 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: result: yes" >&5
1526 echo "${ECHO_T}yes" >&6
1528 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1529 ac_clean_files=$ac_clean_files_save
1530 # Check the compiler produces executables we can run. If not, either
1531 # the compiler is broken, or we cross compile.
1532 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1533 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1534 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1535 echo "${ECHO_T}$cross_compiling" >&6
1537 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1538 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1540 (eval $ac_link) 2>&5
1541 ac_status=$?
1542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1543 (exit $ac_status); }; then
1544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1546 # work properly (i.e., refer to `conftest.exe'), while it won't with
1547 # `rm'.
1548 for ac_file in conftest.exe conftest conftest.*; do
1549 test -f "$ac_file" || continue
1550 case $ac_file in
1551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1553 export ac_cv_exeext
1554 break;;
1555 * ) break;;
1556 esac
1557 done
1558 else
1559 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1560 See \`config.log' for more details." >&5
1561 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1562 See \`config.log' for more details." >&2;}
1563 { (exit 1); exit 1; }; }
1566 rm -f conftest$ac_cv_exeext
1567 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1568 echo "${ECHO_T}$ac_cv_exeext" >&6
1570 rm -f conftest.$ac_ext
1571 EXEEXT=$ac_cv_exeext
1572 ac_exeext=$EXEEXT
1573 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1574 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1575 if test "${ac_cv_objext+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 cat >conftest.$ac_ext <<_ACEOF
1579 #line $LINENO "configure"
1580 /* confdefs.h. */
1581 _ACEOF
1582 cat confdefs.h >>conftest.$ac_ext
1583 cat >>conftest.$ac_ext <<_ACEOF
1584 /* end confdefs.h. */
1587 main ()
1591 return 0;
1593 _ACEOF
1594 rm -f conftest.o conftest.obj
1595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1596 (eval $ac_compile) 2>&5
1597 ac_status=$?
1598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1599 (exit $ac_status); }; then
1600 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1601 case $ac_file in
1602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1604 break;;
1605 esac
1606 done
1607 else
1608 echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1612 See \`config.log' for more details." >&5
1613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1614 See \`config.log' for more details." >&2;}
1615 { (exit 1); exit 1; }; }
1618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1620 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1621 echo "${ECHO_T}$ac_cv_objext" >&6
1622 OBJEXT=$ac_cv_objext
1623 ac_objext=$OBJEXT
1624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 cat >conftest.$ac_ext <<_ACEOF
1630 #line $LINENO "configure"
1631 /* confdefs.h. */
1632 _ACEOF
1633 cat confdefs.h >>conftest.$ac_ext
1634 cat >>conftest.$ac_ext <<_ACEOF
1635 /* end confdefs.h. */
1638 main ()
1640 #ifndef __GNUC__
1641 choke me
1642 #endif
1645 return 0;
1647 _ACEOF
1648 rm -f conftest.$ac_objext
1649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1650 (eval $ac_compile) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); } &&
1654 { ac_try='test -s conftest.$ac_objext'
1655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1656 (eval $ac_try) 2>&5
1657 ac_status=$?
1658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659 (exit $ac_status); }; }; then
1660 ac_compiler_gnu=yes
1661 else
1662 echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_compiler_gnu=no
1667 rm -f conftest.$ac_objext conftest.$ac_ext
1668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1671 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1672 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1673 GXX=`test $ac_compiler_gnu = yes && echo yes`
1674 ac_test_CXXFLAGS=${CXXFLAGS+set}
1675 ac_save_CXXFLAGS=$CXXFLAGS
1676 CXXFLAGS="-g"
1677 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1678 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1679 if test "${ac_cv_prog_cxx_g+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 cat >conftest.$ac_ext <<_ACEOF
1683 #line $LINENO "configure"
1684 /* confdefs.h. */
1685 _ACEOF
1686 cat confdefs.h >>conftest.$ac_ext
1687 cat >>conftest.$ac_ext <<_ACEOF
1688 /* end confdefs.h. */
1691 main ()
1695 return 0;
1697 _ACEOF
1698 rm -f conftest.$ac_objext
1699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1700 (eval $ac_compile) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); } &&
1704 { ac_try='test -s conftest.$ac_objext'
1705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706 (eval $ac_try) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }; }; then
1710 ac_cv_prog_cxx_g=yes
1711 else
1712 echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_cv_prog_cxx_g=no
1717 rm -f conftest.$ac_objext conftest.$ac_ext
1719 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1720 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1721 if test "$ac_test_CXXFLAGS" = set; then
1722 CXXFLAGS=$ac_save_CXXFLAGS
1723 elif test $ac_cv_prog_cxx_g = yes; then
1724 if test "$GXX" = yes; then
1725 CXXFLAGS="-g -O2"
1726 else
1727 CXXFLAGS="-g"
1729 else
1730 if test "$GXX" = yes; then
1731 CXXFLAGS="-O2"
1732 else
1733 CXXFLAGS=
1736 for ac_declaration in \
1738 '#include <stdlib.h>' \
1739 'extern "C" void std::exit (int) throw (); using std::exit;' \
1740 'extern "C" void std::exit (int); using std::exit;' \
1741 'extern "C" void exit (int) throw ();' \
1742 'extern "C" void exit (int);' \
1743 'void exit (int);'
1745 cat >conftest.$ac_ext <<_ACEOF
1746 #line $LINENO "configure"
1747 /* confdefs.h. */
1748 _ACEOF
1749 cat confdefs.h >>conftest.$ac_ext
1750 cat >>conftest.$ac_ext <<_ACEOF
1751 /* end confdefs.h. */
1752 #include <stdlib.h>
1753 $ac_declaration
1755 main ()
1757 exit (42);
1759 return 0;
1761 _ACEOF
1762 rm -f conftest.$ac_objext
1763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1764 (eval $ac_compile) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); } &&
1768 { ac_try='test -s conftest.$ac_objext'
1769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 (eval $ac_try) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1775 else
1776 echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 continue
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line $LINENO "configure"
1784 /* confdefs.h. */
1785 _ACEOF
1786 cat confdefs.h >>conftest.$ac_ext
1787 cat >>conftest.$ac_ext <<_ACEOF
1788 /* end confdefs.h. */
1789 $ac_declaration
1791 main ()
1793 exit (42);
1795 return 0;
1797 _ACEOF
1798 rm -f conftest.$ac_objext
1799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1800 (eval $ac_compile) 2>&5
1801 ac_status=$?
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); } &&
1804 { ac_try='test -s conftest.$ac_objext'
1805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1806 (eval $ac_try) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; }; then
1810 break
1811 else
1812 echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1816 rm -f conftest.$ac_objext conftest.$ac_ext
1817 done
1818 rm -f conftest*
1819 if test -n "$ac_declaration"; then
1820 echo '#ifdef __cplusplus' >>confdefs.h
1821 echo $ac_declaration >>confdefs.h
1822 echo '#endif' >>confdefs.h
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 ac_ext=cc
1833 ac_cpp='$CXXCPP $CPPFLAGS'
1834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1840 PWLIBDIR=`pwd`
1844 if test "x$prefix" = "xNONE"; then
1845 INSTALLPREFIX="/usr/local"
1846 else
1847 INSTALLPREFIX="${prefix}"
1853 LIBDIR=${libdir}
1857 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1858 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1859 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1860 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1865 MAJOR_VERSION=$MAJOR_VERSION
1867 MINOR_VERSION=$MINOR_VERSION
1869 BUILD_NUMBER=$BUILD_NUMBER
1872 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1873 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1876 cat >>confdefs.h <<_ACEOF
1877 #define PWLIB_MAJOR $MAJOR_VERSION
1878 _ACEOF
1881 cat >>confdefs.h <<_ACEOF
1882 #define PWLIB_MINOR $MINOR_VERSION
1883 _ACEOF
1886 cat >>confdefs.h <<_ACEOF
1887 #define PWLIB_BUILD $BUILD_NUMBER
1888 _ACEOF
1891 cat >>confdefs.h <<_ACEOF
1892 #define PWLIB_VERSION "$PWLIB_VERSION"
1893 _ACEOF
1897 # Make sure we can run config.sub.
1898 $ac_config_sub sun4 >/dev/null 2>&1 ||
1899 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1900 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1901 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: checking build system type" >&5
1904 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1905 if test "${ac_cv_build+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 ac_cv_build_alias=$build_alias
1909 test -z "$ac_cv_build_alias" &&
1910 ac_cv_build_alias=`$ac_config_guess`
1911 test -z "$ac_cv_build_alias" &&
1912 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1913 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1914 { (exit 1); exit 1; }; }
1915 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1917 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1918 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1922 echo "${ECHO_T}$ac_cv_build" >&6
1923 build=$ac_cv_build
1924 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1929 echo "$as_me:$LINENO: checking host system type" >&5
1930 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1931 if test "${ac_cv_host+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_cv_host_alias=$host_alias
1935 test -z "$ac_cv_host_alias" &&
1936 ac_cv_host_alias=$ac_cv_build_alias
1937 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1938 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1939 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1944 echo "${ECHO_T}$ac_cv_host" >&6
1945 host=$ac_cv_host
1946 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1947 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1948 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1951 echo "$as_me:$LINENO: checking target system type" >&5
1952 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1953 if test "${ac_cv_target+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 ac_cv_target_alias=$target_alias
1957 test "x$ac_cv_target_alias" = "x" &&
1958 ac_cv_target_alias=$ac_cv_host_alias
1959 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1960 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1961 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1965 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1966 echo "${ECHO_T}$ac_cv_target" >&6
1967 target=$ac_cv_target
1968 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1969 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1970 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1973 # The aliases save the names the user supplied, while $host etc.
1974 # will get canonicalized.
1975 test -n "$target_alias" &&
1976 test "$program_prefix$program_suffix$program_transform_name" = \
1977 NONENONEs,x,x, &&
1978 program_prefix=${target_alias}-
1980 TARGETDIR=unix
1981 OSTYPE=
1983 case "$target_os" in
1984 linux*) OSTYPE=linux ;
1985 OSRELEASE="\"`uname -r`\"";
1986 OS_TAG="P_LINUX" ;
1987 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1990 freebsd* ) OSTYPE=FreeBSD ;
1991 OS_TAG="P_FREEBSD" ;
1992 if test "x$OSRELEASE" = "x"; then
1993 OSRELEASE="`sysctl -n kern.osreldate`" ;
1995 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1998 openbsd* ) OSTYPE=OpenBSD ;
1999 OS_TAG="P_OPENBSD" ;
2000 OSRELEASE="`sysctl -n kern.osrevision`" ;
2001 ENDLDLIBS="-lossaudio" ;
2002 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2005 netbsd* ) OSTYPE=NetBSD ;
2006 OS_TAG="P_NETBSD" ;
2007 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2008 ENDLDLIBS="-lossaudio" ;
2009 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2012 solaris* | sunos* ) OSTYPE=solaris ;
2013 OS_TAG="P_SOLARIS" ;
2014 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2015 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2018 darwin* ) OSTYPE=Darwin ;
2019 OS_TAG="P_MACOSX" ;
2020 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2021 SHAREDLIBEXT="dylib";
2022 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2025 beos*) OSTYPE=beos ;
2026 OS_TAG="P_BEOS" ;
2027 OSRELEASE=`uname -r` ;
2028 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2031 * ) OSTYPE="$target_os" ;
2032 OS_TAG="P_UNKNOWN_OS" ;
2033 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2034 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2035 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2037 esac
2039 MACHTYPE=
2041 case "$target_cpu" in
2042 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2045 x86_64) MACHTYPE=x86_64 ;
2046 P_64BIT=1 ;
2047 LIB64=1 ;
2050 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2051 P_64BIT=1 ;
2054 sparc ) MACHTYPE=sparc ;
2057 powerpc ) MACHTYPE=ppc ;
2060 ppc ) MACHTYPE=ppc ;
2063 powerpc64 ) MACHTYPE=ppc64 ;
2064 P_64BIT=1 ;
2065 LIB64=1 ;
2068 ppc64 ) MACHTYPE=ppc64 ;
2069 P_64BIT=1 ;
2070 LIB64=1 ;
2073 ia64) MACHTYPE=ia64 ;
2074 P_64BIT=1 ;
2077 s390x) MACHTYPE=s390x ;
2078 P_64BIT=1 ;
2079 LIB64=1 ;
2082 s390) MACHTYPE=s390 ;
2085 * ) MACHTYPE=$target_cpu ;
2086 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2087 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2088 esac
2090 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2091 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2092 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2093 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2094 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2095 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2097 MACHTYPE=$MACHTYPE
2099 OSTYPE=$OSTYPE
2101 OSRELEASE=$OSRELEASE
2103 TARGETDIR=$TARGETDIR
2106 cat >>confdefs.h <<_ACEOF
2107 #define $OS_TAG $OSRELEASE
2108 _ACEOF
2112 cat >>confdefs.h <<\_ACEOF
2113 #define PHAS_TEMPLATES 1
2114 _ACEOF
2117 if test "x$P_64BIT" != "x" ; then
2119 cat >>confdefs.h <<\_ACEOF
2120 #define P_64BIT 1
2121 _ACEOF
2125 if test ${OSTYPE} != beos ; then
2127 cat >>confdefs.h <<\_ACEOF
2128 #define P_PTHREADS 1
2129 _ACEOF
2134 if test "x${SHAREDLIBEXT}" = "x" ; then
2135 SHAREDLIBEXT="so"
2137 SHAREDLIBEXT=$SHAREDLIBEXT
2140 cat >>confdefs.h <<\_ACEOF
2141 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2142 _ACEOF
2148 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2149 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2150 if test "${ac_cv_c_bigendian+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 # See if sys/param.h defines the BYTE_ORDER macro.
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #line $LINENO "configure"
2156 /* confdefs.h. */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2161 #include <sys/types.h>
2162 #include <sys/param.h>
2165 main ()
2167 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2168 bogus endian macros
2169 #endif
2172 return 0;
2174 _ACEOF
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 # It does; now see whether it defined to BIG_ENDIAN or not.
2188 cat >conftest.$ac_ext <<_ACEOF
2189 #line $LINENO "configure"
2190 /* confdefs.h. */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2195 #include <sys/types.h>
2196 #include <sys/param.h>
2199 main ()
2201 #if BYTE_ORDER != BIG_ENDIAN
2202 not big endian
2203 #endif
2206 return 0;
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_c_bigendian=yes
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2226 ac_cv_c_bigendian=no
2228 rm -f conftest.$ac_objext conftest.$ac_ext
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 # It does not; compile a test program.
2234 if test "$cross_compiling" = yes; then
2235 # try to guess the endianness by grepping values into an object file
2236 ac_cv_c_bigendian=unknown
2237 cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2245 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2246 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2247 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2248 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2249 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2251 main ()
2253 _ascii (); _ebcdic ();
2255 return 0;
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2271 ac_cv_c_bigendian=yes
2273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2274 if test "$ac_cv_c_bigendian" = unknown; then
2275 ac_cv_c_bigendian=no
2276 else
2277 # finding both strings is unlikely to happen, but who knows?
2278 ac_cv_c_bigendian=unknown
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 else
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h. */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2296 main ()
2298 /* Are we little or big endian? From Harbison&Steele. */
2299 union
2301 long l;
2302 char c[sizeof (long)];
2303 } u;
2304 u.l = 1;
2305 exit (u.c[sizeof (long) - 1] == 1);
2307 _ACEOF
2308 rm -f conftest$ac_exeext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310 (eval $ac_link) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; }; then
2319 ac_cv_c_bigendian=no
2320 else
2321 echo "$as_me: program exited with status $ac_status" >&5
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2325 ( exit $ac_status )
2326 ac_cv_c_bigendian=yes
2328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2334 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2335 case $ac_cv_c_bigendian in
2336 yes)
2338 cat >>confdefs.h <<\_ACEOF
2339 #define WORDS_BIGENDIAN 1
2340 _ACEOF
2345 { { echo "$as_me:$LINENO: error: unknown endianness
2346 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2347 echo "$as_me: error: unknown endianness
2348 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2349 { (exit 1); exit 1; }; } ;;
2350 esac
2352 if test ${ac_cv_c_bigendian} = yes ; then
2353 PBYTE_ORDER=PBIG_ENDIAN
2354 else
2355 PBYTE_ORDER=PLITTLE_ENDIAN
2359 cat >>confdefs.h <<_ACEOF
2360 #define PBYTE_ORDER $PBYTE_ORDER
2361 _ACEOF
2364 ac_ext=cc
2365 ac_cpp='$CXXCPP $CPPFLAGS'
2366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2371 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2372 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2374 int main(int ac,char **av) { return 0; }
2375 _ACEOF
2376 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
2377 if test $? = 0 ; then
2378 echo "$as_me:$LINENO: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6
2380 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
2381 else
2382 echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2387 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2389 int main(int ac,char **av) { return 0; }
2390 _ACEOF
2391 $STDCXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
2392 if test $? = 0 ; then
2393 echo "$as_me:$LINENO: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2395 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
2396 else
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2401 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2402 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2403 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2404 # if test $? = 0 ; then
2405 # AC_MSG_RESULT(yes)
2406 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2407 # else
2408 # AC_MSG_RESULT(no)
2409 # fi
2411 echo "$as_me:$LINENO: checking if compiler uses RTTI by default" >&5
2412 echo $ECHO_N "checking if compiler uses RTTI by default... $ECHO_C" >&6
2413 cat >conftest.$ac_ext <<_ACEOF
2415 #include <typeinfo>
2416 int main(int ac,char **av)
2418 class A
2420 public:
2421 virtual void fred() { }
2423 class B : public A
2425 public:
2426 void fred() { }
2428 B t;
2429 A * p = dynamic_cast<A *>(&t);
2430 return 0;
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 DEFAULT_RTTI=1
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 DEFAULT_RTTI=0
2453 rm -f conftest.$ac_objext conftest.$ac_ext
2454 if test "$DEFAULT_RTTI" = "1" ; then
2455 echo "$as_me:$LINENO: result: yes" >&5
2456 echo "${ECHO_T}yes" >&6
2457 else
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2460 STDCXXFLAGS="$STDCCFLAGS -rtti"
2463 GCSECTIONS=0
2466 if test 0 = 1 ; then
2469 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2470 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2471 cat >conftest.$ac_ext <<_ACEOF
2472 int main(int ac,char **av) { return 0; }
2473 _ACEOF
2474 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2475 if test $? = 0 ; then
2476 echo "$as_me:$LINENO: result: yes" >&5
2477 echo "${ECHO_T}yes" >&6
2478 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2479 GCSECTIONS=1
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2487 if test $GCSECTIONS = 1; then
2488 if test "${OSTYPE}" != "Darwin" ; then
2489 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2495 ac_ext=cc
2496 ac_cpp='$CXXCPP $CPPFLAGS'
2497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2503 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
2504 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
2505 if test "${ac_cv_c_long_double+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 #include <float.h>
2516 long double foo = 0.0;
2518 main ()
2520 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
2521 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
2522 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
2523 test_array [0] = 0
2526 return 0;
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 ac_cv_c_long_double=yes
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2546 ac_cv_c_long_double=no
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2550 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
2551 echo "${ECHO_T}$ac_cv_c_long_double" >&6
2552 if test $ac_cv_c_long_double = yes; then
2554 cat >>confdefs.h <<\_ACEOF
2555 #define HAVE_LONG_DOUBLE 1
2556 _ACEOF
2560 if test $ac_cv_c_long_double != yes ; then
2562 cat >>confdefs.h <<\_ACEOF
2563 #define PNO_LONG_DOUBLE
2564 _ACEOF
2568 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
2569 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2577 #define _POSIX_PTHREAD_SEMANTICS
2578 #include <dirent.h>
2580 main ()
2582 DIR *s; struct dirent * e; readdir_r(s, e);
2584 return 0;
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 P_HAS_POSIX_READDIR_R=2
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 P_HAS_POSIX_READDIR_R=0
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
2608 echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2610 else
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2613 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
2614 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 #include <dirent.h>
2624 main ()
2626 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
2628 return 0;
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 P_HAS_POSIX_READDIR_R=3
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 P_HAS_POSIX_READDIR_R=0
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
2652 echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 cat >>confdefs.h <<_ACEOF
2660 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
2661 _ACEOF
2665 P_HAS_STL_STREAMS=0
2666 echo "$as_me:$LINENO: checking if using STL streams" >&5
2667 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <iostream>
2677 main ()
2679 int v = (int)std::ios_base::seekdir();
2681 return 0;
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 P_HAS_STL_STREAMS=1
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f conftest.$ac_objext conftest.$ac_ext
2703 if test ${P_HAS_STL_STREAMS} = 1 ; then
2704 echo "$as_me:$LINENO: result: yes" >&5
2705 echo "${ECHO_T}yes" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2710 cat >>confdefs.h <<_ACEOF
2711 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
2712 _ACEOF
2716 P_HAS_ATOMIC_INT=0
2717 P_NEEDS_GNU_CXX_NAMESPACE=0
2718 echo "$as_me:$LINENO: checking if atomic integer available" >&5
2719 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <bits/atomicity.h>
2729 main ()
2731 _Atomic_word val;
2733 return 0;
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2748 P_HAS_ATOMIC_INT=1
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.$ac_objext conftest.$ac_ext
2755 if test ${P_HAS_ATOMIC_INT} = 1 ; then
2756 echo "$as_me:$LINENO: result: yes" >&5
2757 echo "${ECHO_T}yes" >&6
2758 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
2759 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
2760 cat >conftest.$ac_ext <<_ACEOF
2761 #line $LINENO "configure"
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767 #include <bits/atomicity.h>
2769 main ()
2771 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 P_NEEDS_GNU_CXX_NAMESPACE=1
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.$ac_objext conftest.$ac_ext
2795 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
2796 echo "$as_me:$LINENO: result: yes" >&5
2797 echo "${ECHO_T}yes" >&6
2798 else
2799 echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6
2802 else
2803 echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2806 cat >>confdefs.h <<_ACEOF
2807 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
2808 _ACEOF
2810 cat >>confdefs.h <<_ACEOF
2811 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
2812 _ACEOF
2817 if test ${OSTYPE} != Darwin ; then
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #include <semaphore.h>
2827 main ()
2829 sem_t *s; sem_init(s, 0, 0);
2831 return 0;
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 P_HAS_SEMAPHORES=1
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.$ac_objext conftest.$ac_ext
2853 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
2854 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
2855 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
2856 cat >>confdefs.h <<\_ACEOF
2857 #define P_HAS_SEMAPHORES 1
2858 _ACEOF
2860 echo "$as_me:$LINENO: result: yes" >&5
2861 echo "${ECHO_T}yes" >&6
2862 else
2863 echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6
2865 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
2866 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
2867 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
2868 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
2869 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
2870 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
2871 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
2872 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
2879 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2880 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2881 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 ac_check_lib_save_LIBS=$LIBS
2885 LIBS="-lpthread $LIBS"
2886 cat >conftest.$ac_ext <<_ACEOF
2887 #line $LINENO "configure"
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2894 /* Override any gcc2 internal prototype to avoid an error. */
2895 #ifdef __cplusplus
2896 extern "C"
2897 #endif
2898 /* We use char because int might match the return type of a gcc2
2899 builtin and then its argument prototype would still apply. */
2900 char pthread_create ();
2902 main ()
2904 pthread_create ();
2906 return 0;
2908 _ACEOF
2909 rm -f conftest.$ac_objext conftest$ac_exeext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911 (eval $ac_link) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -s conftest$ac_exeext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 ac_cv_lib_pthread_pthread_create=yes
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 ac_cv_lib_pthread_pthread_create=no
2928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2929 LIBS=$ac_check_lib_save_LIBS
2931 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2932 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2933 if test $ac_cv_lib_pthread_pthread_create = yes; then
2934 HAS_PTHREADS=yes
2935 else
2936 HAS_PTHREADS=no
2939 if test ${HAS_PTHREADS} = yes ; then
2940 ENDLDLIBS="$ENDLDLIBS -lpthread"
2941 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
2942 else
2943 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2944 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2945 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 ac_check_lib_save_LIBS=$LIBS
2949 LIBS="-lc_r $LIBS"
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2958 /* Override any gcc2 internal prototype to avoid an error. */
2959 #ifdef __cplusplus
2960 extern "C"
2961 #endif
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2964 char pthread_create ();
2966 main ()
2968 pthread_create ();
2970 return 0;
2972 _ACEOF
2973 rm -f conftest.$ac_objext conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975 (eval $ac_link) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -s conftest$ac_exeext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 ac_cv_lib_c_r_pthread_create=yes
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_cv_lib_c_r_pthread_create=no
2992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2993 LIBS=$ac_check_lib_save_LIBS
2995 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2996 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2997 if test $ac_cv_lib_c_r_pthread_create = yes; then
2998 HAS_PTHREADS=yes
2999 else
3000 HAS_PTHREADS=no
3003 if test ${HAS_PTHREADS} = yes ; then
3004 ENDLDLIBS="$ENDLDLIBS -pthread"
3005 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
3010 if test ${HAS_PTHREADS} != yes ; then
3011 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
3012 echo "$as_me: error: must have pthreads!" >&2;}
3013 { (exit 1); exit 1; }; }
3017 if test ${HAS_PTHREADS} = yes ; then
3018 echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
3019 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6
3020 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 ac_check_lib_save_LIBS=$LIBS
3024 LIBS="-lpthread $LIBS"
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 #ifdef __cplusplus
3035 extern "C"
3036 #endif
3037 /* We use char because int might match the return type of a gcc2
3038 builtin and then its argument prototype would still apply. */
3039 char pthread_mutex_timedlock ();
3041 main ()
3043 pthread_mutex_timedlock ();
3045 return 0;
3047 _ACEOF
3048 rm -f conftest.$ac_objext conftest$ac_exeext
3049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3050 (eval $ac_link) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -s conftest$ac_exeext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 ac_cv_lib_pthread_pthread_mutex_timedlock=no
3067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3068 LIBS=$ac_check_lib_save_LIBS
3070 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
3071 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6
3072 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
3073 HAS_PTHREADS_XPG6=yes
3074 else
3075 HAS_PTHREADS_XPG6=no
3078 if test ${HAS_PTHREADS_XPG6} = yes ; then
3080 cat >>confdefs.h <<\_ACEOF
3081 #define P_PTHREADS_XPG6 1
3082 _ACEOF
3086 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
3087 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
3088 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 ac_check_lib_save_LIBS=$LIBS
3092 LIBS="-lpthread $LIBS"
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3101 /* Override any gcc2 internal prototype to avoid an error. */
3102 #ifdef __cplusplus
3103 extern "C"
3104 #endif
3105 /* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3107 char sem_timedwait ();
3109 main ()
3111 sem_timedwait ();
3113 return 0;
3115 _ACEOF
3116 rm -f conftest.$ac_objext conftest$ac_exeext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3118 (eval $ac_link) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -s conftest$ac_exeext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_cv_lib_pthread_sem_timedwait=yes
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 ac_cv_lib_pthread_sem_timedwait=no
3135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3136 LIBS=$ac_check_lib_save_LIBS
3138 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
3139 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
3140 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
3141 HAS_SEMAPHORES_XPG6=yes
3142 else
3143 HAS_SEMAPHORES_XPG6=no
3146 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3147 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
3148 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #include <semaphore.h>
3158 main ()
3160 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 HAS_SEMAPHORES_XPG6=yes
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 HAS_SEMAPHORES_XPG6=no
3184 rm -f conftest.$ac_objext conftest.$ac_ext
3185 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
3187 cat >>confdefs.h <<\_ACEOF
3188 #define P_HAS_SEMAPHORES_XPG6 1
3189 _ACEOF
3191 echo "$as_me:$LINENO: result: yes" >&5
3192 echo "${ECHO_T}yes" >&6
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3200 P_HAS_RECURSIVE_MUTEX=0
3201 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
3202 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
3203 cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210 #include <pthread.h>
3212 main ()
3214 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 P_HAS_RECURSIVE_MUTEX=1
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3237 rm -f conftest.$ac_objext conftest.$ac_ext
3238 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240 echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3245 cat >>confdefs.h <<_ACEOF
3246 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
3247 _ACEOF
3252 ac_ext=cc
3253 ac_cpp='$CXXCPP $CPPFLAGS'
3254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3257 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3258 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3259 if test -z "$CXXCPP"; then
3260 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 # Double quotes because CXXCPP needs to be expanded
3264 for CXXCPP in "$CXX -E" "/lib/cpp"
3266 ac_preproc_ok=false
3267 for ac_cxx_preproc_warn_flag in '' yes
3269 # Use a header file that comes with gcc, so configuring glibc
3270 # with a fresh cross-compiler works.
3271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3272 # <limits.h> exists even on freestanding compilers.
3273 # On the NeXT, cc -E runs the code through the compiler's parser,
3274 # not just through cpp. "Syntax error" is here to catch this case.
3275 cat >conftest.$ac_ext <<_ACEOF
3276 #line $LINENO "configure"
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #ifdef __STDC__
3283 # include <limits.h>
3284 #else
3285 # include <assert.h>
3286 #endif
3287 Syntax error
3288 _ACEOF
3289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_cxx_preproc_warn_flag
3299 else
3300 ac_cpp_err=
3302 else
3303 ac_cpp_err=yes
3305 if test -z "$ac_cpp_err"; then
3307 else
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 # Broken: fails on valid input.
3312 continue
3314 rm -f conftest.err conftest.$ac_ext
3316 # OK, works on sane cases. Now check whether non-existent headers
3317 # can be detected and how.
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #include <ac_nonexistent.h>
3326 _ACEOF
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_cxx_preproc_warn_flag
3337 else
3338 ac_cpp_err=
3340 else
3341 ac_cpp_err=yes
3343 if test -z "$ac_cpp_err"; then
3344 # Broken: success on invalid input.
3345 continue
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 # Passes both tests.
3351 ac_preproc_ok=:
3352 break
3354 rm -f conftest.err conftest.$ac_ext
3356 done
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3360 break
3363 done
3364 ac_cv_prog_CXXCPP=$CXXCPP
3367 CXXCPP=$ac_cv_prog_CXXCPP
3368 else
3369 ac_cv_prog_CXXCPP=$CXXCPP
3371 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3372 echo "${ECHO_T}$CXXCPP" >&6
3373 ac_preproc_ok=false
3374 for ac_cxx_preproc_warn_flag in '' yes
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #ifdef __STDC__
3390 # include <limits.h>
3391 #else
3392 # include <assert.h>
3393 #endif
3394 Syntax error
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_cxx_preproc_warn_flag
3406 else
3407 ac_cpp_err=
3409 else
3410 ac_cpp_err=yes
3412 if test -z "$ac_cpp_err"; then
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3419 continue
3421 rm -f conftest.err conftest.$ac_ext
3423 # OK, works on sane cases. Now check whether non-existent headers
3424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3426 #line $LINENO "configure"
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_cxx_preproc_warn_flag
3444 else
3445 ac_cpp_err=
3447 else
3448 ac_cpp_err=yes
3450 if test -z "$ac_cpp_err"; then
3451 # Broken: success on invalid input.
3452 continue
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 # Passes both tests.
3458 ac_preproc_ok=:
3459 break
3461 rm -f conftest.err conftest.$ac_ext
3463 done
3464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465 rm -f conftest.err conftest.$ac_ext
3466 if $ac_preproc_ok; then
3468 else
3469 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3470 See \`config.log' for more details." >&5
3471 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }
3476 ac_ext=cc
3477 ac_cpp='$CXXCPP $CPPFLAGS'
3478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3483 echo "$as_me:$LINENO: checking for egrep" >&5
3484 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3485 if test "${ac_cv_prog_egrep+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3489 then ac_cv_prog_egrep='grep -E'
3490 else ac_cv_prog_egrep='egrep'
3493 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3494 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3495 EGREP=$ac_cv_prog_egrep
3498 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3499 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3500 if test "${ac_cv_header_stdc+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <stdlib.h>
3511 #include <stdarg.h>
3512 #include <string.h>
3513 #include <float.h>
3516 main ()
3520 return 0;
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 ac_cv_header_stdc=yes
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_cv_header_stdc=no
3542 rm -f conftest.$ac_objext conftest.$ac_ext
3544 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <string.h>
3555 _ACEOF
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "memchr" >/dev/null 2>&1; then
3559 else
3560 ac_cv_header_stdc=no
3562 rm -f conftest*
3566 if test $ac_cv_header_stdc = yes; then
3567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3568 cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #include <stdlib.h>
3577 _ACEOF
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "free" >/dev/null 2>&1; then
3581 else
3582 ac_cv_header_stdc=no
3584 rm -f conftest*
3588 if test $ac_cv_header_stdc = yes; then
3589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590 if test "$cross_compiling" = yes; then
3592 else
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ctype.h>
3601 #if ((' ' & 0x0FF) == 0x020)
3602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3604 #else
3605 # define ISLOWER(c) \
3606 (('a' <= (c) && (c) <= 'i') \
3607 || ('j' <= (c) && (c) <= 'r') \
3608 || ('s' <= (c) && (c) <= 'z'))
3609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3610 #endif
3612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614 main ()
3616 int i;
3617 for (i = 0; i < 256; i++)
3618 if (XOR (islower (i), ISLOWER (i))
3619 || toupper (i) != TOUPPER (i))
3620 exit(2);
3621 exit (0);
3623 _ACEOF
3624 rm -f conftest$ac_exeext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626 (eval $ac_link) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3636 else
3637 echo "$as_me: program exited with status $ac_status" >&5
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 ( exit $ac_status )
3642 ac_cv_header_stdc=no
3644 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3648 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3649 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3650 if test $ac_cv_header_stdc = yes; then
3652 cat >>confdefs.h <<\_ACEOF
3653 #define STDC_HEADERS 1
3654 _ACEOF
3658 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3668 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3669 inttypes.h stdint.h unistd.h
3671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3672 echo "$as_me:$LINENO: checking for $ac_header" >&5
3673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3684 $ac_includes_default
3686 #include <$ac_header>
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 eval "$as_ac_Header=yes"
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 eval "$as_ac_Header=no"
3707 rm -f conftest.$ac_objext conftest.$ac_ext
3709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3712 cat >>confdefs.h <<_ACEOF
3713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3714 _ACEOF
3718 done
3722 for ac_header in regex.h
3724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3726 echo "$as_me:$LINENO: checking for $ac_header" >&5
3727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733 else
3734 # Is the header compilable?
3735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3737 cat >conftest.$ac_ext <<_ACEOF
3738 #line $LINENO "configure"
3739 /* confdefs.h. */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3744 $ac_includes_default
3745 #include <$ac_header>
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_header_compiler=yes
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_header_compiler=no
3766 rm -f conftest.$ac_objext conftest.$ac_ext
3767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3768 echo "${ECHO_T}$ac_header_compiler" >&6
3770 # Is the header present?
3771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3774 #line $LINENO "configure"
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 #include <$ac_header>
3781 _ACEOF
3782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_cxx_preproc_warn_flag
3792 else
3793 ac_cpp_err=
3795 else
3796 ac_cpp_err=yes
3798 if test -z "$ac_cpp_err"; then
3799 ac_header_preproc=yes
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 ac_header_preproc=no
3806 rm -f conftest.err conftest.$ac_ext
3807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3808 echo "${ECHO_T}$ac_header_preproc" >&6
3810 # So? What about this header?
3811 case $ac_header_compiler:$ac_header_preproc in
3812 yes:no )
3813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3818 cat <<\_ASBOX
3819 ## ------------------------------------ ##
3820 ## Report this to bug-autoconf@gnu.org. ##
3821 ## ------------------------------------ ##
3822 _ASBOX
3824 sed "s/^/$as_me: WARNING: /" >&2
3826 no:yes )
3827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3834 cat <<\_ASBOX
3835 ## ------------------------------------ ##
3836 ## Report this to bug-autoconf@gnu.org. ##
3837 ## ------------------------------------ ##
3838 _ASBOX
3840 sed "s/^/$as_me: WARNING: /" >&2
3842 esac
3843 echo "$as_me:$LINENO: checking for $ac_header" >&5
3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 eval "$as_ac_Header=$ac_header_preproc"
3850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3855 cat >>confdefs.h <<_ACEOF
3856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3857 _ACEOF
3858 HAS_REGEX=yes
3861 done
3864 # Check whether --enable-internalregex or --disable-internalregex was given.
3865 if test "${enable_internalregex+set}" = set; then
3866 enableval="$enable_internalregex"
3867 internalregex=$enableval
3869 if test "$internalregex" = "yes" ; then
3870 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
3871 echo "$as_me: Forcing use of internal regex library" >&6;}
3872 else
3873 if test "$HAS_REGEX" = "yes" ; then
3874 echo "$as_me:$LINENO: checking for regcomp" >&5
3875 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3876 if test "${ac_cv_func_regcomp+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 cat >conftest.$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 /* System header to define __stub macros and hopefully few prototypes,
3887 which can conflict with char regcomp (); below.
3888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 <limits.h> exists even on freestanding compilers. */
3890 #ifdef __STDC__
3891 # include <limits.h>
3892 #else
3893 # include <assert.h>
3894 #endif
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 #ifdef __cplusplus
3897 extern "C"
3899 #endif
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3902 char regcomp ();
3903 /* The GNU C library defines this for functions which it implements
3904 to always fail with ENOSYS. Some functions are actually named
3905 something starting with __ and the normal name is an alias. */
3906 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3907 choke me
3908 #else
3909 char (*f) () = regcomp;
3910 #endif
3911 #ifdef __cplusplus
3913 #endif
3916 main ()
3918 return f != regcomp;
3920 return 0;
3922 _ACEOF
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_func_regcomp=yes
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 ac_cv_func_regcomp=no
3942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3945 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3946 if test $ac_cv_func_regcomp = yes; then
3947 HAS_REGEX=yes
3950 if test "$HAS_REGEX" = "yes" ; then
3951 HAS_REGEX=1
3954 cat >>confdefs.h <<\_ACEOF
3955 #define P_REGEX 1
3956 _ACEOF
3965 LIBS=""
3966 HAS_LIBDL=no
3967 P_DYNALINK=0
3968 if test ${OSTYPE} = beos ; then
3969 P_DYNALINK=1
3971 cat >>confdefs.h <<\_ACEOF
3972 #define P_DYNALINK 1
3973 _ACEOF
3975 elif test ${OSTYPE} = Darwin ; then
3976 P_DYNALINK=1
3978 cat >>confdefs.h <<\_ACEOF
3979 #define P_DYNALINK 1
3980 _ACEOF
3982 else
3984 for ac_header in dlfcn.h
3986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3988 echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3995 else
3996 # Is the header compilable?
3997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3999 cat >conftest.$ac_ext <<_ACEOF
4000 #line $LINENO "configure"
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4007 #include <$ac_header>
4008 _ACEOF
4009 rm -f conftest.$ac_objext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4011 (eval $ac_compile) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_header_compiler=yes
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 ac_header_compiler=no
4028 rm -f conftest.$ac_objext conftest.$ac_ext
4029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4030 echo "${ECHO_T}$ac_header_compiler" >&6
4032 # Is the header present?
4033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4035 cat >conftest.$ac_ext <<_ACEOF
4036 #line $LINENO "configure"
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 #include <$ac_header>
4043 _ACEOF
4044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null; then
4052 if test -s conftest.err; then
4053 ac_cpp_err=$ac_cxx_preproc_warn_flag
4054 else
4055 ac_cpp_err=
4057 else
4058 ac_cpp_err=yes
4060 if test -z "$ac_cpp_err"; then
4061 ac_header_preproc=yes
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 ac_header_preproc=no
4068 rm -f conftest.err conftest.$ac_ext
4069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4070 echo "${ECHO_T}$ac_header_preproc" >&6
4072 # So? What about this header?
4073 case $ac_header_compiler:$ac_header_preproc in
4074 yes:no )
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4080 cat <<\_ASBOX
4081 ## ------------------------------------ ##
4082 ## Report this to bug-autoconf@gnu.org. ##
4083 ## ------------------------------------ ##
4084 _ASBOX
4086 sed "s/^/$as_me: WARNING: /" >&2
4088 no:yes )
4089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096 cat <<\_ASBOX
4097 ## ------------------------------------ ##
4098 ## Report this to bug-autoconf@gnu.org. ##
4099 ## ------------------------------------ ##
4100 _ASBOX
4102 sed "s/^/$as_me: WARNING: /" >&2
4104 esac
4105 echo "$as_me:$LINENO: checking for $ac_header" >&5
4106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 eval "$as_ac_Header=$ac_header_preproc"
4112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4117 cat >>confdefs.h <<_ACEOF
4118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4119 _ACEOF
4120 HAS_DLFCN=yes
4121 else
4122 HAS_DLFCN=no
4125 done
4127 if test "$HAS_DLFCN" = yes ; then
4128 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4129 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4130 cat >conftest.$ac_ext <<_ACEOF
4131 #line $LINENO "configure"
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <dlfcn.h>
4139 main ()
4141 void * p = dlopen("lib", 0);
4143 return 0;
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 HAS_DLOPEN=yes
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 HAS_DLOPEN=no
4165 rm -f conftest.$ac_objext conftest.$ac_ext
4166 if test "$HAS_DLOPEN" = no ; then
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4169 else
4170 echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6
4172 P_DYNALINK=1
4174 cat >>confdefs.h <<\_ACEOF
4175 #define P_DYNALINK 1
4176 _ACEOF
4178 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4179 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4180 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 ac_check_lib_save_LIBS=$LIBS
4184 LIBS="-ldl $LIBS"
4185 cat >conftest.$ac_ext <<_ACEOF
4186 #line $LINENO "configure"
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 #ifdef __cplusplus
4195 extern "C"
4196 #endif
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4199 char dlopen ();
4201 main ()
4203 dlopen ();
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext conftest$ac_exeext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -s conftest$ac_exeext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_cv_lib_dl_dlopen=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ac_cv_lib_dl_dlopen=no
4227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4228 LIBS=$ac_check_lib_save_LIBS
4230 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4231 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4232 if test $ac_cv_lib_dl_dlopen = yes; then
4233 HAS_LIBDL=yes
4234 else
4235 HAS_LIBDL=no
4242 plugins="no"
4243 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4244 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4245 # Check whether --enable-plugins or --disable-plugins was given.
4246 if test "${enable_plugins+set}" = set; then
4247 enableval="$enable_plugins"
4248 plugins=$enableval
4251 HAS_PLUGINS=0
4252 if test "${plugins}" = "no" ; then
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4256 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4257 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4258 else
4259 echo "$as_me:$LINENO: result: plugins enabled" >&5
4260 echo "${ECHO_T}plugins enabled" >&6
4261 HAS_PLUGINS=1
4263 cat >>confdefs.h <<\_ACEOF
4264 #define P_HAS_PLUGINS 1
4265 _ACEOF
4271 if test "x$LIB64" != "x" ; then
4273 cat >>confdefs.h <<_ACEOF
4274 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
4275 _ACEOF
4277 else
4279 cat >>confdefs.h <<_ACEOF
4280 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4281 _ACEOF
4287 # Check whether --enable-resolver or --disable-resolver was given.
4288 if test "${enable_resolver+set}" = set; then
4289 enableval="$enable_resolver"
4290 resolver=$enableval
4293 if test "$resolver" = "no" ; then
4294 cat >>confdefs.h <<\_ACEOF
4295 #define P_DNS 0
4296 _ACEOF
4298 else
4299 echo "$as_me:$LINENO: checking for res_search" >&5
4300 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4301 if test "${ac_cv_func_res_search+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304 cat >conftest.$ac_ext <<_ACEOF
4305 #line $LINENO "configure"
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 /* System header to define __stub macros and hopefully few prototypes,
4312 which can conflict with char res_search (); below.
4313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4314 <limits.h> exists even on freestanding compilers. */
4315 #ifdef __STDC__
4316 # include <limits.h>
4317 #else
4318 # include <assert.h>
4319 #endif
4320 /* Override any gcc2 internal prototype to avoid an error. */
4321 #ifdef __cplusplus
4322 extern "C"
4324 #endif
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4327 char res_search ();
4328 /* The GNU C library defines this for functions which it implements
4329 to always fail with ENOSYS. Some functions are actually named
4330 something starting with __ and the normal name is an alias. */
4331 #if defined (__stub_res_search) || defined (__stub___res_search)
4332 choke me
4333 #else
4334 char (*f) () = res_search;
4335 #endif
4336 #ifdef __cplusplus
4338 #endif
4341 main ()
4343 return f != res_search;
4345 return 0;
4347 _ACEOF
4348 rm -f conftest.$ac_objext conftest$ac_exeext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350 (eval $ac_link) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_func_res_search=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_func_res_search=no
4367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4369 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4370 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4371 if test $ac_cv_func_res_search = yes; then
4372 HAVE_RESOLVER=1
4375 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4376 RESOLVER_LIBS=""
4377 else
4378 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4379 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4380 LIBS="-lresolv"
4381 cat >conftest.$ac_ext <<_ACEOF
4383 #include <netinet/in.h>
4384 #include <resolv.h>
4385 int main(int argc,char **argv){
4386 res_search (NULL, 0, 0, NULL, 0);
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 HAVE_RESOLVER=1
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4408 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4409 echo "$as_me:$LINENO: result: yes" >&5
4410 echo "${ECHO_T}yes" >&6
4411 RESOLVER_LIBS="-lresolv"
4412 else
4413 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4414 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4415 if test "${ac_cv_search___res_search+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 ac_func_search_save_LIBS=$LIBS
4419 ac_cv_search___res_search=no
4420 cat >conftest.$ac_ext <<_ACEOF
4421 #line $LINENO "configure"
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 #ifdef __cplusplus
4430 extern "C"
4431 #endif
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4434 char __res_search ();
4436 main ()
4438 __res_search ();
4440 return 0;
4442 _ACEOF
4443 rm -f conftest.$ac_objext conftest$ac_exeext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4445 (eval $ac_link) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try='test -s conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_cv_search___res_search="none required"
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4462 if test "$ac_cv_search___res_search" = no; then
4463 for ac_lib in resolv; do
4464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line $LINENO "configure"
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 #ifdef __cplusplus
4475 extern "C"
4476 #endif
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479 char __res_search ();
4481 main ()
4483 __res_search ();
4485 return 0;
4487 _ACEOF
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -s conftest$ac_exeext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_search___res_search="-l$ac_lib"
4501 break
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 done
4510 LIBS=$ac_func_search_save_LIBS
4512 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4513 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4514 if test "$ac_cv_search___res_search" != no; then
4515 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4516 HAVE_RESOLVER=1
4522 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4524 cat >>confdefs.h <<\_ACEOF
4525 #define P_DNS 1
4526 _ACEOF
4533 # Check whether --enable-sasl or --disable-sasl was given.
4534 if test "${enable_sasl+set}" = set; then
4535 enableval="$enable_sasl"
4536 sasl=$enableval
4539 if test "$sasl" = "no" ; then
4540 { echo "$as_me:$LINENO: SASL disabled" >&5
4541 echo "$as_me: SASL disabled" >&6;}
4542 else
4544 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4545 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4546 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 ac_check_lib_save_LIBS=$LIBS
4550 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4551 cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 /* confdefs.h. */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 #ifdef __cplusplus
4561 extern "C"
4562 #endif
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4565 char sasl_version ();
4567 main ()
4569 sasl_version ();
4571 return 0;
4573 _ACEOF
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_cv_lib_sasl2_sasl_version=yes
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ac_cv_lib_sasl2_sasl_version=no
4593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4597 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4598 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4599 HAS_SASL2=1
4600 else
4601 HAS_SASL2=
4604 if test "${HAS_SASL2}x" = "x" ; then
4605 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4606 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4607 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 ac_check_lib_save_LIBS=$LIBS
4611 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 /* Override any gcc2 internal prototype to avoid an error. */
4621 #ifdef __cplusplus
4622 extern "C"
4623 #endif
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char sasl_client_auth ();
4628 main ()
4630 sasl_client_auth ();
4632 return 0;
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -s conftest$ac_exeext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_lib_sasl_sasl_client_auth=yes
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 ac_cv_lib_sasl_sasl_client_auth=no
4654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4655 LIBS=$ac_check_lib_save_LIBS
4657 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4658 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4659 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4660 HAS_SASL=1
4661 else
4662 HAS_SASL=
4667 echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
4668 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #include <sasl.h>
4671 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 HAS_INCLUDE_SASL_H=1
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4691 rm -f conftest.$ac_objext conftest.$ac_ext
4692 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
4693 echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6
4695 SASL_INCLUDED=1
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4699 echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
4700 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6
4701 cat >conftest.$ac_ext <<_ACEOF
4702 #include <sasl/sasl.h>
4703 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 P_HAS_SASL_SASL_H=1
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4723 rm -f conftest.$ac_objext conftest.$ac_ext
4724 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
4725 echo "$as_me:$LINENO: result: yes" >&5
4726 echo "${ECHO_T}yes" >&6
4727 SASL_INCLUDED=1
4728 cat >>confdefs.h <<\_ACEOF
4729 #define P_HAS_SASL_SASL_H 1
4730 _ACEOF
4732 else
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4738 if test "${HAS_SASL2}x" != "x" ; then
4739 HAS_SASL2=1
4740 ENDLDLIBS="$ENDLDLIBS -lsasl2"
4741 cat >>confdefs.h <<\_ACEOF
4742 #define P_SASL2 1
4743 _ACEOF
4745 HAS_SASL2=1
4747 elif test "${HAS_SASL}x" != "x" ; then
4748 HAS_SASL=1
4749 ENDLDLIBS="$ENDLDLIBS -lsasl"
4750 cat >>confdefs.h <<\_ACEOF
4751 #define P_SASL 1
4752 _ACEOF
4754 HAS_SASL=1
4756 else
4757 HAS_SASL=0
4763 # Check whether --enable-openldap or --disable-openldap was given.
4764 if test "${enable_openldap+set}" = set; then
4765 enableval="$enable_openldap"
4766 openldap=$enableval
4769 if test "$openldap" = "no" ; then
4770 HAS_OPENLDAP=0
4772 cat >>confdefs.h <<\_ACEOF
4773 #define P_LDAP 0
4774 _ACEOF
4776 else
4777 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4779 for ac_header in ldap.h
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4790 else
4791 # Is the header compilable?
4792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4795 #line $LINENO "configure"
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 $ac_includes_default
4802 #include <$ac_header>
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_header_compiler=yes
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 ac_header_compiler=no
4823 rm -f conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4825 echo "${ECHO_T}$ac_header_compiler" >&6
4827 # Is the header present?
4828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4830 cat >conftest.$ac_ext <<_ACEOF
4831 #line $LINENO "configure"
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <$ac_header>
4838 _ACEOF
4839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_cxx_preproc_warn_flag
4849 else
4850 ac_cpp_err=
4852 else
4853 ac_cpp_err=yes
4855 if test -z "$ac_cpp_err"; then
4856 ac_header_preproc=yes
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_header_preproc=no
4863 rm -f conftest.err conftest.$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4865 echo "${ECHO_T}$ac_header_preproc" >&6
4867 # So? What about this header?
4868 case $ac_header_compiler:$ac_header_preproc in
4869 yes:no )
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4875 cat <<\_ASBOX
4876 ## ------------------------------------ ##
4877 ## Report this to bug-autoconf@gnu.org. ##
4878 ## ------------------------------------ ##
4879 _ASBOX
4881 sed "s/^/$as_me: WARNING: /" >&2
4883 no:yes )
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4891 cat <<\_ASBOX
4892 ## ------------------------------------ ##
4893 ## Report this to bug-autoconf@gnu.org. ##
4894 ## ------------------------------------ ##
4895 _ASBOX
4897 sed "s/^/$as_me: WARNING: /" >&2
4899 esac
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 eval "$as_ac_Header=$ac_header_preproc"
4907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914 _ACEOF
4915 HAS_OPENLDAP=1
4918 done
4921 if test "${OSTYPE:-unknown}" = "solaris"; then
4922 OPENLDAPSYSLIBS=-lposix4
4925 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4926 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4927 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4928 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 ac_check_lib_save_LIBS=$LIBS
4932 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4933 cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4941 /* Override any gcc2 internal prototype to avoid an error. */
4942 #ifdef __cplusplus
4943 extern "C"
4944 #endif
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4947 char ldap_open ();
4949 main ()
4951 ldap_open ();
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_lib_ldap_ldap_open=yes
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 ac_cv_lib_ldap_ldap_open=no
4975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4976 LIBS=$ac_check_lib_save_LIBS
4978 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4979 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4980 if test $ac_cv_lib_ldap_ldap_open = yes; then
4981 HAS_OPENLDAP=1
4982 else
4983 HAS_OPENLDAP=
4986 else
4987 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4988 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4989 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 test "$cross_compiling" = yes &&
4993 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4994 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4995 { (exit 1); exit 1; }; }
4996 if test -r "/usr/local/include/ldap.h"; then
4997 ac_cv_file__usr_local_include_ldap_h=yes
4998 else
4999 ac_cv_file__usr_local_include_ldap_h=no
5002 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
5003 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
5004 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
5005 HAS_OPENLDAP=1
5008 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5009 OPENLDAPINCLUDEDIR=/usr/local/include
5010 OPENLDAPLIBDIR=/usr/local/lib
5011 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
5012 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
5013 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 ac_check_lib_save_LIBS=$LIBS
5017 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5026 /* Override any gcc2 internal prototype to avoid an error. */
5027 #ifdef __cplusplus
5028 extern "C"
5029 #endif
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5032 char ldap_open ();
5034 main ()
5036 ldap_open ();
5038 return 0;
5040 _ACEOF
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_lib_ldap_ldap_open=yes
5054 else
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_cv_lib_ldap_ldap_open=no
5060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5061 LIBS=$ac_check_lib_save_LIBS
5063 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
5064 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
5065 if test $ac_cv_lib_ldap_ldap_open = yes; then
5066 HAS_OPENLDAP=1
5067 else
5068 HAS_OPENLDAP=
5075 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
5076 HAS_OPENLDAP=1
5079 cat >>confdefs.h <<\_ACEOF
5080 #define P_LDAP 1
5081 _ACEOF
5083 ENDLDLIBS="-lldap -lldap_r -llber $ENDLDLIBS"
5084 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
5085 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
5087 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
5088 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
5096 # Check whether --enable-openssl or --disable-openssl was given.
5097 if test "${enable_openssl+set}" = set; then
5098 enableval="$enable_openssl"
5099 openssl=$enableval
5102 if test "$openssl" = "no" ; then
5103 cat >>confdefs.h <<\_ACEOF
5104 #define P_SSL 0
5105 _ACEOF
5107 HAS_OPENSSL=0
5109 else
5111 if test ${OPENSSLDIR:-unset} != "unset" ; then
5112 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5113 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5114 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5115 echo "$as_me:$LINENO: result: yes" >&5
5116 echo "${ECHO_T}yes" >&6
5117 SSLHDR=1
5118 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5119 SSLLIBDIR="${OPENSSLDIR}/lib"
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5127 if test "${SSLHDR:-unset}" = "unset" ; then
5129 for ac_header in openssl/ssl.h
5131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5133 echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5140 else
5141 # Is the header compilable?
5142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 $ac_includes_default
5152 #include <$ac_header>
5153 _ACEOF
5154 rm -f conftest.$ac_objext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -s conftest.$ac_objext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_header_compiler=yes
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_header_compiler=no
5173 rm -f conftest.$ac_objext conftest.$ac_ext
5174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5175 echo "${ECHO_T}$ac_header_compiler" >&6
5177 # Is the header present?
5178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <$ac_header>
5188 _ACEOF
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_cxx_preproc_warn_flag
5199 else
5200 ac_cpp_err=
5202 else
5203 ac_cpp_err=yes
5205 if test -z "$ac_cpp_err"; then
5206 ac_header_preproc=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_header_preproc=no
5213 rm -f conftest.err conftest.$ac_ext
5214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5215 echo "${ECHO_T}$ac_header_preproc" >&6
5217 # So? What about this header?
5218 case $ac_header_compiler:$ac_header_preproc in
5219 yes:no )
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5225 cat <<\_ASBOX
5226 ## ------------------------------------ ##
5227 ## Report this to bug-autoconf@gnu.org. ##
5228 ## ------------------------------------ ##
5229 _ASBOX
5231 sed "s/^/$as_me: WARNING: /" >&2
5233 no:yes )
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5241 cat <<\_ASBOX
5242 ## ------------------------------------ ##
5243 ## Report this to bug-autoconf@gnu.org. ##
5244 ## ------------------------------------ ##
5245 _ASBOX
5247 sed "s/^/$as_me: WARNING: /" >&2
5249 esac
5250 echo "$as_me:$LINENO: checking for $ac_header" >&5
5251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 eval "$as_ac_Header=$ac_header_preproc"
5257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5262 cat >>confdefs.h <<_ACEOF
5263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264 _ACEOF
5265 SSLHDR=1
5268 done
5270 if test "${SSLHDR:-unset}" != "unset" ; then
5271 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5272 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5273 cat >conftest.$ac_ext <<_ACEOF
5274 #define OPENSSL_NO_KRB5
5275 #include <openssl/ssl.h>
5276 int main(int argc,char **argv){}
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 SSLHDR=1
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5296 rm -f conftest.$ac_objext conftest.$ac_ext
5297 if test ${SSLHDR:-unset} != "unset" ; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6
5300 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5301 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5302 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5303 else
5304 echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5310 if test "${SSLHDR:-unset}" = "unset" ; then
5312 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5313 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5314 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5315 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5316 echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6
5318 else
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #include "${openssl_dir}/include/openssl/ssl.h"
5321 int main(int argc,char **argv){ return 0; }
5322 _ACEOF
5323 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
5324 if test $? = 0 ; then
5325 echo "$as_me:$LINENO: result: yes" >&5
5326 echo "${ECHO_T}yes" >&6
5327 SSLHDR=1
5328 SSLCCFLAGS=""
5329 SSLINCLUDEDIR="${openssl_dir}/include"
5330 SSLLIBDIR="${openssl_dir}/lib"
5331 break
5332 else
5333 echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5335 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5336 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5338 #define OPENSSL_NO_KRB5
5339 #include "${openssl_dir}/include/openssl/ssl.h"
5340 int main(int argc,char **argv){}
5341 _ACEOF
5342 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
5343 if test $? = 0 ; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6
5346 SSLHDR=1
5347 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5348 SSLINCLUDEDIR="${openssl_dir}/include"
5349 SSLLIBDIR="${openssl_dir}/lib"
5350 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
5351 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5352 break
5353 else
5354 echo "$as_me:$LINENO: result: no" >&5
5355 echo "${ECHO_T}no" >&6
5359 done
5362 if test ${SSLHDR:-unset} != "unset" ; then
5363 HAS_OPENSSL=1
5366 cat >>confdefs.h <<\_ACEOF
5367 #define P_SSL 1
5368 _ACEOF
5370 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5371 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5373 if test ${SSLLIBDIR:-unset} != "unset" ; then
5374 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5376 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5377 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5386 # Check whether --enable-expat or --disable-expat was given.
5387 if test "${enable_expat+set}" = set; then
5388 enableval="$enable_expat"
5389 expat=$enableval
5392 if test "$expat" = "no" ; then
5393 HAS_EXPAT=0
5395 cat >>confdefs.h <<\_ACEOF
5396 #define P_EXPAT 0
5397 _ACEOF
5399 else
5402 for ac_header in expat.h
5404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo "$as_me:$LINENO: checking for $ac_header" >&5
5407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5413 else
5414 # Is the header compilable?
5415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 $ac_includes_default
5425 #include <$ac_header>
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_header_compiler=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 ac_header_compiler=no
5446 rm -f conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448 echo "${ECHO_T}$ac_header_compiler" >&6
5450 # Is the header present?
5451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <$ac_header>
5461 _ACEOF
5462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev/null; then
5470 if test -s conftest.err; then
5471 ac_cpp_err=$ac_cxx_preproc_warn_flag
5472 else
5473 ac_cpp_err=
5475 else
5476 ac_cpp_err=yes
5478 if test -z "$ac_cpp_err"; then
5479 ac_header_preproc=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ac_header_preproc=no
5486 rm -f conftest.err conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488 echo "${ECHO_T}$ac_header_preproc" >&6
5490 # So? What about this header?
5491 case $ac_header_compiler:$ac_header_preproc in
5492 yes:no )
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5498 cat <<\_ASBOX
5499 ## ------------------------------------ ##
5500 ## Report this to bug-autoconf@gnu.org. ##
5501 ## ------------------------------------ ##
5502 _ASBOX
5504 sed "s/^/$as_me: WARNING: /" >&2
5506 no:yes )
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5514 cat <<\_ASBOX
5515 ## ------------------------------------ ##
5516 ## Report this to bug-autoconf@gnu.org. ##
5517 ## ------------------------------------ ##
5518 _ASBOX
5520 sed "s/^/$as_me: WARNING: /" >&2
5522 esac
5523 echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 eval "$as_ac_Header=$ac_header_preproc"
5530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535 cat >>confdefs.h <<_ACEOF
5536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 _ACEOF
5538 HAS_EXPAT=1
5541 done
5543 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5544 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5545 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5546 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 ac_check_lib_save_LIBS=$LIBS
5550 LIBS="-lexpat $LIBS"
5551 cat >conftest.$ac_ext <<_ACEOF
5552 #line $LINENO "configure"
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 #ifdef __cplusplus
5561 extern "C"
5562 #endif
5563 /* We use char because int might match the return type of a gcc2
5564 builtin and then its argument prototype would still apply. */
5565 char XML_ParserCreate ();
5567 main ()
5569 XML_ParserCreate ();
5571 return 0;
5573 _ACEOF
5574 rm -f conftest.$ac_objext conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -s conftest$ac_exeext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 (eval $ac_try) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5586 ac_cv_lib_expat_XML_ParserCreate=yes
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 ac_cv_lib_expat_XML_ParserCreate=no
5593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5594 LIBS=$ac_check_lib_save_LIBS
5596 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5597 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5598 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5599 HAS_EXPAT=1
5600 else
5601 HAS_EXPAT=
5604 else
5605 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5606 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5607 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 test "$cross_compiling" = yes &&
5611 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5612 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5613 { (exit 1); exit 1; }; }
5614 if test -r "/usr/local/include/expat.h"; then
5615 ac_cv_file__usr_local_include_expat_h=yes
5616 else
5617 ac_cv_file__usr_local_include_expat_h=no
5620 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5621 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5622 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5623 HAS_EXPAT=1
5626 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5627 EXPATINCLUDEDIR=/usr/local/include
5628 EXPATLIBDIR=/usr/local/lib
5632 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5633 HAS_EXPAT=1
5636 cat >>confdefs.h <<\_ACEOF
5637 #define P_EXPAT 1
5638 _ACEOF
5640 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5641 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5643 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5644 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5646 ENDLDLIBS="$ENDLDLIBS -lexpat"
5656 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5657 if test "${enable_ipv6+set}" = set; then
5658 enableval="$enable_ipv6"
5659 ipv6=$enableval
5662 if test "$ipv6" = "no" ; then
5663 cat >>confdefs.h <<\_ACEOF
5664 #define P_HAS_IPV6 0
5665 _ACEOF
5667 HAS_IPV6=0
5669 else
5670 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5671 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5672 if test "${HAS_IPV6+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #include <sys/types.h>
5683 #include <netinet/in.h>
5685 main ()
5687 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 HAS_IPV6=yes
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 HAS_IPV6=no
5711 rm -f conftest.$ac_objext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5714 echo "${ECHO_T}$HAS_IPV6" >&6
5716 if test $HAS_IPV6 = yes ; then
5718 cat >>confdefs.h <<\_ACEOF
5719 #define P_HAS_IPV6 1
5720 _ACEOF
5727 # Check whether --enable-qos or --disable-qos was given.
5728 if test "${enable_qos+set}" = set; then
5729 enableval="$enable_qos"
5730 qos=$enableval
5733 if test "$qos" = "no" ; then
5735 cat >>confdefs.h <<\_ACEOF
5736 #define P_HAS_QOS 0
5737 _ACEOF
5739 else
5741 cat >>confdefs.h <<\_ACEOF
5742 #define P_HAS_QOS 1
5743 _ACEOF
5750 # Check whether --enable-sdl or --disable-sdl was given.
5751 if test "${enable_sdl+set}" = set; then
5752 enableval="$enable_sdl"
5753 sdl=$enableval
5756 if test "$sdl" = "no" ; then
5757 HAS_SDL=0
5759 cat >>confdefs.h <<\_ACEOF
5760 #define P_SDL 0
5761 _ACEOF
5763 else
5764 if test "${SDLLIB:-unset}" = "unset" ; then
5765 SDLLIB=SDL
5769 for ac_header in SDL/SDL.h
5771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5773 echo "$as_me:$LINENO: checking for $ac_header" >&5
5774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5780 else
5781 # Is the header compilable?
5782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 #include <$ac_header>
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_header_compiler=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_header_compiler=no
5813 rm -f conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #include <$ac_header>
5828 _ACEOF
5829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null; then
5837 if test -s conftest.err; then
5838 ac_cpp_err=$ac_cxx_preproc_warn_flag
5839 else
5840 ac_cpp_err=
5842 else
5843 ac_cpp_err=yes
5845 if test -z "$ac_cpp_err"; then
5846 ac_header_preproc=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_header_preproc=no
5853 rm -f conftest.err conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6
5857 # So? What about this header?
5858 case $ac_header_compiler:$ac_header_preproc in
5859 yes:no )
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5865 cat <<\_ASBOX
5866 ## ------------------------------------ ##
5867 ## Report this to bug-autoconf@gnu.org. ##
5868 ## ------------------------------------ ##
5869 _ASBOX
5871 sed "s/^/$as_me: WARNING: /" >&2
5873 no:yes )
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5881 cat <<\_ASBOX
5882 ## ------------------------------------ ##
5883 ## Report this to bug-autoconf@gnu.org. ##
5884 ## ------------------------------------ ##
5885 _ASBOX
5887 sed "s/^/$as_me: WARNING: /" >&2
5889 esac
5890 echo "$as_me:$LINENO: checking for $ac_header" >&5
5891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 eval "$as_ac_Header=$ac_header_preproc"
5897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5902 cat >>confdefs.h <<_ACEOF
5903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5904 _ACEOF
5905 HAS_SDL=1
5908 done
5910 if test "${HAS_SDL:-unset}" != "unset" ; then
5911 if test "${X11LIBDIR:-unset}" == "unset" ; then
5912 X11LIBDIR=/usr/X11R6/lib
5914 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5915 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5916 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 ac_check_lib_save_LIBS=$LIBS
5920 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext -laa $LIBS"
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line $LINENO "configure"
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 #ifdef __cplusplus
5931 extern "C"
5932 #endif
5933 /* We use char because int might match the return type of a gcc2
5934 builtin and then its argument prototype would still apply. */
5935 char SDL_CreateYUVOverlay ();
5937 main ()
5939 SDL_CreateYUVOverlay ();
5941 return 0;
5943 _ACEOF
5944 rm -f conftest.$ac_objext conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964 LIBS=$ac_check_lib_save_LIBS
5966 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5967 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5968 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5969 HAS_SDL=1
5970 else
5971 HAS_SDL=
5976 if test "${HAS_SDL:-unset}" = "unset" ; then
5977 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5978 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5979 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 test "$cross_compiling" = yes &&
5983 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5984 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5985 { (exit 1); exit 1; }; }
5986 if test -r "/usr/local/include/SDL11/SDL.h"; then
5987 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5988 else
5989 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5992 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5993 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5994 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5995 HAS_SDL=1
5998 if test "${HAS_SDL:-unset}" != "unset" ; then
5999 SDLLIB=SDL-1.1
6003 if test "${HAS_SDL:-unset}" != "unset" ; then
6004 HAS_SDL=1
6007 cat >>confdefs.h <<\_ACEOF
6008 #define P_SDL 1
6009 _ACEOF
6011 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
6012 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
6014 if test ${SDLLIBDIR:-unset} != "unset" ; then
6015 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
6017 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
6023 # Check whether --enable-video or --disable-video was given.
6024 if test "${enable_video+set}" = set; then
6025 enableval="$enable_video"
6026 video=$enableval
6029 HAS_VIDEO_CAPTURE=0
6030 if test "$HAS_PLUGINS" = "0" ; then
6031 if test "$video" != "no" ; then
6032 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6033 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6034 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6035 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6039 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6040 else
6041 # Is the header compilable?
6042 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
6043 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
6044 cat >conftest.$ac_ext <<_ACEOF
6045 #line $LINENO "configure"
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 $ac_includes_default
6052 #include <linux/videodev.h>
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056 (eval $ac_compile) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_header_compiler=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_header_compiler=no
6073 rm -f conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6
6077 # Is the header present?
6078 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
6079 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 #include <linux/videodev.h>
6088 _ACEOF
6089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null; then
6097 if test -s conftest.err; then
6098 ac_cpp_err=$ac_cxx_preproc_warn_flag
6099 else
6100 ac_cpp_err=
6102 else
6103 ac_cpp_err=yes
6105 if test -z "$ac_cpp_err"; then
6106 ac_header_preproc=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_header_preproc=no
6113 rm -f conftest.err conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6115 echo "${ECHO_T}$ac_header_preproc" >&6
6117 # So? What about this header?
6118 case $ac_header_compiler:$ac_header_preproc in
6119 yes:no )
6120 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6121 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6123 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6125 cat <<\_ASBOX
6126 ## ------------------------------------ ##
6127 ## Report this to bug-autoconf@gnu.org. ##
6128 ## ------------------------------------ ##
6129 _ASBOX
6131 sed "s/^/$as_me: WARNING: /" >&2
6133 no:yes )
6134 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6135 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6137 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6139 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6141 cat <<\_ASBOX
6142 ## ------------------------------------ ##
6143 ## Report this to bug-autoconf@gnu.org. ##
6144 ## ------------------------------------ ##
6145 _ASBOX
6147 sed "s/^/$as_me: WARNING: /" >&2
6149 esac
6150 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6151 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6152 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 ac_cv_header_linux_videodev_h=$ac_header_preproc
6157 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6158 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6161 if test $ac_cv_header_linux_videodev_h = yes; then
6162 HAS_VIDEO_CAPTURE=1
6166 if test "${HAS_VIDEO_CAPTURE}" = "0" ; then
6167 { echo "$as_me:$LINENO: No Video Capture support" >&5
6168 echo "$as_me: No Video Capture support" >&6;}
6170 cat >>confdefs.h <<\_ACEOF
6171 #define NO_VIDEO_CAPTURE
6172 _ACEOF
6179 # Check whether --enable-alsa or --disable-alsa was given.
6180 if test "${enable_alsa+set}" = set; then
6181 enableval="$enable_alsa"
6182 enable_alsa=$enableval
6185 HAS_ALSA=0
6186 if test "$HAS_PLUGINS" = "0" ; then
6187 if test "$enable_alsa" != "no" ; then
6188 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6189 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6190 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6191 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6195 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6196 else
6197 # Is the header compilable?
6198 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6199 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
6200 cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 $ac_includes_default
6208 #include <alsa/asoundlib.h>
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_header_compiler=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_header_compiler=no
6229 rm -f conftest.$ac_objext conftest.$ac_ext
6230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6231 echo "${ECHO_T}$ac_header_compiler" >&6
6233 # Is the header present?
6234 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6235 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6237 #line $LINENO "configure"
6238 /* confdefs.h. */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 #include <alsa/asoundlib.h>
6244 _ACEOF
6245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } >/dev/null; then
6253 if test -s conftest.err; then
6254 ac_cpp_err=$ac_cxx_preproc_warn_flag
6255 else
6256 ac_cpp_err=
6258 else
6259 ac_cpp_err=yes
6261 if test -z "$ac_cpp_err"; then
6262 ac_header_preproc=yes
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_header_preproc=no
6269 rm -f conftest.err conftest.$ac_ext
6270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6271 echo "${ECHO_T}$ac_header_preproc" >&6
6273 # So? What about this header?
6274 case $ac_header_compiler:$ac_header_preproc in
6275 yes:no )
6276 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6277 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6279 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6281 cat <<\_ASBOX
6282 ## ------------------------------------ ##
6283 ## Report this to bug-autoconf@gnu.org. ##
6284 ## ------------------------------------ ##
6285 _ASBOX
6287 sed "s/^/$as_me: WARNING: /" >&2
6289 no:yes )
6290 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6291 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6293 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6295 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6297 cat <<\_ASBOX
6298 ## ------------------------------------ ##
6299 ## Report this to bug-autoconf@gnu.org. ##
6300 ## ------------------------------------ ##
6301 _ASBOX
6303 sed "s/^/$as_me: WARNING: /" >&2
6305 esac
6306 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6307 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
6308 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6313 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6314 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
6317 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6318 HAS_ALSA=1
6322 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
6323 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
6324 if test "${HAS_ALSA}" = "1"; then
6325 echo "$as_me:$LINENO: result: yes" >&5
6326 echo "${ECHO_T}yes" >&6
6327 ENDLDLIBS="$ENDLDLIBS -lasound"
6328 else
6329 echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6336 if test "$OSTYPE" = "solaris" ; then
6337 USE_SYSTEM_SWAB=
6338 else
6339 echo "$as_me:$LINENO: checking for swab" >&5
6340 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6341 if test "${ac_cv_func_swab+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 /* System header to define __stub macros and hopefully few prototypes,
6352 which can conflict with char swab (); below.
6353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354 <limits.h> exists even on freestanding compilers. */
6355 #ifdef __STDC__
6356 # include <limits.h>
6357 #else
6358 # include <assert.h>
6359 #endif
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 #ifdef __cplusplus
6362 extern "C"
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6367 char swab ();
6368 /* The GNU C library defines this for functions which it implements
6369 to always fail with ENOSYS. Some functions are actually named
6370 something starting with __ and the normal name is an alias. */
6371 #if defined (__stub_swab) || defined (__stub___swab)
6372 choke me
6373 #else
6374 char (*f) () = swab;
6375 #endif
6376 #ifdef __cplusplus
6378 #endif
6381 main ()
6383 return f != swab;
6385 return 0;
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_func_swab=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_func_swab=no
6407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6409 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6410 echo "${ECHO_T}$ac_cv_func_swab" >&6
6411 if test $ac_cv_func_swab = yes; then
6412 USE_SYSTEM_SWAB=1
6416 if test "x$ac_cv_func_swab" = "xyes" ; then
6418 cat >>confdefs.h <<\_ACEOF
6419 #define USE_SYSTEM_SWAB
6420 _ACEOF
6426 # Check whether --enable-memcheck or --disable-memcheck was given.
6427 if test "${enable_memcheck+set}" = set; then
6428 enableval="$enable_memcheck"
6429 memcheck=$enableval
6432 if test "$memcheck" = "yes" ; then
6433 cat >>confdefs.h <<\_ACEOF
6434 #define PMEMORY_CHECK 1
6435 _ACEOF
6437 { echo "$as_me:$LINENO: Memory checking enabled" >&5
6438 echo "$as_me: Memory checking enabled" >&6;}
6443 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6444 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6445 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6449 if test "${OSTYPE}" != "Darwin" ; then
6450 if test ${HAS_LIBDL} = yes ; then
6451 ENDLDLIBS="$ENDLDLIBS -ldl"
6460 # Find a good install program. We prefer a C program (faster),
6461 # so one script is as good as another. But avoid the broken or
6462 # incompatible versions:
6463 # SysV /etc/install, /usr/sbin/install
6464 # SunOS /usr/etc/install
6465 # IRIX /sbin/install
6466 # AIX /bin/install
6467 # AmigaOS /C/install, which installs bootblocks on floppy discs
6468 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6469 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6470 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6471 # ./install, which can be erroneously created by make from ./install.sh.
6472 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6473 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6474 if test -z "$INSTALL"; then
6475 if test "${ac_cv_path_install+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 # Account for people who put trailing slashes in PATH elements.
6484 case $as_dir/ in
6485 ./ | .// | /cC/* | \
6486 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6487 /usr/ucb/* ) ;;
6489 # OSF1 and SCO ODT 3.0 have their own names for install.
6490 # Don't use installbsd from OSF since it installs stuff as root
6491 # by default.
6492 for ac_prog in ginstall scoinst install; do
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6495 if test $ac_prog = install &&
6496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6497 # AIX install. It has an incompatible calling convention.
6499 elif test $ac_prog = install &&
6500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6501 # program-specific install script used by HP pwplus--don't use.
6503 else
6504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6505 break 3
6508 done
6509 done
6511 esac
6512 done
6516 if test "${ac_cv_path_install+set}" = set; then
6517 INSTALL=$ac_cv_path_install
6518 else
6519 # As a last resort, use the slow shell script. We don't cache a
6520 # path for INSTALL within a source directory, because that will
6521 # break other packages using the cache if that directory is
6522 # removed, or if the path is relative.
6523 INSTALL=$ac_install_sh
6526 echo "$as_me:$LINENO: result: $INSTALL" >&5
6527 echo "${ECHO_T}$INSTALL" >&6
6529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6530 # It thinks the first close brace ends the variable substitution.
6531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6538 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6540 ac_config_files="$ac_config_files make/ptlib-config"
6542 ac_config_files="$ac_config_files Makefile"
6545 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6546 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6549 cat >confcache <<\_ACEOF
6550 # This file is a shell script that caches the results of configure
6551 # tests run on this system so they can be shared between configure
6552 # scripts and configure runs, see configure's option --config-cache.
6553 # It is not useful on other systems. If it contains results you don't
6554 # want to keep, you may remove or edit it.
6556 # config.status only pays attention to the cache file if you give it
6557 # the --recheck option to rerun configure.
6559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6561 # following values.
6563 _ACEOF
6565 # The following way of writing the cache mishandles newlines in values,
6566 # but we know of no workaround that is simple, portable, and efficient.
6567 # So, don't put newlines in cache variables' values.
6568 # Ultrix sh set writes to stderr and can't be redirected directly,
6569 # and sets the high bit in the cache file unless we assign to the vars.
6571 (set) 2>&1 |
6572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6573 *ac_space=\ *)
6574 # `set' does not quote correctly, so add quotes (double-quote
6575 # substitution turns \\\\ into \\, and sed turns \\ into \).
6576 sed -n \
6577 "s/'/'\\\\''/g;
6578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6581 # `set' quotes correctly as required by POSIX, so do not add quotes.
6582 sed -n \
6583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6585 esac;
6587 sed '
6588 t clear
6589 : clear
6590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6591 t end
6592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6593 : end' >>confcache
6594 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6595 if test -w $cache_file; then
6596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6597 cat confcache >$cache_file
6598 else
6599 echo "not updating unwritable cache $cache_file"
6602 rm -f confcache
6604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6605 # Let make expand exec_prefix.
6606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6610 # trailing colons and then remove the whole line if VPATH becomes empty
6611 # (actually we leave an empty line to preserve line numbers).
6612 if test "x$srcdir" = x.; then
6613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6614 s/:*\$(srcdir):*/:/;
6615 s/:*\${srcdir}:*/:/;
6616 s/:*@srcdir@:*/:/;
6617 s/^\([^=]*=[ ]*\):*/\1/;
6618 s/:*$//;
6619 s/^[^=]*=[ ]*$//;
6623 DEFS=-DHAVE_CONFIG_H
6625 ac_libobjs=
6626 ac_ltlibobjs=
6627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6628 # 1. Remove the extension, and $U if already installed.
6629 ac_i=`echo "$ac_i" |
6630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6631 # 2. Add them.
6632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6634 done
6635 LIBOBJS=$ac_libobjs
6637 LTLIBOBJS=$ac_ltlibobjs
6641 : ${CONFIG_STATUS=./config.status}
6642 ac_clean_files_save=$ac_clean_files
6643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6646 cat >$CONFIG_STATUS <<_ACEOF
6647 #! $SHELL
6648 # Generated by $as_me.
6649 # Run this file to recreate the current configuration.
6650 # Compiler output produced by configure, useful for debugging
6651 # configure, is in config.log if it exists.
6653 debug=false
6654 ac_cs_recheck=false
6655 ac_cs_silent=false
6656 SHELL=\${CONFIG_SHELL-$SHELL}
6657 _ACEOF
6659 cat >>$CONFIG_STATUS <<\_ACEOF
6660 ## --------------------- ##
6661 ## M4sh Initialization. ##
6662 ## --------------------- ##
6664 # Be Bourne compatible
6665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6666 emulate sh
6667 NULLCMD=:
6668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6669 # is contrary to our usage. Disable this feature.
6670 alias -g '${1+"$@"}'='"$@"'
6671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6672 set -o posix
6675 # Support unset when possible.
6676 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6677 as_unset=unset
6678 else
6679 as_unset=false
6683 # Work around bugs in pre-3.0 UWIN ksh.
6684 $as_unset ENV MAIL MAILPATH
6685 PS1='$ '
6686 PS2='> '
6687 PS4='+ '
6689 # NLS nuisances.
6690 for as_var in \
6691 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6692 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6693 LC_TELEPHONE LC_TIME
6695 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6696 eval $as_var=C; export $as_var
6697 else
6698 $as_unset $as_var
6700 done
6702 # Required to use basename.
6703 if expr a : '\(a\)' >/dev/null 2>&1; then
6704 as_expr=expr
6705 else
6706 as_expr=false
6709 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6710 as_basename=basename
6711 else
6712 as_basename=false
6716 # Name of the executable.
6717 as_me=`$as_basename "$0" ||
6718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6719 X"$0" : 'X\(//\)$' \| \
6720 X"$0" : 'X\(/\)$' \| \
6721 . : '\(.\)' 2>/dev/null ||
6722 echo X/"$0" |
6723 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6724 /^X\/\(\/\/\)$/{ s//\1/; q; }
6725 /^X\/\(\/\).*/{ s//\1/; q; }
6726 s/.*/./; q'`
6729 # PATH needs CR, and LINENO needs CR and PATH.
6730 # Avoid depending upon Character Ranges.
6731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6734 as_cr_digits='0123456789'
6735 as_cr_alnum=$as_cr_Letters$as_cr_digits
6737 # The user is always right.
6738 if test "${PATH_SEPARATOR+set}" != set; then
6739 echo "#! /bin/sh" >conf$$.sh
6740 echo "exit 0" >>conf$$.sh
6741 chmod +x conf$$.sh
6742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6743 PATH_SEPARATOR=';'
6744 else
6745 PATH_SEPARATOR=:
6747 rm -f conf$$.sh
6751 as_lineno_1=$LINENO
6752 as_lineno_2=$LINENO
6753 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6754 test "x$as_lineno_1" != "x$as_lineno_2" &&
6755 test "x$as_lineno_3" = "x$as_lineno_2" || {
6756 # Find who we are. Look in the path if we contain no path at all
6757 # relative or not.
6758 case $0 in
6759 *[\\/]* ) as_myself=$0 ;;
6760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6766 done
6769 esac
6770 # We did not find ourselves, most probably we were run as `sh COMMAND'
6771 # in which case we are not to be found in the path.
6772 if test "x$as_myself" = x; then
6773 as_myself=$0
6775 if test ! -f "$as_myself"; then
6776 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6777 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6778 { (exit 1); exit 1; }; }
6780 case $CONFIG_SHELL in
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for as_base in sh bash ksh sh5; do
6788 case $as_dir in
6790 if ("$as_dir/$as_base" -c '
6791 as_lineno_1=$LINENO
6792 as_lineno_2=$LINENO
6793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6794 test "x$as_lineno_1" != "x$as_lineno_2" &&
6795 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6796 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6797 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6798 CONFIG_SHELL=$as_dir/$as_base
6799 export CONFIG_SHELL
6800 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6801 fi;;
6802 esac
6803 done
6804 done
6806 esac
6808 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6809 # uniformly replaced by the line number. The first 'sed' inserts a
6810 # line-number line before each line; the second 'sed' does the real
6811 # work. The second script uses 'N' to pair each line-number line
6812 # with the numbered line, and appends trailing '-' during
6813 # substitution so that $LINENO is not a special case at line end.
6814 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6815 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6816 sed '=' <$as_myself |
6817 sed '
6819 s,$,-,
6820 : loop
6821 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6822 t loop
6823 s,-$,,
6824 s,^['$as_cr_digits']*\n,,
6825 ' >$as_me.lineno &&
6826 chmod +x $as_me.lineno ||
6827 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6828 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6829 { (exit 1); exit 1; }; }
6831 # Don't try to exec as it changes $[0], causing all sort of problems
6832 # (the dirname of $[0] is not the place where we might find the
6833 # original and so on. Autoconf is especially sensible to this).
6834 . ./$as_me.lineno
6835 # Exit status is that of the last command.
6836 exit
6840 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6841 *c*,-n*) ECHO_N= ECHO_C='
6842 ' ECHO_T=' ' ;;
6843 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6844 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6845 esac
6847 if expr a : '\(a\)' >/dev/null 2>&1; then
6848 as_expr=expr
6849 else
6850 as_expr=false
6853 rm -f conf$$ conf$$.exe conf$$.file
6854 echo >conf$$.file
6855 if ln -s conf$$.file conf$$ 2>/dev/null; then
6856 # We could just check for DJGPP; but this test a) works b) is more generic
6857 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6858 if test -f conf$$.exe; then
6859 # Don't use ln at all; we don't have any links
6860 as_ln_s='cp -p'
6861 else
6862 as_ln_s='ln -s'
6864 elif ln conf$$.file conf$$ 2>/dev/null; then
6865 as_ln_s=ln
6866 else
6867 as_ln_s='cp -p'
6869 rm -f conf$$ conf$$.exe conf$$.file
6871 if mkdir -p . 2>/dev/null; then
6872 as_mkdir_p=:
6873 else
6874 as_mkdir_p=false
6877 as_executable_p="test -f"
6879 # Sed expression to map a string onto a valid CPP name.
6880 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6882 # Sed expression to map a string onto a valid variable name.
6883 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6886 # IFS
6887 # We need space, tab and new line, in precisely that order.
6888 as_nl='
6890 IFS=" $as_nl"
6892 # CDPATH.
6893 $as_unset CDPATH
6895 exec 6>&1
6897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6898 # report actual input values of CONFIG_FILES etc. instead of their
6899 # values after options handling. Logging --version etc. is OK.
6900 exec 5>>config.log
6902 echo
6903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6904 ## Running $as_me. ##
6905 _ASBOX
6906 } >&5
6907 cat >&5 <<_CSEOF
6909 This file was extended by $as_me, which was
6910 generated by GNU Autoconf 2.57. Invocation command line was
6912 CONFIG_FILES = $CONFIG_FILES
6913 CONFIG_HEADERS = $CONFIG_HEADERS
6914 CONFIG_LINKS = $CONFIG_LINKS
6915 CONFIG_COMMANDS = $CONFIG_COMMANDS
6916 $ $0 $@
6918 _CSEOF
6919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6920 echo >&5
6921 _ACEOF
6923 # Files that config.status was made for.
6924 if test -n "$ac_config_files"; then
6925 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6928 if test -n "$ac_config_headers"; then
6929 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6932 if test -n "$ac_config_links"; then
6933 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6936 if test -n "$ac_config_commands"; then
6937 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6940 cat >>$CONFIG_STATUS <<\_ACEOF
6942 ac_cs_usage="\
6943 \`$as_me' instantiates files from templates according to the
6944 current configuration.
6946 Usage: $0 [OPTIONS] [FILE]...
6948 -h, --help print this help, then exit
6949 -V, --version print version number, then exit
6950 -q, --quiet do not print progress messages
6951 -d, --debug don't remove temporary files
6952 --recheck update $as_me by reconfiguring in the same conditions
6953 --file=FILE[:TEMPLATE]
6954 instantiate the configuration file FILE
6955 --header=FILE[:TEMPLATE]
6956 instantiate the configuration header FILE
6958 Configuration files:
6959 $config_files
6961 Configuration headers:
6962 $config_headers
6964 Report bugs to <bug-autoconf@gnu.org>."
6965 _ACEOF
6967 cat >>$CONFIG_STATUS <<_ACEOF
6968 ac_cs_version="\\
6969 config.status
6970 configured by $0, generated by GNU Autoconf 2.57,
6971 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6973 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6974 Free Software Foundation, Inc.
6975 This config.status script is free software; the Free Software Foundation
6976 gives unlimited permission to copy, distribute and modify it."
6977 srcdir=$srcdir
6978 INSTALL="$INSTALL"
6979 _ACEOF
6981 cat >>$CONFIG_STATUS <<\_ACEOF
6982 # If no file are specified by the user, then we need to provide default
6983 # value. By we need to know if files were specified by the user.
6984 ac_need_defaults=:
6985 while test $# != 0
6987 case $1 in
6988 --*=*)
6989 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6990 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6991 ac_shift=:
6994 ac_option=$1
6995 ac_optarg=$2
6996 ac_shift=shift
6998 *) # This is not an option, so the user has probably given explicit
6999 # arguments.
7000 ac_option=$1
7001 ac_need_defaults=false;;
7002 esac
7004 case $ac_option in
7005 # Handling of the options.
7006 _ACEOF
7007 cat >>$CONFIG_STATUS <<\_ACEOF
7008 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7009 ac_cs_recheck=: ;;
7010 --version | --vers* | -V )
7011 echo "$ac_cs_version"; exit 0 ;;
7012 --he | --h)
7013 # Conflict between --help and --header
7014 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7015 Try \`$0 --help' for more information." >&5
7016 echo "$as_me: error: ambiguous option: $1
7017 Try \`$0 --help' for more information." >&2;}
7018 { (exit 1); exit 1; }; };;
7019 --help | --hel | -h )
7020 echo "$ac_cs_usage"; exit 0 ;;
7021 --debug | --d* | -d )
7022 debug=: ;;
7023 --file | --fil | --fi | --f )
7024 $ac_shift
7025 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7026 ac_need_defaults=false;;
7027 --header | --heade | --head | --hea )
7028 $ac_shift
7029 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7030 ac_need_defaults=false;;
7031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7032 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7033 ac_cs_silent=: ;;
7035 # This is an error.
7036 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7037 Try \`$0 --help' for more information." >&5
7038 echo "$as_me: error: unrecognized option: $1
7039 Try \`$0 --help' for more information." >&2;}
7040 { (exit 1); exit 1; }; } ;;
7042 *) ac_config_targets="$ac_config_targets $1" ;;
7044 esac
7045 shift
7046 done
7048 ac_configure_extra_args=
7050 if $ac_cs_silent; then
7051 exec 6>/dev/null
7052 ac_configure_extra_args="$ac_configure_extra_args --silent"
7055 _ACEOF
7056 cat >>$CONFIG_STATUS <<_ACEOF
7057 if \$ac_cs_recheck; then
7058 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7059 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7062 _ACEOF
7068 cat >>$CONFIG_STATUS <<\_ACEOF
7069 for ac_config_target in $ac_config_targets
7071 case "$ac_config_target" in
7072 # Handling of arguments.
7073 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
7074 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
7075 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7076 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
7077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7079 { (exit 1); exit 1; }; };;
7080 esac
7081 done
7083 # If the user did not use the arguments to specify the items to instantiate,
7084 # then the envvar interface is used. Set only those that are not.
7085 # We use the long form for the default assignment because of an extremely
7086 # bizarre bug on SunOS 4.1.3.
7087 if $ac_need_defaults; then
7088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7092 # Have a temporary directory for convenience. Make it in the build tree
7093 # simply because there is no reason to put it here, and in addition,
7094 # creating and moving files from /tmp can sometimes cause problems.
7095 # Create a temporary directory, and hook for its removal unless debugging.
7096 $debug ||
7098 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7099 trap '{ (exit 1); exit 1; }' 1 2 13 15
7102 # Create a (secure) tmp directory for tmp files.
7105 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7106 test -n "$tmp" && test -d "$tmp"
7107 } ||
7109 tmp=./confstat$$-$RANDOM
7110 (umask 077 && mkdir $tmp)
7111 } ||
7113 echo "$me: cannot create a temporary directory in ." >&2
7114 { (exit 1); exit 1; }
7117 _ACEOF
7119 cat >>$CONFIG_STATUS <<_ACEOF
7122 # CONFIG_FILES section.
7125 # No need to generate the scripts if there are no CONFIG_FILES.
7126 # This happens for instance when ./config.status config.h
7127 if test -n "\$CONFIG_FILES"; then
7128 # Protect against being on the right side of a sed subst in config.status.
7129 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7130 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7131 s,@SHELL@,$SHELL,;t t
7132 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7133 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7134 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7135 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7136 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7137 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7138 s,@exec_prefix@,$exec_prefix,;t t
7139 s,@prefix@,$prefix,;t t
7140 s,@program_transform_name@,$program_transform_name,;t t
7141 s,@bindir@,$bindir,;t t
7142 s,@sbindir@,$sbindir,;t t
7143 s,@libexecdir@,$libexecdir,;t t
7144 s,@datadir@,$datadir,;t t
7145 s,@sysconfdir@,$sysconfdir,;t t
7146 s,@sharedstatedir@,$sharedstatedir,;t t
7147 s,@localstatedir@,$localstatedir,;t t
7148 s,@libdir@,$libdir,;t t
7149 s,@includedir@,$includedir,;t t
7150 s,@oldincludedir@,$oldincludedir,;t t
7151 s,@infodir@,$infodir,;t t
7152 s,@mandir@,$mandir,;t t
7153 s,@build_alias@,$build_alias,;t t
7154 s,@host_alias@,$host_alias,;t t
7155 s,@target_alias@,$target_alias,;t t
7156 s,@DEFS@,$DEFS,;t t
7157 s,@ECHO_C@,$ECHO_C,;t t
7158 s,@ECHO_N@,$ECHO_N,;t t
7159 s,@ECHO_T@,$ECHO_T,;t t
7160 s,@LIBS@,$LIBS,;t t
7161 s,@subdirs@,$subdirs,;t t
7162 s,@CXX@,$CXX,;t t
7163 s,@CXXFLAGS@,$CXXFLAGS,;t t
7164 s,@LDFLAGS@,$LDFLAGS,;t t
7165 s,@CPPFLAGS@,$CPPFLAGS,;t t
7166 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7167 s,@EXEEXT@,$EXEEXT,;t t
7168 s,@OBJEXT@,$OBJEXT,;t t
7169 s,@PWLIBDIR@,$PWLIBDIR,;t t
7170 s,@PWINSTDIR@,$PWINSTDIR,;t t
7171 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7172 s,@LIBDIR@,$LIBDIR,;t t
7173 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
7174 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
7175 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
7176 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
7177 s,@build@,$build,;t t
7178 s,@build_cpu@,$build_cpu,;t t
7179 s,@build_vendor@,$build_vendor,;t t
7180 s,@build_os@,$build_os,;t t
7181 s,@host@,$host,;t t
7182 s,@host_cpu@,$host_cpu,;t t
7183 s,@host_vendor@,$host_vendor,;t t
7184 s,@host_os@,$host_os,;t t
7185 s,@target@,$target,;t t
7186 s,@target_cpu@,$target_cpu,;t t
7187 s,@target_vendor@,$target_vendor,;t t
7188 s,@target_os@,$target_os,;t t
7189 s,@MACHTYPE@,$MACHTYPE,;t t
7190 s,@OSTYPE@,$OSTYPE,;t t
7191 s,@OSRELEASE@,$OSRELEASE,;t t
7192 s,@TARGETDIR@,$TARGETDIR,;t t
7193 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
7194 s,@CXXCPP@,$CXXCPP,;t t
7195 s,@EGREP@,$EGREP,;t t
7196 s,@HAS_REGEX@,$HAS_REGEX,;t t
7197 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
7198 s,@HAS_SASL2@,$HAS_SASL2,;t t
7199 s,@HAS_SASL@,$HAS_SASL,;t t
7200 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
7201 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
7202 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
7203 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
7204 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
7205 s,@HAS_IPV6@,$HAS_IPV6,;t t
7206 s,@HAS_SDL@,$HAS_SDL,;t t
7207 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
7208 s,@HAS_ALSA@,$HAS_ALSA,;t t
7209 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7210 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
7211 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7212 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7213 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7214 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7215 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7216 s,@LIBOBJS@,$LIBOBJS,;t t
7217 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7218 CEOF
7220 _ACEOF
7222 cat >>$CONFIG_STATUS <<\_ACEOF
7223 # Split the substitutions into bite-sized pieces for seds with
7224 # small command number limits, like on Digital OSF/1 and HP-UX.
7225 ac_max_sed_lines=48
7226 ac_sed_frag=1 # Number of current file.
7227 ac_beg=1 # First line for current file.
7228 ac_end=$ac_max_sed_lines # Line after last line for current file.
7229 ac_more_lines=:
7230 ac_sed_cmds=
7231 while $ac_more_lines; do
7232 if test $ac_beg -gt 1; then
7233 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7234 else
7235 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7237 if test ! -s $tmp/subs.frag; then
7238 ac_more_lines=false
7239 else
7240 # The purpose of the label and of the branching condition is to
7241 # speed up the sed processing (if there are no `@' at all, there
7242 # is no need to browse any of the substitutions).
7243 # These are the two extra sed commands mentioned above.
7244 (echo ':t
7245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7246 if test -z "$ac_sed_cmds"; then
7247 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7248 else
7249 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7251 ac_sed_frag=`expr $ac_sed_frag + 1`
7252 ac_beg=$ac_end
7253 ac_end=`expr $ac_end + $ac_max_sed_lines`
7255 done
7256 if test -z "$ac_sed_cmds"; then
7257 ac_sed_cmds=cat
7259 fi # test -n "$CONFIG_FILES"
7261 _ACEOF
7262 cat >>$CONFIG_STATUS <<\_ACEOF
7263 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7265 case $ac_file in
7266 - | *:- | *:-:* ) # input from stdin
7267 cat >$tmp/stdin
7268 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7270 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7271 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7272 * ) ac_file_in=$ac_file.in ;;
7273 esac
7275 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7276 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7278 X"$ac_file" : 'X\(//\)[^/]' \| \
7279 X"$ac_file" : 'X\(//\)$' \| \
7280 X"$ac_file" : 'X\(/\)' \| \
7281 . : '\(.\)' 2>/dev/null ||
7282 echo X"$ac_file" |
7283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7285 /^X\(\/\/\)$/{ s//\1/; q; }
7286 /^X\(\/\).*/{ s//\1/; q; }
7287 s/.*/./; q'`
7288 { if $as_mkdir_p; then
7289 mkdir -p "$ac_dir"
7290 else
7291 as_dir="$ac_dir"
7292 as_dirs=
7293 while test ! -d "$as_dir"; do
7294 as_dirs="$as_dir $as_dirs"
7295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7297 X"$as_dir" : 'X\(//\)[^/]' \| \
7298 X"$as_dir" : 'X\(//\)$' \| \
7299 X"$as_dir" : 'X\(/\)' \| \
7300 . : '\(.\)' 2>/dev/null ||
7301 echo X"$as_dir" |
7302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7304 /^X\(\/\/\)$/{ s//\1/; q; }
7305 /^X\(\/\).*/{ s//\1/; q; }
7306 s/.*/./; q'`
7307 done
7308 test ! -n "$as_dirs" || mkdir $as_dirs
7309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7310 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7311 { (exit 1); exit 1; }; }; }
7313 ac_builddir=.
7315 if test "$ac_dir" != .; then
7316 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7317 # A "../" for each directory in $ac_dir_suffix.
7318 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7319 else
7320 ac_dir_suffix= ac_top_builddir=
7323 case $srcdir in
7324 .) # No --srcdir option. We are building in place.
7325 ac_srcdir=.
7326 if test -z "$ac_top_builddir"; then
7327 ac_top_srcdir=.
7328 else
7329 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7330 fi ;;
7331 [\\/]* | ?:[\\/]* ) # Absolute path.
7332 ac_srcdir=$srcdir$ac_dir_suffix;
7333 ac_top_srcdir=$srcdir ;;
7334 *) # Relative path.
7335 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7336 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7337 esac
7338 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7339 # absolute.
7340 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7341 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7342 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7343 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7346 case $INSTALL in
7347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7348 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7349 esac
7351 if test x"$ac_file" != x-; then
7352 { echo "$as_me:$LINENO: creating $ac_file" >&5
7353 echo "$as_me: creating $ac_file" >&6;}
7354 rm -f "$ac_file"
7356 # Let's still pretend it is `configure' which instantiates (i.e., don't
7357 # use $as_me), people would be surprised to read:
7358 # /* config.h. Generated by config.status. */
7359 if test x"$ac_file" = x-; then
7360 configure_input=
7361 else
7362 configure_input="$ac_file. "
7364 configure_input=$configure_input"Generated from `echo $ac_file_in |
7365 sed 's,.*/,,'` by configure."
7367 # First look for the input files in the build tree, otherwise in the
7368 # src tree.
7369 ac_file_inputs=`IFS=:
7370 for f in $ac_file_in; do
7371 case $f in
7372 -) echo $tmp/stdin ;;
7373 [\\/$]*)
7374 # Absolute (can't be DOS-style, as IFS=:)
7375 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7376 echo "$as_me: error: cannot find input file: $f" >&2;}
7377 { (exit 1); exit 1; }; }
7378 echo $f;;
7379 *) # Relative
7380 if test -f "$f"; then
7381 # Build tree
7382 echo $f
7383 elif test -f "$srcdir/$f"; then
7384 # Source tree
7385 echo $srcdir/$f
7386 else
7387 # /dev/null tree
7388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7389 echo "$as_me: error: cannot find input file: $f" >&2;}
7390 { (exit 1); exit 1; }; }
7391 fi;;
7392 esac
7393 done` || { (exit 1); exit 1; }
7394 _ACEOF
7395 cat >>$CONFIG_STATUS <<_ACEOF
7396 sed "$ac_vpsub
7397 $extrasub
7398 _ACEOF
7399 cat >>$CONFIG_STATUS <<\_ACEOF
7401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7402 s,@configure_input@,$configure_input,;t t
7403 s,@srcdir@,$ac_srcdir,;t t
7404 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7405 s,@top_srcdir@,$ac_top_srcdir,;t t
7406 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7407 s,@builddir@,$ac_builddir,;t t
7408 s,@abs_builddir@,$ac_abs_builddir,;t t
7409 s,@top_builddir@,$ac_top_builddir,;t t
7410 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7411 s,@INSTALL@,$ac_INSTALL,;t t
7412 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7413 rm -f $tmp/stdin
7414 if test x"$ac_file" != x-; then
7415 mv $tmp/out $ac_file
7416 else
7417 cat $tmp/out
7418 rm -f $tmp/out
7421 # Run the commands associated with the file.
7422 case $ac_file in
7423 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7424 esac
7425 done
7426 _ACEOF
7427 cat >>$CONFIG_STATUS <<\_ACEOF
7430 # CONFIG_HEADER section.
7433 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7434 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7436 # ac_d sets the value in "#define NAME VALUE" lines.
7437 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7438 ac_dB='[ ].*$,\1#\2'
7439 ac_dC=' '
7440 ac_dD=',;t'
7441 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7442 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7443 ac_uB='$,\1#\2define\3'
7444 ac_uC=' '
7445 ac_uD=',;t'
7447 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7449 case $ac_file in
7450 - | *:- | *:-:* ) # input from stdin
7451 cat >$tmp/stdin
7452 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7454 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7456 * ) ac_file_in=$ac_file.in ;;
7457 esac
7459 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7460 echo "$as_me: creating $ac_file" >&6;}
7462 # First look for the input files in the build tree, otherwise in the
7463 # src tree.
7464 ac_file_inputs=`IFS=:
7465 for f in $ac_file_in; do
7466 case $f in
7467 -) echo $tmp/stdin ;;
7468 [\\/$]*)
7469 # Absolute (can't be DOS-style, as IFS=:)
7470 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7471 echo "$as_me: error: cannot find input file: $f" >&2;}
7472 { (exit 1); exit 1; }; }
7473 echo $f;;
7474 *) # Relative
7475 if test -f "$f"; then
7476 # Build tree
7477 echo $f
7478 elif test -f "$srcdir/$f"; then
7479 # Source tree
7480 echo $srcdir/$f
7481 else
7482 # /dev/null tree
7483 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7484 echo "$as_me: error: cannot find input file: $f" >&2;}
7485 { (exit 1); exit 1; }; }
7486 fi;;
7487 esac
7488 done` || { (exit 1); exit 1; }
7489 # Remove the trailing spaces.
7490 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7492 _ACEOF
7494 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7495 # `conftest.undefs', that substitutes the proper values into
7496 # config.h.in to produce config.h. The first handles `#define'
7497 # templates, and the second `#undef' templates.
7498 # And first: Protect against being on the right side of a sed subst in
7499 # config.status. Protect against being in an unquoted here document
7500 # in config.status.
7501 rm -f conftest.defines conftest.undefs
7502 # Using a here document instead of a string reduces the quoting nightmare.
7503 # Putting comments in sed scripts is not portable.
7505 # `end' is used to avoid that the second main sed command (meant for
7506 # 0-ary CPP macros) applies to n-ary macro definitions.
7507 # See the Autoconf documentation for `clear'.
7508 cat >confdef2sed.sed <<\_ACEOF
7509 s/[\\&,]/\\&/g
7510 s,[\\$`],\\&,g
7511 t clear
7512 : clear
7513 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7514 t end
7515 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7516 : end
7517 _ACEOF
7518 # If some macros were called several times there might be several times
7519 # the same #defines, which is useless. Nevertheless, we may not want to
7520 # sort them, since we want the *last* AC-DEFINE to be honored.
7521 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7522 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7523 rm -f confdef2sed.sed
7525 # This sed command replaces #undef with comments. This is necessary, for
7526 # example, in the case of _POSIX_SOURCE, which is predefined and required
7527 # on some systems where configure will not decide to define it.
7528 cat >>conftest.undefs <<\_ACEOF
7529 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7530 _ACEOF
7532 # Break up conftest.defines because some shells have a limit on the size
7533 # of here documents, and old seds have small limits too (100 cmds).
7534 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7535 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7536 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7537 echo ' :' >>$CONFIG_STATUS
7538 rm -f conftest.tail
7539 while grep . conftest.defines >/dev/null
7541 # Write a limited-size here document to $tmp/defines.sed.
7542 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7543 # Speed up: don't consider the non `#define' lines.
7544 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7545 # Work around the forget-to-reset-the-flag bug.
7546 echo 't clr' >>$CONFIG_STATUS
7547 echo ': clr' >>$CONFIG_STATUS
7548 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7549 echo 'CEOF
7550 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7551 rm -f $tmp/in
7552 mv $tmp/out $tmp/in
7553 ' >>$CONFIG_STATUS
7554 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7555 rm -f conftest.defines
7556 mv conftest.tail conftest.defines
7557 done
7558 rm -f conftest.defines
7559 echo ' fi # grep' >>$CONFIG_STATUS
7560 echo >>$CONFIG_STATUS
7562 # Break up conftest.undefs because some shells have a limit on the size
7563 # of here documents, and old seds have small limits too (100 cmds).
7564 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7565 rm -f conftest.tail
7566 while grep . conftest.undefs >/dev/null
7568 # Write a limited-size here document to $tmp/undefs.sed.
7569 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7570 # Speed up: don't consider the non `#undef'
7571 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7572 # Work around the forget-to-reset-the-flag bug.
7573 echo 't clr' >>$CONFIG_STATUS
7574 echo ': clr' >>$CONFIG_STATUS
7575 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7576 echo 'CEOF
7577 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7578 rm -f $tmp/in
7579 mv $tmp/out $tmp/in
7580 ' >>$CONFIG_STATUS
7581 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7582 rm -f conftest.undefs
7583 mv conftest.tail conftest.undefs
7584 done
7585 rm -f conftest.undefs
7587 cat >>$CONFIG_STATUS <<\_ACEOF
7588 # Let's still pretend it is `configure' which instantiates (i.e., don't
7589 # use $as_me), people would be surprised to read:
7590 # /* config.h. Generated by config.status. */
7591 if test x"$ac_file" = x-; then
7592 echo "/* Generated by configure. */" >$tmp/config.h
7593 else
7594 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7596 cat $tmp/in >>$tmp/config.h
7597 rm -f $tmp/in
7598 if test x"$ac_file" != x-; then
7599 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7601 echo "$as_me: $ac_file is unchanged" >&6;}
7602 else
7603 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7605 X"$ac_file" : 'X\(//\)[^/]' \| \
7606 X"$ac_file" : 'X\(//\)$' \| \
7607 X"$ac_file" : 'X\(/\)' \| \
7608 . : '\(.\)' 2>/dev/null ||
7609 echo X"$ac_file" |
7610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7612 /^X\(\/\/\)$/{ s//\1/; q; }
7613 /^X\(\/\).*/{ s//\1/; q; }
7614 s/.*/./; q'`
7615 { if $as_mkdir_p; then
7616 mkdir -p "$ac_dir"
7617 else
7618 as_dir="$ac_dir"
7619 as_dirs=
7620 while test ! -d "$as_dir"; do
7621 as_dirs="$as_dir $as_dirs"
7622 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7624 X"$as_dir" : 'X\(//\)[^/]' \| \
7625 X"$as_dir" : 'X\(//\)$' \| \
7626 X"$as_dir" : 'X\(/\)' \| \
7627 . : '\(.\)' 2>/dev/null ||
7628 echo X"$as_dir" |
7629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7631 /^X\(\/\/\)$/{ s//\1/; q; }
7632 /^X\(\/\).*/{ s//\1/; q; }
7633 s/.*/./; q'`
7634 done
7635 test ! -n "$as_dirs" || mkdir $as_dirs
7636 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7637 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7638 { (exit 1); exit 1; }; }; }
7640 rm -f $ac_file
7641 mv $tmp/config.h $ac_file
7643 else
7644 cat $tmp/config.h
7645 rm -f $tmp/config.h
7647 done
7648 _ACEOF
7650 cat >>$CONFIG_STATUS <<\_ACEOF
7652 { (exit 0); exit 0; }
7653 _ACEOF
7654 chmod +x $CONFIG_STATUS
7655 ac_clean_files=$ac_clean_files_save
7658 # configure is writing to config.log, and then calls config.status.
7659 # config.status does its own redirection, appending to config.log.
7660 # Unfortunately, on DOS this fails, as config.log is still kept open
7661 # by configure, so config.status won't be able to write to it; its
7662 # output is simply discarded. So we exec the FD to /dev/null,
7663 # effectively closing config.log, so it can be properly (re)opened and
7664 # appended to by config.status. When coming back to configure, we
7665 # need to make the FD available again.
7666 if test "$no_create" != yes; then
7667 ac_cs_success=:
7668 ac_config_status_args=
7669 test "$silent" = yes &&
7670 ac_config_status_args="$ac_config_status_args --quiet"
7671 exec 5>/dev/null
7672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7673 exec 5>>config.log
7674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7675 # would make configure fail if this is the last instruction.
7676 $ac_cs_success || { (exit 1); exit 1; }
7680 # CONFIG_SUBDIRS section.
7682 if test "$no_recursion" != yes; then
7684 # Remove --cache-file and --srcdir arguments so they do not pile up.
7685 ac_sub_configure_args=
7686 ac_prev=
7687 for ac_arg in $ac_configure_args; do
7688 if test -n "$ac_prev"; then
7689 ac_prev=
7690 continue
7692 case $ac_arg in
7693 -cache-file | --cache-file | --cache-fil | --cache-fi \
7694 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7695 ac_prev=cache_file ;;
7696 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7697 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7698 | --c=*)
7700 --config-cache | -C)
7702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7703 ac_prev=srcdir ;;
7704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7706 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7707 ac_prev=prefix ;;
7708 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7710 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7711 esac
7712 done
7714 # Always prepend --prefix to ensure using the same prefix
7715 # in subdir configurations.
7716 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7718 ac_popdir=`pwd`
7719 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7721 # Do not complain, so a configure script can configure whichever
7722 # parts of a large source tree are present.
7723 test -d $srcdir/$ac_dir || continue
7725 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7726 echo "$as_me: configuring in $ac_dir" >&6;}
7727 { if $as_mkdir_p; then
7728 mkdir -p "$ac_dir"
7729 else
7730 as_dir="$ac_dir"
7731 as_dirs=
7732 while test ! -d "$as_dir"; do
7733 as_dirs="$as_dir $as_dirs"
7734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7736 X"$as_dir" : 'X\(//\)[^/]' \| \
7737 X"$as_dir" : 'X\(//\)$' \| \
7738 X"$as_dir" : 'X\(/\)' \| \
7739 . : '\(.\)' 2>/dev/null ||
7740 echo X"$as_dir" |
7741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7743 /^X\(\/\/\)$/{ s//\1/; q; }
7744 /^X\(\/\).*/{ s//\1/; q; }
7745 s/.*/./; q'`
7746 done
7747 test ! -n "$as_dirs" || mkdir $as_dirs
7748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7750 { (exit 1); exit 1; }; }; }
7752 ac_builddir=.
7754 if test "$ac_dir" != .; then
7755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7756 # A "../" for each directory in $ac_dir_suffix.
7757 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7758 else
7759 ac_dir_suffix= ac_top_builddir=
7762 case $srcdir in
7763 .) # No --srcdir option. We are building in place.
7764 ac_srcdir=.
7765 if test -z "$ac_top_builddir"; then
7766 ac_top_srcdir=.
7767 else
7768 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7769 fi ;;
7770 [\\/]* | ?:[\\/]* ) # Absolute path.
7771 ac_srcdir=$srcdir$ac_dir_suffix;
7772 ac_top_srcdir=$srcdir ;;
7773 *) # Relative path.
7774 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7775 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7776 esac
7777 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7778 # absolute.
7779 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7780 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7781 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7782 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7785 cd $ac_dir
7787 # Check for guested configure; otherwise get Cygnus style configure.
7788 if test -f $ac_srcdir/configure.gnu; then
7789 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7790 elif test -f $ac_srcdir/configure; then
7791 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7792 elif test -f $ac_srcdir/configure.in; then
7793 ac_sub_configure=$ac_configure
7794 else
7795 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7796 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7797 ac_sub_configure=
7800 # The recursion is here.
7801 if test -n "$ac_sub_configure"; then
7802 # Make the cache file name correct relative to the subdirectory.
7803 case $cache_file in
7804 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7805 *) # Relative path.
7806 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7807 esac
7809 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7810 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7811 # The eval makes quoting arguments work.
7812 eval $ac_sub_configure $ac_sub_configure_args \
7813 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7814 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7815 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7816 { (exit 1); exit 1; }; }
7819 cd $ac_popdir
7820 done