Added functions to get average audio signal level from audio streams in
[opal.git] / configure
blobcaba3e8b7416bf27b2b9d3a17ec6781ea41359f7
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/opal/manager.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subdirs_all="$ac_subdirs_all plugins"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OPALDIR INSTALLPREFIX LIBDIR PTLIB_CONFIG PWLIBDIR CPP EGREP SIZE16 SIZE32 OPAL_SYSTEM_SPEEX OPAL_HAVE_SPEEX_SPEEX_H OPAL_AUDIO OPAL_VIDEO OPAL_SIP OPAL_H323 OPAL_IAX2 OPAL_H224 OPAL_T38FAX H323_H460 HAS_IXJ OPAL_LID HAS_VPB HAS_SANGOMA STDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs 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_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
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_CXX_set=${CXX+set}
771 ac_env_CXX_value=$CXX
772 ac_cv_env_CXX_set=${CXX+set}
773 ac_cv_env_CXX_value=$CXX
774 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_env_CXXFLAGS_value=$CXXFLAGS
776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
784 # Report the --help message.
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
792 Usage: $0 [OPTION]... [VAR=VALUE]...
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
797 Defaults for the options are specified in brackets.
799 Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 _ACEOF
812 cat <<_ACEOF
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
824 For better control, use the options below.
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839 _ACEOF
841 cat <<\_ACEOF
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-versioncheck disable PWLib version check
853 --enable-localspeex use local version of Speex library rather than system version
854 --disable-sip disable SIP protocol support
855 --disable-h323 disable H.323 protocol support
856 --disable-iax disable IAX2 protocol support
857 --disable-h224 disable H.224 protocol support
858 --disable-t38 disable T.38 protocol support
859 --disable-h460 disable H.460
860 --enable-vpb enable voicetronix vpb
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
871 CPP C preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 _ACEOF
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891 ac_dir_suffix= ac_top_builddir=
894 case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
910 # Do not use `cd foo && pwd` to compute absolute paths, because
911 # the directories may not exist.
912 case `pwd` in
913 .) ac_abs_builddir="$ac_dir";;
915 case "$ac_dir" in
916 .) ac_abs_builddir=`pwd`;;
917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
919 esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
924 case ${ac_top_builddir}. in
925 .) ac_abs_top_builddir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
933 case $ac_srcdir in
934 .) ac_abs_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
942 case $ac_top_srcdir in
943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 esac;;
947 esac
949 cd $ac_dir
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
952 echo
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
955 echo
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
959 echo
960 $ac_configure --help
961 else
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 cd $ac_popdir
965 done
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970 cat <<\_ACEOF
972 Copyright (C) 2003 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
975 _ACEOF
976 exit 0
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by $as_me, which was
984 generated by GNU Autoconf 2.59. Invocation command line was
986 $ $0 $@
988 _ACEOF
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 _ASUNAME
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1017 IFS=$as_save_IFS
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1020 done
1022 } >&5
1024 cat >&5 <<_ACEOF
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1031 _ACEOF
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Strip out --silent because we don't want to record it for future runs.
1037 # Also quote any args containing shell meta-characters.
1038 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_configure_args=
1040 ac_configure_args0=
1041 ac_configure_args1=
1042 ac_sep=
1043 ac_must_keep_next=false
1044 for ac_pass in 1 2
1046 for ac_arg
1048 case $ac_arg in
1049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 continue ;;
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 esac
1056 case $ac_pass in
1057 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060 if test $ac_must_keep_next = true; then
1061 ac_must_keep_next=false # Got value, back to normal.
1062 else
1063 case $ac_arg in
1064 *=* | --config-cache | -C | -disable-* | --disable-* \
1065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067 | -with-* | --with-* | -without-* | --without-* | --x)
1068 case "$ac_configure_args0 " in
1069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 esac
1072 -* ) ac_must_keep_next=true ;;
1073 esac
1075 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076 # Get rid of the leading space.
1077 ac_sep=" "
1079 esac
1080 done
1081 done
1082 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085 # When interrupted or exit'd, cleanup temporary files, and complete
1086 # config.log. We remove comments because anyway the quotes in there
1087 # would cause problems or look ugly.
1088 # WARNING: Be sure not to use single quotes in there, as some shells,
1089 # such as our DU 5.0 friend, will then `close' the trap.
1090 trap 'exit_status=$?
1091 # Save into config.log some information that might help in debugging.
1093 echo
1095 cat <<\_ASBOX
1096 ## ---------------- ##
1097 ## Cache variables. ##
1098 ## ---------------- ##
1099 _ASBOX
1100 echo
1101 # The following way of writing the cache mishandles newlines in values,
1103 (set) 2>&1 |
1104 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 *ac_space=\ *)
1106 sed -n \
1107 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 sed -n \
1112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 esac;
1116 echo
1118 cat <<\_ASBOX
1119 ## ----------------- ##
1120 ## Output variables. ##
1121 ## ----------------- ##
1122 _ASBOX
1123 echo
1124 for ac_var in $ac_subst_vars
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1128 done | sort
1129 echo
1131 if test -n "$ac_subst_files"; then
1132 cat <<\_ASBOX
1133 ## ------------- ##
1134 ## Output files. ##
1135 ## ------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_files
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1146 if test -s confdefs.h; then
1147 cat <<\_ASBOX
1148 ## ----------- ##
1149 ## confdefs.h. ##
1150 ## ----------- ##
1151 _ASBOX
1152 echo
1153 sed "/^$/d" confdefs.h | sort
1154 echo
1156 test "$ac_signal" != 0 &&
1157 echo "$as_me: caught signal $ac_signal"
1158 echo "$as_me: exit $exit_status"
1159 } >&5
1160 rm -f core *.core &&
1161 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 exit $exit_status
1164 for ac_signal in 1 2 13 15; do
1165 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 done
1167 ac_signal=0
1169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1170 rm -rf conftest* confdefs.h
1171 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 echo >confdefs.h
1174 # Predefined preprocessor variables.
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 _ACEOF
1201 # Let the site file select an alternate cache file if it wants to.
1202 # Prefer explicitly selected file to automatically selected ones.
1203 if test -z "$CONFIG_SITE"; then
1204 if test "x$prefix" != xNONE; then
1205 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 else
1207 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210 for ac_site_file in $CONFIG_SITE; do
1211 if test -r "$ac_site_file"; then
1212 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213 echo "$as_me: loading site script $ac_site_file" >&6;}
1214 sed 's/^/| /' "$ac_site_file" >&5
1215 . "$ac_site_file"
1217 done
1219 if test -r "$cache_file"; then
1220 # Some versions of bash will fail to source /dev/null (special
1221 # files actually), so we avoid doing that.
1222 if test -f "$cache_file"; then
1223 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224 echo "$as_me: loading cache $cache_file" >&6;}
1225 case $cache_file in
1226 [\\/]* | ?:[\\/]* ) . $cache_file;;
1227 *) . ./$cache_file;;
1228 esac
1230 else
1231 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232 echo "$as_me: creating cache $cache_file" >&6;}
1233 >$cache_file
1236 # Check that the precious variables saved in the cache have kept the same
1237 # value.
1238 ac_cache_corrupted=false
1239 for ac_var in `(set) 2>&1 |
1240 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242 eval ac_new_set=\$ac_env_${ac_var}_set
1243 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244 eval ac_new_val="\$ac_env_${ac_var}_value"
1245 case $ac_old_set,$ac_new_set in
1246 set,)
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1250 ,set)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,);;
1256 if test "x$ac_old_val" != "x$ac_new_val"; then
1257 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1260 echo "$as_me: former value: $ac_old_val" >&2;}
1261 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1262 echo "$as_me: current value: $ac_new_val" >&2;}
1263 ac_cache_corrupted=:
1264 fi;;
1265 esac
1266 # Pass precious variables to config.status.
1267 if test "$ac_new_set" = set; then
1268 case $ac_new_val in
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 *) ac_arg=$ac_var=$ac_new_val ;;
1272 esac
1273 case " $ac_configure_args " in
1274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1275 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276 esac
1278 done
1279 if $ac_cache_corrupted; then
1280 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284 { (exit 1); exit 1; }; }
1287 ac_ext=c
1288 ac_cpp='$CPP $CPPFLAGS'
1289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 if test -n "$ac_tool_prefix"; then
1318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1320 echo "$as_me:$LINENO: checking for $ac_word" >&5
1321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322 if test "${ac_cv_prog_CC+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325 if test -n "$CC"; then
1326 ac_cv_prog_CC="$CC" # Let the user override the test.
1327 else
1328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1329 for as_dir in $PATH
1331 IFS=$as_save_IFS
1332 test -z "$as_dir" && as_dir=.
1333 for ac_exec_ext in '' $ac_executable_extensions; do
1334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1337 break 2
1339 done
1340 done
1344 CC=$ac_cv_prog_CC
1345 if test -n "$CC"; then
1346 echo "$as_me:$LINENO: result: $CC" >&5
1347 echo "${ECHO_T}$CC" >&6
1348 else
1349 echo "$as_me:$LINENO: result: no" >&5
1350 echo "${ECHO_T}no" >&6
1354 if test -z "$ac_cv_prog_CC"; then
1355 ac_ct_CC=$CC
1356 # Extract the first word of "gcc", so it can be a program name with args.
1357 set dummy gcc; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 if test -n "$ac_ct_CC"; then
1364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1365 else
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CC="gcc"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 break 2
1377 done
1378 done
1382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1383 if test -n "$ac_ct_CC"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1385 echo "${ECHO_T}$ac_ct_CC" >&6
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 CC=$ac_ct_CC
1392 else
1393 CC="$ac_cv_prog_CC"
1396 if test -z "$CC"; then
1397 if test -n "$ac_tool_prefix"; then
1398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1399 set dummy ${ac_tool_prefix}cc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 if test -n "$CC"; then
1406 ac_cv_prog_CC="$CC" # Let the user override the test.
1407 else
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 for as_dir in $PATH
1411 IFS=$as_save_IFS
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_CC="${ac_tool_prefix}cc"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 break 2
1419 done
1420 done
1424 CC=$ac_cv_prog_CC
1425 if test -n "$CC"; then
1426 echo "$as_me:$LINENO: result: $CC" >&5
1427 echo "${ECHO_T}$CC" >&6
1428 else
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1434 if test -z "$ac_cv_prog_CC"; then
1435 ac_ct_CC=$CC
1436 # Extract the first word of "cc", so it can be a program name with args.
1437 set dummy cc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$ac_ct_CC"; then
1444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_ac_ct_CC="cc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 CC=$ac_ct_CC
1472 else
1473 CC="$ac_cv_prog_CC"
1477 if test -z "$CC"; then
1478 # Extract the first word of "cc", so it can be a program name with args.
1479 set dummy cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 ac_prog_rejected=no
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1497 ac_prog_rejected=yes
1498 continue
1500 ac_cv_prog_CC="cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1504 done
1505 done
1507 if test $ac_prog_rejected = yes; then
1508 # We found a bogon in the path, so make sure we never use it.
1509 set dummy $ac_cv_prog_CC
1510 shift
1511 if test $# != 0; then
1512 # We chose a different compiler from the bogus one.
1513 # However, it has the same basename, so the bogon will be chosen
1514 # first if we set CC to just the basename; use the full file name.
1515 shift
1516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1521 CC=$ac_cv_prog_CC
1522 if test -n "$CC"; then
1523 echo "$as_me:$LINENO: result: $CC" >&5
1524 echo "${ECHO_T}$CC" >&6
1525 else
1526 echo "$as_me:$LINENO: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1531 if test -z "$CC"; then
1532 if test -n "$ac_tool_prefix"; then
1533 for ac_prog in cl
1535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 break 2
1556 done
1557 done
1561 CC=$ac_cv_prog_CC
1562 if test -n "$CC"; then
1563 echo "$as_me:$LINENO: result: $CC" >&5
1564 echo "${ECHO_T}$CC" >&6
1565 else
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1570 test -n "$CC" && break
1571 done
1573 if test -z "$CC"; then
1574 ac_ct_CC=$CC
1575 for ac_prog in cl
1577 # Extract the first word of "$ac_prog", so it can be a program name with args.
1578 set dummy $ac_prog; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_ac_ct_CC="$ac_prog"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596 break 2
1598 done
1599 done
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1612 test -n "$ac_ct_CC" && break
1613 done
1615 CC=$ac_ct_CC
1621 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1622 See \`config.log' for more details." >&5
1623 echo "$as_me: error: no acceptable C compiler found in \$PATH
1624 See \`config.log' for more details." >&2;}
1625 { (exit 1); exit 1; }; }
1627 # Provide some information about the compiler.
1628 echo "$as_me:$LINENO:" \
1629 "checking for C compiler version" >&5
1630 ac_compiler=`set X $ac_compile; echo $2`
1631 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1632 (eval $ac_compiler --version </dev/null >&5) 2>&5
1633 ac_status=$?
1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1637 (eval $ac_compiler -v </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1642 (eval $ac_compiler -V </dev/null >&5) 2>&5
1643 ac_status=$?
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1647 cat >conftest.$ac_ext <<_ACEOF
1648 /* confdefs.h. */
1649 _ACEOF
1650 cat confdefs.h >>conftest.$ac_ext
1651 cat >>conftest.$ac_ext <<_ACEOF
1652 /* end confdefs.h. */
1655 main ()
1659 return 0;
1661 _ACEOF
1662 ac_clean_files_save=$ac_clean_files
1663 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1664 # Try to create an executable without -o first, disregard a.out.
1665 # It will help us diagnose broken compilers, and finding out an intuition
1666 # of exeext.
1667 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1668 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1669 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1670 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1671 (eval $ac_link_default) 2>&5
1672 ac_status=$?
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }; then
1675 # Find the output, starting from the most likely. This scheme is
1676 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1677 # resort.
1679 # Be careful to initialize this variable, since it used to be cached.
1680 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1681 ac_cv_exeext=
1682 # b.out is created by i960 compilers.
1683 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1685 test -f "$ac_file" || continue
1686 case $ac_file in
1687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1689 conftest.$ac_ext )
1690 # This is the source file.
1692 [ab].out )
1693 # We found the default executable, but exeext='' is most
1694 # certainly right.
1695 break;;
1696 *.* )
1697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1698 # FIXME: I believe we export ac_cv_exeext for Libtool,
1699 # but it would be cool to find out if it's true. Does anybody
1700 # maintain Libtool? --akim.
1701 export ac_cv_exeext
1702 break;;
1704 break;;
1705 esac
1706 done
1707 else
1708 echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1712 See \`config.log' for more details." >&5
1713 echo "$as_me: error: C compiler cannot create executables
1714 See \`config.log' for more details." >&2;}
1715 { (exit 77); exit 77; }; }
1718 ac_exeext=$ac_cv_exeext
1719 echo "$as_me:$LINENO: result: $ac_file" >&5
1720 echo "${ECHO_T}$ac_file" >&6
1722 # Check the compiler produces executables we can run. If not, either
1723 # the compiler is broken, or we cross compile.
1724 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1725 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1726 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1727 # If not cross compiling, check that we can run a simple program.
1728 if test "$cross_compiling" != yes; then
1729 if { ac_try='./$ac_file'
1730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1731 (eval $ac_try) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; }; then
1735 cross_compiling=no
1736 else
1737 if test "$cross_compiling" = maybe; then
1738 cross_compiling=yes
1739 else
1740 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1741 If you meant to cross compile, use \`--host'.
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'.
1745 See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1750 echo "$as_me:$LINENO: result: yes" >&5
1751 echo "${ECHO_T}yes" >&6
1753 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1754 ac_clean_files=$ac_clean_files_save
1755 # Check the compiler produces executables we can run. If not, either
1756 # the compiler is broken, or we cross compile.
1757 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1758 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1759 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1760 echo "${ECHO_T}$cross_compiling" >&6
1762 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1763 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1765 (eval $ac_link) 2>&5
1766 ac_status=$?
1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768 (exit $ac_status); }; then
1769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1771 # work properly (i.e., refer to `conftest.exe'), while it won't with
1772 # `rm'.
1773 for ac_file in conftest.exe conftest conftest.*; do
1774 test -f "$ac_file" || continue
1775 case $ac_file in
1776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1778 export ac_cv_exeext
1779 break;;
1780 * ) break;;
1781 esac
1782 done
1783 else
1784 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1785 See \`config.log' for more details." >&5
1786 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1787 See \`config.log' for more details." >&2;}
1788 { (exit 1); exit 1; }; }
1791 rm -f conftest$ac_cv_exeext
1792 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1793 echo "${ECHO_T}$ac_cv_exeext" >&6
1795 rm -f conftest.$ac_ext
1796 EXEEXT=$ac_cv_exeext
1797 ac_exeext=$EXEEXT
1798 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1799 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1800 if test "${ac_cv_objext+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803 cat >conftest.$ac_ext <<_ACEOF
1804 /* confdefs.h. */
1805 _ACEOF
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h. */
1811 main ()
1815 return 0;
1817 _ACEOF
1818 rm -f conftest.o conftest.obj
1819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1820 (eval $ac_compile) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; then
1824 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1825 case $ac_file in
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1827 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1838 See \`config.log' for more details." >&2;}
1839 { (exit 1); exit 1; }; }
1842 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1844 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1845 echo "${ECHO_T}$ac_cv_objext" >&6
1846 OBJEXT=$ac_cv_objext
1847 ac_objext=$OBJEXT
1848 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1849 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1850 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 cat >conftest.$ac_ext <<_ACEOF
1854 /* confdefs.h. */
1855 _ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1861 main ()
1863 #ifndef __GNUC__
1864 choke me
1865 #endif
1868 return 0;
1870 _ACEOF
1871 rm -f conftest.$ac_objext
1872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>conftest.er1
1874 ac_status=$?
1875 grep -v '^ *+' conftest.er1 >conftest.err
1876 rm -f conftest.er1
1877 cat conftest.err >&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); } &&
1880 { ac_try='test -z "$ac_c_werror_flag"
1881 || test ! -s conftest.err'
1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883 (eval $ac_try) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; } &&
1887 { ac_try='test -s conftest.$ac_objext'
1888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 (eval $ac_try) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; }; then
1893 ac_compiler_gnu=yes
1894 else
1895 echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_compiler_gnu=no
1900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1904 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1905 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1906 GCC=`test $ac_compiler_gnu = yes && echo yes`
1907 ac_test_CFLAGS=${CFLAGS+set}
1908 ac_save_CFLAGS=$CFLAGS
1909 CFLAGS="-g"
1910 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1911 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1912 if test "${ac_cv_prog_cc_g+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 cat >conftest.$ac_ext <<_ACEOF
1916 /* confdefs.h. */
1917 _ACEOF
1918 cat confdefs.h >>conftest.$ac_ext
1919 cat >>conftest.$ac_ext <<_ACEOF
1920 /* end confdefs.h. */
1923 main ()
1927 return 0;
1929 _ACEOF
1930 rm -f conftest.$ac_objext
1931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>conftest.er1
1933 ac_status=$?
1934 grep -v '^ *+' conftest.er1 >conftest.err
1935 rm -f conftest.er1
1936 cat conftest.err >&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); } &&
1939 { ac_try='test -z "$ac_c_werror_flag"
1940 || test ! -s conftest.err'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 (eval $ac_try) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1952 ac_cv_prog_cc_g=yes
1953 else
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_cv_prog_cc_g=no
1959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1962 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1963 if test "$ac_test_CFLAGS" = set; then
1964 CFLAGS=$ac_save_CFLAGS
1965 elif test $ac_cv_prog_cc_g = yes; then
1966 if test "$GCC" = yes; then
1967 CFLAGS="-g -O2"
1968 else
1969 CFLAGS="-g"
1971 else
1972 if test "$GCC" = yes; then
1973 CFLAGS="-O2"
1974 else
1975 CFLAGS=
1978 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1979 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1980 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 ac_cv_prog_cc_stdc=no
1984 ac_save_CC=$CC
1985 cat >conftest.$ac_ext <<_ACEOF
1986 /* confdefs.h. */
1987 _ACEOF
1988 cat confdefs.h >>conftest.$ac_ext
1989 cat >>conftest.$ac_ext <<_ACEOF
1990 /* end confdefs.h. */
1991 #include <stdarg.h>
1992 #include <stdio.h>
1993 #include <sys/types.h>
1994 #include <sys/stat.h>
1995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1996 struct buf { int x; };
1997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1998 static char *e (p, i)
1999 char **p;
2000 int i;
2002 return p[i];
2004 static char *f (char * (*g) (char **, int), char **p, ...)
2006 char *s;
2007 va_list v;
2008 va_start (v,p);
2009 s = g (p, va_arg (v,int));
2010 va_end (v);
2011 return s;
2014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2015 function prototypes and stuff, but not '\xHH' hex character constants.
2016 These don't provoke an error unfortunately, instead are silently treated
2017 as 'x'. The following induces an error, until -std1 is added to get
2018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2019 array size at least. It's necessary to write '\x00'==0 to get something
2020 that's true only with -std1. */
2021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2023 int test (int i, double x);
2024 struct s1 {int (*f) (int a);};
2025 struct s2 {int (*f) (double a);};
2026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2027 int argc;
2028 char **argv;
2030 main ()
2032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2034 return 0;
2036 _ACEOF
2037 # Don't try gcc -ansi; that turns off useful extensions and
2038 # breaks some systems' header files.
2039 # AIX -qlanglvl=ansi
2040 # Ultrix and OSF/1 -std1
2041 # HP-UX 10.20 and later -Ae
2042 # HP-UX older versions -Aa -D_HPUX_SOURCE
2043 # SVR4 -Xc -D__EXTENSIONS__
2044 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2046 CC="$ac_save_CC $ac_arg"
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_stdc=$ac_arg
2070 break
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2076 rm -f conftest.err conftest.$ac_objext
2077 done
2078 rm -f conftest.$ac_ext conftest.$ac_objext
2079 CC=$ac_save_CC
2083 case "x$ac_cv_prog_cc_stdc" in
2084 x|xno)
2085 echo "$as_me:$LINENO: result: none needed" >&5
2086 echo "${ECHO_T}none needed" >&6 ;;
2088 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2089 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2090 CC="$CC $ac_cv_prog_cc_stdc" ;;
2091 esac
2093 # Some people use a C++ compiler to compile C. Since we use `exit',
2094 # in C++ we need to declare it. In case someone uses the same compiler
2095 # for both compiling C and C++ we need to have the C++ compiler decide
2096 # the declaration of exit, since it's the most demanding environment.
2097 cat >conftest.$ac_ext <<_ACEOF
2098 #ifndef __cplusplus
2099 choke me
2100 #endif
2101 _ACEOF
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2105 ac_status=$?
2106 grep -v '^ *+' conftest.er1 >conftest.err
2107 rm -f conftest.er1
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try='test -z "$ac_c_werror_flag"
2112 || test ! -s conftest.err'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; } &&
2118 { ac_try='test -s conftest.$ac_objext'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 for ac_declaration in \
2125 '' \
2126 'extern "C" void std::exit (int) throw (); using std::exit;' \
2127 'extern "C" void std::exit (int); using std::exit;' \
2128 'extern "C" void exit (int) throw ();' \
2129 'extern "C" void exit (int);' \
2130 'void exit (int);'
2132 cat >conftest.$ac_ext <<_ACEOF
2133 /* confdefs.h. */
2134 _ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2138 $ac_declaration
2139 #include <stdlib.h>
2141 main ()
2143 exit (42);
2145 return 0;
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2151 ac_status=$?
2152 grep -v '^ *+' conftest.er1 >conftest.err
2153 rm -f conftest.er1
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2171 else
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2175 continue
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 cat >conftest.$ac_ext <<_ACEOF
2179 /* confdefs.h. */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2184 $ac_declaration
2186 main ()
2188 exit (42);
2190 return 0;
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 break
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2222 done
2223 rm -f conftest*
2224 if test -n "$ac_declaration"; then
2225 echo '#ifdef __cplusplus' >>confdefs.h
2226 echo $ac_declaration >>confdefs.h
2227 echo '#endif' >>confdefs.h
2230 else
2231 echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 ac_ext=c
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242 ac_ext=cc
2243 ac_cpp='$CXXCPP $CPPFLAGS'
2244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2247 if test -n "$ac_tool_prefix"; then
2248 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_CXX+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$CXX"; then
2258 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2276 CXX=$ac_cv_prog_CXX
2277 if test -n "$CXX"; then
2278 echo "$as_me:$LINENO: result: $CXX" >&5
2279 echo "${ECHO_T}$CXX" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2285 test -n "$CXX" && break
2286 done
2288 if test -z "$CXX"; then
2289 ac_ct_CXX=$CXX
2290 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$ac_ct_CXX"; then
2300 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_ac_ct_CXX="$ac_prog"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2313 done
2314 done
2318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2319 if test -n "$ac_ct_CXX"; then
2320 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2321 echo "${ECHO_T}$ac_ct_CXX" >&6
2322 else
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2327 test -n "$ac_ct_CXX" && break
2328 done
2329 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2331 CXX=$ac_ct_CXX
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO:" \
2337 "checking for C++ compiler version" >&5
2338 ac_compiler=`set X $ac_compile; echo $2`
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2340 (eval $ac_compiler --version </dev/null >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2345 (eval $ac_compiler -v </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2350 (eval $ac_compiler -V </dev/null >&5) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2357 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h. */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2368 main ()
2370 #ifndef __GNUC__
2371 choke me
2372 #endif
2375 return 0;
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_cxx_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_compiler_gnu=yes
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_compiler_gnu=no
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2411 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2412 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2413 GXX=`test $ac_compiler_gnu = yes && echo yes`
2414 ac_test_CXXFLAGS=${CXXFLAGS+set}
2415 ac_save_CXXFLAGS=$CXXFLAGS
2416 CXXFLAGS="-g"
2417 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2418 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cxx_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2430 main ()
2434 return 0;
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_cxx_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 ac_cv_prog_cxx_g=yes
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 ac_cv_prog_cxx_g=no
2466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2470 if test "$ac_test_CXXFLAGS" = set; then
2471 CXXFLAGS=$ac_save_CXXFLAGS
2472 elif test $ac_cv_prog_cxx_g = yes; then
2473 if test "$GXX" = yes; then
2474 CXXFLAGS="-g -O2"
2475 else
2476 CXXFLAGS="-g"
2478 else
2479 if test "$GXX" = yes; then
2480 CXXFLAGS="-O2"
2481 else
2482 CXXFLAGS=
2485 for ac_declaration in \
2486 '' \
2487 'extern "C" void std::exit (int) throw (); using std::exit;' \
2488 'extern "C" void std::exit (int); using std::exit;' \
2489 'extern "C" void exit (int) throw ();' \
2490 'extern "C" void exit (int);' \
2491 'void exit (int);'
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h. */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2499 $ac_declaration
2500 #include <stdlib.h>
2502 main ()
2504 exit (42);
2506 return 0;
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_cxx_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 continue
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h. */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2545 $ac_declaration
2547 main ()
2549 exit (42);
2551 return 0;
2553 _ACEOF
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_cxx_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 break
2577 else
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 done
2584 rm -f conftest*
2585 if test -n "$ac_declaration"; then
2586 echo '#ifdef __cplusplus' >>confdefs.h
2587 echo $ac_declaration >>confdefs.h
2588 echo '#endif' >>confdefs.h
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 REQUIRED_PWLIB_MAJOR=1
2599 REQUIRED_PWLIB_MINOR=11
2600 REQUIRED_PWLIB_BUILD=0
2603 OPALDIR=`pwd`
2606 if test "x$prefix" = "xNONE"; then
2607 INSTALLPREFIX="/usr/local"
2608 else
2609 INSTALLPREFIX="${prefix}"
2614 LIBDIR="${libdir}"
2620 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2621 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2622 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2623 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2624 cat >>confdefs.h <<_ACEOF
2625 #define OPAL_MAJOR ${MAJOR_VERSION}
2626 _ACEOF
2628 cat >>confdefs.h <<_ACEOF
2629 #define OPAL_MINOR ${MINOR_VERSION}
2630 _ACEOF
2632 cat >>confdefs.h <<_ACEOF
2633 #define OPAL_BUILD ${BUILD_NUMBER}
2634 _ACEOF
2636 cat >>confdefs.h <<_ACEOF
2637 #define OPAL_VERSION "$OPAL_VERSION"
2638 _ACEOF
2643 if test "${PWLIBDIR:-unset}" != "unset" ; then
2644 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2645 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2646 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2647 if eval "test \"\${$as_ac_File+set}\" = set"; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 test "$cross_compiling" = yes &&
2651 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2652 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2653 { (exit 1); exit 1; }; }
2654 if test -r "${PWLIBDIR}/version.h"; then
2655 eval "$as_ac_File=yes"
2656 else
2657 eval "$as_ac_File=no"
2660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2661 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2662 if test `eval echo '${'$as_ac_File'}'` = yes; then
2663 HAS_PTLIB=1
2667 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2668 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2669 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2670 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2671 if eval "test \"\${$as_ac_File+set}\" = set"; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 test "$cross_compiling" = yes &&
2675 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2676 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2677 { (exit 1); exit 1; }; }
2678 if test -r "${OPALDIR}/../pwlib/version.h"; then
2679 eval "$as_ac_File=yes"
2680 else
2681 eval "$as_ac_File=no"
2684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2685 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2686 if test `eval echo '${'$as_ac_File'}'` = yes; then
2687 HAS_PTLIB=1
2690 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2691 PWLIBDIR="${OPALDIR}/../pwlib"
2692 else
2693 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2694 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2695 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2696 if eval "test \"\${$as_ac_File+set}\" = set"; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 test "$cross_compiling" = yes &&
2700 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2701 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2702 { (exit 1); exit 1; }; }
2703 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2704 eval "$as_ac_File=yes"
2705 else
2706 eval "$as_ac_File=no"
2709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2710 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2711 if test `eval echo '${'$as_ac_File'}'` = yes; then
2712 HAS_PTLIB=1
2715 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2716 PWLIBDIR="${HOME}/pwlib"
2717 else
2718 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2719 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2720 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 test "$cross_compiling" = yes &&
2724 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2725 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2726 { (exit 1); exit 1; }; }
2727 if test -r "/usr/local/include/ptlib.h"; then
2728 ac_cv_file__usr_local_include_ptlib_h=yes
2729 else
2730 ac_cv_file__usr_local_include_ptlib_h=no
2733 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2734 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2735 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2736 HAS_PTLIB=1
2739 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2740 # Extract the first word of "ptlib-config", so it can be a program name with args.
2741 set dummy ptlib-config; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 case $PTLIB_CONFIG in
2748 [\\/]* | ?:[\\/]*)
2749 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in /usr/local/bin
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2767 esac
2769 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2771 if test -n "$PTLIB_CONFIG"; then
2772 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2773 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2774 else
2775 echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6
2779 else
2780 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2781 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2782 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 test "$cross_compiling" = yes &&
2786 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2787 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2788 { (exit 1); exit 1; }; }
2789 if test -r "/usr/include/ptlib.h"; then
2790 ac_cv_file__usr_include_ptlib_h=yes
2791 else
2792 ac_cv_file__usr_include_ptlib_h=no
2795 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2796 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2797 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2798 HAS_PTLIB=1
2801 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2802 # Extract the first word of "ptlib-config", so it can be a program name with args.
2803 set dummy ptlib-config; ac_word=$2
2804 echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 case $PTLIB_CONFIG in
2810 [\\/]* | ?:[\\/]*)
2811 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in /usr/share/pwlib/make/
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2829 esac
2831 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2833 if test -n "$PTLIB_CONFIG"; then
2834 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2835 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2836 else
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2847 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2848 echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
2849 exit
2852 if test "${PWLIBDIR:-unset}" = "unset" ; then
2853 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2854 echo "Cannot find ptlib-config - please install and try again"
2855 exit
2857 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2860 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2861 PWLIBDIR="/usr/share/pwlib/"
2863 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2864 PWLIBDIR="/usr/local/share/pwlib/"
2868 echo "PWLib prefix set to.... $PWLIBDIR"
2870 if test "${PWLIBDIR:-unset}" = "unset" ; then
2871 PWVERSION=`$PTLIB_CONFIG --version`
2872 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2873 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2874 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2876 else
2877 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2878 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2879 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2880 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2883 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2884 if test "${enable_versioncheck+set}" = set; then
2885 enableval="$enable_versioncheck"
2886 PWLIB_VERSION_CHECK=$enableval
2889 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2890 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2891 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2892 echo "$as_me:$LINENO: result: check disabled" >&5
2893 echo "${ECHO_T}check disabled" >&6
2894 else
2895 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2896 echo "$as_me:$LINENO: result: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2897 echo "${ECHO_T}Major version less than required $REQUIRED_PWLIB_MAJOR" >&6
2898 exit 1
2900 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2901 echo "$as_me:$LINENO: result: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2902 echo "${ECHO_T}Minor version less than required $REQUIRED_PWLIB_MINOR" >&6
2903 exit 1
2905 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2906 echo "$as_me:$LINENO: result: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2907 echo "${ECHO_T}Build version less than required $REQUIRED_PWLIB_BUILD" >&6
2908 exit 1
2910 echo "$as_me:$LINENO: result: ok" >&5
2911 echo "${ECHO_T}ok" >&6
2917 if test x$GXX = xyes ; then
2918 USE_GCC=yes
2919 gcc_version=`$CXX -dumpversion`
2920 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2921 echo "$as_me: gcc version is $gcc_version" >&6;};
2922 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
2923 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
2924 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
2926 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
2927 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
2928 if test ${GXX_MAJOR} -lt 3 ; then
2929 echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6
2931 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
2932 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
2933 { (exit 1); exit 1; }; }
2934 else
2935 echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6
2941 localspeex="xxx"
2942 # Check whether --enable-localspeex or --disable-localspeex was given.
2943 if test "${enable_localspeex+set}" = set; then
2944 enableval="$enable_localspeex"
2945 localspeex=$enableval
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2956 # On Suns, sometimes $CPP names a directory.
2957 if test -n "$CPP" && test -d "$CPP"; then
2958 CPP=
2960 if test -z "$CPP"; then
2961 if test "${ac_cv_prog_CPP+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 # Double quotes because CPP needs to be expanded
2965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2967 ac_preproc_ok=false
2968 for ac_c_preproc_warn_flag in '' yes
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973 # <limits.h> exists even on freestanding compilers.
2974 # On the NeXT, cc -E runs the code through the compiler's parser,
2975 # not just through cpp. "Syntax error" is here to catch this case.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982 #ifdef __STDC__
2983 # include <limits.h>
2984 #else
2985 # include <assert.h>
2986 #endif
2987 Syntax error
2988 _ACEOF
2989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null; then
2997 if test -s conftest.err; then
2998 ac_cpp_err=$ac_c_preproc_warn_flag
2999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000 else
3001 ac_cpp_err=
3003 else
3004 ac_cpp_err=yes
3006 if test -z "$ac_cpp_err"; then
3008 else
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 # Broken: fails on valid input.
3013 continue
3015 rm -f conftest.err conftest.$ac_ext
3017 # OK, works on sane cases. Now check whether non-existent headers
3018 # can be detected and how.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #include <ac_nonexistent.h>
3026 _ACEOF
3027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null; then
3035 if test -s conftest.err; then
3036 ac_cpp_err=$ac_c_preproc_warn_flag
3037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3038 else
3039 ac_cpp_err=
3041 else
3042 ac_cpp_err=yes
3044 if test -z "$ac_cpp_err"; then
3045 # Broken: success on invalid input.
3046 continue
3047 else
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Passes both tests.
3052 ac_preproc_ok=:
3053 break
3055 rm -f conftest.err conftest.$ac_ext
3057 done
3058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059 rm -f conftest.err conftest.$ac_ext
3060 if $ac_preproc_ok; then
3061 break
3064 done
3065 ac_cv_prog_CPP=$CPP
3068 CPP=$ac_cv_prog_CPP
3069 else
3070 ac_cv_prog_CPP=$CPP
3072 echo "$as_me:$LINENO: result: $CPP" >&5
3073 echo "${ECHO_T}$CPP" >&6
3074 ac_preproc_ok=false
3075 for ac_c_preproc_warn_flag in '' yes
3077 # Use a header file that comes with gcc, so configuring glibc
3078 # with a fresh cross-compiler works.
3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080 # <limits.h> exists even on freestanding compilers.
3081 # On the NeXT, cc -E runs the code through the compiler's parser,
3082 # not just through cpp. "Syntax error" is here to catch this case.
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3089 #ifdef __STDC__
3090 # include <limits.h>
3091 #else
3092 # include <assert.h>
3093 #endif
3094 Syntax error
3095 _ACEOF
3096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null; then
3104 if test -s conftest.err; then
3105 ac_cpp_err=$ac_c_preproc_warn_flag
3106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 else
3108 ac_cpp_err=
3110 else
3111 ac_cpp_err=yes
3113 if test -z "$ac_cpp_err"; then
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 # Broken: fails on valid input.
3120 continue
3122 rm -f conftest.err conftest.$ac_ext
3124 # OK, works on sane cases. Now check whether non-existent headers
3125 # can be detected and how.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 #include <ac_nonexistent.h>
3133 _ACEOF
3134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null; then
3142 if test -s conftest.err; then
3143 ac_cpp_err=$ac_c_preproc_warn_flag
3144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3145 else
3146 ac_cpp_err=
3148 else
3149 ac_cpp_err=yes
3151 if test -z "$ac_cpp_err"; then
3152 # Broken: success on invalid input.
3153 continue
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 # Passes both tests.
3159 ac_preproc_ok=:
3160 break
3162 rm -f conftest.err conftest.$ac_ext
3164 done
3165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3166 rm -f conftest.err conftest.$ac_ext
3167 if $ac_preproc_ok; then
3169 else
3170 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3173 See \`config.log' for more details." >&2;}
3174 { (exit 1); exit 1; }; }
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 echo "$as_me:$LINENO: checking for egrep" >&5
3185 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3186 if test "${ac_cv_prog_egrep+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3190 then ac_cv_prog_egrep='grep -E'
3191 else ac_cv_prog_egrep='egrep'
3194 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3195 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3196 EGREP=$ac_cv_prog_egrep
3199 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3200 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3201 if test "${ac_cv_header_stdc+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210 #include <stdlib.h>
3211 #include <stdarg.h>
3212 #include <string.h>
3213 #include <float.h>
3216 main ()
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_c_werror_flag"
3233 || test ! -s conftest.err'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 ac_cv_header_stdc=yes
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 ac_cv_header_stdc=no
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254 if test $ac_cv_header_stdc = yes; then
3255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <string.h>
3264 _ACEOF
3265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3266 $EGREP "memchr" >/dev/null 2>&1; then
3268 else
3269 ac_cv_header_stdc=no
3271 rm -f conftest*
3275 if test $ac_cv_header_stdc = yes; then
3276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 #include <stdlib.h>
3285 _ACEOF
3286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3287 $EGREP "free" >/dev/null 2>&1; then
3289 else
3290 ac_cv_header_stdc=no
3292 rm -f conftest*
3296 if test $ac_cv_header_stdc = yes; then
3297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3298 if test "$cross_compiling" = yes; then
3300 else
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307 #include <ctype.h>
3308 #if ((' ' & 0x0FF) == 0x020)
3309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3311 #else
3312 # define ISLOWER(c) \
3313 (('a' <= (c) && (c) <= 'i') \
3314 || ('j' <= (c) && (c) <= 'r') \
3315 || ('s' <= (c) && (c) <= 'z'))
3316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3317 #endif
3319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3321 main ()
3323 int i;
3324 for (i = 0; i < 256; i++)
3325 if (XOR (islower (i), ISLOWER (i))
3326 || toupper (i) != TOUPPER (i))
3327 exit(2);
3328 exit (0);
3330 _ACEOF
3331 rm -f conftest$ac_exeext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3333 (eval $ac_link) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3343 else
3344 echo "$as_me: program exited with status $ac_status" >&5
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 ( exit $ac_status )
3349 ac_cv_header_stdc=no
3351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3357 if test $ac_cv_header_stdc = yes; then
3359 cat >>confdefs.h <<\_ACEOF
3360 #define STDC_HEADERS 1
3361 _ACEOF
3365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3375 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3376 inttypes.h stdint.h unistd.h
3378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3379 echo "$as_me:$LINENO: checking for $ac_header" >&5
3380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 $ac_includes_default
3392 #include <$ac_header>
3393 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_c_werror_flag"
3404 || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 eval "$as_ac_Header=yes"
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 eval "$as_ac_Header=no"
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3428 cat >>confdefs.h <<_ACEOF
3429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3430 _ACEOF
3434 done
3437 echo "$as_me:$LINENO: checking for short" >&5
3438 echo $ECHO_N "checking for short... $ECHO_C" >&6
3439 if test "${ac_cv_type_short+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3450 main ()
3452 if ((short *) 0)
3453 return 0;
3454 if (sizeof (short))
3455 return 0;
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -z "$ac_c_werror_flag"
3470 || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest.$ac_objext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_cv_type_short=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_cv_type_short=no
3489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3492 echo "${ECHO_T}$ac_cv_type_short" >&6
3494 echo "$as_me:$LINENO: checking size of short" >&5
3495 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3496 if test "${ac_cv_sizeof_short+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 if test "$ac_cv_type_short" = yes; then
3500 # The cast to unsigned long works around a bug in the HP C Compiler
3501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3503 # This bug is HP SR number 8606223364.
3504 if test "$cross_compiling" = yes; then
3505 # Depending upon the size, compute the lo and hi bounds.
3506 cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h. */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 $ac_includes_default
3514 main ()
3516 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3517 test_array [0] = 0
3520 return 0;
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_lo=0 ac_mid=0
3546 while :; do
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 $ac_includes_default
3555 main ()
3557 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3558 test_array [0] = 0
3561 return 0;
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_hi=$ac_mid; break
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 ac_lo=`expr $ac_mid + 1`
3592 if test $ac_lo -le $ac_mid; then
3593 ac_lo= ac_hi=
3594 break
3596 ac_mid=`expr 2 '*' $ac_mid + 1`
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 done
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 $ac_includes_default
3612 main ()
3614 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3615 test_array [0] = 0
3618 return 0;
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest.$ac_objext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_hi=-1 ac_mid=-1
3644 while :; do
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 $ac_includes_default
3653 main ()
3655 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3656 test_array [0] = 0
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_lo=$ac_mid; break
3685 else
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 ac_hi=`expr '(' $ac_mid ')' - 1`
3690 if test $ac_mid -le $ac_hi; then
3691 ac_lo= ac_hi=
3692 break
3694 ac_mid=`expr 2 '*' $ac_mid`
3696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697 done
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_lo= ac_hi=
3704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707 # Binary search between lo and hi bounds.
3708 while test "x$ac_lo" != "x$ac_hi"; do
3709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 $ac_includes_default
3718 main ()
3720 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3721 test_array [0] = 0
3724 return 0;
3726 _ACEOF
3727 rm -f conftest.$ac_objext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729 (eval $ac_compile) 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag"
3737 || test ! -s conftest.err'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_hi=$ac_mid
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 ac_lo=`expr '(' $ac_mid ')' + 1`
3756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 done
3758 case $ac_lo in
3759 ?*) ac_cv_sizeof_short=$ac_lo;;
3760 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3761 See \`config.log' for more details." >&5
3762 echo "$as_me: error: cannot compute sizeof (short), 77
3763 See \`config.log' for more details." >&2;}
3764 { (exit 1); exit 1; }; } ;;
3765 esac
3766 else
3767 if test "$cross_compiling" = yes; then
3768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: cannot run test program while cross compiling
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }
3773 else
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 $ac_includes_default
3781 long longval () { return (long) (sizeof (short)); }
3782 unsigned long ulongval () { return (long) (sizeof (short)); }
3783 #include <stdio.h>
3784 #include <stdlib.h>
3786 main ()
3789 FILE *f = fopen ("conftest.val", "w");
3790 if (! f)
3791 exit (1);
3792 if (((long) (sizeof (short))) < 0)
3794 long i = longval ();
3795 if (i != ((long) (sizeof (short))))
3796 exit (1);
3797 fprintf (f, "%ld\n", i);
3799 else
3801 unsigned long i = ulongval ();
3802 if (i != ((long) (sizeof (short))))
3803 exit (1);
3804 fprintf (f, "%lu\n", i);
3806 exit (ferror (f) || fclose (f) != 0);
3809 return 0;
3811 _ACEOF
3812 rm -f conftest$ac_exeext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814 (eval $ac_link) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_sizeof_short=`cat conftest.val`
3824 else
3825 echo "$as_me: program exited with status $ac_status" >&5
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 ( exit $ac_status )
3830 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3831 See \`config.log' for more details." >&5
3832 echo "$as_me: error: cannot compute sizeof (short), 77
3833 See \`config.log' for more details." >&2;}
3834 { (exit 1); exit 1; }; }
3836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3839 rm -f conftest.val
3840 else
3841 ac_cv_sizeof_short=0
3844 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3845 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3846 cat >>confdefs.h <<_ACEOF
3847 #define SIZEOF_SHORT $ac_cv_sizeof_short
3848 _ACEOF
3851 echo "$as_me:$LINENO: checking for int" >&5
3852 echo $ECHO_N "checking for int... $ECHO_C" >&6
3853 if test "${ac_cv_type_int+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862 $ac_includes_default
3864 main ()
3866 if ((int *) 0)
3867 return 0;
3868 if (sizeof (int))
3869 return 0;
3871 return 0;
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try='test -z "$ac_c_werror_flag"
3884 || test ! -s conftest.err'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 (eval $ac_try) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_type_int=yes
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_cv_type_int=no
3903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3906 echo "${ECHO_T}$ac_cv_type_int" >&6
3908 echo "$as_me:$LINENO: checking size of int" >&5
3909 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3910 if test "${ac_cv_sizeof_int+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 if test "$ac_cv_type_int" = yes; then
3914 # The cast to unsigned long works around a bug in the HP C Compiler
3915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3917 # This bug is HP SR number 8606223364.
3918 if test "$cross_compiling" = yes; then
3919 # Depending upon the size, compute the lo and hi bounds.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 $ac_includes_default
3928 main ()
3930 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3931 test_array [0] = 0
3934 return 0;
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -z "$ac_c_werror_flag"
3947 || test ! -s conftest.err'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; } &&
3953 { ac_try='test -s conftest.$ac_objext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 (eval $ac_try) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_lo=0 ac_mid=0
3960 while :; do
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 $ac_includes_default
3969 main ()
3971 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3972 test_array [0] = 0
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_hi=$ac_mid; break
4001 else
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 ac_lo=`expr $ac_mid + 1`
4006 if test $ac_lo -le $ac_mid; then
4007 ac_lo= ac_hi=
4008 break
4010 ac_mid=`expr 2 '*' $ac_mid + 1`
4012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4013 done
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 main ()
4028 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4029 test_array [0] = 0
4032 return 0;
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_c_werror_flag"
4045 || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_hi=-1 ac_mid=-1
4058 while :; do
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4067 main ()
4069 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4070 test_array [0] = 0
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag"
4086 || test ! -s conftest.err'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_lo=$ac_mid; break
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_hi=`expr '(' $ac_mid ')' - 1`
4104 if test $ac_mid -le $ac_hi; then
4105 ac_lo= ac_hi=
4106 break
4108 ac_mid=`expr 2 '*' $ac_mid`
4110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 done
4112 else
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_lo= ac_hi=
4118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4121 # Binary search between lo and hi bounds.
4122 while test "x$ac_lo" != "x$ac_hi"; do
4123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 $ac_includes_default
4132 main ()
4134 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4135 test_array [0] = 0
4138 return 0;
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4143 (eval $ac_compile) 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag"
4151 || test ! -s conftest.err'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_hi=$ac_mid
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 ac_lo=`expr '(' $ac_mid ')' + 1`
4170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171 done
4172 case $ac_lo in
4173 ?*) ac_cv_sizeof_int=$ac_lo;;
4174 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4175 See \`config.log' for more details." >&5
4176 echo "$as_me: error: cannot compute sizeof (int), 77
4177 See \`config.log' for more details." >&2;}
4178 { (exit 1); exit 1; }; } ;;
4179 esac
4180 else
4181 if test "$cross_compiling" = yes; then
4182 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4183 See \`config.log' for more details." >&5
4184 echo "$as_me: error: cannot run test program while cross compiling
4185 See \`config.log' for more details." >&2;}
4186 { (exit 1); exit 1; }; }
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4195 long longval () { return (long) (sizeof (int)); }
4196 unsigned long ulongval () { return (long) (sizeof (int)); }
4197 #include <stdio.h>
4198 #include <stdlib.h>
4200 main ()
4203 FILE *f = fopen ("conftest.val", "w");
4204 if (! f)
4205 exit (1);
4206 if (((long) (sizeof (int))) < 0)
4208 long i = longval ();
4209 if (i != ((long) (sizeof (int))))
4210 exit (1);
4211 fprintf (f, "%ld\n", i);
4213 else
4215 unsigned long i = ulongval ();
4216 if (i != ((long) (sizeof (int))))
4217 exit (1);
4218 fprintf (f, "%lu\n", i);
4220 exit (ferror (f) || fclose (f) != 0);
4223 return 0;
4225 _ACEOF
4226 rm -f conftest$ac_exeext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4228 (eval $ac_link) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_cv_sizeof_int=`cat conftest.val`
4238 else
4239 echo "$as_me: program exited with status $ac_status" >&5
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 ( exit $ac_status )
4244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4245 See \`config.log' for more details." >&5
4246 echo "$as_me: error: cannot compute sizeof (int), 77
4247 See \`config.log' for more details." >&2;}
4248 { (exit 1); exit 1; }; }
4250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4253 rm -f conftest.val
4254 else
4255 ac_cv_sizeof_int=0
4258 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4259 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4260 cat >>confdefs.h <<_ACEOF
4261 #define SIZEOF_INT $ac_cv_sizeof_int
4262 _ACEOF
4265 echo "$as_me:$LINENO: checking for long" >&5
4266 echo $ECHO_N "checking for long... $ECHO_C" >&6
4267 if test "${ac_cv_type_long+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4278 main ()
4280 if ((long *) 0)
4281 return 0;
4282 if (sizeof (long))
4283 return 0;
4285 return 0;
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_cv_type_long=yes
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_type_long=no
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4320 echo "${ECHO_T}$ac_cv_type_long" >&6
4322 echo "$as_me:$LINENO: checking size of long" >&5
4323 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4324 if test "${ac_cv_sizeof_long+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test "$ac_cv_type_long" = yes; then
4328 # The cast to unsigned long works around a bug in the HP C Compiler
4329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4331 # This bug is HP SR number 8606223364.
4332 if test "$cross_compiling" = yes; then
4333 # Depending upon the size, compute the lo and hi bounds.
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4342 main ()
4344 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4345 test_array [0] = 0
4348 return 0;
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -z "$ac_c_werror_flag"
4361 || test ! -s conftest.err'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 ac_lo=0 ac_mid=0
4374 while :; do
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4383 main ()
4385 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4386 test_array [0] = 0
4389 return 0;
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_hi=$ac_mid; break
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_lo=`expr $ac_mid + 1`
4420 if test $ac_lo -le $ac_mid; then
4421 ac_lo= ac_hi=
4422 break
4424 ac_mid=`expr 2 '*' $ac_mid + 1`
4426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4427 done
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4440 main ()
4442 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4443 test_array [0] = 0
4446 return 0;
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_hi=-1 ac_mid=-1
4472 while :; do
4473 cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h. */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 $ac_includes_default
4481 main ()
4483 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4484 test_array [0] = 0
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_lo=$ac_mid; break
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_hi=`expr '(' $ac_mid ')' - 1`
4518 if test $ac_mid -le $ac_hi; then
4519 ac_lo= ac_hi=
4520 break
4522 ac_mid=`expr 2 '*' $ac_mid`
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525 done
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 ac_lo= ac_hi=
4532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535 # Binary search between lo and hi bounds.
4536 while test "x$ac_lo" != "x$ac_hi"; do
4537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4538 cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h. */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4546 main ()
4548 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4549 test_array [0] = 0
4552 return 0;
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_hi=$ac_mid
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 ac_lo=`expr '(' $ac_mid ')' + 1`
4584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 done
4586 case $ac_lo in
4587 ?*) ac_cv_sizeof_long=$ac_lo;;
4588 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4589 See \`config.log' for more details." >&5
4590 echo "$as_me: error: cannot compute sizeof (long), 77
4591 See \`config.log' for more details." >&2;}
4592 { (exit 1); exit 1; }; } ;;
4593 esac
4594 else
4595 if test "$cross_compiling" = yes; then
4596 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: cannot run test program while cross compiling
4599 See \`config.log' for more details." >&2;}
4600 { (exit 1); exit 1; }; }
4601 else
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 $ac_includes_default
4609 long longval () { return (long) (sizeof (long)); }
4610 unsigned long ulongval () { return (long) (sizeof (long)); }
4611 #include <stdio.h>
4612 #include <stdlib.h>
4614 main ()
4617 FILE *f = fopen ("conftest.val", "w");
4618 if (! f)
4619 exit (1);
4620 if (((long) (sizeof (long))) < 0)
4622 long i = longval ();
4623 if (i != ((long) (sizeof (long))))
4624 exit (1);
4625 fprintf (f, "%ld\n", i);
4627 else
4629 unsigned long i = ulongval ();
4630 if (i != ((long) (sizeof (long))))
4631 exit (1);
4632 fprintf (f, "%lu\n", i);
4634 exit (ferror (f) || fclose (f) != 0);
4637 return 0;
4639 _ACEOF
4640 rm -f conftest$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_sizeof_long=`cat conftest.val`
4652 else
4653 echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ( exit $ac_status )
4658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4659 See \`config.log' for more details." >&5
4660 echo "$as_me: error: cannot compute sizeof (long), 77
4661 See \`config.log' for more details." >&2;}
4662 { (exit 1); exit 1; }; }
4664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4667 rm -f conftest.val
4668 else
4669 ac_cv_sizeof_long=0
4672 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4673 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4674 cat >>confdefs.h <<_ACEOF
4675 #define SIZEOF_LONG $ac_cv_sizeof_long
4676 _ACEOF
4679 echo "$as_me:$LINENO: checking for long long" >&5
4680 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4681 if test "${ac_cv_type_long_long+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_includes_default
4692 main ()
4694 if ((long long *) 0)
4695 return 0;
4696 if (sizeof (long long))
4697 return 0;
4699 return 0;
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag"
4712 || test ! -s conftest.err'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_type_long_long=yes
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_cv_type_long_long=no
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4734 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4736 echo "$as_me:$LINENO: checking size of long long" >&5
4737 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4738 if test "${ac_cv_sizeof_long_long+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 if test "$ac_cv_type_long_long" = yes; then
4742 # The cast to unsigned long works around a bug in the HP C Compiler
4743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4745 # This bug is HP SR number 8606223364.
4746 if test "$cross_compiling" = yes; then
4747 # Depending upon the size, compute the lo and hi bounds.
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 $ac_includes_default
4756 main ()
4758 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4759 test_array [0] = 0
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_lo=0 ac_mid=0
4788 while :; do
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 $ac_includes_default
4797 main ()
4799 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4800 test_array [0] = 0
4803 return 0;
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -z "$ac_c_werror_flag"
4816 || test ! -s conftest.err'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_hi=$ac_mid; break
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_lo=`expr $ac_mid + 1`
4834 if test $ac_lo -le $ac_mid; then
4835 ac_lo= ac_hi=
4836 break
4838 ac_mid=`expr 2 '*' $ac_mid + 1`
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 done
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4854 main ()
4856 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4857 test_array [0] = 0
4860 return 0;
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>conftest.er1
4866 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try='test -z "$ac_c_werror_flag"
4873 || test ! -s conftest.err'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; } &&
4879 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4885 ac_hi=-1 ac_mid=-1
4886 while :; do
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 $ac_includes_default
4895 main ()
4897 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4898 test_array [0] = 0
4901 return 0;
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_lo=$ac_mid; break
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 ac_hi=`expr '(' $ac_mid ')' - 1`
4932 if test $ac_mid -le $ac_hi; then
4933 ac_lo= ac_hi=
4934 break
4936 ac_mid=`expr 2 '*' $ac_mid`
4938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939 done
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_lo= ac_hi=
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949 # Binary search between lo and hi bounds.
4950 while test "x$ac_lo" != "x$ac_hi"; do
4951 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4960 main ()
4962 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4963 test_array [0] = 0
4966 return 0;
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_hi=$ac_mid
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 ac_lo=`expr '(' $ac_mid ')' + 1`
4998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 done
5000 case $ac_lo in
5001 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5002 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5003 See \`config.log' for more details." >&5
5004 echo "$as_me: error: cannot compute sizeof (long long), 77
5005 See \`config.log' for more details." >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007 esac
5008 else
5009 if test "$cross_compiling" = yes; then
5010 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5011 See \`config.log' for more details." >&5
5012 echo "$as_me: error: cannot run test program while cross compiling
5013 See \`config.log' for more details." >&2;}
5014 { (exit 1); exit 1; }; }
5015 else
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5023 long longval () { return (long) (sizeof (long long)); }
5024 unsigned long ulongval () { return (long) (sizeof (long long)); }
5025 #include <stdio.h>
5026 #include <stdlib.h>
5028 main ()
5031 FILE *f = fopen ("conftest.val", "w");
5032 if (! f)
5033 exit (1);
5034 if (((long) (sizeof (long long))) < 0)
5036 long i = longval ();
5037 if (i != ((long) (sizeof (long long))))
5038 exit (1);
5039 fprintf (f, "%ld\n", i);
5041 else
5043 unsigned long i = ulongval ();
5044 if (i != ((long) (sizeof (long long))))
5045 exit (1);
5046 fprintf (f, "%lu\n", i);
5048 exit (ferror (f) || fclose (f) != 0);
5051 return 0;
5053 _ACEOF
5054 rm -f conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_sizeof_long_long=`cat conftest.val`
5066 else
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ( exit $ac_status )
5072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: cannot compute sizeof (long long), 77
5075 See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; }
5078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 rm -f conftest.val
5082 else
5083 ac_cv_sizeof_long_long=0
5086 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5087 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5088 cat >>confdefs.h <<_ACEOF
5089 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5090 _ACEOF
5094 case 2 in
5095 $ac_cv_sizeof_short) SIZE16="short";;
5096 $ac_cv_sizeof_int) SIZE16="int";;
5097 esac
5099 case 4 in
5100 $ac_cv_sizeof_int) SIZE32="int";;
5101 $ac_cv_sizeof_long) SIZE32="long";;
5102 $ac_cv_sizeof_short) SIZE32="short";;
5103 esac
5108 OPAL_HAVE_SPEEX_H=
5109 OPAL_HAVE_SPEEX_SPEEX_H=
5111 for ac_header in "speex.h"
5113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5115 echo "$as_me:$LINENO: checking for $ac_header" >&5
5116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5122 else
5123 # Is the header compilable?
5124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5133 #include <$ac_header>
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -z "$ac_c_werror_flag"
5145 || test ! -s conftest.err'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; } &&
5151 { ac_try='test -s conftest.$ac_objext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_header_compiler=yes
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5162 ac_header_compiler=no
5164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166 echo "${ECHO_T}$ac_header_compiler" >&6
5168 # Is the header present?
5169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <$ac_header>
5178 _ACEOF
5179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190 else
5191 ac_cpp_err=
5193 else
5194 ac_cpp_err=yes
5196 if test -z "$ac_cpp_err"; then
5197 ac_header_preproc=yes
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 ac_header_preproc=no
5204 rm -f conftest.err conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206 echo "${ECHO_T}$ac_header_preproc" >&6
5208 # So? What about this header?
5209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210 yes:no: )
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215 ac_header_preproc=yes
5217 no:yes:* )
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5231 cat <<\_ASBOX
5232 ## ------------------------------------------ ##
5233 ## Report this to the AC_PACKAGE_NAME lists. ##
5234 ## ------------------------------------------ ##
5235 _ASBOX
5237 sed "s/^/$as_me: WARNING: /" >&2
5239 esac
5240 echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 eval "$as_ac_Header=\$ac_header_preproc"
5247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5252 cat >>confdefs.h <<_ACEOF
5253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5254 _ACEOF
5255 OPAL_HAVE_SPEEX_H=1
5258 done
5260 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5261 cat >>confdefs.h <<\_ACEOF
5262 #define OPAL_HAVE_SPEEX_H 1
5263 _ACEOF
5265 else
5267 for ac_header in "speex/speex.h"
5269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5271 echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5278 else
5279 # Is the header compilable?
5280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5289 #include <$ac_header>
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_header_compiler=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_header_compiler=no
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5322 echo "${ECHO_T}$ac_header_compiler" >&6
5324 # Is the header present?
5325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 #include <$ac_header>
5334 _ACEOF
5335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } >/dev/null; then
5343 if test -s conftest.err; then
5344 ac_cpp_err=$ac_c_preproc_warn_flag
5345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5346 else
5347 ac_cpp_err=
5349 else
5350 ac_cpp_err=yes
5352 if test -z "$ac_cpp_err"; then
5353 ac_header_preproc=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_header_preproc=no
5360 rm -f conftest.err conftest.$ac_ext
5361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5362 echo "${ECHO_T}$ac_header_preproc" >&6
5364 # So? What about this header?
5365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5366 yes:no: )
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5371 ac_header_preproc=yes
5373 no:yes:* )
5374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5387 cat <<\_ASBOX
5388 ## ------------------------------------------ ##
5389 ## Report this to the AC_PACKAGE_NAME lists. ##
5390 ## ------------------------------------------ ##
5391 _ASBOX
5393 sed "s/^/$as_me: WARNING: /" >&2
5395 esac
5396 echo "$as_me:$LINENO: checking for $ac_header" >&5
5397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 eval "$as_ac_Header=\$ac_header_preproc"
5403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5410 _ACEOF
5411 OPAL_HAVE_SPEEX_SPEEX_H=1
5414 done
5416 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5417 cat >>confdefs.h <<\_ACEOF
5418 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5419 _ACEOF
5424 if test "${localspeex}" = "yes" ; then
5425 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5426 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5427 elif test "${localspeex}" = "no" ; then
5428 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5429 echo "$as_me: Forcing use of system Speex library" >&6;}
5430 cat >>confdefs.h <<\_ACEOF
5431 #define OPAL_SYSTEM_SPEEX 1
5432 _ACEOF
5434 OPAL_SYSTEM_SPEEX=1
5436 else
5437 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5438 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5439 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 ac_check_lib_save_LIBS=$LIBS
5443 LIBS="-lspeex $LIBS"
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5451 /* Override any gcc2 internal prototype to avoid an error. */
5452 #ifdef __cplusplus
5453 extern "C"
5454 #endif
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5457 char speex_encoder_destroy ();
5459 main ()
5461 speex_encoder_destroy ();
5463 return 0;
5465 _ACEOF
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5468 (eval $ac_link) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_c_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest$ac_exeext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_cv_lib_speex_speex_encoder_destroy=yes
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_lib_speex_speex_encoder_destroy=no
5495 rm -f conftest.err conftest.$ac_objext \
5496 conftest$ac_exeext conftest.$ac_ext
5497 LIBS=$ac_check_lib_save_LIBS
5499 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5500 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5501 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5502 SPEEX=1
5505 if test "${SPEEX}x" != "x" ; then
5506 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5507 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5508 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 ac_check_lib_save_LIBS=$LIBS
5512 LIBS="-lspeex $LIBS"
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5520 /* Override any gcc2 internal prototype to avoid an error. */
5521 #ifdef __cplusplus
5522 extern "C"
5523 #endif
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526 char speex_encode_int ();
5528 main ()
5530 speex_encode_int ();
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext conftest$ac_exeext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -z "$ac_c_werror_flag"
5545 || test ! -s conftest.err'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_lib_speex_speex_encode_int=yes
5558 else
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_cv_lib_speex_speex_encode_int=no
5564 rm -f conftest.err conftest.$ac_objext \
5565 conftest$ac_exeext conftest.$ac_ext
5566 LIBS=$ac_check_lib_save_LIBS
5568 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5569 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5570 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5571 SPEEX=1
5572 else
5573 unset SPEEX
5577 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5578 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5579 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5580 else
5581 echo "$as_me:$LINENO: checking system Speex version" >&5
5582 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5583 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5584 echo "#include <speex.h>" > t.c
5585 echo "#include <speex_header.h>" >> t.c
5586 else
5587 echo "#include <speex/speex.h>" > t.c
5588 echo "#include <speex/speex_header.h>" >> t.c
5590 cat >> t.c <<C_FILE
5591 #include <stdio.h>
5592 int main(int argc,char *argv)
5594 SpeexHeader header;
5595 speex_init_header(&header, 1, 1, &speex_nb_mode);
5596 printf("%s\n", header.speex_version);
5598 C_FILE
5599 cc -o t t.c -lspeex > /dev/null 2>&1
5600 if test \! -x t ; then
5601 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5602 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5603 else
5604 SYSVER=`./t`
5605 echo "$as_me:$LINENO: result: $SYSVER" >&5
5606 echo "${ECHO_T}$SYSVER" >&6
5607 echo "$as_me:$LINENO: checking library Speex version" >&5
5608 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5609 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5610 echo "$as_me:$LINENO: result: $LIBVER" >&5
5611 echo "${ECHO_T}$LIBVER" >&6
5612 echo "$as_me:$LINENO: checking Speex versions" >&5
5613 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5614 cat > t.pl <<P_FILE
5616 \$sysver = @ARGV[0];
5617 \$libver = @ARGV[1];
5618 @lib = split /\./, \$libver;
5619 while (@lib < 3) {
5620 @lib[0+@lib] = "0";
5622 @sys = split /\./, \$sysver;
5623 while (@sys < 3) {
5624 @sys[0+@sys] = "0";
5626 \$i = 0;
5627 while (\$i < 3) {
5628 if (@sys[\$i] < @lib[\$i]) {
5629 print "0";
5630 die;
5632 \$i++;
5634 print "1";
5636 P_FILE
5637 SPEEX=`perl t.pl $SYSVER $LIBVER`
5638 rm t.pl
5639 if test "x$SPEEX" = "x0" ; then
5640 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5641 echo "${ECHO_T}OPAL version is more recent" >&6
5642 else
5643 echo "$as_me:$LINENO: result: system version is more recent" >&5
5644 echo "${ECHO_T}system version is more recent" >&6
5645 cat >>confdefs.h <<\_ACEOF
5646 #define OPAL_SYSTEM_SPEEX 1
5647 _ACEOF
5649 OPAL_SYSTEM_SPEEX=1
5651 echo "$as_me:$LINENO: checking Speex noise type" >&5
5652 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5653 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5654 echo "#include <speex.h>" > t.c
5655 echo "#include <speex_preprocess.h>" >> t.c
5656 else
5657 echo "#include <speex/speex.h>" > t.c
5658 echo "#include <speex/speex_preprocess.h>" >> t.c
5660 cat >> t.c <<C_FILE
5661 #include <stdio.h>
5662 int main(int argc,char *argv)
5664 struct SpeexPreprocessState *st;
5665 spx_int16_t *x;
5666 float *echo;
5667 speex_preprocess(st, x, echo);
5669 C_FILE
5670 rm -f t
5671 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5672 if test \! -x t ; then
5673 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5674 echo "${ECHO_T}spx_int32_t" >&6
5675 else
5676 echo "$as_me:$LINENO: result: float" >&5
5677 echo "${ECHO_T}float" >&6
5678 cat >>confdefs.h <<\_ACEOF
5679 #define OPAL_SPEEX_FLOAT_NOISE 1
5680 _ACEOF
5685 rm -f t t.c
5692 OPAL_AUDIO=1
5694 cat >>confdefs.h <<\_ACEOF
5695 #define OPAL_AUDIO 1
5696 _ACEOF
5700 OPAL_VIDEO=1
5702 cat >>confdefs.h <<\_ACEOF
5703 #define OPAL_VIDEO 1
5704 _ACEOF
5709 sip=yes
5710 # Check whether --enable-sip or --disable-sip was given.
5711 if test "${enable_sip+set}" = set; then
5712 enableval="$enable_sip"
5713 sip=$enableval
5715 echo "$as_me:$LINENO: checking SIP protocol" >&5
5716 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5717 if test "$sip" = "yes" ; then
5718 OPAL_SIP=1
5720 cat >>confdefs.h <<\_ACEOF
5721 #define OPAL_SIP 1
5722 _ACEOF
5724 echo "$as_me:$LINENO: result: enabled" >&5
5725 echo "${ECHO_T}enabled" >&6
5726 else
5727 echo "$as_me:$LINENO: result: disabled" >&5
5728 echo "${ECHO_T}disabled" >&6
5733 h323=yes
5734 # Check whether --enable-h323 or --disable-h323 was given.
5735 if test "${enable_h323+set}" = set; then
5736 enableval="$enable_h323"
5737 h323=$enableval
5739 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5740 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5741 if test "$h323" = "yes" ; then
5742 OPAL_H323=1
5744 cat >>confdefs.h <<\_ACEOF
5745 #define OPAL_H323 1
5746 _ACEOF
5748 echo "$as_me:$LINENO: result: enabled" >&5
5749 echo "${ECHO_T}enabled" >&6
5750 else
5751 OPAL_H323=0
5753 echo "$as_me:$LINENO: result: disabled (T.38 also disabled)" >&5
5754 echo "${ECHO_T}disabled (T.38 also disabled)" >&6
5755 t38=no
5757 OPAL_H323=$OPAL_H323
5762 iax=yes
5763 # Check whether --enable-iax or --disable-iax was given.
5764 if test "${enable_iax+set}" = set; then
5765 enableval="$enable_iax"
5766 iax=$enableval
5768 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5769 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5770 if test "$iax" = "yes" ; then
5771 OPAL_IAX2=1
5773 cat >>confdefs.h <<\_ACEOF
5774 #define OPAL_IAX2 1
5775 _ACEOF
5777 echo "$as_me:$LINENO: result: enabled" >&5
5778 echo "${ECHO_T}enabled" >&6
5779 else
5780 echo "$as_me:$LINENO: result: disabled" >&5
5781 echo "${ECHO_T}disabled" >&6
5785 h224=yes
5786 # Check whether --enable-h224 or --disable-h224 was given.
5787 if test "${enable_h224+set}" = set; then
5788 enableval="$enable_h224"
5789 h224=$enableval
5791 echo "$as_me:$LINENO: checking H224 protocol" >&5
5792 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5793 if test "$h224" = "yes" ; then
5794 OPAL_H224=1
5796 cat >>confdefs.h <<\_ACEOF
5797 #define OPAL_H224 1
5798 _ACEOF
5800 echo "$as_me:$LINENO: result: enabled" >&5
5801 echo "${ECHO_T}enabled" >&6
5802 else
5803 echo "$as_me:$LINENO: result: disabled" >&5
5804 echo "${ECHO_T}disabled" >&6
5809 t38=yes
5810 if test "$t38" = "yes" ; then
5811 # Check whether --enable-t38 or --disable-t38 was given.
5812 if test "${enable_t38+set}" = set; then
5813 enableval="$enable_t38"
5814 t38=$enableval
5816 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5817 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5818 if test "$t38" = "yes" ; then
5819 OPAL_T38FAX=1
5821 cat >>confdefs.h <<\_ACEOF
5822 #define OPAL_T38FAX 1
5823 _ACEOF
5825 echo "$as_me:$LINENO: result: enabled" >&5
5826 echo "${ECHO_T}enabled" >&6
5827 else
5828 echo "$as_me:$LINENO: result: disabled" >&5
5829 echo "${ECHO_T}disabled" >&6
5836 # Check whether --enable-h460 or --disable-h460 was given.
5837 if test "${enable_h460+set}" = set; then
5838 enableval="$enable_h460"
5841 if test "${enable_h460}x" = "x" ; then
5842 enable_h460=yes
5844 if test "$enable_h460" == "yes" ; then
5845 H323_H460=1
5846 cat >>confdefs.h <<\_ACEOF
5847 #define H323_H460 1
5848 _ACEOF
5850 else
5851 H323_H460=
5852 { echo "$as_me:$LINENO: Disabling H.460" >&5
5853 echo "$as_me: Disabling H.460" >&6;}
5858 HAS_IXJ=
5862 for ac_header in linux/telephony.h sys/telephony.h /usr/local/include/sys/telephony.h
5864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866 echo "$as_me:$LINENO: checking for $ac_header" >&5
5867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5873 else
5874 # Is the header compilable?
5875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 #include <$ac_header>
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag"
5896 || test ! -s conftest.err'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_header_compiler=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_header_compiler=no
5915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5917 echo "${ECHO_T}$ac_header_compiler" >&6
5919 # Is the header present?
5920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <$ac_header>
5929 _ACEOF
5930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null; then
5938 if test -s conftest.err; then
5939 ac_cpp_err=$ac_c_preproc_warn_flag
5940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5941 else
5942 ac_cpp_err=
5944 else
5945 ac_cpp_err=yes
5947 if test -z "$ac_cpp_err"; then
5948 ac_header_preproc=yes
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_preproc=no
5955 rm -f conftest.err conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5957 echo "${ECHO_T}$ac_header_preproc" >&6
5959 # So? What about this header?
5960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5961 yes:no: )
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5966 ac_header_preproc=yes
5968 no:yes:* )
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5982 cat <<\_ASBOX
5983 ## ------------------------------------------ ##
5984 ## Report this to the AC_PACKAGE_NAME lists. ##
5985 ## ------------------------------------------ ##
5986 _ASBOX
5988 sed "s/^/$as_me: WARNING: /" >&2
5990 esac
5991 echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 eval "$as_ac_Header=\$ac_header_preproc"
5998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6003 cat >>confdefs.h <<_ACEOF
6004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6005 _ACEOF
6006 HAS_IXJ=1
6009 done
6011 if test "x$HAS_IXJ" != "x" ; then
6012 echo "$as_me:$LINENO: checking if ixjuser.h actually compiles" >&5
6013 echo $ECHO_N "checking if ixjuser.h actually compiles... $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <linux/ixjuser.h>
6022 main ()
6024 int main(int ac,char **av) { return 0; }
6026 return 0;
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag"
6039 || test ! -s conftest.err'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; } &&
6045 { ac_try='test -s conftest.$ac_objext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 HAS_IXJ=1
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 HAS_IXJ=
6058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059 if test "x$HAS_IXJ" != "x" ; then
6060 echo "$as_me:$LINENO: result: yes" >&5
6061 echo "${ECHO_T}yes" >&6
6062 cat >>confdefs.h <<\_ACEOF
6063 #define HAS_IXJ 1
6064 _ACEOF
6066 HAS_IXJ=1
6067 else
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6077 cat >>confdefs.h <<\_ACEOF
6078 #define OPAL_LID 1
6079 _ACEOF
6081 OPAL_LID=1
6085 vpb=no
6086 # Check whether --enable-vpb or --disable-vpb was given.
6087 if test "${enable_vpb+set}" = set; then
6088 enableval="$enable_vpb"
6089 vpb=$enableval
6091 echo "$as_me:$LINENO: checking Voicetronix vpb" >&5
6092 echo $ECHO_N "checking Voicetronix vpb... $ECHO_C" >&6
6093 if test "$vpb" = "yes" ; then
6094 HAS_VPB=1
6096 cat >>confdefs.h <<\_ACEOF
6097 #define HAS_VPB 1
6098 _ACEOF
6100 echo "$as_me:$LINENO: result: enabled" >&5
6101 echo "${ECHO_T}enabled" >&6
6102 OPAL_LID=1
6104 cat >>confdefs.h <<\_ACEOF
6105 #define OPAL_LID 1
6106 _ACEOF
6108 else
6109 HAS_VPB=0
6111 echo "$as_me:$LINENO: result: disabled" >&5
6112 echo "${ECHO_T}disabled" >&6
6116 OLD_CPPFLAGS=$CPPFLAGS
6117 CPPFLAGS=-D__LINUX__
6119 HAS_SANGOMA=
6121 for ac_header in /usr/local/include/libpri.h
6123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6125 echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6132 else
6133 # Is the header compilable?
6134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6143 #include <$ac_header>
6144 _ACEOF
6145 rm -f conftest.$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147 (eval $ac_compile) 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag"
6155 || test ! -s conftest.err'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_header_compiler=yes
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_compiler=no
6174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6176 echo "${ECHO_T}$ac_header_compiler" >&6
6178 # Is the header present?
6179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <$ac_header>
6188 _ACEOF
6189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null; then
6197 if test -s conftest.err; then
6198 ac_cpp_err=$ac_c_preproc_warn_flag
6199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6200 else
6201 ac_cpp_err=
6203 else
6204 ac_cpp_err=yes
6206 if test -z "$ac_cpp_err"; then
6207 ac_header_preproc=yes
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 ac_header_preproc=no
6214 rm -f conftest.err conftest.$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6216 echo "${ECHO_T}$ac_header_preproc" >&6
6218 # So? What about this header?
6219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6220 yes:no: )
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6225 ac_header_preproc=yes
6227 no:yes:* )
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6241 cat <<\_ASBOX
6242 ## ------------------------------------------ ##
6243 ## Report this to the AC_PACKAGE_NAME lists. ##
6244 ## ------------------------------------------ ##
6245 _ASBOX
6247 sed "s/^/$as_me: WARNING: /" >&2
6249 esac
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 eval "$as_ac_Header=\$ac_header_preproc"
6257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262 cat >>confdefs.h <<_ACEOF
6263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264 _ACEOF
6265 HAS_SANGOMA=1
6268 done
6270 if test "x$HAS_SANGOMA" != "x" ; then
6272 for ac_header in /usr/local/include/libsangoma.h
6274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276 echo "$as_me:$LINENO: checking for $ac_header" >&5
6277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283 else
6284 # Is the header compilable?
6285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 $ac_includes_default
6294 #include <$ac_header>
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_header_compiler=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 ac_header_compiler=no
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327 echo "${ECHO_T}$ac_header_compiler" >&6
6329 # Is the header present?
6330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #include <$ac_header>
6339 _ACEOF
6340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } >/dev/null; then
6348 if test -s conftest.err; then
6349 ac_cpp_err=$ac_c_preproc_warn_flag
6350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6351 else
6352 ac_cpp_err=
6354 else
6355 ac_cpp_err=yes
6357 if test -z "$ac_cpp_err"; then
6358 ac_header_preproc=yes
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 ac_header_preproc=no
6365 rm -f conftest.err conftest.$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6367 echo "${ECHO_T}$ac_header_preproc" >&6
6369 # So? What about this header?
6370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6371 yes:no: )
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6376 ac_header_preproc=yes
6378 no:yes:* )
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6392 cat <<\_ASBOX
6393 ## ------------------------------------------ ##
6394 ## Report this to the AC_PACKAGE_NAME lists. ##
6395 ## ------------------------------------------ ##
6396 _ASBOX
6398 sed "s/^/$as_me: WARNING: /" >&2
6400 esac
6401 echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 eval "$as_ac_Header=\$ac_header_preproc"
6408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415 _ACEOF
6416 HAS_SANGOMA=1
6419 done
6421 if test "x$HAS_SANGOMA" != "x" ; then
6422 echo "$as_me:$LINENO: checking for pri_new_cb in -lpri" >&5
6423 echo $ECHO_N "checking for pri_new_cb in -lpri... $ECHO_C" >&6
6424 if test "${ac_cv_lib_pri_pri_new_cb+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 ac_check_lib_save_LIBS=$LIBS
6428 LIBS="-lpri $LIBS"
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 #ifdef __cplusplus
6438 extern "C"
6439 #endif
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6442 char pri_new_cb ();
6444 main ()
6446 pri_new_cb ();
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext conftest$ac_exeext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453 (eval $ac_link) 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_c_werror_flag"
6461 || test ! -s conftest.err'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; } &&
6467 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6473 ac_cv_lib_pri_pri_new_cb=yes
6474 else
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_lib_pri_pri_new_cb=no
6480 rm -f conftest.err conftest.$ac_objext \
6481 conftest$ac_exeext conftest.$ac_ext
6482 LIBS=$ac_check_lib_save_LIBS
6484 echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_new_cb" >&5
6485 echo "${ECHO_T}$ac_cv_lib_pri_pri_new_cb" >&6
6486 if test $ac_cv_lib_pri_pri_new_cb = yes; then
6487 HAS_SANGOMA=1
6490 if test "x$HAS_SANGOMA" = "x" ; then
6491 { echo "$as_me:$LINENO: *** If the latest libri is installed in /usr/local/lib" >&5
6492 echo "$as_me: *** If the latest libri is installed in /usr/local/lib" >&ensure it is not obscured by an older version in /usr/lib;}
6493 else
6494 echo "$as_me:$LINENO: checking for sangoma_create_socket in -lsangoma" >&5
6495 echo $ECHO_N "checking for sangoma_create_socket in -lsangoma... $ECHO_C" >&6
6496 if test "${ac_cv_lib_sangoma_sangoma_create_socket+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 ac_check_lib_save_LIBS=$LIBS
6500 LIBS="-lsangoma $LIBS"
6501 cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h. */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6514 char sangoma_create_socket ();
6516 main ()
6518 sangoma_create_socket ();
6520 return 0;
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_c_werror_flag"
6533 || test ! -s conftest.err'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest$ac_exeext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 ac_cv_lib_sangoma_sangoma_create_socket=yes
6546 else
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 ac_cv_lib_sangoma_sangoma_create_socket=no
6552 rm -f conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6554 LIBS=$ac_check_lib_save_LIBS
6556 echo "$as_me:$LINENO: result: $ac_cv_lib_sangoma_sangoma_create_socket" >&5
6557 echo "${ECHO_T}$ac_cv_lib_sangoma_sangoma_create_socket" >&6
6558 if test $ac_cv_lib_sangoma_sangoma_create_socket = yes; then
6559 HAS_SANGOMA=1
6562 if test "x$HAS_SANGOMA" != "x" ; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAS_SANGOMA 1
6565 _ACEOF
6567 HAS_SANGOMA=1
6574 CPPFLAGS=$OLD_CPPFLAGS
6581 ac_aux_dir=
6582 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6583 if test -f $ac_dir/install-sh; then
6584 ac_aux_dir=$ac_dir
6585 ac_install_sh="$ac_aux_dir/install-sh -c"
6586 break
6587 elif test -f $ac_dir/install.sh; then
6588 ac_aux_dir=$ac_dir
6589 ac_install_sh="$ac_aux_dir/install.sh -c"
6590 break
6591 elif test -f $ac_dir/shtool; then
6592 ac_aux_dir=$ac_dir
6593 ac_install_sh="$ac_aux_dir/shtool install -c"
6594 break
6596 done
6597 if test -z "$ac_aux_dir"; then
6598 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6599 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6600 { (exit 1); exit 1; }; }
6602 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6603 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6604 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6606 # Find a good install program. We prefer a C program (faster),
6607 # so one script is as good as another. But avoid the broken or
6608 # incompatible versions:
6609 # SysV /etc/install, /usr/sbin/install
6610 # SunOS /usr/etc/install
6611 # IRIX /sbin/install
6612 # AIX /bin/install
6613 # AmigaOS /C/install, which installs bootblocks on floppy discs
6614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6617 # OS/2's system install, which has a completely different semantic
6618 # ./install, which can be erroneously created by make from ./install.sh.
6619 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6620 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6621 if test -z "$INSTALL"; then
6622 if test "${ac_cv_path_install+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 # Account for people who put trailing slashes in PATH elements.
6631 case $as_dir/ in
6632 ./ | .// | /cC/* | \
6633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6634 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6635 /usr/ucb/* ) ;;
6637 # OSF1 and SCO ODT 3.0 have their own names for install.
6638 # Don't use installbsd from OSF since it installs stuff as root
6639 # by default.
6640 for ac_prog in ginstall scoinst install; do
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6643 if test $ac_prog = install &&
6644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6645 # AIX install. It has an incompatible calling convention.
6647 elif test $ac_prog = install &&
6648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6649 # program-specific install script used by HP pwplus--don't use.
6651 else
6652 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6653 break 3
6656 done
6657 done
6659 esac
6660 done
6664 if test "${ac_cv_path_install+set}" = set; then
6665 INSTALL=$ac_cv_path_install
6666 else
6667 # As a last resort, use the slow shell script. We don't cache a
6668 # path for INSTALL within a source directory, because that will
6669 # break other packages using the cache if that directory is
6670 # removed, or if the path is relative.
6671 INSTALL=$ac_install_sh
6674 echo "$as_me:$LINENO: result: $INSTALL" >&5
6675 echo "${ECHO_T}$INSTALL" >&6
6677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6678 # It thinks the first close brace ends the variable substitution.
6679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6689 subdirs="$subdirs plugins"
6693 ac_config_files="$ac_config_files opal_inc.mak"
6695 ac_config_files="$ac_config_files Makefile"
6697 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6700 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6701 cat >confcache <<\_ACEOF
6702 # This file is a shell script that caches the results of configure
6703 # tests run on this system so they can be shared between configure
6704 # scripts and configure runs, see configure's option --config-cache.
6705 # It is not useful on other systems. If it contains results you don't
6706 # want to keep, you may remove or edit it.
6708 # config.status only pays attention to the cache file if you give it
6709 # the --recheck option to rerun configure.
6711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6713 # following values.
6715 _ACEOF
6717 # The following way of writing the cache mishandles newlines in values,
6718 # but we know of no workaround that is simple, portable, and efficient.
6719 # So, don't put newlines in cache variables' values.
6720 # Ultrix sh set writes to stderr and can't be redirected directly,
6721 # and sets the high bit in the cache file unless we assign to the vars.
6723 (set) 2>&1 |
6724 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6725 *ac_space=\ *)
6726 # `set' does not quote correctly, so add quotes (double-quote
6727 # substitution turns \\\\ into \\, and sed turns \\ into \).
6728 sed -n \
6729 "s/'/'\\\\''/g;
6730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6733 # `set' quotes correctly as required by POSIX, so do not add quotes.
6734 sed -n \
6735 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6737 esac;
6739 sed '
6740 t clear
6741 : clear
6742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6743 t end
6744 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6745 : end' >>confcache
6746 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6747 if test -w $cache_file; then
6748 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6749 cat confcache >$cache_file
6750 else
6751 echo "not updating unwritable cache $cache_file"
6754 rm -f confcache
6756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6757 # Let make expand exec_prefix.
6758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6760 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6761 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6762 # trailing colons and then remove the whole line if VPATH becomes empty
6763 # (actually we leave an empty line to preserve line numbers).
6764 if test "x$srcdir" = x.; then
6765 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6766 s/:*\$(srcdir):*/:/;
6767 s/:*\${srcdir}:*/:/;
6768 s/:*@srcdir@:*/:/;
6769 s/^\([^=]*=[ ]*\):*/\1/;
6770 s/:*$//;
6771 s/^[^=]*=[ ]*$//;
6775 DEFS=-DHAVE_CONFIG_H
6777 ac_libobjs=
6778 ac_ltlibobjs=
6779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6780 # 1. Remove the extension, and $U if already installed.
6781 ac_i=`echo "$ac_i" |
6782 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6783 # 2. Add them.
6784 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6785 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6786 done
6787 LIBOBJS=$ac_libobjs
6789 LTLIBOBJS=$ac_ltlibobjs
6793 : ${CONFIG_STATUS=./config.status}
6794 ac_clean_files_save=$ac_clean_files
6795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6796 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6797 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6798 cat >$CONFIG_STATUS <<_ACEOF
6799 #! $SHELL
6800 # Generated by $as_me.
6801 # Run this file to recreate the current configuration.
6802 # Compiler output produced by configure, useful for debugging
6803 # configure, is in config.log if it exists.
6805 debug=false
6806 ac_cs_recheck=false
6807 ac_cs_silent=false
6808 SHELL=\${CONFIG_SHELL-$SHELL}
6809 _ACEOF
6811 cat >>$CONFIG_STATUS <<\_ACEOF
6812 ## --------------------- ##
6813 ## M4sh Initialization. ##
6814 ## --------------------- ##
6816 # Be Bourne compatible
6817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6818 emulate sh
6819 NULLCMD=:
6820 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6821 # is contrary to our usage. Disable this feature.
6822 alias -g '${1+"$@"}'='"$@"'
6823 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6824 set -o posix
6826 DUALCASE=1; export DUALCASE # for MKS sh
6828 # Support unset when possible.
6829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6830 as_unset=unset
6831 else
6832 as_unset=false
6836 # Work around bugs in pre-3.0 UWIN ksh.
6837 $as_unset ENV MAIL MAILPATH
6838 PS1='$ '
6839 PS2='> '
6840 PS4='+ '
6842 # NLS nuisances.
6843 for as_var in \
6844 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6845 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6846 LC_TELEPHONE LC_TIME
6848 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6849 eval $as_var=C; export $as_var
6850 else
6851 $as_unset $as_var
6853 done
6855 # Required to use basename.
6856 if expr a : '\(a\)' >/dev/null 2>&1; then
6857 as_expr=expr
6858 else
6859 as_expr=false
6862 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6863 as_basename=basename
6864 else
6865 as_basename=false
6869 # Name of the executable.
6870 as_me=`$as_basename "$0" ||
6871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6872 X"$0" : 'X\(//\)$' \| \
6873 X"$0" : 'X\(/\)$' \| \
6874 . : '\(.\)' 2>/dev/null ||
6875 echo X/"$0" |
6876 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6877 /^X\/\(\/\/\)$/{ s//\1/; q; }
6878 /^X\/\(\/\).*/{ s//\1/; q; }
6879 s/.*/./; q'`
6882 # PATH needs CR, and LINENO needs CR and PATH.
6883 # Avoid depending upon Character Ranges.
6884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6887 as_cr_digits='0123456789'
6888 as_cr_alnum=$as_cr_Letters$as_cr_digits
6890 # The user is always right.
6891 if test "${PATH_SEPARATOR+set}" != set; then
6892 echo "#! /bin/sh" >conf$$.sh
6893 echo "exit 0" >>conf$$.sh
6894 chmod +x conf$$.sh
6895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6896 PATH_SEPARATOR=';'
6897 else
6898 PATH_SEPARATOR=:
6900 rm -f conf$$.sh
6904 as_lineno_1=$LINENO
6905 as_lineno_2=$LINENO
6906 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6907 test "x$as_lineno_1" != "x$as_lineno_2" &&
6908 test "x$as_lineno_3" = "x$as_lineno_2" || {
6909 # Find who we are. Look in the path if we contain no path at all
6910 # relative or not.
6911 case $0 in
6912 *[\\/]* ) as_myself=$0 ;;
6913 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6919 done
6922 esac
6923 # We did not find ourselves, most probably we were run as `sh COMMAND'
6924 # in which case we are not to be found in the path.
6925 if test "x$as_myself" = x; then
6926 as_myself=$0
6928 if test ! -f "$as_myself"; then
6929 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6930 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6931 { (exit 1); exit 1; }; }
6933 case $CONFIG_SHELL in
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for as_base in sh bash ksh sh5; do
6941 case $as_dir in
6943 if ("$as_dir/$as_base" -c '
6944 as_lineno_1=$LINENO
6945 as_lineno_2=$LINENO
6946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6947 test "x$as_lineno_1" != "x$as_lineno_2" &&
6948 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6949 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6950 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6951 CONFIG_SHELL=$as_dir/$as_base
6952 export CONFIG_SHELL
6953 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6954 fi;;
6955 esac
6956 done
6957 done
6959 esac
6961 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6962 # uniformly replaced by the line number. The first 'sed' inserts a
6963 # line-number line before each line; the second 'sed' does the real
6964 # work. The second script uses 'N' to pair each line-number line
6965 # with the numbered line, and appends trailing '-' during
6966 # substitution so that $LINENO is not a special case at line end.
6967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6968 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6969 sed '=' <$as_myself |
6970 sed '
6972 s,$,-,
6973 : loop
6974 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6975 t loop
6976 s,-$,,
6977 s,^['$as_cr_digits']*\n,,
6978 ' >$as_me.lineno &&
6979 chmod +x $as_me.lineno ||
6980 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6981 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6982 { (exit 1); exit 1; }; }
6984 # Don't try to exec as it changes $[0], causing all sort of problems
6985 # (the dirname of $[0] is not the place where we might find the
6986 # original and so on. Autoconf is especially sensible to this).
6987 . ./$as_me.lineno
6988 # Exit status is that of the last command.
6989 exit
6993 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6994 *c*,-n*) ECHO_N= ECHO_C='
6995 ' ECHO_T=' ' ;;
6996 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6997 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6998 esac
7000 if expr a : '\(a\)' >/dev/null 2>&1; then
7001 as_expr=expr
7002 else
7003 as_expr=false
7006 rm -f conf$$ conf$$.exe conf$$.file
7007 echo >conf$$.file
7008 if ln -s conf$$.file conf$$ 2>/dev/null; then
7009 # We could just check for DJGPP; but this test a) works b) is more generic
7010 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7011 if test -f conf$$.exe; then
7012 # Don't use ln at all; we don't have any links
7013 as_ln_s='cp -p'
7014 else
7015 as_ln_s='ln -s'
7017 elif ln conf$$.file conf$$ 2>/dev/null; then
7018 as_ln_s=ln
7019 else
7020 as_ln_s='cp -p'
7022 rm -f conf$$ conf$$.exe conf$$.file
7024 if mkdir -p . 2>/dev/null; then
7025 as_mkdir_p=:
7026 else
7027 test -d ./-p && rmdir ./-p
7028 as_mkdir_p=false
7031 as_executable_p="test -f"
7033 # Sed expression to map a string onto a valid CPP name.
7034 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7036 # Sed expression to map a string onto a valid variable name.
7037 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7040 # IFS
7041 # We need space, tab and new line, in precisely that order.
7042 as_nl='
7044 IFS=" $as_nl"
7046 # CDPATH.
7047 $as_unset CDPATH
7049 exec 6>&1
7051 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7052 # report actual input values of CONFIG_FILES etc. instead of their
7053 # values after options handling. Logging --version etc. is OK.
7054 exec 5>>config.log
7056 echo
7057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7058 ## Running $as_me. ##
7059 _ASBOX
7060 } >&5
7061 cat >&5 <<_CSEOF
7063 This file was extended by $as_me, which was
7064 generated by GNU Autoconf 2.59. Invocation command line was
7066 CONFIG_FILES = $CONFIG_FILES
7067 CONFIG_HEADERS = $CONFIG_HEADERS
7068 CONFIG_LINKS = $CONFIG_LINKS
7069 CONFIG_COMMANDS = $CONFIG_COMMANDS
7070 $ $0 $@
7072 _CSEOF
7073 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7074 echo >&5
7075 _ACEOF
7077 # Files that config.status was made for.
7078 if test -n "$ac_config_files"; then
7079 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7082 if test -n "$ac_config_headers"; then
7083 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7086 if test -n "$ac_config_links"; then
7087 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7090 if test -n "$ac_config_commands"; then
7091 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7094 cat >>$CONFIG_STATUS <<\_ACEOF
7096 ac_cs_usage="\
7097 \`$as_me' instantiates files from templates according to the
7098 current configuration.
7100 Usage: $0 [OPTIONS] [FILE]...
7102 -h, --help print this help, then exit
7103 -V, --version print version number, then exit
7104 -q, --quiet do not print progress messages
7105 -d, --debug don't remove temporary files
7106 --recheck update $as_me by reconfiguring in the same conditions
7107 --file=FILE[:TEMPLATE]
7108 instantiate the configuration file FILE
7109 --header=FILE[:TEMPLATE]
7110 instantiate the configuration header FILE
7112 Configuration files:
7113 $config_files
7115 Configuration headers:
7116 $config_headers
7118 Report bugs to <bug-autoconf@gnu.org>."
7119 _ACEOF
7121 cat >>$CONFIG_STATUS <<_ACEOF
7122 ac_cs_version="\\
7123 config.status
7124 configured by $0, generated by GNU Autoconf 2.59,
7125 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7127 Copyright (C) 2003 Free Software Foundation, Inc.
7128 This config.status script is free software; the Free Software Foundation
7129 gives unlimited permission to copy, distribute and modify it."
7130 srcdir=$srcdir
7131 INSTALL="$INSTALL"
7132 _ACEOF
7134 cat >>$CONFIG_STATUS <<\_ACEOF
7135 # If no file are specified by the user, then we need to provide default
7136 # value. By we need to know if files were specified by the user.
7137 ac_need_defaults=:
7138 while test $# != 0
7140 case $1 in
7141 --*=*)
7142 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7143 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7144 ac_shift=:
7147 ac_option=$1
7148 ac_optarg=$2
7149 ac_shift=shift
7151 *) # This is not an option, so the user has probably given explicit
7152 # arguments.
7153 ac_option=$1
7154 ac_need_defaults=false;;
7155 esac
7157 case $ac_option in
7158 # Handling of the options.
7159 _ACEOF
7160 cat >>$CONFIG_STATUS <<\_ACEOF
7161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7162 ac_cs_recheck=: ;;
7163 --version | --vers* | -V )
7164 echo "$ac_cs_version"; exit 0 ;;
7165 --he | --h)
7166 # Conflict between --help and --header
7167 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7168 Try \`$0 --help' for more information." >&5
7169 echo "$as_me: error: ambiguous option: $1
7170 Try \`$0 --help' for more information." >&2;}
7171 { (exit 1); exit 1; }; };;
7172 --help | --hel | -h )
7173 echo "$ac_cs_usage"; exit 0 ;;
7174 --debug | --d* | -d )
7175 debug=: ;;
7176 --file | --fil | --fi | --f )
7177 $ac_shift
7178 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7179 ac_need_defaults=false;;
7180 --header | --heade | --head | --hea )
7181 $ac_shift
7182 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7183 ac_need_defaults=false;;
7184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7186 ac_cs_silent=: ;;
7188 # This is an error.
7189 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7190 Try \`$0 --help' for more information." >&5
7191 echo "$as_me: error: unrecognized option: $1
7192 Try \`$0 --help' for more information." >&2;}
7193 { (exit 1); exit 1; }; } ;;
7195 *) ac_config_targets="$ac_config_targets $1" ;;
7197 esac
7198 shift
7199 done
7201 ac_configure_extra_args=
7203 if $ac_cs_silent; then
7204 exec 6>/dev/null
7205 ac_configure_extra_args="$ac_configure_extra_args --silent"
7208 _ACEOF
7209 cat >>$CONFIG_STATUS <<_ACEOF
7210 if \$ac_cs_recheck; then
7211 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7212 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7215 _ACEOF
7221 cat >>$CONFIG_STATUS <<\_ACEOF
7222 for ac_config_target in $ac_config_targets
7224 case "$ac_config_target" in
7225 # Handling of arguments.
7226 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
7227 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7228 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
7229 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
7230 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7231 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7232 { (exit 1); exit 1; }; };;
7233 esac
7234 done
7236 # If the user did not use the arguments to specify the items to instantiate,
7237 # then the envvar interface is used. Set only those that are not.
7238 # We use the long form for the default assignment because of an extremely
7239 # bizarre bug on SunOS 4.1.3.
7240 if $ac_need_defaults; then
7241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7245 # Have a temporary directory for convenience. Make it in the build tree
7246 # simply because there is no reason to put it here, and in addition,
7247 # creating and moving files from /tmp can sometimes cause problems.
7248 # Create a temporary directory, and hook for its removal unless debugging.
7249 $debug ||
7251 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7252 trap '{ (exit 1); exit 1; }' 1 2 13 15
7255 # Create a (secure) tmp directory for tmp files.
7258 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7259 test -n "$tmp" && test -d "$tmp"
7260 } ||
7262 tmp=./confstat$$-$RANDOM
7263 (umask 077 && mkdir $tmp)
7264 } ||
7266 echo "$me: cannot create a temporary directory in ." >&2
7267 { (exit 1); exit 1; }
7270 _ACEOF
7272 cat >>$CONFIG_STATUS <<_ACEOF
7275 # CONFIG_FILES section.
7278 # No need to generate the scripts if there are no CONFIG_FILES.
7279 # This happens for instance when ./config.status config.h
7280 if test -n "\$CONFIG_FILES"; then
7281 # Protect against being on the right side of a sed subst in config.status.
7282 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7283 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7284 s,@SHELL@,$SHELL,;t t
7285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7291 s,@exec_prefix@,$exec_prefix,;t t
7292 s,@prefix@,$prefix,;t t
7293 s,@program_transform_name@,$program_transform_name,;t t
7294 s,@bindir@,$bindir,;t t
7295 s,@sbindir@,$sbindir,;t t
7296 s,@libexecdir@,$libexecdir,;t t
7297 s,@datadir@,$datadir,;t t
7298 s,@sysconfdir@,$sysconfdir,;t t
7299 s,@sharedstatedir@,$sharedstatedir,;t t
7300 s,@localstatedir@,$localstatedir,;t t
7301 s,@libdir@,$libdir,;t t
7302 s,@includedir@,$includedir,;t t
7303 s,@oldincludedir@,$oldincludedir,;t t
7304 s,@infodir@,$infodir,;t t
7305 s,@mandir@,$mandir,;t t
7306 s,@build_alias@,$build_alias,;t t
7307 s,@host_alias@,$host_alias,;t t
7308 s,@target_alias@,$target_alias,;t t
7309 s,@DEFS@,$DEFS,;t t
7310 s,@ECHO_C@,$ECHO_C,;t t
7311 s,@ECHO_N@,$ECHO_N,;t t
7312 s,@ECHO_T@,$ECHO_T,;t t
7313 s,@LIBS@,$LIBS,;t t
7314 s,@CC@,$CC,;t t
7315 s,@CFLAGS@,$CFLAGS,;t t
7316 s,@LDFLAGS@,$LDFLAGS,;t t
7317 s,@CPPFLAGS@,$CPPFLAGS,;t t
7318 s,@ac_ct_CC@,$ac_ct_CC,;t t
7319 s,@EXEEXT@,$EXEEXT,;t t
7320 s,@OBJEXT@,$OBJEXT,;t t
7321 s,@CXX@,$CXX,;t t
7322 s,@CXXFLAGS@,$CXXFLAGS,;t t
7323 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7324 s,@OPALDIR@,$OPALDIR,;t t
7325 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7326 s,@LIBDIR@,$LIBDIR,;t t
7327 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
7328 s,@PWLIBDIR@,$PWLIBDIR,;t t
7329 s,@CPP@,$CPP,;t t
7330 s,@EGREP@,$EGREP,;t t
7331 s,@SIZE16@,$SIZE16,;t t
7332 s,@SIZE32@,$SIZE32,;t t
7333 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
7334 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
7335 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
7336 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
7337 s,@OPAL_SIP@,$OPAL_SIP,;t t
7338 s,@OPAL_H323@,$OPAL_H323,;t t
7339 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
7340 s,@OPAL_H224@,$OPAL_H224,;t t
7341 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
7342 s,@H323_H460@,$H323_H460,;t t
7343 s,@HAS_IXJ@,$HAS_IXJ,;t t
7344 s,@OPAL_LID@,$OPAL_LID,;t t
7345 s,@HAS_VPB@,$HAS_VPB,;t t
7346 s,@HAS_SANGOMA@,$HAS_SANGOMA,;t t
7347 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7348 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7349 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7350 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7351 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7352 s,@subdirs@,$subdirs,;t t
7353 s,@LIBOBJS@,$LIBOBJS,;t t
7354 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7355 CEOF
7357 _ACEOF
7359 cat >>$CONFIG_STATUS <<\_ACEOF
7360 # Split the substitutions into bite-sized pieces for seds with
7361 # small command number limits, like on Digital OSF/1 and HP-UX.
7362 ac_max_sed_lines=48
7363 ac_sed_frag=1 # Number of current file.
7364 ac_beg=1 # First line for current file.
7365 ac_end=$ac_max_sed_lines # Line after last line for current file.
7366 ac_more_lines=:
7367 ac_sed_cmds=
7368 while $ac_more_lines; do
7369 if test $ac_beg -gt 1; then
7370 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7371 else
7372 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7374 if test ! -s $tmp/subs.frag; then
7375 ac_more_lines=false
7376 else
7377 # The purpose of the label and of the branching condition is to
7378 # speed up the sed processing (if there are no `@' at all, there
7379 # is no need to browse any of the substitutions).
7380 # These are the two extra sed commands mentioned above.
7381 (echo ':t
7382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7383 if test -z "$ac_sed_cmds"; then
7384 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7385 else
7386 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7388 ac_sed_frag=`expr $ac_sed_frag + 1`
7389 ac_beg=$ac_end
7390 ac_end=`expr $ac_end + $ac_max_sed_lines`
7392 done
7393 if test -z "$ac_sed_cmds"; then
7394 ac_sed_cmds=cat
7396 fi # test -n "$CONFIG_FILES"
7398 _ACEOF
7399 cat >>$CONFIG_STATUS <<\_ACEOF
7400 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7402 case $ac_file in
7403 - | *:- | *:-:* ) # input from stdin
7404 cat >$tmp/stdin
7405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7409 * ) ac_file_in=$ac_file.in ;;
7410 esac
7412 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7413 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7415 X"$ac_file" : 'X\(//\)[^/]' \| \
7416 X"$ac_file" : 'X\(//\)$' \| \
7417 X"$ac_file" : 'X\(/\)' \| \
7418 . : '\(.\)' 2>/dev/null ||
7419 echo X"$ac_file" |
7420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7422 /^X\(\/\/\)$/{ s//\1/; q; }
7423 /^X\(\/\).*/{ s//\1/; q; }
7424 s/.*/./; q'`
7425 { if $as_mkdir_p; then
7426 mkdir -p "$ac_dir"
7427 else
7428 as_dir="$ac_dir"
7429 as_dirs=
7430 while test ! -d "$as_dir"; do
7431 as_dirs="$as_dir $as_dirs"
7432 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7434 X"$as_dir" : 'X\(//\)[^/]' \| \
7435 X"$as_dir" : 'X\(//\)$' \| \
7436 X"$as_dir" : 'X\(/\)' \| \
7437 . : '\(.\)' 2>/dev/null ||
7438 echo X"$as_dir" |
7439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7441 /^X\(\/\/\)$/{ s//\1/; q; }
7442 /^X\(\/\).*/{ s//\1/; q; }
7443 s/.*/./; q'`
7444 done
7445 test ! -n "$as_dirs" || mkdir $as_dirs
7446 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7448 { (exit 1); exit 1; }; }; }
7450 ac_builddir=.
7452 if test "$ac_dir" != .; then
7453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7454 # A "../" for each directory in $ac_dir_suffix.
7455 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7456 else
7457 ac_dir_suffix= ac_top_builddir=
7460 case $srcdir in
7461 .) # No --srcdir option. We are building in place.
7462 ac_srcdir=.
7463 if test -z "$ac_top_builddir"; then
7464 ac_top_srcdir=.
7465 else
7466 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7467 fi ;;
7468 [\\/]* | ?:[\\/]* ) # Absolute path.
7469 ac_srcdir=$srcdir$ac_dir_suffix;
7470 ac_top_srcdir=$srcdir ;;
7471 *) # Relative path.
7472 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7473 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7474 esac
7476 # Do not use `cd foo && pwd` to compute absolute paths, because
7477 # the directories may not exist.
7478 case `pwd` in
7479 .) ac_abs_builddir="$ac_dir";;
7481 case "$ac_dir" in
7482 .) ac_abs_builddir=`pwd`;;
7483 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7484 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7485 esac;;
7486 esac
7487 case $ac_abs_builddir in
7488 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7490 case ${ac_top_builddir}. in
7491 .) ac_abs_top_builddir=$ac_abs_builddir;;
7492 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7493 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7494 esac;;
7495 esac
7496 case $ac_abs_builddir in
7497 .) ac_abs_srcdir=$ac_srcdir;;
7499 case $ac_srcdir in
7500 .) ac_abs_srcdir=$ac_abs_builddir;;
7501 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7502 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7503 esac;;
7504 esac
7505 case $ac_abs_builddir in
7506 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7508 case $ac_top_srcdir in
7509 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7510 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7511 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7512 esac;;
7513 esac
7516 case $INSTALL in
7517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7518 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7519 esac
7521 if test x"$ac_file" != x-; then
7522 { echo "$as_me:$LINENO: creating $ac_file" >&5
7523 echo "$as_me: creating $ac_file" >&6;}
7524 rm -f "$ac_file"
7526 # Let's still pretend it is `configure' which instantiates (i.e., don't
7527 # use $as_me), people would be surprised to read:
7528 # /* config.h. Generated by config.status. */
7529 if test x"$ac_file" = x-; then
7530 configure_input=
7531 else
7532 configure_input="$ac_file. "
7534 configure_input=$configure_input"Generated from `echo $ac_file_in |
7535 sed 's,.*/,,'` by configure."
7537 # First look for the input files in the build tree, otherwise in the
7538 # src tree.
7539 ac_file_inputs=`IFS=:
7540 for f in $ac_file_in; do
7541 case $f in
7542 -) echo $tmp/stdin ;;
7543 [\\/$]*)
7544 # Absolute (can't be DOS-style, as IFS=:)
7545 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7546 echo "$as_me: error: cannot find input file: $f" >&2;}
7547 { (exit 1); exit 1; }; }
7548 echo "$f";;
7549 *) # Relative
7550 if test -f "$f"; then
7551 # Build tree
7552 echo "$f"
7553 elif test -f "$srcdir/$f"; then
7554 # Source tree
7555 echo "$srcdir/$f"
7556 else
7557 # /dev/null tree
7558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7559 echo "$as_me: error: cannot find input file: $f" >&2;}
7560 { (exit 1); exit 1; }; }
7561 fi;;
7562 esac
7563 done` || { (exit 1); exit 1; }
7564 _ACEOF
7565 cat >>$CONFIG_STATUS <<_ACEOF
7566 sed "$ac_vpsub
7567 $extrasub
7568 _ACEOF
7569 cat >>$CONFIG_STATUS <<\_ACEOF
7571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7572 s,@configure_input@,$configure_input,;t t
7573 s,@srcdir@,$ac_srcdir,;t t
7574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7575 s,@top_srcdir@,$ac_top_srcdir,;t t
7576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7577 s,@builddir@,$ac_builddir,;t t
7578 s,@abs_builddir@,$ac_abs_builddir,;t t
7579 s,@top_builddir@,$ac_top_builddir,;t t
7580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7581 s,@INSTALL@,$ac_INSTALL,;t t
7582 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7583 rm -f $tmp/stdin
7584 if test x"$ac_file" != x-; then
7585 mv $tmp/out $ac_file
7586 else
7587 cat $tmp/out
7588 rm -f $tmp/out
7591 done
7592 _ACEOF
7593 cat >>$CONFIG_STATUS <<\_ACEOF
7596 # CONFIG_HEADER section.
7599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7602 # ac_d sets the value in "#define NAME VALUE" lines.
7603 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7604 ac_dB='[ ].*$,\1#\2'
7605 ac_dC=' '
7606 ac_dD=',;t'
7607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7608 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7609 ac_uB='$,\1#\2define\3'
7610 ac_uC=' '
7611 ac_uD=',;t'
7613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7615 case $ac_file in
7616 - | *:- | *:-:* ) # input from stdin
7617 cat >$tmp/stdin
7618 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7620 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7622 * ) ac_file_in=$ac_file.in ;;
7623 esac
7625 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7626 echo "$as_me: creating $ac_file" >&6;}
7628 # First look for the input files in the build tree, otherwise in the
7629 # src tree.
7630 ac_file_inputs=`IFS=:
7631 for f in $ac_file_in; do
7632 case $f in
7633 -) echo $tmp/stdin ;;
7634 [\\/$]*)
7635 # Absolute (can't be DOS-style, as IFS=:)
7636 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7637 echo "$as_me: error: cannot find input file: $f" >&2;}
7638 { (exit 1); exit 1; }; }
7639 # Do quote $f, to prevent DOS paths from being IFS'd.
7640 echo "$f";;
7641 *) # Relative
7642 if test -f "$f"; then
7643 # Build tree
7644 echo "$f"
7645 elif test -f "$srcdir/$f"; then
7646 # Source tree
7647 echo "$srcdir/$f"
7648 else
7649 # /dev/null tree
7650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7651 echo "$as_me: error: cannot find input file: $f" >&2;}
7652 { (exit 1); exit 1; }; }
7653 fi;;
7654 esac
7655 done` || { (exit 1); exit 1; }
7656 # Remove the trailing spaces.
7657 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7659 _ACEOF
7661 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7662 # `conftest.undefs', that substitutes the proper values into
7663 # config.h.in to produce config.h. The first handles `#define'
7664 # templates, and the second `#undef' templates.
7665 # And first: Protect against being on the right side of a sed subst in
7666 # config.status. Protect against being in an unquoted here document
7667 # in config.status.
7668 rm -f conftest.defines conftest.undefs
7669 # Using a here document instead of a string reduces the quoting nightmare.
7670 # Putting comments in sed scripts is not portable.
7672 # `end' is used to avoid that the second main sed command (meant for
7673 # 0-ary CPP macros) applies to n-ary macro definitions.
7674 # See the Autoconf documentation for `clear'.
7675 cat >confdef2sed.sed <<\_ACEOF
7676 s/[\\&,]/\\&/g
7677 s,[\\$`],\\&,g
7678 t clear
7679 : clear
7680 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7681 t end
7682 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7683 : end
7684 _ACEOF
7685 # If some macros were called several times there might be several times
7686 # the same #defines, which is useless. Nevertheless, we may not want to
7687 # sort them, since we want the *last* AC-DEFINE to be honored.
7688 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7689 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7690 rm -f confdef2sed.sed
7692 # This sed command replaces #undef with comments. This is necessary, for
7693 # example, in the case of _POSIX_SOURCE, which is predefined and required
7694 # on some systems where configure will not decide to define it.
7695 cat >>conftest.undefs <<\_ACEOF
7696 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7697 _ACEOF
7699 # Break up conftest.defines because some shells have a limit on the size
7700 # of here documents, and old seds have small limits too (100 cmds).
7701 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7702 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7703 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7704 echo ' :' >>$CONFIG_STATUS
7705 rm -f conftest.tail
7706 while grep . conftest.defines >/dev/null
7708 # Write a limited-size here document to $tmp/defines.sed.
7709 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7710 # Speed up: don't consider the non `#define' lines.
7711 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7712 # Work around the forget-to-reset-the-flag bug.
7713 echo 't clr' >>$CONFIG_STATUS
7714 echo ': clr' >>$CONFIG_STATUS
7715 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7716 echo 'CEOF
7717 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7718 rm -f $tmp/in
7719 mv $tmp/out $tmp/in
7720 ' >>$CONFIG_STATUS
7721 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7722 rm -f conftest.defines
7723 mv conftest.tail conftest.defines
7724 done
7725 rm -f conftest.defines
7726 echo ' fi # grep' >>$CONFIG_STATUS
7727 echo >>$CONFIG_STATUS
7729 # Break up conftest.undefs because some shells have a limit on the size
7730 # of here documents, and old seds have small limits too (100 cmds).
7731 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7732 rm -f conftest.tail
7733 while grep . conftest.undefs >/dev/null
7735 # Write a limited-size here document to $tmp/undefs.sed.
7736 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7737 # Speed up: don't consider the non `#undef'
7738 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7739 # Work around the forget-to-reset-the-flag bug.
7740 echo 't clr' >>$CONFIG_STATUS
7741 echo ': clr' >>$CONFIG_STATUS
7742 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7743 echo 'CEOF
7744 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7745 rm -f $tmp/in
7746 mv $tmp/out $tmp/in
7747 ' >>$CONFIG_STATUS
7748 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7749 rm -f conftest.undefs
7750 mv conftest.tail conftest.undefs
7751 done
7752 rm -f conftest.undefs
7754 cat >>$CONFIG_STATUS <<\_ACEOF
7755 # Let's still pretend it is `configure' which instantiates (i.e., don't
7756 # use $as_me), people would be surprised to read:
7757 # /* config.h. Generated by config.status. */
7758 if test x"$ac_file" = x-; then
7759 echo "/* Generated by configure. */" >$tmp/config.h
7760 else
7761 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7763 cat $tmp/in >>$tmp/config.h
7764 rm -f $tmp/in
7765 if test x"$ac_file" != x-; then
7766 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7767 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7768 echo "$as_me: $ac_file is unchanged" >&6;}
7769 else
7770 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7772 X"$ac_file" : 'X\(//\)[^/]' \| \
7773 X"$ac_file" : 'X\(//\)$' \| \
7774 X"$ac_file" : 'X\(/\)' \| \
7775 . : '\(.\)' 2>/dev/null ||
7776 echo X"$ac_file" |
7777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7779 /^X\(\/\/\)$/{ s//\1/; q; }
7780 /^X\(\/\).*/{ s//\1/; q; }
7781 s/.*/./; q'`
7782 { if $as_mkdir_p; then
7783 mkdir -p "$ac_dir"
7784 else
7785 as_dir="$ac_dir"
7786 as_dirs=
7787 while test ! -d "$as_dir"; do
7788 as_dirs="$as_dir $as_dirs"
7789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7791 X"$as_dir" : 'X\(//\)[^/]' \| \
7792 X"$as_dir" : 'X\(//\)$' \| \
7793 X"$as_dir" : 'X\(/\)' \| \
7794 . : '\(.\)' 2>/dev/null ||
7795 echo X"$as_dir" |
7796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7798 /^X\(\/\/\)$/{ s//\1/; q; }
7799 /^X\(\/\).*/{ s//\1/; q; }
7800 s/.*/./; q'`
7801 done
7802 test ! -n "$as_dirs" || mkdir $as_dirs
7803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7805 { (exit 1); exit 1; }; }; }
7807 rm -f $ac_file
7808 mv $tmp/config.h $ac_file
7810 else
7811 cat $tmp/config.h
7812 rm -f $tmp/config.h
7814 done
7815 _ACEOF
7817 cat >>$CONFIG_STATUS <<\_ACEOF
7819 { (exit 0); exit 0; }
7820 _ACEOF
7821 chmod +x $CONFIG_STATUS
7822 ac_clean_files=$ac_clean_files_save
7825 # configure is writing to config.log, and then calls config.status.
7826 # config.status does its own redirection, appending to config.log.
7827 # Unfortunately, on DOS this fails, as config.log is still kept open
7828 # by configure, so config.status won't be able to write to it; its
7829 # output is simply discarded. So we exec the FD to /dev/null,
7830 # effectively closing config.log, so it can be properly (re)opened and
7831 # appended to by config.status. When coming back to configure, we
7832 # need to make the FD available again.
7833 if test "$no_create" != yes; then
7834 ac_cs_success=:
7835 ac_config_status_args=
7836 test "$silent" = yes &&
7837 ac_config_status_args="$ac_config_status_args --quiet"
7838 exec 5>/dev/null
7839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7840 exec 5>>config.log
7841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7842 # would make configure fail if this is the last instruction.
7843 $ac_cs_success || { (exit 1); exit 1; }
7847 # CONFIG_SUBDIRS section.
7849 if test "$no_recursion" != yes; then
7851 # Remove --cache-file and --srcdir arguments so they do not pile up.
7852 ac_sub_configure_args=
7853 ac_prev=
7854 for ac_arg in $ac_configure_args; do
7855 if test -n "$ac_prev"; then
7856 ac_prev=
7857 continue
7859 case $ac_arg in
7860 -cache-file | --cache-file | --cache-fil | --cache-fi \
7861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7862 ac_prev=cache_file ;;
7863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7865 | --c=*)
7867 --config-cache | -C)
7869 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7870 ac_prev=srcdir ;;
7871 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7873 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7874 ac_prev=prefix ;;
7875 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7877 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7878 esac
7879 done
7881 # Always prepend --prefix to ensure using the same prefix
7882 # in subdir configurations.
7883 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7885 ac_popdir=`pwd`
7886 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7888 # Do not complain, so a configure script can configure whichever
7889 # parts of a large source tree are present.
7890 test -d $srcdir/$ac_dir || continue
7892 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7893 echo "$as_me: configuring in $ac_dir" >&6;}
7894 { if $as_mkdir_p; then
7895 mkdir -p "$ac_dir"
7896 else
7897 as_dir="$ac_dir"
7898 as_dirs=
7899 while test ! -d "$as_dir"; do
7900 as_dirs="$as_dir $as_dirs"
7901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7903 X"$as_dir" : 'X\(//\)[^/]' \| \
7904 X"$as_dir" : 'X\(//\)$' \| \
7905 X"$as_dir" : 'X\(/\)' \| \
7906 . : '\(.\)' 2>/dev/null ||
7907 echo X"$as_dir" |
7908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7910 /^X\(\/\/\)$/{ s//\1/; q; }
7911 /^X\(\/\).*/{ s//\1/; q; }
7912 s/.*/./; q'`
7913 done
7914 test ! -n "$as_dirs" || mkdir $as_dirs
7915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7917 { (exit 1); exit 1; }; }; }
7919 ac_builddir=.
7921 if test "$ac_dir" != .; then
7922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7923 # A "../" for each directory in $ac_dir_suffix.
7924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7925 else
7926 ac_dir_suffix= ac_top_builddir=
7929 case $srcdir in
7930 .) # No --srcdir option. We are building in place.
7931 ac_srcdir=.
7932 if test -z "$ac_top_builddir"; then
7933 ac_top_srcdir=.
7934 else
7935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7936 fi ;;
7937 [\\/]* | ?:[\\/]* ) # Absolute path.
7938 ac_srcdir=$srcdir$ac_dir_suffix;
7939 ac_top_srcdir=$srcdir ;;
7940 *) # Relative path.
7941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7943 esac
7945 # Do not use `cd foo && pwd` to compute absolute paths, because
7946 # the directories may not exist.
7947 case `pwd` in
7948 .) ac_abs_builddir="$ac_dir";;
7950 case "$ac_dir" in
7951 .) ac_abs_builddir=`pwd`;;
7952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7954 esac;;
7955 esac
7956 case $ac_abs_builddir in
7957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7959 case ${ac_top_builddir}. in
7960 .) ac_abs_top_builddir=$ac_abs_builddir;;
7961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7963 esac;;
7964 esac
7965 case $ac_abs_builddir in
7966 .) ac_abs_srcdir=$ac_srcdir;;
7968 case $ac_srcdir in
7969 .) ac_abs_srcdir=$ac_abs_builddir;;
7970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7972 esac;;
7973 esac
7974 case $ac_abs_builddir in
7975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7977 case $ac_top_srcdir in
7978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7981 esac;;
7982 esac
7985 cd $ac_dir
7987 # Check for guested configure; otherwise get Cygnus style configure.
7988 if test -f $ac_srcdir/configure.gnu; then
7989 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7990 elif test -f $ac_srcdir/configure; then
7991 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7992 elif test -f $ac_srcdir/configure.in; then
7993 ac_sub_configure=$ac_configure
7994 else
7995 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7997 ac_sub_configure=
8000 # The recursion is here.
8001 if test -n "$ac_sub_configure"; then
8002 # Make the cache file name correct relative to the subdirectory.
8003 case $cache_file in
8004 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8005 *) # Relative path.
8006 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8007 esac
8009 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8010 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8011 # The eval makes quoting arguments work.
8012 eval $ac_sub_configure $ac_sub_configure_args \
8013 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8014 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8015 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8016 { (exit 1); exit 1; }; }
8019 cd $ac_popdir
8020 done