Fixed thread safe "pure" parser using later versions of bison, thanks Matthew Hodgson.
[pwlib.git] / configure
blob7e08b35451de50dec770df9ee051f61e8ce08a9a
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 CC CFLAGS ac_ct_CC CXXCPP EGREP HAS_REGEX HAS_PLUGINS HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_SDL HAS_IPV6 STDCCFLAGS OPTSTDCCFLAGS ENDLDLIBS 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_CC_set=${CC+set}
770 ac_env_CC_value=$CC
771 ac_cv_env_CC_set=${CC+set}
772 ac_cv_env_CC_value=$CC
773 ac_env_CFLAGS_set=${CFLAGS+set}
774 ac_env_CFLAGS_value=$CFLAGS
775 ac_cv_env_CFLAGS_set=${CFLAGS+set}
776 ac_cv_env_CFLAGS_value=$CFLAGS
777 ac_env_CXXCPP_set=${CXXCPP+set}
778 ac_env_CXXCPP_value=$CXXCPP
779 ac_cv_env_CXXCPP_set=${CXXCPP+set}
780 ac_cv_env_CXXCPP_value=$CXXCPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 --target=TARGET configure for building compilers for TARGET [HOST]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-plugins enable plugins' support in PWLIB
857 --disable-resolver disable DNS resolver support in PWLIB
858 --disable-openldap disable OpenLDAP support in PWLIB
859 --disable-openssl disable OpenSSL support in PWLIB
860 --disable-expat disable XML support in PWLIB
861 --disable-sdl disable SDL support in PWLIB
862 --disable-ipv6 disable IPV6 support in PWLIB
863 --disable-qos disable QOS support in PWLIB
864 --disable-video disable video device support in PWLIB
866 Some influential environment variables:
867 CXX C++ compiler command
868 CXXFLAGS C++ compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CC C compiler command
874 CFLAGS C compiler flags
875 CXXCPP C++ preprocessor
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
913 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
914 # absolute.
915 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
917 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
920 cd $ac_dir
921 # Check for guested configure; otherwise get Cygnus style configure.
922 if test -f $ac_srcdir/configure.gnu; then
923 echo
924 $SHELL $ac_srcdir/configure.gnu --help=recursive
925 elif test -f $ac_srcdir/configure; then
926 echo
927 $SHELL $ac_srcdir/configure --help=recursive
928 elif test -f $ac_srcdir/configure.ac ||
929 test -f $ac_srcdir/configure.in; then
930 echo
931 $ac_configure --help
932 else
933 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
935 cd $ac_popdir
936 done
939 test -n "$ac_init_help" && exit 0
940 if $ac_init_version; then
941 cat <<\_ACEOF
943 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944 Free Software Foundation, Inc.
945 This configure script is free software; the Free Software Foundation
946 gives unlimited permission to copy, distribute and modify it.
947 _ACEOF
948 exit 0
950 exec 5>config.log
951 cat >&5 <<_ACEOF
952 This file contains any messages produced by compilers while
953 running configure, to aid debugging if configure makes a mistake.
955 It was created by $as_me, which was
956 generated by GNU Autoconf 2.57. Invocation command line was
958 $ $0 $@
960 _ACEOF
962 cat <<_ASUNAME
963 ## --------- ##
964 ## Platform. ##
965 ## --------- ##
967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
979 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
984 _ASUNAME
986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 for as_dir in $PATH
989 IFS=$as_save_IFS
990 test -z "$as_dir" && as_dir=.
991 echo "PATH: $as_dir"
992 done
994 } >&5
996 cat >&5 <<_ACEOF
999 ## ----------- ##
1000 ## Core tests. ##
1001 ## ----------- ##
1003 _ACEOF
1006 # Keep a trace of the command line.
1007 # Strip out --no-create and --no-recursion so they do not pile up.
1008 # Strip out --silent because we don't want to record it for future runs.
1009 # Also quote any args containing shell meta-characters.
1010 # Make two passes to allow for proper duplicate-argument suppression.
1011 ac_configure_args=
1012 ac_configure_args0=
1013 ac_configure_args1=
1014 ac_sep=
1015 ac_must_keep_next=false
1016 for ac_pass in 1 2
1018 for ac_arg
1020 case $ac_arg in
1021 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 continue ;;
1025 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1026 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1027 esac
1028 case $ac_pass in
1029 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1031 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1032 if test $ac_must_keep_next = true; then
1033 ac_must_keep_next=false # Got value, back to normal.
1034 else
1035 case $ac_arg in
1036 *=* | --config-cache | -C | -disable-* | --disable-* \
1037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1039 | -with-* | --with-* | -without-* | --without-* | --x)
1040 case "$ac_configure_args0 " in
1041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1042 esac
1044 -* ) ac_must_keep_next=true ;;
1045 esac
1047 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1048 # Get rid of the leading space.
1049 ac_sep=" "
1051 esac
1052 done
1053 done
1054 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1055 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1057 # When interrupted or exit'd, cleanup temporary files, and complete
1058 # config.log. We remove comments because anyway the quotes in there
1059 # would cause problems or look ugly.
1060 # WARNING: Be sure not to use single quotes in there, as some shells,
1061 # such as our DU 5.0 friend, will then `close' the trap.
1062 trap 'exit_status=$?
1063 # Save into config.log some information that might help in debugging.
1065 echo
1067 cat <<\_ASBOX
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1071 _ASBOX
1072 echo
1073 # The following way of writing the cache mishandles newlines in values,
1075 (set) 2>&1 |
1076 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077 *ac_space=\ *)
1078 sed -n \
1079 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083 sed -n \
1084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1086 esac;
1088 echo
1090 cat <<\_ASBOX
1091 ## ----------------- ##
1092 ## Output variables. ##
1093 ## ----------------- ##
1094 _ASBOX
1095 echo
1096 for ac_var in $ac_subst_vars
1098 eval ac_val=$`echo $ac_var`
1099 echo "$ac_var='"'"'$ac_val'"'"'"
1100 done | sort
1101 echo
1103 if test -n "$ac_subst_files"; then
1104 cat <<\_ASBOX
1105 ## ------------- ##
1106 ## Output files. ##
1107 ## ------------- ##
1108 _ASBOX
1109 echo
1110 for ac_var in $ac_subst_files
1112 eval ac_val=$`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1114 done | sort
1115 echo
1118 if test -s confdefs.h; then
1119 cat <<\_ASBOX
1120 ## ----------- ##
1121 ## confdefs.h. ##
1122 ## ----------- ##
1123 _ASBOX
1124 echo
1125 sed "/^$/d" confdefs.h | sort
1126 echo
1128 test "$ac_signal" != 0 &&
1129 echo "$as_me: caught signal $ac_signal"
1130 echo "$as_me: exit $exit_status"
1131 } >&5
1132 rm -f core core.* *.core &&
1133 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134 exit $exit_status
1136 for ac_signal in 1 2 13 15; do
1137 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138 done
1139 ac_signal=0
1141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1142 rm -rf conftest* confdefs.h
1143 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 echo >confdefs.h
1146 # Predefined preprocessor variables.
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_NAME "$PACKAGE_NAME"
1150 _ACEOF
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155 _ACEOF
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1160 _ACEOF
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_STRING "$PACKAGE_STRING"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170 _ACEOF
1173 # Let the site file select an alternate cache file if it wants to.
1174 # Prefer explicitly selected file to automatically selected ones.
1175 if test -z "$CONFIG_SITE"; then
1176 if test "x$prefix" != xNONE; then
1177 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1178 else
1179 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1182 for ac_site_file in $CONFIG_SITE; do
1183 if test -r "$ac_site_file"; then
1184 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1185 echo "$as_me: loading site script $ac_site_file" >&6;}
1186 sed 's/^/| /' "$ac_site_file" >&5
1187 . "$ac_site_file"
1189 done
1191 if test -r "$cache_file"; then
1192 # Some versions of bash will fail to source /dev/null (special
1193 # files actually), so we avoid doing that.
1194 if test -f "$cache_file"; then
1195 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1196 echo "$as_me: loading cache $cache_file" >&6;}
1197 case $cache_file in
1198 [\\/]* | ?:[\\/]* ) . $cache_file;;
1199 *) . ./$cache_file;;
1200 esac
1202 else
1203 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1204 echo "$as_me: creating cache $cache_file" >&6;}
1205 >$cache_file
1208 # Check that the precious variables saved in the cache have kept the same
1209 # value.
1210 ac_cache_corrupted=false
1211 for ac_var in `(set) 2>&1 |
1212 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1213 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1214 eval ac_new_set=\$ac_env_${ac_var}_set
1215 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1216 eval ac_new_val="\$ac_env_${ac_var}_value"
1217 case $ac_old_set,$ac_new_set in
1218 set,)
1219 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1221 ac_cache_corrupted=: ;;
1222 ,set)
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1226 ,);;
1228 if test "x$ac_old_val" != "x$ac_new_val"; then
1229 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1230 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1231 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1232 echo "$as_me: former value: $ac_old_val" >&2;}
1233 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1234 echo "$as_me: current value: $ac_new_val" >&2;}
1235 ac_cache_corrupted=:
1236 fi;;
1237 esac
1238 # Pass precious variables to config.status.
1239 if test "$ac_new_set" = set; then
1240 case $ac_new_val in
1241 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1243 *) ac_arg=$ac_var=$ac_new_val ;;
1244 esac
1245 case " $ac_configure_args " in
1246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1247 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248 esac
1250 done
1251 if $ac_cache_corrupted; then
1252 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1253 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1254 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1255 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1256 { (exit 1); exit 1; }; }
1259 ac_ext=c
1260 ac_cpp='$CPP $CPPFLAGS'
1261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284 ac_aux_dir=
1285 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1286 if test -f $ac_dir/install-sh; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/install-sh -c"
1289 break
1290 elif test -f $ac_dir/install.sh; then
1291 ac_aux_dir=$ac_dir
1292 ac_install_sh="$ac_aux_dir/install.sh -c"
1293 break
1294 elif test -f $ac_dir/shtool; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/shtool install -c"
1297 break
1299 done
1300 if test -z "$ac_aux_dir"; then
1301 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1302 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1303 { (exit 1); exit 1; }; }
1305 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1306 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1307 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1311 subdirs="$subdirs plugins"
1314 ac_ext=cc
1315 ac_cpp='$CXXCPP $CPPFLAGS'
1316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1319 if test -n "$ac_tool_prefix"; then
1320 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_CXX+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329 if test -n "$CXX"; then
1330 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1331 else
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 break 2
1343 done
1344 done
1348 CXX=$ac_cv_prog_CXX
1349 if test -n "$CXX"; then
1350 echo "$as_me:$LINENO: result: $CXX" >&5
1351 echo "${ECHO_T}$CXX" >&6
1352 else
1353 echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1357 test -n "$CXX" && break
1358 done
1360 if test -z "$CXX"; then
1361 ac_ct_CXX=$CXX
1362 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1364 # Extract the first word of "$ac_prog", so it can be a program name with args.
1365 set dummy $ac_prog; ac_word=$2
1366 echo "$as_me:$LINENO: checking for $ac_word" >&5
1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 if test -n "$ac_ct_CXX"; then
1372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1373 else
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1377 IFS=$as_save_IFS
1378 test -z "$as_dir" && as_dir=.
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381 ac_cv_prog_ac_ct_CXX="$ac_prog"
1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 break 2
1385 done
1386 done
1390 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1391 if test -n "$ac_ct_CXX"; then
1392 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1393 echo "${ECHO_T}$ac_ct_CXX" >&6
1394 else
1395 echo "$as_me:$LINENO: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1399 test -n "$ac_ct_CXX" && break
1400 done
1401 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1403 CXX=$ac_ct_CXX
1407 # Provide some information about the compiler.
1408 echo "$as_me:$LINENO:" \
1409 "checking for C++ compiler version" >&5
1410 ac_compiler=`set X $ac_compile; echo $2`
1411 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1412 (eval $ac_compiler --version </dev/null >&5) 2>&5
1413 ac_status=$?
1414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1415 (exit $ac_status); }
1416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1417 (eval $ac_compiler -v </dev/null >&5) 2>&5
1418 ac_status=$?
1419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1422 (eval $ac_compiler -V </dev/null >&5) 2>&5
1423 ac_status=$?
1424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1427 cat >conftest.$ac_ext <<_ACEOF
1428 #line $LINENO "configure"
1429 /* confdefs.h. */
1430 _ACEOF
1431 cat confdefs.h >>conftest.$ac_ext
1432 cat >>conftest.$ac_ext <<_ACEOF
1433 /* end confdefs.h. */
1436 main ()
1440 return 0;
1442 _ACEOF
1443 ac_clean_files_save=$ac_clean_files
1444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1445 # Try to create an executable without -o first, disregard a.out.
1446 # It will help us diagnose broken compilers, and finding out an intuition
1447 # of exeext.
1448 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1449 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1452 (eval $ac_link_default) 2>&5
1453 ac_status=$?
1454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1455 (exit $ac_status); }; then
1456 # Find the output, starting from the most likely. This scheme is
1457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1458 # resort.
1460 # Be careful to initialize this variable, since it used to be cached.
1461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1462 ac_cv_exeext=
1463 # b.out is created by i960 compilers.
1464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1466 test -f "$ac_file" || continue
1467 case $ac_file in
1468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1470 conftest.$ac_ext )
1471 # This is the source file.
1473 [ab].out )
1474 # We found the default executable, but exeext='' is most
1475 # certainly right.
1476 break;;
1477 *.* )
1478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1479 # FIXME: I believe we export ac_cv_exeext for Libtool,
1480 # but it would be cool to find out if it's true. Does anybody
1481 # maintain Libtool? --akim.
1482 export ac_cv_exeext
1483 break;;
1485 break;;
1486 esac
1487 done
1488 else
1489 echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1492 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1493 See \`config.log' for more details." >&5
1494 echo "$as_me: error: C++ compiler cannot create executables
1495 See \`config.log' for more details." >&2;}
1496 { (exit 77); exit 77; }; }
1499 ac_exeext=$ac_cv_exeext
1500 echo "$as_me:$LINENO: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1503 # Check the compiler produces executables we can run. If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1506 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510 if { ac_try='./$ac_file'
1511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1512 (eval $ac_try) 2>&5
1513 ac_status=$?
1514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1515 (exit $ac_status); }; }; then
1516 cross_compiling=no
1517 else
1518 if test "$cross_compiling" = maybe; then
1519 cross_compiling=yes
1520 else
1521 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1522 If you meant to cross compile, use \`--host'.
1523 See \`config.log' for more details." >&5
1524 echo "$as_me: error: cannot run C++ compiled programs.
1525 If you meant to cross compile, use \`--host'.
1526 See \`config.log' for more details." >&2;}
1527 { (exit 1); exit 1; }; }
1531 echo "$as_me:$LINENO: result: yes" >&5
1532 echo "${ECHO_T}yes" >&6
1534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1535 ac_clean_files=$ac_clean_files_save
1536 # Check the compiler produces executables we can run. If not, either
1537 # the compiler is broken, or we cross compile.
1538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1541 echo "${ECHO_T}$cross_compiling" >&6
1543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1546 (eval $ac_link) 2>&5
1547 ac_status=$?
1548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1549 (exit $ac_status); }; then
1550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1552 # work properly (i.e., refer to `conftest.exe'), while it won't with
1553 # `rm'.
1554 for ac_file in conftest.exe conftest conftest.*; do
1555 test -f "$ac_file" || continue
1556 case $ac_file in
1557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1559 export ac_cv_exeext
1560 break;;
1561 * ) break;;
1562 esac
1563 done
1564 else
1565 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1566 See \`config.log' for more details." >&5
1567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1568 See \`config.log' for more details." >&2;}
1569 { (exit 1); exit 1; }; }
1572 rm -f conftest$ac_cv_exeext
1573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1574 echo "${ECHO_T}$ac_cv_exeext" >&6
1576 rm -f conftest.$ac_ext
1577 EXEEXT=$ac_cv_exeext
1578 ac_exeext=$EXEEXT
1579 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1580 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1581 if test "${ac_cv_objext+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 cat >conftest.$ac_ext <<_ACEOF
1585 #line $LINENO "configure"
1586 /* confdefs.h. */
1587 _ACEOF
1588 cat confdefs.h >>conftest.$ac_ext
1589 cat >>conftest.$ac_ext <<_ACEOF
1590 /* end confdefs.h. */
1593 main ()
1597 return 0;
1599 _ACEOF
1600 rm -f conftest.o conftest.obj
1601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1602 (eval $ac_compile) 2>&5
1603 ac_status=$?
1604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605 (exit $ac_status); }; then
1606 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1607 case $ac_file in
1608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1610 break;;
1611 esac
1612 done
1613 else
1614 echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1618 See \`config.log' for more details." >&5
1619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1620 See \`config.log' for more details." >&2;}
1621 { (exit 1); exit 1; }; }
1624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1626 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1627 echo "${ECHO_T}$ac_cv_objext" >&6
1628 OBJEXT=$ac_cv_objext
1629 ac_objext=$OBJEXT
1630 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1631 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1632 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635 cat >conftest.$ac_ext <<_ACEOF
1636 #line $LINENO "configure"
1637 /* confdefs.h. */
1638 _ACEOF
1639 cat confdefs.h >>conftest.$ac_ext
1640 cat >>conftest.$ac_ext <<_ACEOF
1641 /* end confdefs.h. */
1644 main ()
1646 #ifndef __GNUC__
1647 choke me
1648 #endif
1651 return 0;
1653 _ACEOF
1654 rm -f conftest.$ac_objext
1655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1656 (eval $ac_compile) 2>&5
1657 ac_status=$?
1658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659 (exit $ac_status); } &&
1660 { ac_try='test -s conftest.$ac_objext'
1661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1662 (eval $ac_try) 2>&5
1663 ac_status=$?
1664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665 (exit $ac_status); }; }; then
1666 ac_compiler_gnu=yes
1667 else
1668 echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671 ac_compiler_gnu=no
1673 rm -f conftest.$ac_objext conftest.$ac_ext
1674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1677 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1678 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1679 GXX=`test $ac_compiler_gnu = yes && echo yes`
1680 ac_test_CXXFLAGS=${CXXFLAGS+set}
1681 ac_save_CXXFLAGS=$CXXFLAGS
1682 CXXFLAGS="-g"
1683 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1684 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1685 if test "${ac_cv_prog_cxx_g+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 cat >conftest.$ac_ext <<_ACEOF
1689 #line $LINENO "configure"
1690 /* confdefs.h. */
1691 _ACEOF
1692 cat confdefs.h >>conftest.$ac_ext
1693 cat >>conftest.$ac_ext <<_ACEOF
1694 /* end confdefs.h. */
1697 main ()
1701 return 0;
1703 _ACEOF
1704 rm -f conftest.$ac_objext
1705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1706 (eval $ac_compile) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); } &&
1710 { ac_try='test -s conftest.$ac_objext'
1711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1712 (eval $ac_try) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }; }; then
1716 ac_cv_prog_cxx_g=yes
1717 else
1718 echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_cv_prog_cxx_g=no
1723 rm -f conftest.$ac_objext conftest.$ac_ext
1725 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1726 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1727 if test "$ac_test_CXXFLAGS" = set; then
1728 CXXFLAGS=$ac_save_CXXFLAGS
1729 elif test $ac_cv_prog_cxx_g = yes; then
1730 if test "$GXX" = yes; then
1731 CXXFLAGS="-g -O2"
1732 else
1733 CXXFLAGS="-g"
1735 else
1736 if test "$GXX" = yes; then
1737 CXXFLAGS="-O2"
1738 else
1739 CXXFLAGS=
1742 for ac_declaration in \
1744 '#include <stdlib.h>' \
1745 'extern "C" void std::exit (int) throw (); using std::exit;' \
1746 'extern "C" void std::exit (int); using std::exit;' \
1747 'extern "C" void exit (int) throw ();' \
1748 'extern "C" void exit (int);' \
1749 'void exit (int);'
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line $LINENO "configure"
1753 /* confdefs.h. */
1754 _ACEOF
1755 cat confdefs.h >>conftest.$ac_ext
1756 cat >>conftest.$ac_ext <<_ACEOF
1757 /* end confdefs.h. */
1758 #include <stdlib.h>
1759 $ac_declaration
1761 main ()
1763 exit (42);
1765 return 0;
1767 _ACEOF
1768 rm -f conftest.$ac_objext
1769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1770 (eval $ac_compile) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); } &&
1774 { ac_try='test -s conftest.$ac_objext'
1775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1776 (eval $ac_try) 2>&5
1777 ac_status=$?
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1781 else
1782 echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 continue
1787 rm -f conftest.$ac_objext conftest.$ac_ext
1788 cat >conftest.$ac_ext <<_ACEOF
1789 #line $LINENO "configure"
1790 /* confdefs.h. */
1791 _ACEOF
1792 cat confdefs.h >>conftest.$ac_ext
1793 cat >>conftest.$ac_ext <<_ACEOF
1794 /* end confdefs.h. */
1795 $ac_declaration
1797 main ()
1799 exit (42);
1801 return 0;
1803 _ACEOF
1804 rm -f conftest.$ac_objext
1805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1806 (eval $ac_compile) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); } &&
1810 { ac_try='test -s conftest.$ac_objext'
1811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1812 (eval $ac_try) 2>&5
1813 ac_status=$?
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }; }; then
1816 break
1817 else
1818 echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1822 rm -f conftest.$ac_objext conftest.$ac_ext
1823 done
1824 rm -f conftest*
1825 if test -n "$ac_declaration"; then
1826 echo '#ifdef __cplusplus' >>confdefs.h
1827 echo $ac_declaration >>confdefs.h
1828 echo '#endif' >>confdefs.h
1831 ac_ext=c
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 PWLIBDIR=`pwd`
1843 if test "x$prefix" = "xNONE"; then
1844 INSTALLPREFIX="/usr/local"
1845 else
1846 INSTALLPREFIX="${prefix}"
1852 LIBDIR="${libdir}"
1856 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1857 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1858 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1859 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1864 MAJOR_VERSION=$MAJOR_VERSION
1866 MINOR_VERSION=$MINOR_VERSION
1868 BUILD_NUMBER=$BUILD_NUMBER
1871 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1872 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1874 cat >>confdefs.h <<_ACEOF
1875 #define PWLIB_MAJOR $MAJOR_VERSION
1876 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PWLIB_MINOR $MINOR_VERSION
1880 _ACEOF
1882 cat >>confdefs.h <<_ACEOF
1883 #define PWLIB_BUILD $BUILD_NUMBER
1884 _ACEOF
1886 cat >>confdefs.h <<_ACEOF
1887 #define PWLIB_VERSION "$PWLIB_VERSION"
1888 _ACEOF
1892 # Make sure we can run config.sub.
1893 $ac_config_sub sun4 >/dev/null 2>&1 ||
1894 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1895 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1896 { (exit 1); exit 1; }; }
1898 echo "$as_me:$LINENO: checking build system type" >&5
1899 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1900 if test "${ac_cv_build+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 ac_cv_build_alias=$build_alias
1904 test -z "$ac_cv_build_alias" &&
1905 ac_cv_build_alias=`$ac_config_guess`
1906 test -z "$ac_cv_build_alias" &&
1907 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1908 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1909 { (exit 1); exit 1; }; }
1910 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1911 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1912 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1913 { (exit 1); exit 1; }; }
1916 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1917 echo "${ECHO_T}$ac_cv_build" >&6
1918 build=$ac_cv_build
1919 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1920 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1921 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1924 echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1926 if test "${ac_cv_host+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 ac_cv_host_alias=$host_alias
1930 test -z "$ac_cv_host_alias" &&
1931 ac_cv_host_alias=$ac_cv_build_alias
1932 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1933 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1934 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1938 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1939 echo "${ECHO_T}$ac_cv_host" >&6
1940 host=$ac_cv_host
1941 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1942 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1943 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1946 echo "$as_me:$LINENO: checking target system type" >&5
1947 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1948 if test "${ac_cv_target+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 ac_cv_target_alias=$target_alias
1952 test "x$ac_cv_target_alias" = "x" &&
1953 ac_cv_target_alias=$ac_cv_host_alias
1954 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1955 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1956 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1957 { (exit 1); exit 1; }; }
1960 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1961 echo "${ECHO_T}$ac_cv_target" >&6
1962 target=$ac_cv_target
1963 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1964 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1965 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1968 # The aliases save the names the user supplied, while $host etc.
1969 # will get canonicalized.
1970 test -n "$target_alias" &&
1971 test "$program_prefix$program_suffix$program_transform_name" = \
1972 NONENONEs,x,x, &&
1973 program_prefix=${target_alias}-
1975 TARGETDIR=unix
1976 OSTYPE=
1978 case "$target_os" in
1979 linux*) OSTYPE=linux ;
1980 OSRELEASE=`uname -r` ;
1981 OS_TAG="P_LINUX" ;
1982 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1985 freebsd* ) OSTYPE=FreeBSD ;
1986 OS_TAG="P_FREEBSD" ;
1987 if test "x$OSRELEASE" = "x"; then
1988 OSRELEASE=`sysctl -n kern.osreldate` ;
1990 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
1993 openbsd* ) OSTYPE=OpenBSD ;
1994 OS_TAG="P_OPENBSD" ;
1995 OSRELEASE=`sysctl -n kern.osrevision` ;
1996 ENDLDLIBS="-lossaudio" ;
1997 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2000 netbsd* ) OSTYPE=NetBSD ;
2001 OS_TAG="P_NETBSD" ;
2002 OSRELEASE=`/sbin/sysctl -n kern.osrevision` ;
2003 ENDLDLIBS="-lossaudio" ;
2004 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2007 solaris* | sunos ) OSTYPE=solaris ;
2008 OS_TAG="P_SOLARIS" ;
2009 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2010 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2013 darwin* ) OSTYPE=Darwin ;
2014 OS_TAG="P_MACOSX" ;
2015 OSRELEASE=`uname -r | sed "s/\.//g"` ;
2016 SHAREDLIBEXT="dylib";
2017 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2020 * ) OSTYPE="$target_os" ;
2021 OS_TAG="P_UNKNOWN_OS" ;
2022 OSRELEASE="${OSTYPE}_`uname -r`" ;
2023 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2024 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2026 esac
2028 MACHTYPE=
2030 case "$target_cpu" in
2031 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2034 x86_64) MACHTYPE=x86_64 ;
2035 P_64BIT=1 ;
2038 alpha | alphaev56) MACHTYPE=alpha ;
2039 P_64BIT=1 ;
2042 sparc ) MACHTYPE=sparc ;
2045 powerpc ) MACHTYPE=ppc ;
2048 powerpc64 ) MACHTYPE=ppc ;
2049 P_64BIT=1 ;
2052 ppc64 ) MACHTYPE=ppc ;
2053 P_64BIT=1 ;
2056 ppc ) MACHTYPE=ppc ;
2059 ia64) MACHTYPE=ia64 ;
2060 P_64BIT=1 ;
2063 s390x) MACHTYPE=s390x ;
2064 P_64BIT=1 ;
2067 * ) MACHTYPE=$target_cpu ;
2068 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2069 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2070 esac
2072 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2073 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2074 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2075 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2076 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2077 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2079 MACHTYPE=$MACHTYPE
2081 OSTYPE=$OSTYPE
2083 OSRELEASE=$OSRELEASE
2085 TARGETDIR=$TARGETDIR
2088 cat >>confdefs.h <<_ACEOF
2089 #define $OS_TAG "$OSRELEASE"
2090 _ACEOF
2093 cat >>confdefs.h <<\_ACEOF
2094 #define PHAS_TEMPLATES 1
2095 _ACEOF
2098 if test "x$P_64BIT" != "x" ; then
2099 cat >>confdefs.h <<\_ACEOF
2100 #define P_64BIT 1
2101 _ACEOF
2106 cat >>confdefs.h <<\_ACEOF
2107 #define P_PTHREADS 1
2108 _ACEOF
2110 if test ${OSTYPE} != Darwin ; then
2112 cat >>confdefs.h <<\_ACEOF
2113 #define P_HAS_SEMAPHORES 1
2114 _ACEOF
2119 if test "x${SHAREDLIBEXT}" = "x" ; then
2120 SHAREDLIBEXT="so"
2122 SHAREDLIBEXT=$SHAREDLIBEXT
2125 cat >>confdefs.h <<\_ACEOF
2126 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2127 _ACEOF
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166 echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2168 else
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2174 if test -z "$ac_cv_prog_CC"; then
2175 ac_ct_CC=$CC
2176 # Extract the first word of "gcc", so it can be a program name with args.
2177 set dummy gcc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_ac_ct_CC="gcc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2197 done
2198 done
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2206 else
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2211 CC=$ac_ct_CC
2212 else
2213 CC="$ac_cv_prog_CC"
2216 if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_CC="${ac_tool_prefix}cc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2254 if test -z "$ac_cv_prog_CC"; then
2255 ac_ct_CC=$CC
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_ac_ct_CC="cc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2277 done
2278 done
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2286 else
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2291 CC=$ac_ct_CC
2292 else
2293 CC="$ac_cv_prog_CC"
2297 if test -z "$CC"; then
2298 # Extract the first word of "cc", so it can be a program name with args.
2299 set dummy cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 ac_prog_rejected=no
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2317 ac_prog_rejected=yes
2318 continue
2320 ac_cv_prog_CC="cc"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2324 done
2325 done
2327 if test $ac_prog_rejected = yes; then
2328 # We found a bogon in the path, so make sure we never use it.
2329 set dummy $ac_cv_prog_CC
2330 shift
2331 if test $# != 0; then
2332 # We chose a different compiler from the bogus one.
2333 # However, it has the same basename, so the bogon will be chosen
2334 # first if we set CC to just the basename; use the full file name.
2335 shift
2336 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2341 CC=$ac_cv_prog_CC
2342 if test -n "$CC"; then
2343 echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2345 else
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2351 if test -z "$CC"; then
2352 if test -n "$ac_tool_prefix"; then
2353 for ac_prog in cl
2355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2376 done
2377 done
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383 echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6
2385 else
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2390 test -n "$CC" && break
2391 done
2393 if test -z "$CC"; then
2394 ac_ct_CC=$CC
2395 for ac_prog in cl
2397 # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_CC="$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2418 done
2419 done
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2427 else
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2432 test -n "$ac_ct_CC" && break
2433 done
2435 CC=$ac_ct_CC
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO:" \
2449 "checking for C compiler version" >&5
2450 ac_compiler=`set X $ac_compile; echo $2`
2451 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2452 (eval $ac_compiler --version </dev/null >&5) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }
2456 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2457 (eval $ac_compiler -v </dev/null >&5) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2462 (eval $ac_compiler -V </dev/null >&5) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2467 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2468 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2469 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 main ()
2483 #ifndef __GNUC__
2484 choke me
2485 #endif
2488 return 0;
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 ac_compiler_gnu=yes
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 ac_compiler_gnu=no
2510 rm -f conftest.$ac_objext conftest.$ac_ext
2511 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2514 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2515 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2516 GCC=`test $ac_compiler_gnu = yes && echo yes`
2517 ac_test_CFLAGS=${CFLAGS+set}
2518 ac_save_CFLAGS=$CFLAGS
2519 CFLAGS="-g"
2520 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2522 if test "${ac_cv_prog_cc_g+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2534 main ()
2538 return 0;
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 ac_cv_prog_cc_g=yes
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2558 ac_cv_prog_cc_g=no
2560 rm -f conftest.$ac_objext conftest.$ac_ext
2562 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2564 if test "$ac_test_CFLAGS" = set; then
2565 CFLAGS=$ac_save_CFLAGS
2566 elif test $ac_cv_prog_cc_g = yes; then
2567 if test "$GCC" = yes; then
2568 CFLAGS="-g -O2"
2569 else
2570 CFLAGS="-g"
2572 else
2573 if test "$GCC" = yes; then
2574 CFLAGS="-O2"
2575 else
2576 CFLAGS=
2579 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2580 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2581 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 ac_cv_prog_cc_stdc=no
2585 ac_save_CC=$CC
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #line $LINENO "configure"
2588 /* confdefs.h. */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2593 #include <stdarg.h>
2594 #include <stdio.h>
2595 #include <sys/types.h>
2596 #include <sys/stat.h>
2597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2598 struct buf { int x; };
2599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2600 static char *e (p, i)
2601 char **p;
2602 int i;
2604 return p[i];
2606 static char *f (char * (*g) (char **, int), char **p, ...)
2608 char *s;
2609 va_list v;
2610 va_start (v,p);
2611 s = g (p, va_arg (v,int));
2612 va_end (v);
2613 return s;
2615 int test (int i, double x);
2616 struct s1 {int (*f) (int a);};
2617 struct s2 {int (*f) (double a);};
2618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2619 int argc;
2620 char **argv;
2622 main ()
2624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2626 return 0;
2628 _ACEOF
2629 # Don't try gcc -ansi; that turns off useful extensions and
2630 # breaks some systems' header files.
2631 # AIX -qlanglvl=ansi
2632 # Ultrix and OSF/1 -std1
2633 # HP-UX 10.20 and later -Ae
2634 # HP-UX older versions -Aa -D_HPUX_SOURCE
2635 # SVR4 -Xc -D__EXTENSIONS__
2636 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2638 CC="$ac_save_CC $ac_arg"
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 ac_cv_prog_cc_stdc=$ac_arg
2652 break
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext
2659 done
2660 rm -f conftest.$ac_ext conftest.$ac_objext
2661 CC=$ac_save_CC
2665 case "x$ac_cv_prog_cc_stdc" in
2666 x|xno)
2667 echo "$as_me:$LINENO: result: none needed" >&5
2668 echo "${ECHO_T}none needed" >&6 ;;
2670 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2671 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2672 CC="$CC $ac_cv_prog_cc_stdc" ;;
2673 esac
2675 # Some people use a C++ compiler to compile C. Since we use `exit',
2676 # in C++ we need to declare it. In case someone uses the same compiler
2677 # for both compiling C and C++ we need to have the C++ compiler decide
2678 # the declaration of exit, since it's the most demanding environment.
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #ifndef __cplusplus
2681 choke me
2682 #endif
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 for ac_declaration in \
2698 '#include <stdlib.h>' \
2699 'extern "C" void std::exit (int) throw (); using std::exit;' \
2700 'extern "C" void std::exit (int); using std::exit;' \
2701 'extern "C" void exit (int) throw ();' \
2702 'extern "C" void exit (int);' \
2703 'void exit (int);'
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 #include <stdlib.h>
2713 $ac_declaration
2715 main ()
2717 exit (42);
2719 return 0;
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 continue
2741 rm -f conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 $ac_declaration
2751 main ()
2753 exit (42);
2755 return 0;
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f conftest.$ac_objext conftest.$ac_ext
2777 done
2778 rm -f conftest*
2779 if test -n "$ac_declaration"; then
2780 echo '#ifdef __cplusplus' >>confdefs.h
2781 echo $ac_declaration >>confdefs.h
2782 echo '#endif' >>confdefs.h
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f conftest.$ac_objext conftest.$ac_ext
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2799 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2800 if test "${ac_cv_c_bigendian+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 # See if sys/param.h defines the BYTE_ORDER macro.
2804 cat >conftest.$ac_ext <<_ACEOF
2805 #line $LINENO "configure"
2806 /* confdefs.h. */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2811 #include <sys/types.h>
2812 #include <sys/param.h>
2815 main ()
2817 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2818 bogus endian macros
2819 #endif
2822 return 0;
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 # It does; now see whether it defined to BIG_ENDIAN or not.
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line $LINENO "configure"
2840 /* confdefs.h. */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2845 #include <sys/types.h>
2846 #include <sys/param.h>
2849 main ()
2851 #if BYTE_ORDER != BIG_ENDIAN
2852 not big endian
2853 #endif
2856 return 0;
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_cv_c_bigendian=yes
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 ac_cv_c_bigendian=no
2878 rm -f conftest.$ac_objext conftest.$ac_ext
2879 else
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2883 # It does not; compile a test program.
2884 if test "$cross_compiling" = yes; then
2885 # try to guess the endianness by grepping values into an object file
2886 ac_cv_c_bigendian=unknown
2887 cat >conftest.$ac_ext <<_ACEOF
2888 #line $LINENO "configure"
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2895 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2896 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2897 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2898 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2899 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2901 main ()
2903 _ascii (); _ebcdic ();
2905 return 0;
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2921 ac_cv_c_bigendian=yes
2923 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2924 if test "$ac_cv_c_bigendian" = unknown; then
2925 ac_cv_c_bigendian=no
2926 else
2927 # finding both strings is unlikely to happen, but who knows?
2928 ac_cv_c_bigendian=unknown
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937 else
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2946 main ()
2948 /* Are we little or big endian? From Harbison&Steele. */
2949 union
2951 long l;
2952 char c[sizeof (long)];
2953 } u;
2954 u.l = 1;
2955 exit (u.c[sizeof (long) - 1] == 1);
2957 _ACEOF
2958 rm -f conftest$ac_exeext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2960 (eval $ac_link) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_cv_c_bigendian=no
2970 else
2971 echo "$as_me: program exited with status $ac_status" >&5
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 ( exit $ac_status )
2976 ac_cv_c_bigendian=yes
2978 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 rm -f conftest.$ac_objext conftest.$ac_ext
2983 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2984 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2985 case $ac_cv_c_bigendian in
2986 yes)
2988 cat >>confdefs.h <<\_ACEOF
2989 #define WORDS_BIGENDIAN 1
2990 _ACEOF
2995 { { echo "$as_me:$LINENO: error: unknown endianness
2996 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2997 echo "$as_me: error: unknown endianness
2998 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2999 { (exit 1); exit 1; }; } ;;
3000 esac
3002 if test ${ac_cv_c_bigendian} = yes ; then
3003 PBYTE_ORDER=PBIG_ENDIAN
3004 else
3005 PBYTE_ORDER=PLITTLE_ENDIAN
3009 cat >>confdefs.h <<_ACEOF
3010 #define PBYTE_ORDER $PBYTE_ORDER
3011 _ACEOF
3014 ac_ext=cc
3015 ac_cpp='$CXXCPP $CPPFLAGS'
3016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3022 GCSECTIONS=0
3024 echo "$as_me:$LINENO: checking if linker accepts --gc-sections" >&5
3025 echo $ECHO_N "checking if linker accepts --gc-sections... $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3027 int main(int ac,char **av) { return 0; }
3028 _ACEOF
3029 $CC $CFLAGS -Wl,--gc-sections conftest.c > /dev/null 2>&1
3030 if test $? = 0 ; then
3031 echo "$as_me:$LINENO: result: yes" >&5
3032 echo "${ECHO_T}yes" >&6
3034 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
3035 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
3036 cat >conftest.$ac_ext <<_ACEOF
3037 int main(int ac,char **av) { return 0; }
3038 _ACEOF
3039 $CC $CFLAGS -ffunction-sections -c conftest.c > /dev/null 2>&1
3040 if test $? = 0 ; then
3041 echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6
3043 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
3044 GCSECTIONS=1
3045 else
3046 echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6
3050 echo "$as_me:$LINENO: checking if compiler accepts -fdata-sections" >&5
3051 echo $ECHO_N "checking if compiler accepts -fdata-sections... $ECHO_C" >&6
3052 cat >conftest.$ac_ext <<_ACEOF
3053 int main(int ac,char **av) { return 0; }
3054 _ACEOF
3055 $CC $CFLAGS -fdata-sections -c conftest.c > /dev/null 2>&1
3056 if test $? = 0 ; then
3057 echo "$as_me:$LINENO: result: yes" >&5
3058 echo "${ECHO_T}yes" >&6
3059 STDCCFLAGS="$STDCCFLAGS -fdata-sections"
3060 GCSECTIONS=1
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3066 echo "$as_me:$LINENO: checking if compiler accepts -fvtable-gc" >&5
3067 echo $ECHO_N "checking if compiler accepts -fvtable-gc... $ECHO_C" >&6
3068 cat >conftest.$ac_ext <<_ACEOF
3069 int main(int ac,char **av) { return 0; }
3070 _ACEOF
3071 $CPLUSPLUS $CFLAGS -fvtable-gc -c conftest.c > /dev/null 2>&1
3072 if test $? = 0 ; then
3073 echo "$as_me:$LINENO: result: yes" >&5
3074 echo "${ECHO_T}yes" >&6
3075 STDCCFLAGS="$STDCCFLAGS -fvtable-gc"
3076 GCSECTIONS=1
3077 else
3078 echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6
3082 if test $GCSECTIONS = 1; then
3083 if test "${OSTYPE}" != "Darwin" ; then
3084 LDFLAGS="$LDFLAGS -Wl,--gc-sections"
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3095 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
3096 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
3097 if test "${ac_cv_c_long_double+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3107 #include <float.h>
3108 long double foo = 0.0;
3110 main ()
3112 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
3113 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
3114 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
3115 test_array [0] = 0
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 ac_cv_c_long_double=yes
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_cv_c_long_double=no
3140 rm -f conftest.$ac_objext conftest.$ac_ext
3142 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
3143 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3144 if test $ac_cv_c_long_double = yes; then
3146 cat >>confdefs.h <<\_ACEOF
3147 #define HAVE_LONG_DOUBLE 1
3148 _ACEOF
3152 if test $ac_cv_c_long_double != yes ; then
3153 cat >>confdefs.h <<\_ACEOF
3154 #define PNO_LONG_DOUBLE 1
3155 _ACEOF
3162 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3163 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3164 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 ac_check_lib_save_LIBS=$LIBS
3168 LIBS="-lpthread $LIBS"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 #ifdef __cplusplus
3179 extern "C"
3180 #endif
3181 /* We use char because int might match the return type of a gcc2
3182 builtin and then its argument prototype would still apply. */
3183 char pthread_create ();
3185 main ()
3187 pthread_create ();
3189 return 0;
3191 _ACEOF
3192 rm -f conftest.$ac_objext conftest$ac_exeext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194 (eval $ac_link) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } &&
3198 { ac_try='test -s conftest$ac_exeext'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 ac_cv_lib_pthread_pthread_create=yes
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 ac_cv_lib_pthread_pthread_create=no
3211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3212 LIBS=$ac_check_lib_save_LIBS
3214 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3215 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3216 if test $ac_cv_lib_pthread_pthread_create = yes; then
3217 HAS_PTHREADS=yes
3218 else
3219 HAS_PTHREADS=no
3222 if test ${HAS_PTHREADS} = yes ; then
3223 ENDLDLIBS="$ENDLDLIBS -lpthread"
3224 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
3225 else
3226 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
3227 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
3228 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 ac_check_lib_save_LIBS=$LIBS
3232 LIBS="-lc_r $LIBS"
3233 cat >conftest.$ac_ext <<_ACEOF
3234 #line $LINENO "configure"
3235 /* confdefs.h. */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3241 /* Override any gcc2 internal prototype to avoid an error. */
3242 #ifdef __cplusplus
3243 extern "C"
3244 #endif
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3247 char pthread_create ();
3249 main ()
3251 pthread_create ();
3253 return 0;
3255 _ACEOF
3256 rm -f conftest.$ac_objext conftest$ac_exeext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -s conftest$ac_exeext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3268 ac_cv_lib_c_r_pthread_create=yes
3269 else
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 ac_cv_lib_c_r_pthread_create=no
3275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3276 LIBS=$ac_check_lib_save_LIBS
3278 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
3279 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
3280 if test $ac_cv_lib_c_r_pthread_create = yes; then
3281 HAS_PTHREADS=yes
3282 else
3283 HAS_PTHREADS=no
3286 if test ${HAS_PTHREADS} = yes ; then
3287 ENDLDLIBS="$ENDLDLIBS -pthread"
3288 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
3293 if test ${HAS_PTHREADS} != yes ; then
3294 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
3295 echo "$as_me: error: must have pthreads!" >&2;}
3296 { (exit 1); exit 1; }; }
3299 echo "$as_me:$LINENO: checking for regcomp" >&5
3300 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
3301 if test "${ac_cv_func_regcomp+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 /* System header to define __stub macros and hopefully few prototypes,
3312 which can conflict with char regcomp (); below.
3313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 <limits.h> exists even on freestanding compilers. */
3315 #ifdef __STDC__
3316 # include <limits.h>
3317 #else
3318 # include <assert.h>
3319 #endif
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 #ifdef __cplusplus
3322 extern "C"
3324 #endif
3325 /* We use char because int might match the return type of a gcc2
3326 builtin and then its argument prototype would still apply. */
3327 char regcomp ();
3328 /* The GNU C library defines this for functions which it implements
3329 to always fail with ENOSYS. Some functions are actually named
3330 something starting with __ and the normal name is an alias. */
3331 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3332 choke me
3333 #else
3334 char (*f) () = regcomp;
3335 #endif
3336 #ifdef __cplusplus
3338 #endif
3341 main ()
3343 return f != regcomp;
3345 return 0;
3347 _ACEOF
3348 rm -f conftest.$ac_objext conftest$ac_exeext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3350 (eval $ac_link) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -s conftest$ac_exeext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_func_regcomp=yes
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 ac_cv_func_regcomp=no
3367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3369 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
3370 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
3371 if test $ac_cv_func_regcomp = yes; then
3372 HAS_REGEX=1
3375 if test "x$HAS_REGEX" != "x" ; then
3376 ac_ext=cc
3377 ac_cpp='$CXXCPP $CPPFLAGS'
3378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3381 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3382 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3383 if test -z "$CXXCPP"; then
3384 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 # Double quotes because CXXCPP needs to be expanded
3388 for CXXCPP in "$CXX -E" "/lib/cpp"
3390 ac_preproc_ok=false
3391 for ac_cxx_preproc_warn_flag in '' yes
3393 # Use a header file that comes with gcc, so configuring glibc
3394 # with a fresh cross-compiler works.
3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396 # <limits.h> exists even on freestanding compilers.
3397 # On the NeXT, cc -E runs the code through the compiler's parser,
3398 # not just through cpp. "Syntax error" is here to catch this case.
3399 cat >conftest.$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #ifdef __STDC__
3407 # include <limits.h>
3408 #else
3409 # include <assert.h>
3410 #endif
3411 Syntax error
3412 _ACEOF
3413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_cxx_preproc_warn_flag
3423 else
3424 ac_cpp_err=
3426 else
3427 ac_cpp_err=yes
3429 if test -z "$ac_cpp_err"; then
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Broken: fails on valid input.
3436 continue
3438 rm -f conftest.err conftest.$ac_ext
3440 # OK, works on sane cases. Now check whether non-existent headers
3441 # can be detected and how.
3442 cat >conftest.$ac_ext <<_ACEOF
3443 #line $LINENO "configure"
3444 /* confdefs.h. */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 #include <ac_nonexistent.h>
3450 _ACEOF
3451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_cxx_preproc_warn_flag
3461 else
3462 ac_cpp_err=
3464 else
3465 ac_cpp_err=yes
3467 if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3469 continue
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3478 rm -f conftest.err conftest.$ac_ext
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484 break
3487 done
3488 ac_cv_prog_CXXCPP=$CXXCPP
3491 CXXCPP=$ac_cv_prog_CXXCPP
3492 else
3493 ac_cv_prog_CXXCPP=$CXXCPP
3495 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3496 echo "${ECHO_T}$CXXCPP" >&6
3497 ac_preproc_ok=false
3498 for ac_cxx_preproc_warn_flag in '' yes
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat >conftest.$ac_ext <<_ACEOF
3507 #line $LINENO "configure"
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #ifdef __STDC__
3514 # include <limits.h>
3515 #else
3516 # include <assert.h>
3517 #endif
3518 Syntax error
3519 _ACEOF
3520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_cxx_preproc_warn_flag
3530 else
3531 ac_cpp_err=
3533 else
3534 ac_cpp_err=yes
3536 if test -z "$ac_cpp_err"; then
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Broken: fails on valid input.
3543 continue
3545 rm -f conftest.err conftest.$ac_ext
3547 # OK, works on sane cases. Now check whether non-existent headers
3548 # can be detected and how.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 #line $LINENO "configure"
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <ac_nonexistent.h>
3557 _ACEOF
3558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } >/dev/null; then
3566 if test -s conftest.err; then
3567 ac_cpp_err=$ac_cxx_preproc_warn_flag
3568 else
3569 ac_cpp_err=
3571 else
3572 ac_cpp_err=yes
3574 if test -z "$ac_cpp_err"; then
3575 # Broken: success on invalid input.
3576 continue
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 # Passes both tests.
3582 ac_preproc_ok=:
3583 break
3585 rm -f conftest.err conftest.$ac_ext
3587 done
3588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3589 rm -f conftest.err conftest.$ac_ext
3590 if $ac_preproc_ok; then
3592 else
3593 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3594 See \`config.log' for more details." >&5
3595 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3596 See \`config.log' for more details." >&2;}
3597 { (exit 1); exit 1; }; }
3600 ac_ext=cc
3601 ac_cpp='$CXXCPP $CPPFLAGS'
3602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3607 echo "$as_me:$LINENO: checking for egrep" >&5
3608 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3609 if test "${ac_cv_prog_egrep+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3613 then ac_cv_prog_egrep='grep -E'
3614 else ac_cv_prog_egrep='egrep'
3617 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3618 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3619 EGREP=$ac_cv_prog_egrep
3622 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3623 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3624 if test "${ac_cv_header_stdc+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line $LINENO "configure"
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <stdlib.h>
3635 #include <stdarg.h>
3636 #include <string.h>
3637 #include <float.h>
3640 main ()
3644 return 0;
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_cv_header_stdc=yes
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 ac_cv_header_stdc=no
3666 rm -f conftest.$ac_objext conftest.$ac_ext
3668 if test $ac_cv_header_stdc = yes; then
3669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 #include <string.h>
3679 _ACEOF
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 $EGREP "memchr" >/dev/null 2>&1; then
3683 else
3684 ac_cv_header_stdc=no
3686 rm -f conftest*
3690 if test $ac_cv_header_stdc = yes; then
3691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3692 cat >conftest.$ac_ext <<_ACEOF
3693 #line $LINENO "configure"
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <stdlib.h>
3701 _ACEOF
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 $EGREP "free" >/dev/null 2>&1; then
3705 else
3706 ac_cv_header_stdc=no
3708 rm -f conftest*
3712 if test $ac_cv_header_stdc = yes; then
3713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3714 if test "$cross_compiling" = yes; then
3716 else
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <ctype.h>
3725 #if ((' ' & 0x0FF) == 0x020)
3726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3728 #else
3729 # define ISLOWER(c) \
3730 (('a' <= (c) && (c) <= 'i') \
3731 || ('j' <= (c) && (c) <= 'r') \
3732 || ('s' <= (c) && (c) <= 'z'))
3733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3734 #endif
3736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3738 main ()
3740 int i;
3741 for (i = 0; i < 256; i++)
3742 if (XOR (islower (i), ISLOWER (i))
3743 || toupper (i) != TOUPPER (i))
3744 exit(2);
3745 exit (0);
3747 _ACEOF
3748 rm -f conftest$ac_exeext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3750 (eval $ac_link) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
3760 else
3761 echo "$as_me: program exited with status $ac_status" >&5
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 ( exit $ac_status )
3766 ac_cv_header_stdc=no
3768 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3772 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3773 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3774 if test $ac_cv_header_stdc = yes; then
3776 cat >>confdefs.h <<\_ACEOF
3777 #define STDC_HEADERS 1
3778 _ACEOF
3782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3793 inttypes.h stdint.h unistd.h
3795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796 echo "$as_me:$LINENO: checking for $ac_header" >&5
3797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808 $ac_includes_default
3810 #include <$ac_header>
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 eval "$as_ac_Header=yes"
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 eval "$as_ac_Header=no"
3831 rm -f conftest.$ac_objext conftest.$ac_ext
3833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3836 cat >>confdefs.h <<_ACEOF
3837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3838 _ACEOF
3842 done
3846 for ac_header in regex.h
3848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3850 echo "$as_me:$LINENO: checking for $ac_header" >&5
3851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3857 else
3858 # Is the header compilable?
3859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 $ac_includes_default
3869 #include <$ac_header>
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_header_compiler=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_header_compiler=no
3890 rm -f conftest.$ac_objext conftest.$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3892 echo "${ECHO_T}$ac_header_compiler" >&6
3894 # Is the header present?
3895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3897 cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <$ac_header>
3905 _ACEOF
3906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } >/dev/null; then
3914 if test -s conftest.err; then
3915 ac_cpp_err=$ac_cxx_preproc_warn_flag
3916 else
3917 ac_cpp_err=
3919 else
3920 ac_cpp_err=yes
3922 if test -z "$ac_cpp_err"; then
3923 ac_header_preproc=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_header_preproc=no
3930 rm -f conftest.err conftest.$ac_ext
3931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3932 echo "${ECHO_T}$ac_header_preproc" >&6
3934 # So? What about this header?
3935 case $ac_header_compiler:$ac_header_preproc in
3936 yes:no )
3937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3942 cat <<\_ASBOX
3943 ## ------------------------------------ ##
3944 ## Report this to bug-autoconf@gnu.org. ##
3945 ## ------------------------------------ ##
3946 _ASBOX
3948 sed "s/^/$as_me: WARNING: /" >&2
3950 no:yes )
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3958 cat <<\_ASBOX
3959 ## ------------------------------------ ##
3960 ## Report this to bug-autoconf@gnu.org. ##
3961 ## ------------------------------------ ##
3962 _ASBOX
3964 sed "s/^/$as_me: WARNING: /" >&2
3966 esac
3967 echo "$as_me:$LINENO: checking for $ac_header" >&5
3968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 eval "$as_ac_Header=$ac_header_preproc"
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979 cat >>confdefs.h <<_ACEOF
3980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981 _ACEOF
3982 HAS_REGEX=1
3983 else
3984 HAS_REGEX=
3987 done
3992 cat >>confdefs.h <<_ACEOF
3993 #define P_REGEX $HAS_REGEX
3994 _ACEOF
4000 LIBS=""
4001 HAS_LIBDL=no
4002 P_DYNALINK=0
4003 if test ${OSTYPE} = Darwin ; then
4004 P_DYNALINK=1
4006 cat >>confdefs.h <<\_ACEOF
4007 #define P_DYNALINK 1
4008 _ACEOF
4010 else
4012 for ac_header in dlfcn.h
4014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4016 echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4023 else
4024 # Is the header compilable?
4025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 $ac_includes_default
4035 #include <$ac_header>
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_header_compiler=yes
4050 else
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 ac_header_compiler=no
4056 rm -f conftest.$ac_objext conftest.$ac_ext
4057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4058 echo "${ECHO_T}$ac_header_compiler" >&6
4060 # Is the header present?
4061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4063 cat >conftest.$ac_ext <<_ACEOF
4064 #line $LINENO "configure"
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <$ac_header>
4071 _ACEOF
4072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } >/dev/null; then
4080 if test -s conftest.err; then
4081 ac_cpp_err=$ac_cxx_preproc_warn_flag
4082 else
4083 ac_cpp_err=
4085 else
4086 ac_cpp_err=yes
4088 if test -z "$ac_cpp_err"; then
4089 ac_header_preproc=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_header_preproc=no
4096 rm -f conftest.err conftest.$ac_ext
4097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4098 echo "${ECHO_T}$ac_header_preproc" >&6
4100 # So? What about this header?
4101 case $ac_header_compiler:$ac_header_preproc in
4102 yes:no )
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4108 cat <<\_ASBOX
4109 ## ------------------------------------ ##
4110 ## Report this to bug-autoconf@gnu.org. ##
4111 ## ------------------------------------ ##
4112 _ASBOX
4114 sed "s/^/$as_me: WARNING: /" >&2
4116 no:yes )
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4124 cat <<\_ASBOX
4125 ## ------------------------------------ ##
4126 ## Report this to bug-autoconf@gnu.org. ##
4127 ## ------------------------------------ ##
4128 _ASBOX
4130 sed "s/^/$as_me: WARNING: /" >&2
4132 esac
4133 echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 eval "$as_ac_Header=$ac_header_preproc"
4140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4145 cat >>confdefs.h <<_ACEOF
4146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4147 _ACEOF
4148 HAS_DLFCN=yes
4149 else
4150 HAS_DLFCN=no
4153 done
4155 if test "$HAS_DLFCN" = yes ; then
4156 echo "$as_me:$LINENO: checking if dlopen is available" >&5
4157 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
4158 cat >conftest.$ac_ext <<_ACEOF
4159 #line $LINENO "configure"
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 #include <dlfcn.h>
4167 main ()
4169 void * p = dlopen("lib", 0);
4171 return 0;
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 HAS_DLOPEN=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 HAS_DLOPEN=no
4193 rm -f conftest.$ac_objext conftest.$ac_ext
4194 if test "$HAS_DLOPEN" = no ; then
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4197 else
4198 echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6
4200 P_DYNALINK=1
4202 cat >>confdefs.h <<\_ACEOF
4203 #define P_DYNALINK 1
4204 _ACEOF
4206 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4207 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 ac_check_lib_save_LIBS=$LIBS
4212 LIBS="-ldl $LIBS"
4213 cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4215 /* confdefs.h. */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4221 /* Override any gcc2 internal prototype to avoid an error. */
4222 #ifdef __cplusplus
4223 extern "C"
4224 #endif
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4227 char dlopen ();
4229 main ()
4231 dlopen ();
4233 return 0;
4235 _ACEOF
4236 rm -f conftest.$ac_objext conftest$ac_exeext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4238 (eval $ac_link) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -s conftest$ac_exeext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_lib_dl_dlopen=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_lib_dl_dlopen=no
4255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4256 LIBS=$ac_check_lib_save_LIBS
4258 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4260 if test $ac_cv_lib_dl_dlopen = yes; then
4261 HAS_LIBDL=yes
4262 else
4263 HAS_LIBDL=no
4270 plugins="no"
4271 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
4272 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
4273 # Check whether --enable-plugins or --disable-plugins was given.
4274 if test "${enable_plugins+set}" = set; then
4275 enableval="$enable_plugins"
4276 plugins=$enableval
4279 if test "${plugins}" = "no" ; then
4280 echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6
4282 HAS_PLUGINS=0
4284 elif test "${P_DYNALINK:-unset}" = "unset" ; then
4285 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
4286 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
4287 HAS_PLUGINS=0
4289 else
4290 echo "$as_me:$LINENO: result: plugins enabled" >&5
4291 echo "${ECHO_T}plugins enabled" >&6
4292 HAS_PLUGINS=1
4295 cat >>confdefs.h <<\_ACEOF
4296 #define P_HAS_PLUGINS 1
4297 _ACEOF
4301 cat >>confdefs.h <<_ACEOF
4302 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
4303 _ACEOF
4308 # Check whether --enable-resolver or --disable-resolver was given.
4309 if test "${enable_resolver+set}" = set; then
4310 enableval="$enable_resolver"
4311 resolver=$enableval
4314 if test "$resolver" = "no" ; then
4315 cat >>confdefs.h <<\_ACEOF
4316 #define P_DNS 0
4317 _ACEOF
4319 else
4320 echo "$as_me:$LINENO: checking for res_search" >&5
4321 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4322 if test "${ac_cv_func_res_search+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 cat >conftest.$ac_ext <<_ACEOF
4326 #line $LINENO "configure"
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 /* System header to define __stub macros and hopefully few prototypes,
4333 which can conflict with char res_search (); below.
4334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 <limits.h> exists even on freestanding compilers. */
4336 #ifdef __STDC__
4337 # include <limits.h>
4338 #else
4339 # include <assert.h>
4340 #endif
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 #ifdef __cplusplus
4343 extern "C"
4345 #endif
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4348 char res_search ();
4349 /* The GNU C library defines this for functions which it implements
4350 to always fail with ENOSYS. Some functions are actually named
4351 something starting with __ and the normal name is an alias. */
4352 #if defined (__stub_res_search) || defined (__stub___res_search)
4353 choke me
4354 #else
4355 char (*f) () = res_search;
4356 #endif
4357 #ifdef __cplusplus
4359 #endif
4362 main ()
4364 return f != res_search;
4366 return 0;
4368 _ACEOF
4369 rm -f conftest.$ac_objext conftest$ac_exeext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4371 (eval $ac_link) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -s conftest$ac_exeext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_func_res_search=yes
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_func_res_search=no
4388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4391 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4392 if test $ac_cv_func_res_search = yes; then
4393 HAVE_RESOLVER=1
4396 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4397 RESOLVER_LIBS=""
4398 else
4399 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
4400 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
4401 LIBS="-lresolv"
4402 cat >conftest.$ac_ext <<_ACEOF
4404 #include <netinet/in.h>
4405 #include <resolv.h>
4406 int main(int argc,char **argv){
4407 res_search (NULL, 0, 0, NULL, 0);
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 HAVE_RESOLVER=1
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4428 rm -f conftest.$ac_objext conftest.$ac_ext
4429 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4430 echo "$as_me:$LINENO: result: yes" >&5
4431 echo "${ECHO_T}yes" >&6
4432 RESOLVER_LIBS="-lresolv"
4433 else
4434 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
4435 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
4436 if test "${ac_cv_search___res_search+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 ac_func_search_save_LIBS=$LIBS
4440 ac_cv_search___res_search=no
4441 cat >conftest.$ac_ext <<_ACEOF
4442 #line $LINENO "configure"
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4449 /* Override any gcc2 internal prototype to avoid an error. */
4450 #ifdef __cplusplus
4451 extern "C"
4452 #endif
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4455 char __res_search ();
4457 main ()
4459 __res_search ();
4461 return 0;
4463 _ACEOF
4464 rm -f conftest.$ac_objext conftest$ac_exeext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4466 (eval $ac_link) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -s conftest$ac_exeext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_search___res_search="none required"
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4483 if test "$ac_cv_search___res_search" = no; then
4484 for ac_lib in resolv; do
4485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4486 cat >conftest.$ac_ext <<_ACEOF
4487 #line $LINENO "configure"
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4494 /* Override any gcc2 internal prototype to avoid an error. */
4495 #ifdef __cplusplus
4496 extern "C"
4497 #endif
4498 /* We use char because int might match the return type of a gcc2
4499 builtin and then its argument prototype would still apply. */
4500 char __res_search ();
4502 main ()
4504 __res_search ();
4506 return 0;
4508 _ACEOF
4509 rm -f conftest.$ac_objext conftest$ac_exeext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511 (eval $ac_link) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest$ac_exeext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_cv_search___res_search="-l$ac_lib"
4522 break
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 done
4531 LIBS=$ac_func_search_save_LIBS
4533 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4534 echo "${ECHO_T}$ac_cv_search___res_search" >&6
4535 if test "$ac_cv_search___res_search" != no; then
4536 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4537 HAVE_RESOLVER=1
4543 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4545 cat >>confdefs.h <<\_ACEOF
4546 #define P_DNS 1
4547 _ACEOF
4554 # Check whether --enable-openldap or --disable-openldap was given.
4555 if test "${enable_openldap+set}" = set; then
4556 enableval="$enable_openldap"
4557 openldap=$enableval
4560 if test "$openldap" = "no" ; then
4561 HAS_OPENLDAP=0
4563 cat >>confdefs.h <<\_ACEOF
4564 #define P_LDAP 0
4565 _ACEOF
4567 else
4568 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
4570 for ac_header in ldap.h
4572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4574 echo "$as_me:$LINENO: checking for $ac_header" >&5
4575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 else
4582 # Is the header compilable?
4583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 $ac_includes_default
4593 #include <$ac_header>
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_header_compiler=yes
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 ac_header_compiler=no
4614 rm -f conftest.$ac_objext conftest.$ac_ext
4615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4616 echo "${ECHO_T}$ac_header_compiler" >&6
4618 # Is the header present?
4619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4621 cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #include <$ac_header>
4629 _ACEOF
4630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null; then
4638 if test -s conftest.err; then
4639 ac_cpp_err=$ac_cxx_preproc_warn_flag
4640 else
4641 ac_cpp_err=
4643 else
4644 ac_cpp_err=yes
4646 if test -z "$ac_cpp_err"; then
4647 ac_header_preproc=yes
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 ac_header_preproc=no
4654 rm -f conftest.err conftest.$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4656 echo "${ECHO_T}$ac_header_preproc" >&6
4658 # So? What about this header?
4659 case $ac_header_compiler:$ac_header_preproc in
4660 yes:no )
4661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4666 cat <<\_ASBOX
4667 ## ------------------------------------ ##
4668 ## Report this to bug-autoconf@gnu.org. ##
4669 ## ------------------------------------ ##
4670 _ASBOX
4672 sed "s/^/$as_me: WARNING: /" >&2
4674 no:yes )
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4682 cat <<\_ASBOX
4683 ## ------------------------------------ ##
4684 ## Report this to bug-autoconf@gnu.org. ##
4685 ## ------------------------------------ ##
4686 _ASBOX
4688 sed "s/^/$as_me: WARNING: /" >&2
4690 esac
4691 echo "$as_me:$LINENO: checking for $ac_header" >&5
4692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 eval "$as_ac_Header=$ac_header_preproc"
4698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4703 cat >>confdefs.h <<_ACEOF
4704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705 _ACEOF
4706 HAS_OPENLDAP=1
4709 done
4712 if test "${OSTYPE:-unknown}" = "solaris"; then
4713 OPENLDAPSYSLIBS=-lposix4
4716 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4717 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4718 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4719 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lldap -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line $LINENO "configure"
4726 /* confdefs.h. */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 #ifdef __cplusplus
4734 extern "C"
4735 #endif
4736 /* We use char because int might match the return type of a gcc2
4737 builtin and then its argument prototype would still apply. */
4738 char ldap_open ();
4740 main ()
4742 ldap_open ();
4744 return 0;
4746 _ACEOF
4747 rm -f conftest.$ac_objext conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_lib_ldap_ldap_open=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_cv_lib_ldap_ldap_open=no
4766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4769 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4770 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4771 if test $ac_cv_lib_ldap_ldap_open = yes; then
4772 HAS_OPENLDAP=1
4773 else
4774 HAS_OPENLDAP=
4777 else
4778 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
4779 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
4780 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 test "$cross_compiling" = yes &&
4784 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4785 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4786 { (exit 1); exit 1; }; }
4787 if test -r "/usr/local/include/ldap.h"; then
4788 ac_cv_file__usr_local_include_ldap_h=yes
4789 else
4790 ac_cv_file__usr_local_include_ldap_h=no
4793 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
4794 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
4795 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
4796 HAS_OPENLDAP=1
4799 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4800 OPENLDAPINCLUDEDIR=/usr/local/include
4801 OPENLDAPLIBDIR=/usr/local/lib
4802 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
4803 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
4804 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 ac_check_lib_save_LIBS=$LIBS
4808 LIBS="-lldap -L/usr/local/lib -llber -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 #ifdef __cplusplus
4819 extern "C"
4820 #endif
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4823 char ldap_open ();
4825 main ()
4827 ldap_open ();
4829 return 0;
4831 _ACEOF
4832 rm -f conftest.$ac_objext conftest$ac_exeext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834 (eval $ac_link) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_lib_ldap_ldap_open=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_cv_lib_ldap_ldap_open=no
4851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4852 LIBS=$ac_check_lib_save_LIBS
4854 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
4855 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
4856 if test $ac_cv_lib_ldap_ldap_open = yes; then
4857 HAS_OPENLDAP=1
4858 else
4859 HAS_OPENLDAP=
4866 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
4867 HAS_OPENLDAP=1
4870 cat >>confdefs.h <<\_ACEOF
4871 #define P_LDAP 1
4872 _ACEOF
4874 if test ${OPENLDAPINCLUDEDIR:-unset} != "unset" ; then
4875 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
4877 if test ${OPENLDAPLIBDIR:-unset} != "unset" ; then
4878 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
4881 echo "$as_me:$LINENO: checking for sasl_client_auth in -lsasl" >&5
4882 echo $ECHO_N "checking for sasl_client_auth in -lsasl... $ECHO_C" >&6
4883 if test "${ac_cv_lib_sasl_sasl_client_auth+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 ac_check_lib_save_LIBS=$LIBS
4887 LIBS="-lsasl $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4888 cat >conftest.$ac_ext <<_ACEOF
4889 #line $LINENO "configure"
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char sasl_client_auth ();
4904 main ()
4906 sasl_client_auth ();
4908 return 0;
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest$ac_exeext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_lib_sasl_sasl_client_auth=yes
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_cv_lib_sasl_sasl_client_auth=no
4930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4931 LIBS=$ac_check_lib_save_LIBS
4933 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_auth" >&5
4934 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_auth" >&6
4935 if test $ac_cv_lib_sasl_sasl_client_auth = yes; then
4936 HAS_SASL=1
4937 else
4938 HAS_SASL=
4941 if test ${HAS_SASL:-unset} = "unset" ; then
4942 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
4943 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
4944 if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-lsasl2 $LDFLAGS -llber -lldap -lldap_r $RESOLVER_LIBS $ENDLDLIBS $OPENDLAPSYSLIBS $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 #ifdef __cplusplus
4959 extern "C"
4960 #endif
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4963 char sasl_version ();
4965 main ()
4967 sasl_version ();
4969 return 0;
4971 _ACEOF
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_cv_lib_sasl2_sasl_version=yes
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 ac_cv_lib_sasl2_sasl_version=no
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
4995 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_version" >&6
4996 if test $ac_cv_lib_sasl2_sasl_version = yes; then
4997 HAS_SASL2=1
4998 else
4999 HAS_SASL2=
5003 if test ${HAS_SASL:-unset} != "unset" ; then
5004 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl"
5005 elif test ${HAS_SASL2:-unset} != "unset" ; then
5006 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber -lsasl2"
5007 else
5008 ENDLDLIBS="$ENDLDLIBS -lldap -lldap_r -llber"
5015 # Check whether --enable-openldap or --disable-openldap was given.
5016 if test "${enable_openldap+set}" = set; then
5017 enableval="$enable_openldap"
5018 openssl=$enableval
5021 if test "$openssl" = "no" ; then
5022 cat >>confdefs.h <<\_ACEOF
5023 #define P_SSL 0
5024 _ACEOF
5026 HAS_OPENSSL=0
5028 else
5030 if test ${OPENSSLDIR:-unset} != "unset" ; then
5031 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
5032 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
5033 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
5034 echo "$as_me:$LINENO: result: yes" >&5
5035 echo "${ECHO_T}yes" >&6
5036 SSLHDR=1
5037 SSLINCLUDEDIR="${OPENSSLDIR}/include"
5038 SSLLIBDIR="${OPENSSLDIR}/lib"
5039 else
5040 echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5046 if test "${SSLHDR:-unset}" = "unset" ; then
5048 for ac_header in openssl/ssl.h
5050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5052 echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 else
5060 # Is the header compilable?
5061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5063 cat >conftest.$ac_ext <<_ACEOF
5064 #line $LINENO "configure"
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 #include <$ac_header>
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_header_compiler=yes
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 ac_header_compiler=no
5092 rm -f conftest.$ac_objext conftest.$ac_ext
5093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5094 echo "${ECHO_T}$ac_header_compiler" >&6
5096 # Is the header present?
5097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5099 cat >conftest.$ac_ext <<_ACEOF
5100 #line $LINENO "configure"
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <$ac_header>
5107 _ACEOF
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null; then
5116 if test -s conftest.err; then
5117 ac_cpp_err=$ac_cxx_preproc_warn_flag
5118 else
5119 ac_cpp_err=
5121 else
5122 ac_cpp_err=yes
5124 if test -z "$ac_cpp_err"; then
5125 ac_header_preproc=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_header_preproc=no
5132 rm -f conftest.err conftest.$ac_ext
5133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5134 echo "${ECHO_T}$ac_header_preproc" >&6
5136 # So? What about this header?
5137 case $ac_header_compiler:$ac_header_preproc in
5138 yes:no )
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5144 cat <<\_ASBOX
5145 ## ------------------------------------ ##
5146 ## Report this to bug-autoconf@gnu.org. ##
5147 ## ------------------------------------ ##
5148 _ASBOX
5150 sed "s/^/$as_me: WARNING: /" >&2
5152 no:yes )
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5160 cat <<\_ASBOX
5161 ## ------------------------------------ ##
5162 ## Report this to bug-autoconf@gnu.org. ##
5163 ## ------------------------------------ ##
5164 _ASBOX
5166 sed "s/^/$as_me: WARNING: /" >&2
5168 esac
5169 echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 eval "$as_ac_Header=$ac_header_preproc"
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181 cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5183 _ACEOF
5184 SSLDIR=1
5187 done
5189 if test "${SSLHDR:-unset}" = "unset" ; then
5190 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
5191 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #define OPENSSL_NO_KRB5
5194 #include <openssl/ssl.h>
5195 int main(int argc,char **argv){}
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 SSLHDR=1
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5215 rm -f conftest.$ac_objext conftest.$ac_ext
5216 if test ${SSLHDR:-unset} != "unset" ; then
5217 echo "$as_me:$LINENO: result: yes" >&5
5218 echo "${ECHO_T}yes" >&6
5219 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5220 P_STATIC_LDFLAGS="-L/usr/kerberos/lib"
5221 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5232 if test "${SSLHDR:-unset}" = "unset" ; then
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
5242 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
5243 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
5244 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
5245 echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247 else
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #include "${openssl_dir}/include/openssl/ssl.h"
5250 int main(int argc,char **argv){ return 0; }
5251 _ACEOF
5252 $CC $CFLAGS -I${openssl_dir}/include -c conftest.c > /dev/null 2>&1
5253 if test $? = 0 ; then
5254 echo "$as_me:$LINENO: result: yes" >&5
5255 echo "${ECHO_T}yes" >&6
5256 SSLHDR=1
5257 SSLCCFLAGS=""
5258 SSLINCLUDEDIR="${openssl_dir}/include"
5259 SSLLIBDIR="${openssl_dir}/lib"
5260 break
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5264 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
5265 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #define OPENSSL_NO_KRB5
5268 #include "${openssl_dir}/include/openssl/ssl.h"
5269 int main(int argc,char **argv){}
5270 _ACEOF
5271 $CC $CFLAGS -I${openssl_dir}/openssl/include -c conftest.c > /dev/null 2>&1
5272 if test $? = 0 ; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274 echo "${ECHO_T}yes" >&6
5275 SSLHDR=1
5276 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
5277 SSLINCLUDEDIR="${openssl_dir}/include"
5278 SSLLIBDIR="${openssl_dir}/lib"
5279 P_STATIC_LDFLAGS="-L/usr/kerberos/lib"
5280 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
5281 break
5282 else
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5288 done
5289 ac_ext=cc
5290 ac_cpp='$CXXCPP $CPPFLAGS'
5291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5297 if test ${SSLHDR:-unset} != "unset" ; then
5298 HAS_OPENSSL=1
5301 cat >>confdefs.h <<\_ACEOF
5302 #define P_SSL 1
5303 _ACEOF
5305 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
5306 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
5308 if test ${SSLLIBDIR:-unset} != "unset" ; then
5309 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
5311 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
5312 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
5318 # Check whether --enable-expat or --disable-expat was given.
5319 if test "${enable_expat+set}" = set; then
5320 enableval="$enable_expat"
5321 expat=$enableval
5324 if test "$expat" = "no" ; then
5325 HAS_EXPAT=0
5327 cat >>confdefs.h <<\_ACEOF
5328 #define P_EXPAT 0
5329 _ACEOF
5331 else
5334 for ac_header in expat.h
5336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338 echo "$as_me:$LINENO: checking for $ac_header" >&5
5339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5345 else
5346 # Is the header compilable?
5347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 $ac_includes_default
5357 #include <$ac_header>
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_header_compiler=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ac_header_compiler=no
5378 rm -f conftest.$ac_objext conftest.$ac_ext
5379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5380 echo "${ECHO_T}$ac_header_compiler" >&6
5382 # Is the header present?
5383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5385 cat >conftest.$ac_ext <<_ACEOF
5386 #line $LINENO "configure"
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <$ac_header>
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_cxx_preproc_warn_flag
5404 else
5405 ac_cpp_err=
5407 else
5408 ac_cpp_err=yes
5410 if test -z "$ac_cpp_err"; then
5411 ac_header_preproc=yes
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_header_preproc=no
5418 rm -f conftest.err conftest.$ac_ext
5419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5420 echo "${ECHO_T}$ac_header_preproc" >&6
5422 # So? What about this header?
5423 case $ac_header_compiler:$ac_header_preproc in
5424 yes:no )
5425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5430 cat <<\_ASBOX
5431 ## ------------------------------------ ##
5432 ## Report this to bug-autoconf@gnu.org. ##
5433 ## ------------------------------------ ##
5434 _ASBOX
5436 sed "s/^/$as_me: WARNING: /" >&2
5438 no:yes )
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5446 cat <<\_ASBOX
5447 ## ------------------------------------ ##
5448 ## Report this to bug-autoconf@gnu.org. ##
5449 ## ------------------------------------ ##
5450 _ASBOX
5452 sed "s/^/$as_me: WARNING: /" >&2
5454 esac
5455 echo "$as_me:$LINENO: checking for $ac_header" >&5
5456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 eval "$as_ac_Header=$ac_header_preproc"
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5469 _ACEOF
5470 HAS_EXPAT=1
5473 done
5475 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5476 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
5477 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
5478 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 ac_check_lib_save_LIBS=$LIBS
5482 LIBS="-lexpat $LIBS"
5483 cat >conftest.$ac_ext <<_ACEOF
5484 #line $LINENO "configure"
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 #ifdef __cplusplus
5493 extern "C"
5494 #endif
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5497 char XML_ParserCreate ();
5499 main ()
5501 XML_ParserCreate ();
5503 return 0;
5505 _ACEOF
5506 rm -f conftest.$ac_objext conftest$ac_exeext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -s conftest$ac_exeext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_cv_lib_expat_XML_ParserCreate=yes
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_cv_lib_expat_XML_ParserCreate=no
5525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 LIBS=$ac_check_lib_save_LIBS
5528 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5529 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
5530 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
5531 HAS_EXPAT=1
5532 else
5533 HAS_EXPAT=
5536 else
5537 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
5538 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
5539 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 test "$cross_compiling" = yes &&
5543 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5544 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5545 { (exit 1); exit 1; }; }
5546 if test -r "/usr/local/include/expat.h"; then
5547 ac_cv_file__usr_local_include_expat_h=yes
5548 else
5549 ac_cv_file__usr_local_include_expat_h=no
5552 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
5553 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
5554 if test $ac_cv_file__usr_local_include_expat_h = yes; then
5555 HAS_EXPAT=1
5558 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5559 EXPATINCLUDEDIR=/usr/local/include
5560 EXPATLIBDIR=/usr/local/lib
5564 if test "${HAS_EXPAT:-unset}" != "unset" ; then
5565 HAS_EXPAT=1
5568 cat >>confdefs.h <<\_ACEOF
5569 #define P_EXPAT 1
5570 _ACEOF
5572 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
5573 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
5575 if test ${EXPATLIBDIR:-unset} != "unset" ; then
5576 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
5578 ENDLDLIBS="$ENDLDLIBS -lexpat"
5588 # Check whether --enable-sdl or --disable-sdl was given.
5589 if test "${enable_sdl+set}" = set; then
5590 enableval="$enable_sdl"
5591 sdl=$enableval
5594 if test "$sdl" = "no" ; then
5595 HAS_SDL=0
5597 cat >>confdefs.h <<\_ACEOF
5598 #define P_SDL 0
5599 _ACEOF
5601 else
5602 if test "${SDLLIB:-unset}" = "unset" ; then
5603 SDLLIB=SDL
5607 for ac_header in SDL/SDL.h
5609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611 echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5618 else
5619 # Is the header compilable?
5620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 #include <$ac_header>
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -s conftest.$ac_objext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_header_compiler=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_header_compiler=no
5651 rm -f conftest.$ac_objext conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5653 echo "${ECHO_T}$ac_header_compiler" >&6
5655 # Is the header present?
5656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <$ac_header>
5666 _ACEOF
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_cxx_preproc_warn_flag
5677 else
5678 ac_cpp_err=
5680 else
5681 ac_cpp_err=yes
5683 if test -z "$ac_cpp_err"; then
5684 ac_header_preproc=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_header_preproc=no
5691 rm -f conftest.err conftest.$ac_ext
5692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5693 echo "${ECHO_T}$ac_header_preproc" >&6
5695 # So? What about this header?
5696 case $ac_header_compiler:$ac_header_preproc in
5697 yes:no )
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 cat <<\_ASBOX
5704 ## ------------------------------------ ##
5705 ## Report this to bug-autoconf@gnu.org. ##
5706 ## ------------------------------------ ##
5707 _ASBOX
5709 sed "s/^/$as_me: WARNING: /" >&2
5711 no:yes )
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5719 cat <<\_ASBOX
5720 ## ------------------------------------ ##
5721 ## Report this to bug-autoconf@gnu.org. ##
5722 ## ------------------------------------ ##
5723 _ASBOX
5725 sed "s/^/$as_me: WARNING: /" >&2
5727 esac
5728 echo "$as_me:$LINENO: checking for $ac_header" >&5
5729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 eval "$as_ac_Header=$ac_header_preproc"
5735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5742 _ACEOF
5743 HAS_SDL=1
5746 done
5748 if test "${HAS_SDL:-unset}" != "unset" ; then
5749 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
5750 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
5751 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 ac_check_lib_save_LIBS=$LIBS
5755 LIBS="-lSDL -lpthread $LIBS"
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 /* Override any gcc2 internal prototype to avoid an error. */
5765 #ifdef __cplusplus
5766 extern "C"
5767 #endif
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5770 char SDL_CreateYUVOverlay ();
5772 main ()
5774 SDL_CreateYUVOverlay ();
5776 return 0;
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5801 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
5802 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
5803 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
5804 HAS_SDL=1
5805 else
5806 HAS_SDL=
5811 if test "${HAS_SDL:-unset}" = "unset" ; then
5812 echo "$as_me:$LINENO: checking for /usr/local/include/SDL11/SDL.h" >&5
5813 echo $ECHO_N "checking for /usr/local/include/SDL11/SDL.h... $ECHO_C" >&6
5814 if test "${ac_cv_file__usr_local_include_SDL11_SDL_h+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 test "$cross_compiling" = yes &&
5818 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5819 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5820 { (exit 1); exit 1; }; }
5821 if test -r "/usr/local/include/SDL11/SDL.h"; then
5822 ac_cv_file__usr_local_include_SDL11_SDL_h=yes
5823 else
5824 ac_cv_file__usr_local_include_SDL11_SDL_h=no
5827 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_SDL11_SDL_h" >&5
5828 echo "${ECHO_T}$ac_cv_file__usr_local_include_SDL11_SDL_h" >&6
5829 if test $ac_cv_file__usr_local_include_SDL11_SDL_h = yes; then
5830 HAS_SDL=1
5833 if test "${HAS_SDL:-unset}" != "unset" ; then
5834 SDLLIB=SDL-1.1
5838 if test "${HAS_SDL:-unset}" != "unset" ; then
5839 HAS_SDL=1
5842 cat >>confdefs.h <<\_ACEOF
5843 #define P_SDL 1
5844 _ACEOF
5846 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
5847 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
5849 if test ${SDLLIBDIR:-unset} != "unset" ; then
5850 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
5852 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
5859 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5860 if test "${enable_ipv6+set}" = set; then
5861 enableval="$enable_ipv6"
5862 ipv6=$enableval
5865 if test "$ipv6" = "no" ; then
5866 cat >>confdefs.h <<\_ACEOF
5867 #define P_HAS_IPV6 0
5868 _ACEOF
5870 HAS_IPV6=0
5872 else
5873 echo "$as_me:$LINENO: checking for IPv6 Support" >&5
5874 echo $ECHO_N "checking for IPv6 Support... $ECHO_C" >&6
5875 if test "${HAS_IPV6+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 cat >conftest.$ac_ext <<_ACEOF
5879 #line $LINENO "configure"
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 #include <netinet/in.h>
5888 main ()
5890 struct sockaddr_in6 s; s.sin6_scope_id = 0;
5892 return 0;
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 (eval $ac_try) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 HAS_IPV6=yes
5908 else
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5912 HAS_IPV6=no
5914 rm -f conftest.$ac_objext conftest.$ac_ext
5916 echo "$as_me:$LINENO: result: $HAS_IPV6" >&5
5917 echo "${ECHO_T}$HAS_IPV6" >&6
5919 if test $HAS_IPV6 = yes ; then
5921 cat >>confdefs.h <<\_ACEOF
5922 #define P_HAS_IPV6 1
5923 _ACEOF
5930 # Check whether --enable-qos or --disable-qos was given.
5931 if test "${enable_qos+set}" = set; then
5932 enableval="$enable_qos"
5933 qos=$enableval
5936 if test "$qos" = "no" ; then
5937 cat >>confdefs.h <<\_ACEOF
5938 #define P_HAS_QOS 0
5939 _ACEOF
5941 else
5942 cat >>confdefs.h <<\_ACEOF
5943 #define P_HAS_QOS 1
5944 _ACEOF
5949 # Check whether --enable-video or --disable-video was given.
5950 if test "${enable_video+set}" = set; then
5951 enableval="$enable_video"
5952 video=$enableval
5955 if test "$video" = "no" ; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define NO_VIDEO_CAPTURE 0
5958 _ACEOF
5960 else
5961 HAS_VIDEO_CAPTURE=no
5962 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5963 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
5964 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
5965 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
5969 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
5970 else
5971 # Is the header compilable?
5972 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
5973 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
5974 cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 #include <linux/videodev.h>
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_header_compiler=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_compiler=no
6003 rm -f conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
6009 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 #line $LINENO "configure"
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <linux/videodev.h>
6018 _ACEOF
6019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } >/dev/null; then
6027 if test -s conftest.err; then
6028 ac_cpp_err=$ac_cxx_preproc_warn_flag
6029 else
6030 ac_cpp_err=
6032 else
6033 ac_cpp_err=yes
6035 if test -z "$ac_cpp_err"; then
6036 ac_header_preproc=yes
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_header_preproc=no
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6047 # So? What about this header?
6048 case $ac_header_compiler:$ac_header_preproc in
6049 yes:no )
6050 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6053 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6055 cat <<\_ASBOX
6056 ## ------------------------------------ ##
6057 ## Report this to bug-autoconf@gnu.org. ##
6058 ## ------------------------------------ ##
6059 _ASBOX
6061 sed "s/^/$as_me: WARNING: /" >&2
6063 no:yes )
6064 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
6065 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
6066 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
6067 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
6068 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
6069 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
6071 cat <<\_ASBOX
6072 ## ------------------------------------ ##
6073 ## Report this to bug-autoconf@gnu.org. ##
6074 ## ------------------------------------ ##
6075 _ASBOX
6077 sed "s/^/$as_me: WARNING: /" >&2
6079 esac
6080 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
6081 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
6082 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 ac_cv_header_linux_videodev_h=$ac_header_preproc
6087 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
6088 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
6091 if test $ac_cv_header_linux_videodev_h = yes; then
6092 HAS_VIDEO_CAPTURE=yes
6096 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
6097 echo "$as_me:$LINENO: checking for machine/ioctl_meteor.h" >&5
6098 echo $ECHO_N "checking for machine/ioctl_meteor.h... $ECHO_C" >&6
6099 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ioctl_meteor_h" >&5
6103 echo "${ECHO_T}$ac_cv_header_machine_ioctl_meteor_h" >&6
6104 else
6105 # Is the header compilable?
6106 echo "$as_me:$LINENO: checking machine/ioctl_meteor.h usability" >&5
6107 echo $ECHO_N "checking machine/ioctl_meteor.h usability... $ECHO_C" >&6
6108 cat >conftest.$ac_ext <<_ACEOF
6109 #line $LINENO "configure"
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6116 #include <machine/ioctl_meteor.h>
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_header_compiler=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_header_compiler=no
6137 rm -f conftest.$ac_objext conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6139 echo "${ECHO_T}$ac_header_compiler" >&6
6141 # Is the header present?
6142 echo "$as_me:$LINENO: checking machine/ioctl_meteor.h presence" >&5
6143 echo $ECHO_N "checking machine/ioctl_meteor.h presence... $ECHO_C" >&6
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <machine/ioctl_meteor.h>
6152 _ACEOF
6153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_cxx_preproc_warn_flag
6163 else
6164 ac_cpp_err=
6166 else
6167 ac_cpp_err=yes
6169 if test -z "$ac_cpp_err"; then
6170 ac_header_preproc=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_header_preproc=no
6177 rm -f conftest.err conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6179 echo "${ECHO_T}$ac_header_preproc" >&6
6181 # So? What about this header?
6182 case $ac_header_compiler:$ac_header_preproc in
6183 yes:no )
6184 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&5
6185 echo "$as_me: WARNING: machine/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
6187 echo "$as_me: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
6189 cat <<\_ASBOX
6190 ## ------------------------------------ ##
6191 ## Report this to bug-autoconf@gnu.org. ##
6192 ## ------------------------------------ ##
6193 _ASBOX
6195 sed "s/^/$as_me: WARNING: /" >&2
6197 no:yes )
6198 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: present but cannot be compiled" >&5
6199 echo "$as_me: WARNING: machine/ioctl_meteor.h: present but cannot be compiled" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: check for missing prerequisite headers?" >&5
6201 echo "$as_me: WARNING: machine/ioctl_meteor.h: check for missing prerequisite headers?" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
6203 echo "$as_me: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
6205 cat <<\_ASBOX
6206 ## ------------------------------------ ##
6207 ## Report this to bug-autoconf@gnu.org. ##
6208 ## ------------------------------------ ##
6209 _ASBOX
6211 sed "s/^/$as_me: WARNING: /" >&2
6213 esac
6214 echo "$as_me:$LINENO: checking for machine/ioctl_meteor.h" >&5
6215 echo $ECHO_N "checking for machine/ioctl_meteor.h... $ECHO_C" >&6
6216 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 ac_cv_header_machine_ioctl_meteor_h=$ac_header_preproc
6221 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ioctl_meteor_h" >&5
6222 echo "${ECHO_T}$ac_cv_header_machine_ioctl_meteor_h" >&6
6225 if test $ac_cv_header_machine_ioctl_meteor_h = yes; then
6226 HAS_VIDEO_CAPTURE=yes
6230 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
6231 echo "$as_me:$LINENO: checking for i386/ioctl_meteor.h" >&5
6232 echo $ECHO_N "checking for i386/ioctl_meteor.h... $ECHO_C" >&6
6233 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 echo "$as_me:$LINENO: result: $ac_cv_header_i386_ioctl_meteor_h" >&5
6237 echo "${ECHO_T}$ac_cv_header_i386_ioctl_meteor_h" >&6
6238 else
6239 # Is the header compilable?
6240 echo "$as_me:$LINENO: checking i386/ioctl_meteor.h usability" >&5
6241 echo $ECHO_N "checking i386/ioctl_meteor.h usability... $ECHO_C" >&6
6242 cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 #include <i386/ioctl_meteor.h>
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_header_compiler=yes
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_header_compiler=no
6271 rm -f conftest.$ac_objext conftest.$ac_ext
6272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6273 echo "${ECHO_T}$ac_header_compiler" >&6
6275 # Is the header present?
6276 echo "$as_me:$LINENO: checking i386/ioctl_meteor.h presence" >&5
6277 echo $ECHO_N "checking i386/ioctl_meteor.h presence... $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line $LINENO "configure"
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 #include <i386/ioctl_meteor.h>
6286 _ACEOF
6287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } >/dev/null; then
6295 if test -s conftest.err; then
6296 ac_cpp_err=$ac_cxx_preproc_warn_flag
6297 else
6298 ac_cpp_err=
6300 else
6301 ac_cpp_err=yes
6303 if test -z "$ac_cpp_err"; then
6304 ac_header_preproc=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_header_preproc=no
6311 rm -f conftest.err conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6313 echo "${ECHO_T}$ac_header_preproc" >&6
6315 # So? What about this header?
6316 case $ac_header_compiler:$ac_header_preproc in
6317 yes:no )
6318 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&5
6319 echo "$as_me: WARNING: i386/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
6321 echo "$as_me: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
6323 cat <<\_ASBOX
6324 ## ------------------------------------ ##
6325 ## Report this to bug-autoconf@gnu.org. ##
6326 ## ------------------------------------ ##
6327 _ASBOX
6329 sed "s/^/$as_me: WARNING: /" >&2
6331 no:yes )
6332 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: present but cannot be compiled" >&5
6333 echo "$as_me: WARNING: i386/ioctl_meteor.h: present but cannot be compiled" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: check for missing prerequisite headers?" >&5
6335 echo "$as_me: WARNING: i386/ioctl_meteor.h: check for missing prerequisite headers?" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
6339 cat <<\_ASBOX
6340 ## ------------------------------------ ##
6341 ## Report this to bug-autoconf@gnu.org. ##
6342 ## ------------------------------------ ##
6343 _ASBOX
6345 sed "s/^/$as_me: WARNING: /" >&2
6347 esac
6348 echo "$as_me:$LINENO: checking for i386/ioctl_meteor.h" >&5
6349 echo $ECHO_N "checking for i386/ioctl_meteor.h... $ECHO_C" >&6
6350 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 ac_cv_header_i386_ioctl_meteor_h=$ac_header_preproc
6355 echo "$as_me:$LINENO: result: $ac_cv_header_i386_ioctl_meteor_h" >&5
6356 echo "${ECHO_T}$ac_cv_header_i386_ioctl_meteor_h" >&6
6359 if test $ac_cv_header_i386_ioctl_meteor_h = yes; then
6360 HAS_VIDEO_CAPTURE=yes
6364 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
6365 echo "$as_me:$LINENO: checking for dev/ic/bt8xx.h" >&5
6366 echo $ECHO_N "checking for dev/ic/bt8xx.h... $ECHO_C" >&6
6367 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 echo "$as_me:$LINENO: result: $ac_cv_header_dev_ic_bt8xx_h" >&5
6371 echo "${ECHO_T}$ac_cv_header_dev_ic_bt8xx_h" >&6
6372 else
6373 # Is the header compilable?
6374 echo "$as_me:$LINENO: checking dev/ic/bt8xx.h usability" >&5
6375 echo $ECHO_N "checking dev/ic/bt8xx.h usability... $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6377 #line $LINENO "configure"
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 #include <dev/ic/bt8xx.h>
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_header_compiler=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_header_compiler=no
6405 rm -f conftest.$ac_objext conftest.$ac_ext
6406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6407 echo "${ECHO_T}$ac_header_compiler" >&6
6409 # Is the header present?
6410 echo "$as_me:$LINENO: checking dev/ic/bt8xx.h presence" >&5
6411 echo $ECHO_N "checking dev/ic/bt8xx.h presence... $ECHO_C" >&6
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line $LINENO "configure"
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #include <dev/ic/bt8xx.h>
6420 _ACEOF
6421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } >/dev/null; then
6429 if test -s conftest.err; then
6430 ac_cpp_err=$ac_cxx_preproc_warn_flag
6431 else
6432 ac_cpp_err=
6434 else
6435 ac_cpp_err=yes
6437 if test -z "$ac_cpp_err"; then
6438 ac_header_preproc=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 ac_header_preproc=no
6445 rm -f conftest.err conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6447 echo "${ECHO_T}$ac_header_preproc" >&6
6449 # So? What about this header?
6450 case $ac_header_compiler:$ac_header_preproc in
6451 yes:no )
6452 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: accepted by the compiler, rejected by the preprocessor!" >&5
6453 echo "$as_me: WARNING: dev/ic/bt8xx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&5
6455 echo "$as_me: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&2;}
6457 cat <<\_ASBOX
6458 ## ------------------------------------ ##
6459 ## Report this to bug-autoconf@gnu.org. ##
6460 ## ------------------------------------ ##
6461 _ASBOX
6463 sed "s/^/$as_me: WARNING: /" >&2
6465 no:yes )
6466 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: present but cannot be compiled" >&5
6467 echo "$as_me: WARNING: dev/ic/bt8xx.h: present but cannot be compiled" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: check for missing prerequisite headers?" >&5
6469 echo "$as_me: WARNING: dev/ic/bt8xx.h: check for missing prerequisite headers?" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&5
6471 echo "$as_me: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&2;}
6473 cat <<\_ASBOX
6474 ## ------------------------------------ ##
6475 ## Report this to bug-autoconf@gnu.org. ##
6476 ## ------------------------------------ ##
6477 _ASBOX
6479 sed "s/^/$as_me: WARNING: /" >&2
6481 esac
6482 echo "$as_me:$LINENO: checking for dev/ic/bt8xx.h" >&5
6483 echo $ECHO_N "checking for dev/ic/bt8xx.h... $ECHO_C" >&6
6484 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 ac_cv_header_dev_ic_bt8xx_h=$ac_header_preproc
6489 echo "$as_me:$LINENO: result: $ac_cv_header_dev_ic_bt8xx_h" >&5
6490 echo "${ECHO_T}$ac_cv_header_dev_ic_bt8xx_h" >&6
6493 if test $ac_cv_header_dev_ic_bt8xx_h = yes; then
6494 HAS_VIDEO_CAPTURE=yes
6498 if test "${HAS_VIDEO_CAPTURE}" != "yes" ; then
6500 cat >>confdefs.h <<\_ACEOF
6501 #define NO_VIDEO_CAPTURE 1
6502 _ACEOF
6504 { echo "$as_me:$LINENO: No Video Capture support" >&5
6505 echo "$as_me: No Video Capture support" >&6;}
6510 if test "$OSTYPE" = "solaris" ; then
6511 USE_SYSTEM_SWAB=
6512 else
6513 echo "$as_me:$LINENO: checking for swab" >&5
6514 echo $ECHO_N "checking for swab... $ECHO_C" >&6
6515 if test "${ac_cv_func_swab+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 cat >conftest.$ac_ext <<_ACEOF
6519 #line $LINENO "configure"
6520 /* confdefs.h. */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 /* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char swab (); below.
6527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528 <limits.h> exists even on freestanding compilers. */
6529 #ifdef __STDC__
6530 # include <limits.h>
6531 #else
6532 # include <assert.h>
6533 #endif
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 #ifdef __cplusplus
6536 extern "C"
6538 #endif
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541 char swab ();
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_swab) || defined (__stub___swab)
6546 choke me
6547 #else
6548 char (*f) () = swab;
6549 #endif
6550 #ifdef __cplusplus
6552 #endif
6555 main ()
6557 return f != swab;
6559 return 0;
6561 _ACEOF
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_func_swab=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_cv_func_swab=no
6581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
6584 echo "${ECHO_T}$ac_cv_func_swab" >&6
6585 if test $ac_cv_func_swab = yes; then
6586 USE_SYSTEM_SWAB=1
6590 if test "x$ac_cv_func_swab" = "xyes" ; then
6591 cat >>confdefs.h <<\_ACEOF
6592 #define USE_SYSTEM_SWAB 1
6593 _ACEOF
6598 if test "${HAVE_RESOLVER:-unset}" != "unset" ; then
6599 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
6600 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
6604 if test "${OSTYPE}" != "Darwin" ; then
6605 if test ${HAS_LIBDL} = yes ; then
6606 ENDLDLIBS="$ENDLDLIBS -ldl"
6615 ac_config_files="$ac_config_files make/ptbuildopts.mak"
6617 ac_config_files="$ac_config_files make/ptlib-config"
6619 ac_config_files="$ac_config_files Makefile"
6622 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
6623 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
6626 cat >confcache <<\_ACEOF
6627 # This file is a shell script that caches the results of configure
6628 # tests run on this system so they can be shared between configure
6629 # scripts and configure runs, see configure's option --config-cache.
6630 # It is not useful on other systems. If it contains results you don't
6631 # want to keep, you may remove or edit it.
6633 # config.status only pays attention to the cache file if you give it
6634 # the --recheck option to rerun configure.
6636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6638 # following values.
6640 _ACEOF
6642 # The following way of writing the cache mishandles newlines in values,
6643 # but we know of no workaround that is simple, portable, and efficient.
6644 # So, don't put newlines in cache variables' values.
6645 # Ultrix sh set writes to stderr and can't be redirected directly,
6646 # and sets the high bit in the cache file unless we assign to the vars.
6648 (set) 2>&1 |
6649 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6650 *ac_space=\ *)
6651 # `set' does not quote correctly, so add quotes (double-quote
6652 # substitution turns \\\\ into \\, and sed turns \\ into \).
6653 sed -n \
6654 "s/'/'\\\\''/g;
6655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6658 # `set' quotes correctly as required by POSIX, so do not add quotes.
6659 sed -n \
6660 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6662 esac;
6664 sed '
6665 t clear
6666 : clear
6667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6668 t end
6669 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6670 : end' >>confcache
6671 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6672 if test -w $cache_file; then
6673 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6674 cat confcache >$cache_file
6675 else
6676 echo "not updating unwritable cache $cache_file"
6679 rm -f confcache
6681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6682 # Let make expand exec_prefix.
6683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6685 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6686 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6687 # trailing colons and then remove the whole line if VPATH becomes empty
6688 # (actually we leave an empty line to preserve line numbers).
6689 if test "x$srcdir" = x.; then
6690 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6691 s/:*\$(srcdir):*/:/;
6692 s/:*\${srcdir}:*/:/;
6693 s/:*@srcdir@:*/:/;
6694 s/^\([^=]*=[ ]*\):*/\1/;
6695 s/:*$//;
6696 s/^[^=]*=[ ]*$//;
6700 DEFS=-DHAVE_CONFIG_H
6702 ac_libobjs=
6703 ac_ltlibobjs=
6704 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6705 # 1. Remove the extension, and $U if already installed.
6706 ac_i=`echo "$ac_i" |
6707 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6708 # 2. Add them.
6709 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6710 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6711 done
6712 LIBOBJS=$ac_libobjs
6714 LTLIBOBJS=$ac_ltlibobjs
6718 : ${CONFIG_STATUS=./config.status}
6719 ac_clean_files_save=$ac_clean_files
6720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6721 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6722 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6723 cat >$CONFIG_STATUS <<_ACEOF
6724 #! $SHELL
6725 # Generated by $as_me.
6726 # Run this file to recreate the current configuration.
6727 # Compiler output produced by configure, useful for debugging
6728 # configure, is in config.log if it exists.
6730 debug=false
6731 ac_cs_recheck=false
6732 ac_cs_silent=false
6733 SHELL=\${CONFIG_SHELL-$SHELL}
6734 _ACEOF
6736 cat >>$CONFIG_STATUS <<\_ACEOF
6737 ## --------------------- ##
6738 ## M4sh Initialization. ##
6739 ## --------------------- ##
6741 # Be Bourne compatible
6742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6743 emulate sh
6744 NULLCMD=:
6745 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6746 # is contrary to our usage. Disable this feature.
6747 alias -g '${1+"$@"}'='"$@"'
6748 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6749 set -o posix
6752 # Support unset when possible.
6753 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6754 as_unset=unset
6755 else
6756 as_unset=false
6760 # Work around bugs in pre-3.0 UWIN ksh.
6761 $as_unset ENV MAIL MAILPATH
6762 PS1='$ '
6763 PS2='> '
6764 PS4='+ '
6766 # NLS nuisances.
6767 for as_var in \
6768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6770 LC_TELEPHONE LC_TIME
6772 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6773 eval $as_var=C; export $as_var
6774 else
6775 $as_unset $as_var
6777 done
6779 # Required to use basename.
6780 if expr a : '\(a\)' >/dev/null 2>&1; then
6781 as_expr=expr
6782 else
6783 as_expr=false
6786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6787 as_basename=basename
6788 else
6789 as_basename=false
6793 # Name of the executable.
6794 as_me=`$as_basename "$0" ||
6795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6796 X"$0" : 'X\(//\)$' \| \
6797 X"$0" : 'X\(/\)$' \| \
6798 . : '\(.\)' 2>/dev/null ||
6799 echo X/"$0" |
6800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6801 /^X\/\(\/\/\)$/{ s//\1/; q; }
6802 /^X\/\(\/\).*/{ s//\1/; q; }
6803 s/.*/./; q'`
6806 # PATH needs CR, and LINENO needs CR and PATH.
6807 # Avoid depending upon Character Ranges.
6808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6811 as_cr_digits='0123456789'
6812 as_cr_alnum=$as_cr_Letters$as_cr_digits
6814 # The user is always right.
6815 if test "${PATH_SEPARATOR+set}" != set; then
6816 echo "#! /bin/sh" >conf$$.sh
6817 echo "exit 0" >>conf$$.sh
6818 chmod +x conf$$.sh
6819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6820 PATH_SEPARATOR=';'
6821 else
6822 PATH_SEPARATOR=:
6824 rm -f conf$$.sh
6828 as_lineno_1=$LINENO
6829 as_lineno_2=$LINENO
6830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6831 test "x$as_lineno_1" != "x$as_lineno_2" &&
6832 test "x$as_lineno_3" = "x$as_lineno_2" || {
6833 # Find who we are. Look in the path if we contain no path at all
6834 # relative or not.
6835 case $0 in
6836 *[\\/]* ) as_myself=$0 ;;
6837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6843 done
6846 esac
6847 # We did not find ourselves, most probably we were run as `sh COMMAND'
6848 # in which case we are not to be found in the path.
6849 if test "x$as_myself" = x; then
6850 as_myself=$0
6852 if test ! -f "$as_myself"; then
6853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6855 { (exit 1); exit 1; }; }
6857 case $CONFIG_SHELL in
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for as_base in sh bash ksh sh5; do
6865 case $as_dir in
6867 if ("$as_dir/$as_base" -c '
6868 as_lineno_1=$LINENO
6869 as_lineno_2=$LINENO
6870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6871 test "x$as_lineno_1" != "x$as_lineno_2" &&
6872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6873 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6874 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6875 CONFIG_SHELL=$as_dir/$as_base
6876 export CONFIG_SHELL
6877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6878 fi;;
6879 esac
6880 done
6881 done
6883 esac
6885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6886 # uniformly replaced by the line number. The first 'sed' inserts a
6887 # line-number line before each line; the second 'sed' does the real
6888 # work. The second script uses 'N' to pair each line-number line
6889 # with the numbered line, and appends trailing '-' during
6890 # substitution so that $LINENO is not a special case at line end.
6891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6893 sed '=' <$as_myself |
6894 sed '
6896 s,$,-,
6897 : loop
6898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6899 t loop
6900 s,-$,,
6901 s,^['$as_cr_digits']*\n,,
6902 ' >$as_me.lineno &&
6903 chmod +x $as_me.lineno ||
6904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6906 { (exit 1); exit 1; }; }
6908 # Don't try to exec as it changes $[0], causing all sort of problems
6909 # (the dirname of $[0] is not the place where we might find the
6910 # original and so on. Autoconf is especially sensible to this).
6911 . ./$as_me.lineno
6912 # Exit status is that of the last command.
6913 exit
6917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6918 *c*,-n*) ECHO_N= ECHO_C='
6919 ' ECHO_T=' ' ;;
6920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6922 esac
6924 if expr a : '\(a\)' >/dev/null 2>&1; then
6925 as_expr=expr
6926 else
6927 as_expr=false
6930 rm -f conf$$ conf$$.exe conf$$.file
6931 echo >conf$$.file
6932 if ln -s conf$$.file conf$$ 2>/dev/null; then
6933 # We could just check for DJGPP; but this test a) works b) is more generic
6934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6935 if test -f conf$$.exe; then
6936 # Don't use ln at all; we don't have any links
6937 as_ln_s='cp -p'
6938 else
6939 as_ln_s='ln -s'
6941 elif ln conf$$.file conf$$ 2>/dev/null; then
6942 as_ln_s=ln
6943 else
6944 as_ln_s='cp -p'
6946 rm -f conf$$ conf$$.exe conf$$.file
6948 if mkdir -p . 2>/dev/null; then
6949 as_mkdir_p=:
6950 else
6951 as_mkdir_p=false
6954 as_executable_p="test -f"
6956 # Sed expression to map a string onto a valid CPP name.
6957 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6959 # Sed expression to map a string onto a valid variable name.
6960 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6963 # IFS
6964 # We need space, tab and new line, in precisely that order.
6965 as_nl='
6967 IFS=" $as_nl"
6969 # CDPATH.
6970 $as_unset CDPATH
6972 exec 6>&1
6974 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6975 # report actual input values of CONFIG_FILES etc. instead of their
6976 # values after options handling. Logging --version etc. is OK.
6977 exec 5>>config.log
6979 echo
6980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6981 ## Running $as_me. ##
6982 _ASBOX
6983 } >&5
6984 cat >&5 <<_CSEOF
6986 This file was extended by $as_me, which was
6987 generated by GNU Autoconf 2.57. Invocation command line was
6989 CONFIG_FILES = $CONFIG_FILES
6990 CONFIG_HEADERS = $CONFIG_HEADERS
6991 CONFIG_LINKS = $CONFIG_LINKS
6992 CONFIG_COMMANDS = $CONFIG_COMMANDS
6993 $ $0 $@
6995 _CSEOF
6996 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6997 echo >&5
6998 _ACEOF
7000 # Files that config.status was made for.
7001 if test -n "$ac_config_files"; then
7002 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7005 if test -n "$ac_config_headers"; then
7006 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7009 if test -n "$ac_config_links"; then
7010 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7013 if test -n "$ac_config_commands"; then
7014 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7017 cat >>$CONFIG_STATUS <<\_ACEOF
7019 ac_cs_usage="\
7020 \`$as_me' instantiates files from templates according to the
7021 current configuration.
7023 Usage: $0 [OPTIONS] [FILE]...
7025 -h, --help print this help, then exit
7026 -V, --version print version number, then exit
7027 -q, --quiet do not print progress messages
7028 -d, --debug don't remove temporary files
7029 --recheck update $as_me by reconfiguring in the same conditions
7030 --file=FILE[:TEMPLATE]
7031 instantiate the configuration file FILE
7032 --header=FILE[:TEMPLATE]
7033 instantiate the configuration header FILE
7035 Configuration files:
7036 $config_files
7038 Configuration headers:
7039 $config_headers
7041 Report bugs to <bug-autoconf@gnu.org>."
7042 _ACEOF
7044 cat >>$CONFIG_STATUS <<_ACEOF
7045 ac_cs_version="\\
7046 config.status
7047 configured by $0, generated by GNU Autoconf 2.57,
7048 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7050 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7051 Free Software Foundation, Inc.
7052 This config.status script is free software; the Free Software Foundation
7053 gives unlimited permission to copy, distribute and modify it."
7054 srcdir=$srcdir
7055 _ACEOF
7057 cat >>$CONFIG_STATUS <<\_ACEOF
7058 # If no file are specified by the user, then we need to provide default
7059 # value. By we need to know if files were specified by the user.
7060 ac_need_defaults=:
7061 while test $# != 0
7063 case $1 in
7064 --*=*)
7065 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7066 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7067 ac_shift=:
7070 ac_option=$1
7071 ac_optarg=$2
7072 ac_shift=shift
7074 *) # This is not an option, so the user has probably given explicit
7075 # arguments.
7076 ac_option=$1
7077 ac_need_defaults=false;;
7078 esac
7080 case $ac_option in
7081 # Handling of the options.
7082 _ACEOF
7083 cat >>$CONFIG_STATUS <<\_ACEOF
7084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7085 ac_cs_recheck=: ;;
7086 --version | --vers* | -V )
7087 echo "$ac_cs_version"; exit 0 ;;
7088 --he | --h)
7089 # Conflict between --help and --header
7090 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7091 Try \`$0 --help' for more information." >&5
7092 echo "$as_me: error: ambiguous option: $1
7093 Try \`$0 --help' for more information." >&2;}
7094 { (exit 1); exit 1; }; };;
7095 --help | --hel | -h )
7096 echo "$ac_cs_usage"; exit 0 ;;
7097 --debug | --d* | -d )
7098 debug=: ;;
7099 --file | --fil | --fi | --f )
7100 $ac_shift
7101 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7102 ac_need_defaults=false;;
7103 --header | --heade | --head | --hea )
7104 $ac_shift
7105 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7106 ac_need_defaults=false;;
7107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7109 ac_cs_silent=: ;;
7111 # This is an error.
7112 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7113 Try \`$0 --help' for more information." >&5
7114 echo "$as_me: error: unrecognized option: $1
7115 Try \`$0 --help' for more information." >&2;}
7116 { (exit 1); exit 1; }; } ;;
7118 *) ac_config_targets="$ac_config_targets $1" ;;
7120 esac
7121 shift
7122 done
7124 ac_configure_extra_args=
7126 if $ac_cs_silent; then
7127 exec 6>/dev/null
7128 ac_configure_extra_args="$ac_configure_extra_args --silent"
7131 _ACEOF
7132 cat >>$CONFIG_STATUS <<_ACEOF
7133 if \$ac_cs_recheck; then
7134 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7135 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7138 _ACEOF
7144 cat >>$CONFIG_STATUS <<\_ACEOF
7145 for ac_config_target in $ac_config_targets
7147 case "$ac_config_target" in
7148 # Handling of arguments.
7149 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
7150 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
7151 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7152 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
7153 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7154 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7155 { (exit 1); exit 1; }; };;
7156 esac
7157 done
7159 # If the user did not use the arguments to specify the items to instantiate,
7160 # then the envvar interface is used. Set only those that are not.
7161 # We use the long form for the default assignment because of an extremely
7162 # bizarre bug on SunOS 4.1.3.
7163 if $ac_need_defaults; then
7164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7168 # Have a temporary directory for convenience. Make it in the build tree
7169 # simply because there is no reason to put it here, and in addition,
7170 # creating and moving files from /tmp can sometimes cause problems.
7171 # Create a temporary directory, and hook for its removal unless debugging.
7172 $debug ||
7174 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7175 trap '{ (exit 1); exit 1; }' 1 2 13 15
7178 # Create a (secure) tmp directory for tmp files.
7181 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7182 test -n "$tmp" && test -d "$tmp"
7183 } ||
7185 tmp=./confstat$$-$RANDOM
7186 (umask 077 && mkdir $tmp)
7187 } ||
7189 echo "$me: cannot create a temporary directory in ." >&2
7190 { (exit 1); exit 1; }
7193 _ACEOF
7195 cat >>$CONFIG_STATUS <<_ACEOF
7198 # CONFIG_FILES section.
7201 # No need to generate the scripts if there are no CONFIG_FILES.
7202 # This happens for instance when ./config.status config.h
7203 if test -n "\$CONFIG_FILES"; then
7204 # Protect against being on the right side of a sed subst in config.status.
7205 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7206 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7207 s,@SHELL@,$SHELL,;t t
7208 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7209 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7210 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7211 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7212 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7213 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7214 s,@exec_prefix@,$exec_prefix,;t t
7215 s,@prefix@,$prefix,;t t
7216 s,@program_transform_name@,$program_transform_name,;t t
7217 s,@bindir@,$bindir,;t t
7218 s,@sbindir@,$sbindir,;t t
7219 s,@libexecdir@,$libexecdir,;t t
7220 s,@datadir@,$datadir,;t t
7221 s,@sysconfdir@,$sysconfdir,;t t
7222 s,@sharedstatedir@,$sharedstatedir,;t t
7223 s,@localstatedir@,$localstatedir,;t t
7224 s,@libdir@,$libdir,;t t
7225 s,@includedir@,$includedir,;t t
7226 s,@oldincludedir@,$oldincludedir,;t t
7227 s,@infodir@,$infodir,;t t
7228 s,@mandir@,$mandir,;t t
7229 s,@build_alias@,$build_alias,;t t
7230 s,@host_alias@,$host_alias,;t t
7231 s,@target_alias@,$target_alias,;t t
7232 s,@DEFS@,$DEFS,;t t
7233 s,@ECHO_C@,$ECHO_C,;t t
7234 s,@ECHO_N@,$ECHO_N,;t t
7235 s,@ECHO_T@,$ECHO_T,;t t
7236 s,@LIBS@,$LIBS,;t t
7237 s,@subdirs@,$subdirs,;t t
7238 s,@CXX@,$CXX,;t t
7239 s,@CXXFLAGS@,$CXXFLAGS,;t t
7240 s,@LDFLAGS@,$LDFLAGS,;t t
7241 s,@CPPFLAGS@,$CPPFLAGS,;t t
7242 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7243 s,@EXEEXT@,$EXEEXT,;t t
7244 s,@OBJEXT@,$OBJEXT,;t t
7245 s,@PWLIBDIR@,$PWLIBDIR,;t t
7246 s,@PWINSTDIR@,$PWINSTDIR,;t t
7247 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7248 s,@LIBDIR@,$LIBDIR,;t t
7249 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
7250 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
7251 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
7252 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
7253 s,@build@,$build,;t t
7254 s,@build_cpu@,$build_cpu,;t t
7255 s,@build_vendor@,$build_vendor,;t t
7256 s,@build_os@,$build_os,;t t
7257 s,@host@,$host,;t t
7258 s,@host_cpu@,$host_cpu,;t t
7259 s,@host_vendor@,$host_vendor,;t t
7260 s,@host_os@,$host_os,;t t
7261 s,@target@,$target,;t t
7262 s,@target_cpu@,$target_cpu,;t t
7263 s,@target_vendor@,$target_vendor,;t t
7264 s,@target_os@,$target_os,;t t
7265 s,@MACHTYPE@,$MACHTYPE,;t t
7266 s,@OSTYPE@,$OSTYPE,;t t
7267 s,@OSRELEASE@,$OSRELEASE,;t t
7268 s,@TARGETDIR@,$TARGETDIR,;t t
7269 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
7270 s,@CC@,$CC,;t t
7271 s,@CFLAGS@,$CFLAGS,;t t
7272 s,@ac_ct_CC@,$ac_ct_CC,;t t
7273 s,@CXXCPP@,$CXXCPP,;t t
7274 s,@EGREP@,$EGREP,;t t
7275 s,@HAS_REGEX@,$HAS_REGEX,;t t
7276 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
7277 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
7278 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
7279 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
7280 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
7281 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
7282 s,@HAS_SDL@,$HAS_SDL,;t t
7283 s,@HAS_IPV6@,$HAS_IPV6,;t t
7284 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7285 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
7286 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7287 s,@LIBOBJS@,$LIBOBJS,;t t
7288 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7289 CEOF
7291 _ACEOF
7293 cat >>$CONFIG_STATUS <<\_ACEOF
7294 # Split the substitutions into bite-sized pieces for seds with
7295 # small command number limits, like on Digital OSF/1 and HP-UX.
7296 ac_max_sed_lines=48
7297 ac_sed_frag=1 # Number of current file.
7298 ac_beg=1 # First line for current file.
7299 ac_end=$ac_max_sed_lines # Line after last line for current file.
7300 ac_more_lines=:
7301 ac_sed_cmds=
7302 while $ac_more_lines; do
7303 if test $ac_beg -gt 1; then
7304 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7305 else
7306 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7308 if test ! -s $tmp/subs.frag; then
7309 ac_more_lines=false
7310 else
7311 # The purpose of the label and of the branching condition is to
7312 # speed up the sed processing (if there are no `@' at all, there
7313 # is no need to browse any of the substitutions).
7314 # These are the two extra sed commands mentioned above.
7315 (echo ':t
7316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7317 if test -z "$ac_sed_cmds"; then
7318 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7319 else
7320 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7322 ac_sed_frag=`expr $ac_sed_frag + 1`
7323 ac_beg=$ac_end
7324 ac_end=`expr $ac_end + $ac_max_sed_lines`
7326 done
7327 if test -z "$ac_sed_cmds"; then
7328 ac_sed_cmds=cat
7330 fi # test -n "$CONFIG_FILES"
7332 _ACEOF
7333 cat >>$CONFIG_STATUS <<\_ACEOF
7334 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7336 case $ac_file in
7337 - | *:- | *:-:* ) # input from stdin
7338 cat >$tmp/stdin
7339 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7341 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7343 * ) ac_file_in=$ac_file.in ;;
7344 esac
7346 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7347 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7349 X"$ac_file" : 'X\(//\)[^/]' \| \
7350 X"$ac_file" : 'X\(//\)$' \| \
7351 X"$ac_file" : 'X\(/\)' \| \
7352 . : '\(.\)' 2>/dev/null ||
7353 echo X"$ac_file" |
7354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7356 /^X\(\/\/\)$/{ s//\1/; q; }
7357 /^X\(\/\).*/{ s//\1/; q; }
7358 s/.*/./; q'`
7359 { if $as_mkdir_p; then
7360 mkdir -p "$ac_dir"
7361 else
7362 as_dir="$ac_dir"
7363 as_dirs=
7364 while test ! -d "$as_dir"; do
7365 as_dirs="$as_dir $as_dirs"
7366 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7368 X"$as_dir" : 'X\(//\)[^/]' \| \
7369 X"$as_dir" : 'X\(//\)$' \| \
7370 X"$as_dir" : 'X\(/\)' \| \
7371 . : '\(.\)' 2>/dev/null ||
7372 echo X"$as_dir" |
7373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7375 /^X\(\/\/\)$/{ s//\1/; q; }
7376 /^X\(\/\).*/{ s//\1/; q; }
7377 s/.*/./; q'`
7378 done
7379 test ! -n "$as_dirs" || mkdir $as_dirs
7380 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7381 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7382 { (exit 1); exit 1; }; }; }
7384 ac_builddir=.
7386 if test "$ac_dir" != .; then
7387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7388 # A "../" for each directory in $ac_dir_suffix.
7389 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7390 else
7391 ac_dir_suffix= ac_top_builddir=
7394 case $srcdir in
7395 .) # No --srcdir option. We are building in place.
7396 ac_srcdir=.
7397 if test -z "$ac_top_builddir"; then
7398 ac_top_srcdir=.
7399 else
7400 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7401 fi ;;
7402 [\\/]* | ?:[\\/]* ) # Absolute path.
7403 ac_srcdir=$srcdir$ac_dir_suffix;
7404 ac_top_srcdir=$srcdir ;;
7405 *) # Relative path.
7406 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7407 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7408 esac
7409 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7410 # absolute.
7411 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7412 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7413 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7414 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7418 if test x"$ac_file" != x-; then
7419 { echo "$as_me:$LINENO: creating $ac_file" >&5
7420 echo "$as_me: creating $ac_file" >&6;}
7421 rm -f "$ac_file"
7423 # Let's still pretend it is `configure' which instantiates (i.e., don't
7424 # use $as_me), people would be surprised to read:
7425 # /* config.h. Generated by config.status. */
7426 if test x"$ac_file" = x-; then
7427 configure_input=
7428 else
7429 configure_input="$ac_file. "
7431 configure_input=$configure_input"Generated from `echo $ac_file_in |
7432 sed 's,.*/,,'` by configure."
7434 # First look for the input files in the build tree, otherwise in the
7435 # src tree.
7436 ac_file_inputs=`IFS=:
7437 for f in $ac_file_in; do
7438 case $f in
7439 -) echo $tmp/stdin ;;
7440 [\\/$]*)
7441 # Absolute (can't be DOS-style, as IFS=:)
7442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7443 echo "$as_me: error: cannot find input file: $f" >&2;}
7444 { (exit 1); exit 1; }; }
7445 echo $f;;
7446 *) # Relative
7447 if test -f "$f"; then
7448 # Build tree
7449 echo $f
7450 elif test -f "$srcdir/$f"; then
7451 # Source tree
7452 echo $srcdir/$f
7453 else
7454 # /dev/null tree
7455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7456 echo "$as_me: error: cannot find input file: $f" >&2;}
7457 { (exit 1); exit 1; }; }
7458 fi;;
7459 esac
7460 done` || { (exit 1); exit 1; }
7461 _ACEOF
7462 cat >>$CONFIG_STATUS <<_ACEOF
7463 sed "$ac_vpsub
7464 $extrasub
7465 _ACEOF
7466 cat >>$CONFIG_STATUS <<\_ACEOF
7468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7469 s,@configure_input@,$configure_input,;t t
7470 s,@srcdir@,$ac_srcdir,;t t
7471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7472 s,@top_srcdir@,$ac_top_srcdir,;t t
7473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7474 s,@builddir@,$ac_builddir,;t t
7475 s,@abs_builddir@,$ac_abs_builddir,;t t
7476 s,@top_builddir@,$ac_top_builddir,;t t
7477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7478 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7479 rm -f $tmp/stdin
7480 if test x"$ac_file" != x-; then
7481 mv $tmp/out $ac_file
7482 else
7483 cat $tmp/out
7484 rm -f $tmp/out
7487 # Run the commands associated with the file.
7488 case $ac_file in
7489 make/ptlib-config ) chmod a+x make/ptlib-config ;;
7490 esac
7491 done
7492 _ACEOF
7493 cat >>$CONFIG_STATUS <<\_ACEOF
7496 # CONFIG_HEADER section.
7499 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7500 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7502 # ac_d sets the value in "#define NAME VALUE" lines.
7503 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7504 ac_dB='[ ].*$,\1#\2'
7505 ac_dC=' '
7506 ac_dD=',;t'
7507 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7508 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7509 ac_uB='$,\1#\2define\3'
7510 ac_uC=' '
7511 ac_uD=',;t'
7513 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7514 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7515 case $ac_file in
7516 - | *:- | *:-:* ) # input from stdin
7517 cat >$tmp/stdin
7518 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7520 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7522 * ) ac_file_in=$ac_file.in ;;
7523 esac
7525 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7526 echo "$as_me: creating $ac_file" >&6;}
7528 # First look for the input files in the build tree, otherwise in the
7529 # src tree.
7530 ac_file_inputs=`IFS=:
7531 for f in $ac_file_in; do
7532 case $f in
7533 -) echo $tmp/stdin ;;
7534 [\\/$]*)
7535 # Absolute (can't be DOS-style, as IFS=:)
7536 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7537 echo "$as_me: error: cannot find input file: $f" >&2;}
7538 { (exit 1); exit 1; }; }
7539 echo $f;;
7540 *) # Relative
7541 if test -f "$f"; then
7542 # Build tree
7543 echo $f
7544 elif test -f "$srcdir/$f"; then
7545 # Source tree
7546 echo $srcdir/$f
7547 else
7548 # /dev/null tree
7549 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7550 echo "$as_me: error: cannot find input file: $f" >&2;}
7551 { (exit 1); exit 1; }; }
7552 fi;;
7553 esac
7554 done` || { (exit 1); exit 1; }
7555 # Remove the trailing spaces.
7556 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7558 _ACEOF
7560 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7561 # `conftest.undefs', that substitutes the proper values into
7562 # config.h.in to produce config.h. The first handles `#define'
7563 # templates, and the second `#undef' templates.
7564 # And first: Protect against being on the right side of a sed subst in
7565 # config.status. Protect against being in an unquoted here document
7566 # in config.status.
7567 rm -f conftest.defines conftest.undefs
7568 # Using a here document instead of a string reduces the quoting nightmare.
7569 # Putting comments in sed scripts is not portable.
7571 # `end' is used to avoid that the second main sed command (meant for
7572 # 0-ary CPP macros) applies to n-ary macro definitions.
7573 # See the Autoconf documentation for `clear'.
7574 cat >confdef2sed.sed <<\_ACEOF
7575 s/[\\&,]/\\&/g
7576 s,[\\$`],\\&,g
7577 t clear
7578 : clear
7579 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7580 t end
7581 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7582 : end
7583 _ACEOF
7584 # If some macros were called several times there might be several times
7585 # the same #defines, which is useless. Nevertheless, we may not want to
7586 # sort them, since we want the *last* AC-DEFINE to be honored.
7587 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7588 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7589 rm -f confdef2sed.sed
7591 # This sed command replaces #undef with comments. This is necessary, for
7592 # example, in the case of _POSIX_SOURCE, which is predefined and required
7593 # on some systems where configure will not decide to define it.
7594 cat >>conftest.undefs <<\_ACEOF
7595 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7596 _ACEOF
7598 # Break up conftest.defines because some shells have a limit on the size
7599 # of here documents, and old seds have small limits too (100 cmds).
7600 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7601 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7602 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7603 echo ' :' >>$CONFIG_STATUS
7604 rm -f conftest.tail
7605 while grep . conftest.defines >/dev/null
7607 # Write a limited-size here document to $tmp/defines.sed.
7608 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7609 # Speed up: don't consider the non `#define' lines.
7610 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7611 # Work around the forget-to-reset-the-flag bug.
7612 echo 't clr' >>$CONFIG_STATUS
7613 echo ': clr' >>$CONFIG_STATUS
7614 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7615 echo 'CEOF
7616 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7617 rm -f $tmp/in
7618 mv $tmp/out $tmp/in
7619 ' >>$CONFIG_STATUS
7620 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7621 rm -f conftest.defines
7622 mv conftest.tail conftest.defines
7623 done
7624 rm -f conftest.defines
7625 echo ' fi # grep' >>$CONFIG_STATUS
7626 echo >>$CONFIG_STATUS
7628 # Break up conftest.undefs because some shells have a limit on the size
7629 # of here documents, and old seds have small limits too (100 cmds).
7630 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7631 rm -f conftest.tail
7632 while grep . conftest.undefs >/dev/null
7634 # Write a limited-size here document to $tmp/undefs.sed.
7635 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7636 # Speed up: don't consider the non `#undef'
7637 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7638 # Work around the forget-to-reset-the-flag bug.
7639 echo 't clr' >>$CONFIG_STATUS
7640 echo ': clr' >>$CONFIG_STATUS
7641 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7642 echo 'CEOF
7643 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7644 rm -f $tmp/in
7645 mv $tmp/out $tmp/in
7646 ' >>$CONFIG_STATUS
7647 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7648 rm -f conftest.undefs
7649 mv conftest.tail conftest.undefs
7650 done
7651 rm -f conftest.undefs
7653 cat >>$CONFIG_STATUS <<\_ACEOF
7654 # Let's still pretend it is `configure' which instantiates (i.e., don't
7655 # use $as_me), people would be surprised to read:
7656 # /* config.h. Generated by config.status. */
7657 if test x"$ac_file" = x-; then
7658 echo "/* Generated by configure. */" >$tmp/config.h
7659 else
7660 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7662 cat $tmp/in >>$tmp/config.h
7663 rm -f $tmp/in
7664 if test x"$ac_file" != x-; then
7665 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7666 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7667 echo "$as_me: $ac_file is unchanged" >&6;}
7668 else
7669 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7671 X"$ac_file" : 'X\(//\)[^/]' \| \
7672 X"$ac_file" : 'X\(//\)$' \| \
7673 X"$ac_file" : 'X\(/\)' \| \
7674 . : '\(.\)' 2>/dev/null ||
7675 echo X"$ac_file" |
7676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7678 /^X\(\/\/\)$/{ s//\1/; q; }
7679 /^X\(\/\).*/{ s//\1/; q; }
7680 s/.*/./; q'`
7681 { if $as_mkdir_p; then
7682 mkdir -p "$ac_dir"
7683 else
7684 as_dir="$ac_dir"
7685 as_dirs=
7686 while test ! -d "$as_dir"; do
7687 as_dirs="$as_dir $as_dirs"
7688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7690 X"$as_dir" : 'X\(//\)[^/]' \| \
7691 X"$as_dir" : 'X\(//\)$' \| \
7692 X"$as_dir" : 'X\(/\)' \| \
7693 . : '\(.\)' 2>/dev/null ||
7694 echo X"$as_dir" |
7695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7697 /^X\(\/\/\)$/{ s//\1/; q; }
7698 /^X\(\/\).*/{ s//\1/; q; }
7699 s/.*/./; q'`
7700 done
7701 test ! -n "$as_dirs" || mkdir $as_dirs
7702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7704 { (exit 1); exit 1; }; }; }
7706 rm -f $ac_file
7707 mv $tmp/config.h $ac_file
7709 else
7710 cat $tmp/config.h
7711 rm -f $tmp/config.h
7713 done
7714 _ACEOF
7716 cat >>$CONFIG_STATUS <<\_ACEOF
7718 { (exit 0); exit 0; }
7719 _ACEOF
7720 chmod +x $CONFIG_STATUS
7721 ac_clean_files=$ac_clean_files_save
7724 # configure is writing to config.log, and then calls config.status.
7725 # config.status does its own redirection, appending to config.log.
7726 # Unfortunately, on DOS this fails, as config.log is still kept open
7727 # by configure, so config.status won't be able to write to it; its
7728 # output is simply discarded. So we exec the FD to /dev/null,
7729 # effectively closing config.log, so it can be properly (re)opened and
7730 # appended to by config.status. When coming back to configure, we
7731 # need to make the FD available again.
7732 if test "$no_create" != yes; then
7733 ac_cs_success=:
7734 ac_config_status_args=
7735 test "$silent" = yes &&
7736 ac_config_status_args="$ac_config_status_args --quiet"
7737 exec 5>/dev/null
7738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7739 exec 5>>config.log
7740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7741 # would make configure fail if this is the last instruction.
7742 $ac_cs_success || { (exit 1); exit 1; }
7746 # CONFIG_SUBDIRS section.
7748 if test "$no_recursion" != yes; then
7750 # Remove --cache-file and --srcdir arguments so they do not pile up.
7751 ac_sub_configure_args=
7752 ac_prev=
7753 for ac_arg in $ac_configure_args; do
7754 if test -n "$ac_prev"; then
7755 ac_prev=
7756 continue
7758 case $ac_arg in
7759 -cache-file | --cache-file | --cache-fil | --cache-fi \
7760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7761 ac_prev=cache_file ;;
7762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7764 | --c=*)
7766 --config-cache | -C)
7768 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7769 ac_prev=srcdir ;;
7770 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7772 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7773 ac_prev=prefix ;;
7774 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7776 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7777 esac
7778 done
7780 # Always prepend --prefix to ensure using the same prefix
7781 # in subdir configurations.
7782 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7784 ac_popdir=`pwd`
7785 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7787 # Do not complain, so a configure script can configure whichever
7788 # parts of a large source tree are present.
7789 test -d $srcdir/$ac_dir || continue
7791 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7792 echo "$as_me: configuring in $ac_dir" >&6;}
7793 { if $as_mkdir_p; then
7794 mkdir -p "$ac_dir"
7795 else
7796 as_dir="$ac_dir"
7797 as_dirs=
7798 while test ! -d "$as_dir"; do
7799 as_dirs="$as_dir $as_dirs"
7800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7802 X"$as_dir" : 'X\(//\)[^/]' \| \
7803 X"$as_dir" : 'X\(//\)$' \| \
7804 X"$as_dir" : 'X\(/\)' \| \
7805 . : '\(.\)' 2>/dev/null ||
7806 echo X"$as_dir" |
7807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7809 /^X\(\/\/\)$/{ s//\1/; q; }
7810 /^X\(\/\).*/{ s//\1/; q; }
7811 s/.*/./; q'`
7812 done
7813 test ! -n "$as_dirs" || mkdir $as_dirs
7814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7816 { (exit 1); exit 1; }; }; }
7818 ac_builddir=.
7820 if test "$ac_dir" != .; then
7821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7822 # A "../" for each directory in $ac_dir_suffix.
7823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7824 else
7825 ac_dir_suffix= ac_top_builddir=
7828 case $srcdir in
7829 .) # No --srcdir option. We are building in place.
7830 ac_srcdir=.
7831 if test -z "$ac_top_builddir"; then
7832 ac_top_srcdir=.
7833 else
7834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7835 fi ;;
7836 [\\/]* | ?:[\\/]* ) # Absolute path.
7837 ac_srcdir=$srcdir$ac_dir_suffix;
7838 ac_top_srcdir=$srcdir ;;
7839 *) # Relative path.
7840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7842 esac
7843 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7844 # absolute.
7845 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7846 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7847 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7848 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7851 cd $ac_dir
7853 # Check for guested configure; otherwise get Cygnus style configure.
7854 if test -f $ac_srcdir/configure.gnu; then
7855 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7856 elif test -f $ac_srcdir/configure; then
7857 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7858 elif test -f $ac_srcdir/configure.in; then
7859 ac_sub_configure=$ac_configure
7860 else
7861 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7862 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7863 ac_sub_configure=
7866 # The recursion is here.
7867 if test -n "$ac_sub_configure"; then
7868 # Make the cache file name correct relative to the subdirectory.
7869 case $cache_file in
7870 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7871 *) # Relative path.
7872 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7873 esac
7875 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7876 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7877 # The eval makes quoting arguments work.
7878 eval $ac_sub_configure $ac_sub_configure_args \
7879 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7880 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7881 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7882 { (exit 1); exit 1; }; }
7885 cd $ac_popdir
7886 done