Prevented memory leak detection from considering anything
[pwlib.git] / configure
blob9452c611d123e09f3e8c1042065667958068c647
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="include/ptlib.h"
275 ac_subdirs_all="$ac_subdirs_all plugins"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 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 USE_GCC USE_PCH SHAREDLIBEXT CXXCPP EGREP FLEX AR BISON HAS_REGEX HAS_PLUGINS HAS_RESOLVER HAS_SASL HAS_SASL2 HAS_OPENLDAP HAS_OPENSSL P_STATIC_ENDLDLIBS P_STATIC_LDFLAGS HAS_EXPAT HAS_VXML HAS_JABBER HAS_XMLRPC HAS_SOAP HAS_TTS HAS_IPV6 HAS_SDL HAS_VIDEO HAS_VIDEO_CAPTURE USE_SHM_VIDEO_DEVICES HAS_ASN HAS_STUN HAS_PIPECHAN HAS_DTMF HAS_WAVFILE HAS_SOCKS HAS_FTP HAS_SNMP HAS_TELNET HAS_REMCONN HAS_SERIAL HAS_POP3SMTP HAS_HTTP HAS_HTTPSVC HAS_CONFIG_FILE HAS_SOCKAGG HAS_VIDFILE HAS_AUDIO HAS_OSS HAS_ALSA HAS_ODBC STDCCFLAGS STDCXXFLAGS OPTSTDCCFLAGS ENDLDLIBS DEBUG_FLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXX_set=${CXX+set}
755 ac_env_CXX_value=$CXX
756 ac_cv_env_CXX_set=${CXX+set}
757 ac_cv_env_CXX_value=$CXX
758 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_env_CXXFLAGS_value=$CXXFLAGS
760 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXXCPP_set=${CXXCPP+set}
771 ac_env_CXXCPP_value=$CXXCPP
772 ac_cv_env_CXXCPP_set=${CXXCPP+set}
773 ac_cv_env_CXXCPP_value=$CXXCPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839 _ACEOF
842 if test -n "$ac_init_help"; then
844 cat <<\_ACEOF
846 Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --enable-pch disable precompiled headers
850 --enable-minsize minimise the size of the lib by disabling least used options
851 --enable-openh323 include only options needed with openh323
852 --enable-opal include only options needed with opal
853 --enable-internalregex force internal regex library
854 --enable-plugins enable plugin support
855 --disable-resolver disable DNS resolver support
856 --disable-sasl disable SASL support
857 --disable-openldap disable OpenLDAP support
858 --disable-openssl disable OpenSSL support
859 --disable-expat disable XML support
860 --disable-vxml disable VXML support
861 --disable-jabber disable Jabber support
862 --disable-xmlrpc disable XMLRPC support
863 --disable-soap disable SOAP support
864 --disable-tts disable Text-ToSpeech support (default enabled)
865 --disable-ipv6 disable IPV6 support
866 --disable-qos disable QOS support
867 --disable-sdl disable SDL support
868 --disable-video disable video device support
869 --enable-v4l enable V4L video support
870 --enable-v4l2 enable V4L2 video support
871 --enable-bsdvideo enable BSD video support
872 --enable-avc enable IEEE1394/AVC video support
873 --enable-dc enable IEEE1394/DC video support
874 --enable-shmvideo enable shared memory video devices
875 --disable-asn disable ASN decoding/encoding support
876 --disable-stun disable STUN protocol support
877 --disable-pipechan disable pipechannel support
878 --disable-dtmf disable DTMF protocol support
879 --disable-wavfile disable WAVFILE support
880 --disable-socks disable SOCKS protocol support
881 --disable-ftp disable FTP support
882 --disable-snmp disable SNMP protocol support
883 --disable-telnet disable Telnet protocol support
884 --disable-remconn disable remote connection support
885 --disable-serial disable serial port support
886 --disable-pop3smtp disable POP3/SMTP support
887 --disable-http disable HTTP support
888 --disable-httpsvc disable HTTP service support
889 --disable-configfile disable config file support
890 --enable-sockagg enable socket aggregation (experimental)
891 --enable-vidfile enable video file support
892 --disable-audio disable audio support
893 --enable-alsa enable ALSA audio support
894 --enable-oss enable OSS audio support
895 --enable-memcheck enable leak testing code (off by default)
896 --disable-odbc disable ODBC support
897 --exceptions enable C++ exceptions
899 Some influential environment variables:
900 CXX C++ compiler command
901 CXXFLAGS C++ compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CXXCPP C++ preprocessor
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
911 _ACEOF
914 if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
916 ac_popdir=`pwd`
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
919 ac_builddir=.
921 if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 else
926 ac_dir_suffix= ac_top_builddir=
929 case $srcdir in
930 .) # No --srcdir option. We are building in place.
931 ac_srcdir=.
932 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=.
934 else
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 fi ;;
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
940 *) # Relative path.
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 esac
945 # Do not use `cd foo && pwd` to compute absolute paths, because
946 # the directories may not exist.
947 case `pwd` in
948 .) ac_abs_builddir="$ac_dir";;
950 case "$ac_dir" in
951 .) ac_abs_builddir=`pwd`;;
952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
954 esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
959 case ${ac_top_builddir}. in
960 .) ac_abs_top_builddir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_srcdir=$ac_srcdir;;
968 case $ac_srcdir in
969 .) ac_abs_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972 esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
977 case $ac_top_srcdir in
978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 esac;;
982 esac
984 cd $ac_dir
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
987 echo
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
990 echo
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
994 echo
995 $ac_configure --help
996 else
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999 cd $ac_popdir
1000 done
1003 test -n "$ac_init_help" && exit 0
1004 if $ac_init_version; then
1005 cat <<\_ACEOF
1007 Copyright (C) 2003 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1010 _ACEOF
1011 exit 0
1013 exec 5>config.log
1014 cat >&5 <<_ACEOF
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.59. Invocation command line was
1021 $ $0 $@
1023 _ACEOF
1025 cat <<_ASUNAME
1026 ## --------- ##
1027 ## Platform. ##
1028 ## --------- ##
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1047 _ASUNAME
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 for as_dir in $PATH
1052 IFS=$as_save_IFS
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1055 done
1057 } >&5
1059 cat >&5 <<_ACEOF
1062 ## ----------- ##
1063 ## Core tests. ##
1064 ## ----------- ##
1066 _ACEOF
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_configure_args=
1075 ac_configure_args0=
1076 ac_configure_args1=
1077 ac_sep=
1078 ac_must_keep_next=false
1079 for ac_pass in 1 2
1081 for ac_arg
1083 case $ac_arg in
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 continue ;;
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090 esac
1091 case $ac_pass in
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1097 else
1098 case $ac_arg in
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105 esac
1107 -* ) ac_must_keep_next=true ;;
1108 esac
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1112 ac_sep=" "
1114 esac
1115 done
1116 done
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log. We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1128 echo
1130 cat <<\_ASBOX
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1134 _ASBOX
1135 echo
1136 # The following way of writing the cache mishandles newlines in values,
1138 (set) 2>&1 |
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140 *ac_space=\ *)
1141 sed -n \
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1146 sed -n \
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 esac;
1151 echo
1153 cat <<\_ASBOX
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1157 _ASBOX
1158 echo
1159 for ac_var in $ac_subst_vars
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1166 if test -n "$ac_subst_files"; then
1167 cat <<\_ASBOX
1168 ## ------------- ##
1169 ## Output files. ##
1170 ## ------------- ##
1171 _ASBOX
1172 echo
1173 for ac_var in $ac_subst_files
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1177 done | sort
1178 echo
1181 if test -s confdefs.h; then
1182 cat <<\_ASBOX
1183 ## ----------- ##
1184 ## confdefs.h. ##
1185 ## ----------- ##
1186 _ASBOX
1187 echo
1188 sed "/^$/d" confdefs.h | sort
1189 echo
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1194 } >&5
1195 rm -f core *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197 exit $exit_status
1199 for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 done
1202 ac_signal=0
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 echo >confdefs.h
1209 # Predefined preprocessor variables.
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 _ACEOF
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 _ACEOF
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 else
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245 for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
1247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
1250 . "$ac_site_file"
1252 done
1254 if test -r "$cache_file"; then
1255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1260 case $cache_file in
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1263 esac
1265 else
1266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1268 >$cache_file
1271 # Check that the precious variables saved in the cache have kept the same
1272 # value.
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1281 set,)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,set)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,);;
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295 echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297 echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1299 fi;;
1300 esac
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1303 case $ac_new_val in
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1307 esac
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 esac
1313 done
1314 if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
1322 ac_ext=c
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347 ac_aux_dir=
1348 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349 if test -f $ac_dir/install-sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install-sh -c"
1352 break
1353 elif test -f $ac_dir/install.sh; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/install.sh -c"
1356 break
1357 elif test -f $ac_dir/shtool; then
1358 ac_aux_dir=$ac_dir
1359 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 break
1362 done
1363 if test -z "$ac_aux_dir"; then
1364 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366 { (exit 1); exit 1; }; }
1368 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 subdirs="$subdirs plugins"
1377 ac_ext=cc
1378 ac_cpp='$CXXCPP $CPPFLAGS'
1379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1382 if test -n "$ac_tool_prefix"; then
1383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1387 echo "$as_me:$LINENO: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_CXX+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392 if test -n "$CXX"; then
1393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1394 else
1395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396 for as_dir in $PATH
1398 IFS=$as_save_IFS
1399 test -z "$as_dir" && as_dir=.
1400 for ac_exec_ext in '' $ac_executable_extensions; do
1401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1402 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1404 break 2
1406 done
1407 done
1411 CXX=$ac_cv_prog_CXX
1412 if test -n "$CXX"; then
1413 echo "$as_me:$LINENO: result: $CXX" >&5
1414 echo "${ECHO_T}$CXX" >&6
1415 else
1416 echo "$as_me:$LINENO: result: no" >&5
1417 echo "${ECHO_T}no" >&6
1420 test -n "$CXX" && break
1421 done
1423 if test -z "$CXX"; then
1424 ac_ct_CXX=$CXX
1425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1427 # Extract the first word of "$ac_prog", so it can be a program name with args.
1428 set dummy $ac_prog; ac_word=$2
1429 echo "$as_me:$LINENO: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 if test -n "$ac_ct_CXX"; then
1435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1436 else
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1440 IFS=$as_save_IFS
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_ac_ct_CXX="$ac_prog"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 break 2
1448 done
1449 done
1453 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1454 if test -n "$ac_ct_CXX"; then
1455 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1456 echo "${ECHO_T}$ac_ct_CXX" >&6
1457 else
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1462 test -n "$ac_ct_CXX" && break
1463 done
1464 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1466 CXX=$ac_ct_CXX
1470 # Provide some information about the compiler.
1471 echo "$as_me:$LINENO:" \
1472 "checking for C++ compiler version" >&5
1473 ac_compiler=`set X $ac_compile; echo $2`
1474 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1475 (eval $ac_compiler --version </dev/null >&5) 2>&5
1476 ac_status=$?
1477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1478 (exit $ac_status); }
1479 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1480 (eval $ac_compiler -v </dev/null >&5) 2>&5
1481 ac_status=$?
1482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1483 (exit $ac_status); }
1484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1485 (eval $ac_compiler -V </dev/null >&5) 2>&5
1486 ac_status=$?
1487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1488 (exit $ac_status); }
1490 cat >conftest.$ac_ext <<_ACEOF
1491 /* confdefs.h. */
1492 _ACEOF
1493 cat confdefs.h >>conftest.$ac_ext
1494 cat >>conftest.$ac_ext <<_ACEOF
1495 /* end confdefs.h. */
1498 main ()
1502 return 0;
1504 _ACEOF
1505 ac_clean_files_save=$ac_clean_files
1506 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1507 # Try to create an executable without -o first, disregard a.out.
1508 # It will help us diagnose broken compilers, and finding out an intuition
1509 # of exeext.
1510 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1511 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1512 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1513 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1514 (eval $ac_link_default) 2>&5
1515 ac_status=$?
1516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1517 (exit $ac_status); }; then
1518 # Find the output, starting from the most likely. This scheme is
1519 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1520 # resort.
1522 # Be careful to initialize this variable, since it used to be cached.
1523 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1524 ac_cv_exeext=
1525 # b.out is created by i960 compilers.
1526 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1528 test -f "$ac_file" || continue
1529 case $ac_file in
1530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1532 conftest.$ac_ext )
1533 # This is the source file.
1535 [ab].out )
1536 # We found the default executable, but exeext='' is most
1537 # certainly right.
1538 break;;
1539 *.* )
1540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1541 # FIXME: I believe we export ac_cv_exeext for Libtool,
1542 # but it would be cool to find out if it's true. Does anybody
1543 # maintain Libtool? --akim.
1544 export ac_cv_exeext
1545 break;;
1547 break;;
1548 esac
1549 done
1550 else
1551 echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1554 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1555 See \`config.log' for more details." >&5
1556 echo "$as_me: error: C++ compiler cannot create executables
1557 See \`config.log' for more details." >&2;}
1558 { (exit 77); exit 77; }; }
1561 ac_exeext=$ac_cv_exeext
1562 echo "$as_me:$LINENO: result: $ac_file" >&5
1563 echo "${ECHO_T}$ac_file" >&6
1565 # Check the compiler produces executables we can run. If not, either
1566 # the compiler is broken, or we cross compile.
1567 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1568 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1569 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1570 # If not cross compiling, check that we can run a simple program.
1571 if test "$cross_compiling" != yes; then
1572 if { ac_try='./$ac_file'
1573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1574 (eval $ac_try) 2>&5
1575 ac_status=$?
1576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1577 (exit $ac_status); }; }; then
1578 cross_compiling=no
1579 else
1580 if test "$cross_compiling" = maybe; then
1581 cross_compiling=yes
1582 else
1583 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1584 If you meant to cross compile, use \`--host'.
1585 See \`config.log' for more details." >&5
1586 echo "$as_me: error: cannot run C++ compiled programs.
1587 If you meant to cross compile, use \`--host'.
1588 See \`config.log' for more details." >&2;}
1589 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: yes" >&5
1594 echo "${ECHO_T}yes" >&6
1596 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1597 ac_clean_files=$ac_clean_files_save
1598 # Check the compiler produces executables we can run. If not, either
1599 # the compiler is broken, or we cross compile.
1600 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1601 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1602 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1603 echo "${ECHO_T}$cross_compiling" >&6
1605 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1606 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1608 (eval $ac_link) 2>&5
1609 ac_status=$?
1610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611 (exit $ac_status); }; then
1612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1613 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1614 # work properly (i.e., refer to `conftest.exe'), while it won't with
1615 # `rm'.
1616 for ac_file in conftest.exe conftest conftest.*; do
1617 test -f "$ac_file" || continue
1618 case $ac_file in
1619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1621 export ac_cv_exeext
1622 break;;
1623 * ) break;;
1624 esac
1625 done
1626 else
1627 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1628 See \`config.log' for more details." >&5
1629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1630 See \`config.log' for more details." >&2;}
1631 { (exit 1); exit 1; }; }
1634 rm -f conftest$ac_cv_exeext
1635 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1636 echo "${ECHO_T}$ac_cv_exeext" >&6
1638 rm -f conftest.$ac_ext
1639 EXEEXT=$ac_cv_exeext
1640 ac_exeext=$EXEEXT
1641 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1643 if test "${ac_cv_objext+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 cat >conftest.$ac_ext <<_ACEOF
1647 /* confdefs.h. */
1648 _ACEOF
1649 cat confdefs.h >>conftest.$ac_ext
1650 cat >>conftest.$ac_ext <<_ACEOF
1651 /* end confdefs.h. */
1654 main ()
1658 return 0;
1660 _ACEOF
1661 rm -f conftest.o conftest.obj
1662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1663 (eval $ac_compile) 2>&5
1664 ac_status=$?
1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666 (exit $ac_status); }; then
1667 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1668 case $ac_file in
1669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1670 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1671 break;;
1672 esac
1673 done
1674 else
1675 echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1679 See \`config.log' for more details." >&5
1680 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1681 See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1687 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1688 echo "${ECHO_T}$ac_cv_objext" >&6
1689 OBJEXT=$ac_cv_objext
1690 ac_objext=$OBJEXT
1691 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1692 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1693 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 cat >conftest.$ac_ext <<_ACEOF
1697 /* confdefs.h. */
1698 _ACEOF
1699 cat confdefs.h >>conftest.$ac_ext
1700 cat >>conftest.$ac_ext <<_ACEOF
1701 /* end confdefs.h. */
1704 main ()
1706 #ifndef __GNUC__
1707 choke me
1708 #endif
1711 return 0;
1713 _ACEOF
1714 rm -f conftest.$ac_objext
1715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1716 (eval $ac_compile) 2>conftest.er1
1717 ac_status=$?
1718 grep -v '^ *+' conftest.er1 >conftest.err
1719 rm -f conftest.er1
1720 cat conftest.err >&5
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); } &&
1723 { ac_try='test -z "$ac_cxx_werror_flag"
1724 || test ! -s conftest.err'
1725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1726 (eval $ac_try) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }; } &&
1730 { ac_try='test -s conftest.$ac_objext'
1731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1732 (eval $ac_try) 2>&5
1733 ac_status=$?
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735 (exit $ac_status); }; }; then
1736 ac_compiler_gnu=yes
1737 else
1738 echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_compiler_gnu=no
1743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1744 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1747 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1748 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1749 GXX=`test $ac_compiler_gnu = yes && echo yes`
1750 ac_test_CXXFLAGS=${CXXFLAGS+set}
1751 ac_save_CXXFLAGS=$CXXFLAGS
1752 CXXFLAGS="-g"
1753 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1754 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1755 if test "${ac_cv_prog_cxx_g+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 cat >conftest.$ac_ext <<_ACEOF
1759 /* confdefs.h. */
1760 _ACEOF
1761 cat confdefs.h >>conftest.$ac_ext
1762 cat >>conftest.$ac_ext <<_ACEOF
1763 /* end confdefs.h. */
1766 main ()
1770 return 0;
1772 _ACEOF
1773 rm -f conftest.$ac_objext
1774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>conftest.er1
1776 ac_status=$?
1777 grep -v '^ *+' conftest.er1 >conftest.err
1778 rm -f conftest.er1
1779 cat conftest.err >&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); } &&
1782 { ac_try='test -z "$ac_cxx_werror_flag"
1783 || test ! -s conftest.err'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 (eval $ac_try) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1795 ac_cv_prog_cxx_g=yes
1796 else
1797 echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1800 ac_cv_prog_cxx_g=no
1802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1804 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1805 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1806 if test "$ac_test_CXXFLAGS" = set; then
1807 CXXFLAGS=$ac_save_CXXFLAGS
1808 elif test $ac_cv_prog_cxx_g = yes; then
1809 if test "$GXX" = yes; then
1810 CXXFLAGS="-g -O2"
1811 else
1812 CXXFLAGS="-g"
1814 else
1815 if test "$GXX" = yes; then
1816 CXXFLAGS="-O2"
1817 else
1818 CXXFLAGS=
1821 for ac_declaration in \
1822 '' \
1823 'extern "C" void std::exit (int) throw (); using std::exit;' \
1824 'extern "C" void std::exit (int); using std::exit;' \
1825 'extern "C" void exit (int) throw ();' \
1826 'extern "C" void exit (int);' \
1827 'void exit (int);'
1829 cat >conftest.$ac_ext <<_ACEOF
1830 /* confdefs.h. */
1831 _ACEOF
1832 cat confdefs.h >>conftest.$ac_ext
1833 cat >>conftest.$ac_ext <<_ACEOF
1834 /* end confdefs.h. */
1835 $ac_declaration
1836 #include <stdlib.h>
1838 main ()
1840 exit (42);
1842 return 0;
1844 _ACEOF
1845 rm -f conftest.$ac_objext
1846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>conftest.er1
1848 ac_status=$?
1849 grep -v '^ *+' conftest.er1 >conftest.err
1850 rm -f conftest.er1
1851 cat conftest.err >&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); } &&
1854 { ac_try='test -z "$ac_cxx_werror_flag"
1855 || test ! -s conftest.err'
1856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1857 (eval $ac_try) 2>&5
1858 ac_status=$?
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; } &&
1861 { ac_try='test -s conftest.$ac_objext'
1862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863 (eval $ac_try) 2>&5
1864 ac_status=$?
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1868 else
1869 echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 continue
1874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1875 cat >conftest.$ac_ext <<_ACEOF
1876 /* confdefs.h. */
1877 _ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h. */
1881 $ac_declaration
1883 main ()
1885 exit (42);
1887 return 0;
1889 _ACEOF
1890 rm -f conftest.$ac_objext
1891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>conftest.er1
1893 ac_status=$?
1894 grep -v '^ *+' conftest.er1 >conftest.err
1895 rm -f conftest.er1
1896 cat conftest.err >&5
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); } &&
1899 { ac_try='test -z "$ac_cxx_werror_flag"
1900 || test ! -s conftest.err'
1901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902 (eval $ac_try) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; } &&
1906 { ac_try='test -s conftest.$ac_objext'
1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908 (eval $ac_try) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1912 break
1913 else
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1919 done
1920 rm -f conftest*
1921 if test -n "$ac_declaration"; then
1922 echo '#ifdef __cplusplus' >>confdefs.h
1923 echo $ac_declaration >>confdefs.h
1924 echo '#endif' >>confdefs.h
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 ac_ext=cc
1935 ac_cpp='$CXXCPP $CPPFLAGS'
1936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1942 PWLIBDIR=`pwd`
1946 if test "x$prefix" = "xNONE"; then
1947 INSTALLPREFIX="/usr/local"
1948 else
1949 INSTALLPREFIX="${prefix}"
1955 LIBDIR=${libdir}
1960 MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
1961 MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
1962 BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
1963 PWLIB_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
1968 MAJOR_VERSION=$MAJOR_VERSION
1970 MINOR_VERSION=$MINOR_VERSION
1972 BUILD_NUMBER=$BUILD_NUMBER
1975 { echo "$as_me:$LINENO: PTLib version is ${PWLIB_VERSION}" >&5
1976 echo "$as_me: PTLib version is ${PWLIB_VERSION}" >&6;};
1979 cat >>confdefs.h <<_ACEOF
1980 #define PWLIB_MAJOR $MAJOR_VERSION
1981 _ACEOF
1984 cat >>confdefs.h <<_ACEOF
1985 #define PWLIB_MINOR $MINOR_VERSION
1986 _ACEOF
1989 cat >>confdefs.h <<_ACEOF
1990 #define PWLIB_BUILD $BUILD_NUMBER
1991 _ACEOF
1994 cat >>confdefs.h <<_ACEOF
1995 #define PWLIB_VERSION "$PWLIB_VERSION"
1996 _ACEOF
2000 # Make sure we can run config.sub.
2001 $ac_config_sub sun4 >/dev/null 2>&1 ||
2002 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2003 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2004 { (exit 1); exit 1; }; }
2006 echo "$as_me:$LINENO: checking build system type" >&5
2007 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2008 if test "${ac_cv_build+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 ac_cv_build_alias=$build_alias
2012 test -z "$ac_cv_build_alias" &&
2013 ac_cv_build_alias=`$ac_config_guess`
2014 test -z "$ac_cv_build_alias" &&
2015 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017 { (exit 1); exit 1; }; }
2018 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2019 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2020 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2021 { (exit 1); exit 1; }; }
2024 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025 echo "${ECHO_T}$ac_cv_build" >&6
2026 build=$ac_cv_build
2027 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2028 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2029 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2032 echo "$as_me:$LINENO: checking host system type" >&5
2033 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2034 if test "${ac_cv_host+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 ac_cv_host_alias=$host_alias
2038 test -z "$ac_cv_host_alias" &&
2039 ac_cv_host_alias=$ac_cv_build_alias
2040 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2041 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2042 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2046 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2047 echo "${ECHO_T}$ac_cv_host" >&6
2048 host=$ac_cv_host
2049 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2050 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2051 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2054 echo "$as_me:$LINENO: checking target system type" >&5
2055 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2056 if test "${ac_cv_target+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 ac_cv_target_alias=$target_alias
2060 test "x$ac_cv_target_alias" = "x" &&
2061 ac_cv_target_alias=$ac_cv_host_alias
2062 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2063 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2064 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2065 { (exit 1); exit 1; }; }
2068 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2069 echo "${ECHO_T}$ac_cv_target" >&6
2070 target=$ac_cv_target
2071 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2072 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2073 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2076 # The aliases save the names the user supplied, while $host etc.
2077 # will get canonicalized.
2078 test -n "$target_alias" &&
2079 test "$program_prefix$program_suffix$program_transform_name" = \
2080 NONENONEs,x,x, &&
2081 program_prefix=${target_alias}-
2083 TARGETDIR=unix
2084 OSTYPE=
2085 NEEDS_PTHREADS=yes
2087 case "$target_os" in
2088 linux*) OSTYPE=linux ;
2089 OSRELEASE="\"`uname -r`\"";
2090 OS_TAG="P_LINUX" ;
2091 need_pragma=yes ;
2094 freebsd* ) OSTYPE=FreeBSD ;
2095 OS_TAG="P_FREEBSD" ;
2096 if test "x$OSRELEASE" = "x"; then
2097 OSRELEASE="`sysctl -n kern.osreldate`" ;
2099 need_pragma=yes ;
2102 openbsd* ) OSTYPE=OpenBSD ;
2103 OS_TAG="P_OPENBSD" ;
2104 OSRELEASE="`sysctl -n kern.osrevision`" ;
2105 ENDLDLIBS="-lossaudio" ;
2106 need_pragma=yes ;
2109 netbsd* ) OSTYPE=NetBSD ;
2110 OS_TAG="P_NETBSD" ;
2111 OSRELEASE="`/sbin/sysctl -n kern.osrevision`" ;
2112 ENDLDLIBS="-lossaudio" ;
2113 need_pragma=yes ;
2116 solaris* | sunos* ) OSTYPE=solaris ;
2117 OS_TAG="P_SOLARIS" ;
2118 OSRELEASE=`uname -r | sed "s/5\.//g"` ;
2119 need_pragma=yes ;
2122 darwin* ) OSTYPE=Darwin ;
2123 OS_TAG="P_MACOSX" ;
2124 OSRELEASE="`uname -r | sed 's/\.//g'`" ;
2125 SHAREDLIBEXT="dylib";
2126 if test -e /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/expat.h ; then
2127 EXPATDIR=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6
2131 beos*) OSTYPE=beos ;
2132 OS_TAG="P_BEOS" ;
2133 OSRELEASE=`uname -r` ;
2134 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
2137 cygwin*) OSTYPE=cygwin ;
2138 OS_TAG="P_CYGWIN" ;
2139 OSRELEASE="`uname -r`";
2142 mingw*) OSTYPE=mingw ;
2143 OS_TAG="P_MINGW" ;
2144 OSRELEASE=`uname -r` ;
2145 TARGETDIR=msos ;
2146 SHAREDLIBEXT="dll" ;
2147 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
2148 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
2149 NEEDS_PTHREADS=no ;
2152 * ) OSTYPE="$target_os" ;
2153 OS_TAG="P_UNKNOWN_OS" ;
2154 OSRELEASE="\"${OSTYPE}_`uname -r`\"" ;
2155 { echo "$as_me:$LINENO: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&5
2156 echo "$as_me: WARNING: \"OS $target_os not recognized - proceed with caution!\"" >&2;} ;
2158 esac
2160 MACHTYPE=
2162 case "$target_cpu" in
2163 x86 | i686 | i586 | i486 | i386 ) MACHTYPE=x86
2166 x86_64) MACHTYPE=x86_64 ;
2167 P_64BIT=1 ;
2168 LIB64=1 ;
2171 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
2172 P_64BIT=1 ;
2175 sparc ) MACHTYPE=sparc ;
2178 powerpc ) MACHTYPE=ppc ;
2181 ppc ) MACHTYPE=ppc ;
2184 powerpc64 ) MACHTYPE=ppc64 ;
2185 P_64BIT=1 ;
2186 LIB64=1 ;
2189 ppc64 ) MACHTYPE=ppc64 ;
2190 P_64BIT=1 ;
2191 LIB64=1 ;
2194 ia64) MACHTYPE=ia64 ;
2195 P_64BIT=1 ;
2198 s390x) MACHTYPE=s390x ;
2199 P_64BIT=1 ;
2200 LIB64=1 ;
2203 s390) MACHTYPE=s390 ;
2206 * ) MACHTYPE=$target_cpu ;
2207 { echo "$as_me:$LINENO: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&5
2208 echo "$as_me: WARNING: \"CPU $target_cpu not recognized - proceed with caution!\"" >&2;} ;;
2209 esac
2211 { echo "$as_me:$LINENO: OSTYPE set to $OSTYPE" >&5
2212 echo "$as_me: OSTYPE set to $OSTYPE" >&6;};
2213 { echo "$as_me:$LINENO: OSRELEASE set to $OSRELEASE" >&5
2214 echo "$as_me: OSRELEASE set to $OSRELEASE" >&6;};
2215 { echo "$as_me:$LINENO: MACHTYPE set to $MACHTYPE" >&5
2216 echo "$as_me: MACHTYPE set to $MACHTYPE" >&6;};
2218 MACHTYPE=$MACHTYPE
2220 OSTYPE=$OSTYPE
2222 OSRELEASE=$OSRELEASE
2224 TARGETDIR=$TARGETDIR
2227 cat >>confdefs.h <<_ACEOF
2228 #define $OS_TAG $OSRELEASE
2229 _ACEOF
2233 cat >>confdefs.h <<\_ACEOF
2234 #define PHAS_TEMPLATES 1
2235 _ACEOF
2238 if test "x$P_64BIT" != "x" ; then
2240 cat >>confdefs.h <<\_ACEOF
2241 #define P_64BIT 1
2242 _ACEOF
2246 if test ${OSTYPE} != beos ; then
2248 cat >>confdefs.h <<\_ACEOF
2249 #define P_PTHREADS 1
2250 _ACEOF
2254 if test ${OSTYPE} != solaris ; then
2255 LDAP_LIBRARIES="-llber -lldap_r"
2259 USE_GCC=
2260 USE_PCH=
2262 if test x$GXX = xyes ; then
2263 USE_GCC=yes
2264 gcc_version=`$CXX -dumpversion`
2265 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2266 echo "$as_me: gcc version is $gcc_version" >&6;};
2267 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
2268 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
2269 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
2271 echo "$as_me:$LINENO: checking checking if pragma implementation should be used" >&5
2272 echo $ECHO_N "checking checking if pragma implementation should be used... $ECHO_C" >&6
2273 if test ${GXX_MAJOR} -lt 4 ; then
2274 if test "${need_pragma}" = "yes" ; then
2275 STDCCFLAGS="$STDCCFLAGS -DP_USE_PRAGMA"
2276 echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6
2278 else
2279 echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2282 else
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2287 echo "$as_me:$LINENO: checking checking if precompiled headers available" >&5
2288 echo $ECHO_N "checking checking if precompiled headers available... $ECHO_C" >&6
2289 if test ${GXX_MAJOR} -lt 4 ; then
2290 enablepch=no
2291 else
2292 enablepch=yes
2293 # Check whether --enable-pch or --disable-pch was given.
2294 if test "${enable_pch+set}" = set; then
2295 enableval="$enable_pch"
2296 enablepch=$enableval
2299 if test "${enablepch}" = "yes" ; then
2300 echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6
2302 USE_PCH=1
2303 else
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2307 else
2308 USE_GCC=no
2316 if test "x${SHAREDLIBEXT}" = "x" ; then
2317 SHAREDLIBEXT="so"
2319 SHAREDLIBEXT=$SHAREDLIBEXT
2322 cat >>confdefs.h <<\_ACEOF
2323 #define P_SHAREDLIBEXT $SHAREDLIBEXT
2324 _ACEOF
2329 if test ${OSTYPE} != "Darwin" ; then
2331 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2332 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2333 if test "${ac_cv_c_bigendian+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 # See if sys/param.h defines the BYTE_ORDER macro.
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2343 #include <sys/types.h>
2344 #include <sys/param.h>
2347 main ()
2349 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2350 bogus endian macros
2351 #endif
2354 return 0;
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2360 ac_status=$?
2361 grep -v '^ *+' conftest.er1 >conftest.err
2362 rm -f conftest.er1
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_cxx_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2379 # It does; now see whether it defined to BIG_ENDIAN or not.
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h. */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2386 #include <sys/types.h>
2387 #include <sys/param.h>
2390 main ()
2392 #if BYTE_ORDER != BIG_ENDIAN
2393 not big endian
2394 #endif
2397 return 0;
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_cxx_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 ac_cv_c_bigendian=yes
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2427 ac_cv_c_bigendian=no
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 # It does not; compile a test program.
2435 if test "$cross_compiling" = yes; then
2436 # try to guess the endianness by grepping values into an object file
2437 ac_cv_c_bigendian=unknown
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2445 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2446 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2447 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2448 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2449 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2451 main ()
2453 _ascii (); _ebcdic ();
2455 return 0;
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_cxx_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2481 ac_cv_c_bigendian=yes
2483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2484 if test "$ac_cv_c_bigendian" = unknown; then
2485 ac_cv_c_bigendian=no
2486 else
2487 # finding both strings is unlikely to happen, but who knows?
2488 ac_cv_c_bigendian=unknown
2491 else
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 else
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2505 main ()
2507 /* Are we little or big endian? From Harbison&Steele. */
2508 union
2510 long l;
2511 char c[sizeof (long)];
2512 } u;
2513 u.l = 1;
2514 exit (u.c[sizeof (long) - 1] == 1);
2516 _ACEOF
2517 rm -f conftest$ac_exeext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2519 (eval $ac_link) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_c_bigendian=no
2529 else
2530 echo "$as_me: program exited with status $ac_status" >&5
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 ( exit $ac_status )
2535 ac_cv_c_bigendian=yes
2537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2543 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2544 case $ac_cv_c_bigendian in
2545 yes)
2547 cat >>confdefs.h <<\_ACEOF
2548 #define WORDS_BIGENDIAN 1
2549 _ACEOF
2554 { { echo "$as_me:$LINENO: error: unknown endianness
2555 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2556 echo "$as_me: error: unknown endianness
2557 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2558 { (exit 1); exit 1; }; } ;;
2559 esac
2561 if test ${ac_cv_c_bigendian} = yes ; then
2562 PBYTE_ORDER=PBIG_ENDIAN
2563 else
2564 PBYTE_ORDER=PLITTLE_ENDIAN
2568 cat >>confdefs.h <<_ACEOF
2569 #define PBYTE_ORDER $PBYTE_ORDER
2570 _ACEOF
2574 ac_ext=cc
2575 ac_cpp='$CXXCPP $CPPFLAGS'
2576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2581 echo "$as_me:$LINENO: checking if linker accepts -felide-constructors" >&5
2582 echo $ECHO_N "checking if linker accepts -felide-constructors... $ECHO_C" >&6
2583 cat >conftest.$ac_ext <<_ACEOF
2584 int main(int ac,char **av) { return 0; }
2585 _ACEOF
2586 $CXX $CXXFLAGS -felide-constructors conftest.cc > /dev/null 2>&1
2587 if test $? = 0 ; then
2588 echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6
2590 STDCXXFLAGS="$STDCXXFLAGS -felide-constructors"
2591 else
2592 echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2596 echo "$as_me:$LINENO: checking if linker accepts -Wreorder" >&5
2597 echo $ECHO_N "checking if linker accepts -Wreorder... $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2599 int main(int ac,char **av) { return 0; }
2600 _ACEOF
2601 $CXX $CXXFLAGS -Wreorder conftest.cc > /dev/null 2>&1
2602 if test $? = 0 ; then
2603 echo "$as_me:$LINENO: result: yes" >&5
2604 echo "${ECHO_T}yes" >&6
2605 STDCXXFLAGS="$STDCXXFLAGS -Wreorder"
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2613 echo "$as_me:$LINENO: checking if debug build accepts -g3 -ggdb -O0" >&5
2614 echo $ECHO_N "checking if debug build accepts -g3 -ggdb -O0... $ECHO_C" >&6
2615 cat >conftest.$ac_ext <<_ACEOF
2616 int main(int ac,char **av) { return 0; }
2617 _ACEOF
2618 $CXX $CXXFLAGS -g3 -ggdb -O0 conftest.cc > /dev/null 2>&1
2619 if test $? = 0 ; then
2620 echo "$as_me:$LINENO: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6
2622 DEBUG_FLAG="-g3 -ggdb -O0"
2623 else
2624 echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6
2626 DEBUG_FLAG="-g"
2630 # AC_MSG_CHECKING(if linker accepts -Woverloaded-virtual)
2631 # AC_LANG_CONFTEST([[int main(int ac,char **av) { return 0; }]])
2632 # $CXX $CFLAGS -Woverloaded-virtual conftest.cc > /dev/null 2>&1
2633 # if test $? = 0 ; then
2634 # AC_MSG_RESULT(yes)
2635 # STDCCFLAGS="$STDCCFLAGS -Woverloaded-virtual"
2636 # else
2637 # AC_MSG_RESULT(no)
2638 # fi
2640 echo "$as_me:$LINENO: checking if compiler uses RTTI by default" >&5
2641 echo $ECHO_N "checking if compiler uses RTTI by default... $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2644 #include <typeinfo>
2645 int main(int ac,char **av)
2647 class A
2649 public:
2650 virtual void fred() { }
2652 class B : public A
2654 public:
2655 void fred() { }
2657 B t;
2658 A * p = dynamic_cast<A *>(&t);
2659 return 0;
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2666 ac_status=$?
2667 grep -v '^ *+' conftest.er1 >conftest.err
2668 rm -f conftest.er1
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_cxx_werror_flag"
2673 || test ! -s conftest.err'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 DEFAULT_RTTI=1
2686 else
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 DEFAULT_RTTI=0
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 if test "$DEFAULT_RTTI" = "1" ; then
2694 echo "$as_me:$LINENO: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6
2696 else
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2699 STDCXXFLAGS="$STDCCFLAGS -rtti"
2702 GCSECTIONS=0
2705 if test 0 = 1 ; then
2708 echo "$as_me:$LINENO: checking if compiler accepts -ffunction-sections" >&5
2709 echo $ECHO_N "checking if compiler accepts -ffunction-sections... $ECHO_C" >&6
2710 cat >conftest.$ac_ext <<_ACEOF
2711 int main(int ac,char **av) { return 0; }
2712 _ACEOF
2713 $CXX $CFLAGS -ffunction-sections -c conftest.cc > /dev/null 2>&1
2714 if test $? = 0 ; then
2715 echo "$as_me:$LINENO: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2717 STDCCFLAGS="$STDCCFLAGS -ffunction-sections"
2718 GCSECTIONS=1
2719 else
2720 echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2726 if test $GCSECTIONS = 1; then
2727 if test "${OSTYPE}" != "Darwin" ; then
2728 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -Wl,--gc-sections"
2734 ac_ext=cc
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2741 ac_ext=cc
2742 ac_cpp='$CXXCPP $CPPFLAGS'
2743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2746 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2747 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2748 if test -z "$CXXCPP"; then
2749 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 # Double quotes because CXXCPP needs to be expanded
2753 for CXXCPP in "$CXX -E" "/lib/cpp"
2755 ac_preproc_ok=false
2756 for ac_cxx_preproc_warn_flag in '' yes
2758 # Use a header file that comes with gcc, so configuring glibc
2759 # with a fresh cross-compiler works.
2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 # <limits.h> exists even on freestanding compilers.
2762 # On the NeXT, cc -E runs the code through the compiler's parser,
2763 # not just through cpp. "Syntax error" is here to catch this case.
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 #ifdef __STDC__
2771 # include <limits.h>
2772 #else
2773 # include <assert.h>
2774 #endif
2775 Syntax error
2776 _ACEOF
2777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } >/dev/null; then
2785 if test -s conftest.err; then
2786 ac_cpp_err=$ac_cxx_preproc_warn_flag
2787 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2788 else
2789 ac_cpp_err=
2791 else
2792 ac_cpp_err=yes
2794 if test -z "$ac_cpp_err"; then
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 # Broken: fails on valid input.
2801 continue
2803 rm -f conftest.err conftest.$ac_ext
2805 # OK, works on sane cases. Now check whether non-existent headers
2806 # can be detected and how.
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 #include <ac_nonexistent.h>
2814 _ACEOF
2815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } >/dev/null; then
2823 if test -s conftest.err; then
2824 ac_cpp_err=$ac_cxx_preproc_warn_flag
2825 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2826 else
2827 ac_cpp_err=
2829 else
2830 ac_cpp_err=yes
2832 if test -z "$ac_cpp_err"; then
2833 # Broken: success on invalid input.
2834 continue
2835 else
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 # Passes both tests.
2840 ac_preproc_ok=:
2841 break
2843 rm -f conftest.err conftest.$ac_ext
2845 done
2846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847 rm -f conftest.err conftest.$ac_ext
2848 if $ac_preproc_ok; then
2849 break
2852 done
2853 ac_cv_prog_CXXCPP=$CXXCPP
2856 CXXCPP=$ac_cv_prog_CXXCPP
2857 else
2858 ac_cv_prog_CXXCPP=$CXXCPP
2860 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2861 echo "${ECHO_T}$CXXCPP" >&6
2862 ac_preproc_ok=false
2863 for ac_cxx_preproc_warn_flag in '' yes
2865 # Use a header file that comes with gcc, so configuring glibc
2866 # with a fresh cross-compiler works.
2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 # <limits.h> exists even on freestanding compilers.
2869 # On the NeXT, cc -E runs the code through the compiler's parser,
2870 # not just through cpp. "Syntax error" is here to catch this case.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 #ifdef __STDC__
2878 # include <limits.h>
2879 #else
2880 # include <assert.h>
2881 #endif
2882 Syntax error
2883 _ACEOF
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_cxx_preproc_warn_flag
2894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2895 else
2896 ac_cpp_err=
2898 else
2899 ac_cpp_err=yes
2901 if test -z "$ac_cpp_err"; then
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 # Broken: fails on valid input.
2908 continue
2910 rm -f conftest.err conftest.$ac_ext
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #include <ac_nonexistent.h>
2921 _ACEOF
2922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_cxx_preproc_warn_flag
2932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2933 else
2934 ac_cpp_err=
2936 else
2937 ac_cpp_err=yes
2939 if test -z "$ac_cpp_err"; then
2940 # Broken: success on invalid input.
2941 continue
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Passes both tests.
2947 ac_preproc_ok=:
2948 break
2950 rm -f conftest.err conftest.$ac_ext
2952 done
2953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954 rm -f conftest.err conftest.$ac_ext
2955 if $ac_preproc_ok; then
2957 else
2958 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 ac_ext=cc
2966 ac_cpp='$CXXCPP $CPPFLAGS'
2967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2972 echo "$as_me:$LINENO: checking for egrep" >&5
2973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2974 if test "${ac_cv_prog_egrep+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2978 then ac_cv_prog_egrep='grep -E'
2979 else ac_cv_prog_egrep='egrep'
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2983 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2984 EGREP=$ac_cv_prog_egrep
2987 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2989 if test "${ac_cv_header_stdc+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h. */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
2998 #include <stdlib.h>
2999 #include <stdarg.h>
3000 #include <string.h>
3001 #include <float.h>
3004 main ()
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_cxx_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_header_stdc=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_cv_header_stdc=no
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042 if test $ac_cv_header_stdc = yes; then
3043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #include <string.h>
3052 _ACEOF
3053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3054 $EGREP "memchr" >/dev/null 2>&1; then
3056 else
3057 ac_cv_header_stdc=no
3059 rm -f conftest*
3063 if test $ac_cv_header_stdc = yes; then
3064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <stdlib.h>
3073 _ACEOF
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 $EGREP "free" >/dev/null 2>&1; then
3077 else
3078 ac_cv_header_stdc=no
3080 rm -f conftest*
3084 if test $ac_cv_header_stdc = yes; then
3085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3086 if test "$cross_compiling" = yes; then
3088 else
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 #include <ctype.h>
3096 #if ((' ' & 0x0FF) == 0x020)
3097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3099 #else
3100 # define ISLOWER(c) \
3101 (('a' <= (c) && (c) <= 'i') \
3102 || ('j' <= (c) && (c) <= 'r') \
3103 || ('s' <= (c) && (c) <= 'z'))
3104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3105 #endif
3107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3109 main ()
3111 int i;
3112 for (i = 0; i < 256; i++)
3113 if (XOR (islower (i), ISLOWER (i))
3114 || toupper (i) != TOUPPER (i))
3115 exit(2);
3116 exit (0);
3118 _ACEOF
3119 rm -f conftest$ac_exeext
3120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3121 (eval $ac_link) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3131 else
3132 echo "$as_me: program exited with status $ac_status" >&5
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 ( exit $ac_status )
3137 ac_cv_header_stdc=no
3139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3144 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3145 if test $ac_cv_header_stdc = yes; then
3147 cat >>confdefs.h <<\_ACEOF
3148 #define STDC_HEADERS 1
3149 _ACEOF
3153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3164 inttypes.h stdint.h unistd.h
3166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3167 echo "$as_me:$LINENO: checking for $ac_header" >&5
3168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3178 $ac_includes_default
3180 #include <$ac_header>
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3184 (eval $ac_compile) 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_cxx_werror_flag"
3192 || test ! -s conftest.err'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
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 eval "$as_ac_Header=yes"
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 eval "$as_ac_Header=no"
3211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3216 cat >>confdefs.h <<_ACEOF
3217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3218 _ACEOF
3222 done
3225 echo "$as_me:$LINENO: checking for int" >&5
3226 echo $ECHO_N "checking for int... $ECHO_C" >&6
3227 if test "${ac_cv_type_int+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 $ac_includes_default
3238 main ()
3240 if ((int *) 0)
3241 return 0;
3242 if (sizeof (int))
3243 return 0;
3245 return 0;
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_cxx_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_type_int=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 ac_cv_type_int=no
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3280 echo "${ECHO_T}$ac_cv_type_int" >&6
3282 echo "$as_me:$LINENO: checking size of int" >&5
3283 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3284 if test "${ac_cv_sizeof_int+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 if test "$ac_cv_type_int" = yes; then
3288 # The cast to unsigned long works around a bug in the HP C Compiler
3289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3291 # This bug is HP SR number 8606223364.
3292 if test "$cross_compiling" = yes; then
3293 # Depending upon the size, compute the lo and hi bounds.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 $ac_includes_default
3302 main ()
3304 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3305 test_array [0] = 0
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_cxx_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_lo=0 ac_mid=0
3334 while :; do
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 $ac_includes_default
3343 main ()
3345 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3346 test_array [0] = 0
3349 return 0;
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_cxx_werror_flag"
3362 || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_hi=$ac_mid; break
3375 else
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 ac_lo=`expr $ac_mid + 1`
3380 if test $ac_lo -le $ac_mid; then
3381 ac_lo= ac_hi=
3382 break
3384 ac_mid=`expr 2 '*' $ac_mid + 1`
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 done
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 $ac_includes_default
3400 main ()
3402 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3403 test_array [0] = 0
3406 return 0;
3408 _ACEOF
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -z "$ac_cxx_werror_flag"
3419 || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_hi=-1 ac_mid=-1
3432 while :; do
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 $ac_includes_default
3441 main ()
3443 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3444 test_array [0] = 0
3447 return 0;
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452 (eval $ac_compile) 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); } &&
3459 { ac_try='test -z "$ac_cxx_werror_flag"
3460 || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_lo=$ac_mid; break
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 ac_hi=`expr '(' $ac_mid ')' - 1`
3478 if test $ac_mid -le $ac_hi; then
3479 ac_lo= ac_hi=
3480 break
3482 ac_mid=`expr 2 '*' $ac_mid`
3484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485 done
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 ac_lo= ac_hi=
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3495 # Binary search between lo and hi bounds.
3496 while test "x$ac_lo" != "x$ac_hi"; do
3497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3506 main ()
3508 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3509 test_array [0] = 0
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_hi=$ac_mid
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_lo=`expr '(' $ac_mid ')' + 1`
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 done
3546 case $ac_lo in
3547 ?*) ac_cv_sizeof_int=$ac_lo;;
3548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3549 See \`config.log' for more details." >&5
3550 echo "$as_me: error: cannot compute sizeof (int), 77
3551 See \`config.log' for more details." >&2;}
3552 { (exit 1); exit 1; }; } ;;
3553 esac
3554 else
3555 if test "$cross_compiling" = yes; then
3556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3557 See \`config.log' for more details." >&5
3558 echo "$as_me: error: cannot run test program while cross compiling
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3561 else
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 $ac_includes_default
3569 long longval () { return (long) (sizeof (int)); }
3570 unsigned long ulongval () { return (long) (sizeof (int)); }
3571 #include <stdio.h>
3572 #include <stdlib.h>
3574 main ()
3577 FILE *f = fopen ("conftest.val", "w");
3578 if (! f)
3579 exit (1);
3580 if (((long) (sizeof (int))) < 0)
3582 long i = longval ();
3583 if (i != ((long) (sizeof (int))))
3584 exit (1);
3585 fprintf (f, "%ld\n", i);
3587 else
3589 unsigned long i = ulongval ();
3590 if (i != ((long) (sizeof (int))))
3591 exit (1);
3592 fprintf (f, "%lu\n", i);
3594 exit (ferror (f) || fclose (f) != 0);
3597 return 0;
3599 _ACEOF
3600 rm -f conftest$ac_exeext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_sizeof_int=`cat conftest.val`
3612 else
3613 echo "$as_me: program exited with status $ac_status" >&5
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ( exit $ac_status )
3618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3619 See \`config.log' for more details." >&5
3620 echo "$as_me: error: cannot compute sizeof (int), 77
3621 See \`config.log' for more details." >&2;}
3622 { (exit 1); exit 1; }; }
3624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3627 rm -f conftest.val
3628 else
3629 ac_cv_sizeof_int=0
3632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3633 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3634 cat >>confdefs.h <<_ACEOF
3635 #define SIZEOF_INT $ac_cv_sizeof_int
3636 _ACEOF
3641 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
3642 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
3643 if test "${ac_cv_c_long_double+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 #include <float.h>
3653 long double foo = 0.0;
3655 main ()
3657 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
3658 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
3659 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
3660 test_array [0] = 0
3663 return 0;
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_cxx_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_c_long_double=yes
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 ac_cv_c_long_double=no
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
3698 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3699 if test $ac_cv_c_long_double = yes; then
3701 cat >>confdefs.h <<\_ACEOF
3702 #define HAVE_LONG_DOUBLE 1
3703 _ACEOF
3707 if test $ac_cv_c_long_double != yes ; then
3709 cat >>confdefs.h <<\_ACEOF
3710 #define PNO_LONG_DOUBLE
3711 _ACEOF
3715 if test ${OSTYPE} = Darwin ; then
3716 STDCCFLAGS="$STDCCFLAGS -Wno-long-double"
3719 # Extract the first word of "flex", so it can be a program name with args.
3720 set dummy flex; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_path_FLEX+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 case $FLEX in
3727 [\\/]* | ?:[\\/]*)
3728 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3746 esac
3748 FLEX=$ac_cv_path_FLEX
3750 if test -n "$FLEX"; then
3751 echo "$as_me:$LINENO: result: $FLEX" >&5
3752 echo "${ECHO_T}$FLEX" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3758 if test -z "$FLEX" ; then
3759 { { echo "$as_me:$LINENO: error: pwlib needs the GNU Project fast lexical analyzer generator flex" >&5
3760 echo "$as_me: error: pwlib needs the GNU Project fast lexical analyzer generator flex" >&2;}
3761 { (exit 1); exit 1; }; }
3764 # Extract the first word of "ar", so it can be a program name with args.
3765 set dummy ar; ac_word=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_path_AR+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 case $AR in
3772 [\\/]* | ?:[\\/]*)
3773 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3791 esac
3793 AR=$ac_cv_path_AR
3795 if test -n "$AR"; then
3796 echo "$as_me:$LINENO: result: $AR" >&5
3797 echo "${ECHO_T}$AR" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 if test -z "$AR" ; then
3804 # Extract the first word of "gar", so it can be a program name with args.
3805 set dummy gar; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_path_AR+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 case $AR in
3812 [\\/]* | ?:[\\/]*)
3813 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3827 done
3828 done
3831 esac
3833 AR=$ac_cv_path_AR
3835 if test -n "$AR"; then
3836 echo "$as_me:$LINENO: result: $AR" >&5
3837 echo "${ECHO_T}$AR" >&6
3838 else
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3845 # Extract the first word of "bison", so it can be a program name with args.
3846 set dummy bison; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_path_BISON+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 case $BISON in
3853 [\\/]* | ?:[\\/]*)
3854 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3872 esac
3874 BISON=$ac_cv_path_BISON
3876 if test -n "$BISON"; then
3877 echo "$as_me:$LINENO: result: $BISON" >&5
3878 echo "${ECHO_T}$BISON" >&6
3879 else
3880 echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3884 if test -z "$BISON" ; then
3885 { { echo "$as_me:$LINENO: error: pwlib needs the GNU Project parser generator bison" >&5
3886 echo "$as_me: error: pwlib needs the GNU Project parser generator bison" >&2;}
3887 { (exit 1); exit 1; }; }
3890 echo "$as_me:$LINENO: checking if readdir_r has 2 parms" >&5
3891 echo $ECHO_N "checking if readdir_r has 2 parms... $ECHO_C" >&6
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #define _POSIX_PTHREAD_SEMANTICS
3899 #include <dirent.h>
3901 main ()
3903 DIR *s; struct dirent * e; readdir_r(s, e);
3905 return 0;
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_cxx_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 P_HAS_POSIX_READDIR_R=2
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 P_HAS_POSIX_READDIR_R=0
3937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938 if test ${P_HAS_POSIX_READDIR_R} = 2 ; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940 echo "${ECHO_T}yes" >&6
3941 else
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 echo "$as_me:$LINENO: checking if readdir_r has 3 parms" >&5
3945 echo $ECHO_N "checking if readdir_r has 3 parms... $ECHO_C" >&6
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 #include <dirent.h>
3954 main ()
3956 DIR *s; struct dirent * e; struct dirent * p; readdir_r(s, e, &p);
3958 return 0;
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 P_HAS_POSIX_READDIR_R=3
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 P_HAS_POSIX_READDIR_R=0
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 if test ${P_HAS_POSIX_READDIR_R} = 3 ; then
3992 echo "$as_me:$LINENO: result: yes" >&5
3993 echo "${ECHO_T}yes" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3999 cat >>confdefs.h <<_ACEOF
4000 #define P_HAS_POSIX_READDIR_R ${P_HAS_POSIX_READDIR_R}
4001 _ACEOF
4005 # Check whether --enable-minsize or --disable-minsize was given.
4006 if test "${enable_minsize+set}" = set; then
4007 enableval="$enable_minsize"
4010 # Check whether --enable-openh323 or --disable-openh323 was given.
4011 if test "${enable_openh323+set}" = set; then
4012 enableval="$enable_openh323"
4015 # Check whether --enable-opal or --disable-opal was given.
4016 if test "${enable_opal+set}" = set; then
4017 enableval="$enable_opal"
4021 default_resolver=yes
4022 default_openldap=yes
4023 default_openssl=yes
4024 default_expat=yes
4025 default_sdl=yes
4026 default_sasl=yes
4027 default_plugins=yes
4028 default_tts=yes
4029 default_asn=yes
4030 default_stun=yes
4031 default_pipechan=yes
4032 default_dtmf=yes
4033 default_wavfile=yes
4034 default_socks=yes
4035 default_ftp=yes
4036 default_snmp=yes
4037 default_telnet=yes
4038 default_remconn=no
4039 default_serial=yes
4040 default_pop3smtp=yes
4041 default_audio=yes
4042 default_video=yes
4043 default_http=yes
4044 default_httpsvc=yes
4045 default_soap=yes
4046 default_xmlrpc=yes
4047 default_jabber=yes
4048 default_configfile=yes
4049 default_alsa=yes
4050 default_oss=yes
4051 default_ipv6=yes
4052 default_qos=yes
4053 default_sockagg=no
4054 default_vidfile=yes
4055 default_shmvideo=yes
4056 default_vxml=yes
4058 if test "${enable_openh323}x" = "yesx" -o "${enable_opal}x" = "yesx" ; then
4059 default_resolver=yes
4060 default_openldap=no
4061 default_openssl=yes
4062 default_expat=no
4063 default_sdl=yes
4064 default_sasl=no
4065 default_plugins=yes
4066 default_tts=yes
4067 default_asn=yes
4068 default_stun=yes
4069 default_pipechan=yes
4070 default_dtmf=yes
4071 default_wavfile=yes
4072 default_socks=no
4073 default_ftp=no
4074 default_snmp=no
4075 default_telnet=no
4076 default_remconn=no
4077 default_serial=no
4078 default_pop3smtp=no
4079 default_audio=yes
4080 default_video=yes
4081 default_http=yes
4082 default_httpsvc=no
4083 default_soap=no
4084 default_xmlrpc=no
4085 default_jabber=no
4086 default_configfile=yes
4087 default_alsa=yes
4088 default_oss=yes
4089 default_ipv6=yes
4090 default_qos=yes
4091 default_sockagg=no
4092 default_vidfile=yes
4093 default_shmvideo=no
4094 default_vxml=yes
4095 elif test "${enable_minsize}x" = "yesx" ; then
4096 default_resolver=no
4097 default_openldap=no
4098 default_openssl=no
4099 default_expat=no
4100 default_sdl=no
4101 default_sasl=no
4102 default_plugins=yes
4103 default_tts=no
4104 default_asn=yes
4105 default_stun=yes
4106 default_pipechan=no
4107 default_dtmf=no
4108 default_wavfile=no
4109 default_socks=no
4110 default_ftp=no
4111 default_snmp=no
4112 default_telnet=no
4113 default_remconn=no
4114 default_serial=no
4115 default_pop3smtp=no
4116 default_audio=yes
4117 default_video=yes
4118 default_http=yes
4119 default_httpsvc=no
4120 default_soap=no
4121 default_xmlrpc=no
4122 default_jabber=no
4123 default_configfile=no
4124 default_alsa=yes
4125 default_oss=no
4126 default_ipv6=no
4127 default_qos=no
4128 default_sockagg=no
4129 default_vidfile=no
4130 default_shmvideo=no
4131 default_vxml=no
4136 P_HAS_RECVMSG=
4137 echo "$as_me:$LINENO: checking for recvmsg" >&5
4138 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4146 #include <sys/socket.h>
4147 #include <netinet/in.h>
4149 main ()
4151 int t = SOL_IP; t = IP_PKTINFO; struct msghdr *msg; recvmsg(0, msg, 0);
4153 return 0;
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_cxx_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 P_HAS_RECVMSG=1
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185 if test "${P_HAS_RECVMSG}" = "1" ; then
4186 echo "$as_me:$LINENO: result: yes" >&5
4187 echo "${ECHO_T}yes" >&6
4188 cat >>confdefs.h <<\_ACEOF
4189 #define P_HAS_RECVMSG 1
4190 _ACEOF
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4198 P_HAS_STL_STREAMS=0
4199 echo "$as_me:$LINENO: checking if using STL streams" >&5
4200 echo $ECHO_N "checking if using STL streams... $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <iostream>
4209 main ()
4211 int v = (int)std::ios_base::seekdir();
4213 return 0;
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_cxx_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 P_HAS_STL_STREAMS=1
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245 if test "${P_HAS_STL_STREAMS}" = 1 ; then
4246 echo "$as_me:$LINENO: result: yes" >&5
4247 echo "${ECHO_T}yes" >&6
4248 else
4249 echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4252 cat >>confdefs.h <<_ACEOF
4253 #define P_HAS_STL_STREAMS ${P_HAS_STL_STREAMS}
4254 _ACEOF
4258 P_HAS_ATOMIC_INT=0
4259 P_NEEDS_GNU_CXX_NAMESPACE=0
4260 echo "$as_me:$LINENO: checking if atomic integer available" >&5
4261 echo $ECHO_N "checking if atomic integer available... $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 #include <bits/atomicity.h>
4270 main ()
4272 _Atomic_word val;
4274 return 0;
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_cxx_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 P_HAS_ATOMIC_INT=1
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <ext/atomicity.h>
4312 main ()
4314 _Atomic_word val;
4316 return 0;
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -z "$ac_cxx_werror_flag"
4329 || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 P_HAS_ATOMIC_INT=2
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 if test ${P_HAS_ATOMIC_INT} != 0 ; then
4352 echo "$as_me:$LINENO: result: yes" >&5
4353 echo "${ECHO_T}yes" >&6
4354 echo "$as_me:$LINENO: checking if __exchange_and_add is in __gnu_cxx namespace" >&5
4355 echo $ECHO_N "checking if __exchange_and_add is in __gnu_cxx namespace... $ECHO_C" >&6
4356 if test ${P_HAS_ATOMIC_INT} = 1 ; then
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <bits/atomicity.h>
4365 main ()
4367 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
4369 return 0;
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_cxx_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 P_NEEDS_GNU_CXX_NAMESPACE=1
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 else
4402 P_HAS_ATOMIC_INT=1
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <ext/atomicity.h>
4411 main ()
4413 _Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)
4415 return 0;
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_cxx_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 P_NEEDS_GNU_CXX_NAMESPACE=1
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then
4449 echo "$as_me:$LINENO: result: yes" >&5
4450 echo "${ECHO_T}yes" >&6
4451 else
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4455 else
4456 echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4460 cat >>confdefs.h <<_ACEOF
4461 #define P_HAS_ATOMIC_INT ${P_HAS_ATOMIC_INT}
4462 _ACEOF
4464 cat >>confdefs.h <<_ACEOF
4465 #define P_NEEDS_GNU_CXX_NAMESPACE ${P_NEEDS_GNU_CXX_NAMESPACE}
4466 _ACEOF
4471 if test "${OSTYPE:-unknown}" = "solaris"; then
4472 echo "$as_me:$LINENO: checking checking for FD_SETSIZE" >&5
4473 echo $ECHO_N "checking checking for FD_SETSIZE... $ECHO_C" >&6
4474 _FD_SYSTEM_FILE=/etc/system
4475 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -c1`
4476 if test "$_FD_SETSIZE" = "#"; then
4477 _FD_SETSIZE=4098
4478 else
4479 _FD_SETSIZE=`cat $_FD_SYSTEM_FILE | grep rlim_fd_max | cut -f2 -d'='`
4480 if test "x$_FD_SETSIZE" = "x"; then
4481 _FD_SETSIZE=4098
4482 else
4483 STDCCFLAGS="$STDCCFLAGS -DFD_SETSIZE=$_FD_SETSIZE"
4486 echo "$as_me:$LINENO: result: $_FD_SETSIZE" >&5
4487 echo "${ECHO_T}$_FD_SETSIZE" >&6
4492 if test "${OSTYPE:-unknown}" = "solaris"; then
4493 echo "$as_me:$LINENO: checking for upad128_t" >&5
4494 echo $ECHO_N "checking for upad128_t... $ECHO_C" >&6
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h. */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4503 main ()
4505 upad128_t upad; upad._q = 0.0;
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -z "$ac_cxx_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 has_upad128_t=y
4533 else
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 if test ${has_upad128_t} == "y"; then
4540 echo "$as_me:$LINENO: result: yes" >&5
4541 echo "${ECHO_T}yes" >&6
4542 cat >>confdefs.h <<\_ACEOF
4543 #define P_HAS_UPAD128_T 1
4544 _ACEOF
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4554 if test ${OSTYPE} != Darwin ; then
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <semaphore.h>
4563 main ()
4565 sem_t *s; sem_init(s, 0, 0);
4567 return 0;
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_cxx_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 P_HAS_SEMAPHORES=1
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 echo "$as_me:$LINENO: checking if Unix semaphores are available" >&5
4600 echo $ECHO_N "checking if Unix semaphores are available... $ECHO_C" >&6
4601 if test "${P_HAS_SEMAPHORES}x" != "x" ; then
4602 cat >>confdefs.h <<\_ACEOF
4603 #define P_HAS_SEMAPHORES 1
4604 _ACEOF
4606 echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6
4608 else
4609 echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4614 if test "${P_HAS_SEMAPHORES}x" == "x" ; then
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #include <semaphore.h>
4624 main ()
4626 sem_t *s = sem_open("test", O_CREAT)
4628 return 0;
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_cxx_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 P_HAS_NAMED_SEMAPHORES=1
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660 echo "$as_me:$LINENO: checking if named semaphores are available" >&5
4661 echo $ECHO_N "checking if named semaphores are available... $ECHO_C" >&6
4662 if test "${P_HAS_NAMED_SEMAPHORES}x" != "x"; then
4663 cat >>confdefs.h <<\_ACEOF
4664 #define P_HAS_NAMED_SEMAPHORES 1
4665 _ACEOF
4667 echo "$as_me:$LINENO: result: yes" >&5
4668 echo "${ECHO_T}yes" >&6
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4672 { echo "$as_me:$LINENO: WARNING: This host does not support semaphores which are essential" >&5
4673 echo "$as_me: WARNING: This host does not support semaphores which are essential" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: to implement 'critical sections'. This feature was added" >&5
4675 echo "$as_me: WARNING: to implement 'critical sections'. This feature was added" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&5
4677 echo "$as_me: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: programs. This feature has been disabled for this host" >&5
4679 echo "$as_me: WARNING: programs. This feature has been disabled for this host" >&2;}
4686 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4687 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4688 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 ac_check_lib_save_LIBS=$LIBS
4692 LIBS="-lpthread $LIBS"
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4700 /* Override any gcc2 internal prototype to avoid an error. */
4701 #ifdef __cplusplus
4702 extern "C"
4703 #endif
4704 /* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4706 char pthread_create ();
4708 main ()
4710 pthread_create ();
4712 return 0;
4714 _ACEOF
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_cxx_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_lib_pthread_pthread_create=yes
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_cv_lib_pthread_pthread_create=no
4744 rm -f conftest.err conftest.$ac_objext \
4745 conftest$ac_exeext conftest.$ac_ext
4746 LIBS=$ac_check_lib_save_LIBS
4748 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4749 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4750 if test $ac_cv_lib_pthread_pthread_create = yes; then
4751 HAS_PTHREADS=yes
4752 else
4753 HAS_PTHREADS=no
4756 if test ${HAS_PTHREADS} = yes ; then
4757 ENDLDLIBS="$ENDLDLIBS -lpthread"
4758 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT"
4759 else
4760 if test ${OSTYPE} = FreeBSD ; then
4761 HAS_PTHREADS=yes
4762 ENDLDLIBS="$ENDLDLIBS -pthread"
4763 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
4764 elif test ${OSTYPE} = FreeBSD ; then
4765 HAS_PTHREADS=yes
4766 ENDLDLIBS="$ENDLDLIBS -pthread"
4767 STDCCFLAGS="$STDCCFLAGS -D_REENTRANT -pthread"
4772 if test ${HAS_PTHREADS} != yes -a ${NEEDS_PTHREADS} = yes; then
4773 { { echo "$as_me:$LINENO: error: must have pthreads!" >&5
4774 echo "$as_me: error: must have pthreads!" >&2;}
4775 { (exit 1); exit 1; }; }
4779 if test ${HAS_PTHREADS} = yes ; then
4780 echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is available" >&5
4781 echo $ECHO_N "checking if pthread_mutex_timedlock is available... $ECHO_C" >&6
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h. */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 #include <pthread.h>
4790 main ()
4792 pthread_mutex_timedlock(NULL, NULL);
4794 return 0;
4796 _ACEOF
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -z "$ac_cxx_werror_flag"
4807 || test ! -s conftest.err'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest.$ac_objext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 HAS_PTHREADS_XPG6=yes
4820 else
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 HAS_PTHREADS_XPG6=no
4826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827 if test ${HAS_PTHREADS_XPG6} = yes ; then
4828 echo "$as_me:$LINENO: result: yes" >&5
4829 echo "${ECHO_T}yes" >&6
4831 cat >>confdefs.h <<\_ACEOF
4832 #define P_PTHREADS_XPG6 1
4833 _ACEOF
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6
4840 echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
4841 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6
4842 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 ac_check_lib_save_LIBS=$LIBS
4846 LIBS="-lpthread $LIBS"
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 #ifdef __cplusplus
4856 extern "C"
4857 #endif
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4860 char sem_timedwait ();
4862 main ()
4864 sem_timedwait ();
4866 return 0;
4868 _ACEOF
4869 rm -f conftest.$ac_objext conftest$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_cxx_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 (eval $ac_try) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_lib_pthread_sem_timedwait=yes
4892 else
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 ac_cv_lib_pthread_sem_timedwait=no
4898 rm -f conftest.err conftest.$ac_objext \
4899 conftest$ac_exeext conftest.$ac_ext
4900 LIBS=$ac_check_lib_save_LIBS
4902 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
4903 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6
4904 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
4905 HAS_SEMAPHORES_XPG6=yes
4906 else
4907 HAS_SEMAPHORES_XPG6=no
4910 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
4911 echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
4912 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <semaphore.h>
4921 main ()
4923 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
4925 return 0;
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -z "$ac_cxx_werror_flag"
4938 || test ! -s conftest.err'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 (eval $ac_try) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; } &&
4944 { ac_try='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 HAS_SEMAPHORES_XPG6=yes
4951 else
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 HAS_SEMAPHORES_XPG6=no
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958 if test ${HAS_SEMAPHORES_XPG6} = yes ; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define P_HAS_SEMAPHORES_XPG6 1
4962 _ACEOF
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4966 else
4967 echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4973 P_HAS_RECURSIVE_MUTEX=0
4974 echo "$as_me:$LINENO: checking if recursive mutexes are available" >&5
4975 echo $ECHO_N "checking if recursive mutexes are available... $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <pthread.h>
4984 main ()
4986 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_cxx_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 P_HAS_RECURSIVE_MUTEX=1
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then
5021 echo "$as_me:$LINENO: result: PTHREAD_MUTEX_RECURSIVE_NP" >&5
5022 echo "${ECHO_T}PTHREAD_MUTEX_RECURSIVE_NP" >&6
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 #include <pthread.h>
5032 main ()
5034 pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
5036 return 0;
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_cxx_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 P_HAS_RECURSIVE_MUTEX=2
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 if test ${P_HAS_RECURSIVE_MUTEX} = 2 ; then
5069 echo "$as_me:$LINENO: result: PTHREAD_MUTEX_RECURSIVE" >&5
5070 echo "${ECHO_T}PTHREAD_MUTEX_RECURSIVE" >&6
5071 else
5072 echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5076 cat >>confdefs.h <<_ACEOF
5077 #define P_HAS_RECURSIVE_MUTEX ${P_HAS_RECURSIVE_MUTEX}
5078 _ACEOF
5084 for ac_header in regex.h
5086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088 echo "$as_me:$LINENO: checking for $ac_header" >&5
5089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5095 else
5096 # Is the header compilable?
5097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106 #include <$ac_header>
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_cxx_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_header_compiler=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_header_compiler=no
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5139 echo "${ECHO_T}$ac_header_compiler" >&6
5141 # Is the header present?
5142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #include <$ac_header>
5151 _ACEOF
5152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null; then
5160 if test -s conftest.err; then
5161 ac_cpp_err=$ac_cxx_preproc_warn_flag
5162 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5163 else
5164 ac_cpp_err=
5166 else
5167 ac_cpp_err=yes
5169 if test -z "$ac_cpp_err"; then
5170 ac_header_preproc=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_header_preproc=no
5177 rm -f conftest.err conftest.$ac_ext
5178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5179 echo "${ECHO_T}$ac_header_preproc" >&6
5181 # So? What about this header?
5182 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5183 yes:no: )
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5188 ac_header_preproc=yes
5190 no:yes:* )
5191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5204 cat <<\_ASBOX
5205 ## ------------------------------------------ ##
5206 ## Report this to the AC_PACKAGE_NAME lists. ##
5207 ## ------------------------------------------ ##
5208 _ASBOX
5210 sed "s/^/$as_me: WARNING: /" >&2
5212 esac
5213 echo "$as_me:$LINENO: checking for $ac_header" >&5
5214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 eval "$as_ac_Header=\$ac_header_preproc"
5220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5225 cat >>confdefs.h <<_ACEOF
5226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5227 _ACEOF
5228 HAS_REGEX=yes
5231 done
5234 # Check whether --enable-internalregex or --disable-internalregex was given.
5235 if test "${enable_internalregex+set}" = set; then
5236 enableval="$enable_internalregex"
5237 internalregex=$enableval
5239 if test "$internalregex" = "yes" ; then
5240 { echo "$as_me:$LINENO: Forcing use of internal regex library" >&5
5241 echo "$as_me: Forcing use of internal regex library" >&6;}
5242 else
5243 if test "$HAS_REGEX" = "yes" ; then
5244 echo "$as_me:$LINENO: checking for regcomp" >&5
5245 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
5246 if test "${ac_cv_func_regcomp+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
5256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5257 #define regcomp innocuous_regcomp
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char regcomp (); below.
5261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262 <limits.h> exists even on freestanding compilers. */
5264 #ifdef __STDC__
5265 # include <limits.h>
5266 #else
5267 # include <assert.h>
5268 #endif
5270 #undef regcomp
5272 /* Override any gcc2 internal prototype to avoid an error. */
5273 #ifdef __cplusplus
5274 extern "C"
5276 #endif
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5279 char regcomp ();
5280 /* The GNU C library defines this for functions which it implements
5281 to always fail with ENOSYS. Some functions are actually named
5282 something starting with __ and the normal name is an alias. */
5283 #if defined (__stub_regcomp) || defined (__stub___regcomp)
5284 choke me
5285 #else
5286 char (*f) () = regcomp;
5287 #endif
5288 #ifdef __cplusplus
5290 #endif
5293 main ()
5295 return f != regcomp;
5297 return 0;
5299 _ACEOF
5300 rm -f conftest.$ac_objext conftest$ac_exeext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5302 (eval $ac_link) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_cxx_werror_flag"
5310 || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest$ac_exeext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 ac_cv_func_regcomp=yes
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_cv_func_regcomp=no
5329 rm -f conftest.err conftest.$ac_objext \
5330 conftest$ac_exeext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
5333 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
5334 if test $ac_cv_func_regcomp = yes; then
5335 HAS_REGEX=yes
5338 if test "$HAS_REGEX" = "yes" ; then
5339 HAS_REGEX=1
5342 cat >>confdefs.h <<\_ACEOF
5343 #define P_REGEX 1
5344 _ACEOF
5346 if test ${OSTYPE} = mingw ; then
5347 ENDLDLIBS="$ENDLDLIBS -lregex"
5356 LIBS=""
5357 HAS_LIBDL=no
5358 P_DYNALINK=0
5359 if test ${OSTYPE} = beos ; then
5360 P_DYNALINK=1
5362 cat >>confdefs.h <<\_ACEOF
5363 #define P_DYNALINK 1
5364 _ACEOF
5366 elif test ${OSTYPE} = Darwin ; then
5367 P_DYNALINK=1
5369 cat >>confdefs.h <<\_ACEOF
5370 #define P_DYNALINK 1
5371 _ACEOF
5373 else
5375 for ac_header in dlfcn.h
5377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379 echo "$as_me:$LINENO: checking for $ac_header" >&5
5380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386 else
5387 # Is the header compilable?
5388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397 #include <$ac_header>
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -z "$ac_cxx_werror_flag"
5409 || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_header_compiler=yes
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 ac_header_compiler=no
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5430 echo "${ECHO_T}$ac_header_compiler" >&6
5432 # Is the header present?
5433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 #include <$ac_header>
5442 _ACEOF
5443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } >/dev/null; then
5451 if test -s conftest.err; then
5452 ac_cpp_err=$ac_cxx_preproc_warn_flag
5453 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5454 else
5455 ac_cpp_err=
5457 else
5458 ac_cpp_err=yes
5460 if test -z "$ac_cpp_err"; then
5461 ac_header_preproc=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_header_preproc=no
5468 rm -f conftest.err conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5470 echo "${ECHO_T}$ac_header_preproc" >&6
5472 # So? What about this header?
5473 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5474 yes:no: )
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5479 ac_header_preproc=yes
5481 no:yes:* )
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5495 cat <<\_ASBOX
5496 ## ------------------------------------------ ##
5497 ## Report this to the AC_PACKAGE_NAME lists. ##
5498 ## ------------------------------------------ ##
5499 _ASBOX
5501 sed "s/^/$as_me: WARNING: /" >&2
5503 esac
5504 echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 eval "$as_ac_Header=\$ac_header_preproc"
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5516 cat >>confdefs.h <<_ACEOF
5517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5518 _ACEOF
5519 HAS_DLFCN=yes
5520 else
5521 HAS_DLFCN=no
5524 done
5526 if test "$HAS_DLFCN" = yes ; then
5527 echo "$as_me:$LINENO: checking if dlopen is available" >&5
5528 echo $ECHO_N "checking if dlopen is available... $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <dlfcn.h>
5537 main ()
5539 void * p = dlopen("lib", 0);
5541 return 0;
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -z "$ac_cxx_werror_flag"
5554 || test ! -s conftest.err'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest.$ac_objext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 HAS_DLOPEN=yes
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 HAS_DLOPEN=no
5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5574 if test "$HAS_DLOPEN" = no ; then
5575 echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6
5577 else
5578 echo "$as_me:$LINENO: result: yes" >&5
5579 echo "${ECHO_T}yes" >&6
5580 P_DYNALINK=1
5582 cat >>confdefs.h <<\_ACEOF
5583 #define P_DYNALINK 1
5584 _ACEOF
5586 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5587 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 ac_check_lib_save_LIBS=$LIBS
5592 LIBS="-ldl $LIBS"
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 #ifdef __cplusplus
5602 extern "C"
5603 #endif
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char dlopen ();
5608 main ()
5610 dlopen ();
5612 return 0;
5614 _ACEOF
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -z "$ac_cxx_werror_flag"
5625 || test ! -s conftest.err'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_lib_dl_dlopen=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cv_lib_dl_dlopen=no
5644 rm -f conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
5646 LIBS=$ac_check_lib_save_LIBS
5648 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5649 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5650 if test $ac_cv_lib_dl_dlopen = yes; then
5651 HAS_LIBDL=yes
5652 else
5653 HAS_LIBDL=no
5662 plugins="no"
5663 echo "$as_me:$LINENO: checking if plugins support needs to be compiled" >&5
5664 echo $ECHO_N "checking if plugins support needs to be compiled... $ECHO_C" >&6
5665 # Check whether --enable-plugins or --disable-plugins was given.
5666 if test "${enable_plugins+set}" = set; then
5667 enableval="$enable_plugins"
5670 if test "${enable_plugins}z" = "z" ; then
5671 enable_plugins=default_plugins
5674 HAS_PLUGINS=
5675 if test "${enable_plugins}" = "no" ; then
5676 echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5678 elif test "${P_DYNALINK:-unset}" = "unset" ; then
5679 echo "$as_me:$LINENO: result: plugins disabled as dlopen not available" >&5
5680 echo "${ECHO_T}plugins disabled as dlopen not available" >&6
5681 else
5682 echo "$as_me:$LINENO: result: plugins enabled" >&5
5683 echo "${ECHO_T}plugins enabled" >&6
5684 HAS_PLUGINS=1
5686 cat >>confdefs.h <<\_ACEOF
5687 #define P_HAS_PLUGINS 1
5688 _ACEOF
5694 if test "x$LIB64" != "x" ; then
5696 cat >>confdefs.h <<_ACEOF
5697 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib64/pwlib"
5698 _ACEOF
5700 else
5702 cat >>confdefs.h <<_ACEOF
5703 #define P_DEFAULT_PLUGIN_DIR "${INSTALLPREFIX}/lib/pwlib"
5704 _ACEOF
5710 # Check whether --enable-resolver or --disable-resolver was given.
5711 if test "${enable_resolver+set}" = set; then
5712 enableval="$enable_resolver"
5716 if test "${enable_resolver}z" = "z" ; then
5717 enable_resolver=$default_resolver
5720 HAS_RESOLVER=
5721 if test "$enable_resolver" = "no" ; then
5722 { echo "$as_me:$LINENO: DNS resolver disabled" >&5
5723 echo "$as_me: DNS resolver disabled" >&6;}
5724 else
5726 echo "$as_me:$LINENO: checking for res_ninit" >&5
5727 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6
5728 if test "${ac_cv_func_res_ninit+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 /* Define res_ninit to an innocuous variant, in case <limits.h> declares res_ninit.
5738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5739 #define res_ninit innocuous_res_ninit
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char res_ninit (); below.
5743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 <limits.h> exists even on freestanding compilers. */
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5752 #undef res_ninit
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5758 #endif
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5761 char res_ninit ();
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub_res_ninit) || defined (__stub___res_ninit)
5766 choke me
5767 #else
5768 char (*f) () = res_ninit;
5769 #endif
5770 #ifdef __cplusplus
5772 #endif
5775 main ()
5777 return f != res_ninit;
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_cxx_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest$ac_exeext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_func_res_ninit=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cv_func_res_ninit=no
5811 rm -f conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_cv_func_res_ninit" >&5
5815 echo "${ECHO_T}$ac_cv_func_res_ninit" >&6
5816 if test $ac_cv_func_res_ninit = yes; then
5817 HAS_RES_NINIT
5820 if test "${HAS_RES_NINIT}z" != "z" ; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define P_HAS_RES_NINIT 1
5823 _ACEOF
5825 HAS_RESOLVER=1
5826 RESOLVER_LIBS=""
5829 if test "${HAS_RESOLVER}z" = "z" ; then
5830 echo "$as_me:$LINENO: checking for res_ninit in -lresolv" >&5
5831 echo $ECHO_N "checking for res_ninit in -lresolv... $ECHO_C" >&6
5832 LIBS="-lresolv"
5833 cat >conftest.$ac_ext <<_ACEOF
5835 #include <netinet/in.h>
5836 #include <resolv.h>
5837 int main(int argc,char **argv){
5838 res_state p; res_ninit(p);
5840 _ACEOF
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843 (eval $ac_link) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_cxx_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 HAS_RES_NINIT=1
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5869 rm -f conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext conftest.$ac_ext
5871 if test "${HAS_RES_NINIT}z" != "z" ; then
5872 echo "$as_me:$LINENO: result: yes" >&5
5873 echo "${ECHO_T}yes" >&6
5874 cat >>confdefs.h <<\_ACEOF
5875 #define P_HAS_RES_NINIT 1
5876 _ACEOF
5878 HAS_RESOLVER=1
5879 RESOLVER_LIBS="-lresolv"
5880 else
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5884 LIBS=""
5887 if test "${HAS_RESOLVER}z" = "z" ; then
5888 echo "$as_me:$LINENO: checking for res_search" >&5
5889 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
5890 if test "${ac_cv_func_res_search+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
5900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5901 #define res_search innocuous_res_search
5903 /* System header to define __stub macros and hopefully few prototypes,
5904 which can conflict with char res_search (); below.
5905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906 <limits.h> exists even on freestanding compilers. */
5908 #ifdef __STDC__
5909 # include <limits.h>
5910 #else
5911 # include <assert.h>
5912 #endif
5914 #undef res_search
5916 /* Override any gcc2 internal prototype to avoid an error. */
5917 #ifdef __cplusplus
5918 extern "C"
5920 #endif
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5923 char res_search ();
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_res_search) || defined (__stub___res_search)
5928 choke me
5929 #else
5930 char (*f) () = res_search;
5931 #endif
5932 #ifdef __cplusplus
5934 #endif
5937 main ()
5939 return f != res_search;
5941 return 0;
5943 _ACEOF
5944 rm -f conftest.$ac_objext conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -z "$ac_cxx_werror_flag"
5954 || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_func_res_search=yes
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_cv_func_res_search=no
5973 rm -f conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
5977 echo "${ECHO_T}$ac_cv_func_res_search" >&6
5978 if test $ac_cv_func_res_search = yes; then
5979 HAS_RESOLVER=1
5982 if test "${HAS_RESOLVER}z" != "z" ; then
5983 RESOLVER_LIBS=""
5987 if test "${HAS_RESOLVER}z" = "z" ; then
5988 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
5989 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
5990 LIBS="-lresolv"
5991 cat >conftest.$ac_ext <<_ACEOF
5993 #include <netinet/in.h>
5994 #include <resolv.h>
5995 int main(int argc,char **argv){
5996 res_search (NULL, 0, 0, NULL, 0);
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_cxx_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 HAS_RESOLVER=1
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6027 rm -f conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
6029 if test "${HAS_RESOLVER:-unset}" != "unset" ; then
6030 echo "$as_me:$LINENO: result: yes" >&5
6031 echo "${ECHO_T}yes" >&6
6032 RESOLVER_LIBS="-lresolv"
6033 else
6034 echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6
6037 LIBS=""
6040 if test "${HAS_RESOLVER}z" = "z" ; then
6041 echo "$as_me:$LINENO: checking for library containing __res_search" >&5
6042 echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
6043 if test "${ac_cv_search___res_search+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 ac_func_search_save_LIBS=$LIBS
6047 ac_cv_search___res_search=no
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6055 /* Override any gcc2 internal prototype to avoid an error. */
6056 #ifdef __cplusplus
6057 extern "C"
6058 #endif
6059 /* We use char because int might match the return type of a gcc2
6060 builtin and then its argument prototype would still apply. */
6061 char __res_search ();
6063 main ()
6065 __res_search ();
6067 return 0;
6069 _ACEOF
6070 rm -f conftest.$ac_objext conftest$ac_exeext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6072 (eval $ac_link) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_cxx_werror_flag"
6080 || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_search___res_search="none required"
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6098 rm -f conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6100 if test "$ac_cv_search___res_search" = no; then
6101 for ac_lib in resolv; do
6102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6110 /* Override any gcc2 internal prototype to avoid an error. */
6111 #ifdef __cplusplus
6112 extern "C"
6113 #endif
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6116 char __res_search ();
6118 main ()
6120 __res_search ();
6122 return 0;
6124 _ACEOF
6125 rm -f conftest.$ac_objext conftest$ac_exeext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_cxx_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_search___res_search="-l$ac_lib"
6148 break
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6154 rm -f conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 done
6158 LIBS=$ac_func_search_save_LIBS
6160 echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
6161 echo "${ECHO_T}$ac_cv_search___res_search" >&6
6162 if test "$ac_cv_search___res_search" != no; then
6163 test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
6164 HAS_RESOLVER=1
6169 if test "${HAS_RESOLVER}z" != "z" ; then
6171 cat >>confdefs.h <<\_ACEOF
6172 #define P_DNS 1
6173 _ACEOF
6175 HAS_RESOLVER=1
6182 # Check whether --enable-sasl or --disable-sasl was given.
6183 if test "${enable_sasl+set}" = set; then
6184 enableval="$enable_sasl"
6188 if test "${enable_sasl}z" = "z" ; then
6189 enable_sasl=$default_sasl
6192 HAS_SASL=
6193 HAS_SASL2=
6195 if test "$enable_sasl" = "no" ; then
6196 { echo "$as_me:$LINENO: SASL disabled" >&5
6197 echo "$as_me: SASL disabled" >&6;}
6198 else
6200 echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
6201 echo $ECHO_N "checking for sasl_version in -lsasl2... $ECHO_C" >&6
6202 my_LIBS=$LIBS
6203 LIBS="$LIBS -lsasl2"
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #ifdef __cplusplus
6206 extern "C"
6207 #endif
6208 char sasl_version ();
6210 main ()
6212 sasl_version ();
6214 return 0;
6216 _ACEOF
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_cxx_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest$ac_exeext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 HAS_SASL2=1
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 HAS_SASL2=
6246 rm -f conftest.err conftest.$ac_objext \
6247 conftest$ac_exeext conftest.$ac_ext
6248 if test "${HAS_SASL2}x" = "x" ; then
6249 echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6251 LIBS=$my_LIBS
6252 LIBS="$LIBS -lsasl"
6253 echo "$as_me:$LINENO: checking for sasl_client_auth in sasl" >&5
6254 echo $ECHO_N "checking for sasl_client_auth in sasl... $ECHO_C" >&6
6255 cat >conftest.$ac_ext <<_ACEOF
6256 #ifdef __cplusplus
6257 extern "C"
6258 #endif
6259 char sasl_client_out ();
6261 main ()
6263 sasl_client_out ();
6265 return 0;
6267 _ACEOF
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_cxx_werror_flag"
6278 || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 HAS_SASL=1
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 HAS_SASL=
6297 rm -f conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299 if test "${HAS_SASL}x" = "x" ; then
6300 echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6
6302 else
6303 echo "$as_me:$LINENO: result: yes" >&5
6304 echo "${ECHO_T}yes" >&6
6307 echo "$as_me:$LINENO: result: yes" >&5
6308 echo "${ECHO_T}yes" >&6
6310 LIBS=$my_LIBS
6312 echo "$as_me:$LINENO: checking if <sasl.h> works" >&5
6313 echo $ECHO_N "checking if <sasl.h> works... $ECHO_C" >&6
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #include <sasl.h>
6316 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_cxx_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 HAS_INCLUDE_SASL_H=1
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 if test "${HAS_INCLUDE_SASL_H}x" != "x" ; then
6348 echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6
6350 SASL_INCLUDED=1
6351 else
6352 echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6354 echo "$as_me:$LINENO: checking if <sasl/sasl.h> works" >&5
6355 echo $ECHO_N "checking if <sasl/sasl.h> works... $ECHO_C" >&6
6356 cat >conftest.$ac_ext <<_ACEOF
6357 #include <sasl/sasl.h>
6358 int main(int argc,char **argv){ int v = SASL_LOG_PASS; }
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362 (eval $ac_compile) 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_cxx_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 P_HAS_SASL_SASL_H=1
6383 else
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 if test "${P_HAS_SASL_SASL_H}x" != "x" ; then
6390 echo "$as_me:$LINENO: result: yes" >&5
6391 echo "${ECHO_T}yes" >&6
6392 SASL_INCLUDED=1
6393 cat >>confdefs.h <<\_ACEOF
6394 #define P_HAS_SASL_SASL_H 1
6395 _ACEOF
6397 else
6398 echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6
6400 HAS_SASL2=
6404 if test "${HAS_SASL2}x" != "x" ; then
6405 HAS_SASL2=1
6406 ENDLDLIBS="$ENDLDLIBS -lsasl2"
6407 cat >>confdefs.h <<\_ACEOF
6408 #define P_SASL2 1
6409 _ACEOF
6411 elif test "${HAS_SASL}x" != "x" ; then
6412 HAS_SASL=1
6413 ENDLDLIBS="$ENDLDLIBS -lsasl"
6414 cat >>confdefs.h <<\_ACEOF
6415 #define P_SASL 1
6416 _ACEOF
6418 else
6419 HAS_SASL=0
6427 HAS_MEDIALIB=no
6428 echo "$as_me:$LINENO: checking for mlib_VideoColorJFIFYCC2RGB420_Nearest in -lmlib" >&5
6429 echo $ECHO_N "checking for mlib_VideoColorJFIFYCC2RGB420_Nearest in -lmlib... $ECHO_C" >&6
6430 if test "${ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 ac_check_lib_save_LIBS=$LIBS
6434 LIBS="-lmlib $LIBS"
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 #ifdef __cplusplus
6444 extern "C"
6445 #endif
6446 /* We use char because int might match the return type of a gcc2
6447 builtin and then its argument prototype would still apply. */
6448 char mlib_VideoColorJFIFYCC2RGB420_Nearest ();
6450 main ()
6452 mlib_VideoColorJFIFYCC2RGB420_Nearest ();
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_cxx_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest=yes
6480 else
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest=no
6486 rm -f conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 LIBS=$ac_check_lib_save_LIBS
6490 echo "$as_me:$LINENO: result: $ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest" >&5
6491 echo "${ECHO_T}$ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest" >&6
6492 if test $ac_cv_lib_mlib_mlib_VideoColorJFIFYCC2RGB420_Nearest = yes; then
6493 HAS_MEDIALIB=yes
6494 else
6495 HAS_MEDIALIB=no
6498 if test $HAS_MEDIALIB = yes; then
6499 cat >>confdefs.h <<\_ACEOF
6500 #define P_MEDIALIB 1
6501 _ACEOF
6503 ENDLDLIBS="-lmlib $ENDLDLIBS"
6508 # Check whether --enable-openldap or --disable-openldap was given.
6509 if test "${enable_openldap+set}" = set; then
6510 enableval="$enable_openldap"
6514 if test "${enable_openldap}z" = "z" ; then
6515 enable_openldap=$default_openldap
6518 HAS_OPENLDAP=
6519 if test "$enable_openldap" = "no" ; then
6520 { echo "$as_me:$LINENO: OpenLDAP disabled" >&5
6521 echo "$as_me: OpenLDAP disabled" >&6;}
6522 else
6523 if test "${HAS_RESOLVER:-unset}" != "unset" -o "${OSTYPE}" = "mingw" ; then
6525 for ac_header in ldap.h
6527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536 else
6537 # Is the header compilable?
6538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #include <$ac_header>
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_cxx_werror_flag"
6559 || test ! -s conftest.err'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 (eval $ac_try) 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 ac_header_compiler=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 ac_header_compiler=no
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6580 echo "${ECHO_T}$ac_header_compiler" >&6
6582 # Is the header present?
6583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 #include <$ac_header>
6592 _ACEOF
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } >/dev/null; then
6601 if test -s conftest.err; then
6602 ac_cpp_err=$ac_cxx_preproc_warn_flag
6603 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6604 else
6605 ac_cpp_err=
6607 else
6608 ac_cpp_err=yes
6610 if test -z "$ac_cpp_err"; then
6611 ac_header_preproc=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_header_preproc=no
6618 rm -f conftest.err conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6620 echo "${ECHO_T}$ac_header_preproc" >&6
6622 # So? What about this header?
6623 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6624 yes:no: )
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6629 ac_header_preproc=yes
6631 no:yes:* )
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6645 cat <<\_ASBOX
6646 ## ------------------------------------------ ##
6647 ## Report this to the AC_PACKAGE_NAME lists. ##
6648 ## ------------------------------------------ ##
6649 _ASBOX
6651 sed "s/^/$as_me: WARNING: /" >&2
6653 esac
6654 echo "$as_me:$LINENO: checking for $ac_header" >&5
6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 eval "$as_ac_Header=\$ac_header_preproc"
6661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6666 cat >>confdefs.h <<_ACEOF
6667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6668 _ACEOF
6669 HAS_OPENLDAP=1
6672 done
6675 if test "${OSTYPE:-unknown}" = "solaris"; then
6676 OPENLDAPSYSLIBS=-lposix4
6679 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
6680 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
6681 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
6682 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 ac_check_lib_save_LIBS=$LIBS
6686 LIBS="-lldap $LDAP_LIBRARIES $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6694 /* Override any gcc2 internal prototype to avoid an error. */
6695 #ifdef __cplusplus
6696 extern "C"
6697 #endif
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6700 char ldap_open ();
6702 main ()
6704 ldap_open ();
6706 return 0;
6708 _ACEOF
6709 rm -f conftest.$ac_objext conftest$ac_exeext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711 (eval $ac_link) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_cxx_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try='test -s conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_lib_ldap_ldap_open=yes
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 ac_cv_lib_ldap_ldap_open=no
6738 rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 LIBS=$ac_check_lib_save_LIBS
6742 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
6743 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
6744 if test $ac_cv_lib_ldap_ldap_open = yes; then
6745 HAS_OPENLDAP=1
6746 else
6747 HAS_OPENLDAP=
6750 else
6751 echo "$as_me:$LINENO: checking for /usr/local/include/ldap.h" >&5
6752 echo $ECHO_N "checking for /usr/local/include/ldap.h... $ECHO_C" >&6
6753 if test "${ac_cv_file__usr_local_include_ldap_h+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 test "$cross_compiling" = yes &&
6757 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6758 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6759 { (exit 1); exit 1; }; }
6760 if test -r "/usr/local/include/ldap.h"; then
6761 ac_cv_file__usr_local_include_ldap_h=yes
6762 else
6763 ac_cv_file__usr_local_include_ldap_h=no
6766 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ldap_h" >&5
6767 echo "${ECHO_T}$ac_cv_file__usr_local_include_ldap_h" >&6
6768 if test $ac_cv_file__usr_local_include_ldap_h = yes; then
6769 HAS_OPENLDAP=1
6772 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
6773 OPENLDAPINCLUDEDIR=/usr/local/include
6774 OPENLDAPLIBDIR=/usr/local/lib
6775 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
6776 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
6777 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 ac_check_lib_save_LIBS=$LIBS
6781 LIBS="-lldap -L/usr/local/lib $LDAP_LIBRARIES $RESOLVER_LIBS $ENDLDLIBS $OPENLDAPSYSLIBS $LIBS"
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6789 /* Override any gcc2 internal prototype to avoid an error. */
6790 #ifdef __cplusplus
6791 extern "C"
6792 #endif
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6795 char ldap_open ();
6797 main ()
6799 ldap_open ();
6801 return 0;
6803 _ACEOF
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806 (eval $ac_link) 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_cxx_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_lib_ldap_ldap_open=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_lib_ldap_ldap_open=no
6833 rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835 LIBS=$ac_check_lib_save_LIBS
6837 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
6838 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
6839 if test $ac_cv_lib_ldap_ldap_open = yes; then
6840 HAS_OPENLDAP=1
6841 else
6842 HAS_OPENLDAP=
6849 if test "${HAS_OPENLDAP:-unset}" != "unset" ; then
6850 HAS_OPENLDAP=1
6852 cat >>confdefs.h <<\_ACEOF
6853 #define P_LDAP 1
6854 _ACEOF
6856 ENDLDLIBS="-lldap $LDAP_LIBRARIES $ENDLDLIBS"
6857 if test "${OPENLDAPINCLUDEDIR}unset" != "unset" ; then
6858 STDCCFLAGS="$STDCCFLAGS -I${OPENLDAPINCLUDEDIR}"
6860 if test "${OPENLDAPLIBDIR}unset" != "unset" ; then
6861 LDFLAGS="$LDFLAGS -L${OPENLDAPLIBDIR}"
6874 # Check whether --enable-openssl or --disable-openssl was given.
6875 if test "${enable_openssl+set}" = set; then
6876 enableval="$enable_openssl"
6880 if test "${enable_openssl}z" = "z" ; then
6881 enable_openssl=$default_openssl
6884 HAS_OPENSSL=
6885 if test "$enable_openssl" = "no" ; then
6886 { echo "$as_me:$LINENO: OpenSSL disabled" >&5
6887 echo "$as_me: OpenSSL disabled" >&6;}
6888 else
6890 if test ${OPENSSLDIR:-unset} != "unset" ; then
6891 echo "$as_me:$LINENO: checking for ${OPENSSLDIR}/include/openssl/ssl.h" >&5
6892 echo $ECHO_N "checking for ${OPENSSLDIR}/include/openssl/ssl.h... $ECHO_C" >&6
6893 if test -e ${OPENSSLDIR}/include/openssl/ssl.h ; then
6894 echo "$as_me:$LINENO: result: yes" >&5
6895 echo "${ECHO_T}yes" >&6
6896 SSLHDR=1
6897 SSLINCLUDEDIR="${OPENSSLDIR}/include"
6898 SSLLIBDIR="${OPENSSLDIR}/lib"
6899 else
6900 echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6
6906 if test "${SSLHDR:-unset}" = "unset" ; then
6908 for ac_header in openssl/ssl.h
6910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6912 echo "$as_me:$LINENO: checking for $ac_header" >&5
6913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6919 else
6920 # Is the header compilable?
6921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 $ac_includes_default
6930 #include <$ac_header>
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -z "$ac_cxx_werror_flag"
6942 || test ! -s conftest.err'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; } &&
6948 { ac_try='test -s conftest.$ac_objext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_header_compiler=yes
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 ac_header_compiler=no
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 echo "${ECHO_T}$ac_header_compiler" >&6
6965 # Is the header present?
6966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <$ac_header>
6975 _ACEOF
6976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } >/dev/null; then
6984 if test -s conftest.err; then
6985 ac_cpp_err=$ac_cxx_preproc_warn_flag
6986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6987 else
6988 ac_cpp_err=
6990 else
6991 ac_cpp_err=yes
6993 if test -z "$ac_cpp_err"; then
6994 ac_header_preproc=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_header_preproc=no
7001 rm -f conftest.err conftest.$ac_ext
7002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7003 echo "${ECHO_T}$ac_header_preproc" >&6
7005 # So? What about this header?
7006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7007 yes:no: )
7008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7012 ac_header_preproc=yes
7014 no:yes:* )
7015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7028 cat <<\_ASBOX
7029 ## ------------------------------------------ ##
7030 ## Report this to the AC_PACKAGE_NAME lists. ##
7031 ## ------------------------------------------ ##
7032 _ASBOX
7034 sed "s/^/$as_me: WARNING: /" >&2
7036 esac
7037 echo "$as_me:$LINENO: checking for $ac_header" >&5
7038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042 eval "$as_ac_Header=\$ac_header_preproc"
7044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7049 cat >>confdefs.h <<_ACEOF
7050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7051 _ACEOF
7052 SSLHDR=1
7055 done
7057 if test "${SSLHDR:-unset}" = "unset" ; then
7058 echo "$as_me:$LINENO: checking if openssl/ssl.h works with OPENSSL_NO_KRB5" >&5
7059 echo $ECHO_N "checking if openssl/ssl.h works with OPENSSL_NO_KRB5... $ECHO_C" >&6
7060 cat >conftest.$ac_ext <<_ACEOF
7061 #define OPENSSL_NO_KRB5
7062 #include <openssl/ssl.h>
7063 int main(int argc,char **argv){}
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_cxx_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 SSLHDR=1
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 if test "${SSLHDR:-unset}" != "unset" ; then
7095 echo "$as_me:$LINENO: result: yes" >&5
7096 echo "${ECHO_T}yes" >&6
7097 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
7098 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
7099 if test ${OSTYPE} = linux ; then
7100 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6
7109 if test "${SSLHDR:-unset}" = "unset" ; then
7111 for openssl_dir in /usr/local/openssl /usr/local/ssl ; do
7112 echo "$as_me:$LINENO: checking for OpenSSL in $openssl_dir" >&5
7113 echo $ECHO_N "checking for OpenSSL in $openssl_dir... $ECHO_C" >&6
7114 if test ! -f ${openssl_dir}/include/openssl/ssl.h ; then
7115 echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #include "${openssl_dir}/include/openssl/ssl.h"
7120 int main(int argc,char **argv){ return 0; }
7121 _ACEOF
7122 $CXX $CXXFLAGS -I${openssl_dir}/include -c conftest.cc > /dev/null 2>&1
7123 if test $? = 0 ; then
7124 echo "$as_me:$LINENO: result: yes" >&5
7125 echo "${ECHO_T}yes" >&6
7126 SSLHDR=1
7127 SSLCCFLAGS=""
7128 SSLINCLUDEDIR="${openssl_dir}/include"
7129 SSLLIBDIR="${openssl_dir}/lib"
7130 break
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7134 echo "$as_me:$LINENO: checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5..." >&5
7135 echo $ECHO_N "checking if ${openssl_dir}/include/openssl/ssl.h works with OPENSSL_NO_KRB5...... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #define OPENSSL_NO_KRB5
7138 #include "${openssl_dir}/include/openssl/ssl.h"
7139 int main(int argc,char **argv){}
7140 _ACEOF
7141 $CXX $CXXFLAGS -I${openssl_dir}/openssl/include -c conftest.cc > /dev/null 2>&1
7142 if test $? = 0 ; then
7143 echo "$as_me:$LINENO: result: yes" >&5
7144 echo "${ECHO_T}yes" >&6
7145 SSLHDR=1
7146 SSLCCFLAGS=" -DOPENSSL_NO_KRB5"
7147 SSLINCLUDEDIR="${openssl_dir}/include"
7148 SSLLIBDIR="${openssl_dir}/lib"
7149 P_STATIC_LDFLAGS="$P_STATIC_LDFLAGS -L/usr/kerberos/lib"
7150 if test ${OSTYPE} = linux ; then
7151 P_STATIC_ENDLDLIBS="-lkrb5 -lk5crypto -lcom_err"
7153 break
7154 else
7155 echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7160 done
7163 if test ${SSLHDR:-unset} != "unset" ; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define P_SSL 1
7167 _ACEOF
7169 HAS_OPENSSL=1
7170 if test ${SSLINCLUDEDIR:-unset} != "unset" ; then
7171 STDCCFLAGS="$STDCCFLAGS -I${SSLINCLUDEDIR}"
7173 if test ${SSLLIBDIR:-unset} != "unset" ; then
7174 LDFLAGS="$LDFLAGS -L${SSLLIBDIR}"
7176 STDCCFLAGS="${STDCCFLAGS}${SSLCCFLAGS}"
7177 ENDLDLIBS="$ENDLDLIBS -lssl -lcrypto"
7180 for ac_header in openssl/aes.h
7182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184 echo "$as_me:$LINENO: checking for $ac_header" >&5
7185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7191 else
7192 # Is the header compilable?
7193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7202 #include <$ac_header>
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_cxx_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_header_compiler=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_header_compiler=no
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7235 echo "${ECHO_T}$ac_header_compiler" >&6
7237 # Is the header present?
7238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <$ac_header>
7247 _ACEOF
7248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } >/dev/null; then
7256 if test -s conftest.err; then
7257 ac_cpp_err=$ac_cxx_preproc_warn_flag
7258 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7259 else
7260 ac_cpp_err=
7262 else
7263 ac_cpp_err=yes
7265 if test -z "$ac_cpp_err"; then
7266 ac_header_preproc=yes
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_header_preproc=no
7273 rm -f conftest.err conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7275 echo "${ECHO_T}$ac_header_preproc" >&6
7277 # So? What about this header?
7278 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7279 yes:no: )
7280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7284 ac_header_preproc=yes
7286 no:yes:* )
7287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7300 cat <<\_ASBOX
7301 ## ------------------------------------------ ##
7302 ## Report this to the AC_PACKAGE_NAME lists. ##
7303 ## ------------------------------------------ ##
7304 _ASBOX
7306 sed "s/^/$as_me: WARNING: /" >&2
7308 esac
7309 echo "$as_me:$LINENO: checking for $ac_header" >&5
7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 eval "$as_ac_Header=\$ac_header_preproc"
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323 _ACEOF
7324 HAS_SSL_AES=yes
7325 else
7326 HAS_SSL_AES=no
7329 done
7331 if test "$HAS_SSL_AES" = yes ; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define P_SSL_AES 1
7335 _ACEOF
7339 echo "$as_me:$LINENO: checking for const arg to d2i_AutoPrivateKey" >&5
7340 echo $ECHO_N "checking for const arg to d2i_AutoPrivateKey... $ECHO_C" >&6
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <openssl/evp.h>
7349 main ()
7351 EVP_PKEY **a; const unsigned char **p; long l;
7352 d2i_AutoPrivateKey(a, p, l);
7355 return 0;
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } &&
7367 { ac_try='test -z "$ac_cxx_werror_flag"
7368 || test ! -s conftest.err'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 (eval $ac_try) 2>&5
7371 ac_status=$?
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; } &&
7374 { ac_try='test -s conftest.$ac_objext'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 P_SSL_USE_CONST=yes
7381 else
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 if test "${P_SSL_USE_CONST}x" = "x" ; then
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 else
7391 echo "$as_me:$LINENO: result: yes" >&5
7392 echo "${ECHO_T}yes" >&6
7394 cat >>confdefs.h <<\_ACEOF
7395 #define P_SSL_USE_CONST 1
7396 _ACEOF
7409 # Check whether --enable-expat or --disable-expat was given.
7410 if test "${enable_expat+set}" = set; then
7411 enableval="$enable_expat"
7415 if test "${enable_expat}z" = "z" ; then
7416 enable_expat=$default_expat
7419 HAS_EXPAT=
7420 if test "$enable_expat" = "no" ; then
7421 { echo "$as_me:$LINENO: Expat disabled" >&5
7422 echo "$as_me: Expat disabled" >&6;}
7423 else
7424 if test "${EXPATDIR}z" != "z" ; then
7425 as_ac_File=`echo "ac_cv_file_${EXPATDIR}/include/expat.h" | $as_tr_sh`
7426 echo "$as_me:$LINENO: checking for ${EXPATDIR}/include/expat.h" >&5
7427 echo $ECHO_N "checking for ${EXPATDIR}/include/expat.h... $ECHO_C" >&6
7428 if eval "test \"\${$as_ac_File+set}\" = set"; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 test "$cross_compiling" = yes &&
7432 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7433 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7434 { (exit 1); exit 1; }; }
7435 if test -r "${EXPATDIR}/include/expat.h"; then
7436 eval "$as_ac_File=yes"
7437 else
7438 eval "$as_ac_File=no"
7441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
7442 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
7443 if test `eval echo '${'$as_ac_File'}'` = yes; then
7444 HAS_EXPAT=1
7447 if test "${HAS_EXPAT:-unset}" != "unset" ; then
7448 EXPATINCLUDEDIR=${EXPATDIR}/include
7449 EXPATLIBDIR=${EXPATDIR}/lib
7451 else
7453 for ac_header in expat.h
7455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457 echo "$as_me:$LINENO: checking for $ac_header" >&5
7458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7464 else
7465 # Is the header compilable?
7466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7475 #include <$ac_header>
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7479 (eval $ac_compile) 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -z "$ac_cxx_werror_flag"
7487 || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try='test -s conftest.$ac_objext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 ac_header_compiler=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_header_compiler=no
7506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7508 echo "${ECHO_T}$ac_header_compiler" >&6
7510 # Is the header present?
7511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 #include <$ac_header>
7520 _ACEOF
7521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7523 ac_status=$?
7524 grep -v '^ *+' conftest.er1 >conftest.err
7525 rm -f conftest.er1
7526 cat conftest.err >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } >/dev/null; then
7529 if test -s conftest.err; then
7530 ac_cpp_err=$ac_cxx_preproc_warn_flag
7531 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7532 else
7533 ac_cpp_err=
7535 else
7536 ac_cpp_err=yes
7538 if test -z "$ac_cpp_err"; then
7539 ac_header_preproc=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_header_preproc=no
7546 rm -f conftest.err conftest.$ac_ext
7547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7548 echo "${ECHO_T}$ac_header_preproc" >&6
7550 # So? What about this header?
7551 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7552 yes:no: )
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7557 ac_header_preproc=yes
7559 no:yes:* )
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7573 cat <<\_ASBOX
7574 ## ------------------------------------------ ##
7575 ## Report this to the AC_PACKAGE_NAME lists. ##
7576 ## ------------------------------------------ ##
7577 _ASBOX
7579 sed "s/^/$as_me: WARNING: /" >&2
7581 esac
7582 echo "$as_me:$LINENO: checking for $ac_header" >&5
7583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 eval "$as_ac_Header=\$ac_header_preproc"
7589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7594 cat >>confdefs.h <<_ACEOF
7595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7596 _ACEOF
7597 HAS_EXPAT=1
7600 done
7602 if test "${HAS_EXPAT:-unset}" != "unset" ; then
7603 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
7604 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
7605 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 ac_check_lib_save_LIBS=$LIBS
7609 LIBS="-lexpat $LIBS"
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 #ifdef __cplusplus
7619 extern "C"
7620 #endif
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7623 char XML_ParserCreate ();
7625 main ()
7627 XML_ParserCreate ();
7629 return 0;
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -z "$ac_cxx_werror_flag"
7642 || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_lib_expat_XML_ParserCreate=yes
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 ac_cv_lib_expat_XML_ParserCreate=no
7661 rm -f conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 LIBS=$ac_check_lib_save_LIBS
7665 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
7666 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
7667 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
7668 HAS_EXPAT=1
7669 else
7670 HAS_EXPAT=
7673 else
7674 echo "$as_me:$LINENO: checking for /usr/local/include/expat.h" >&5
7675 echo $ECHO_N "checking for /usr/local/include/expat.h... $ECHO_C" >&6
7676 if test "${ac_cv_file__usr_local_include_expat_h+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 test "$cross_compiling" = yes &&
7680 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7681 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7682 { (exit 1); exit 1; }; }
7683 if test -r "/usr/local/include/expat.h"; then
7684 ac_cv_file__usr_local_include_expat_h=yes
7685 else
7686 ac_cv_file__usr_local_include_expat_h=no
7689 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_expat_h" >&5
7690 echo "${ECHO_T}$ac_cv_file__usr_local_include_expat_h" >&6
7691 if test $ac_cv_file__usr_local_include_expat_h = yes; then
7692 HAS_EXPAT=1
7695 if test "${HAS_EXPAT:-unset}" != "unset" ; then
7696 EXPATINCLUDEDIR=/usr/local/include
7697 EXPATLIBDIR=/usr/local/lib
7702 if test "${HAS_EXPAT:-unset}" != "unset" ; then
7703 HAS_EXPAT=1
7705 cat >>confdefs.h <<\_ACEOF
7706 #define P_EXPAT 1
7707 _ACEOF
7709 if test ${EXPATINCLUDEDIR:-unset} != "unset" ; then
7710 STDCCFLAGS="$STDCCFLAGS -I${EXPATINCLUDEDIR}"
7712 if test ${EXPATLIBDIR:-unset} != "unset" ; then
7713 LDFLAGS="$LDFLAGS -L${EXPATLIBDIR}"
7715 ENDLDLIBS="$ENDLDLIBS -lexpat"
7725 HAS_VXML=
7726 HAS_JABBER=
7727 HAS_XMLRPC=
7728 HAS_SOAP=
7729 if test "$enable_expat" = "no" ; then
7730 { echo "$as_me:$LINENO: VXML disabled as Expat is disabled" >&5
7731 echo "$as_me: VXML disabled as Expat is disabled" >&6;}
7732 { echo "$as_me:$LINENO: Jabber disabled as Expat is disabled" >&5
7733 echo "$as_me: Jabber disabled as Expat is disabled" >&6;}
7734 { echo "$as_me:$LINENO: XMLRPC disabled as Expat is disabled" >&5
7735 echo "$as_me: XMLRPC disabled as Expat is disabled" >&6;}
7736 else
7739 # Check whether --enable-vxml or --disable-vxml was given.
7740 if test "${enable_vxml+set}" = set; then
7741 enableval="$enable_vxml"
7745 if test "${enable_vxml}z" = "z" ; then
7746 enable_vxml=$default_vxml
7748 if test "$enable_vxml" = "no" ; then
7749 { echo "$as_me:$LINENO: VXML disabled" >&5
7750 echo "$as_me: VXML disabled" >&6;}
7751 else
7752 cat >>confdefs.h <<\_ACEOF
7753 #define P_VXML 1
7754 _ACEOF
7756 HAS_VXML=1
7760 # Check whether --enable-jabber or --disable-jabber was given.
7761 if test "${enable_jabber+set}" = set; then
7762 enableval="$enable_jabber"
7766 if test "${enable_jabber}z" = "z" ; then
7767 enable_jabber=$default_jabber
7769 if test "$enable_jabber" = "no" ; then
7770 { echo "$as_me:$LINENO: Jabber disabled" >&5
7771 echo "$as_me: Jabber disabled" >&6;}
7772 else
7773 cat >>confdefs.h <<\_ACEOF
7774 #define P_JABBER 1
7775 _ACEOF
7777 HAS_JABBER=1
7781 # Check whether --enable-xmlrpc or --disable-xmlrpc was given.
7782 if test "${enable_xmlrpc+set}" = set; then
7783 enableval="$enable_xmlrpc"
7787 if test "${enable_xmlrpc}z" = "z" ; then
7788 enable_xmlrpc=$default_xmlrpc
7790 if test "$enable_xmlrpc" = "no" ; then
7791 { echo "$as_me:$LINENO: XMLRPC disabled" >&5
7792 echo "$as_me: XMLRPC disabled" >&6;}
7793 else
7794 cat >>confdefs.h <<\_ACEOF
7795 #define P_XMLRPC 1
7796 _ACEOF
7798 HAS_XMLRPC=1
7802 # Check whether --enable-soap or --disable-soap was given.
7803 if test "${enable_soap+set}" = set; then
7804 enableval="$enable_soap"
7808 if test "${enable_soap}z" = "z" ; then
7809 enable_soap=$default_soap
7811 if test "$enable_soap" = "no" ; then
7812 { echo "$as_me:$LINENO: SOAP disabled" >&5
7813 echo "$as_me: SOAP disabled" >&6;}
7814 else
7815 cat >>confdefs.h <<\_ACEOF
7816 #define P_SOAP 1
7817 _ACEOF
7819 HAS_SOAP=1
7830 # Check whether --enable-expat or --disable-expat was given.
7831 if test "${enable_expat+set}" = set; then
7832 enableval="$enable_expat"
7836 if test "${enable_tts}z" = "z" ; then
7837 enable_tts=$default_tts
7840 HAS_TTS=
7841 if test "$enable_tts" = "no" ; then
7842 { echo "$as_me:$LINENO: Text-to-speech disabled" >&5
7843 echo "$as_me: Text-to-speech disabled" >&6;}
7844 else
7845 cat >>confdefs.h <<\_ACEOF
7846 #define P_TTS 1
7847 _ACEOF
7849 HAS_TTS=1
7855 # Check whether --enable-ipv6 or --disable-ipv6 was given.
7856 if test "${enable_ipv6+set}" = set; then
7857 enableval="$enable_ipv6"
7861 if test "${enable_ipv6}z" = "z" ; then
7862 enable_ipv6=$default_ipv6
7865 HAS_IPV6=
7867 if test "$enable_ipv6" = "no" ; then
7868 { echo "$as_me:$LINENO: IPV6 disabled" >&5
7869 echo "$as_me: IPV6 disabled" >&6;}
7870 else
7871 echo "$as_me:$LINENO: checking for IPv6 support" >&5
7872 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 #include <sys/types.h>
7880 #include <netinet/in.h>
7882 main ()
7884 struct sockaddr_in6 s; s.sin6_scope_id = 0;
7886 return 0;
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_cxx_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 HAS_IPV6=yes
7912 else
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 HAS_IPV6=no
7918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7919 if test $HAS_IPV6 = no ; then
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 #include <sys/socket.h>
7930 #include <netdb.h>
7932 main ()
7934 getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
7936 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_cxx_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 HAS_IPV6=yes
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 HAS_IPV6=no
7968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7969 if test $HAS_IPV6 = no ; then
7970 echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6
7972 else
7973 echo "$as_me:$LINENO: result: yes" >&5
7974 echo "${ECHO_T}yes" >&6
7976 cat >>confdefs.h <<\_ACEOF
7977 #define P_HAS_IPV6 1
7978 _ACEOF
7980 HAS_IPV6=1
7988 # Check whether --enable-qos or --disable-qos was given.
7989 if test "${enable_qos+set}" = set; then
7990 enableval="$enable_qos"
7994 if test "${enable_qos}z" = "z" ; then
7995 enable_qos=$default_qos
7998 if test "$enable_qos" != "no" ; then
8000 cat >>confdefs.h <<\_ACEOF
8001 #define P_HAS_QOS 1
8002 _ACEOF
8009 # Check whether --enable-sdl or --disable-sdl was given.
8010 if test "${enable_sdl+set}" = set; then
8011 enableval="$enable_sdl"
8015 if test "${enable_sdl}z" = "z" ; then
8016 enable_sdl=$default_sdl
8019 HAS_SDL=
8020 if test "$enable_sdl" = "no" ; then
8021 { echo "$as_me:$LINENO: SDL disabled" >&5
8022 echo "$as_me: SDL disabled" >&6;}
8023 cat >>confdefs.h <<\_ACEOF
8024 #define P_SDL 0
8025 _ACEOF
8027 else
8028 if test "${SDLLIB:-unset}" = "unset" ; then
8029 SDLLIB=SDL
8033 for ac_header in SDL/SDL.h
8035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8037 echo "$as_me:$LINENO: checking for $ac_header" >&5
8038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8044 else
8045 # Is the header compilable?
8046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 #include <$ac_header>
8056 _ACEOF
8057 rm -f conftest.$ac_objext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8059 (eval $ac_compile) 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -z "$ac_cxx_werror_flag"
8067 || test ! -s conftest.err'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_header_compiler=yes
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_header_compiler=no
8086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8088 echo "${ECHO_T}$ac_header_compiler" >&6
8090 # Is the header present?
8091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 #include <$ac_header>
8100 _ACEOF
8101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } >/dev/null; then
8109 if test -s conftest.err; then
8110 ac_cpp_err=$ac_cxx_preproc_warn_flag
8111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8112 else
8113 ac_cpp_err=
8115 else
8116 ac_cpp_err=yes
8118 if test -z "$ac_cpp_err"; then
8119 ac_header_preproc=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_header_preproc=no
8126 rm -f conftest.err conftest.$ac_ext
8127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8128 echo "${ECHO_T}$ac_header_preproc" >&6
8130 # So? What about this header?
8131 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8132 yes:no: )
8133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8137 ac_header_preproc=yes
8139 no:yes:* )
8140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8153 cat <<\_ASBOX
8154 ## ------------------------------------------ ##
8155 ## Report this to the AC_PACKAGE_NAME lists. ##
8156 ## ------------------------------------------ ##
8157 _ASBOX
8159 sed "s/^/$as_me: WARNING: /" >&2
8161 esac
8162 echo "$as_me:$LINENO: checking for $ac_header" >&5
8163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167 eval "$as_ac_Header=\$ac_header_preproc"
8169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8174 cat >>confdefs.h <<_ACEOF
8175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8176 _ACEOF
8177 HAS_SDL=1
8180 done
8182 if test "${HAS_SDL:-unset}" != "unset" ; then
8183 if test "${X11LIBDIR:-unset}" == "unset" ; then
8184 X11LIBDIR=/usr/X11R6/lib
8186 echo "$as_me:$LINENO: checking for SDL_CreateYUVOverlay in -lSDL" >&5
8187 echo $ECHO_N "checking for SDL_CreateYUVOverlay in -lSDL... $ECHO_C" >&6
8188 if test "${ac_cv_lib_SDL_SDL_CreateYUVOverlay+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 ac_check_lib_save_LIBS=$LIBS
8192 LIBS="-lSDL -L${X11LIBDIR} -lpthread -lX11 -lXext $LIBS"
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8200 /* Override any gcc2 internal prototype to avoid an error. */
8201 #ifdef __cplusplus
8202 extern "C"
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8206 char SDL_CreateYUVOverlay ();
8208 main ()
8210 SDL_CreateYUVOverlay ();
8212 return 0;
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_cxx_werror_flag"
8225 || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_cv_lib_SDL_SDL_CreateYUVOverlay=yes
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_cv_lib_SDL_SDL_CreateYUVOverlay=no
8244 rm -f conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8248 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&5
8249 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_CreateYUVOverlay" >&6
8250 if test $ac_cv_lib_SDL_SDL_CreateYUVOverlay = yes; then
8251 HAS_SDL=1
8252 else
8253 HAS_SDL=
8258 if test "${HAS_SDL:-unset}" = "unset" ; then
8259 if test "${ac_cv_header_SDL11_SDL_h+set}" = set; then
8260 echo "$as_me:$LINENO: checking for SDL11/SDL.h" >&5
8261 echo $ECHO_N "checking for SDL11/SDL.h... $ECHO_C" >&6
8262 if test "${ac_cv_header_SDL11_SDL_h+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 echo "$as_me:$LINENO: result: $ac_cv_header_SDL11_SDL_h" >&5
8266 echo "${ECHO_T}$ac_cv_header_SDL11_SDL_h" >&6
8267 else
8268 # Is the header compilable?
8269 echo "$as_me:$LINENO: checking SDL11/SDL.h usability" >&5
8270 echo $ECHO_N "checking SDL11/SDL.h usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <SDL11/SDL.h>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_cxx_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_header_compiler=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_header_compiler=no
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking SDL11/SDL.h presence" >&5
8315 echo $ECHO_N "checking SDL11/SDL.h presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <SDL11/SDL.h>
8323 _ACEOF
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null; then
8332 if test -s conftest.err; then
8333 ac_cpp_err=$ac_cxx_preproc_warn_flag
8334 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8335 else
8336 ac_cpp_err=
8338 else
8339 ac_cpp_err=yes
8341 if test -z "$ac_cpp_err"; then
8342 ac_header_preproc=yes
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8355 yes:no: )
8356 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: SDL11/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: SDL11/SDL.h: proceeding with the compiler's result" >&2;}
8360 ac_header_preproc=yes
8362 no:yes:* )
8363 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: SDL11/SDL.h: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: SDL11/SDL.h: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: SDL11/SDL.h: see the Autoconf documentation" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: SDL11/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: SDL11/SDL.h: proceeding with the preprocessor's result" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: SDL11/SDL.h: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: SDL11/SDL.h: in the future, the compiler will take precedence" >&2;}
8376 cat <<\_ASBOX
8377 ## ------------------------------------------ ##
8378 ## Report this to the AC_PACKAGE_NAME lists. ##
8379 ## ------------------------------------------ ##
8380 _ASBOX
8382 sed "s/^/$as_me: WARNING: /" >&2
8384 esac
8385 echo "$as_me:$LINENO: checking for SDL11/SDL.h" >&5
8386 echo $ECHO_N "checking for SDL11/SDL.h... $ECHO_C" >&6
8387 if test "${ac_cv_header_SDL11_SDL_h+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390 ac_cv_header_SDL11_SDL_h=$ac_header_preproc
8392 echo "$as_me:$LINENO: result: $ac_cv_header_SDL11_SDL_h" >&5
8393 echo "${ECHO_T}$ac_cv_header_SDL11_SDL_h" >&6
8396 if test $ac_cv_header_SDL11_SDL_h = yes; then
8397 HAS_SDL=1
8401 if test "${HAS_SDL:-unset}" != "unset" ; then
8402 SDLLIB=SDL-1.1
8406 if test "${HAS_SDL:-unset}" != "unset" ; then
8407 HAS_SDL=1
8409 cat >>confdefs.h <<\_ACEOF
8410 #define P_SDL 1
8411 _ACEOF
8413 if test ${SDLINCLUDEDIR:-unset} != "unset" ; then
8414 STDCCFLAGS="$STDCCFLAGS -I${SDLINCLUDEDIR}"
8416 if test ${SDLLIBDIR:-unset} != "unset" ; then
8417 LDFLAGS="$LDFLAGS -L${SDLLIBDIR}"
8419 ENDLDLIBS="$ENDLDLIBS -l${SDLLIB}"
8427 # Check whether --enable-video or --disable-video was given.
8428 if test "${enable_video+set}" = set; then
8429 enableval="$enable_video"
8433 if test "${enable_video}z" = "z" ; then
8434 enable_video=$default_video
8437 HAS_VIDEO=
8438 HAS_VIDEO_CAPTURE=
8440 if test "$enable_video" = "no" ; then
8442 cat >>confdefs.h <<\_ACEOF
8443 #define NO_VIDEO_CAPTURE
8444 _ACEOF
8446 else
8447 cat >>confdefs.h <<\_ACEOF
8448 #define P_VIDEO 1
8449 _ACEOF
8451 HAS_VIDEO=1
8452 if test "$enable_plugins" = "yes" ; then
8453 HAS_VIDEO_CAPTURE=1
8454 else
8455 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
8456 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
8457 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
8458 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
8462 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
8463 else
8464 # Is the header compilable?
8465 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
8466 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <linux/videodev.h>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_cxx_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_header_compiler=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_compiler=no
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 echo "${ECHO_T}$ac_header_compiler" >&6
8509 # Is the header present?
8510 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
8511 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <linux/videodev.h>
8519 _ACEOF
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_cxx_preproc_warn_flag
8530 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8531 else
8532 ac_cpp_err=
8534 else
8535 ac_cpp_err=yes
8537 if test -z "$ac_cpp_err"; then
8538 ac_header_preproc=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_preproc=no
8545 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 echo "${ECHO_T}$ac_header_preproc" >&6
8549 # So? What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8551 yes:no: )
8552 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8553 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
8555 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
8556 ac_header_preproc=yes
8558 no:yes:* )
8559 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
8564 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
8566 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
8570 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
8572 cat <<\_ASBOX
8573 ## ------------------------------------------ ##
8574 ## Report this to the AC_PACKAGE_NAME lists. ##
8575 ## ------------------------------------------ ##
8576 _ASBOX
8578 sed "s/^/$as_me: WARNING: /" >&2
8580 esac
8581 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
8582 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
8583 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 ac_cv_header_linux_videodev_h=$ac_header_preproc
8588 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
8589 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
8592 if test $ac_cv_header_linux_videodev_h = yes; then
8593 HAS_VIDEO_CAPTURE=1
8597 if test "${HAS_VIDEO_CAPTURE}z" = "z" ; then
8598 { echo "$as_me:$LINENO: No Video Capture support" >&5
8599 echo "$as_me: No Video Capture support" >&6;}
8601 cat >>confdefs.h <<\_ACEOF
8602 #define NO_VIDEO_CAPTURE
8603 _ACEOF
8607 # Check whether --enable-v4l or --disable-v4l was given.
8608 if test "${enable_v4l+set}" = set; then
8609 enableval="$enable_v4l"
8612 # Check whether --enable-v4l2 or --disable-v4l2 was given.
8613 if test "${enable_v4l2+set}" = set; then
8614 enableval="$enable_v4l2"
8617 # Check whether --enable-bsdvideo or --disable-bsdvideo was given.
8618 if test "${enable_bsdvideo+set}" = set; then
8619 enableval="$enable_bsdvideo"
8622 # Check whether --enable-avc or --disable-avc was given.
8623 if test "${enable_avc+set}" = set; then
8624 enableval="$enable_avc"
8627 # Check whether --enable-dc or --disable-dc was given.
8628 if test "${enable_dc+set}" = set; then
8629 enableval="$enable_dc"
8639 # Check whether --enable-shm_video or --disable-shm_video was given.
8640 if test "${enable_shm_video+set}" = set; then
8641 enableval="$enable_shm_video"
8642 shm_video=$enableval
8645 if test "${enable_shmvideo}z" = "z" ; then
8646 shm_video=$default_shmvideo
8649 USE_SHM_VIDEO_DEVICES=
8650 if test "$shm_video" = "yes" ; then
8651 USE_SHM_VIDEO_DEVICES=1
8652 { echo "$as_me:$LINENO: Shared memory video devices enabled" >&5
8653 echo "$as_me: Shared memory video devices enabled" >&6;}
8654 else
8655 { echo "$as_me:$LINENO: Shared memory video devices disabled" >&5
8656 echo "$as_me: Shared memory video devices disabled" >&6;}
8662 # Check whether --enable-asn or --disable-asn was given.
8663 if test "${enable_asn+set}" = set; then
8664 enableval="$enable_asn"
8668 if test "${enable_asn}z" = "z" ; then
8669 enable_asn=$default_asn
8672 HAS_ASN=
8673 if test "$enable_asn" = "no" ; then
8674 { echo "$as_me:$LINENO: ASN decoding/encoding support disabled" >&5
8675 echo "$as_me: ASN decoding/encoding support disabled" >&6;}
8676 else
8677 HAS_ASN=1
8678 cat >>confdefs.h <<\_ACEOF
8679 #define P_ASN 1
8680 _ACEOF
8687 # Check whether --enable-stun or --disable-stun was given.
8688 if test "${enable_stun+set}" = set; then
8689 enableval="$enable_stun"
8693 if test "${enable_stun}z" = "z" ; then
8694 enable_stun=$default_stun
8697 HAS_STUN=
8698 if test "$enable_stun" = "no" ; then
8699 { echo "$as_me:$LINENO: STUN decoding/encoding support disabled" >&5
8700 echo "$as_me: STUN decoding/encoding support disabled" >&6;}
8701 else
8702 HAS_STUN=1
8703 cat >>confdefs.h <<\_ACEOF
8704 #define P_STUN 1
8705 _ACEOF
8712 # Check whether --enable-pipechan or --disable-pipechan was given.
8713 if test "${enable_pipechan+set}" = set; then
8714 enableval="$enable_pipechan"
8718 if test "${enable_pipechan}z" = "z" ; then
8719 enable_pipechan=$default_pipechan
8722 HAS_PIPECHAN=
8723 if test "$enable_pipechan" = "no" ; then
8724 { echo "$as_me:$LINENO: pipechannel support disabled" >&5
8725 echo "$as_me: pipechannel support disabled" >&6;}
8726 else
8727 HAS_PIPECHAN=1
8728 cat >>confdefs.h <<\_ACEOF
8729 #define P_PIPECHAN 1
8730 _ACEOF
8737 # Check whether --enable-dtmf or --disable-dtmf was given.
8738 if test "${enable_dtmf+set}" = set; then
8739 enableval="$enable_dtmf"
8743 if test "${enable_dtmf}z" = "z" ; then
8744 enable_dtmf=$default_dtmf
8747 HAS_DTMF=
8748 if test "$enable_dtmf" = "no" ; then
8749 { echo "$as_me:$LINENO: DTMF decoding/encoding support disabled" >&5
8750 echo "$as_me: DTMF decoding/encoding support disabled" >&6;}
8751 else
8752 HAS_DTMF=1
8753 cat >>confdefs.h <<\_ACEOF
8754 #define P_DTMF 1
8755 _ACEOF
8762 # Check whether --enable-wavfile or --disable-wavfile was given.
8763 if test "${enable_wavfile+set}" = set; then
8764 enableval="$enable_wavfile"
8768 if test "${enable_wavfile}z" = "z" ; then
8769 enable_wavfile=$default_wavfile
8772 HAS_WAVFILE=
8773 if test "$enable_wavfile" = "no" ; then
8774 { echo "$as_me:$LINENO: WAV file support disabled" >&5
8775 echo "$as_me: WAV file support disabled" >&6;}
8776 else
8777 HAS_WAVFILE=1
8778 cat >>confdefs.h <<\_ACEOF
8779 #define P_WAVFILE 1
8780 _ACEOF
8787 # Check whether --enable-socks or --disable-socks was given.
8788 if test "${enable_socks+set}" = set; then
8789 enableval="$enable_socks"
8793 if test "${enable_socks}z" = "z" ; then
8794 enable_socks=$default_socks
8797 HAS_SOCKS=
8798 if test "$enable_socks" = "no" ; then
8799 { echo "$as_me:$LINENO: SOCKS decoding/encoding support disabled" >&5
8800 echo "$as_me: SOCKS decoding/encoding support disabled" >&6;}
8801 else
8802 HAS_SOCKS=1
8803 cat >>confdefs.h <<\_ACEOF
8804 #define P_SOCKS 1
8805 _ACEOF
8812 # Check whether --enable-rtp or --disable-rtp was given.
8813 if test "${enable_rtp+set}" = set; then
8814 enableval="$enable_rtp"
8818 if test "${enable_ftp}z" = "z" ; then
8819 enable_ftp=$default_ftp
8822 HAS_FTP=
8823 if test "$enable_ftp" = "no" ; then
8824 { echo "$as_me:$LINENO: FTP protocol support disabled" >&5
8825 echo "$as_me: FTP protocol support disabled" >&6;}
8826 else
8827 HAS_FTP=1
8828 cat >>confdefs.h <<\_ACEOF
8829 #define P_FTP 1
8830 _ACEOF
8837 # Check whether --enable-snmp or --disable-snmp was given.
8838 if test "${enable_snmp+set}" = set; then
8839 enableval="$enable_snmp"
8843 if test "${enable_snmp}z" = "z" ; then
8844 enable_snmp=$default_snmp
8847 HAS_SNMP=
8848 if test "$enable_snmp" = "no" ; then
8849 { echo "$as_me:$LINENO: SNMP protocol support disabled" >&5
8850 echo "$as_me: SNMP protocol support disabled" >&6;}
8851 else
8852 HAS_SNMP=1
8853 cat >>confdefs.h <<\_ACEOF
8854 #define P_SNMP 1
8855 _ACEOF
8862 # Check whether --enable-telnet or --disable-telnet was given.
8863 if test "${enable_telnet+set}" = set; then
8864 enableval="$enable_telnet"
8868 if test "${enable_telnet}z" = "z" ; then
8869 enable_telnet=$default_telnet
8872 HAS_TELNET=
8873 if test "$enable_telnet" = "no" ; then
8874 { echo "$as_me:$LINENO: Telnet protocol support disabled" >&5
8875 echo "$as_me: Telnet protocol support disabled" >&6;}
8876 else
8877 HAS_TELNET=1
8878 cat >>confdefs.h <<\_ACEOF
8879 #define P_TELNET 1
8880 _ACEOF
8887 # Check whether --enable-remconn or --disable-remconn was given.
8888 if test "${enable_remconn+set}" = set; then
8889 enableval="$enable_remconn"
8893 if test "${enable_remconn}z" = "z" ; then
8894 enable_remconn=$default_remconn
8897 HAS_REMCONN=
8898 if test "$enable_remconn" = "no" ; then
8899 { echo "$as_me:$LINENO: Remote connection support disabled" >&5
8900 echo "$as_me: Remote connection support disabled" >&6;}
8901 else
8902 HAS_REMCONN=1
8903 cat >>confdefs.h <<\_ACEOF
8904 #define P_REMCONN 1
8905 _ACEOF
8912 # Check whether --enable-serial or --disable-serial was given.
8913 if test "${enable_serial+set}" = set; then
8914 enableval="$enable_serial"
8918 if test "${enable_serial}z" = "z" ; then
8919 enable_serial=$default_serial
8922 HAS_SERIAL=
8923 if test "$enable_serial" = "no" ; then
8924 { echo "$as_me:$LINENO: Serial port support disabled" >&5
8925 echo "$as_me: Serial port support disabled" >&6;}
8926 else
8927 HAS_SERIAL=1
8928 cat >>confdefs.h <<\_ACEOF
8929 #define P_SERIAL 1
8930 _ACEOF
8937 # Check whether --enable-pop3smtp or --disable-pop3smtp was given.
8938 if test "${enable_pop3smtp+set}" = set; then
8939 enableval="$enable_pop3smtp"
8943 if test "${enable_pop3smtp}z" = "z" ; then
8944 enable_pop3smtp=$default_pop3smtp
8947 HAS_POP3SMTP=
8948 if test "$enable_pop3smtp" = "no" ; then
8949 { echo "$as_me:$LINENO: POP3/SMTP protocol support disabled" >&5
8950 echo "$as_me: POP3/SMTP protocol support disabled" >&6;}
8951 else
8952 HAS_POP3SMTP=1
8953 cat >>confdefs.h <<\_ACEOF
8954 #define P_POP3SMTP 1
8955 _ACEOF
8962 # Check whether --enable-http or --disable-http was given.
8963 if test "${enable_http+set}" = set; then
8964 enableval="$enable_http"
8968 if test "${enable_http}z" = "z" ; then
8969 enable_http=$default_http
8972 HAS_HTTP=
8973 if test "$enable_http" = "no" ; then
8974 { echo "$as_me:$LINENO: HTTP protocol support disabled" >&5
8975 echo "$as_me: HTTP protocol support disabled" >&6;}
8976 else
8977 HAS_HTTP=1
8978 cat >>confdefs.h <<\_ACEOF
8979 #define P_HTTP 1
8980 _ACEOF
8987 # Check whether --enable-httpsvc or --disable-httpsvc was given.
8988 if test "${enable_httpsvc+set}" = set; then
8989 enableval="$enable_httpsvc"
8993 if test "${enable_httpsvc}z" = "z" ; then
8994 enable_httpsvc=$default_httpsvc
8997 HAS_HTTPSVC=
8998 if test "$enable_httpsvc" = "no" ; then
8999 { echo "$as_me:$LINENO: HTTP service support disabled" >&5
9000 echo "$as_me: HTTP service support disabled" >&6;}
9001 else
9002 HAS_HTTPSVC=1
9003 cat >>confdefs.h <<\_ACEOF
9004 #define P_HTTPSVC 1
9005 _ACEOF
9012 # Check whether --enable-configfile or --disable-configfile was given.
9013 if test "${enable_configfile+set}" = set; then
9014 enableval="$enable_configfile"
9018 if test "${enable_configfile}z" = "z" ; then
9019 enable_configfile=$default_configfile
9022 HAS_CONFIG_FILE=
9023 if test "$enable_configfile" = "no" ; then
9024 { echo "$as_me:$LINENO: Config file support disabled" >&5
9025 echo "$as_me: Config file support disabled" >&6;}
9026 else
9027 HAS_CONFIG_FILE=1
9028 cat >>confdefs.h <<\_ACEOF
9029 #define P_CONFIG_FILE 1
9030 _ACEOF
9037 # Check whether --enable-sockagg or --disable-sockagg was given.
9038 if test "${enable_sockagg+set}" = set; then
9039 enableval="$enable_sockagg"
9043 if test "${enable_sockagg}z" = "z" ; then
9044 enable_sockagg=$default_sockagg
9047 HAS_SOCKAGG=
9048 if test "$enable_sockagg" = "no" ; then
9049 { echo "$as_me:$LINENO: Socket aggregation support disabled" >&5
9050 echo "$as_me: Socket aggregation support disabled" >&6;}
9051 else
9052 { echo "$as_me:$LINENO: Socket aggregation support enabled (experimental)" >&5
9053 echo "$as_me: Socket aggregation support enabled (experimental)" >&6;}
9054 HAS_SOCKAGG=1
9055 cat >>confdefs.h <<\_ACEOF
9056 #define P_SOCKAGG 1
9057 _ACEOF
9064 if test "$HAS_VIDEO" \!= "1" ; then
9065 default_vidfile=no
9068 # Check whether --enable-vidfile or --disable-vidfile was given.
9069 if test "${enable_vidfile+set}" = set; then
9070 enableval="$enable_vidfile"
9074 if test "${enable_vidfile}z" = "z" ; then
9075 enable_vidfile=$default_vidfile
9078 HAS_VIDFILE=
9079 if test "$enable_vidfile" = "no" ; then
9080 { echo "$as_me:$LINENO: Video file support disabled" >&5
9081 echo "$as_me: Video file support disabled" >&6;}
9082 else
9083 { echo "$as_me:$LINENO: Video file support enabled" >&5
9084 echo "$as_me: Video file support enabled" >&6;}
9085 HAS_VIDFILE=1
9086 cat >>confdefs.h <<\_ACEOF
9087 #define P_VIDFILE 1
9088 _ACEOF
9095 # Check whether --enable-audio or --disable-audio was given.
9096 if test "${enable_audio+set}" = set; then
9097 enableval="$enable_audio"
9101 if test "${enable_audio}z" = "z" ; then
9102 enable_audio=$default_audio
9105 HAS_AUDIO=
9106 if test "$enable_audio" = "no" ; then
9107 { echo "$as_me:$LINENO: Audio support disabled" >&5
9108 echo "$as_me: Audio support disabled" >&6;}
9109 else
9110 HAS_AUDIO=1
9111 cat >>confdefs.h <<\_ACEOF
9112 #define P_AUDIO 1
9113 _ACEOF
9119 HAS_ALSA=
9120 HAS_OSS=
9121 if test "$enable_audio" = "yes" ; then
9123 # Check whether --enable-alsa or --disable-alsa was given.
9124 if test "${enable_alsa+set}" = set; then
9125 enableval="$enable_alsa"
9126 enable_alsa=$enableval
9128 # Check whether --enable-oss or --disable-oss was given.
9129 if test "${enable_oss+set}" = set; then
9130 enableval="$enable_oss"
9131 enable_oss=$enableval
9134 if test "$enable_plugins" = "no" ; then
9136 if test "${enable_alsa}z" = "z" ; then
9137 enable_alsa=$default_alsa
9140 if test "${enable_oss}z" = "z" ; then
9141 enable_oss=$default_oss
9144 if test "$enable_alsa" = "yes" ; then
9145 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
9146 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
9147 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
9148 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
9152 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
9153 else
9154 # Is the header compilable?
9155 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
9156 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9164 #include <alsa/asoundlib.h>
9165 _ACEOF
9166 rm -f conftest.$ac_objext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_cxx_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_header_compiler=yes
9189 else
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_header_compiler=no
9195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9197 echo "${ECHO_T}$ac_header_compiler" >&6
9199 # Is the header present?
9200 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
9201 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <alsa/asoundlib.h>
9209 _ACEOF
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev/null; then
9218 if test -s conftest.err; then
9219 ac_cpp_err=$ac_cxx_preproc_warn_flag
9220 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9221 else
9222 ac_cpp_err=
9224 else
9225 ac_cpp_err=yes
9227 if test -z "$ac_cpp_err"; then
9228 ac_header_preproc=yes
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_header_preproc=no
9235 rm -f conftest.err conftest.$ac_ext
9236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9237 echo "${ECHO_T}$ac_header_preproc" >&6
9239 # So? What about this header?
9240 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9241 yes:no: )
9242 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9243 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
9245 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
9246 ac_header_preproc=yes
9248 no:yes:* )
9249 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
9250 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
9252 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
9254 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
9256 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
9258 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
9260 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
9262 cat <<\_ASBOX
9263 ## ------------------------------------------ ##
9264 ## Report this to the AC_PACKAGE_NAME lists. ##
9265 ## ------------------------------------------ ##
9266 _ASBOX
9268 sed "s/^/$as_me: WARNING: /" >&2
9270 esac
9271 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
9272 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
9273 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
9278 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
9279 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
9282 if test $ac_cv_header_alsa_asoundlib_h = yes; then
9283 HAS_ALSA=1
9287 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
9288 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
9289 if test "${HAS_ALSA}z" != "z"; then
9290 echo "$as_me:$LINENO: result: yes" >&5
9291 echo "${ECHO_T}yes" >&6
9292 ENDLDLIBS="$ENDLDLIBS -lasound"
9293 HAS_ALSA=1
9294 else
9295 echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9300 if test "${HAS_ALSA}z" = "z" ; then
9301 if test "$enable_oss" = "yes" ; then
9302 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9303 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9304 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
9305 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9309 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9310 else
9311 # Is the header compilable?
9312 echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9313 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h. */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320 $ac_includes_default
9321 #include <sys/soundcard.h>
9322 _ACEOF
9323 rm -f conftest.$ac_objext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>conftest.er1
9326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -z "$ac_cxx_werror_flag"
9333 || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest.$ac_objext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_header_compiler=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_header_compiler=no
9352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9354 echo "${ECHO_T}$ac_header_compiler" >&6
9356 # Is the header present?
9357 echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9358 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <sys/soundcard.h>
9366 _ACEOF
9367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } >/dev/null; then
9375 if test -s conftest.err; then
9376 ac_cpp_err=$ac_cxx_preproc_warn_flag
9377 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9378 else
9379 ac_cpp_err=
9381 else
9382 ac_cpp_err=yes
9384 if test -z "$ac_cpp_err"; then
9385 ac_header_preproc=yes
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_header_preproc=no
9392 rm -f conftest.err conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9394 echo "${ECHO_T}$ac_header_preproc" >&6
9396 # So? What about this header?
9397 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9398 yes:no: )
9399 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9400 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9402 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9403 ac_header_preproc=yes
9405 no:yes:* )
9406 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9407 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9409 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9411 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9413 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9415 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9417 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
9419 cat <<\_ASBOX
9420 ## ------------------------------------------ ##
9421 ## Report this to the AC_PACKAGE_NAME lists. ##
9422 ## ------------------------------------------ ##
9423 _ASBOX
9425 sed "s/^/$as_me: WARNING: /" >&2
9427 esac
9428 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9429 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
9430 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9435 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9436 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9439 if test $ac_cv_header_sys_soundcard_h = yes; then
9440 SNDCARDHDR=1
9444 echo "$as_me:$LINENO: checking for OSS sound support" >&5
9445 echo $ECHO_N "checking for OSS sound support... $ECHO_C" >&6
9446 if test "${SNDCARDHDR}z" != "z"; then
9447 HAS_OSS=1
9449 echo "$as_me:$LINENO: result: yes" >&5
9450 echo "${ECHO_T}yes" >&6
9451 else
9452 echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9467 if test "$OSTYPE" = "solaris" ; then
9468 USE_SYSTEM_SWAB=
9469 else
9470 echo "$as_me:$LINENO: checking for swab" >&5
9471 echo $ECHO_N "checking for swab... $ECHO_C" >&6
9472 if test "${ac_cv_func_swab+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 /* Define swab to an innocuous variant, in case <limits.h> declares swab.
9482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9483 #define swab innocuous_swab
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char swab (); below.
9487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9488 <limits.h> exists even on freestanding compilers. */
9490 #ifdef __STDC__
9491 # include <limits.h>
9492 #else
9493 # include <assert.h>
9494 #endif
9496 #undef swab
9498 /* Override any gcc2 internal prototype to avoid an error. */
9499 #ifdef __cplusplus
9500 extern "C"
9502 #endif
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9505 char swab ();
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_swab) || defined (__stub___swab)
9510 choke me
9511 #else
9512 char (*f) () = swab;
9513 #endif
9514 #ifdef __cplusplus
9516 #endif
9519 main ()
9521 return f != swab;
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_cxx_werror_flag"
9536 || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest$ac_exeext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_func_swab=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_func_swab=no
9555 rm -f conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
9559 echo "${ECHO_T}$ac_cv_func_swab" >&6
9560 if test $ac_cv_func_swab = yes; then
9561 USE_SYSTEM_SWAB=1
9565 if test "x$ac_cv_func_swab" = "xyes" ; then
9567 cat >>confdefs.h <<\_ACEOF
9568 #define USE_SYSTEM_SWAB
9569 _ACEOF
9574 # Check whether --enable-memcheck or --disable-memcheck was given.
9575 if test "${enable_memcheck+set}" = set; then
9576 enableval="$enable_memcheck"
9577 memcheck=$enableval
9580 if test "$memcheck" = "yes" ; then
9581 cat >>confdefs.h <<\_ACEOF
9582 #define PMEMORY_CHECK 1
9583 _ACEOF
9585 { echo "$as_me:$LINENO: Memory checking enabled" >&5
9586 echo "$as_me: Memory checking enabled" >&6;}
9592 # Check whether --enable-odbc or --disable-odbc was given.
9593 if test "${enable_odbc+set}" = set; then
9594 enableval="$enable_odbc"
9598 if test "${enable_odbc}z" = "z" ; then
9599 enable_odbc=$default_odbc
9602 HAS_ODBC=
9603 if test "$enable_odbc" = "no" ; then
9604 { echo "$as_me:$LINENO: ODBC support disabled" >&5
9605 echo "$as_me: ODBC support disabled" >&6;}
9606 else
9608 for ac_header in sql.h
9610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9612 echo "$as_me:$LINENO: checking for $ac_header" >&5
9613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9619 else
9620 # Is the header compilable?
9621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 $ac_includes_default
9630 #include <$ac_header>
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try='test -z "$ac_cxx_werror_flag"
9642 || test ! -s conftest.err'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest.$ac_objext'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_header_compiler=yes
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_header_compiler=no
9661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9663 echo "${ECHO_T}$ac_header_compiler" >&6
9665 # Is the header present?
9666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 #include <$ac_header>
9675 _ACEOF
9676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } >/dev/null; then
9684 if test -s conftest.err; then
9685 ac_cpp_err=$ac_cxx_preproc_warn_flag
9686 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9687 else
9688 ac_cpp_err=
9690 else
9691 ac_cpp_err=yes
9693 if test -z "$ac_cpp_err"; then
9694 ac_header_preproc=yes
9695 else
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_header_preproc=no
9701 rm -f conftest.err conftest.$ac_ext
9702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9703 echo "${ECHO_T}$ac_header_preproc" >&6
9705 # So? What about this header?
9706 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9707 yes:no: )
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9712 ac_header_preproc=yes
9714 no:yes:* )
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9728 cat <<\_ASBOX
9729 ## ------------------------------------------ ##
9730 ## Report this to the AC_PACKAGE_NAME lists. ##
9731 ## ------------------------------------------ ##
9732 _ASBOX
9734 sed "s/^/$as_me: WARNING: /" >&2
9736 esac
9737 echo "$as_me:$LINENO: checking for $ac_header" >&5
9738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 eval "$as_ac_Header=\$ac_header_preproc"
9744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9749 cat >>confdefs.h <<_ACEOF
9750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF
9752 HAS_ODBC=1
9755 done
9757 if test "${HAS_ODBC:-unset}" != "unset" ; then
9758 echo "$as_me:$LINENO: checking for SQLAllocStmt in -lodbc" >&5
9759 echo $ECHO_N "checking for SQLAllocStmt in -lodbc... $ECHO_C" >&6
9760 if test "${ac_cv_lib_odbc_SQLAllocStmt+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 ac_check_lib_save_LIBS=$LIBS
9764 LIBS="-lodbc $LIBS"
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9772 /* Override any gcc2 internal prototype to avoid an error. */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 /* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9778 char SQLAllocStmt ();
9780 main ()
9782 SQLAllocStmt ();
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_cxx_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_lib_odbc_SQLAllocStmt=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_lib_odbc_SQLAllocStmt=no
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 LIBS=$ac_check_lib_save_LIBS
9820 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocStmt" >&5
9821 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocStmt" >&6
9822 if test $ac_cv_lib_odbc_SQLAllocStmt = yes; then
9823 HAS_ODBC=1
9824 else
9825 HAS_ODBC=
9828 else
9829 echo "$as_me:$LINENO: checking for /usr/local/include/sql.h" >&5
9830 echo $ECHO_N "checking for /usr/local/include/sql.h... $ECHO_C" >&6
9831 if test "${ac_cv_file__usr_local_include_sql_h+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 test "$cross_compiling" = yes &&
9835 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9836 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9837 { (exit 1); exit 1; }; }
9838 if test -r "/usr/local/include/sql.h"; then
9839 ac_cv_file__usr_local_include_sql_h=yes
9840 else
9841 ac_cv_file__usr_local_include_sql_h=no
9844 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_sql_h" >&5
9845 echo "${ECHO_T}$ac_cv_file__usr_local_include_sql_h" >&6
9846 if test $ac_cv_file__usr_local_include_sql_h = yes; then
9847 HAS_ODBC=1
9850 if test "${HAS_ODBC:-unset}" != "unset" ; then
9851 ODBCINCLUDEDIR=/usr/local/include
9852 ODBCLIBDIR=/usr/local/lib
9856 if test "${HAS_ODBC:-unset}" != "unset" ; then
9857 HAS_ODBC=1
9859 cat >>confdefs.h <<\_ACEOF
9860 #define P_ODBC 1
9861 _ACEOF
9863 if test ${ODBCINCLUDEDIR:-unset} != "unset" ; then
9864 STDCCFLAGS="$STDCCFLAGS -I${ODBCINCLUDEDIR}"
9866 if test ${ODBCLIBDIR:-unset} != "unset" ; then
9867 LDFLAGS="$LDFLAGS -L${ODBCLIBDIR}"
9869 ENDLDLIBS="$ENDLDLIBS -lodbc"
9870 { echo "$as_me:$LINENO: ODBC support enabled" >&5
9871 echo "$as_me: ODBC support enabled" >&6;}
9879 if test "${HAS_RESOLVER:-unset}" != "unset" ; then
9880 if test "${RESOLVER_LIBS:-unset}" != "unset" ; then
9881 ENDLDLIBS="$ENDLDLIBS $RESOLVER_LIBS"
9885 if test "${OSTYPE}" != "Darwin" ; then
9886 if test ${HAS_LIBDL} = yes ; then
9887 ENDLDLIBS="$ENDLDLIBS -ldl"
9892 # Check whether --enable-exceptions or --disable-exceptions was given.
9893 if test "${enable_exceptions+set}" = set; then
9894 enableval="$enable_exceptions"
9898 if test "${enable_exceptions}z" != "yesz" ; then
9899 { echo "$as_me:$LINENO: C++ exceptions disabled" >&5
9900 echo "$as_me: C++ exceptions disabled" >&6;}
9901 STDCCFLAGS="$STDCCFLAGS -fno-exceptions"
9902 else
9903 cat >>confdefs.h <<\_ACEOF
9904 #define P_EXCEPTIONS 1
9905 _ACEOF
9907 { echo "$as_me:$LINENO: C++ exceptions enabled" >&5
9908 echo "$as_me: C++ exceptions enabled" >&6;}
9909 STDCCFLAGS="$STDCCFLAGS -fexceptions"
9919 # Find a good install program. We prefer a C program (faster),
9920 # so one script is as good as another. But avoid the broken or
9921 # incompatible versions:
9922 # SysV /etc/install, /usr/sbin/install
9923 # SunOS /usr/etc/install
9924 # IRIX /sbin/install
9925 # AIX /bin/install
9926 # AmigaOS /C/install, which installs bootblocks on floppy discs
9927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9930 # OS/2's system install, which has a completely different semantic
9931 # ./install, which can be erroneously created by make from ./install.sh.
9932 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9933 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9934 if test -z "$INSTALL"; then
9935 if test "${ac_cv_path_install+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in $PATH
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 # Account for people who put trailing slashes in PATH elements.
9944 case $as_dir/ in
9945 ./ | .// | /cC/* | \
9946 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9947 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9948 /usr/ucb/* ) ;;
9950 # OSF1 and SCO ODT 3.0 have their own names for install.
9951 # Don't use installbsd from OSF since it installs stuff as root
9952 # by default.
9953 for ac_prog in ginstall scoinst install; do
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9956 if test $ac_prog = install &&
9957 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9958 # AIX install. It has an incompatible calling convention.
9960 elif test $ac_prog = install &&
9961 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9962 # program-specific install script used by HP pwplus--don't use.
9964 else
9965 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9966 break 3
9969 done
9970 done
9972 esac
9973 done
9977 if test "${ac_cv_path_install+set}" = set; then
9978 INSTALL=$ac_cv_path_install
9979 else
9980 # As a last resort, use the slow shell script. We don't cache a
9981 # path for INSTALL within a source directory, because that will
9982 # break other packages using the cache if that directory is
9983 # removed, or if the path is relative.
9984 INSTALL=$ac_install_sh
9987 echo "$as_me:$LINENO: result: $INSTALL" >&5
9988 echo "${ECHO_T}$INSTALL" >&6
9990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9991 # It thinks the first close brace ends the variable substitution.
9992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9999 ac_config_files="$ac_config_files make/ptbuildopts.mak"
10001 ac_config_files="$ac_config_files make/ptlib-config"
10003 ac_config_files="$ac_config_files Makefile"
10006 #AC_CONFIG_FILES(include/ptbuildopts.h.in)
10007 ac_config_headers="$ac_config_headers include/ptbuildopts.h"
10010 cat >confcache <<\_ACEOF
10011 # This file is a shell script that caches the results of configure
10012 # tests run on this system so they can be shared between configure
10013 # scripts and configure runs, see configure's option --config-cache.
10014 # It is not useful on other systems. If it contains results you don't
10015 # want to keep, you may remove or edit it.
10017 # config.status only pays attention to the cache file if you give it
10018 # the --recheck option to rerun configure.
10020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10022 # following values.
10024 _ACEOF
10026 # The following way of writing the cache mishandles newlines in values,
10027 # but we know of no workaround that is simple, portable, and efficient.
10028 # So, don't put newlines in cache variables' values.
10029 # Ultrix sh set writes to stderr and can't be redirected directly,
10030 # and sets the high bit in the cache file unless we assign to the vars.
10032 (set) 2>&1 |
10033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10034 *ac_space=\ *)
10035 # `set' does not quote correctly, so add quotes (double-quote
10036 # substitution turns \\\\ into \\, and sed turns \\ into \).
10037 sed -n \
10038 "s/'/'\\\\''/g;
10039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10042 # `set' quotes correctly as required by POSIX, so do not add quotes.
10043 sed -n \
10044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10046 esac;
10048 sed '
10049 t clear
10050 : clear
10051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10052 t end
10053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10054 : end' >>confcache
10055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10056 if test -w $cache_file; then
10057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10058 cat confcache >$cache_file
10059 else
10060 echo "not updating unwritable cache $cache_file"
10063 rm -f confcache
10065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10066 # Let make expand exec_prefix.
10067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10071 # trailing colons and then remove the whole line if VPATH becomes empty
10072 # (actually we leave an empty line to preserve line numbers).
10073 if test "x$srcdir" = x.; then
10074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10075 s/:*\$(srcdir):*/:/;
10076 s/:*\${srcdir}:*/:/;
10077 s/:*@srcdir@:*/:/;
10078 s/^\([^=]*=[ ]*\):*/\1/;
10079 s/:*$//;
10080 s/^[^=]*=[ ]*$//;
10084 DEFS=-DHAVE_CONFIG_H
10086 ac_libobjs=
10087 ac_ltlibobjs=
10088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10089 # 1. Remove the extension, and $U if already installed.
10090 ac_i=`echo "$ac_i" |
10091 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10092 # 2. Add them.
10093 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10094 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10095 done
10096 LIBOBJS=$ac_libobjs
10098 LTLIBOBJS=$ac_ltlibobjs
10102 : ${CONFIG_STATUS=./config.status}
10103 ac_clean_files_save=$ac_clean_files
10104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10107 cat >$CONFIG_STATUS <<_ACEOF
10108 #! $SHELL
10109 # Generated by $as_me.
10110 # Run this file to recreate the current configuration.
10111 # Compiler output produced by configure, useful for debugging
10112 # configure, is in config.log if it exists.
10114 debug=false
10115 ac_cs_recheck=false
10116 ac_cs_silent=false
10117 SHELL=\${CONFIG_SHELL-$SHELL}
10118 _ACEOF
10120 cat >>$CONFIG_STATUS <<\_ACEOF
10121 ## --------------------- ##
10122 ## M4sh Initialization. ##
10123 ## --------------------- ##
10125 # Be Bourne compatible
10126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10127 emulate sh
10128 NULLCMD=:
10129 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10130 # is contrary to our usage. Disable this feature.
10131 alias -g '${1+"$@"}'='"$@"'
10132 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10133 set -o posix
10135 DUALCASE=1; export DUALCASE # for MKS sh
10137 # Support unset when possible.
10138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10139 as_unset=unset
10140 else
10141 as_unset=false
10145 # Work around bugs in pre-3.0 UWIN ksh.
10146 $as_unset ENV MAIL MAILPATH
10147 PS1='$ '
10148 PS2='> '
10149 PS4='+ '
10151 # NLS nuisances.
10152 for as_var in \
10153 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10154 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10155 LC_TELEPHONE LC_TIME
10157 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10158 eval $as_var=C; export $as_var
10159 else
10160 $as_unset $as_var
10162 done
10164 # Required to use basename.
10165 if expr a : '\(a\)' >/dev/null 2>&1; then
10166 as_expr=expr
10167 else
10168 as_expr=false
10171 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10172 as_basename=basename
10173 else
10174 as_basename=false
10178 # Name of the executable.
10179 as_me=`$as_basename "$0" ||
10180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10181 X"$0" : 'X\(//\)$' \| \
10182 X"$0" : 'X\(/\)$' \| \
10183 . : '\(.\)' 2>/dev/null ||
10184 echo X/"$0" |
10185 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10186 /^X\/\(\/\/\)$/{ s//\1/; q; }
10187 /^X\/\(\/\).*/{ s//\1/; q; }
10188 s/.*/./; q'`
10191 # PATH needs CR, and LINENO needs CR and PATH.
10192 # Avoid depending upon Character Ranges.
10193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10196 as_cr_digits='0123456789'
10197 as_cr_alnum=$as_cr_Letters$as_cr_digits
10199 # The user is always right.
10200 if test "${PATH_SEPARATOR+set}" != set; then
10201 echo "#! /bin/sh" >conf$$.sh
10202 echo "exit 0" >>conf$$.sh
10203 chmod +x conf$$.sh
10204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10205 PATH_SEPARATOR=';'
10206 else
10207 PATH_SEPARATOR=:
10209 rm -f conf$$.sh
10213 as_lineno_1=$LINENO
10214 as_lineno_2=$LINENO
10215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10216 test "x$as_lineno_1" != "x$as_lineno_2" &&
10217 test "x$as_lineno_3" = "x$as_lineno_2" || {
10218 # Find who we are. Look in the path if we contain no path at all
10219 # relative or not.
10220 case $0 in
10221 *[\\/]* ) as_myself=$0 ;;
10222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10228 done
10231 esac
10232 # We did not find ourselves, most probably we were run as `sh COMMAND'
10233 # in which case we are not to be found in the path.
10234 if test "x$as_myself" = x; then
10235 as_myself=$0
10237 if test ! -f "$as_myself"; then
10238 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10239 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10240 { (exit 1); exit 1; }; }
10242 case $CONFIG_SHELL in
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for as_base in sh bash ksh sh5; do
10250 case $as_dir in
10252 if ("$as_dir/$as_base" -c '
10253 as_lineno_1=$LINENO
10254 as_lineno_2=$LINENO
10255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10256 test "x$as_lineno_1" != "x$as_lineno_2" &&
10257 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10258 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10259 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10260 CONFIG_SHELL=$as_dir/$as_base
10261 export CONFIG_SHELL
10262 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10263 fi;;
10264 esac
10265 done
10266 done
10268 esac
10270 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10271 # uniformly replaced by the line number. The first 'sed' inserts a
10272 # line-number line before each line; the second 'sed' does the real
10273 # work. The second script uses 'N' to pair each line-number line
10274 # with the numbered line, and appends trailing '-' during
10275 # substitution so that $LINENO is not a special case at line end.
10276 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10277 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10278 sed '=' <$as_myself |
10279 sed '
10281 s,$,-,
10282 : loop
10283 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10284 t loop
10285 s,-$,,
10286 s,^['$as_cr_digits']*\n,,
10287 ' >$as_me.lineno &&
10288 chmod +x $as_me.lineno ||
10289 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10290 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10291 { (exit 1); exit 1; }; }
10293 # Don't try to exec as it changes $[0], causing all sort of problems
10294 # (the dirname of $[0] is not the place where we might find the
10295 # original and so on. Autoconf is especially sensible to this).
10296 . ./$as_me.lineno
10297 # Exit status is that of the last command.
10298 exit
10302 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10303 *c*,-n*) ECHO_N= ECHO_C='
10304 ' ECHO_T=' ' ;;
10305 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10306 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10307 esac
10309 if expr a : '\(a\)' >/dev/null 2>&1; then
10310 as_expr=expr
10311 else
10312 as_expr=false
10315 rm -f conf$$ conf$$.exe conf$$.file
10316 echo >conf$$.file
10317 if ln -s conf$$.file conf$$ 2>/dev/null; then
10318 # We could just check for DJGPP; but this test a) works b) is more generic
10319 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10320 if test -f conf$$.exe; then
10321 # Don't use ln at all; we don't have any links
10322 as_ln_s='cp -p'
10323 else
10324 as_ln_s='ln -s'
10326 elif ln conf$$.file conf$$ 2>/dev/null; then
10327 as_ln_s=ln
10328 else
10329 as_ln_s='cp -p'
10331 rm -f conf$$ conf$$.exe conf$$.file
10333 if mkdir -p . 2>/dev/null; then
10334 as_mkdir_p=:
10335 else
10336 test -d ./-p && rmdir ./-p
10337 as_mkdir_p=false
10340 as_executable_p="test -f"
10342 # Sed expression to map a string onto a valid CPP name.
10343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10345 # Sed expression to map a string onto a valid variable name.
10346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10349 # IFS
10350 # We need space, tab and new line, in precisely that order.
10351 as_nl='
10353 IFS=" $as_nl"
10355 # CDPATH.
10356 $as_unset CDPATH
10358 exec 6>&1
10360 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10361 # report actual input values of CONFIG_FILES etc. instead of their
10362 # values after options handling. Logging --version etc. is OK.
10363 exec 5>>config.log
10365 echo
10366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10367 ## Running $as_me. ##
10368 _ASBOX
10369 } >&5
10370 cat >&5 <<_CSEOF
10372 This file was extended by $as_me, which was
10373 generated by GNU Autoconf 2.59. Invocation command line was
10375 CONFIG_FILES = $CONFIG_FILES
10376 CONFIG_HEADERS = $CONFIG_HEADERS
10377 CONFIG_LINKS = $CONFIG_LINKS
10378 CONFIG_COMMANDS = $CONFIG_COMMANDS
10379 $ $0 $@
10381 _CSEOF
10382 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10383 echo >&5
10384 _ACEOF
10386 # Files that config.status was made for.
10387 if test -n "$ac_config_files"; then
10388 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10391 if test -n "$ac_config_headers"; then
10392 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10395 if test -n "$ac_config_links"; then
10396 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10399 if test -n "$ac_config_commands"; then
10400 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10403 cat >>$CONFIG_STATUS <<\_ACEOF
10405 ac_cs_usage="\
10406 \`$as_me' instantiates files from templates according to the
10407 current configuration.
10409 Usage: $0 [OPTIONS] [FILE]...
10411 -h, --help print this help, then exit
10412 -V, --version print version number, then exit
10413 -q, --quiet do not print progress messages
10414 -d, --debug don't remove temporary files
10415 --recheck update $as_me by reconfiguring in the same conditions
10416 --file=FILE[:TEMPLATE]
10417 instantiate the configuration file FILE
10418 --header=FILE[:TEMPLATE]
10419 instantiate the configuration header FILE
10421 Configuration files:
10422 $config_files
10424 Configuration headers:
10425 $config_headers
10427 Report bugs to <bug-autoconf@gnu.org>."
10428 _ACEOF
10430 cat >>$CONFIG_STATUS <<_ACEOF
10431 ac_cs_version="\\
10432 config.status
10433 configured by $0, generated by GNU Autoconf 2.59,
10434 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10436 Copyright (C) 2003 Free Software Foundation, Inc.
10437 This config.status script is free software; the Free Software Foundation
10438 gives unlimited permission to copy, distribute and modify it."
10439 srcdir=$srcdir
10440 INSTALL="$INSTALL"
10441 _ACEOF
10443 cat >>$CONFIG_STATUS <<\_ACEOF
10444 # If no file are specified by the user, then we need to provide default
10445 # value. By we need to know if files were specified by the user.
10446 ac_need_defaults=:
10447 while test $# != 0
10449 case $1 in
10450 --*=*)
10451 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10452 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10453 ac_shift=:
10456 ac_option=$1
10457 ac_optarg=$2
10458 ac_shift=shift
10460 *) # This is not an option, so the user has probably given explicit
10461 # arguments.
10462 ac_option=$1
10463 ac_need_defaults=false;;
10464 esac
10466 case $ac_option in
10467 # Handling of the options.
10468 _ACEOF
10469 cat >>$CONFIG_STATUS <<\_ACEOF
10470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10471 ac_cs_recheck=: ;;
10472 --version | --vers* | -V )
10473 echo "$ac_cs_version"; exit 0 ;;
10474 --he | --h)
10475 # Conflict between --help and --header
10476 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10477 Try \`$0 --help' for more information." >&5
10478 echo "$as_me: error: ambiguous option: $1
10479 Try \`$0 --help' for more information." >&2;}
10480 { (exit 1); exit 1; }; };;
10481 --help | --hel | -h )
10482 echo "$ac_cs_usage"; exit 0 ;;
10483 --debug | --d* | -d )
10484 debug=: ;;
10485 --file | --fil | --fi | --f )
10486 $ac_shift
10487 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10488 ac_need_defaults=false;;
10489 --header | --heade | --head | --hea )
10490 $ac_shift
10491 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10492 ac_need_defaults=false;;
10493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10494 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10495 ac_cs_silent=: ;;
10497 # This is an error.
10498 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10499 Try \`$0 --help' for more information." >&5
10500 echo "$as_me: error: unrecognized option: $1
10501 Try \`$0 --help' for more information." >&2;}
10502 { (exit 1); exit 1; }; } ;;
10504 *) ac_config_targets="$ac_config_targets $1" ;;
10506 esac
10507 shift
10508 done
10510 ac_configure_extra_args=
10512 if $ac_cs_silent; then
10513 exec 6>/dev/null
10514 ac_configure_extra_args="$ac_configure_extra_args --silent"
10517 _ACEOF
10518 cat >>$CONFIG_STATUS <<_ACEOF
10519 if \$ac_cs_recheck; then
10520 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10521 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10524 _ACEOF
10530 cat >>$CONFIG_STATUS <<\_ACEOF
10531 for ac_config_target in $ac_config_targets
10533 case "$ac_config_target" in
10534 # Handling of arguments.
10535 "make/ptbuildopts.mak" ) CONFIG_FILES="$CONFIG_FILES make/ptbuildopts.mak" ;;
10536 "make/ptlib-config" ) CONFIG_FILES="$CONFIG_FILES make/ptlib-config" ;;
10537 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10538 "include/ptbuildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ptbuildopts.h" ;;
10539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10540 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10541 { (exit 1); exit 1; }; };;
10542 esac
10543 done
10545 # If the user did not use the arguments to specify the items to instantiate,
10546 # then the envvar interface is used. Set only those that are not.
10547 # We use the long form for the default assignment because of an extremely
10548 # bizarre bug on SunOS 4.1.3.
10549 if $ac_need_defaults; then
10550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10554 # Have a temporary directory for convenience. Make it in the build tree
10555 # simply because there is no reason to put it here, and in addition,
10556 # creating and moving files from /tmp can sometimes cause problems.
10557 # Create a temporary directory, and hook for its removal unless debugging.
10558 $debug ||
10560 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10561 trap '{ (exit 1); exit 1; }' 1 2 13 15
10564 # Create a (secure) tmp directory for tmp files.
10567 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10568 test -n "$tmp" && test -d "$tmp"
10569 } ||
10571 tmp=./confstat$$-$RANDOM
10572 (umask 077 && mkdir $tmp)
10573 } ||
10575 echo "$me: cannot create a temporary directory in ." >&2
10576 { (exit 1); exit 1; }
10579 _ACEOF
10581 cat >>$CONFIG_STATUS <<_ACEOF
10584 # CONFIG_FILES section.
10587 # No need to generate the scripts if there are no CONFIG_FILES.
10588 # This happens for instance when ./config.status config.h
10589 if test -n "\$CONFIG_FILES"; then
10590 # Protect against being on the right side of a sed subst in config.status.
10591 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10592 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10593 s,@SHELL@,$SHELL,;t t
10594 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10595 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10596 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10597 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10598 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10599 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10600 s,@exec_prefix@,$exec_prefix,;t t
10601 s,@prefix@,$prefix,;t t
10602 s,@program_transform_name@,$program_transform_name,;t t
10603 s,@bindir@,$bindir,;t t
10604 s,@sbindir@,$sbindir,;t t
10605 s,@libexecdir@,$libexecdir,;t t
10606 s,@datadir@,$datadir,;t t
10607 s,@sysconfdir@,$sysconfdir,;t t
10608 s,@sharedstatedir@,$sharedstatedir,;t t
10609 s,@localstatedir@,$localstatedir,;t t
10610 s,@libdir@,$libdir,;t t
10611 s,@includedir@,$includedir,;t t
10612 s,@oldincludedir@,$oldincludedir,;t t
10613 s,@infodir@,$infodir,;t t
10614 s,@mandir@,$mandir,;t t
10615 s,@build_alias@,$build_alias,;t t
10616 s,@host_alias@,$host_alias,;t t
10617 s,@target_alias@,$target_alias,;t t
10618 s,@DEFS@,$DEFS,;t t
10619 s,@ECHO_C@,$ECHO_C,;t t
10620 s,@ECHO_N@,$ECHO_N,;t t
10621 s,@ECHO_T@,$ECHO_T,;t t
10622 s,@LIBS@,$LIBS,;t t
10623 s,@subdirs@,$subdirs,;t t
10624 s,@CXX@,$CXX,;t t
10625 s,@CXXFLAGS@,$CXXFLAGS,;t t
10626 s,@LDFLAGS@,$LDFLAGS,;t t
10627 s,@CPPFLAGS@,$CPPFLAGS,;t t
10628 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10629 s,@EXEEXT@,$EXEEXT,;t t
10630 s,@OBJEXT@,$OBJEXT,;t t
10631 s,@PWLIBDIR@,$PWLIBDIR,;t t
10632 s,@PWINSTDIR@,$PWINSTDIR,;t t
10633 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
10634 s,@LIBDIR@,$LIBDIR,;t t
10635 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
10636 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
10637 s,@BUILD_NUMBER@,$BUILD_NUMBER,;t t
10638 s,@PWLIB_VERSION@,$PWLIB_VERSION,;t t
10639 s,@build@,$build,;t t
10640 s,@build_cpu@,$build_cpu,;t t
10641 s,@build_vendor@,$build_vendor,;t t
10642 s,@build_os@,$build_os,;t t
10643 s,@host@,$host,;t t
10644 s,@host_cpu@,$host_cpu,;t t
10645 s,@host_vendor@,$host_vendor,;t t
10646 s,@host_os@,$host_os,;t t
10647 s,@target@,$target,;t t
10648 s,@target_cpu@,$target_cpu,;t t
10649 s,@target_vendor@,$target_vendor,;t t
10650 s,@target_os@,$target_os,;t t
10651 s,@MACHTYPE@,$MACHTYPE,;t t
10652 s,@OSTYPE@,$OSTYPE,;t t
10653 s,@OSRELEASE@,$OSRELEASE,;t t
10654 s,@TARGETDIR@,$TARGETDIR,;t t
10655 s,@USE_GCC@,$USE_GCC,;t t
10656 s,@USE_PCH@,$USE_PCH,;t t
10657 s,@SHAREDLIBEXT@,$SHAREDLIBEXT,;t t
10658 s,@CXXCPP@,$CXXCPP,;t t
10659 s,@EGREP@,$EGREP,;t t
10660 s,@FLEX@,$FLEX,;t t
10661 s,@AR@,$AR,;t t
10662 s,@BISON@,$BISON,;t t
10663 s,@HAS_REGEX@,$HAS_REGEX,;t t
10664 s,@HAS_PLUGINS@,$HAS_PLUGINS,;t t
10665 s,@HAS_RESOLVER@,$HAS_RESOLVER,;t t
10666 s,@HAS_SASL@,$HAS_SASL,;t t
10667 s,@HAS_SASL2@,$HAS_SASL2,;t t
10668 s,@HAS_OPENLDAP@,$HAS_OPENLDAP,;t t
10669 s,@HAS_OPENSSL@,$HAS_OPENSSL,;t t
10670 s,@P_STATIC_ENDLDLIBS@,$P_STATIC_ENDLDLIBS,;t t
10671 s,@P_STATIC_LDFLAGS@,$P_STATIC_LDFLAGS,;t t
10672 s,@HAS_EXPAT@,$HAS_EXPAT,;t t
10673 s,@HAS_VXML@,$HAS_VXML,;t t
10674 s,@HAS_JABBER@,$HAS_JABBER,;t t
10675 s,@HAS_XMLRPC@,$HAS_XMLRPC,;t t
10676 s,@HAS_SOAP@,$HAS_SOAP,;t t
10677 s,@HAS_TTS@,$HAS_TTS,;t t
10678 s,@HAS_IPV6@,$HAS_IPV6,;t t
10679 s,@HAS_SDL@,$HAS_SDL,;t t
10680 s,@HAS_VIDEO@,$HAS_VIDEO,;t t
10681 s,@HAS_VIDEO_CAPTURE@,$HAS_VIDEO_CAPTURE,;t t
10682 s,@USE_SHM_VIDEO_DEVICES@,$USE_SHM_VIDEO_DEVICES,;t t
10683 s,@HAS_ASN@,$HAS_ASN,;t t
10684 s,@HAS_STUN@,$HAS_STUN,;t t
10685 s,@HAS_PIPECHAN@,$HAS_PIPECHAN,;t t
10686 s,@HAS_DTMF@,$HAS_DTMF,;t t
10687 s,@HAS_WAVFILE@,$HAS_WAVFILE,;t t
10688 s,@HAS_SOCKS@,$HAS_SOCKS,;t t
10689 s,@HAS_FTP@,$HAS_FTP,;t t
10690 s,@HAS_SNMP@,$HAS_SNMP,;t t
10691 s,@HAS_TELNET@,$HAS_TELNET,;t t
10692 s,@HAS_REMCONN@,$HAS_REMCONN,;t t
10693 s,@HAS_SERIAL@,$HAS_SERIAL,;t t
10694 s,@HAS_POP3SMTP@,$HAS_POP3SMTP,;t t
10695 s,@HAS_HTTP@,$HAS_HTTP,;t t
10696 s,@HAS_HTTPSVC@,$HAS_HTTPSVC,;t t
10697 s,@HAS_CONFIG_FILE@,$HAS_CONFIG_FILE,;t t
10698 s,@HAS_SOCKAGG@,$HAS_SOCKAGG,;t t
10699 s,@HAS_VIDFILE@,$HAS_VIDFILE,;t t
10700 s,@HAS_AUDIO@,$HAS_AUDIO,;t t
10701 s,@HAS_OSS@,$HAS_OSS,;t t
10702 s,@HAS_ALSA@,$HAS_ALSA,;t t
10703 s,@HAS_ODBC@,$HAS_ODBC,;t t
10704 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
10705 s,@STDCXXFLAGS@,$STDCXXFLAGS,;t t
10706 s,@OPTSTDCCFLAGS@,$OPTSTDCCFLAGS,;t t
10707 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
10708 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
10709 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10710 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10711 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10712 s,@LIBOBJS@,$LIBOBJS,;t t
10713 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10714 CEOF
10716 _ACEOF
10718 cat >>$CONFIG_STATUS <<\_ACEOF
10719 # Split the substitutions into bite-sized pieces for seds with
10720 # small command number limits, like on Digital OSF/1 and HP-UX.
10721 ac_max_sed_lines=48
10722 ac_sed_frag=1 # Number of current file.
10723 ac_beg=1 # First line for current file.
10724 ac_end=$ac_max_sed_lines # Line after last line for current file.
10725 ac_more_lines=:
10726 ac_sed_cmds=
10727 while $ac_more_lines; do
10728 if test $ac_beg -gt 1; then
10729 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10730 else
10731 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10733 if test ! -s $tmp/subs.frag; then
10734 ac_more_lines=false
10735 else
10736 # The purpose of the label and of the branching condition is to
10737 # speed up the sed processing (if there are no `@' at all, there
10738 # is no need to browse any of the substitutions).
10739 # These are the two extra sed commands mentioned above.
10740 (echo ':t
10741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10742 if test -z "$ac_sed_cmds"; then
10743 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10744 else
10745 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10747 ac_sed_frag=`expr $ac_sed_frag + 1`
10748 ac_beg=$ac_end
10749 ac_end=`expr $ac_end + $ac_max_sed_lines`
10751 done
10752 if test -z "$ac_sed_cmds"; then
10753 ac_sed_cmds=cat
10755 fi # test -n "$CONFIG_FILES"
10757 _ACEOF
10758 cat >>$CONFIG_STATUS <<\_ACEOF
10759 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10760 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10761 case $ac_file in
10762 - | *:- | *:-:* ) # input from stdin
10763 cat >$tmp/stdin
10764 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10766 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10768 * ) ac_file_in=$ac_file.in ;;
10769 esac
10771 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10772 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774 X"$ac_file" : 'X\(//\)[^/]' \| \
10775 X"$ac_file" : 'X\(//\)$' \| \
10776 X"$ac_file" : 'X\(/\)' \| \
10777 . : '\(.\)' 2>/dev/null ||
10778 echo X"$ac_file" |
10779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10781 /^X\(\/\/\)$/{ s//\1/; q; }
10782 /^X\(\/\).*/{ s//\1/; q; }
10783 s/.*/./; q'`
10784 { if $as_mkdir_p; then
10785 mkdir -p "$ac_dir"
10786 else
10787 as_dir="$ac_dir"
10788 as_dirs=
10789 while test ! -d "$as_dir"; do
10790 as_dirs="$as_dir $as_dirs"
10791 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10793 X"$as_dir" : 'X\(//\)[^/]' \| \
10794 X"$as_dir" : 'X\(//\)$' \| \
10795 X"$as_dir" : 'X\(/\)' \| \
10796 . : '\(.\)' 2>/dev/null ||
10797 echo X"$as_dir" |
10798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10800 /^X\(\/\/\)$/{ s//\1/; q; }
10801 /^X\(\/\).*/{ s//\1/; q; }
10802 s/.*/./; q'`
10803 done
10804 test ! -n "$as_dirs" || mkdir $as_dirs
10805 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10806 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10807 { (exit 1); exit 1; }; }; }
10809 ac_builddir=.
10811 if test "$ac_dir" != .; then
10812 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10813 # A "../" for each directory in $ac_dir_suffix.
10814 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10815 else
10816 ac_dir_suffix= ac_top_builddir=
10819 case $srcdir in
10820 .) # No --srcdir option. We are building in place.
10821 ac_srcdir=.
10822 if test -z "$ac_top_builddir"; then
10823 ac_top_srcdir=.
10824 else
10825 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10826 fi ;;
10827 [\\/]* | ?:[\\/]* ) # Absolute path.
10828 ac_srcdir=$srcdir$ac_dir_suffix;
10829 ac_top_srcdir=$srcdir ;;
10830 *) # Relative path.
10831 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10832 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10833 esac
10835 # Do not use `cd foo && pwd` to compute absolute paths, because
10836 # the directories may not exist.
10837 case `pwd` in
10838 .) ac_abs_builddir="$ac_dir";;
10840 case "$ac_dir" in
10841 .) ac_abs_builddir=`pwd`;;
10842 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10843 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10844 esac;;
10845 esac
10846 case $ac_abs_builddir in
10847 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10849 case ${ac_top_builddir}. in
10850 .) ac_abs_top_builddir=$ac_abs_builddir;;
10851 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10852 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10853 esac;;
10854 esac
10855 case $ac_abs_builddir in
10856 .) ac_abs_srcdir=$ac_srcdir;;
10858 case $ac_srcdir in
10859 .) ac_abs_srcdir=$ac_abs_builddir;;
10860 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10861 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10862 esac;;
10863 esac
10864 case $ac_abs_builddir in
10865 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10867 case $ac_top_srcdir in
10868 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10869 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10870 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10871 esac;;
10872 esac
10875 case $INSTALL in
10876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10877 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10878 esac
10880 if test x"$ac_file" != x-; then
10881 { echo "$as_me:$LINENO: creating $ac_file" >&5
10882 echo "$as_me: creating $ac_file" >&6;}
10883 rm -f "$ac_file"
10885 # Let's still pretend it is `configure' which instantiates (i.e., don't
10886 # use $as_me), people would be surprised to read:
10887 # /* config.h. Generated by config.status. */
10888 if test x"$ac_file" = x-; then
10889 configure_input=
10890 else
10891 configure_input="$ac_file. "
10893 configure_input=$configure_input"Generated from `echo $ac_file_in |
10894 sed 's,.*/,,'` by configure."
10896 # First look for the input files in the build tree, otherwise in the
10897 # src tree.
10898 ac_file_inputs=`IFS=:
10899 for f in $ac_file_in; do
10900 case $f in
10901 -) echo $tmp/stdin ;;
10902 [\\/$]*)
10903 # Absolute (can't be DOS-style, as IFS=:)
10904 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10905 echo "$as_me: error: cannot find input file: $f" >&2;}
10906 { (exit 1); exit 1; }; }
10907 echo "$f";;
10908 *) # Relative
10909 if test -f "$f"; then
10910 # Build tree
10911 echo "$f"
10912 elif test -f "$srcdir/$f"; then
10913 # Source tree
10914 echo "$srcdir/$f"
10915 else
10916 # /dev/null tree
10917 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10918 echo "$as_me: error: cannot find input file: $f" >&2;}
10919 { (exit 1); exit 1; }; }
10920 fi;;
10921 esac
10922 done` || { (exit 1); exit 1; }
10923 _ACEOF
10924 cat >>$CONFIG_STATUS <<_ACEOF
10925 sed "$ac_vpsub
10926 $extrasub
10927 _ACEOF
10928 cat >>$CONFIG_STATUS <<\_ACEOF
10930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10931 s,@configure_input@,$configure_input,;t t
10932 s,@srcdir@,$ac_srcdir,;t t
10933 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10934 s,@top_srcdir@,$ac_top_srcdir,;t t
10935 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10936 s,@builddir@,$ac_builddir,;t t
10937 s,@abs_builddir@,$ac_abs_builddir,;t t
10938 s,@top_builddir@,$ac_top_builddir,;t t
10939 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10940 s,@INSTALL@,$ac_INSTALL,;t t
10941 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10942 rm -f $tmp/stdin
10943 if test x"$ac_file" != x-; then
10944 mv $tmp/out $ac_file
10945 else
10946 cat $tmp/out
10947 rm -f $tmp/out
10950 # Run the commands associated with the file.
10951 case $ac_file in
10952 make/ptlib-config ) chmod a+x make/ptlib-config ;;
10953 esac
10954 done
10955 _ACEOF
10956 cat >>$CONFIG_STATUS <<\_ACEOF
10959 # CONFIG_HEADER section.
10962 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10963 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10965 # ac_d sets the value in "#define NAME VALUE" lines.
10966 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10967 ac_dB='[ ].*$,\1#\2'
10968 ac_dC=' '
10969 ac_dD=',;t'
10970 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10971 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10972 ac_uB='$,\1#\2define\3'
10973 ac_uC=' '
10974 ac_uD=',;t'
10976 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10978 case $ac_file in
10979 - | *:- | *:-:* ) # input from stdin
10980 cat >$tmp/stdin
10981 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10982 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10983 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10985 * ) ac_file_in=$ac_file.in ;;
10986 esac
10988 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10989 echo "$as_me: creating $ac_file" >&6;}
10991 # First look for the input files in the build tree, otherwise in the
10992 # src tree.
10993 ac_file_inputs=`IFS=:
10994 for f in $ac_file_in; do
10995 case $f in
10996 -) echo $tmp/stdin ;;
10997 [\\/$]*)
10998 # Absolute (can't be DOS-style, as IFS=:)
10999 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11000 echo "$as_me: error: cannot find input file: $f" >&2;}
11001 { (exit 1); exit 1; }; }
11002 # Do quote $f, to prevent DOS paths from being IFS'd.
11003 echo "$f";;
11004 *) # Relative
11005 if test -f "$f"; then
11006 # Build tree
11007 echo "$f"
11008 elif test -f "$srcdir/$f"; then
11009 # Source tree
11010 echo "$srcdir/$f"
11011 else
11012 # /dev/null tree
11013 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11014 echo "$as_me: error: cannot find input file: $f" >&2;}
11015 { (exit 1); exit 1; }; }
11016 fi;;
11017 esac
11018 done` || { (exit 1); exit 1; }
11019 # Remove the trailing spaces.
11020 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11022 _ACEOF
11024 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11025 # `conftest.undefs', that substitutes the proper values into
11026 # config.h.in to produce config.h. The first handles `#define'
11027 # templates, and the second `#undef' templates.
11028 # And first: Protect against being on the right side of a sed subst in
11029 # config.status. Protect against being in an unquoted here document
11030 # in config.status.
11031 rm -f conftest.defines conftest.undefs
11032 # Using a here document instead of a string reduces the quoting nightmare.
11033 # Putting comments in sed scripts is not portable.
11035 # `end' is used to avoid that the second main sed command (meant for
11036 # 0-ary CPP macros) applies to n-ary macro definitions.
11037 # See the Autoconf documentation for `clear'.
11038 cat >confdef2sed.sed <<\_ACEOF
11039 s/[\\&,]/\\&/g
11040 s,[\\$`],\\&,g
11041 t clear
11042 : clear
11043 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11044 t end
11045 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11046 : end
11047 _ACEOF
11048 # If some macros were called several times there might be several times
11049 # the same #defines, which is useless. Nevertheless, we may not want to
11050 # sort them, since we want the *last* AC-DEFINE to be honored.
11051 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11052 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11053 rm -f confdef2sed.sed
11055 # This sed command replaces #undef with comments. This is necessary, for
11056 # example, in the case of _POSIX_SOURCE, which is predefined and required
11057 # on some systems where configure will not decide to define it.
11058 cat >>conftest.undefs <<\_ACEOF
11059 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11060 _ACEOF
11062 # Break up conftest.defines because some shells have a limit on the size
11063 # of here documents, and old seds have small limits too (100 cmds).
11064 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11065 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11066 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11067 echo ' :' >>$CONFIG_STATUS
11068 rm -f conftest.tail
11069 while grep . conftest.defines >/dev/null
11071 # Write a limited-size here document to $tmp/defines.sed.
11072 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11073 # Speed up: don't consider the non `#define' lines.
11074 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11075 # Work around the forget-to-reset-the-flag bug.
11076 echo 't clr' >>$CONFIG_STATUS
11077 echo ': clr' >>$CONFIG_STATUS
11078 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11079 echo 'CEOF
11080 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11081 rm -f $tmp/in
11082 mv $tmp/out $tmp/in
11083 ' >>$CONFIG_STATUS
11084 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11085 rm -f conftest.defines
11086 mv conftest.tail conftest.defines
11087 done
11088 rm -f conftest.defines
11089 echo ' fi # grep' >>$CONFIG_STATUS
11090 echo >>$CONFIG_STATUS
11092 # Break up conftest.undefs because some shells have a limit on the size
11093 # of here documents, and old seds have small limits too (100 cmds).
11094 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11095 rm -f conftest.tail
11096 while grep . conftest.undefs >/dev/null
11098 # Write a limited-size here document to $tmp/undefs.sed.
11099 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11100 # Speed up: don't consider the non `#undef'
11101 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11102 # Work around the forget-to-reset-the-flag bug.
11103 echo 't clr' >>$CONFIG_STATUS
11104 echo ': clr' >>$CONFIG_STATUS
11105 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11106 echo 'CEOF
11107 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11108 rm -f $tmp/in
11109 mv $tmp/out $tmp/in
11110 ' >>$CONFIG_STATUS
11111 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11112 rm -f conftest.undefs
11113 mv conftest.tail conftest.undefs
11114 done
11115 rm -f conftest.undefs
11117 cat >>$CONFIG_STATUS <<\_ACEOF
11118 # Let's still pretend it is `configure' which instantiates (i.e., don't
11119 # use $as_me), people would be surprised to read:
11120 # /* config.h. Generated by config.status. */
11121 if test x"$ac_file" = x-; then
11122 echo "/* Generated by configure. */" >$tmp/config.h
11123 else
11124 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11126 cat $tmp/in >>$tmp/config.h
11127 rm -f $tmp/in
11128 if test x"$ac_file" != x-; then
11129 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11130 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11131 echo "$as_me: $ac_file is unchanged" >&6;}
11132 else
11133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11135 X"$ac_file" : 'X\(//\)[^/]' \| \
11136 X"$ac_file" : 'X\(//\)$' \| \
11137 X"$ac_file" : 'X\(/\)' \| \
11138 . : '\(.\)' 2>/dev/null ||
11139 echo X"$ac_file" |
11140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11142 /^X\(\/\/\)$/{ s//\1/; q; }
11143 /^X\(\/\).*/{ s//\1/; q; }
11144 s/.*/./; q'`
11145 { if $as_mkdir_p; then
11146 mkdir -p "$ac_dir"
11147 else
11148 as_dir="$ac_dir"
11149 as_dirs=
11150 while test ! -d "$as_dir"; do
11151 as_dirs="$as_dir $as_dirs"
11152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11154 X"$as_dir" : 'X\(//\)[^/]' \| \
11155 X"$as_dir" : 'X\(//\)$' \| \
11156 X"$as_dir" : 'X\(/\)' \| \
11157 . : '\(.\)' 2>/dev/null ||
11158 echo X"$as_dir" |
11159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11161 /^X\(\/\/\)$/{ s//\1/; q; }
11162 /^X\(\/\).*/{ s//\1/; q; }
11163 s/.*/./; q'`
11164 done
11165 test ! -n "$as_dirs" || mkdir $as_dirs
11166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11168 { (exit 1); exit 1; }; }; }
11170 rm -f $ac_file
11171 mv $tmp/config.h $ac_file
11173 else
11174 cat $tmp/config.h
11175 rm -f $tmp/config.h
11177 done
11178 _ACEOF
11180 cat >>$CONFIG_STATUS <<\_ACEOF
11182 { (exit 0); exit 0; }
11183 _ACEOF
11184 chmod +x $CONFIG_STATUS
11185 ac_clean_files=$ac_clean_files_save
11188 # configure is writing to config.log, and then calls config.status.
11189 # config.status does its own redirection, appending to config.log.
11190 # Unfortunately, on DOS this fails, as config.log is still kept open
11191 # by configure, so config.status won't be able to write to it; its
11192 # output is simply discarded. So we exec the FD to /dev/null,
11193 # effectively closing config.log, so it can be properly (re)opened and
11194 # appended to by config.status. When coming back to configure, we
11195 # need to make the FD available again.
11196 if test "$no_create" != yes; then
11197 ac_cs_success=:
11198 ac_config_status_args=
11199 test "$silent" = yes &&
11200 ac_config_status_args="$ac_config_status_args --quiet"
11201 exec 5>/dev/null
11202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11203 exec 5>>config.log
11204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11205 # would make configure fail if this is the last instruction.
11206 $ac_cs_success || { (exit 1); exit 1; }
11210 # CONFIG_SUBDIRS section.
11212 if test "$no_recursion" != yes; then
11214 # Remove --cache-file and --srcdir arguments so they do not pile up.
11215 ac_sub_configure_args=
11216 ac_prev=
11217 for ac_arg in $ac_configure_args; do
11218 if test -n "$ac_prev"; then
11219 ac_prev=
11220 continue
11222 case $ac_arg in
11223 -cache-file | --cache-file | --cache-fil | --cache-fi \
11224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11225 ac_prev=cache_file ;;
11226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11228 | --c=*)
11230 --config-cache | -C)
11232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11233 ac_prev=srcdir ;;
11234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11236 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11237 ac_prev=prefix ;;
11238 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11240 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11241 esac
11242 done
11244 # Always prepend --prefix to ensure using the same prefix
11245 # in subdir configurations.
11246 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
11248 ac_popdir=`pwd`
11249 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11251 # Do not complain, so a configure script can configure whichever
11252 # parts of a large source tree are present.
11253 test -d $srcdir/$ac_dir || continue
11255 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
11256 echo "$as_me: configuring in $ac_dir" >&6;}
11257 { if $as_mkdir_p; then
11258 mkdir -p "$ac_dir"
11259 else
11260 as_dir="$ac_dir"
11261 as_dirs=
11262 while test ! -d "$as_dir"; do
11263 as_dirs="$as_dir $as_dirs"
11264 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11266 X"$as_dir" : 'X\(//\)[^/]' \| \
11267 X"$as_dir" : 'X\(//\)$' \| \
11268 X"$as_dir" : 'X\(/\)' \| \
11269 . : '\(.\)' 2>/dev/null ||
11270 echo X"$as_dir" |
11271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11273 /^X\(\/\/\)$/{ s//\1/; q; }
11274 /^X\(\/\).*/{ s//\1/; q; }
11275 s/.*/./; q'`
11276 done
11277 test ! -n "$as_dirs" || mkdir $as_dirs
11278 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11280 { (exit 1); exit 1; }; }; }
11282 ac_builddir=.
11284 if test "$ac_dir" != .; then
11285 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11286 # A "../" for each directory in $ac_dir_suffix.
11287 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11288 else
11289 ac_dir_suffix= ac_top_builddir=
11292 case $srcdir in
11293 .) # No --srcdir option. We are building in place.
11294 ac_srcdir=.
11295 if test -z "$ac_top_builddir"; then
11296 ac_top_srcdir=.
11297 else
11298 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11299 fi ;;
11300 [\\/]* | ?:[\\/]* ) # Absolute path.
11301 ac_srcdir=$srcdir$ac_dir_suffix;
11302 ac_top_srcdir=$srcdir ;;
11303 *) # Relative path.
11304 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11305 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11306 esac
11308 # Do not use `cd foo && pwd` to compute absolute paths, because
11309 # the directories may not exist.
11310 case `pwd` in
11311 .) ac_abs_builddir="$ac_dir";;
11313 case "$ac_dir" in
11314 .) ac_abs_builddir=`pwd`;;
11315 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11316 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11317 esac;;
11318 esac
11319 case $ac_abs_builddir in
11320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11322 case ${ac_top_builddir}. in
11323 .) ac_abs_top_builddir=$ac_abs_builddir;;
11324 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11325 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11326 esac;;
11327 esac
11328 case $ac_abs_builddir in
11329 .) ac_abs_srcdir=$ac_srcdir;;
11331 case $ac_srcdir in
11332 .) ac_abs_srcdir=$ac_abs_builddir;;
11333 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11334 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11335 esac;;
11336 esac
11337 case $ac_abs_builddir in
11338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11340 case $ac_top_srcdir in
11341 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11342 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11343 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11344 esac;;
11345 esac
11348 cd $ac_dir
11350 # Check for guested configure; otherwise get Cygnus style configure.
11351 if test -f $ac_srcdir/configure.gnu; then
11352 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
11353 elif test -f $ac_srcdir/configure; then
11354 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
11355 elif test -f $ac_srcdir/configure.in; then
11356 ac_sub_configure=$ac_configure
11357 else
11358 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
11359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11360 ac_sub_configure=
11363 # The recursion is here.
11364 if test -n "$ac_sub_configure"; then
11365 # Make the cache file name correct relative to the subdirectory.
11366 case $cache_file in
11367 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11368 *) # Relative path.
11369 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
11370 esac
11372 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11373 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11374 # The eval makes quoting arguments work.
11375 eval $ac_sub_configure $ac_sub_configure_args \
11376 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
11377 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
11378 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11379 { (exit 1); exit 1; }; }
11382 cd $ac_popdir
11383 done