Update symbols
[opal/cbnco.git] / configure
blob720864c833d355816d5669cc3a803c8a12ae6d92
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 OPAL_VERSION 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 OPAL_LID OPAL_IVR OPAL_ZRTP HAS_LIBZRTP OPAL_SRTP HAS_LIBSRTP 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-audio disable audio codec support
855 --disable-video disable video codec support
856 --disable-sip disable SIP protocol support
857 --disable-h323 disable H.323 protocol support
858 --disable-iax disable IAX2 protocol support
859 --disable-h224 disable H.224 protocol support
860 --disable-t38 disable T.38 protocol support
861 --disable-h460 disable H.460
862 --disable-lid disable LID support
863 --disable-ivr disable IVR support
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 _ACEOF
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 else
894 ac_dir_suffix= ac_top_builddir=
897 case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 esac
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
915 case `pwd` in
916 .) ac_abs_builddir="$ac_dir";;
918 case "$ac_dir" in
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
936 case $ac_srcdir in
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 esac;;
950 esac
952 cd $ac_dir
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
955 echo
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
958 echo
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
962 echo
963 $ac_configure --help
964 else
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 cd $ac_popdir
968 done
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
973 cat <<\_ACEOF
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
989 $ $0 $@
991 _ACEOF
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 _ASUNAME
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1025 } >&5
1027 cat >&5 <<_ACEOF
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1034 _ACEOF
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1049 for ac_arg
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1096 echo
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 esac;
1119 echo
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1220 done
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1323 echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 else
1331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332 for as_dir in $PATH
1334 IFS=$as_save_IFS
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 break 2
1342 done
1343 done
1347 CC=$ac_cv_prog_CC
1348 if test -n "$CC"; then
1349 echo "$as_me:$LINENO: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1351 else
1352 echo "$as_me:$LINENO: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$ac_cv_prog_CC"; then
1358 ac_ct_CC=$CC
1359 # Extract the first word of "gcc", so it can be a program name with args.
1360 set dummy gcc; ac_word=$2
1361 echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 if test -n "$ac_ct_CC"; then
1367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1368 else
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 ac_cv_prog_ac_ct_CC="gcc"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 break 2
1380 done
1381 done
1385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1386 if test -n "$ac_ct_CC"; then
1387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1388 echo "${ECHO_T}$ac_ct_CC" >&6
1389 else
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1394 CC=$ac_ct_CC
1395 else
1396 CC="$ac_cv_prog_CC"
1399 if test -z "$CC"; then
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}cc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1422 done
1423 done
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1438 ac_ct_CC=$CC
1439 # Extract the first word of "cc", so it can be a program name with args.
1440 set dummy cc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="cc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1460 done
1461 done
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 CC=$ac_ct_CC
1475 else
1476 CC="$ac_cv_prog_CC"
1480 if test -z "$CC"; then
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 ac_prog_rejected=no
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1500 ac_prog_rejected=yes
1501 continue
1503 ac_cv_prog_CC="cc"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 break 2
1507 done
1508 done
1510 if test $ac_prog_rejected = yes; then
1511 # We found a bogon in the path, so make sure we never use it.
1512 set dummy $ac_cv_prog_CC
1513 shift
1514 if test $# != 0; then
1515 # We chose a different compiler from the bogus one.
1516 # However, it has the same basename, so the bogon will be chosen
1517 # first if we set CC to just the basename; use the full file name.
1518 shift
1519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1524 CC=$ac_cv_prog_CC
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 for ac_prog in cl
1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 break 2
1559 done
1560 done
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1573 test -n "$CC" && break
1574 done
1576 if test -z "$CC"; then
1577 ac_ct_CC=$CC
1578 for ac_prog in cl
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1601 done
1602 done
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1615 test -n "$ac_ct_CC" && break
1616 done
1618 CC=$ac_ct_CC
1624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1625 See \`config.log' for more details." >&5
1626 echo "$as_me: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&2;}
1628 { (exit 1); exit 1; }; }
1630 # Provide some information about the compiler.
1631 echo "$as_me:$LINENO:" \
1632 "checking for C compiler version" >&5
1633 ac_compiler=`set X $ac_compile; echo $2`
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1635 (eval $ac_compiler --version </dev/null >&5) 2>&5
1636 ac_status=$?
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1640 (eval $ac_compiler -v </dev/null >&5) 2>&5
1641 ac_status=$?
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1645 (eval $ac_compiler -V </dev/null >&5) 2>&5
1646 ac_status=$?
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1650 cat >conftest.$ac_ext <<_ACEOF
1651 /* confdefs.h. */
1652 _ACEOF
1653 cat confdefs.h >>conftest.$ac_ext
1654 cat >>conftest.$ac_ext <<_ACEOF
1655 /* end confdefs.h. */
1658 main ()
1662 return 0;
1664 _ACEOF
1665 ac_clean_files_save=$ac_clean_files
1666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1667 # Try to create an executable without -o first, disregard a.out.
1668 # It will help us diagnose broken compilers, and finding out an intuition
1669 # of exeext.
1670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1674 (eval $ac_link_default) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }; then
1678 # Find the output, starting from the most likely. This scheme is
1679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1680 # resort.
1682 # Be careful to initialize this variable, since it used to be cached.
1683 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1684 ac_cv_exeext=
1685 # b.out is created by i960 compilers.
1686 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1688 test -f "$ac_file" || continue
1689 case $ac_file in
1690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1692 conftest.$ac_ext )
1693 # This is the source file.
1695 [ab].out )
1696 # We found the default executable, but exeext='' is most
1697 # certainly right.
1698 break;;
1699 *.* )
1700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool,
1702 # but it would be cool to find out if it's true. Does anybody
1703 # maintain Libtool? --akim.
1704 export ac_cv_exeext
1705 break;;
1707 break;;
1708 esac
1709 done
1710 else
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1715 See \`config.log' for more details." >&5
1716 echo "$as_me: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&2;}
1718 { (exit 77); exit 77; }; }
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732 if { ac_try='./$ac_file'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1734 (eval $ac_try) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1738 cross_compiling=no
1739 else
1740 if test "$cross_compiling" = maybe; then
1741 cross_compiling=yes
1742 else
1743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'.
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1757 ac_clean_files=$ac_clean_files_save
1758 # Check the compiler produces executables we can run. If not, either
1759 # the compiler is broken, or we cross compile.
1760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1763 echo "${ECHO_T}$cross_compiling" >&6
1765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1768 (eval $ac_link) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1774 # work properly (i.e., refer to `conftest.exe'), while it won't with
1775 # `rm'.
1776 for ac_file in conftest.exe conftest conftest.*; do
1777 test -f "$ac_file" || continue
1778 case $ac_file in
1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785 done
1786 else
1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1794 rm -f conftest$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1796 echo "${ECHO_T}$ac_cv_exeext" >&6
1798 rm -f conftest.$ac_ext
1799 EXEEXT=$ac_cv_exeext
1800 ac_exeext=$EXEEXT
1801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1803 if test "${ac_cv_objext+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 cat >conftest.$ac_ext <<_ACEOF
1807 /* confdefs.h. */
1808 _ACEOF
1809 cat confdefs.h >>conftest.$ac_ext
1810 cat >>conftest.$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1814 main ()
1818 return 0;
1820 _ACEOF
1821 rm -f conftest.o conftest.obj
1822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1828 case $ac_file in
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1831 break;;
1832 esac
1833 done
1834 else
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT=$ac_cv_objext
1850 ac_objext=$OBJEXT
1851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h. */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1864 main ()
1866 #ifndef __GNUC__
1867 choke me
1868 #endif
1871 return 0;
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>conftest.er1
1877 ac_status=$?
1878 grep -v '^ *+' conftest.er1 >conftest.err
1879 rm -f conftest.er1
1880 cat conftest.err >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); } &&
1883 { ac_try='test -z "$ac_c_werror_flag"
1884 || test ! -s conftest.err'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 ac_compiler_gnu=yes
1897 else
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_compiler_gnu=no
1903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909 GCC=`test $ac_compiler_gnu = yes && echo yes`
1910 ac_test_CFLAGS=${CFLAGS+set}
1911 ac_save_CFLAGS=$CFLAGS
1912 CFLAGS="-g"
1913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915 if test "${ac_cv_prog_cc_g+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1926 main ()
1930 return 0;
1932 _ACEOF
1933 rm -f conftest.$ac_objext
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>conftest.er1
1936 ac_status=$?
1937 grep -v '^ *+' conftest.er1 >conftest.err
1938 rm -f conftest.er1
1939 cat conftest.err >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -z "$ac_c_werror_flag"
1943 || test ! -s conftest.err'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1955 ac_cv_prog_cc_g=yes
1956 else
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_cv_prog_cc_g=no
1962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 if test "$ac_test_CFLAGS" = set; then
1967 CFLAGS=$ac_save_CFLAGS
1968 elif test $ac_cv_prog_cc_g = yes; then
1969 if test "$GCC" = yes; then
1970 CFLAGS="-g -O2"
1971 else
1972 CFLAGS="-g"
1974 else
1975 if test "$GCC" = yes; then
1976 CFLAGS="-O2"
1977 else
1978 CFLAGS=
1981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 ac_cv_prog_cc_stdc=no
1987 ac_save_CC=$CC
1988 cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h. */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1994 #include <stdarg.h>
1995 #include <stdio.h>
1996 #include <sys/types.h>
1997 #include <sys/stat.h>
1998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 struct buf { int x; };
2000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 static char *e (p, i)
2002 char **p;
2003 int i;
2005 return p[i];
2007 static char *f (char * (*g) (char **, int), char **p, ...)
2009 char *s;
2010 va_list v;
2011 va_start (v,p);
2012 s = g (p, va_arg (v,int));
2013 va_end (v);
2014 return s;
2017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 function prototypes and stuff, but not '\xHH' hex character constants.
2019 These don't provoke an error unfortunately, instead are silently treated
2020 as 'x'. The following induces an error, until -std1 is added to get
2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 array size at least. It's necessary to write '\x00'==0 to get something
2023 that's true only with -std1. */
2024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2026 int test (int i, double x);
2027 struct s1 {int (*f) (int a);};
2028 struct s2 {int (*f) (double a);};
2029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2030 int argc;
2031 char **argv;
2033 main ()
2035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2037 return 0;
2039 _ACEOF
2040 # Don't try gcc -ansi; that turns off useful extensions and
2041 # breaks some systems' header files.
2042 # AIX -qlanglvl=ansi
2043 # Ultrix and OSF/1 -std1
2044 # HP-UX 10.20 and later -Ae
2045 # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 # SVR4 -Xc -D__EXTENSIONS__
2047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 CC="$ac_save_CC $ac_arg"
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_stdc=$ac_arg
2073 break
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2079 rm -f conftest.err conftest.$ac_objext
2080 done
2081 rm -f conftest.$ac_ext conftest.$ac_objext
2082 CC=$ac_save_CC
2086 case "x$ac_cv_prog_cc_stdc" in
2087 x|xno)
2088 echo "$as_me:$LINENO: result: none needed" >&5
2089 echo "${ECHO_T}none needed" >&6 ;;
2091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2093 CC="$CC $ac_cv_prog_cc_stdc" ;;
2094 esac
2096 # Some people use a C++ compiler to compile C. Since we use `exit',
2097 # in C++ we need to declare it. In case someone uses the same compiler
2098 # for both compiling C and C++ we need to have the C++ compiler decide
2099 # the declaration of exit, since it's the most demanding environment.
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #ifndef __cplusplus
2102 choke me
2103 #endif
2104 _ACEOF
2105 rm -f conftest.$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 for ac_declaration in \
2128 '' \
2129 'extern "C" void std::exit (int) throw (); using std::exit;' \
2130 'extern "C" void std::exit (int); using std::exit;' \
2131 'extern "C" void exit (int) throw ();' \
2132 'extern "C" void exit (int);' \
2133 'void exit (int);'
2135 cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h. */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2141 $ac_declaration
2142 #include <stdlib.h>
2144 main ()
2146 exit (42);
2148 return 0;
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2178 continue
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 $ac_declaration
2189 main ()
2191 exit (42);
2193 return 0;
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 break
2219 else
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226 rm -f conftest*
2227 if test -n "$ac_declaration"; then
2228 echo '#ifdef __cplusplus' >>confdefs.h
2229 echo $ac_declaration >>confdefs.h
2230 echo '#endif' >>confdefs.h
2233 else
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 ac_ext=cc
2246 ac_cpp='$CXXCPP $CPPFLAGS'
2247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2250 if test -n "$ac_tool_prefix"; then
2251 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CXX+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 if test -n "$CXX"; then
2261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2279 CXX=$ac_cv_prog_CXX
2280 if test -n "$CXX"; then
2281 echo "$as_me:$LINENO: result: $CXX" >&5
2282 echo "${ECHO_T}$CXX" >&6
2283 else
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2288 test -n "$CXX" && break
2289 done
2291 if test -z "$CXX"; then
2292 ac_ct_CXX=$CXX
2293 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2295 # Extract the first word of "$ac_prog", so it can be a program name with args.
2296 set dummy $ac_prog; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 if test -n "$ac_ct_CXX"; then
2303 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_ac_ct_CXX="$ac_prog"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 break 2
2316 done
2317 done
2321 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2322 if test -n "$ac_ct_CXX"; then
2323 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2324 echo "${ECHO_T}$ac_ct_CXX" >&6
2325 else
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2330 test -n "$ac_ct_CXX" && break
2331 done
2332 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2334 CXX=$ac_ct_CXX
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO:" \
2340 "checking for C++ compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2343 (eval $ac_compiler --version </dev/null >&5) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2348 (eval $ac_compiler -v </dev/null >&5) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2353 (eval $ac_compiler -V </dev/null >&5) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2360 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2371 main ()
2373 #ifndef __GNUC__
2374 choke me
2375 #endif
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_cxx_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_compiler_gnu=yes
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_compiler_gnu=no
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2416 GXX=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CXXFLAGS=${CXXFLAGS+set}
2418 ac_save_CXXFLAGS=$CXXFLAGS
2419 CXXFLAGS="-g"
2420 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2421 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cxx_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_cxx_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_cv_prog_cxx_g=yes
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 ac_cv_prog_cxx_g=no
2469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2473 if test "$ac_test_CXXFLAGS" = set; then
2474 CXXFLAGS=$ac_save_CXXFLAGS
2475 elif test $ac_cv_prog_cxx_g = yes; then
2476 if test "$GXX" = yes; then
2477 CXXFLAGS="-g -O2"
2478 else
2479 CXXFLAGS="-g"
2481 else
2482 if test "$GXX" = yes; then
2483 CXXFLAGS="-O2"
2484 else
2485 CXXFLAGS=
2488 for ac_declaration in \
2489 '' \
2490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2491 'extern "C" void std::exit (int); using std::exit;' \
2492 'extern "C" void exit (int) throw ();' \
2493 'extern "C" void exit (int);' \
2494 'void exit (int);'
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h. */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2502 $ac_declaration
2503 #include <stdlib.h>
2505 main ()
2507 exit (42);
2509 return 0;
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_cxx_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2539 continue
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548 $ac_declaration
2550 main ()
2552 exit (42);
2554 return 0;
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_cxx_werror_flag"
2567 || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 break
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 done
2587 rm -f conftest*
2588 if test -n "$ac_declaration"; then
2589 echo '#ifdef __cplusplus' >>confdefs.h
2590 echo $ac_declaration >>confdefs.h
2591 echo '#endif' >>confdefs.h
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 REQUIRED_PWLIB_MAJOR=1
2602 REQUIRED_PWLIB_MINOR=11
2603 REQUIRED_PWLIB_BUILD=0
2606 OPALDIR=`pwd`
2609 if test "x$prefix" = "xNONE"; then
2610 INSTALLPREFIX="/usr/local"
2611 else
2612 INSTALLPREFIX="${prefix}"
2617 LIBDIR="${libdir}"
2623 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2624 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2625 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2626 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2627 cat >>confdefs.h <<_ACEOF
2628 #define OPAL_MAJOR ${MAJOR_VERSION}
2629 _ACEOF
2631 cat >>confdefs.h <<_ACEOF
2632 #define OPAL_MINOR ${MINOR_VERSION}
2633 _ACEOF
2635 cat >>confdefs.h <<_ACEOF
2636 #define OPAL_BUILD ${BUILD_NUMBER}
2637 _ACEOF
2639 cat >>confdefs.h <<_ACEOF
2640 #define OPAL_VERSION "$OPAL_VERSION"
2641 _ACEOF
2644 { echo "$as_me:$LINENO: Opal version is ${OPAL_VERSION}" >&5
2645 echo "$as_me: Opal version is ${OPAL_VERSION}" >&6;};
2647 #use to set the version in opal.pc
2651 if test "${PWLIBDIR:-unset}" != "unset" ; then
2652 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2653 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2654 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2655 if eval "test \"\${$as_ac_File+set}\" = set"; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 test "$cross_compiling" = yes &&
2659 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2660 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2661 { (exit 1); exit 1; }; }
2662 if test -r "${PWLIBDIR}/version.h"; then
2663 eval "$as_ac_File=yes"
2664 else
2665 eval "$as_ac_File=no"
2668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2669 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2670 if test `eval echo '${'$as_ac_File'}'` = yes; then
2671 HAS_PTLIB=1
2675 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2676 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2677 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2678 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2679 if eval "test \"\${$as_ac_File+set}\" = set"; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 test "$cross_compiling" = yes &&
2683 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2684 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2685 { (exit 1); exit 1; }; }
2686 if test -r "${OPALDIR}/../pwlib/version.h"; then
2687 eval "$as_ac_File=yes"
2688 else
2689 eval "$as_ac_File=no"
2692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2693 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2694 if test `eval echo '${'$as_ac_File'}'` = yes; then
2695 HAS_PTLIB=1
2698 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2699 PWLIBDIR="${OPALDIR}/../pwlib"
2700 else
2701 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2702 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2703 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2704 if eval "test \"\${$as_ac_File+set}\" = set"; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 test "$cross_compiling" = yes &&
2708 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2709 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2710 { (exit 1); exit 1; }; }
2711 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2712 eval "$as_ac_File=yes"
2713 else
2714 eval "$as_ac_File=no"
2717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2718 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2719 if test `eval echo '${'$as_ac_File'}'` = yes; then
2720 HAS_PTLIB=1
2723 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2724 PWLIBDIR="${HOME}/pwlib"
2725 else
2726 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2727 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2728 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 test "$cross_compiling" = yes &&
2732 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2733 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2734 { (exit 1); exit 1; }; }
2735 if test -r "/usr/local/include/ptlib.h"; then
2736 ac_cv_file__usr_local_include_ptlib_h=yes
2737 else
2738 ac_cv_file__usr_local_include_ptlib_h=no
2741 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2742 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2743 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2744 HAS_PTLIB=1
2747 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2748 # Extract the first word of "ptlib-config", so it can be a program name with args.
2749 set dummy ptlib-config; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 case $PTLIB_CONFIG in
2756 [\\/]* | ?:[\\/]*)
2757 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in /usr/local/bin
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2775 esac
2777 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2779 if test -n "$PTLIB_CONFIG"; then
2780 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2781 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2782 else
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2787 else
2788 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2789 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2790 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 test "$cross_compiling" = yes &&
2794 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2795 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2796 { (exit 1); exit 1; }; }
2797 if test -r "/usr/include/ptlib.h"; then
2798 ac_cv_file__usr_include_ptlib_h=yes
2799 else
2800 ac_cv_file__usr_include_ptlib_h=no
2803 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2804 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2805 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2806 HAS_PTLIB=1
2809 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2810 # Extract the first word of "ptlib-config", so it can be a program name with args.
2811 set dummy ptlib-config; ac_word=$2
2812 echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 case $PTLIB_CONFIG in
2818 [\\/]* | ?:[\\/]*)
2819 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in /usr/share/pwlib/make/
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2837 esac
2839 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2841 if test -n "$PTLIB_CONFIG"; then
2842 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2843 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2844 else
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2849 else
2850 as_ac_File=`echo "ac_cv_file_${prefix}/include/ptlib.h" | $as_tr_sh`
2851 echo "$as_me:$LINENO: checking for ${prefix}/include/ptlib.h" >&5
2852 echo $ECHO_N "checking for ${prefix}/include/ptlib.h... $ECHO_C" >&6
2853 if eval "test \"\${$as_ac_File+set}\" = set"; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 test "$cross_compiling" = yes &&
2857 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2858 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2859 { (exit 1); exit 1; }; }
2860 if test -r "${prefix}/include/ptlib.h"; then
2861 eval "$as_ac_File=yes"
2862 else
2863 eval "$as_ac_File=no"
2866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2867 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2868 if test `eval echo '${'$as_ac_File'}'` = yes; then
2869 HAS_PTLIB=1
2872 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2873 # Extract the first word of "ptlib-config", so it can be a program name with args.
2874 set dummy ptlib-config; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 case $PTLIB_CONFIG in
2881 [\\/]* | ?:[\\/]*)
2882 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in ${prefix}/bin
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2900 esac
2902 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2904 if test -n "$PTLIB_CONFIG"; then
2905 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2906 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2919 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2920 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
2921 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
2922 { (exit 1); exit 1; }; }
2925 if test "${PWLIBDIR:-unset}" = "unset" ; then
2926 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2927 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
2928 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
2929 { (exit 1); exit 1; }; }
2931 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2934 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2935 PWLIBDIR="/usr/share/pwlib/"
2937 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2938 PWLIBDIR="/usr/local/share/pwlib/"
2940 if test "x$PWLIBDIR" = "x${prefix}"; then
2941 PWLIBDIR="${prefix}/share/pwlib/"
2945 echo "PWLib prefix set to.... $PWLIBDIR"
2947 if test "${PWLIBDIR:-unset}" = "unset" ; then
2948 PWVERSION=`$PTLIB_CONFIG --version`
2949 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2950 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2951 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2953 else
2954 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2955 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2956 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2957 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2960 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2961 if test "${enable_versioncheck+set}" = set; then
2962 enableval="$enable_versioncheck"
2963 PWLIB_VERSION_CHECK=$enableval
2966 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2967 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2968 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2969 echo "$as_me:$LINENO: result: check disabled" >&5
2970 echo "${ECHO_T}check disabled" >&6
2971 else
2972 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2973 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2974 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
2975 { (exit 1); exit 1; }; }
2977 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2978 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2979 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
2980 { (exit 1); exit 1; }; }
2982 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2983 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2984 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
2985 { (exit 1); exit 1; }; }
2987 echo "$as_me:$LINENO: result: ok" >&5
2988 echo "${ECHO_T}ok" >&6
2994 if test x$GXX = xyes ; then
2995 USE_GCC=yes
2996 gcc_version=`$CXX -dumpversion`
2997 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2998 echo "$as_me: gcc version is $gcc_version" >&6;};
2999 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
3000 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
3001 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
3003 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
3004 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
3005 if test ${GXX_MAJOR} -lt 3 ; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
3009 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
3010 { (exit 1); exit 1; }; }
3011 else
3012 echo "$as_me:$LINENO: result: yes" >&5
3013 echo "${ECHO_T}yes" >&6
3018 localspeex="xxx"
3019 # Check whether --enable-localspeex or --disable-localspeex was given.
3020 if test "${enable_localspeex+set}" = set; then
3021 enableval="$enable_localspeex"
3022 localspeex=$enableval
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3032 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3033 # On Suns, sometimes $CPP names a directory.
3034 if test -n "$CPP" && test -d "$CPP"; then
3035 CPP=
3037 if test -z "$CPP"; then
3038 if test "${ac_cv_prog_CPP+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 # Double quotes because CPP needs to be expanded
3042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3044 ac_preproc_ok=false
3045 for ac_c_preproc_warn_flag in '' yes
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
3049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
3051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #ifdef __STDC__
3060 # include <limits.h>
3061 #else
3062 # include <assert.h>
3063 #endif
3064 Syntax error
3065 _ACEOF
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077 else
3078 ac_cpp_err=
3080 else
3081 ac_cpp_err=yes
3083 if test -z "$ac_cpp_err"; then
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 # Broken: fails on valid input.
3090 continue
3092 rm -f conftest.err conftest.$ac_ext
3094 # OK, works on sane cases. Now check whether non-existent headers
3095 # can be detected and how.
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <ac_nonexistent.h>
3103 _ACEOF
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
3114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115 else
3116 ac_cpp_err=
3118 else
3119 ac_cpp_err=yes
3121 if test -z "$ac_cpp_err"; then
3122 # Broken: success on invalid input.
3123 continue
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 # Passes both tests.
3129 ac_preproc_ok=:
3130 break
3132 rm -f conftest.err conftest.$ac_ext
3134 done
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.err conftest.$ac_ext
3137 if $ac_preproc_ok; then
3138 break
3141 done
3142 ac_cv_prog_CPP=$CPP
3145 CPP=$ac_cv_prog_CPP
3146 else
3147 ac_cv_prog_CPP=$CPP
3149 echo "$as_me:$LINENO: result: $CPP" >&5
3150 echo "${ECHO_T}$CPP" >&6
3151 ac_preproc_ok=false
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 #ifdef __STDC__
3167 # include <limits.h>
3168 #else
3169 # include <assert.h>
3170 #endif
3171 Syntax error
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 else
3185 ac_cpp_err=
3187 else
3188 ac_cpp_err=yes
3190 if test -z "$ac_cpp_err"; then
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 # Broken: fails on valid input.
3197 continue
3199 rm -f conftest.err conftest.$ac_ext
3201 # OK, works on sane cases. Now check whether non-existent headers
3202 # can be detected and how.
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <ac_nonexistent.h>
3210 _ACEOF
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev/null; then
3219 if test -s conftest.err; then
3220 ac_cpp_err=$ac_c_preproc_warn_flag
3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222 else
3223 ac_cpp_err=
3225 else
3226 ac_cpp_err=yes
3228 if test -z "$ac_cpp_err"; then
3229 # Broken: success on invalid input.
3230 continue
3231 else
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 # Passes both tests.
3236 ac_preproc_ok=:
3237 break
3239 rm -f conftest.err conftest.$ac_ext
3241 done
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3246 else
3247 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3248 See \`config.log' for more details." >&5
3249 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3250 See \`config.log' for more details." >&2;}
3251 { (exit 1); exit 1; }; }
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 echo "$as_me:$LINENO: checking for egrep" >&5
3262 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3263 if test "${ac_cv_prog_egrep+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3267 then ac_cv_prog_egrep='grep -E'
3268 else ac_cv_prog_egrep='egrep'
3271 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3272 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3273 EGREP=$ac_cv_prog_egrep
3276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3278 if test "${ac_cv_header_stdc+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdlib.h>
3288 #include <stdarg.h>
3289 #include <string.h>
3290 #include <float.h>
3293 main ()
3297 return 0;
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_header_stdc=yes
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_cv_header_stdc=no
3329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3331 if test $ac_cv_header_stdc = yes; then
3332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <string.h>
3341 _ACEOF
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 $EGREP "memchr" >/dev/null 2>&1; then
3345 else
3346 ac_cv_header_stdc=no
3348 rm -f conftest*
3352 if test $ac_cv_header_stdc = yes; then
3353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdlib.h>
3362 _ACEOF
3363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3364 $EGREP "free" >/dev/null 2>&1; then
3366 else
3367 ac_cv_header_stdc=no
3369 rm -f conftest*
3373 if test $ac_cv_header_stdc = yes; then
3374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3375 if test "$cross_compiling" = yes; then
3377 else
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #include <ctype.h>
3385 #if ((' ' & 0x0FF) == 0x020)
3386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3388 #else
3389 # define ISLOWER(c) \
3390 (('a' <= (c) && (c) <= 'i') \
3391 || ('j' <= (c) && (c) <= 'r') \
3392 || ('s' <= (c) && (c) <= 'z'))
3393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3394 #endif
3396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3398 main ()
3400 int i;
3401 for (i = 0; i < 256; i++)
3402 if (XOR (islower (i), ISLOWER (i))
3403 || toupper (i) != TOUPPER (i))
3404 exit(2);
3405 exit (0);
3407 _ACEOF
3408 rm -f conftest$ac_exeext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3410 (eval $ac_link) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3420 else
3421 echo "$as_me: program exited with status $ac_status" >&5
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 ( exit $ac_status )
3426 ac_cv_header_stdc=no
3428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3434 if test $ac_cv_header_stdc = yes; then
3436 cat >>confdefs.h <<\_ACEOF
3437 #define STDC_HEADERS 1
3438 _ACEOF
3442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3453 inttypes.h stdint.h unistd.h
3455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3456 echo "$as_me:$LINENO: checking for $ac_header" >&5
3457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467 $ac_includes_default
3469 #include <$ac_header>
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -z "$ac_c_werror_flag"
3481 || test ! -s conftest.err'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; } &&
3487 { ac_try='test -s conftest.$ac_objext'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 eval "$as_ac_Header=yes"
3494 else
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 eval "$as_ac_Header=no"
3500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3505 cat >>confdefs.h <<_ACEOF
3506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3507 _ACEOF
3511 done
3514 echo "$as_me:$LINENO: checking for short" >&5
3515 echo $ECHO_N "checking for short... $ECHO_C" >&6
3516 if test "${ac_cv_type_short+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 $ac_includes_default
3527 main ()
3529 if ((short *) 0)
3530 return 0;
3531 if (sizeof (short))
3532 return 0;
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_type_short=yes
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 ac_cv_type_short=no
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3568 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3569 echo "${ECHO_T}$ac_cv_type_short" >&6
3571 echo "$as_me:$LINENO: checking size of short" >&5
3572 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3573 if test "${ac_cv_sizeof_short+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 if test "$ac_cv_type_short" = yes; then
3577 # The cast to unsigned long works around a bug in the HP C Compiler
3578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3580 # This bug is HP SR number 8606223364.
3581 if test "$cross_compiling" = yes; then
3582 # Depending upon the size, compute the lo and hi bounds.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 $ac_includes_default
3591 main ()
3593 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3594 test_array [0] = 0
3597 return 0;
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_c_werror_flag"
3610 || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_lo=0 ac_mid=0
3623 while :; do
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 $ac_includes_default
3632 main ()
3634 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3635 test_array [0] = 0
3638 return 0;
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_hi=$ac_mid; break
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 ac_lo=`expr $ac_mid + 1`
3669 if test $ac_lo -le $ac_mid; then
3670 ac_lo= ac_hi=
3671 break
3673 ac_mid=`expr 2 '*' $ac_mid + 1`
3675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3676 done
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 $ac_includes_default
3689 main ()
3691 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3692 test_array [0] = 0
3695 return 0;
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 ac_hi=-1 ac_mid=-1
3721 while :; do
3722 cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h. */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 $ac_includes_default
3730 main ()
3732 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3733 test_array [0] = 0
3736 return 0;
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag"
3749 || test ! -s conftest.err'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_lo=$ac_mid; break
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 ac_hi=`expr '(' $ac_mid ')' - 1`
3767 if test $ac_mid -le $ac_hi; then
3768 ac_lo= ac_hi=
3769 break
3771 ac_mid=`expr 2 '*' $ac_mid`
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 done
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3779 ac_lo= ac_hi=
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3784 # Binary search between lo and hi bounds.
3785 while test "x$ac_lo" != "x$ac_hi"; do
3786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3787 cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 $ac_includes_default
3795 main ()
3797 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3798 test_array [0] = 0
3801 return 0;
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_hi=$ac_mid
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 ac_lo=`expr '(' $ac_mid ')' + 1`
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834 done
3835 case $ac_lo in
3836 ?*) ac_cv_sizeof_short=$ac_lo;;
3837 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3838 See \`config.log' for more details." >&5
3839 echo "$as_me: error: cannot compute sizeof (short), 77
3840 See \`config.log' for more details." >&2;}
3841 { (exit 1); exit 1; }; } ;;
3842 esac
3843 else
3844 if test "$cross_compiling" = yes; then
3845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3846 See \`config.log' for more details." >&5
3847 echo "$as_me: error: cannot run test program while cross compiling
3848 See \`config.log' for more details." >&2;}
3849 { (exit 1); exit 1; }; }
3850 else
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 $ac_includes_default
3858 long longval () { return (long) (sizeof (short)); }
3859 unsigned long ulongval () { return (long) (sizeof (short)); }
3860 #include <stdio.h>
3861 #include <stdlib.h>
3863 main ()
3866 FILE *f = fopen ("conftest.val", "w");
3867 if (! f)
3868 exit (1);
3869 if (((long) (sizeof (short))) < 0)
3871 long i = longval ();
3872 if (i != ((long) (sizeof (short))))
3873 exit (1);
3874 fprintf (f, "%ld\n", i);
3876 else
3878 unsigned long i = ulongval ();
3879 if (i != ((long) (sizeof (short))))
3880 exit (1);
3881 fprintf (f, "%lu\n", i);
3883 exit (ferror (f) || fclose (f) != 0);
3886 return 0;
3888 _ACEOF
3889 rm -f conftest$ac_exeext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3891 (eval $ac_link) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_sizeof_short=`cat conftest.val`
3901 else
3902 echo "$as_me: program exited with status $ac_status" >&5
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3906 ( exit $ac_status )
3907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3908 See \`config.log' for more details." >&5
3909 echo "$as_me: error: cannot compute sizeof (short), 77
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }
3913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3916 rm -f conftest.val
3917 else
3918 ac_cv_sizeof_short=0
3921 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3922 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3923 cat >>confdefs.h <<_ACEOF
3924 #define SIZEOF_SHORT $ac_cv_sizeof_short
3925 _ACEOF
3928 echo "$as_me:$LINENO: checking for int" >&5
3929 echo $ECHO_N "checking for int... $ECHO_C" >&6
3930 if test "${ac_cv_type_int+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 $ac_includes_default
3941 main ()
3943 if ((int *) 0)
3944 return 0;
3945 if (sizeof (int))
3946 return 0;
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_cv_type_int=yes
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ac_cv_type_int=no
3980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3983 echo "${ECHO_T}$ac_cv_type_int" >&6
3985 echo "$as_me:$LINENO: checking size of int" >&5
3986 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3987 if test "${ac_cv_sizeof_int+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 if test "$ac_cv_type_int" = yes; then
3991 # The cast to unsigned long works around a bug in the HP C Compiler
3992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3994 # This bug is HP SR number 8606223364.
3995 if test "$cross_compiling" = yes; then
3996 # Depending upon the size, compute the lo and hi bounds.
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 $ac_includes_default
4005 main ()
4007 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4008 test_array [0] = 0
4011 return 0;
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016 (eval $ac_compile) 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 { ac_try='test -z "$ac_c_werror_flag"
4024 || test ! -s conftest.err'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_lo=0 ac_mid=0
4037 while :; do
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 $ac_includes_default
4046 main ()
4048 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4049 test_array [0] = 0
4052 return 0;
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>conftest.er1
4058 ac_status=$?
4059 grep -v '^ *+' conftest.er1 >conftest.err
4060 rm -f conftest.er1
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -z "$ac_c_werror_flag"
4065 || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_hi=$ac_mid; break
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 ac_lo=`expr $ac_mid + 1`
4083 if test $ac_lo -le $ac_mid; then
4084 ac_lo= ac_hi=
4085 break
4087 ac_mid=`expr 2 '*' $ac_mid + 1`
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090 done
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 $ac_includes_default
4103 main ()
4105 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4106 test_array [0] = 0
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag"
4122 || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_hi=-1 ac_mid=-1
4135 while :; do
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4144 main ()
4146 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4147 test_array [0] = 0
4150 return 0;
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_lo=$ac_mid; break
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_hi=`expr '(' $ac_mid ')' - 1`
4181 if test $ac_mid -le $ac_hi; then
4182 ac_lo= ac_hi=
4183 break
4185 ac_mid=`expr 2 '*' $ac_mid`
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 done
4189 else
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ac_lo= ac_hi=
4195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4198 # Binary search between lo and hi bounds.
4199 while test "x$ac_lo" != "x$ac_hi"; do
4200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 $ac_includes_default
4209 main ()
4211 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4212 test_array [0] = 0
4215 return 0;
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_hi=$ac_mid
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_lo=`expr '(' $ac_mid ')' + 1`
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 case $ac_lo in
4250 ?*) ac_cv_sizeof_int=$ac_lo;;
4251 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4252 See \`config.log' for more details." >&5
4253 echo "$as_me: error: cannot compute sizeof (int), 77
4254 See \`config.log' for more details." >&2;}
4255 { (exit 1); exit 1; }; } ;;
4256 esac
4257 else
4258 if test "$cross_compiling" = yes; then
4259 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4260 See \`config.log' for more details." >&5
4261 echo "$as_me: error: cannot run test program while cross compiling
4262 See \`config.log' for more details." >&2;}
4263 { (exit 1); exit 1; }; }
4264 else
4265 cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 $ac_includes_default
4272 long longval () { return (long) (sizeof (int)); }
4273 unsigned long ulongval () { return (long) (sizeof (int)); }
4274 #include <stdio.h>
4275 #include <stdlib.h>
4277 main ()
4280 FILE *f = fopen ("conftest.val", "w");
4281 if (! f)
4282 exit (1);
4283 if (((long) (sizeof (int))) < 0)
4285 long i = longval ();
4286 if (i != ((long) (sizeof (int))))
4287 exit (1);
4288 fprintf (f, "%ld\n", i);
4290 else
4292 unsigned long i = ulongval ();
4293 if (i != ((long) (sizeof (int))))
4294 exit (1);
4295 fprintf (f, "%lu\n", i);
4297 exit (ferror (f) || fclose (f) != 0);
4300 return 0;
4302 _ACEOF
4303 rm -f conftest$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_sizeof_int=`cat conftest.val`
4315 else
4316 echo "$as_me: program exited with status $ac_status" >&5
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4320 ( exit $ac_status )
4321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4322 See \`config.log' for more details." >&5
4323 echo "$as_me: error: cannot compute sizeof (int), 77
4324 See \`config.log' for more details." >&2;}
4325 { (exit 1); exit 1; }; }
4327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4330 rm -f conftest.val
4331 else
4332 ac_cv_sizeof_int=0
4335 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4336 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4337 cat >>confdefs.h <<_ACEOF
4338 #define SIZEOF_INT $ac_cv_sizeof_int
4339 _ACEOF
4342 echo "$as_me:$LINENO: checking for long" >&5
4343 echo $ECHO_N "checking for long... $ECHO_C" >&6
4344 if test "${ac_cv_type_long+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 $ac_includes_default
4355 main ()
4357 if ((long *) 0)
4358 return 0;
4359 if (sizeof (long))
4360 return 0;
4362 return 0;
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_type_long=yes
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_type_long=no
4394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4397 echo "${ECHO_T}$ac_cv_type_long" >&6
4399 echo "$as_me:$LINENO: checking size of long" >&5
4400 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4401 if test "${ac_cv_sizeof_long+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test "$ac_cv_type_long" = yes; then
4405 # The cast to unsigned long works around a bug in the HP C Compiler
4406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4408 # This bug is HP SR number 8606223364.
4409 if test "$cross_compiling" = yes; then
4410 # Depending upon the size, compute the lo and hi bounds.
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h. */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 $ac_includes_default
4419 main ()
4421 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4422 test_array [0] = 0
4425 return 0;
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_lo=0 ac_mid=0
4451 while :; do
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4460 main ()
4462 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4463 test_array [0] = 0
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag"
4479 || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_hi=$ac_mid; break
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_lo=`expr $ac_mid + 1`
4497 if test $ac_lo -le $ac_mid; then
4498 ac_lo= ac_hi=
4499 break
4501 ac_mid=`expr 2 '*' $ac_mid + 1`
4503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4504 done
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4517 main ()
4519 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4520 test_array [0] = 0
4523 return 0;
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_hi=-1 ac_mid=-1
4549 while :; do
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 $ac_includes_default
4558 main ()
4560 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4561 test_array [0] = 0
4564 return 0;
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try='test -z "$ac_c_werror_flag"
4577 || test ! -s conftest.err'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 ac_lo=$ac_mid; break
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 ac_hi=`expr '(' $ac_mid ')' - 1`
4595 if test $ac_mid -le $ac_hi; then
4596 ac_lo= ac_hi=
4597 break
4599 ac_mid=`expr 2 '*' $ac_mid`
4601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4602 done
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_lo= ac_hi=
4609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 # Binary search between lo and hi bounds.
4613 while test "x$ac_lo" != "x$ac_hi"; do
4614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 $ac_includes_default
4623 main ()
4625 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4626 test_array [0] = 0
4629 return 0;
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -z "$ac_c_werror_flag"
4642 || test ! -s conftest.err'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 ac_hi=$ac_mid
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 ac_lo=`expr '(' $ac_mid ')' + 1`
4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4662 done
4663 case $ac_lo in
4664 ?*) ac_cv_sizeof_long=$ac_lo;;
4665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4666 See \`config.log' for more details." >&5
4667 echo "$as_me: error: cannot compute sizeof (long), 77
4668 See \`config.log' for more details." >&2;}
4669 { (exit 1); exit 1; }; } ;;
4670 esac
4671 else
4672 if test "$cross_compiling" = yes; then
4673 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4674 See \`config.log' for more details." >&5
4675 echo "$as_me: error: cannot run test program while cross compiling
4676 See \`config.log' for more details." >&2;}
4677 { (exit 1); exit 1; }; }
4678 else
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 $ac_includes_default
4686 long longval () { return (long) (sizeof (long)); }
4687 unsigned long ulongval () { return (long) (sizeof (long)); }
4688 #include <stdio.h>
4689 #include <stdlib.h>
4691 main ()
4694 FILE *f = fopen ("conftest.val", "w");
4695 if (! f)
4696 exit (1);
4697 if (((long) (sizeof (long))) < 0)
4699 long i = longval ();
4700 if (i != ((long) (sizeof (long))))
4701 exit (1);
4702 fprintf (f, "%ld\n", i);
4704 else
4706 unsigned long i = ulongval ();
4707 if (i != ((long) (sizeof (long))))
4708 exit (1);
4709 fprintf (f, "%lu\n", i);
4711 exit (ferror (f) || fclose (f) != 0);
4714 return 0;
4716 _ACEOF
4717 rm -f conftest$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_sizeof_long=`cat conftest.val`
4729 else
4730 echo "$as_me: program exited with status $ac_status" >&5
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 ( exit $ac_status )
4735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4736 See \`config.log' for more details." >&5
4737 echo "$as_me: error: cannot compute sizeof (long), 77
4738 See \`config.log' for more details." >&2;}
4739 { (exit 1); exit 1; }; }
4741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 rm -f conftest.val
4745 else
4746 ac_cv_sizeof_long=0
4749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4750 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4751 cat >>confdefs.h <<_ACEOF
4752 #define SIZEOF_LONG $ac_cv_sizeof_long
4753 _ACEOF
4756 echo "$as_me:$LINENO: checking for long long" >&5
4757 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4758 if test "${ac_cv_type_long_long+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 $ac_includes_default
4769 main ()
4771 if ((long long *) 0)
4772 return 0;
4773 if (sizeof (long long))
4774 return 0;
4776 return 0;
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_c_werror_flag"
4789 || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest.$ac_objext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_type_long_long=yes
4802 else
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 ac_cv_type_long_long=no
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4811 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4813 echo "$as_me:$LINENO: checking size of long long" >&5
4814 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4815 if test "${ac_cv_sizeof_long_long+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 if test "$ac_cv_type_long_long" = yes; then
4819 # The cast to unsigned long works around a bug in the HP C Compiler
4820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4822 # This bug is HP SR number 8606223364.
4823 if test "$cross_compiling" = yes; then
4824 # Depending upon the size, compute the lo and hi bounds.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 $ac_includes_default
4833 main ()
4835 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4836 test_array [0] = 0
4839 return 0;
4841 _ACEOF
4842 rm -f conftest.$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } &&
4851 { ac_try='test -z "$ac_c_werror_flag"
4852 || test ! -s conftest.err'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; } &&
4858 { ac_try='test -s conftest.$ac_objext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 ac_lo=0 ac_mid=0
4865 while :; do
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4874 main ()
4876 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4877 test_array [0] = 0
4880 return 0;
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_hi=$ac_mid; break
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ac_lo=`expr $ac_mid + 1`
4911 if test $ac_lo -le $ac_mid; then
4912 ac_lo= ac_hi=
4913 break
4915 ac_mid=`expr 2 '*' $ac_mid + 1`
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918 done
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 $ac_includes_default
4931 main ()
4933 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4934 test_array [0] = 0
4937 return 0;
4939 _ACEOF
4940 rm -f conftest.$ac_objext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942 (eval $ac_compile) 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_hi=-1 ac_mid=-1
4963 while :; do
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4972 main ()
4974 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4975 test_array [0] = 0
4978 return 0;
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_lo=$ac_mid; break
5004 else
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 ac_hi=`expr '(' $ac_mid ')' - 1`
5009 if test $ac_mid -le $ac_hi; then
5010 ac_lo= ac_hi=
5011 break
5013 ac_mid=`expr 2 '*' $ac_mid`
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 done
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_lo= ac_hi=
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 # Binary search between lo and hi bounds.
5027 while test "x$ac_lo" != "x$ac_hi"; do
5028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 $ac_includes_default
5037 main ()
5039 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5040 test_array [0] = 0
5043 return 0;
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_hi=$ac_mid
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_lo=`expr '(' $ac_mid ')' + 1`
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 done
5077 case $ac_lo in
5078 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5079 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot compute sizeof (long long), 77
5082 See \`config.log' for more details." >&2;}
5083 { (exit 1); exit 1; }; } ;;
5084 esac
5085 else
5086 if test "$cross_compiling" = yes; then
5087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5088 See \`config.log' for more details." >&5
5089 echo "$as_me: error: cannot run test program while cross compiling
5090 See \`config.log' for more details." >&2;}
5091 { (exit 1); exit 1; }; }
5092 else
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 $ac_includes_default
5100 long longval () { return (long) (sizeof (long long)); }
5101 unsigned long ulongval () { return (long) (sizeof (long long)); }
5102 #include <stdio.h>
5103 #include <stdlib.h>
5105 main ()
5108 FILE *f = fopen ("conftest.val", "w");
5109 if (! f)
5110 exit (1);
5111 if (((long) (sizeof (long long))) < 0)
5113 long i = longval ();
5114 if (i != ((long) (sizeof (long long))))
5115 exit (1);
5116 fprintf (f, "%ld\n", i);
5118 else
5120 unsigned long i = ulongval ();
5121 if (i != ((long) (sizeof (long long))))
5122 exit (1);
5123 fprintf (f, "%lu\n", i);
5125 exit (ferror (f) || fclose (f) != 0);
5128 return 0;
5130 _ACEOF
5131 rm -f conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_sizeof_long_long=`cat conftest.val`
5143 else
5144 echo "$as_me: program exited with status $ac_status" >&5
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ( exit $ac_status )
5149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5150 See \`config.log' for more details." >&5
5151 echo "$as_me: error: cannot compute sizeof (long long), 77
5152 See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }
5155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5158 rm -f conftest.val
5159 else
5160 ac_cv_sizeof_long_long=0
5163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5164 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5165 cat >>confdefs.h <<_ACEOF
5166 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5167 _ACEOF
5171 case 2 in
5172 $ac_cv_sizeof_short) SIZE16="short";;
5173 $ac_cv_sizeof_int) SIZE16="int";;
5174 esac
5176 case 4 in
5177 $ac_cv_sizeof_int) SIZE32="int";;
5178 $ac_cv_sizeof_long) SIZE32="long";;
5179 $ac_cv_sizeof_short) SIZE32="short";;
5180 esac
5185 OPAL_HAVE_SPEEX_H=
5186 OPAL_HAVE_SPEEX_SPEEX_H=
5188 for ac_header in "speex.h"
5190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192 echo "$as_me:$LINENO: checking for $ac_header" >&5
5193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5199 else
5200 # Is the header compilable?
5201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 $ac_includes_default
5210 #include <$ac_header>
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214 (eval $ac_compile) 2>conftest.er1
5215 ac_status=$?
5216 grep -v '^ *+' conftest.er1 >conftest.err
5217 rm -f conftest.er1
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -z "$ac_c_werror_flag"
5222 || test ! -s conftest.err'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try='test -s conftest.$ac_objext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_header_compiler=yes
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 ac_header_compiler=no
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5243 echo "${ECHO_T}$ac_header_compiler" >&6
5245 # Is the header present?
5246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <$ac_header>
5255 _ACEOF
5256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null; then
5264 if test -s conftest.err; then
5265 ac_cpp_err=$ac_c_preproc_warn_flag
5266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267 else
5268 ac_cpp_err=
5270 else
5271 ac_cpp_err=yes
5273 if test -z "$ac_cpp_err"; then
5274 ac_header_preproc=yes
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_header_preproc=no
5281 rm -f conftest.err conftest.$ac_ext
5282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5283 echo "${ECHO_T}$ac_header_preproc" >&6
5285 # So? What about this header?
5286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5287 yes:no: )
5288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5292 ac_header_preproc=yes
5294 no:yes:* )
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5308 cat <<\_ASBOX
5309 ## ------------------------------------------ ##
5310 ## Report this to the AC_PACKAGE_NAME lists. ##
5311 ## ------------------------------------------ ##
5312 _ASBOX
5314 sed "s/^/$as_me: WARNING: /" >&2
5316 esac
5317 echo "$as_me:$LINENO: checking for $ac_header" >&5
5318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 eval "$as_ac_Header=\$ac_header_preproc"
5324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5331 _ACEOF
5332 OPAL_HAVE_SPEEX_H=1
5335 done
5337 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5338 cat >>confdefs.h <<\_ACEOF
5339 #define OPAL_HAVE_SPEEX_H 1
5340 _ACEOF
5342 else
5344 for ac_header in "speex/speex.h"
5346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5348 echo "$as_me:$LINENO: checking for $ac_header" >&5
5349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 else
5356 # Is the header compilable?
5357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366 #include <$ac_header>
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_header_compiler=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_header_compiler=no
5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399 echo "${ECHO_T}$ac_header_compiler" >&6
5401 # Is the header present?
5402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #include <$ac_header>
5411 _ACEOF
5412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev/null; then
5420 if test -s conftest.err; then
5421 ac_cpp_err=$ac_c_preproc_warn_flag
5422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5423 else
5424 ac_cpp_err=
5426 else
5427 ac_cpp_err=yes
5429 if test -z "$ac_cpp_err"; then
5430 ac_header_preproc=yes
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 ac_header_preproc=no
5437 rm -f conftest.err conftest.$ac_ext
5438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5439 echo "${ECHO_T}$ac_header_preproc" >&6
5441 # So? What about this header?
5442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5443 yes:no: )
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5448 ac_header_preproc=yes
5450 no:yes:* )
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464 cat <<\_ASBOX
5465 ## ------------------------------------------ ##
5466 ## Report this to the AC_PACKAGE_NAME lists. ##
5467 ## ------------------------------------------ ##
5468 _ASBOX
5470 sed "s/^/$as_me: WARNING: /" >&2
5472 esac
5473 echo "$as_me:$LINENO: checking for $ac_header" >&5
5474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 eval "$as_ac_Header=\$ac_header_preproc"
5480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5488 OPAL_HAVE_SPEEX_SPEEX_H=1
5491 done
5493 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5494 cat >>confdefs.h <<\_ACEOF
5495 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5496 _ACEOF
5501 if test "${localspeex}" = "yes" ; then
5502 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5503 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5504 elif test "${localspeex}" = "no" ; then
5505 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5506 echo "$as_me: Forcing use of system Speex library" >&6;}
5507 cat >>confdefs.h <<\_ACEOF
5508 #define OPAL_SYSTEM_SPEEX 1
5509 _ACEOF
5511 OPAL_SYSTEM_SPEEX=1
5513 else
5514 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5515 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5516 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 ac_check_lib_save_LIBS=$LIBS
5520 LIBS="-lspeex $LIBS"
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5528 /* Override any gcc2 internal prototype to avoid an error. */
5529 #ifdef __cplusplus
5530 extern "C"
5531 #endif
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5534 char speex_encoder_destroy ();
5536 main ()
5538 speex_encoder_destroy ();
5540 return 0;
5542 _ACEOF
5543 rm -f conftest.$ac_objext conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -z "$ac_c_werror_flag"
5553 || test ! -s conftest.err'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; } &&
5559 { ac_try='test -s conftest$ac_exeext'
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_lib_speex_speex_encoder_destroy=yes
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 ac_cv_lib_speex_speex_encoder_destroy=no
5572 rm -f conftest.err conftest.$ac_objext \
5573 conftest$ac_exeext conftest.$ac_ext
5574 LIBS=$ac_check_lib_save_LIBS
5576 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5577 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5578 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5579 SPEEX=1
5582 if test "${SPEEX}x" != "x" ; then
5583 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5584 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5585 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 ac_check_lib_save_LIBS=$LIBS
5589 LIBS="-lspeex $LIBS"
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char speex_encode_int ();
5605 main ()
5607 speex_encode_int ();
5609 return 0;
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_lib_speex_speex_encode_int=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_lib_speex_speex_encode_int=no
5641 rm -f conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 LIBS=$ac_check_lib_save_LIBS
5645 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5646 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5647 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5648 SPEEX=1
5649 else
5650 unset SPEEX
5654 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5655 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5656 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5657 else
5658 echo "$as_me:$LINENO: checking system Speex version" >&5
5659 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5660 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5661 echo "#include <speex.h>" > t.c
5662 echo "#include <speex_header.h>" >> t.c
5663 else
5664 echo "#include <speex/speex.h>" > t.c
5665 echo "#include <speex/speex_header.h>" >> t.c
5667 cat >> t.c <<C_FILE
5668 #include <stdio.h>
5669 int main(int argc,char *argv)
5671 SpeexHeader header;
5672 speex_init_header(&header, 1, 1, &speex_nb_mode);
5673 printf("%s\n", header.speex_version);
5675 C_FILE
5676 cc -o t t.c -lspeex > /dev/null 2>&1
5677 if test \! -x t ; then
5678 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5679 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5680 else
5681 SYSVER=`./t`
5682 echo "$as_me:$LINENO: result: $SYSVER" >&5
5683 echo "${ECHO_T}$SYSVER" >&6
5684 echo "$as_me:$LINENO: checking library Speex version" >&5
5685 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5686 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5687 echo "$as_me:$LINENO: result: $LIBVER" >&5
5688 echo "${ECHO_T}$LIBVER" >&6
5689 echo "$as_me:$LINENO: checking Speex versions" >&5
5690 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5691 cat > t.pl <<P_FILE
5693 \$sysver = @ARGV[0];
5694 \$libver = @ARGV[1];
5695 @lib = split /\./, \$libver;
5696 while (@lib < 3) {
5697 @lib[0+@lib] = "0";
5699 @sys = split /\./, \$sysver;
5700 while (@sys < 3) {
5701 @sys[0+@sys] = "0";
5703 \$i = 0;
5704 while (\$i < 3) {
5705 if (@sys[\$i] < @lib[\$i]) {
5706 print "0";
5707 die;
5709 \$i++;
5711 print "1";
5713 P_FILE
5714 SPEEX=`perl t.pl $SYSVER $LIBVER`
5715 rm t.pl
5716 if test "x$SPEEX" = "x0" ; then
5717 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5718 echo "${ECHO_T}OPAL version is more recent" >&6
5719 else
5720 echo "$as_me:$LINENO: result: system version is more recent" >&5
5721 echo "${ECHO_T}system version is more recent" >&6
5722 cat >>confdefs.h <<\_ACEOF
5723 #define OPAL_SYSTEM_SPEEX 1
5724 _ACEOF
5726 OPAL_SYSTEM_SPEEX=1
5728 echo "$as_me:$LINENO: checking Speex noise type" >&5
5729 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5730 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5731 echo "#include <speex.h>" > t.c
5732 echo "#include <speex_preprocess.h>" >> t.c
5733 else
5734 echo "#include <speex/speex.h>" > t.c
5735 echo "#include <speex/speex_preprocess.h>" >> t.c
5737 cat >> t.c <<C_FILE
5738 #include <stdio.h>
5739 int main(int argc,char *argv)
5741 struct SpeexPreprocessState *st;
5742 spx_int16_t *x;
5743 float *echo;
5744 speex_preprocess(st, x, echo);
5746 C_FILE
5747 rm -f t
5748 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5749 if test \! -x t ; then
5750 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5751 echo "${ECHO_T}spx_int32_t" >&6
5752 else
5753 echo "$as_me:$LINENO: result: float" >&5
5754 echo "${ECHO_T}float" >&6
5755 cat >>confdefs.h <<\_ACEOF
5756 #define OPAL_SPEEX_FLOAT_NOISE 1
5757 _ACEOF
5762 rm -f t t.c
5770 audio=yes
5771 # Check whether --enable-audio or --disable-audio was given.
5772 if test "${enable_audio+set}" = set; then
5773 enableval="$enable_audio"
5774 audio=$enableval
5776 echo "$as_me:$LINENO: checking audio codec support" >&5
5777 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6
5778 if test "$audio" = "yes" ; then
5779 OPAL_AUDIO=1
5781 cat >>confdefs.h <<\_ACEOF
5782 #define OPAL_AUDIO 1
5783 _ACEOF
5785 echo "$as_me:$LINENO: result: enabled" >&5
5786 echo "${ECHO_T}enabled" >&6
5787 else
5788 echo "$as_me:$LINENO: result: disabled" >&5
5789 echo "${ECHO_T}disabled" >&6
5794 video=yes
5795 # Check whether --enable-video or --disable-video was given.
5796 if test "${enable_video+set}" = set; then
5797 enableval="$enable_video"
5798 video=$enableval
5800 echo "$as_me:$LINENO: checking video device support" >&5
5801 echo $ECHO_N "checking video device support... $ECHO_C" >&6
5802 if test "$video" = "yes" ; then
5803 OPAL_VIDEO=1
5805 cat >>confdefs.h <<\_ACEOF
5806 #define OPAL_VIDEO 1
5807 _ACEOF
5809 echo "$as_me:$LINENO: result: enabled" >&5
5810 echo "${ECHO_T}enabled" >&6
5811 else
5812 echo "$as_me:$LINENO: result: disabled" >&5
5813 echo "${ECHO_T}disabled" >&6
5818 sip=yes
5819 # Check whether --enable-sip or --disable-sip was given.
5820 if test "${enable_sip+set}" = set; then
5821 enableval="$enable_sip"
5822 sip=$enableval
5824 echo "$as_me:$LINENO: checking SIP protocol" >&5
5825 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5826 if test "$sip" = "yes" ; then
5827 OPAL_SIP=1
5829 cat >>confdefs.h <<\_ACEOF
5830 #define OPAL_SIP 1
5831 _ACEOF
5833 echo "$as_me:$LINENO: result: enabled" >&5
5834 echo "${ECHO_T}enabled" >&6
5835 else
5836 echo "$as_me:$LINENO: result: disabled" >&5
5837 echo "${ECHO_T}disabled" >&6
5842 h323=yes
5843 t38=yes
5844 h224=yes
5845 h460=yes
5846 # Check whether --enable-h323 or --disable-h323 was given.
5847 if test "${enable_h323+set}" = set; then
5848 enableval="$enable_h323"
5849 h323=$enableval
5851 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5852 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5853 if test "$h323" = "yes" ; then
5854 OPAL_H323=1
5856 cat >>confdefs.h <<\_ACEOF
5857 #define OPAL_H323 1
5858 _ACEOF
5860 echo "$as_me:$LINENO: result: enabled" >&5
5861 echo "${ECHO_T}enabled" >&6
5862 else
5863 OPAL_H323=0
5865 echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
5866 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6
5867 t38=no
5868 h224=no
5869 h460=no
5871 OPAL_H323=$OPAL_H323
5876 iax=yes
5877 # Check whether --enable-iax or --disable-iax was given.
5878 if test "${enable_iax+set}" = set; then
5879 enableval="$enable_iax"
5880 iax=$enableval
5882 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5883 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5884 if test "$iax" = "yes" ; then
5885 OPAL_IAX2=1
5887 cat >>confdefs.h <<\_ACEOF
5888 #define OPAL_IAX2 1
5889 _ACEOF
5891 echo "$as_me:$LINENO: result: enabled" >&5
5892 echo "${ECHO_T}enabled" >&6
5893 else
5894 echo "$as_me:$LINENO: result: disabled" >&5
5895 echo "${ECHO_T}disabled" >&6
5899 # Check whether --enable-h224 or --disable-h224 was given.
5900 if test "${enable_h224+set}" = set; then
5901 enableval="$enable_h224"
5902 h224=$enableval
5904 echo "$as_me:$LINENO: checking H224 protocol" >&5
5905 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5906 if test "$h224" = "yes" ; then
5907 OPAL_H224=1
5909 cat >>confdefs.h <<\_ACEOF
5910 #define OPAL_H224 1
5911 _ACEOF
5913 echo "$as_me:$LINENO: result: enabled" >&5
5914 echo "${ECHO_T}enabled" >&6
5915 else
5916 echo "$as_me:$LINENO: result: disabled" >&5
5917 echo "${ECHO_T}disabled" >&6
5922 if test "$t38" = "yes" ; then
5923 # Check whether --enable-t38 or --disable-t38 was given.
5924 if test "${enable_t38+set}" = set; then
5925 enableval="$enable_t38"
5926 t38=$enableval
5928 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5929 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5930 if test "$t38" = "yes" ; then
5931 OPAL_T38FAX=1
5933 cat >>confdefs.h <<\_ACEOF
5934 #define OPAL_T38FAX 1
5935 _ACEOF
5937 echo "$as_me:$LINENO: result: enabled" >&5
5938 echo "${ECHO_T}enabled" >&6
5939 else
5940 echo "$as_me:$LINENO: result: disabled" >&5
5941 echo "${ECHO_T}disabled" >&6
5948 H323_460=
5949 if test "$h460" = "yes" ; then
5950 # Check whether --enable-h460 or --disable-h460 was given.
5951 if test "${enable_h460+set}" = set; then
5952 enableval="$enable_h460"
5953 h460=$enableval
5955 echo "$as_me:$LINENO: checking H.460 support" >&5
5956 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6
5957 if test "$h460" = "yes" ; then
5958 H323_H460=1
5960 cat >>confdefs.h <<\_ACEOF
5961 #define H323_H460 1
5962 _ACEOF
5964 echo "$as_me:$LINENO: result: enabled" >&5
5965 echo "${ECHO_T}enabled" >&6
5966 else
5967 echo "$as_me:$LINENO: result: disabled" >&5
5968 echo "${ECHO_T}disabled" >&6
5975 OPAL_LID=
5976 lid=yes
5977 if test "$lid" = "yes" ; then
5978 # Check whether --enable-lid or --disable-lid was given.
5979 if test "${enable_lid+set}" = set; then
5980 enableval="$enable_lid"
5981 lid=$enableval
5983 echo "$as_me:$LINENO: checking LID support" >&5
5984 echo $ECHO_N "checking LID support... $ECHO_C" >&6
5985 if test "$lid" = "yes" ; then
5986 cat >>confdefs.h <<\_ACEOF
5987 #define OPAL_LID 1
5988 _ACEOF
5990 OPAL_LID=1
5991 echo "$as_me:$LINENO: result: enabled" >&5
5992 echo "${ECHO_T}enabled" >&6
5993 else
5994 echo "$as_me:$LINENO: result: disabled" >&5
5995 echo "${ECHO_T}disabled" >&6
6002 OPAL_ivr=
6003 ivr=yes
6004 if test "$ivr" = "yes" ; then
6005 # Check whether --enable-ivr or --disable-ivr was given.
6006 if test "${enable_ivr+set}" = set; then
6007 enableval="$enable_ivr"
6008 ivr=$enableval
6010 echo "$as_me:$LINENO: checking IVR support" >&5
6011 echo $ECHO_N "checking IVR support... $ECHO_C" >&6
6012 if test "$ivr" = "yes" ; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define OPAL_IVR 1
6015 _ACEOF
6017 OPAL_IVR=1
6018 echo "$as_me:$LINENO: result: enabled" >&5
6019 echo "${ECHO_T}enabled" >&6
6020 else
6021 echo "$as_me:$LINENO: result: disabled" >&5
6022 echo "${ECHO_T}disabled" >&6
6032 HAS_LIBZRTP=
6039 HAS_LIBSRTP=
6040 echo "$as_me:$LINENO: checking for libSRTP" >&5
6041 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include "srtp/srtp.h"
6050 main ()
6052 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 HAS_LIBSRTP=1
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 if test "${HAS_LIBSRTP}" = "1" ; then
6087 echo "$as_me:$LINENO: result: yes" >&5
6088 echo "${ECHO_T}yes" >&6
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAS_LIBSRTP 1
6091 _ACEOF
6093 HAS_LIBSRTP=1
6094 OPAL_SRTP=1
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6105 ac_aux_dir=
6106 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6107 if test -f $ac_dir/install-sh; then
6108 ac_aux_dir=$ac_dir
6109 ac_install_sh="$ac_aux_dir/install-sh -c"
6110 break
6111 elif test -f $ac_dir/install.sh; then
6112 ac_aux_dir=$ac_dir
6113 ac_install_sh="$ac_aux_dir/install.sh -c"
6114 break
6115 elif test -f $ac_dir/shtool; then
6116 ac_aux_dir=$ac_dir
6117 ac_install_sh="$ac_aux_dir/shtool install -c"
6118 break
6120 done
6121 if test -z "$ac_aux_dir"; then
6122 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6123 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6124 { (exit 1); exit 1; }; }
6126 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6127 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6128 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6130 # Find a good install program. We prefer a C program (faster),
6131 # so one script is as good as another. But avoid the broken or
6132 # incompatible versions:
6133 # SysV /etc/install, /usr/sbin/install
6134 # SunOS /usr/etc/install
6135 # IRIX /sbin/install
6136 # AIX /bin/install
6137 # AmigaOS /C/install, which installs bootblocks on floppy discs
6138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6141 # OS/2's system install, which has a completely different semantic
6142 # ./install, which can be erroneously created by make from ./install.sh.
6143 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6144 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6145 if test -z "$INSTALL"; then
6146 if test "${ac_cv_path_install+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 # Account for people who put trailing slashes in PATH elements.
6155 case $as_dir/ in
6156 ./ | .// | /cC/* | \
6157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6158 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6159 /usr/ucb/* ) ;;
6161 # OSF1 and SCO ODT 3.0 have their own names for install.
6162 # Don't use installbsd from OSF since it installs stuff as root
6163 # by default.
6164 for ac_prog in ginstall scoinst install; do
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6167 if test $ac_prog = install &&
6168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6169 # AIX install. It has an incompatible calling convention.
6171 elif test $ac_prog = install &&
6172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6173 # program-specific install script used by HP pwplus--don't use.
6175 else
6176 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6177 break 3
6180 done
6181 done
6183 esac
6184 done
6188 if test "${ac_cv_path_install+set}" = set; then
6189 INSTALL=$ac_cv_path_install
6190 else
6191 # As a last resort, use the slow shell script. We don't cache a
6192 # path for INSTALL within a source directory, because that will
6193 # break other packages using the cache if that directory is
6194 # removed, or if the path is relative.
6195 INSTALL=$ac_install_sh
6198 echo "$as_me:$LINENO: result: $INSTALL" >&5
6199 echo "${ECHO_T}$INSTALL" >&6
6201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6202 # It thinks the first close brace ends the variable substitution.
6203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6213 subdirs="$subdirs plugins"
6217 ac_config_files="$ac_config_files opal_inc.mak"
6219 ac_config_files="$ac_config_files Makefile"
6221 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6223 ac_config_files="$ac_config_files opal.pc"
6225 ac_config_files="$ac_config_files opal.spec"
6227 ac_config_files="$ac_config_files opal_cfg.dxy"
6230 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6231 cat >confcache <<\_ACEOF
6232 # This file is a shell script that caches the results of configure
6233 # tests run on this system so they can be shared between configure
6234 # scripts and configure runs, see configure's option --config-cache.
6235 # It is not useful on other systems. If it contains results you don't
6236 # want to keep, you may remove or edit it.
6238 # config.status only pays attention to the cache file if you give it
6239 # the --recheck option to rerun configure.
6241 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6242 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6243 # following values.
6245 _ACEOF
6247 # The following way of writing the cache mishandles newlines in values,
6248 # but we know of no workaround that is simple, portable, and efficient.
6249 # So, don't put newlines in cache variables' values.
6250 # Ultrix sh set writes to stderr and can't be redirected directly,
6251 # and sets the high bit in the cache file unless we assign to the vars.
6253 (set) 2>&1 |
6254 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6255 *ac_space=\ *)
6256 # `set' does not quote correctly, so add quotes (double-quote
6257 # substitution turns \\\\ into \\, and sed turns \\ into \).
6258 sed -n \
6259 "s/'/'\\\\''/g;
6260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6263 # `set' quotes correctly as required by POSIX, so do not add quotes.
6264 sed -n \
6265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6267 esac;
6269 sed '
6270 t clear
6271 : clear
6272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6273 t end
6274 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6275 : end' >>confcache
6276 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6277 if test -w $cache_file; then
6278 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6279 cat confcache >$cache_file
6280 else
6281 echo "not updating unwritable cache $cache_file"
6284 rm -f confcache
6286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6287 # Let make expand exec_prefix.
6288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6292 # trailing colons and then remove the whole line if VPATH becomes empty
6293 # (actually we leave an empty line to preserve line numbers).
6294 if test "x$srcdir" = x.; then
6295 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6296 s/:*\$(srcdir):*/:/;
6297 s/:*\${srcdir}:*/:/;
6298 s/:*@srcdir@:*/:/;
6299 s/^\([^=]*=[ ]*\):*/\1/;
6300 s/:*$//;
6301 s/^[^=]*=[ ]*$//;
6305 DEFS=-DHAVE_CONFIG_H
6307 ac_libobjs=
6308 ac_ltlibobjs=
6309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6310 # 1. Remove the extension, and $U if already installed.
6311 ac_i=`echo "$ac_i" |
6312 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6313 # 2. Add them.
6314 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6315 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6316 done
6317 LIBOBJS=$ac_libobjs
6319 LTLIBOBJS=$ac_ltlibobjs
6323 : ${CONFIG_STATUS=./config.status}
6324 ac_clean_files_save=$ac_clean_files
6325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6326 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6327 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6328 cat >$CONFIG_STATUS <<_ACEOF
6329 #! $SHELL
6330 # Generated by $as_me.
6331 # Run this file to recreate the current configuration.
6332 # Compiler output produced by configure, useful for debugging
6333 # configure, is in config.log if it exists.
6335 debug=false
6336 ac_cs_recheck=false
6337 ac_cs_silent=false
6338 SHELL=\${CONFIG_SHELL-$SHELL}
6339 _ACEOF
6341 cat >>$CONFIG_STATUS <<\_ACEOF
6342 ## --------------------- ##
6343 ## M4sh Initialization. ##
6344 ## --------------------- ##
6346 # Be Bourne compatible
6347 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6348 emulate sh
6349 NULLCMD=:
6350 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6351 # is contrary to our usage. Disable this feature.
6352 alias -g '${1+"$@"}'='"$@"'
6353 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6354 set -o posix
6356 DUALCASE=1; export DUALCASE # for MKS sh
6358 # Support unset when possible.
6359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6360 as_unset=unset
6361 else
6362 as_unset=false
6366 # Work around bugs in pre-3.0 UWIN ksh.
6367 $as_unset ENV MAIL MAILPATH
6368 PS1='$ '
6369 PS2='> '
6370 PS4='+ '
6372 # NLS nuisances.
6373 for as_var in \
6374 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6375 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6376 LC_TELEPHONE LC_TIME
6378 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6379 eval $as_var=C; export $as_var
6380 else
6381 $as_unset $as_var
6383 done
6385 # Required to use basename.
6386 if expr a : '\(a\)' >/dev/null 2>&1; then
6387 as_expr=expr
6388 else
6389 as_expr=false
6392 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6393 as_basename=basename
6394 else
6395 as_basename=false
6399 # Name of the executable.
6400 as_me=`$as_basename "$0" ||
6401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6402 X"$0" : 'X\(//\)$' \| \
6403 X"$0" : 'X\(/\)$' \| \
6404 . : '\(.\)' 2>/dev/null ||
6405 echo X/"$0" |
6406 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6407 /^X\/\(\/\/\)$/{ s//\1/; q; }
6408 /^X\/\(\/\).*/{ s//\1/; q; }
6409 s/.*/./; q'`
6412 # PATH needs CR, and LINENO needs CR and PATH.
6413 # Avoid depending upon Character Ranges.
6414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6417 as_cr_digits='0123456789'
6418 as_cr_alnum=$as_cr_Letters$as_cr_digits
6420 # The user is always right.
6421 if test "${PATH_SEPARATOR+set}" != set; then
6422 echo "#! /bin/sh" >conf$$.sh
6423 echo "exit 0" >>conf$$.sh
6424 chmod +x conf$$.sh
6425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6426 PATH_SEPARATOR=';'
6427 else
6428 PATH_SEPARATOR=:
6430 rm -f conf$$.sh
6434 as_lineno_1=$LINENO
6435 as_lineno_2=$LINENO
6436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6437 test "x$as_lineno_1" != "x$as_lineno_2" &&
6438 test "x$as_lineno_3" = "x$as_lineno_2" || {
6439 # Find who we are. Look in the path if we contain no path at all
6440 # relative or not.
6441 case $0 in
6442 *[\\/]* ) as_myself=$0 ;;
6443 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6449 done
6452 esac
6453 # We did not find ourselves, most probably we were run as `sh COMMAND'
6454 # in which case we are not to be found in the path.
6455 if test "x$as_myself" = x; then
6456 as_myself=$0
6458 if test ! -f "$as_myself"; then
6459 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6460 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6461 { (exit 1); exit 1; }; }
6463 case $CONFIG_SHELL in
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for as_base in sh bash ksh sh5; do
6471 case $as_dir in
6473 if ("$as_dir/$as_base" -c '
6474 as_lineno_1=$LINENO
6475 as_lineno_2=$LINENO
6476 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6477 test "x$as_lineno_1" != "x$as_lineno_2" &&
6478 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6479 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6480 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6481 CONFIG_SHELL=$as_dir/$as_base
6482 export CONFIG_SHELL
6483 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6484 fi;;
6485 esac
6486 done
6487 done
6489 esac
6491 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6492 # uniformly replaced by the line number. The first 'sed' inserts a
6493 # line-number line before each line; the second 'sed' does the real
6494 # work. The second script uses 'N' to pair each line-number line
6495 # with the numbered line, and appends trailing '-' during
6496 # substitution so that $LINENO is not a special case at line end.
6497 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6498 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6499 sed '=' <$as_myself |
6500 sed '
6502 s,$,-,
6503 : loop
6504 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6505 t loop
6506 s,-$,,
6507 s,^['$as_cr_digits']*\n,,
6508 ' >$as_me.lineno &&
6509 chmod +x $as_me.lineno ||
6510 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6511 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6512 { (exit 1); exit 1; }; }
6514 # Don't try to exec as it changes $[0], causing all sort of problems
6515 # (the dirname of $[0] is not the place where we might find the
6516 # original and so on. Autoconf is especially sensible to this).
6517 . ./$as_me.lineno
6518 # Exit status is that of the last command.
6519 exit
6523 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6524 *c*,-n*) ECHO_N= ECHO_C='
6525 ' ECHO_T=' ' ;;
6526 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6527 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6528 esac
6530 if expr a : '\(a\)' >/dev/null 2>&1; then
6531 as_expr=expr
6532 else
6533 as_expr=false
6536 rm -f conf$$ conf$$.exe conf$$.file
6537 echo >conf$$.file
6538 if ln -s conf$$.file conf$$ 2>/dev/null; then
6539 # We could just check for DJGPP; but this test a) works b) is more generic
6540 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6541 if test -f conf$$.exe; then
6542 # Don't use ln at all; we don't have any links
6543 as_ln_s='cp -p'
6544 else
6545 as_ln_s='ln -s'
6547 elif ln conf$$.file conf$$ 2>/dev/null; then
6548 as_ln_s=ln
6549 else
6550 as_ln_s='cp -p'
6552 rm -f conf$$ conf$$.exe conf$$.file
6554 if mkdir -p . 2>/dev/null; then
6555 as_mkdir_p=:
6556 else
6557 test -d ./-p && rmdir ./-p
6558 as_mkdir_p=false
6561 as_executable_p="test -f"
6563 # Sed expression to map a string onto a valid CPP name.
6564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6566 # Sed expression to map a string onto a valid variable name.
6567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6570 # IFS
6571 # We need space, tab and new line, in precisely that order.
6572 as_nl='
6574 IFS=" $as_nl"
6576 # CDPATH.
6577 $as_unset CDPATH
6579 exec 6>&1
6581 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6582 # report actual input values of CONFIG_FILES etc. instead of their
6583 # values after options handling. Logging --version etc. is OK.
6584 exec 5>>config.log
6586 echo
6587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6588 ## Running $as_me. ##
6589 _ASBOX
6590 } >&5
6591 cat >&5 <<_CSEOF
6593 This file was extended by $as_me, which was
6594 generated by GNU Autoconf 2.59. Invocation command line was
6596 CONFIG_FILES = $CONFIG_FILES
6597 CONFIG_HEADERS = $CONFIG_HEADERS
6598 CONFIG_LINKS = $CONFIG_LINKS
6599 CONFIG_COMMANDS = $CONFIG_COMMANDS
6600 $ $0 $@
6602 _CSEOF
6603 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6604 echo >&5
6605 _ACEOF
6607 # Files that config.status was made for.
6608 if test -n "$ac_config_files"; then
6609 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6612 if test -n "$ac_config_headers"; then
6613 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6616 if test -n "$ac_config_links"; then
6617 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6620 if test -n "$ac_config_commands"; then
6621 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6624 cat >>$CONFIG_STATUS <<\_ACEOF
6626 ac_cs_usage="\
6627 \`$as_me' instantiates files from templates according to the
6628 current configuration.
6630 Usage: $0 [OPTIONS] [FILE]...
6632 -h, --help print this help, then exit
6633 -V, --version print version number, then exit
6634 -q, --quiet do not print progress messages
6635 -d, --debug don't remove temporary files
6636 --recheck update $as_me by reconfiguring in the same conditions
6637 --file=FILE[:TEMPLATE]
6638 instantiate the configuration file FILE
6639 --header=FILE[:TEMPLATE]
6640 instantiate the configuration header FILE
6642 Configuration files:
6643 $config_files
6645 Configuration headers:
6646 $config_headers
6648 Report bugs to <bug-autoconf@gnu.org>."
6649 _ACEOF
6651 cat >>$CONFIG_STATUS <<_ACEOF
6652 ac_cs_version="\\
6653 config.status
6654 configured by $0, generated by GNU Autoconf 2.59,
6655 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6657 Copyright (C) 2003 Free Software Foundation, Inc.
6658 This config.status script is free software; the Free Software Foundation
6659 gives unlimited permission to copy, distribute and modify it."
6660 srcdir=$srcdir
6661 INSTALL="$INSTALL"
6662 _ACEOF
6664 cat >>$CONFIG_STATUS <<\_ACEOF
6665 # If no file are specified by the user, then we need to provide default
6666 # value. By we need to know if files were specified by the user.
6667 ac_need_defaults=:
6668 while test $# != 0
6670 case $1 in
6671 --*=*)
6672 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6673 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6674 ac_shift=:
6677 ac_option=$1
6678 ac_optarg=$2
6679 ac_shift=shift
6681 *) # This is not an option, so the user has probably given explicit
6682 # arguments.
6683 ac_option=$1
6684 ac_need_defaults=false;;
6685 esac
6687 case $ac_option in
6688 # Handling of the options.
6689 _ACEOF
6690 cat >>$CONFIG_STATUS <<\_ACEOF
6691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6692 ac_cs_recheck=: ;;
6693 --version | --vers* | -V )
6694 echo "$ac_cs_version"; exit 0 ;;
6695 --he | --h)
6696 # Conflict between --help and --header
6697 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6698 Try \`$0 --help' for more information." >&5
6699 echo "$as_me: error: ambiguous option: $1
6700 Try \`$0 --help' for more information." >&2;}
6701 { (exit 1); exit 1; }; };;
6702 --help | --hel | -h )
6703 echo "$ac_cs_usage"; exit 0 ;;
6704 --debug | --d* | -d )
6705 debug=: ;;
6706 --file | --fil | --fi | --f )
6707 $ac_shift
6708 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6709 ac_need_defaults=false;;
6710 --header | --heade | --head | --hea )
6711 $ac_shift
6712 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6713 ac_need_defaults=false;;
6714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6716 ac_cs_silent=: ;;
6718 # This is an error.
6719 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6720 Try \`$0 --help' for more information." >&5
6721 echo "$as_me: error: unrecognized option: $1
6722 Try \`$0 --help' for more information." >&2;}
6723 { (exit 1); exit 1; }; } ;;
6725 *) ac_config_targets="$ac_config_targets $1" ;;
6727 esac
6728 shift
6729 done
6731 ac_configure_extra_args=
6733 if $ac_cs_silent; then
6734 exec 6>/dev/null
6735 ac_configure_extra_args="$ac_configure_extra_args --silent"
6738 _ACEOF
6739 cat >>$CONFIG_STATUS <<_ACEOF
6740 if \$ac_cs_recheck; then
6741 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6742 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6745 _ACEOF
6751 cat >>$CONFIG_STATUS <<\_ACEOF
6752 for ac_config_target in $ac_config_targets
6754 case "$ac_config_target" in
6755 # Handling of arguments.
6756 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
6757 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6758 "opal.pc" ) CONFIG_FILES="$CONFIG_FILES opal.pc" ;;
6759 "opal.spec" ) CONFIG_FILES="$CONFIG_FILES opal.spec" ;;
6760 "opal_cfg.dxy" ) CONFIG_FILES="$CONFIG_FILES opal_cfg.dxy" ;;
6761 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
6762 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
6763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6765 { (exit 1); exit 1; }; };;
6766 esac
6767 done
6769 # If the user did not use the arguments to specify the items to instantiate,
6770 # then the envvar interface is used. Set only those that are not.
6771 # We use the long form for the default assignment because of an extremely
6772 # bizarre bug on SunOS 4.1.3.
6773 if $ac_need_defaults; then
6774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6778 # Have a temporary directory for convenience. Make it in the build tree
6779 # simply because there is no reason to put it here, and in addition,
6780 # creating and moving files from /tmp can sometimes cause problems.
6781 # Create a temporary directory, and hook for its removal unless debugging.
6782 $debug ||
6784 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6785 trap '{ (exit 1); exit 1; }' 1 2 13 15
6788 # Create a (secure) tmp directory for tmp files.
6791 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6792 test -n "$tmp" && test -d "$tmp"
6793 } ||
6795 tmp=./confstat$$-$RANDOM
6796 (umask 077 && mkdir $tmp)
6797 } ||
6799 echo "$me: cannot create a temporary directory in ." >&2
6800 { (exit 1); exit 1; }
6803 _ACEOF
6805 cat >>$CONFIG_STATUS <<_ACEOF
6808 # CONFIG_FILES section.
6811 # No need to generate the scripts if there are no CONFIG_FILES.
6812 # This happens for instance when ./config.status config.h
6813 if test -n "\$CONFIG_FILES"; then
6814 # Protect against being on the right side of a sed subst in config.status.
6815 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6816 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6817 s,@SHELL@,$SHELL,;t t
6818 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6819 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6820 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6821 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6822 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6823 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6824 s,@exec_prefix@,$exec_prefix,;t t
6825 s,@prefix@,$prefix,;t t
6826 s,@program_transform_name@,$program_transform_name,;t t
6827 s,@bindir@,$bindir,;t t
6828 s,@sbindir@,$sbindir,;t t
6829 s,@libexecdir@,$libexecdir,;t t
6830 s,@datadir@,$datadir,;t t
6831 s,@sysconfdir@,$sysconfdir,;t t
6832 s,@sharedstatedir@,$sharedstatedir,;t t
6833 s,@localstatedir@,$localstatedir,;t t
6834 s,@libdir@,$libdir,;t t
6835 s,@includedir@,$includedir,;t t
6836 s,@oldincludedir@,$oldincludedir,;t t
6837 s,@infodir@,$infodir,;t t
6838 s,@mandir@,$mandir,;t t
6839 s,@build_alias@,$build_alias,;t t
6840 s,@host_alias@,$host_alias,;t t
6841 s,@target_alias@,$target_alias,;t t
6842 s,@DEFS@,$DEFS,;t t
6843 s,@ECHO_C@,$ECHO_C,;t t
6844 s,@ECHO_N@,$ECHO_N,;t t
6845 s,@ECHO_T@,$ECHO_T,;t t
6846 s,@LIBS@,$LIBS,;t t
6847 s,@CC@,$CC,;t t
6848 s,@CFLAGS@,$CFLAGS,;t t
6849 s,@LDFLAGS@,$LDFLAGS,;t t
6850 s,@CPPFLAGS@,$CPPFLAGS,;t t
6851 s,@ac_ct_CC@,$ac_ct_CC,;t t
6852 s,@EXEEXT@,$EXEEXT,;t t
6853 s,@OBJEXT@,$OBJEXT,;t t
6854 s,@CXX@,$CXX,;t t
6855 s,@CXXFLAGS@,$CXXFLAGS,;t t
6856 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6857 s,@OPALDIR@,$OPALDIR,;t t
6858 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6859 s,@LIBDIR@,$LIBDIR,;t t
6860 s,@OPAL_VERSION@,$OPAL_VERSION,;t t
6861 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
6862 s,@PWLIBDIR@,$PWLIBDIR,;t t
6863 s,@CPP@,$CPP,;t t
6864 s,@EGREP@,$EGREP,;t t
6865 s,@SIZE16@,$SIZE16,;t t
6866 s,@SIZE32@,$SIZE32,;t t
6867 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
6868 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
6869 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
6870 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
6871 s,@OPAL_SIP@,$OPAL_SIP,;t t
6872 s,@OPAL_H323@,$OPAL_H323,;t t
6873 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
6874 s,@OPAL_H224@,$OPAL_H224,;t t
6875 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
6876 s,@H323_H460@,$H323_H460,;t t
6877 s,@OPAL_LID@,$OPAL_LID,;t t
6878 s,@OPAL_IVR@,$OPAL_IVR,;t t
6879 s,@OPAL_ZRTP@,$OPAL_ZRTP,;t t
6880 s,@HAS_LIBZRTP@,$HAS_LIBZRTP,;t t
6881 s,@OPAL_SRTP@,$OPAL_SRTP,;t t
6882 s,@HAS_LIBSRTP@,$HAS_LIBSRTP,;t t
6883 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6884 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6885 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6886 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6887 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6888 s,@subdirs@,$subdirs,;t t
6889 s,@LIBOBJS@,$LIBOBJS,;t t
6890 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6891 CEOF
6893 _ACEOF
6895 cat >>$CONFIG_STATUS <<\_ACEOF
6896 # Split the substitutions into bite-sized pieces for seds with
6897 # small command number limits, like on Digital OSF/1 and HP-UX.
6898 ac_max_sed_lines=48
6899 ac_sed_frag=1 # Number of current file.
6900 ac_beg=1 # First line for current file.
6901 ac_end=$ac_max_sed_lines # Line after last line for current file.
6902 ac_more_lines=:
6903 ac_sed_cmds=
6904 while $ac_more_lines; do
6905 if test $ac_beg -gt 1; then
6906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6907 else
6908 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6910 if test ! -s $tmp/subs.frag; then
6911 ac_more_lines=false
6912 else
6913 # The purpose of the label and of the branching condition is to
6914 # speed up the sed processing (if there are no `@' at all, there
6915 # is no need to browse any of the substitutions).
6916 # These are the two extra sed commands mentioned above.
6917 (echo ':t
6918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6919 if test -z "$ac_sed_cmds"; then
6920 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6921 else
6922 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6924 ac_sed_frag=`expr $ac_sed_frag + 1`
6925 ac_beg=$ac_end
6926 ac_end=`expr $ac_end + $ac_max_sed_lines`
6928 done
6929 if test -z "$ac_sed_cmds"; then
6930 ac_sed_cmds=cat
6932 fi # test -n "$CONFIG_FILES"
6934 _ACEOF
6935 cat >>$CONFIG_STATUS <<\_ACEOF
6936 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6938 case $ac_file in
6939 - | *:- | *:-:* ) # input from stdin
6940 cat >$tmp/stdin
6941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6945 * ) ac_file_in=$ac_file.in ;;
6946 esac
6948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6949 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6951 X"$ac_file" : 'X\(//\)[^/]' \| \
6952 X"$ac_file" : 'X\(//\)$' \| \
6953 X"$ac_file" : 'X\(/\)' \| \
6954 . : '\(.\)' 2>/dev/null ||
6955 echo X"$ac_file" |
6956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6958 /^X\(\/\/\)$/{ s//\1/; q; }
6959 /^X\(\/\).*/{ s//\1/; q; }
6960 s/.*/./; q'`
6961 { if $as_mkdir_p; then
6962 mkdir -p "$ac_dir"
6963 else
6964 as_dir="$ac_dir"
6965 as_dirs=
6966 while test ! -d "$as_dir"; do
6967 as_dirs="$as_dir $as_dirs"
6968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6970 X"$as_dir" : 'X\(//\)[^/]' \| \
6971 X"$as_dir" : 'X\(//\)$' \| \
6972 X"$as_dir" : 'X\(/\)' \| \
6973 . : '\(.\)' 2>/dev/null ||
6974 echo X"$as_dir" |
6975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6977 /^X\(\/\/\)$/{ s//\1/; q; }
6978 /^X\(\/\).*/{ s//\1/; q; }
6979 s/.*/./; q'`
6980 done
6981 test ! -n "$as_dirs" || mkdir $as_dirs
6982 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6984 { (exit 1); exit 1; }; }; }
6986 ac_builddir=.
6988 if test "$ac_dir" != .; then
6989 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6990 # A "../" for each directory in $ac_dir_suffix.
6991 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6992 else
6993 ac_dir_suffix= ac_top_builddir=
6996 case $srcdir in
6997 .) # No --srcdir option. We are building in place.
6998 ac_srcdir=.
6999 if test -z "$ac_top_builddir"; then
7000 ac_top_srcdir=.
7001 else
7002 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7003 fi ;;
7004 [\\/]* | ?:[\\/]* ) # Absolute path.
7005 ac_srcdir=$srcdir$ac_dir_suffix;
7006 ac_top_srcdir=$srcdir ;;
7007 *) # Relative path.
7008 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7009 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7010 esac
7012 # Do not use `cd foo && pwd` to compute absolute paths, because
7013 # the directories may not exist.
7014 case `pwd` in
7015 .) ac_abs_builddir="$ac_dir";;
7017 case "$ac_dir" in
7018 .) ac_abs_builddir=`pwd`;;
7019 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7020 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7021 esac;;
7022 esac
7023 case $ac_abs_builddir in
7024 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7026 case ${ac_top_builddir}. in
7027 .) ac_abs_top_builddir=$ac_abs_builddir;;
7028 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7029 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7030 esac;;
7031 esac
7032 case $ac_abs_builddir in
7033 .) ac_abs_srcdir=$ac_srcdir;;
7035 case $ac_srcdir in
7036 .) ac_abs_srcdir=$ac_abs_builddir;;
7037 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7038 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7039 esac;;
7040 esac
7041 case $ac_abs_builddir in
7042 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7044 case $ac_top_srcdir in
7045 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7046 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7047 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7048 esac;;
7049 esac
7052 case $INSTALL in
7053 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7054 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7055 esac
7057 if test x"$ac_file" != x-; then
7058 { echo "$as_me:$LINENO: creating $ac_file" >&5
7059 echo "$as_me: creating $ac_file" >&6;}
7060 rm -f "$ac_file"
7062 # Let's still pretend it is `configure' which instantiates (i.e., don't
7063 # use $as_me), people would be surprised to read:
7064 # /* config.h. Generated by config.status. */
7065 if test x"$ac_file" = x-; then
7066 configure_input=
7067 else
7068 configure_input="$ac_file. "
7070 configure_input=$configure_input"Generated from `echo $ac_file_in |
7071 sed 's,.*/,,'` by configure."
7073 # First look for the input files in the build tree, otherwise in the
7074 # src tree.
7075 ac_file_inputs=`IFS=:
7076 for f in $ac_file_in; do
7077 case $f in
7078 -) echo $tmp/stdin ;;
7079 [\\/$]*)
7080 # Absolute (can't be DOS-style, as IFS=:)
7081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7082 echo "$as_me: error: cannot find input file: $f" >&2;}
7083 { (exit 1); exit 1; }; }
7084 echo "$f";;
7085 *) # Relative
7086 if test -f "$f"; then
7087 # Build tree
7088 echo "$f"
7089 elif test -f "$srcdir/$f"; then
7090 # Source tree
7091 echo "$srcdir/$f"
7092 else
7093 # /dev/null tree
7094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7095 echo "$as_me: error: cannot find input file: $f" >&2;}
7096 { (exit 1); exit 1; }; }
7097 fi;;
7098 esac
7099 done` || { (exit 1); exit 1; }
7100 _ACEOF
7101 cat >>$CONFIG_STATUS <<_ACEOF
7102 sed "$ac_vpsub
7103 $extrasub
7104 _ACEOF
7105 cat >>$CONFIG_STATUS <<\_ACEOF
7107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7108 s,@configure_input@,$configure_input,;t t
7109 s,@srcdir@,$ac_srcdir,;t t
7110 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7111 s,@top_srcdir@,$ac_top_srcdir,;t t
7112 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7113 s,@builddir@,$ac_builddir,;t t
7114 s,@abs_builddir@,$ac_abs_builddir,;t t
7115 s,@top_builddir@,$ac_top_builddir,;t t
7116 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7117 s,@INSTALL@,$ac_INSTALL,;t t
7118 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7119 rm -f $tmp/stdin
7120 if test x"$ac_file" != x-; then
7121 mv $tmp/out $ac_file
7122 else
7123 cat $tmp/out
7124 rm -f $tmp/out
7127 done
7128 _ACEOF
7129 cat >>$CONFIG_STATUS <<\_ACEOF
7132 # CONFIG_HEADER section.
7135 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7136 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7138 # ac_d sets the value in "#define NAME VALUE" lines.
7139 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7140 ac_dB='[ ].*$,\1#\2'
7141 ac_dC=' '
7142 ac_dD=',;t'
7143 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7144 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7145 ac_uB='$,\1#\2define\3'
7146 ac_uC=' '
7147 ac_uD=',;t'
7149 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7151 case $ac_file in
7152 - | *:- | *:-:* ) # input from stdin
7153 cat >$tmp/stdin
7154 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7156 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7158 * ) ac_file_in=$ac_file.in ;;
7159 esac
7161 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7162 echo "$as_me: creating $ac_file" >&6;}
7164 # First look for the input files in the build tree, otherwise in the
7165 # src tree.
7166 ac_file_inputs=`IFS=:
7167 for f in $ac_file_in; do
7168 case $f in
7169 -) echo $tmp/stdin ;;
7170 [\\/$]*)
7171 # Absolute (can't be DOS-style, as IFS=:)
7172 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7173 echo "$as_me: error: cannot find input file: $f" >&2;}
7174 { (exit 1); exit 1; }; }
7175 # Do quote $f, to prevent DOS paths from being IFS'd.
7176 echo "$f";;
7177 *) # Relative
7178 if test -f "$f"; then
7179 # Build tree
7180 echo "$f"
7181 elif test -f "$srcdir/$f"; then
7182 # Source tree
7183 echo "$srcdir/$f"
7184 else
7185 # /dev/null tree
7186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7187 echo "$as_me: error: cannot find input file: $f" >&2;}
7188 { (exit 1); exit 1; }; }
7189 fi;;
7190 esac
7191 done` || { (exit 1); exit 1; }
7192 # Remove the trailing spaces.
7193 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7195 _ACEOF
7197 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7198 # `conftest.undefs', that substitutes the proper values into
7199 # config.h.in to produce config.h. The first handles `#define'
7200 # templates, and the second `#undef' templates.
7201 # And first: Protect against being on the right side of a sed subst in
7202 # config.status. Protect against being in an unquoted here document
7203 # in config.status.
7204 rm -f conftest.defines conftest.undefs
7205 # Using a here document instead of a string reduces the quoting nightmare.
7206 # Putting comments in sed scripts is not portable.
7208 # `end' is used to avoid that the second main sed command (meant for
7209 # 0-ary CPP macros) applies to n-ary macro definitions.
7210 # See the Autoconf documentation for `clear'.
7211 cat >confdef2sed.sed <<\_ACEOF
7212 s/[\\&,]/\\&/g
7213 s,[\\$`],\\&,g
7214 t clear
7215 : clear
7216 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7217 t end
7218 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7219 : end
7220 _ACEOF
7221 # If some macros were called several times there might be several times
7222 # the same #defines, which is useless. Nevertheless, we may not want to
7223 # sort them, since we want the *last* AC-DEFINE to be honored.
7224 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7225 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7226 rm -f confdef2sed.sed
7228 # This sed command replaces #undef with comments. This is necessary, for
7229 # example, in the case of _POSIX_SOURCE, which is predefined and required
7230 # on some systems where configure will not decide to define it.
7231 cat >>conftest.undefs <<\_ACEOF
7232 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7233 _ACEOF
7235 # Break up conftest.defines because some shells have a limit on the size
7236 # of here documents, and old seds have small limits too (100 cmds).
7237 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7238 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7239 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7240 echo ' :' >>$CONFIG_STATUS
7241 rm -f conftest.tail
7242 while grep . conftest.defines >/dev/null
7244 # Write a limited-size here document to $tmp/defines.sed.
7245 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7246 # Speed up: don't consider the non `#define' lines.
7247 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7248 # Work around the forget-to-reset-the-flag bug.
7249 echo 't clr' >>$CONFIG_STATUS
7250 echo ': clr' >>$CONFIG_STATUS
7251 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7252 echo 'CEOF
7253 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7254 rm -f $tmp/in
7255 mv $tmp/out $tmp/in
7256 ' >>$CONFIG_STATUS
7257 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7258 rm -f conftest.defines
7259 mv conftest.tail conftest.defines
7260 done
7261 rm -f conftest.defines
7262 echo ' fi # grep' >>$CONFIG_STATUS
7263 echo >>$CONFIG_STATUS
7265 # Break up conftest.undefs because some shells have a limit on the size
7266 # of here documents, and old seds have small limits too (100 cmds).
7267 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7268 rm -f conftest.tail
7269 while grep . conftest.undefs >/dev/null
7271 # Write a limited-size here document to $tmp/undefs.sed.
7272 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7273 # Speed up: don't consider the non `#undef'
7274 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7275 # Work around the forget-to-reset-the-flag bug.
7276 echo 't clr' >>$CONFIG_STATUS
7277 echo ': clr' >>$CONFIG_STATUS
7278 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7279 echo 'CEOF
7280 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7281 rm -f $tmp/in
7282 mv $tmp/out $tmp/in
7283 ' >>$CONFIG_STATUS
7284 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7285 rm -f conftest.undefs
7286 mv conftest.tail conftest.undefs
7287 done
7288 rm -f conftest.undefs
7290 cat >>$CONFIG_STATUS <<\_ACEOF
7291 # Let's still pretend it is `configure' which instantiates (i.e., don't
7292 # use $as_me), people would be surprised to read:
7293 # /* config.h. Generated by config.status. */
7294 if test x"$ac_file" = x-; then
7295 echo "/* Generated by configure. */" >$tmp/config.h
7296 else
7297 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7299 cat $tmp/in >>$tmp/config.h
7300 rm -f $tmp/in
7301 if test x"$ac_file" != x-; then
7302 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7303 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7304 echo "$as_me: $ac_file is unchanged" >&6;}
7305 else
7306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7308 X"$ac_file" : 'X\(//\)[^/]' \| \
7309 X"$ac_file" : 'X\(//\)$' \| \
7310 X"$ac_file" : 'X\(/\)' \| \
7311 . : '\(.\)' 2>/dev/null ||
7312 echo X"$ac_file" |
7313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7315 /^X\(\/\/\)$/{ s//\1/; q; }
7316 /^X\(\/\).*/{ s//\1/; q; }
7317 s/.*/./; q'`
7318 { if $as_mkdir_p; then
7319 mkdir -p "$ac_dir"
7320 else
7321 as_dir="$ac_dir"
7322 as_dirs=
7323 while test ! -d "$as_dir"; do
7324 as_dirs="$as_dir $as_dirs"
7325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7327 X"$as_dir" : 'X\(//\)[^/]' \| \
7328 X"$as_dir" : 'X\(//\)$' \| \
7329 X"$as_dir" : 'X\(/\)' \| \
7330 . : '\(.\)' 2>/dev/null ||
7331 echo X"$as_dir" |
7332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7334 /^X\(\/\/\)$/{ s//\1/; q; }
7335 /^X\(\/\).*/{ s//\1/; q; }
7336 s/.*/./; q'`
7337 done
7338 test ! -n "$as_dirs" || mkdir $as_dirs
7339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7341 { (exit 1); exit 1; }; }; }
7343 rm -f $ac_file
7344 mv $tmp/config.h $ac_file
7346 else
7347 cat $tmp/config.h
7348 rm -f $tmp/config.h
7350 done
7351 _ACEOF
7353 cat >>$CONFIG_STATUS <<\_ACEOF
7355 { (exit 0); exit 0; }
7356 _ACEOF
7357 chmod +x $CONFIG_STATUS
7358 ac_clean_files=$ac_clean_files_save
7361 # configure is writing to config.log, and then calls config.status.
7362 # config.status does its own redirection, appending to config.log.
7363 # Unfortunately, on DOS this fails, as config.log is still kept open
7364 # by configure, so config.status won't be able to write to it; its
7365 # output is simply discarded. So we exec the FD to /dev/null,
7366 # effectively closing config.log, so it can be properly (re)opened and
7367 # appended to by config.status. When coming back to configure, we
7368 # need to make the FD available again.
7369 if test "$no_create" != yes; then
7370 ac_cs_success=:
7371 ac_config_status_args=
7372 test "$silent" = yes &&
7373 ac_config_status_args="$ac_config_status_args --quiet"
7374 exec 5>/dev/null
7375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7376 exec 5>>config.log
7377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7378 # would make configure fail if this is the last instruction.
7379 $ac_cs_success || { (exit 1); exit 1; }
7383 # CONFIG_SUBDIRS section.
7385 if test "$no_recursion" != yes; then
7387 # Remove --cache-file and --srcdir arguments so they do not pile up.
7388 ac_sub_configure_args=
7389 ac_prev=
7390 for ac_arg in $ac_configure_args; do
7391 if test -n "$ac_prev"; then
7392 ac_prev=
7393 continue
7395 case $ac_arg in
7396 -cache-file | --cache-file | --cache-fil | --cache-fi \
7397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7398 ac_prev=cache_file ;;
7399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7401 | --c=*)
7403 --config-cache | -C)
7405 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7406 ac_prev=srcdir ;;
7407 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7409 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7410 ac_prev=prefix ;;
7411 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7413 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7414 esac
7415 done
7417 # Always prepend --prefix to ensure using the same prefix
7418 # in subdir configurations.
7419 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7421 ac_popdir=`pwd`
7422 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7424 # Do not complain, so a configure script can configure whichever
7425 # parts of a large source tree are present.
7426 test -d $srcdir/$ac_dir || continue
7428 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7429 echo "$as_me: configuring in $ac_dir" >&6;}
7430 { if $as_mkdir_p; then
7431 mkdir -p "$ac_dir"
7432 else
7433 as_dir="$ac_dir"
7434 as_dirs=
7435 while test ! -d "$as_dir"; do
7436 as_dirs="$as_dir $as_dirs"
7437 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7439 X"$as_dir" : 'X\(//\)[^/]' \| \
7440 X"$as_dir" : 'X\(//\)$' \| \
7441 X"$as_dir" : 'X\(/\)' \| \
7442 . : '\(.\)' 2>/dev/null ||
7443 echo X"$as_dir" |
7444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7446 /^X\(\/\/\)$/{ s//\1/; q; }
7447 /^X\(\/\).*/{ s//\1/; q; }
7448 s/.*/./; q'`
7449 done
7450 test ! -n "$as_dirs" || mkdir $as_dirs
7451 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7452 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7453 { (exit 1); exit 1; }; }; }
7455 ac_builddir=.
7457 if test "$ac_dir" != .; then
7458 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7459 # A "../" for each directory in $ac_dir_suffix.
7460 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7461 else
7462 ac_dir_suffix= ac_top_builddir=
7465 case $srcdir in
7466 .) # No --srcdir option. We are building in place.
7467 ac_srcdir=.
7468 if test -z "$ac_top_builddir"; then
7469 ac_top_srcdir=.
7470 else
7471 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7472 fi ;;
7473 [\\/]* | ?:[\\/]* ) # Absolute path.
7474 ac_srcdir=$srcdir$ac_dir_suffix;
7475 ac_top_srcdir=$srcdir ;;
7476 *) # Relative path.
7477 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7478 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7479 esac
7481 # Do not use `cd foo && pwd` to compute absolute paths, because
7482 # the directories may not exist.
7483 case `pwd` in
7484 .) ac_abs_builddir="$ac_dir";;
7486 case "$ac_dir" in
7487 .) ac_abs_builddir=`pwd`;;
7488 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7489 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7490 esac;;
7491 esac
7492 case $ac_abs_builddir in
7493 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7495 case ${ac_top_builddir}. in
7496 .) ac_abs_top_builddir=$ac_abs_builddir;;
7497 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7498 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7499 esac;;
7500 esac
7501 case $ac_abs_builddir in
7502 .) ac_abs_srcdir=$ac_srcdir;;
7504 case $ac_srcdir in
7505 .) ac_abs_srcdir=$ac_abs_builddir;;
7506 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7507 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7508 esac;;
7509 esac
7510 case $ac_abs_builddir in
7511 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7513 case $ac_top_srcdir in
7514 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7515 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7516 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7517 esac;;
7518 esac
7521 cd $ac_dir
7523 # Check for guested configure; otherwise get Cygnus style configure.
7524 if test -f $ac_srcdir/configure.gnu; then
7525 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7526 elif test -f $ac_srcdir/configure; then
7527 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7528 elif test -f $ac_srcdir/configure.in; then
7529 ac_sub_configure=$ac_configure
7530 else
7531 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7533 ac_sub_configure=
7536 # The recursion is here.
7537 if test -n "$ac_sub_configure"; then
7538 # Make the cache file name correct relative to the subdirectory.
7539 case $cache_file in
7540 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7541 *) # Relative path.
7542 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7543 esac
7545 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7546 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7547 # The eval makes quoting arguments work.
7548 eval $ac_sub_configure $ac_sub_configure_args \
7549 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7550 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7551 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7552 { (exit 1); exit 1; }; }
7555 cd $ac_popdir
7556 done