Disabled some code till get a chance to amke it work! Back to doing full disk searche...
[opal/cbnco.git] / configure
blob67b977b70f83afa526099d012693c4661a5d9fba
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_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OPALDIR INSTALLPREFIX LIBDIR PTLIB_CONFIG PWLIBDIR CPP EGREP RFC2190_AVCODEC RFC2190_AVCODEC_DIR SIZE16 SIZE32 OPAL_SYSTEM_SPEEX OPAL_HAVE_SPEEX_SPEEX_H OPAL_ILBC OPAL_AUDIO OPAL_VIDEO OPAL_SIP OPAL_H323 OPAL_T38FAX OPAL_IAX2 OPAL_H224 H323_H460 HAS_IXJ OPAL_LID HAS_VPB HAS_SANGOMA STDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-versioncheck disable PWLib version check
852 --enable-h263avcodec specify RFC 2190 compatible avcodec
853 headers
854 --enable-localspeex use local version of Speex library rather than system version
855 --disable-ilbc disable iLBC codec support
856 --disable-sip disable SIP protocol support
857 --disable-h323 disable H.323 protocol support
858 --disable-t38 disable T.38 protocol support
859 --disable-iax disable IAX2 protocol support
860 --disable-h224 disable H.224 protocol support
861 --disable-h460 disable H.460
862 --enable-vpb enable voicetronix vpb
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CXX C++ compiler command
872 CXXFLAGS C++ compiler flags
873 CPP C preprocessor
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
878 _ACEOF
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
917 case "$ac_dir" in
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
935 case $ac_srcdir in
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 esac;;
949 esac
951 cd $ac_dir
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
954 echo
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
957 echo
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
961 echo
962 $ac_configure --help
963 else
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 cd $ac_popdir
967 done
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972 cat <<\_ACEOF
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978 exit 0
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
988 $ $0 $@
990 _ACEOF
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 _ASUNAME
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1019 IFS=$as_save_IFS
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1022 done
1024 } >&5
1026 cat >&5 <<_ACEOF
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1033 _ACEOF
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1048 for ac_arg
1050 case $ac_arg in
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 continue ;;
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 esac
1058 case $ac_pass in
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1064 else
1065 case $ac_arg in
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072 esac
1074 -* ) ac_must_keep_next=true ;;
1075 esac
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1079 ac_sep=" "
1081 esac
1082 done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1095 echo
1097 cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102 echo
1103 # The following way of writing the cache mishandles newlines in values,
1105 (set) 2>&1 |
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 *ac_space=\ *)
1108 sed -n \
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 sed -n \
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 esac;
1118 echo
1120 cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1133 if test -n "$ac_subst_files"; then
1134 cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1148 if test -s confdefs.h; then
1149 cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154 echo
1155 sed "/^$/d" confdefs.h | sort
1156 echo
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1161 } >&5
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 exit $exit_status
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 else
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1217 . "$ac_site_file"
1219 done
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227 case $cache_file in
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1230 esac
1232 else
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235 >$cache_file
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1248 set,)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,set)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,);;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1266 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 esac
1280 done
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 if test -n "$ac_tool_prefix"; then
1320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1322 echo "$as_me:$LINENO: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_CC+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test.
1329 else
1330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1331 for as_dir in $PATH
1333 IFS=$as_save_IFS
1334 test -z "$as_dir" && as_dir=.
1335 for ac_exec_ext in '' $ac_executable_extensions; do
1336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1339 break 2
1341 done
1342 done
1346 CC=$ac_cv_prog_CC
1347 if test -n "$CC"; then
1348 echo "$as_me:$LINENO: result: $CC" >&5
1349 echo "${ECHO_T}$CC" >&6
1350 else
1351 echo "$as_me:$LINENO: result: no" >&5
1352 echo "${ECHO_T}no" >&6
1356 if test -z "$ac_cv_prog_CC"; then
1357 ac_ct_CC=$CC
1358 # Extract the first word of "gcc", so it can be a program name with args.
1359 set dummy gcc; ac_word=$2
1360 echo "$as_me:$LINENO: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 if test -n "$ac_ct_CC"; then
1366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1367 else
1368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 for as_dir in $PATH
1371 IFS=$as_save_IFS
1372 test -z "$as_dir" && as_dir=.
1373 for ac_exec_ext in '' $ac_executable_extensions; do
1374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375 ac_cv_prog_ac_ct_CC="gcc"
1376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377 break 2
1379 done
1380 done
1384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1385 if test -n "$ac_ct_CC"; then
1386 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1387 echo "${ECHO_T}$ac_ct_CC" >&6
1388 else
1389 echo "$as_me:$LINENO: result: no" >&5
1390 echo "${ECHO_T}no" >&6
1393 CC=$ac_ct_CC
1394 else
1395 CC="$ac_cv_prog_CC"
1398 if test -z "$CC"; then
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}cc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 for as_dir in $PATH
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}cc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1421 done
1422 done
1426 CC=$ac_cv_prog_CC
1427 if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1430 else
1431 echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1436 if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "cc", so it can be a program name with args.
1439 set dummy cc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="cc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1459 done
1460 done
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 CC=$ac_ct_CC
1474 else
1475 CC="$ac_cv_prog_CC"
1479 if test -z "$CC"; then
1480 # Extract the first word of "cc", so it can be a program name with args.
1481 set dummy cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else
1490 ac_prog_rejected=no
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1499 ac_prog_rejected=yes
1500 continue
1502 ac_cv_prog_CC="cc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1506 done
1507 done
1509 if test $ac_prog_rejected = yes; then
1510 # We found a bogon in the path, so make sure we never use it.
1511 set dummy $ac_cv_prog_CC
1512 shift
1513 if test $# != 0; then
1514 # We chose a different compiler from the bogus one.
1515 # However, it has the same basename, so the bogon will be chosen
1516 # first if we set CC to just the basename; use the full file name.
1517 shift
1518 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1523 CC=$ac_cv_prog_CC
1524 if test -n "$CC"; then
1525 echo "$as_me:$LINENO: result: $CC" >&5
1526 echo "${ECHO_T}$CC" >&6
1527 else
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1533 if test -z "$CC"; then
1534 if test -n "$ac_tool_prefix"; then
1535 for ac_prog in cl
1537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$CC"; then
1545 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1558 done
1559 done
1563 CC=$ac_cv_prog_CC
1564 if test -n "$CC"; then
1565 echo "$as_me:$LINENO: result: $CC" >&5
1566 echo "${ECHO_T}$CC" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$CC" && break
1573 done
1575 if test -z "$CC"; then
1576 ac_ct_CC=$CC
1577 for ac_prog in cl
1579 # Extract the first word of "$ac_prog", so it can be a program name with args.
1580 set dummy $ac_prog; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="$ac_prog"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1600 done
1601 done
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1614 test -n "$ac_ct_CC" && break
1615 done
1617 CC=$ac_ct_CC
1623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1624 See \`config.log' for more details." >&5
1625 echo "$as_me: error: no acceptable C compiler found in \$PATH
1626 See \`config.log' for more details." >&2;}
1627 { (exit 1); exit 1; }; }
1629 # Provide some information about the compiler.
1630 echo "$as_me:$LINENO:" \
1631 "checking for C compiler version" >&5
1632 ac_compiler=`set X $ac_compile; echo $2`
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1634 (eval $ac_compiler --version </dev/null >&5) 2>&5
1635 ac_status=$?
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1639 (eval $ac_compiler -v </dev/null >&5) 2>&5
1640 ac_status=$?
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }
1643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1644 (eval $ac_compiler -V </dev/null >&5) 2>&5
1645 ac_status=$?
1646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1647 (exit $ac_status); }
1649 cat >conftest.$ac_ext <<_ACEOF
1650 /* confdefs.h. */
1651 _ACEOF
1652 cat confdefs.h >>conftest.$ac_ext
1653 cat >>conftest.$ac_ext <<_ACEOF
1654 /* end confdefs.h. */
1657 main ()
1661 return 0;
1663 _ACEOF
1664 ac_clean_files_save=$ac_clean_files
1665 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1666 # Try to create an executable without -o first, disregard a.out.
1667 # It will help us diagnose broken compilers, and finding out an intuition
1668 # of exeext.
1669 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1670 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1671 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1672 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1673 (eval $ac_link_default) 2>&5
1674 ac_status=$?
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }; then
1677 # Find the output, starting from the most likely. This scheme is
1678 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1679 # resort.
1681 # Be careful to initialize this variable, since it used to be cached.
1682 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1683 ac_cv_exeext=
1684 # b.out is created by i960 compilers.
1685 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1687 test -f "$ac_file" || continue
1688 case $ac_file in
1689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1691 conftest.$ac_ext )
1692 # This is the source file.
1694 [ab].out )
1695 # We found the default executable, but exeext='' is most
1696 # certainly right.
1697 break;;
1698 *.* )
1699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1700 # FIXME: I believe we export ac_cv_exeext for Libtool,
1701 # but it would be cool to find out if it's true. Does anybody
1702 # maintain Libtool? --akim.
1703 export ac_cv_exeext
1704 break;;
1706 break;;
1707 esac
1708 done
1709 else
1710 echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1714 See \`config.log' for more details." >&5
1715 echo "$as_me: error: C compiler cannot create executables
1716 See \`config.log' for more details." >&2;}
1717 { (exit 77); exit 77; }; }
1720 ac_exeext=$ac_cv_exeext
1721 echo "$as_me:$LINENO: result: $ac_file" >&5
1722 echo "${ECHO_T}$ac_file" >&6
1724 # Check the compiler produces executables we can run. If not, either
1725 # the compiler is broken, or we cross compile.
1726 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1727 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1728 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1729 # If not cross compiling, check that we can run a simple program.
1730 if test "$cross_compiling" != yes; then
1731 if { ac_try='./$ac_file'
1732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1733 (eval $ac_try) 2>&5
1734 ac_status=$?
1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736 (exit $ac_status); }; }; then
1737 cross_compiling=no
1738 else
1739 if test "$cross_compiling" = maybe; then
1740 cross_compiling=yes
1741 else
1742 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1743 If you meant to cross compile, use \`--host'.
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'.
1747 See \`config.log' for more details." >&2;}
1748 { (exit 1); exit 1; }; }
1752 echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1755 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1756 ac_clean_files=$ac_clean_files_save
1757 # Check the compiler produces executables we can run. If not, either
1758 # the compiler is broken, or we cross compile.
1759 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1760 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1761 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1762 echo "${ECHO_T}$cross_compiling" >&6
1764 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1765 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1767 (eval $ac_link) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }; then
1771 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1772 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1773 # work properly (i.e., refer to `conftest.exe'), while it won't with
1774 # `rm'.
1775 for ac_file in conftest.exe conftest conftest.*; do
1776 test -f "$ac_file" || continue
1777 case $ac_file in
1778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1780 export ac_cv_exeext
1781 break;;
1782 * ) break;;
1783 esac
1784 done
1785 else
1786 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1787 See \`config.log' for more details." >&5
1788 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1789 See \`config.log' for more details." >&2;}
1790 { (exit 1); exit 1; }; }
1793 rm -f conftest$ac_cv_exeext
1794 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1795 echo "${ECHO_T}$ac_cv_exeext" >&6
1797 rm -f conftest.$ac_ext
1798 EXEEXT=$ac_cv_exeext
1799 ac_exeext=$EXEEXT
1800 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1802 if test "${ac_cv_objext+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 cat >conftest.$ac_ext <<_ACEOF
1806 /* confdefs.h. */
1807 _ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1813 main ()
1817 return 0;
1819 _ACEOF
1820 rm -f conftest.o conftest.obj
1821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1822 (eval $ac_compile) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1827 case $ac_file in
1828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1829 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1830 break;;
1831 esac
1832 done
1833 else
1834 echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1837 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1838 See \`config.log' for more details." >&5
1839 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1840 See \`config.log' for more details." >&2;}
1841 { (exit 1); exit 1; }; }
1844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1846 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1847 echo "${ECHO_T}$ac_cv_objext" >&6
1848 OBJEXT=$ac_cv_objext
1849 ac_objext=$OBJEXT
1850 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 cat >conftest.$ac_ext <<_ACEOF
1856 /* confdefs.h. */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1863 main ()
1865 #ifndef __GNUC__
1866 choke me
1867 #endif
1870 return 0;
1872 _ACEOF
1873 rm -f conftest.$ac_objext
1874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1875 (eval $ac_compile) 2>conftest.er1
1876 ac_status=$?
1877 grep -v '^ *+' conftest.er1 >conftest.err
1878 rm -f conftest.er1
1879 cat conftest.err >&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); } &&
1882 { ac_try='test -z "$ac_c_werror_flag"
1883 || test ! -s conftest.err'
1884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885 (eval $ac_try) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; } &&
1889 { ac_try='test -s conftest.$ac_objext'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 (eval $ac_try) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1895 ac_compiler_gnu=yes
1896 else
1897 echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_compiler_gnu=no
1902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1911 CFLAGS="-g"
1912 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 /* confdefs.h. */
1919 _ACEOF
1920 cat confdefs.h >>conftest.$ac_ext
1921 cat >>conftest.$ac_ext <<_ACEOF
1922 /* end confdefs.h. */
1925 main ()
1929 return 0;
1931 _ACEOF
1932 rm -f conftest.$ac_objext
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>conftest.er1
1935 ac_status=$?
1936 grep -v '^ *+' conftest.er1 >conftest.err
1937 rm -f conftest.er1
1938 cat conftest.err >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -z "$ac_c_werror_flag"
1942 || test ! -s conftest.err'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1950 (eval $ac_try) 2>&5
1951 ac_status=$?
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1954 ac_cv_prog_cc_g=yes
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_cv_prog_cc_g=no
1961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1963 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1964 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1965 if test "$ac_test_CFLAGS" = set; then
1966 CFLAGS=$ac_save_CFLAGS
1967 elif test $ac_cv_prog_cc_g = yes; then
1968 if test "$GCC" = yes; then
1969 CFLAGS="-g -O2"
1970 else
1971 CFLAGS="-g"
1973 else
1974 if test "$GCC" = yes; then
1975 CFLAGS="-O2"
1976 else
1977 CFLAGS=
1980 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1981 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1982 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 ac_cv_prog_cc_stdc=no
1986 ac_save_CC=$CC
1987 cat >conftest.$ac_ext <<_ACEOF
1988 /* confdefs.h. */
1989 _ACEOF
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h. */
1993 #include <stdarg.h>
1994 #include <stdio.h>
1995 #include <sys/types.h>
1996 #include <sys/stat.h>
1997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1998 struct buf { int x; };
1999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2000 static char *e (p, i)
2001 char **p;
2002 int i;
2004 return p[i];
2006 static char *f (char * (*g) (char **, int), char **p, ...)
2008 char *s;
2009 va_list v;
2010 va_start (v,p);
2011 s = g (p, va_arg (v,int));
2012 va_end (v);
2013 return s;
2016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2017 function prototypes and stuff, but not '\xHH' hex character constants.
2018 These don't provoke an error unfortunately, instead are silently treated
2019 as 'x'. The following induces an error, until -std1 is added to get
2020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2021 array size at least. It's necessary to write '\x00'==0 to get something
2022 that's true only with -std1. */
2023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2025 int test (int i, double x);
2026 struct s1 {int (*f) (int a);};
2027 struct s2 {int (*f) (double a);};
2028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2029 int argc;
2030 char **argv;
2032 main ()
2034 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2036 return 0;
2038 _ACEOF
2039 # Don't try gcc -ansi; that turns off useful extensions and
2040 # breaks some systems' header files.
2041 # AIX -qlanglvl=ansi
2042 # Ultrix and OSF/1 -std1
2043 # HP-UX 10.20 and later -Ae
2044 # HP-UX older versions -Aa -D_HPUX_SOURCE
2045 # SVR4 -Xc -D__EXTENSIONS__
2046 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2048 CC="$ac_save_CC $ac_arg"
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2052 ac_status=$?
2053 grep -v '^ *+' conftest.er1 >conftest.err
2054 rm -f conftest.er1
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -z "$ac_c_werror_flag"
2059 || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_prog_cc_stdc=$ac_arg
2072 break
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2078 rm -f conftest.err conftest.$ac_objext
2079 done
2080 rm -f conftest.$ac_ext conftest.$ac_objext
2081 CC=$ac_save_CC
2085 case "x$ac_cv_prog_cc_stdc" in
2086 x|xno)
2087 echo "$as_me:$LINENO: result: none needed" >&5
2088 echo "${ECHO_T}none needed" >&6 ;;
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2092 CC="$CC $ac_cv_prog_cc_stdc" ;;
2093 esac
2095 # Some people use a C++ compiler to compile C. Since we use `exit',
2096 # in C++ we need to declare it. In case someone uses the same compiler
2097 # for both compiling C and C++ we need to have the C++ compiler decide
2098 # the declaration of exit, since it's the most demanding environment.
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #ifndef __cplusplus
2101 choke me
2102 #endif
2103 _ACEOF
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 for ac_declaration in \
2127 '' \
2128 'extern "C" void std::exit (int) throw (); using std::exit;' \
2129 'extern "C" void std::exit (int); using std::exit;' \
2130 'extern "C" void exit (int) throw ();' \
2131 'extern "C" void exit (int);' \
2132 'void exit (int);'
2134 cat >conftest.$ac_ext <<_ACEOF
2135 /* confdefs.h. */
2136 _ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h. */
2140 $ac_declaration
2141 #include <stdlib.h>
2143 main ()
2145 exit (42);
2147 return 0;
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2153 ac_status=$?
2154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2173 else
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 continue
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h. */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2186 $ac_declaration
2188 main ()
2190 exit (42);
2192 return 0;
2194 _ACEOF
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 break
2218 else
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224 done
2225 rm -f conftest*
2226 if test -n "$ac_declaration"; then
2227 echo '#ifdef __cplusplus' >>confdefs.h
2228 echo $ac_declaration >>confdefs.h
2229 echo '#endif' >>confdefs.h
2232 else
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 ac_ext=c
2239 ac_cpp='$CPP $CPPFLAGS'
2240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244 ac_ext=cc
2245 ac_cpp='$CXXCPP $CPPFLAGS'
2246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2249 if test -n "$ac_tool_prefix"; then
2250 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CXX+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 if test -n "$CXX"; then
2260 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2273 done
2274 done
2278 CXX=$ac_cv_prog_CXX
2279 if test -n "$CXX"; then
2280 echo "$as_me:$LINENO: result: $CXX" >&5
2281 echo "${ECHO_T}$CXX" >&6
2282 else
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2287 test -n "$CXX" && break
2288 done
2290 if test -z "$CXX"; then
2291 ac_ct_CXX=$CXX
2292 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 if test -n "$ac_ct_CXX"; then
2302 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_ac_ct_CXX="$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2320 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2321 if test -n "$ac_ct_CXX"; then
2322 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2323 echo "${ECHO_T}$ac_ct_CXX" >&6
2324 else
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$ac_ct_CXX" && break
2330 done
2331 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2333 CXX=$ac_ct_CXX
2337 # Provide some information about the compiler.
2338 echo "$as_me:$LINENO:" \
2339 "checking for C++ compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2342 (eval $ac_compiler --version </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2347 (eval $ac_compiler -v </dev/null >&5) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2352 (eval $ac_compiler -V </dev/null >&5) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2357 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2359 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h. */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2370 main ()
2372 #ifndef __GNUC__
2373 choke me
2374 #endif
2377 return 0;
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_cxx_werror_flag"
2390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_compiler_gnu=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 ac_compiler_gnu=no
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2413 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2415 GXX=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CXXFLAGS=${CXXFLAGS+set}
2417 ac_save_CXXFLAGS=$CXXFLAGS
2418 CXXFLAGS="-g"
2419 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2420 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cxx_g+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2432 main ()
2436 return 0;
2438 _ACEOF
2439 rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2442 ac_status=$?
2443 grep -v '^ *+' conftest.er1 >conftest.err
2444 rm -f conftest.er1
2445 cat conftest.err >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -z "$ac_cxx_werror_flag"
2449 || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_prog_cxx_g=yes
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 ac_cv_prog_cxx_g=no
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2472 if test "$ac_test_CXXFLAGS" = set; then
2473 CXXFLAGS=$ac_save_CXXFLAGS
2474 elif test $ac_cv_prog_cxx_g = yes; then
2475 if test "$GXX" = yes; then
2476 CXXFLAGS="-g -O2"
2477 else
2478 CXXFLAGS="-g"
2480 else
2481 if test "$GXX" = yes; then
2482 CXXFLAGS="-O2"
2483 else
2484 CXXFLAGS=
2487 for ac_declaration in \
2488 '' \
2489 'extern "C" void std::exit (int) throw (); using std::exit;' \
2490 'extern "C" void std::exit (int); using std::exit;' \
2491 'extern "C" void exit (int) throw ();' \
2492 'extern "C" void exit (int);' \
2493 'void exit (int);'
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 $ac_declaration
2502 #include <stdlib.h>
2504 main ()
2506 exit (42);
2508 return 0;
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>conftest.er1
2514 ac_status=$?
2515 grep -v '^ *+' conftest.er1 >conftest.err
2516 rm -f conftest.er1
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_cxx_werror_flag"
2521 || test ! -s conftest.err'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 (eval $ac_try) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2538 continue
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547 $ac_declaration
2549 main ()
2551 exit (42);
2553 return 0;
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_cxx_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 break
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 done
2586 rm -f conftest*
2587 if test -n "$ac_declaration"; then
2588 echo '#ifdef __cplusplus' >>confdefs.h
2589 echo $ac_declaration >>confdefs.h
2590 echo '#endif' >>confdefs.h
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 REQUIRED_PWLIB_MAJOR=1
2601 REQUIRED_PWLIB_MINOR=10
2602 REQUIRED_PWLIB_BUILD=0
2605 OPALDIR=`pwd`
2608 if test "x$prefix" = "xNONE"; then
2609 INSTALLPREFIX="/usr/local"
2610 else
2611 INSTALLPREFIX="${prefix}"
2616 LIBDIR="${libdir}"
2620 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2621 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2622 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2623 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2624 cat >>confdefs.h <<_ACEOF
2625 #define OPAL_MAJOR ${MAJOR_VERSION}
2626 _ACEOF
2628 cat >>confdefs.h <<_ACEOF
2629 #define OPAL_MINOR ${MINOR_VERSION}
2630 _ACEOF
2632 cat >>confdefs.h <<_ACEOF
2633 #define OPAL_BUILD ${BUILD_NUMBER}
2634 _ACEOF
2636 cat >>confdefs.h <<_ACEOF
2637 #define OPAL_VERSION "$OPAL_VERSION"
2638 _ACEOF
2643 if test "${PWLIBDIR:-unset}" != "unset" ; then
2644 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2645 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2646 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2647 if eval "test \"\${$as_ac_File+set}\" = set"; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 test "$cross_compiling" = yes &&
2651 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2652 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2653 { (exit 1); exit 1; }; }
2654 if test -r "${PWLIBDIR}/version.h"; then
2655 eval "$as_ac_File=yes"
2656 else
2657 eval "$as_ac_File=no"
2660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2661 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2662 if test `eval echo '${'$as_ac_File'}'` = yes; then
2663 HAS_PTLIB=1
2667 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2668 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2669 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2670 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2671 if eval "test \"\${$as_ac_File+set}\" = set"; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 test "$cross_compiling" = yes &&
2675 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2676 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2677 { (exit 1); exit 1; }; }
2678 if test -r "${OPALDIR}/../pwlib/version.h"; then
2679 eval "$as_ac_File=yes"
2680 else
2681 eval "$as_ac_File=no"
2684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2685 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2686 if test `eval echo '${'$as_ac_File'}'` = yes; then
2687 HAS_PTLIB=1
2690 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2691 PWLIBDIR="${OPALDIR}/../pwlib"
2692 else
2693 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2694 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2695 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2696 if eval "test \"\${$as_ac_File+set}\" = set"; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 test "$cross_compiling" = yes &&
2700 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2701 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2702 { (exit 1); exit 1; }; }
2703 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2704 eval "$as_ac_File=yes"
2705 else
2706 eval "$as_ac_File=no"
2709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2710 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2711 if test `eval echo '${'$as_ac_File'}'` = yes; then
2712 HAS_PTLIB=1
2715 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2716 PWLIBDIR="${HOME}/pwlib"
2717 else
2718 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2719 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2720 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 test "$cross_compiling" = yes &&
2724 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2725 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2726 { (exit 1); exit 1; }; }
2727 if test -r "/usr/local/include/ptlib.h"; then
2728 ac_cv_file__usr_local_include_ptlib_h=yes
2729 else
2730 ac_cv_file__usr_local_include_ptlib_h=no
2733 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2734 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2735 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2736 HAS_PTLIB=1
2739 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2740 # Extract the first word of "ptlib-config", so it can be a program name with args.
2741 set dummy ptlib-config; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 case $PTLIB_CONFIG in
2748 [\\/]* | ?:[\\/]*)
2749 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in /usr/local/bin
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2767 esac
2769 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2771 if test -n "$PTLIB_CONFIG"; then
2772 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2773 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2774 else
2775 echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6
2779 else
2780 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2781 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2782 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 test "$cross_compiling" = yes &&
2786 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2787 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2788 { (exit 1); exit 1; }; }
2789 if test -r "/usr/include/ptlib.h"; then
2790 ac_cv_file__usr_include_ptlib_h=yes
2791 else
2792 ac_cv_file__usr_include_ptlib_h=no
2795 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2796 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2797 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2798 HAS_PTLIB=1
2801 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2802 # Extract the first word of "ptlib-config", so it can be a program name with args.
2803 set dummy ptlib-config; ac_word=$2
2804 echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 case $PTLIB_CONFIG in
2810 [\\/]* | ?:[\\/]*)
2811 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in /usr/share/pwlib/make/
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2829 esac
2831 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2833 if test -n "$PTLIB_CONFIG"; then
2834 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2835 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2836 else
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2847 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2848 echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
2849 exit
2852 if test "${PWLIBDIR:-unset}" = "unset" ; then
2853 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2854 echo "Cannot find ptlib-config - please install and try again"
2855 exit
2857 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2860 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2861 PWLIBDIR="/usr/share/pwlib/"
2863 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2864 PWLIBDIR="/usr/local/share/pwlib/"
2867 echo "PWLib prefix set to.... $PWLIBDIR"
2869 if test "${PWLIBDIR:-unset}" = "unset" ; then
2870 PWVERSION=`$PTLIB_CONFIG --version`
2871 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2872 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2873 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2875 else
2876 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2877 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2878 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2879 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2882 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2883 if test "${enable_versioncheck+set}" = set; then
2884 enableval="$enable_versioncheck"
2885 PWLIB_VERSION_CHECK=$enableval
2888 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2889 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2890 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2891 echo "$as_me:$LINENO: result: check disabled" >&5
2892 echo "${ECHO_T}check disabled" >&6
2893 else
2894 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2895 echo "$as_me:$LINENO: result: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2896 echo "${ECHO_T}Major version less than required $REQUIRED_PWLIB_MAJOR" >&6
2897 exit 1
2899 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2900 echo "$as_me:$LINENO: result: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2901 echo "${ECHO_T}Minor version less than required $REQUIRED_PWLIB_MINOR" >&6
2902 exit 1
2904 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2905 echo "$as_me:$LINENO: result: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2906 echo "${ECHO_T}Build version less than required $REQUIRED_PWLIB_BUILD" >&6
2907 exit 1
2909 echo "$as_me:$LINENO: result: ok" >&5
2910 echo "${ECHO_T}ok" >&6
2916 if test x$GXX = xyes ; then
2917 USE_GCC=yes
2918 gcc_version=`$CXX -dumpversion`
2919 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2920 echo "$as_me: gcc version is $gcc_version" >&6;};
2921 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
2922 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
2923 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
2925 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
2926 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
2927 if test ${GXX_MAJOR} -lt 3 ; then
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2930 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
2931 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
2932 { (exit 1); exit 1; }; }
2933 else
2934 echo "$as_me:$LINENO: result: yes" >&5
2935 echo "${ECHO_T}yes" >&6
2940 # Check whether --enable-h263avcodec or --disable-h263avcodec was given.
2941 if test "${enable_h263avcodec+set}" = set; then
2942 enableval="$enable_h263avcodec"
2943 RFC2190_AVCODEC_DIR=$enableval
2946 if test "${RFC2190_AVCODEC_DIR}x" = "x" ; then
2947 { echo "$as_me:$LINENO: Skipping tests for RFC 2190 H.263 support" >&5
2948 echo "$as_me: Skipping tests for RFC 2190 H.263 support" >&6;}
2949 else
2950 { echo "$as_me:$LINENO: Searching for standard RFC2190 compliant H.263 codec" >&5
2951 echo "$as_me: Searching for standard RFC2190 compliant H.263 codec" >&6;}
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2962 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2963 # On Suns, sometimes $CPP names a directory.
2964 if test -n "$CPP" && test -d "$CPP"; then
2965 CPP=
2967 if test -z "$CPP"; then
2968 if test "${ac_cv_prog_CPP+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 # Double quotes because CPP needs to be expanded
2972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2974 ac_preproc_ok=false
2975 for ac_c_preproc_warn_flag in '' yes
2977 # Use a header file that comes with gcc, so configuring glibc
2978 # with a fresh cross-compiler works.
2979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2980 # <limits.h> exists even on freestanding compilers.
2981 # On the NeXT, cc -E runs the code through the compiler's parser,
2982 # not just through cpp. "Syntax error" is here to catch this case.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2994 Syntax error
2995 _ACEOF
2996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev/null; then
3004 if test -s conftest.err; then
3005 ac_cpp_err=$ac_c_preproc_warn_flag
3006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3007 else
3008 ac_cpp_err=
3010 else
3011 ac_cpp_err=yes
3013 if test -z "$ac_cpp_err"; then
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 # Broken: fails on valid input.
3020 continue
3022 rm -f conftest.err conftest.$ac_ext
3024 # OK, works on sane cases. Now check whether non-existent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045 else
3046 ac_cpp_err=
3048 else
3049 ac_cpp_err=yes
3051 if test -z "$ac_cpp_err"; then
3052 # Broken: success on invalid input.
3053 continue
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Passes both tests.
3059 ac_preproc_ok=:
3060 break
3062 rm -f conftest.err conftest.$ac_ext
3064 done
3065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3066 rm -f conftest.err conftest.$ac_ext
3067 if $ac_preproc_ok; then
3068 break
3071 done
3072 ac_cv_prog_CPP=$CPP
3075 CPP=$ac_cv_prog_CPP
3076 else
3077 ac_cv_prog_CPP=$CPP
3079 echo "$as_me:$LINENO: result: $CPP" >&5
3080 echo "${ECHO_T}$CPP" >&6
3081 ac_preproc_ok=false
3082 for ac_c_preproc_warn_flag in '' yes
3084 # Use a header file that comes with gcc, so configuring glibc
3085 # with a fresh cross-compiler works.
3086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3087 # <limits.h> exists even on freestanding compilers.
3088 # On the NeXT, cc -E runs the code through the compiler's parser,
3089 # not just through cpp. "Syntax error" is here to catch this case.
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #ifdef __STDC__
3097 # include <limits.h>
3098 #else
3099 # include <assert.h>
3100 #endif
3101 Syntax error
3102 _ACEOF
3103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } >/dev/null; then
3111 if test -s conftest.err; then
3112 ac_cpp_err=$ac_c_preproc_warn_flag
3113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3114 else
3115 ac_cpp_err=
3117 else
3118 ac_cpp_err=yes
3120 if test -z "$ac_cpp_err"; then
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 # Broken: fails on valid input.
3127 continue
3129 rm -f conftest.err conftest.$ac_ext
3131 # OK, works on sane cases. Now check whether non-existent headers
3132 # can be detected and how.
3133 cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h. */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3139 #include <ac_nonexistent.h>
3140 _ACEOF
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev/null; then
3149 if test -s conftest.err; then
3150 ac_cpp_err=$ac_c_preproc_warn_flag
3151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152 else
3153 ac_cpp_err=
3155 else
3156 ac_cpp_err=yes
3158 if test -z "$ac_cpp_err"; then
3159 # Broken: success on invalid input.
3160 continue
3161 else
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 # Passes both tests.
3166 ac_preproc_ok=:
3167 break
3169 rm -f conftest.err conftest.$ac_ext
3171 done
3172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3173 rm -f conftest.err conftest.$ac_ext
3174 if $ac_preproc_ok; then
3176 else
3177 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 echo "$as_me:$LINENO: checking for egrep" >&5
3192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3193 if test "${ac_cv_prog_egrep+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3197 then ac_cv_prog_egrep='grep -E'
3198 else ac_cv_prog_egrep='egrep'
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3203 EGREP=$ac_cv_prog_egrep
3206 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3208 if test "${ac_cv_header_stdc+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 #include <stdlib.h>
3218 #include <stdarg.h>
3219 #include <string.h>
3220 #include <float.h>
3223 main ()
3227 return 0;
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3232 (eval $ac_compile) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag"
3240 || test ! -s conftest.err'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; } &&
3246 { ac_try='test -s conftest.$ac_objext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_header_stdc=yes
3253 else
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 ac_cv_header_stdc=no
3259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3261 if test $ac_cv_header_stdc = yes; then
3262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <string.h>
3271 _ACEOF
3272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3273 $EGREP "memchr" >/dev/null 2>&1; then
3275 else
3276 ac_cv_header_stdc=no
3278 rm -f conftest*
3282 if test $ac_cv_header_stdc = yes; then
3283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3284 cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include <stdlib.h>
3292 _ACEOF
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 $EGREP "free" >/dev/null 2>&1; then
3296 else
3297 ac_cv_header_stdc=no
3299 rm -f conftest*
3303 if test $ac_cv_header_stdc = yes; then
3304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3305 if test "$cross_compiling" = yes; then
3307 else
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #include <ctype.h>
3315 #if ((' ' & 0x0FF) == 0x020)
3316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3318 #else
3319 # define ISLOWER(c) \
3320 (('a' <= (c) && (c) <= 'i') \
3321 || ('j' <= (c) && (c) <= 'r') \
3322 || ('s' <= (c) && (c) <= 'z'))
3323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3324 #endif
3326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3328 main ()
3330 int i;
3331 for (i = 0; i < 256; i++)
3332 if (XOR (islower (i), ISLOWER (i))
3333 || toupper (i) != TOUPPER (i))
3334 exit(2);
3335 exit (0);
3337 _ACEOF
3338 rm -f conftest$ac_exeext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340 (eval $ac_link) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3350 else
3351 echo "$as_me: program exited with status $ac_status" >&5
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 ( exit $ac_status )
3356 ac_cv_header_stdc=no
3358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3364 if test $ac_cv_header_stdc = yes; then
3366 cat >>confdefs.h <<\_ACEOF
3367 #define STDC_HEADERS 1
3368 _ACEOF
3372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3383 inttypes.h stdint.h unistd.h
3385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3386 echo "$as_me:$LINENO: checking for $ac_header" >&5
3387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 $ac_includes_default
3399 #include <$ac_header>
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -z "$ac_c_werror_flag"
3411 || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest.$ac_objext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 eval "$as_ac_Header=yes"
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 eval "$as_ac_Header=no"
3430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3435 cat >>confdefs.h <<_ACEOF
3436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3437 _ACEOF
3441 done
3444 as_ac_Header=`echo "ac_cv_header_${RFC2190_AVCODEC_DIR}/avcodec.h" | $as_tr_sh`
3445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3446 echo "$as_me:$LINENO: checking for ${RFC2190_AVCODEC_DIR}/avcodec.h" >&5
3447 echo $ECHO_N "checking for ${RFC2190_AVCODEC_DIR}/avcodec.h... $ECHO_C" >&6
3448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3453 else
3454 # Is the header compilable?
3455 echo "$as_me:$LINENO: checking ${RFC2190_AVCODEC_DIR}/avcodec.h usability" >&5
3456 echo $ECHO_N "checking ${RFC2190_AVCODEC_DIR}/avcodec.h usability... $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 $ac_includes_default
3464 #include <${RFC2190_AVCODEC_DIR}/avcodec.h>
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468 (eval $ac_compile) 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -z "$ac_c_werror_flag"
3476 || test ! -s conftest.err'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_header_compiler=yes
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_header_compiler=no
3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3497 echo "${ECHO_T}$ac_header_compiler" >&6
3499 # Is the header present?
3500 echo "$as_me:$LINENO: checking ${RFC2190_AVCODEC_DIR}/avcodec.h presence" >&5
3501 echo $ECHO_N "checking ${RFC2190_AVCODEC_DIR}/avcodec.h presence... $ECHO_C" >&6
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <${RFC2190_AVCODEC_DIR}/avcodec.h>
3509 _ACEOF
3510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } >/dev/null; then
3518 if test -s conftest.err; then
3519 ac_cpp_err=$ac_c_preproc_warn_flag
3520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3521 else
3522 ac_cpp_err=
3524 else
3525 ac_cpp_err=yes
3527 if test -z "$ac_cpp_err"; then
3528 ac_header_preproc=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 ac_header_preproc=no
3535 rm -f conftest.err conftest.$ac_ext
3536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3537 echo "${ECHO_T}$ac_header_preproc" >&6
3539 # So? What about this header?
3540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3541 yes:no: )
3542 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
3543 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3544 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the compiler's result" >&5
3545 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the compiler's result" >&2;}
3546 ac_header_preproc=yes
3548 no:yes:* )
3549 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: present but cannot be compiled" >&5
3550 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: present but cannot be compiled" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: check for missing prerequisite headers?" >&5
3552 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: check for missing prerequisite headers?" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: see the Autoconf documentation" >&5
3554 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: see the Autoconf documentation" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
3556 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the preprocessor's result" >&5
3558 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: proceeding with the preprocessor's result" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: in the future, the compiler will take precedence" >&5
3560 echo "$as_me: WARNING: ${RFC2190_AVCODEC_DIR}/avcodec.h: in the future, the compiler will take precedence" >&2;}
3562 cat <<\_ASBOX
3563 ## ------------------------------------------ ##
3564 ## Report this to the AC_PACKAGE_NAME lists. ##
3565 ## ------------------------------------------ ##
3566 _ASBOX
3568 sed "s/^/$as_me: WARNING: /" >&2
3570 esac
3571 echo "$as_me:$LINENO: checking for ${RFC2190_AVCODEC_DIR}/avcodec.h" >&5
3572 echo $ECHO_N "checking for ${RFC2190_AVCODEC_DIR}/avcodec.h... $ECHO_C" >&6
3573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 eval "$as_ac_Header=\$ac_header_preproc"
3578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3583 RFC2190_AVCODEC=1
3587 if test "${RFC2190_AVCODEC}" == "1" ; then
3588 RFC2190_AVCODEC=1
3591 cat >>confdefs.h <<\_ACEOF
3592 #define RFC2190_AVCODEC 1
3593 _ACEOF
3595 RFC2190_AVCODEC_DIR=${RFC2190_AVCODEC_DIR}
3597 STDCCFLAGS="${STDCCFLAGS} -I${RFC2190_AVCODEC_DIR}"
3603 localspeex="xxx"
3604 # Check whether --enable-localspeex or --disable-localspeex was given.
3605 if test "${enable_localspeex+set}" = set; then
3606 enableval="$enable_localspeex"
3607 localspeex=$enableval
3610 echo "$as_me:$LINENO: checking for short" >&5
3611 echo $ECHO_N "checking for short... $ECHO_C" >&6
3612 if test "${ac_cv_type_short+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 $ac_includes_default
3623 main ()
3625 if ((short *) 0)
3626 return 0;
3627 if (sizeof (short))
3628 return 0;
3630 return 0;
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3635 (eval $ac_compile) 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -z "$ac_c_werror_flag"
3643 || test ! -s conftest.err'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; } &&
3649 { ac_try='test -s conftest.$ac_objext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 ac_cv_type_short=yes
3656 else
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 ac_cv_type_short=no
3662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3665 echo "${ECHO_T}$ac_cv_type_short" >&6
3667 echo "$as_me:$LINENO: checking size of short" >&5
3668 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3669 if test "${ac_cv_sizeof_short+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 if test "$ac_cv_type_short" = yes; then
3673 # The cast to unsigned long works around a bug in the HP C Compiler
3674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3676 # This bug is HP SR number 8606223364.
3677 if test "$cross_compiling" = yes; then
3678 # Depending upon the size, compute the lo and hi bounds.
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 $ac_includes_default
3687 main ()
3689 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3690 test_array [0] = 0
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_lo=0 ac_mid=0
3719 while :; do
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 $ac_includes_default
3728 main ()
3730 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3731 test_array [0] = 0
3734 return 0;
3736 _ACEOF
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_hi=$ac_mid; break
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_lo=`expr $ac_mid + 1`
3765 if test $ac_lo -le $ac_mid; then
3766 ac_lo= ac_hi=
3767 break
3769 ac_mid=`expr 2 '*' $ac_mid + 1`
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 done
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3785 main ()
3787 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3788 test_array [0] = 0
3791 return 0;
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_hi=-1 ac_mid=-1
3817 while :; do
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 $ac_includes_default
3826 main ()
3828 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3829 test_array [0] = 0
3832 return 0;
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_lo=$ac_mid; break
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_hi=`expr '(' $ac_mid ')' - 1`
3863 if test $ac_mid -le $ac_hi; then
3864 ac_lo= ac_hi=
3865 break
3867 ac_mid=`expr 2 '*' $ac_mid`
3869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3870 done
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ac_lo= ac_hi=
3877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880 # Binary search between lo and hi bounds.
3881 while test "x$ac_lo" != "x$ac_hi"; do
3882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 $ac_includes_default
3891 main ()
3893 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3894 test_array [0] = 0
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902 (eval $ac_compile) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest.$ac_objext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_hi=$ac_mid
3923 else
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 ac_lo=`expr '(' $ac_mid ')' + 1`
3929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3930 done
3931 case $ac_lo in
3932 ?*) ac_cv_sizeof_short=$ac_lo;;
3933 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3934 See \`config.log' for more details." >&5
3935 echo "$as_me: error: cannot compute sizeof (short), 77
3936 See \`config.log' for more details." >&2;}
3937 { (exit 1); exit 1; }; } ;;
3938 esac
3939 else
3940 if test "$cross_compiling" = yes; then
3941 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3942 See \`config.log' for more details." >&5
3943 echo "$as_me: error: cannot run test program while cross compiling
3944 See \`config.log' for more details." >&2;}
3945 { (exit 1); exit 1; }; }
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 $ac_includes_default
3954 long longval () { return (long) (sizeof (short)); }
3955 unsigned long ulongval () { return (long) (sizeof (short)); }
3956 #include <stdio.h>
3957 #include <stdlib.h>
3959 main ()
3962 FILE *f = fopen ("conftest.val", "w");
3963 if (! f)
3964 exit (1);
3965 if (((long) (sizeof (short))) < 0)
3967 long i = longval ();
3968 if (i != ((long) (sizeof (short))))
3969 exit (1);
3970 fprintf (f, "%ld\n", i);
3972 else
3974 unsigned long i = ulongval ();
3975 if (i != ((long) (sizeof (short))))
3976 exit (1);
3977 fprintf (f, "%lu\n", i);
3979 exit (ferror (f) || fclose (f) != 0);
3982 return 0;
3984 _ACEOF
3985 rm -f conftest$ac_exeext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_sizeof_short=`cat conftest.val`
3997 else
3998 echo "$as_me: program exited with status $ac_status" >&5
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ( exit $ac_status )
4003 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4004 See \`config.log' for more details." >&5
4005 echo "$as_me: error: cannot compute sizeof (short), 77
4006 See \`config.log' for more details." >&2;}
4007 { (exit 1); exit 1; }; }
4009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4012 rm -f conftest.val
4013 else
4014 ac_cv_sizeof_short=0
4017 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4018 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4019 cat >>confdefs.h <<_ACEOF
4020 #define SIZEOF_SHORT $ac_cv_sizeof_short
4021 _ACEOF
4024 echo "$as_me:$LINENO: checking for int" >&5
4025 echo $ECHO_N "checking for int... $ECHO_C" >&6
4026 if test "${ac_cv_type_int+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h. */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 $ac_includes_default
4037 main ()
4039 if ((int *) 0)
4040 return 0;
4041 if (sizeof (int))
4042 return 0;
4044 return 0;
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_c_werror_flag"
4057 || test ! -s conftest.err'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_cv_type_int=yes
4070 else
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_cv_type_int=no
4076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4079 echo "${ECHO_T}$ac_cv_type_int" >&6
4081 echo "$as_me:$LINENO: checking size of int" >&5
4082 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4083 if test "${ac_cv_sizeof_int+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 if test "$ac_cv_type_int" = yes; then
4087 # The cast to unsigned long works around a bug in the HP C Compiler
4088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4090 # This bug is HP SR number 8606223364.
4091 if test "$cross_compiling" = yes; then
4092 # Depending upon the size, compute the lo and hi bounds.
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4101 main ()
4103 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4104 test_array [0] = 0
4107 return 0;
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_lo=0 ac_mid=0
4133 while :; do
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 $ac_includes_default
4142 main ()
4144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4145 test_array [0] = 0
4148 return 0;
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } &&
4160 { ac_try='test -z "$ac_c_werror_flag"
4161 || test ! -s conftest.err'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_hi=$ac_mid; break
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 ac_lo=`expr $ac_mid + 1`
4179 if test $ac_lo -le $ac_mid; then
4180 ac_lo= ac_hi=
4181 break
4183 ac_mid=`expr 2 '*' $ac_mid + 1`
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 done
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 $ac_includes_default
4199 main ()
4201 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4202 test_array [0] = 0
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_hi=-1 ac_mid=-1
4231 while :; do
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 $ac_includes_default
4240 main ()
4242 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4243 test_array [0] = 0
4246 return 0;
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_lo=$ac_mid; break
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 ac_hi=`expr '(' $ac_mid ')' - 1`
4277 if test $ac_mid -le $ac_hi; then
4278 ac_lo= ac_hi=
4279 break
4281 ac_mid=`expr 2 '*' $ac_mid`
4283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284 done
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_lo= ac_hi=
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294 # Binary search between lo and hi bounds.
4295 while test "x$ac_lo" != "x$ac_hi"; do
4296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4305 main ()
4307 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4308 test_array [0] = 0
4311 return 0;
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag"
4324 || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_hi=$ac_mid
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_lo=`expr '(' $ac_mid ')' + 1`
4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344 done
4345 case $ac_lo in
4346 ?*) ac_cv_sizeof_int=$ac_lo;;
4347 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4348 See \`config.log' for more details." >&5
4349 echo "$as_me: error: cannot compute sizeof (int), 77
4350 See \`config.log' for more details." >&2;}
4351 { (exit 1); exit 1; }; } ;;
4352 esac
4353 else
4354 if test "$cross_compiling" = yes; then
4355 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4356 See \`config.log' for more details." >&5
4357 echo "$as_me: error: cannot run test program while cross compiling
4358 See \`config.log' for more details." >&2;}
4359 { (exit 1); exit 1; }; }
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4368 long longval () { return (long) (sizeof (int)); }
4369 unsigned long ulongval () { return (long) (sizeof (int)); }
4370 #include <stdio.h>
4371 #include <stdlib.h>
4373 main ()
4376 FILE *f = fopen ("conftest.val", "w");
4377 if (! f)
4378 exit (1);
4379 if (((long) (sizeof (int))) < 0)
4381 long i = longval ();
4382 if (i != ((long) (sizeof (int))))
4383 exit (1);
4384 fprintf (f, "%ld\n", i);
4386 else
4388 unsigned long i = ulongval ();
4389 if (i != ((long) (sizeof (int))))
4390 exit (1);
4391 fprintf (f, "%lu\n", i);
4393 exit (ferror (f) || fclose (f) != 0);
4396 return 0;
4398 _ACEOF
4399 rm -f conftest$ac_exeext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4401 (eval $ac_link) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_sizeof_int=`cat conftest.val`
4411 else
4412 echo "$as_me: program exited with status $ac_status" >&5
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ( exit $ac_status )
4417 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4418 See \`config.log' for more details." >&5
4419 echo "$as_me: error: cannot compute sizeof (int), 77
4420 See \`config.log' for more details." >&2;}
4421 { (exit 1); exit 1; }; }
4423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4426 rm -f conftest.val
4427 else
4428 ac_cv_sizeof_int=0
4431 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4432 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4433 cat >>confdefs.h <<_ACEOF
4434 #define SIZEOF_INT $ac_cv_sizeof_int
4435 _ACEOF
4438 echo "$as_me:$LINENO: checking for long" >&5
4439 echo $ECHO_N "checking for long... $ECHO_C" >&6
4440 if test "${ac_cv_type_long+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 $ac_includes_default
4451 main ()
4453 if ((long *) 0)
4454 return 0;
4455 if (sizeof (long))
4456 return 0;
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_type_long=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_cv_type_long=no
4490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4493 echo "${ECHO_T}$ac_cv_type_long" >&6
4495 echo "$as_me:$LINENO: checking size of long" >&5
4496 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4497 if test "${ac_cv_sizeof_long+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 if test "$ac_cv_type_long" = yes; then
4501 # The cast to unsigned long works around a bug in the HP C Compiler
4502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4504 # This bug is HP SR number 8606223364.
4505 if test "$cross_compiling" = yes; then
4506 # Depending upon the size, compute the lo and hi bounds.
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4515 main ()
4517 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4518 test_array [0] = 0
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_lo=0 ac_mid=0
4547 while :; do
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 $ac_includes_default
4556 main ()
4558 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4559 test_array [0] = 0
4562 return 0;
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567 (eval $ac_compile) 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -z "$ac_c_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_hi=$ac_mid; break
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_lo=`expr $ac_mid + 1`
4593 if test $ac_lo -le $ac_mid; then
4594 ac_lo= ac_hi=
4595 break
4597 ac_mid=`expr 2 '*' $ac_mid + 1`
4599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4600 done
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4613 main ()
4615 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4616 test_array [0] = 0
4619 return 0;
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_hi=-1 ac_mid=-1
4645 while :; do
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 $ac_includes_default
4654 main ()
4656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4657 test_array [0] = 0
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 ac_lo=$ac_mid; break
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 ac_hi=`expr '(' $ac_mid ')' - 1`
4691 if test $ac_mid -le $ac_hi; then
4692 ac_lo= ac_hi=
4693 break
4695 ac_mid=`expr 2 '*' $ac_mid`
4697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698 done
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_lo= ac_hi=
4705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 # Binary search between lo and hi bounds.
4709 while test "x$ac_lo" != "x$ac_hi"; do
4710 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 $ac_includes_default
4719 main ()
4721 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4722 test_array [0] = 0
4725 return 0;
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_c_werror_flag"
4738 || test ! -s conftest.err'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_hi=$ac_mid
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_lo=`expr '(' $ac_mid ')' + 1`
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 done
4759 case $ac_lo in
4760 ?*) ac_cv_sizeof_long=$ac_lo;;
4761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4762 See \`config.log' for more details." >&5
4763 echo "$as_me: error: cannot compute sizeof (long), 77
4764 See \`config.log' for more details." >&2;}
4765 { (exit 1); exit 1; }; } ;;
4766 esac
4767 else
4768 if test "$cross_compiling" = yes; then
4769 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4770 See \`config.log' for more details." >&5
4771 echo "$as_me: error: cannot run test program while cross compiling
4772 See \`config.log' for more details." >&2;}
4773 { (exit 1); exit 1; }; }
4774 else
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 $ac_includes_default
4782 long longval () { return (long) (sizeof (long)); }
4783 unsigned long ulongval () { return (long) (sizeof (long)); }
4784 #include <stdio.h>
4785 #include <stdlib.h>
4787 main ()
4790 FILE *f = fopen ("conftest.val", "w");
4791 if (! f)
4792 exit (1);
4793 if (((long) (sizeof (long))) < 0)
4795 long i = longval ();
4796 if (i != ((long) (sizeof (long))))
4797 exit (1);
4798 fprintf (f, "%ld\n", i);
4800 else
4802 unsigned long i = ulongval ();
4803 if (i != ((long) (sizeof (long))))
4804 exit (1);
4805 fprintf (f, "%lu\n", i);
4807 exit (ferror (f) || fclose (f) != 0);
4810 return 0;
4812 _ACEOF
4813 rm -f conftest$ac_exeext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815 (eval $ac_link) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_sizeof_long=`cat conftest.val`
4825 else
4826 echo "$as_me: program exited with status $ac_status" >&5
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 ( exit $ac_status )
4831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4832 See \`config.log' for more details." >&5
4833 echo "$as_me: error: cannot compute sizeof (long), 77
4834 See \`config.log' for more details." >&2;}
4835 { (exit 1); exit 1; }; }
4837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 rm -f conftest.val
4841 else
4842 ac_cv_sizeof_long=0
4845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4846 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4847 cat >>confdefs.h <<_ACEOF
4848 #define SIZEOF_LONG $ac_cv_sizeof_long
4849 _ACEOF
4852 echo "$as_me:$LINENO: checking for long long" >&5
4853 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4854 if test "${ac_cv_type_long_long+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h. */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4865 main ()
4867 if ((long long *) 0)
4868 return 0;
4869 if (sizeof (long long))
4870 return 0;
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_type_long_long=yes
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_cv_type_long_long=no
4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4906 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4907 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4909 echo "$as_me:$LINENO: checking size of long long" >&5
4910 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4911 if test "${ac_cv_sizeof_long_long+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914 if test "$ac_cv_type_long_long" = yes; then
4915 # The cast to unsigned long works around a bug in the HP C Compiler
4916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4918 # This bug is HP SR number 8606223364.
4919 if test "$cross_compiling" = yes; then
4920 # Depending upon the size, compute the lo and hi bounds.
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4929 main ()
4931 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4932 test_array [0] = 0
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 ac_lo=0 ac_mid=0
4961 while :; do
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 $ac_includes_default
4970 main ()
4972 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4973 test_array [0] = 0
4976 return 0;
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_hi=$ac_mid; break
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_lo=`expr $ac_mid + 1`
5007 if test $ac_lo -le $ac_mid; then
5008 ac_lo= ac_hi=
5009 break
5011 ac_mid=`expr 2 '*' $ac_mid + 1`
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 done
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5027 main ()
5029 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5030 test_array [0] = 0
5033 return 0;
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_hi=-1 ac_mid=-1
5059 while :; do
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 $ac_includes_default
5068 main ()
5070 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5071 test_array [0] = 0
5074 return 0;
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_lo=$ac_mid; break
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_hi=`expr '(' $ac_mid ')' - 1`
5105 if test $ac_mid -le $ac_hi; then
5106 ac_lo= ac_hi=
5107 break
5109 ac_mid=`expr 2 '*' $ac_mid`
5111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5112 done
5113 else
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 ac_lo= ac_hi=
5119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 # Binary search between lo and hi bounds.
5123 while test "x$ac_lo" != "x$ac_hi"; do
5124 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5125 cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 $ac_includes_default
5133 main ()
5135 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5136 test_array [0] = 0
5139 return 0;
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -z "$ac_c_werror_flag"
5152 || test ! -s conftest.err'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; } &&
5158 { ac_try='test -s conftest.$ac_objext'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 ac_hi=$ac_mid
5165 else
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5169 ac_lo=`expr '(' $ac_mid ')' + 1`
5171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5172 done
5173 case $ac_lo in
5174 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5175 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5176 See \`config.log' for more details." >&5
5177 echo "$as_me: error: cannot compute sizeof (long long), 77
5178 See \`config.log' for more details." >&2;}
5179 { (exit 1); exit 1; }; } ;;
5180 esac
5181 else
5182 if test "$cross_compiling" = yes; then
5183 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5184 See \`config.log' for more details." >&5
5185 echo "$as_me: error: cannot run test program while cross compiling
5186 See \`config.log' for more details." >&2;}
5187 { (exit 1); exit 1; }; }
5188 else
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5196 long longval () { return (long) (sizeof (long long)); }
5197 unsigned long ulongval () { return (long) (sizeof (long long)); }
5198 #include <stdio.h>
5199 #include <stdlib.h>
5201 main ()
5204 FILE *f = fopen ("conftest.val", "w");
5205 if (! f)
5206 exit (1);
5207 if (((long) (sizeof (long long))) < 0)
5209 long i = longval ();
5210 if (i != ((long) (sizeof (long long))))
5211 exit (1);
5212 fprintf (f, "%ld\n", i);
5214 else
5216 unsigned long i = ulongval ();
5217 if (i != ((long) (sizeof (long long))))
5218 exit (1);
5219 fprintf (f, "%lu\n", i);
5221 exit (ferror (f) || fclose (f) != 0);
5224 return 0;
5226 _ACEOF
5227 rm -f conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_sizeof_long_long=`cat conftest.val`
5239 else
5240 echo "$as_me: program exited with status $ac_status" >&5
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ( exit $ac_status )
5245 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5246 See \`config.log' for more details." >&5
5247 echo "$as_me: error: cannot compute sizeof (long long), 77
5248 See \`config.log' for more details." >&2;}
5249 { (exit 1); exit 1; }; }
5251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5254 rm -f conftest.val
5255 else
5256 ac_cv_sizeof_long_long=0
5259 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5260 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5261 cat >>confdefs.h <<_ACEOF
5262 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5263 _ACEOF
5267 case 2 in
5268 $ac_cv_sizeof_short) SIZE16="short";;
5269 $ac_cv_sizeof_int) SIZE16="int";;
5270 esac
5272 case 4 in
5273 $ac_cv_sizeof_int) SIZE32="int";;
5274 $ac_cv_sizeof_long) SIZE32="long";;
5275 $ac_cv_sizeof_short) SIZE32="short";;
5276 esac
5281 OPAL_HAVE_SPEEX_H=
5282 OPAL_HAVE_SPEEX_SPEEX_H=
5284 for ac_header in "speex.h"
5286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288 echo "$as_me:$LINENO: checking for $ac_header" >&5
5289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5295 else
5296 # Is the header compilable?
5297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 #include <$ac_header>
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_header_compiler=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_header_compiler=no
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5339 echo "${ECHO_T}$ac_header_compiler" >&6
5341 # Is the header present?
5342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <$ac_header>
5351 _ACEOF
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null; then
5360 if test -s conftest.err; then
5361 ac_cpp_err=$ac_c_preproc_warn_flag
5362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5363 else
5364 ac_cpp_err=
5366 else
5367 ac_cpp_err=yes
5369 if test -z "$ac_cpp_err"; then
5370 ac_header_preproc=yes
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 ac_header_preproc=no
5377 rm -f conftest.err conftest.$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5379 echo "${ECHO_T}$ac_header_preproc" >&6
5381 # So? What about this header?
5382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5383 yes:no: )
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5388 ac_header_preproc=yes
5390 no:yes:* )
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5404 cat <<\_ASBOX
5405 ## ------------------------------------------ ##
5406 ## Report this to the AC_PACKAGE_NAME lists. ##
5407 ## ------------------------------------------ ##
5408 _ASBOX
5410 sed "s/^/$as_me: WARNING: /" >&2
5412 esac
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 eval "$as_ac_Header=\$ac_header_preproc"
5420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 _ACEOF
5428 OPAL_HAVE_SPEEX_H=1
5431 done
5433 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define OPAL_HAVE_SPEEX_H 1
5436 _ACEOF
5438 else
5440 for ac_header in "speex/speex.h"
5442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444 echo "$as_me:$LINENO: checking for $ac_header" >&5
5445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5451 else
5452 # Is the header compilable?
5453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 #include <$ac_header>
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_header_compiler=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_header_compiler=no
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5495 echo "${ECHO_T}$ac_header_compiler" >&6
5497 # Is the header present?
5498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 #include <$ac_header>
5507 _ACEOF
5508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null; then
5516 if test -s conftest.err; then
5517 ac_cpp_err=$ac_c_preproc_warn_flag
5518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5519 else
5520 ac_cpp_err=
5522 else
5523 ac_cpp_err=yes
5525 if test -z "$ac_cpp_err"; then
5526 ac_header_preproc=yes
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 ac_header_preproc=no
5533 rm -f conftest.err conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5535 echo "${ECHO_T}$ac_header_preproc" >&6
5537 # So? What about this header?
5538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5539 yes:no: )
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5544 ac_header_preproc=yes
5546 no:yes:* )
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5560 cat <<\_ASBOX
5561 ## ------------------------------------------ ##
5562 ## Report this to the AC_PACKAGE_NAME lists. ##
5563 ## ------------------------------------------ ##
5564 _ASBOX
5566 sed "s/^/$as_me: WARNING: /" >&2
5568 esac
5569 echo "$as_me:$LINENO: checking for $ac_header" >&5
5570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 eval "$as_ac_Header=\$ac_header_preproc"
5576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5581 cat >>confdefs.h <<_ACEOF
5582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583 _ACEOF
5584 OPAL_HAVE_SPEEX_SPEEX_H=1
5587 done
5589 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5590 cat >>confdefs.h <<\_ACEOF
5591 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5592 _ACEOF
5597 if test "${localspeex}" = "yes" ; then
5598 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5599 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5600 elif test "${localspeex}" = "no" ; then
5601 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5602 echo "$as_me: Forcing use of system Speex library" >&6;}
5603 cat >>confdefs.h <<\_ACEOF
5604 #define OPAL_SYSTEM_SPEEX 1
5605 _ACEOF
5607 OPAL_SYSTEM_SPEEX=1
5609 else
5610 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5611 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5612 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 ac_check_lib_save_LIBS=$LIBS
5616 LIBS="-lspeex $LIBS"
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 #ifdef __cplusplus
5626 extern "C"
5627 #endif
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5630 char speex_encoder_destroy ();
5632 main ()
5634 speex_encoder_destroy ();
5636 return 0;
5638 _ACEOF
5639 rm -f conftest.$ac_objext conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>conftest.er1
5642 ac_status=$?
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -z "$ac_c_werror_flag"
5649 || test ! -s conftest.err'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; } &&
5655 { ac_try='test -s conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_lib_speex_speex_encoder_destroy=yes
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5666 ac_cv_lib_speex_speex_encoder_destroy=no
5668 rm -f conftest.err conftest.$ac_objext \
5669 conftest$ac_exeext conftest.$ac_ext
5670 LIBS=$ac_check_lib_save_LIBS
5672 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5673 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5674 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5675 SPEEX=1
5678 if test "${SPEEX}x" != "x" ; then
5679 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5680 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5681 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 ac_check_lib_save_LIBS=$LIBS
5685 LIBS="-lspeex $LIBS"
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 #ifdef __cplusplus
5695 extern "C"
5696 #endif
5697 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */
5699 char speex_encode_int ();
5701 main ()
5703 speex_encode_int ();
5705 return 0;
5707 _ACEOF
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5710 (eval $ac_link) 2>conftest.er1
5711 ac_status=$?
5712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_lib_speex_speex_encode_int=yes
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 ac_cv_lib_speex_speex_encode_int=no
5737 rm -f conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
5739 LIBS=$ac_check_lib_save_LIBS
5741 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5742 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5743 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5744 SPEEX=1
5745 else
5746 unset SPEEX
5750 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5751 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5752 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5753 else
5754 echo "$as_me:$LINENO: checking system Speex version" >&5
5755 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5756 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5757 echo "#include <speex.h>" > t.c
5758 echo "#include <speex_header.h>" >> t.c
5759 else
5760 echo "#include <speex/speex.h>" > t.c
5761 echo "#include <speex/speex_header.h>" >> t.c
5763 cat >> t.c <<C_FILE
5764 #include <stdio.h>
5765 int main(int argc,char *argv)
5767 SpeexHeader header;
5768 speex_init_header(&header, 1, 1, &speex_nb_mode);
5769 printf("%s\n", header.speex_version);
5771 C_FILE
5772 cc -o t t.c -lspeex > /dev/null 2>&1
5773 if test \! -x t ; then
5774 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5775 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5776 else
5777 SYSVER=`./t`
5778 echo "$as_me:$LINENO: result: $SYSVER" >&5
5779 echo "${ECHO_T}$SYSVER" >&6
5780 echo "$as_me:$LINENO: checking library Speex version" >&5
5781 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5782 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5783 echo "$as_me:$LINENO: result: $LIBVER" >&5
5784 echo "${ECHO_T}$LIBVER" >&6
5785 echo "$as_me:$LINENO: checking Speex versions" >&5
5786 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5787 cat > t.pl <<P_FILE
5789 \$sysver = @ARGV[0];
5790 \$libver = @ARGV[1];
5791 @lib = split /\./, \$libver;
5792 while (@lib < 3) {
5793 @lib[0+@lib] = "0";
5795 @sys = split /\./, \$sysver;
5796 while (@sys < 3) {
5797 @sys[0+@sys] = "0";
5799 \$i = 0;
5800 while (\$i < 3) {
5801 if (@sys[\$i] < @lib[\$i]) {
5802 print "0";
5803 die;
5805 \$i++;
5807 print "1";
5809 P_FILE
5810 SPEEX=`perl t.pl $SYSVER $LIBVER`
5811 rm t.pl
5812 if test "x$SPEEX" = "x0" ; then
5813 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5814 echo "${ECHO_T}OPAL version is more recent" >&6
5815 else
5816 echo "$as_me:$LINENO: result: system version is more recent" >&5
5817 echo "${ECHO_T}system version is more recent" >&6
5818 cat >>confdefs.h <<\_ACEOF
5819 #define OPAL_SYSTEM_SPEEX 1
5820 _ACEOF
5822 OPAL_SYSTEM_SPEEX=1
5824 echo "$as_me:$LINENO: checking Speex noise type" >&5
5825 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5826 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5827 echo "#include <speex.h>" > t.c
5828 echo "#include <speex_preprocess.h>" >> t.c
5829 else
5830 echo "#include <speex/speex.h>" > t.c
5831 echo "#include <speex/speex_preprocess.h>" >> t.c
5833 cat >> t.c <<C_FILE
5834 #include <stdio.h>
5835 int main(int argc,char *argv)
5837 struct SpeexPreprocessState *st;
5838 spx_int16_t *x;
5839 float *echo;
5840 speex_preprocess(st, x, echo);
5842 C_FILE
5843 rm -f t
5844 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5845 if test \! -x t ; then
5846 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5847 echo "${ECHO_T}spx_int32_t" >&6
5848 else
5849 echo "$as_me:$LINENO: result: float" >&5
5850 echo "${ECHO_T}float" >&6
5851 cat >>confdefs.h <<\_ACEOF
5852 #define OPAL_SPEEX_FLOAT_NOISE 1
5853 _ACEOF
5858 rm -f t t.c
5865 ilbc=yes
5866 # Check whether --enable-ilbc or --disable-ilbc was given.
5867 if test "${enable_ilbc+set}" = set; then
5868 enableval="$enable_ilbc"
5869 ilbc=$enableval
5871 echo "$as_me:$LINENO: checking iLBC codec" >&5
5872 echo $ECHO_N "checking iLBC codec... $ECHO_C" >&6
5873 if test "$ilbc" != "yes" ; then
5874 ilbc=no
5875 echo "$as_me:$LINENO: result: disabled" >&5
5876 echo "${ECHO_T}disabled" >&6
5877 elif test -f src/codec/ilbccodec.cxx && test -f src/codec/iLBC/iLBC_encode.c ; then
5878 ilbc=yes
5879 echo "$as_me:$LINENO: result: enabled" >&5
5880 echo "${ECHO_T}enabled" >&6
5881 else
5882 ilbc=no
5883 echo "$as_me:$LINENO: result: not present" >&5
5884 echo "${ECHO_T}not present" >&6
5887 if test "$ilbc" = "yes" ; then
5888 OPAL_ILBC=1
5890 cat >>confdefs.h <<\_ACEOF
5891 #define OPAL_ILBC 1
5892 _ACEOF
5897 OPAL_AUDIO=1
5899 cat >>confdefs.h <<\_ACEOF
5900 #define OPAL_AUDIO 1
5901 _ACEOF
5904 OPAL_VIDEO=1
5906 cat >>confdefs.h <<\_ACEOF
5907 #define OPAL_VIDEO 1
5908 _ACEOF
5913 sip=yes
5914 # Check whether --enable-sip or --disable-sip was given.
5915 if test "${enable_sip+set}" = set; then
5916 enableval="$enable_sip"
5917 sip=$enableval
5919 echo "$as_me:$LINENO: checking SIP protocol" >&5
5920 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5921 if test "$sip" = "yes" ; then
5922 OPAL_SIP=1
5924 cat >>confdefs.h <<\_ACEOF
5925 #define OPAL_SIP 1
5926 _ACEOF
5928 echo "$as_me:$LINENO: result: enabled" >&5
5929 echo "${ECHO_T}enabled" >&6
5930 else
5931 echo "$as_me:$LINENO: result: disabled" >&5
5932 echo "${ECHO_T}disabled" >&6
5937 h323=yes
5938 t38=yes
5939 # Check whether --enable-h323 or --disable-h323 was given.
5940 if test "${enable_h323+set}" = set; then
5941 enableval="$enable_h323"
5942 h323=$enableval
5944 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5945 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5946 if test "$h323" = "yes" ; then
5947 OPAL_H323=1
5949 cat >>confdefs.h <<\_ACEOF
5950 #define OPAL_H323 1
5951 _ACEOF
5953 echo "$as_me:$LINENO: result: enabled" >&5
5954 echo "${ECHO_T}enabled" >&6
5955 else
5956 echo "$as_me:$LINENO: result: disabled (T.38 also disabled)" >&5
5957 echo "${ECHO_T}disabled (T.38 also disabled)" >&6
5958 t38=no
5960 OPAL_H323=$OPAL_H323
5963 if test "$t38" = "yes" ; then
5964 # Check whether --enable-t38 or --disable-t38 was given.
5965 if test "${enable_t38+set}" = set; then
5966 enableval="$enable_t38"
5967 t38=$enableval
5969 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5970 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5971 if test "$t38" = "yes" ; then
5972 OPAL_T38FAX=1
5974 cat >>confdefs.h <<\_ACEOF
5975 #define OPAL_T38FAX 1
5976 _ACEOF
5978 echo "$as_me:$LINENO: result: enabled" >&5
5979 echo "${ECHO_T}enabled" >&6
5980 else
5981 echo "$as_me:$LINENO: result: disabled" >&5
5982 echo "${ECHO_T}disabled" >&6
5987 iax=yes
5988 # Check whether --enable-iax or --disable-iax was given.
5989 if test "${enable_iax+set}" = set; then
5990 enableval="$enable_iax"
5991 iax=$enableval
5993 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5994 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5995 if test "$iax" = "yes" ; then
5996 OPAL_IAX2=1
5998 cat >>confdefs.h <<\_ACEOF
5999 #define OPAL_IAX2 1
6000 _ACEOF
6002 echo "$as_me:$LINENO: result: enabled" >&5
6003 echo "${ECHO_T}enabled" >&6
6004 else
6005 echo "$as_me:$LINENO: result: disabled" >&5
6006 echo "${ECHO_T}disabled" >&6
6010 h224=yes
6011 # Check whether --enable-h224 or --disable-h224 was given.
6012 if test "${enable_h224+set}" = set; then
6013 enableval="$enable_h224"
6014 h224=$enableval
6016 echo "$as_me:$LINENO: checking H224 protocol" >&5
6017 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
6018 if test "$h224" = "yes" ; then
6019 OPAL_H224=1
6021 cat >>confdefs.h <<\_ACEOF
6022 #define OPAL_H224 1
6023 _ACEOF
6025 echo "$as_me:$LINENO: result: enabled" >&5
6026 echo "${ECHO_T}enabled" >&6
6027 else
6028 echo "$as_me:$LINENO: result: disabled" >&5
6029 echo "${ECHO_T}disabled" >&6
6033 # Check whether --enable-h460 or --disable-h460 was given.
6034 if test "${enable_h460+set}" = set; then
6035 enableval="$enable_h460"
6038 if test "${enable_h460}x" = "x" ; then
6039 enable_h460=yes
6041 if test "$enable_h460" == "yes" ; then
6042 H323_H460=1
6043 cat >>confdefs.h <<\_ACEOF
6044 #define H323_H460 1
6045 _ACEOF
6047 else
6048 H323_H460=
6049 { echo "$as_me:$LINENO: Disabling H.460" >&5
6050 echo "$as_me: Disabling H.460" >&6;}
6055 HAS_IXJ=
6059 for ac_header in linux/telephony.h sys/telephony.h /usr/local/include/sys/telephony.h
6061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070 else
6071 # Is the header compilable?
6072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 $ac_includes_default
6081 #include <$ac_header>
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_header_compiler=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_header_compiler=no
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6114 echo "${ECHO_T}$ac_header_compiler" >&6
6116 # Is the header present?
6117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <$ac_header>
6126 _ACEOF
6127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null; then
6135 if test -s conftest.err; then
6136 ac_cpp_err=$ac_c_preproc_warn_flag
6137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138 else
6139 ac_cpp_err=
6141 else
6142 ac_cpp_err=yes
6144 if test -z "$ac_cpp_err"; then
6145 ac_header_preproc=yes
6146 else
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 ac_header_preproc=no
6152 rm -f conftest.err conftest.$ac_ext
6153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6154 echo "${ECHO_T}$ac_header_preproc" >&6
6156 # So? What about this header?
6157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6158 yes:no: )
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6163 ac_header_preproc=yes
6165 no:yes:* )
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6179 cat <<\_ASBOX
6180 ## ------------------------------------------ ##
6181 ## Report this to the AC_PACKAGE_NAME lists. ##
6182 ## ------------------------------------------ ##
6183 _ASBOX
6185 sed "s/^/$as_me: WARNING: /" >&2
6187 esac
6188 echo "$as_me:$LINENO: checking for $ac_header" >&5
6189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 eval "$as_ac_Header=\$ac_header_preproc"
6195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6200 cat >>confdefs.h <<_ACEOF
6201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6202 _ACEOF
6203 HAS_IXJ=1
6206 done
6208 if test "x$HAS_IXJ" != "x" ; then
6209 echo "$as_me:$LINENO: checking if ixjuser.h actually compiles" >&5
6210 echo $ECHO_N "checking if ixjuser.h actually compiles... $ECHO_C" >&6
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <linux/ixjuser.h>
6219 main ()
6221 int main(int ac,char **av) { return 0; }
6223 return 0;
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 HAS_IXJ=1
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 HAS_IXJ=
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test "x$HAS_IXJ" != "x" ; then
6257 echo "$as_me:$LINENO: result: yes" >&5
6258 echo "${ECHO_T}yes" >&6
6259 cat >>confdefs.h <<\_ACEOF
6260 #define HAS_IXJ 1
6261 _ACEOF
6263 HAS_IXJ=1
6264 else
6265 echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6
6274 cat >>confdefs.h <<\_ACEOF
6275 #define OPAL_LID 1
6276 _ACEOF
6278 OPAL_LID=1
6283 vpb=no
6284 # Check whether --enable-vpb or --disable-vpb was given.
6285 if test "${enable_vpb+set}" = set; then
6286 enableval="$enable_vpb"
6287 vpb=$enableval
6289 echo "$as_me:$LINENO: checking Voicetronix vpb" >&5
6290 echo $ECHO_N "checking Voicetronix vpb... $ECHO_C" >&6
6291 if test "$vpb" = "yes" ; then
6292 HAS_VPB=1
6294 cat >>confdefs.h <<\_ACEOF
6295 #define HAS_VPB 1
6296 _ACEOF
6298 echo "$as_me:$LINENO: result: enabled" >&5
6299 echo "${ECHO_T}enabled" >&6
6300 OPAL_LID=1
6302 cat >>confdefs.h <<\_ACEOF
6303 #define OPAL_LID 1
6304 _ACEOF
6306 else
6307 HAS_VPB=0
6309 echo "$as_me:$LINENO: result: disabled" >&5
6310 echo "${ECHO_T}disabled" >&6
6314 OLD_CPPFLAGS=$CPPFLAGS
6315 CPPFLAGS=-D__LINUX__
6317 HAS_SANGOMA=
6319 for ac_header in /usr/local/include/libpri.h
6321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323 echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 else
6331 # Is the header compilable?
6332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6341 #include <$ac_header>
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_header_compiler=yes
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_header_compiler=no
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6374 echo "${ECHO_T}$ac_header_compiler" >&6
6376 # Is the header present?
6377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h. */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <$ac_header>
6386 _ACEOF
6387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } >/dev/null; then
6395 if test -s conftest.err; then
6396 ac_cpp_err=$ac_c_preproc_warn_flag
6397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6398 else
6399 ac_cpp_err=
6401 else
6402 ac_cpp_err=yes
6404 if test -z "$ac_cpp_err"; then
6405 ac_header_preproc=yes
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_header_preproc=no
6412 rm -f conftest.err conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6414 echo "${ECHO_T}$ac_header_preproc" >&6
6416 # So? What about this header?
6417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6418 yes:no: )
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6423 ac_header_preproc=yes
6425 no:yes:* )
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6439 cat <<\_ASBOX
6440 ## ------------------------------------------ ##
6441 ## Report this to the AC_PACKAGE_NAME lists. ##
6442 ## ------------------------------------------ ##
6443 _ASBOX
6445 sed "s/^/$as_me: WARNING: /" >&2
6447 esac
6448 echo "$as_me:$LINENO: checking for $ac_header" >&5
6449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 eval "$as_ac_Header=\$ac_header_preproc"
6455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6460 cat >>confdefs.h <<_ACEOF
6461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6462 _ACEOF
6463 HAS_SANGOMA=1
6466 done
6468 if test "x$HAS_SANGOMA" != "x" ; then
6470 for ac_header in /usr/local/include/libsangoma.h
6472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6474 echo "$as_me:$LINENO: checking for $ac_header" >&5
6475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6481 else
6482 # Is the header compilable?
6483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h. */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6492 #include <$ac_header>
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest.$ac_objext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_header_compiler=yes
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_header_compiler=no
6523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6525 echo "${ECHO_T}$ac_header_compiler" >&6
6527 # Is the header present?
6528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <$ac_header>
6537 _ACEOF
6538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null; then
6546 if test -s conftest.err; then
6547 ac_cpp_err=$ac_c_preproc_warn_flag
6548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6549 else
6550 ac_cpp_err=
6552 else
6553 ac_cpp_err=yes
6555 if test -z "$ac_cpp_err"; then
6556 ac_header_preproc=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_header_preproc=no
6563 rm -f conftest.err conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6565 echo "${ECHO_T}$ac_header_preproc" >&6
6567 # So? What about this header?
6568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6569 yes:no: )
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6574 ac_header_preproc=yes
6576 no:yes:* )
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6590 cat <<\_ASBOX
6591 ## ------------------------------------------ ##
6592 ## Report this to the AC_PACKAGE_NAME lists. ##
6593 ## ------------------------------------------ ##
6594 _ASBOX
6596 sed "s/^/$as_me: WARNING: /" >&2
6598 esac
6599 echo "$as_me:$LINENO: checking for $ac_header" >&5
6600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 eval "$as_ac_Header=\$ac_header_preproc"
6606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6611 cat >>confdefs.h <<_ACEOF
6612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 _ACEOF
6614 HAS_SANGOMA=1
6617 done
6619 if test "x$HAS_SANGOMA" != "x" ; then
6620 echo "$as_me:$LINENO: checking for pri_new_cb in -lpri" >&5
6621 echo $ECHO_N "checking for pri_new_cb in -lpri... $ECHO_C" >&6
6622 if test "${ac_cv_lib_pri_pri_new_cb+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lpri $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char pri_new_cb ();
6642 main ()
6644 pri_new_cb ();
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest$ac_exeext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_lib_pri_pri_new_cb=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_lib_pri_pri_new_cb=no
6678 rm -f conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
6680 LIBS=$ac_check_lib_save_LIBS
6682 echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_new_cb" >&5
6683 echo "${ECHO_T}$ac_cv_lib_pri_pri_new_cb" >&6
6684 if test $ac_cv_lib_pri_pri_new_cb = yes; then
6685 HAS_SANGOMA=1
6688 if test "x$HAS_SANGOMA" = "x" ; then
6689 { echo "$as_me:$LINENO: *** If the latest libri is installed in /usr/local/lib" >&5
6690 echo "$as_me: *** If the latest libri is installed in /usr/local/lib" >&ensure it is not obscured by an older version in /usr/lib;}
6691 else
6692 echo "$as_me:$LINENO: checking for sangoma_create_socket in -lsangoma" >&5
6693 echo $ECHO_N "checking for sangoma_create_socket in -lsangoma... $ECHO_C" >&6
6694 if test "${ac_cv_lib_sangoma_sangoma_create_socket+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 ac_check_lib_save_LIBS=$LIBS
6698 LIBS="-lsangoma $LIBS"
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6712 char sangoma_create_socket ();
6714 main ()
6716 sangoma_create_socket ();
6718 return 0;
6720 _ACEOF
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -z "$ac_c_werror_flag"
6731 || test ! -s conftest.err'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_cv_lib_sangoma_sangoma_create_socket=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_cv_lib_sangoma_sangoma_create_socket=no
6750 rm -f conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 LIBS=$ac_check_lib_save_LIBS
6754 echo "$as_me:$LINENO: result: $ac_cv_lib_sangoma_sangoma_create_socket" >&5
6755 echo "${ECHO_T}$ac_cv_lib_sangoma_sangoma_create_socket" >&6
6756 if test $ac_cv_lib_sangoma_sangoma_create_socket = yes; then
6757 HAS_SANGOMA=1
6760 if test "x$HAS_SANGOMA" != "x" ; then
6761 cat >>confdefs.h <<\_ACEOF
6762 #define HAS_SANGOMA 1
6763 _ACEOF
6765 HAS_SANGOMA=1
6772 CPPFLAGS=$OLD_CPPFLAGS
6779 ac_aux_dir=
6780 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6781 if test -f $ac_dir/install-sh; then
6782 ac_aux_dir=$ac_dir
6783 ac_install_sh="$ac_aux_dir/install-sh -c"
6784 break
6785 elif test -f $ac_dir/install.sh; then
6786 ac_aux_dir=$ac_dir
6787 ac_install_sh="$ac_aux_dir/install.sh -c"
6788 break
6789 elif test -f $ac_dir/shtool; then
6790 ac_aux_dir=$ac_dir
6791 ac_install_sh="$ac_aux_dir/shtool install -c"
6792 break
6794 done
6795 if test -z "$ac_aux_dir"; then
6796 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6797 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6798 { (exit 1); exit 1; }; }
6800 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6801 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6802 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6804 # Find a good install program. We prefer a C program (faster),
6805 # so one script is as good as another. But avoid the broken or
6806 # incompatible versions:
6807 # SysV /etc/install, /usr/sbin/install
6808 # SunOS /usr/etc/install
6809 # IRIX /sbin/install
6810 # AIX /bin/install
6811 # AmigaOS /C/install, which installs bootblocks on floppy discs
6812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6815 # OS/2's system install, which has a completely different semantic
6816 # ./install, which can be erroneously created by make from ./install.sh.
6817 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6818 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6819 if test -z "$INSTALL"; then
6820 if test "${ac_cv_path_install+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 # Account for people who put trailing slashes in PATH elements.
6829 case $as_dir/ in
6830 ./ | .// | /cC/* | \
6831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6832 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6833 /usr/ucb/* ) ;;
6835 # OSF1 and SCO ODT 3.0 have their own names for install.
6836 # Don't use installbsd from OSF since it installs stuff as root
6837 # by default.
6838 for ac_prog in ginstall scoinst install; do
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6841 if test $ac_prog = install &&
6842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6843 # AIX install. It has an incompatible calling convention.
6845 elif test $ac_prog = install &&
6846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847 # program-specific install script used by HP pwplus--don't use.
6849 else
6850 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6851 break 3
6854 done
6855 done
6857 esac
6858 done
6862 if test "${ac_cv_path_install+set}" = set; then
6863 INSTALL=$ac_cv_path_install
6864 else
6865 # As a last resort, use the slow shell script. We don't cache a
6866 # path for INSTALL within a source directory, because that will
6867 # break other packages using the cache if that directory is
6868 # removed, or if the path is relative.
6869 INSTALL=$ac_install_sh
6872 echo "$as_me:$LINENO: result: $INSTALL" >&5
6873 echo "${ECHO_T}$INSTALL" >&6
6875 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6876 # It thinks the first close brace ends the variable substitution.
6877 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6879 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6881 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6885 ac_config_files="$ac_config_files opal_inc.mak"
6887 ac_config_files="$ac_config_files Makefile"
6889 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6892 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6893 cat >confcache <<\_ACEOF
6894 # This file is a shell script that caches the results of configure
6895 # tests run on this system so they can be shared between configure
6896 # scripts and configure runs, see configure's option --config-cache.
6897 # It is not useful on other systems. If it contains results you don't
6898 # want to keep, you may remove or edit it.
6900 # config.status only pays attention to the cache file if you give it
6901 # the --recheck option to rerun configure.
6903 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6904 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6905 # following values.
6907 _ACEOF
6909 # The following way of writing the cache mishandles newlines in values,
6910 # but we know of no workaround that is simple, portable, and efficient.
6911 # So, don't put newlines in cache variables' values.
6912 # Ultrix sh set writes to stderr and can't be redirected directly,
6913 # and sets the high bit in the cache file unless we assign to the vars.
6915 (set) 2>&1 |
6916 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6917 *ac_space=\ *)
6918 # `set' does not quote correctly, so add quotes (double-quote
6919 # substitution turns \\\\ into \\, and sed turns \\ into \).
6920 sed -n \
6921 "s/'/'\\\\''/g;
6922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6925 # `set' quotes correctly as required by POSIX, so do not add quotes.
6926 sed -n \
6927 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6929 esac;
6931 sed '
6932 t clear
6933 : clear
6934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6935 t end
6936 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6937 : end' >>confcache
6938 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6939 if test -w $cache_file; then
6940 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6941 cat confcache >$cache_file
6942 else
6943 echo "not updating unwritable cache $cache_file"
6946 rm -f confcache
6948 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6949 # Let make expand exec_prefix.
6950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6954 # trailing colons and then remove the whole line if VPATH becomes empty
6955 # (actually we leave an empty line to preserve line numbers).
6956 if test "x$srcdir" = x.; then
6957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6958 s/:*\$(srcdir):*/:/;
6959 s/:*\${srcdir}:*/:/;
6960 s/:*@srcdir@:*/:/;
6961 s/^\([^=]*=[ ]*\):*/\1/;
6962 s/:*$//;
6963 s/^[^=]*=[ ]*$//;
6967 DEFS=-DHAVE_CONFIG_H
6969 ac_libobjs=
6970 ac_ltlibobjs=
6971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6972 # 1. Remove the extension, and $U if already installed.
6973 ac_i=`echo "$ac_i" |
6974 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6975 # 2. Add them.
6976 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6977 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6978 done
6979 LIBOBJS=$ac_libobjs
6981 LTLIBOBJS=$ac_ltlibobjs
6985 : ${CONFIG_STATUS=./config.status}
6986 ac_clean_files_save=$ac_clean_files
6987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6988 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6989 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6990 cat >$CONFIG_STATUS <<_ACEOF
6991 #! $SHELL
6992 # Generated by $as_me.
6993 # Run this file to recreate the current configuration.
6994 # Compiler output produced by configure, useful for debugging
6995 # configure, is in config.log if it exists.
6997 debug=false
6998 ac_cs_recheck=false
6999 ac_cs_silent=false
7000 SHELL=\${CONFIG_SHELL-$SHELL}
7001 _ACEOF
7003 cat >>$CONFIG_STATUS <<\_ACEOF
7004 ## --------------------- ##
7005 ## M4sh Initialization. ##
7006 ## --------------------- ##
7008 # Be Bourne compatible
7009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7010 emulate sh
7011 NULLCMD=:
7012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7013 # is contrary to our usage. Disable this feature.
7014 alias -g '${1+"$@"}'='"$@"'
7015 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7016 set -o posix
7018 DUALCASE=1; export DUALCASE # for MKS sh
7020 # Support unset when possible.
7021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7022 as_unset=unset
7023 else
7024 as_unset=false
7028 # Work around bugs in pre-3.0 UWIN ksh.
7029 $as_unset ENV MAIL MAILPATH
7030 PS1='$ '
7031 PS2='> '
7032 PS4='+ '
7034 # NLS nuisances.
7035 for as_var in \
7036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7038 LC_TELEPHONE LC_TIME
7040 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7041 eval $as_var=C; export $as_var
7042 else
7043 $as_unset $as_var
7045 done
7047 # Required to use basename.
7048 if expr a : '\(a\)' >/dev/null 2>&1; then
7049 as_expr=expr
7050 else
7051 as_expr=false
7054 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7055 as_basename=basename
7056 else
7057 as_basename=false
7061 # Name of the executable.
7062 as_me=`$as_basename "$0" ||
7063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7064 X"$0" : 'X\(//\)$' \| \
7065 X"$0" : 'X\(/\)$' \| \
7066 . : '\(.\)' 2>/dev/null ||
7067 echo X/"$0" |
7068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7069 /^X\/\(\/\/\)$/{ s//\1/; q; }
7070 /^X\/\(\/\).*/{ s//\1/; q; }
7071 s/.*/./; q'`
7074 # PATH needs CR, and LINENO needs CR and PATH.
7075 # Avoid depending upon Character Ranges.
7076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7079 as_cr_digits='0123456789'
7080 as_cr_alnum=$as_cr_Letters$as_cr_digits
7082 # The user is always right.
7083 if test "${PATH_SEPARATOR+set}" != set; then
7084 echo "#! /bin/sh" >conf$$.sh
7085 echo "exit 0" >>conf$$.sh
7086 chmod +x conf$$.sh
7087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7088 PATH_SEPARATOR=';'
7089 else
7090 PATH_SEPARATOR=:
7092 rm -f conf$$.sh
7096 as_lineno_1=$LINENO
7097 as_lineno_2=$LINENO
7098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7099 test "x$as_lineno_1" != "x$as_lineno_2" &&
7100 test "x$as_lineno_3" = "x$as_lineno_2" || {
7101 # Find who we are. Look in the path if we contain no path at all
7102 # relative or not.
7103 case $0 in
7104 *[\\/]* ) as_myself=$0 ;;
7105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7111 done
7114 esac
7115 # We did not find ourselves, most probably we were run as `sh COMMAND'
7116 # in which case we are not to be found in the path.
7117 if test "x$as_myself" = x; then
7118 as_myself=$0
7120 if test ! -f "$as_myself"; then
7121 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7122 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7123 { (exit 1); exit 1; }; }
7125 case $CONFIG_SHELL in
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for as_base in sh bash ksh sh5; do
7133 case $as_dir in
7135 if ("$as_dir/$as_base" -c '
7136 as_lineno_1=$LINENO
7137 as_lineno_2=$LINENO
7138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7139 test "x$as_lineno_1" != "x$as_lineno_2" &&
7140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7143 CONFIG_SHELL=$as_dir/$as_base
7144 export CONFIG_SHELL
7145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7146 fi;;
7147 esac
7148 done
7149 done
7151 esac
7153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7154 # uniformly replaced by the line number. The first 'sed' inserts a
7155 # line-number line before each line; the second 'sed' does the real
7156 # work. The second script uses 'N' to pair each line-number line
7157 # with the numbered line, and appends trailing '-' during
7158 # substitution so that $LINENO is not a special case at line end.
7159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7161 sed '=' <$as_myself |
7162 sed '
7164 s,$,-,
7165 : loop
7166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7167 t loop
7168 s,-$,,
7169 s,^['$as_cr_digits']*\n,,
7170 ' >$as_me.lineno &&
7171 chmod +x $as_me.lineno ||
7172 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7173 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7174 { (exit 1); exit 1; }; }
7176 # Don't try to exec as it changes $[0], causing all sort of problems
7177 # (the dirname of $[0] is not the place where we might find the
7178 # original and so on. Autoconf is especially sensible to this).
7179 . ./$as_me.lineno
7180 # Exit status is that of the last command.
7181 exit
7185 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7186 *c*,-n*) ECHO_N= ECHO_C='
7187 ' ECHO_T=' ' ;;
7188 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7189 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7190 esac
7192 if expr a : '\(a\)' >/dev/null 2>&1; then
7193 as_expr=expr
7194 else
7195 as_expr=false
7198 rm -f conf$$ conf$$.exe conf$$.file
7199 echo >conf$$.file
7200 if ln -s conf$$.file conf$$ 2>/dev/null; then
7201 # We could just check for DJGPP; but this test a) works b) is more generic
7202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7203 if test -f conf$$.exe; then
7204 # Don't use ln at all; we don't have any links
7205 as_ln_s='cp -p'
7206 else
7207 as_ln_s='ln -s'
7209 elif ln conf$$.file conf$$ 2>/dev/null; then
7210 as_ln_s=ln
7211 else
7212 as_ln_s='cp -p'
7214 rm -f conf$$ conf$$.exe conf$$.file
7216 if mkdir -p . 2>/dev/null; then
7217 as_mkdir_p=:
7218 else
7219 test -d ./-p && rmdir ./-p
7220 as_mkdir_p=false
7223 as_executable_p="test -f"
7225 # Sed expression to map a string onto a valid CPP name.
7226 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7228 # Sed expression to map a string onto a valid variable name.
7229 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7232 # IFS
7233 # We need space, tab and new line, in precisely that order.
7234 as_nl='
7236 IFS=" $as_nl"
7238 # CDPATH.
7239 $as_unset CDPATH
7241 exec 6>&1
7243 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7244 # report actual input values of CONFIG_FILES etc. instead of their
7245 # values after options handling. Logging --version etc. is OK.
7246 exec 5>>config.log
7248 echo
7249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7250 ## Running $as_me. ##
7251 _ASBOX
7252 } >&5
7253 cat >&5 <<_CSEOF
7255 This file was extended by $as_me, which was
7256 generated by GNU Autoconf 2.59. Invocation command line was
7258 CONFIG_FILES = $CONFIG_FILES
7259 CONFIG_HEADERS = $CONFIG_HEADERS
7260 CONFIG_LINKS = $CONFIG_LINKS
7261 CONFIG_COMMANDS = $CONFIG_COMMANDS
7262 $ $0 $@
7264 _CSEOF
7265 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7266 echo >&5
7267 _ACEOF
7269 # Files that config.status was made for.
7270 if test -n "$ac_config_files"; then
7271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7274 if test -n "$ac_config_headers"; then
7275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7278 if test -n "$ac_config_links"; then
7279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7282 if test -n "$ac_config_commands"; then
7283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7286 cat >>$CONFIG_STATUS <<\_ACEOF
7288 ac_cs_usage="\
7289 \`$as_me' instantiates files from templates according to the
7290 current configuration.
7292 Usage: $0 [OPTIONS] [FILE]...
7294 -h, --help print this help, then exit
7295 -V, --version print version number, then exit
7296 -q, --quiet do not print progress messages
7297 -d, --debug don't remove temporary files
7298 --recheck update $as_me by reconfiguring in the same conditions
7299 --file=FILE[:TEMPLATE]
7300 instantiate the configuration file FILE
7301 --header=FILE[:TEMPLATE]
7302 instantiate the configuration header FILE
7304 Configuration files:
7305 $config_files
7307 Configuration headers:
7308 $config_headers
7310 Report bugs to <bug-autoconf@gnu.org>."
7311 _ACEOF
7313 cat >>$CONFIG_STATUS <<_ACEOF
7314 ac_cs_version="\\
7315 config.status
7316 configured by $0, generated by GNU Autoconf 2.59,
7317 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7319 Copyright (C) 2003 Free Software Foundation, Inc.
7320 This config.status script is free software; the Free Software Foundation
7321 gives unlimited permission to copy, distribute and modify it."
7322 srcdir=$srcdir
7323 INSTALL="$INSTALL"
7324 _ACEOF
7326 cat >>$CONFIG_STATUS <<\_ACEOF
7327 # If no file are specified by the user, then we need to provide default
7328 # value. By we need to know if files were specified by the user.
7329 ac_need_defaults=:
7330 while test $# != 0
7332 case $1 in
7333 --*=*)
7334 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7335 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7336 ac_shift=:
7339 ac_option=$1
7340 ac_optarg=$2
7341 ac_shift=shift
7343 *) # This is not an option, so the user has probably given explicit
7344 # arguments.
7345 ac_option=$1
7346 ac_need_defaults=false;;
7347 esac
7349 case $ac_option in
7350 # Handling of the options.
7351 _ACEOF
7352 cat >>$CONFIG_STATUS <<\_ACEOF
7353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7354 ac_cs_recheck=: ;;
7355 --version | --vers* | -V )
7356 echo "$ac_cs_version"; exit 0 ;;
7357 --he | --h)
7358 # Conflict between --help and --header
7359 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7360 Try \`$0 --help' for more information." >&5
7361 echo "$as_me: error: ambiguous option: $1
7362 Try \`$0 --help' for more information." >&2;}
7363 { (exit 1); exit 1; }; };;
7364 --help | --hel | -h )
7365 echo "$ac_cs_usage"; exit 0 ;;
7366 --debug | --d* | -d )
7367 debug=: ;;
7368 --file | --fil | --fi | --f )
7369 $ac_shift
7370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7371 ac_need_defaults=false;;
7372 --header | --heade | --head | --hea )
7373 $ac_shift
7374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7375 ac_need_defaults=false;;
7376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7378 ac_cs_silent=: ;;
7380 # This is an error.
7381 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7382 Try \`$0 --help' for more information." >&5
7383 echo "$as_me: error: unrecognized option: $1
7384 Try \`$0 --help' for more information." >&2;}
7385 { (exit 1); exit 1; }; } ;;
7387 *) ac_config_targets="$ac_config_targets $1" ;;
7389 esac
7390 shift
7391 done
7393 ac_configure_extra_args=
7395 if $ac_cs_silent; then
7396 exec 6>/dev/null
7397 ac_configure_extra_args="$ac_configure_extra_args --silent"
7400 _ACEOF
7401 cat >>$CONFIG_STATUS <<_ACEOF
7402 if \$ac_cs_recheck; then
7403 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7404 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7407 _ACEOF
7413 cat >>$CONFIG_STATUS <<\_ACEOF
7414 for ac_config_target in $ac_config_targets
7416 case "$ac_config_target" in
7417 # Handling of arguments.
7418 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
7419 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7420 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
7421 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
7422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7424 { (exit 1); exit 1; }; };;
7425 esac
7426 done
7428 # If the user did not use the arguments to specify the items to instantiate,
7429 # then the envvar interface is used. Set only those that are not.
7430 # We use the long form for the default assignment because of an extremely
7431 # bizarre bug on SunOS 4.1.3.
7432 if $ac_need_defaults; then
7433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7437 # Have a temporary directory for convenience. Make it in the build tree
7438 # simply because there is no reason to put it here, and in addition,
7439 # creating and moving files from /tmp can sometimes cause problems.
7440 # Create a temporary directory, and hook for its removal unless debugging.
7441 $debug ||
7443 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7444 trap '{ (exit 1); exit 1; }' 1 2 13 15
7447 # Create a (secure) tmp directory for tmp files.
7450 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7451 test -n "$tmp" && test -d "$tmp"
7452 } ||
7454 tmp=./confstat$$-$RANDOM
7455 (umask 077 && mkdir $tmp)
7456 } ||
7458 echo "$me: cannot create a temporary directory in ." >&2
7459 { (exit 1); exit 1; }
7462 _ACEOF
7464 cat >>$CONFIG_STATUS <<_ACEOF
7467 # CONFIG_FILES section.
7470 # No need to generate the scripts if there are no CONFIG_FILES.
7471 # This happens for instance when ./config.status config.h
7472 if test -n "\$CONFIG_FILES"; then
7473 # Protect against being on the right side of a sed subst in config.status.
7474 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7475 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7476 s,@SHELL@,$SHELL,;t t
7477 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7478 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7479 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7480 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7481 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7482 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7483 s,@exec_prefix@,$exec_prefix,;t t
7484 s,@prefix@,$prefix,;t t
7485 s,@program_transform_name@,$program_transform_name,;t t
7486 s,@bindir@,$bindir,;t t
7487 s,@sbindir@,$sbindir,;t t
7488 s,@libexecdir@,$libexecdir,;t t
7489 s,@datadir@,$datadir,;t t
7490 s,@sysconfdir@,$sysconfdir,;t t
7491 s,@sharedstatedir@,$sharedstatedir,;t t
7492 s,@localstatedir@,$localstatedir,;t t
7493 s,@libdir@,$libdir,;t t
7494 s,@includedir@,$includedir,;t t
7495 s,@oldincludedir@,$oldincludedir,;t t
7496 s,@infodir@,$infodir,;t t
7497 s,@mandir@,$mandir,;t t
7498 s,@build_alias@,$build_alias,;t t
7499 s,@host_alias@,$host_alias,;t t
7500 s,@target_alias@,$target_alias,;t t
7501 s,@DEFS@,$DEFS,;t t
7502 s,@ECHO_C@,$ECHO_C,;t t
7503 s,@ECHO_N@,$ECHO_N,;t t
7504 s,@ECHO_T@,$ECHO_T,;t t
7505 s,@LIBS@,$LIBS,;t t
7506 s,@CC@,$CC,;t t
7507 s,@CFLAGS@,$CFLAGS,;t t
7508 s,@LDFLAGS@,$LDFLAGS,;t t
7509 s,@CPPFLAGS@,$CPPFLAGS,;t t
7510 s,@ac_ct_CC@,$ac_ct_CC,;t t
7511 s,@EXEEXT@,$EXEEXT,;t t
7512 s,@OBJEXT@,$OBJEXT,;t t
7513 s,@CXX@,$CXX,;t t
7514 s,@CXXFLAGS@,$CXXFLAGS,;t t
7515 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7516 s,@OPALDIR@,$OPALDIR,;t t
7517 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7518 s,@LIBDIR@,$LIBDIR,;t t
7519 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
7520 s,@PWLIBDIR@,$PWLIBDIR,;t t
7521 s,@CPP@,$CPP,;t t
7522 s,@EGREP@,$EGREP,;t t
7523 s,@RFC2190_AVCODEC@,$RFC2190_AVCODEC,;t t
7524 s,@RFC2190_AVCODEC_DIR@,$RFC2190_AVCODEC_DIR,;t t
7525 s,@SIZE16@,$SIZE16,;t t
7526 s,@SIZE32@,$SIZE32,;t t
7527 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
7528 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
7529 s,@OPAL_ILBC@,$OPAL_ILBC,;t t
7530 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
7531 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
7532 s,@OPAL_SIP@,$OPAL_SIP,;t t
7533 s,@OPAL_H323@,$OPAL_H323,;t t
7534 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
7535 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
7536 s,@OPAL_H224@,$OPAL_H224,;t t
7537 s,@H323_H460@,$H323_H460,;t t
7538 s,@HAS_IXJ@,$HAS_IXJ,;t t
7539 s,@OPAL_LID@,$OPAL_LID,;t t
7540 s,@HAS_VPB@,$HAS_VPB,;t t
7541 s,@HAS_SANGOMA@,$HAS_SANGOMA,;t t
7542 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7543 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7544 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7545 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7546 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7547 s,@LIBOBJS@,$LIBOBJS,;t t
7548 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7549 CEOF
7551 _ACEOF
7553 cat >>$CONFIG_STATUS <<\_ACEOF
7554 # Split the substitutions into bite-sized pieces for seds with
7555 # small command number limits, like on Digital OSF/1 and HP-UX.
7556 ac_max_sed_lines=48
7557 ac_sed_frag=1 # Number of current file.
7558 ac_beg=1 # First line for current file.
7559 ac_end=$ac_max_sed_lines # Line after last line for current file.
7560 ac_more_lines=:
7561 ac_sed_cmds=
7562 while $ac_more_lines; do
7563 if test $ac_beg -gt 1; then
7564 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7565 else
7566 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7568 if test ! -s $tmp/subs.frag; then
7569 ac_more_lines=false
7570 else
7571 # The purpose of the label and of the branching condition is to
7572 # speed up the sed processing (if there are no `@' at all, there
7573 # is no need to browse any of the substitutions).
7574 # These are the two extra sed commands mentioned above.
7575 (echo ':t
7576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7577 if test -z "$ac_sed_cmds"; then
7578 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7579 else
7580 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7582 ac_sed_frag=`expr $ac_sed_frag + 1`
7583 ac_beg=$ac_end
7584 ac_end=`expr $ac_end + $ac_max_sed_lines`
7586 done
7587 if test -z "$ac_sed_cmds"; then
7588 ac_sed_cmds=cat
7590 fi # test -n "$CONFIG_FILES"
7592 _ACEOF
7593 cat >>$CONFIG_STATUS <<\_ACEOF
7594 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7596 case $ac_file in
7597 - | *:- | *:-:* ) # input from stdin
7598 cat >$tmp/stdin
7599 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7601 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7603 * ) ac_file_in=$ac_file.in ;;
7604 esac
7606 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7607 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7609 X"$ac_file" : 'X\(//\)[^/]' \| \
7610 X"$ac_file" : 'X\(//\)$' \| \
7611 X"$ac_file" : 'X\(/\)' \| \
7612 . : '\(.\)' 2>/dev/null ||
7613 echo X"$ac_file" |
7614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7616 /^X\(\/\/\)$/{ s//\1/; q; }
7617 /^X\(\/\).*/{ s//\1/; q; }
7618 s/.*/./; q'`
7619 { if $as_mkdir_p; then
7620 mkdir -p "$ac_dir"
7621 else
7622 as_dir="$ac_dir"
7623 as_dirs=
7624 while test ! -d "$as_dir"; do
7625 as_dirs="$as_dir $as_dirs"
7626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7628 X"$as_dir" : 'X\(//\)[^/]' \| \
7629 X"$as_dir" : 'X\(//\)$' \| \
7630 X"$as_dir" : 'X\(/\)' \| \
7631 . : '\(.\)' 2>/dev/null ||
7632 echo X"$as_dir" |
7633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7635 /^X\(\/\/\)$/{ s//\1/; q; }
7636 /^X\(\/\).*/{ s//\1/; q; }
7637 s/.*/./; q'`
7638 done
7639 test ! -n "$as_dirs" || mkdir $as_dirs
7640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7641 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7642 { (exit 1); exit 1; }; }; }
7644 ac_builddir=.
7646 if test "$ac_dir" != .; then
7647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7648 # A "../" for each directory in $ac_dir_suffix.
7649 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7650 else
7651 ac_dir_suffix= ac_top_builddir=
7654 case $srcdir in
7655 .) # No --srcdir option. We are building in place.
7656 ac_srcdir=.
7657 if test -z "$ac_top_builddir"; then
7658 ac_top_srcdir=.
7659 else
7660 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7661 fi ;;
7662 [\\/]* | ?:[\\/]* ) # Absolute path.
7663 ac_srcdir=$srcdir$ac_dir_suffix;
7664 ac_top_srcdir=$srcdir ;;
7665 *) # Relative path.
7666 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7667 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7668 esac
7670 # Do not use `cd foo && pwd` to compute absolute paths, because
7671 # the directories may not exist.
7672 case `pwd` in
7673 .) ac_abs_builddir="$ac_dir";;
7675 case "$ac_dir" in
7676 .) ac_abs_builddir=`pwd`;;
7677 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7678 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7679 esac;;
7680 esac
7681 case $ac_abs_builddir in
7682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7684 case ${ac_top_builddir}. in
7685 .) ac_abs_top_builddir=$ac_abs_builddir;;
7686 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7687 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7688 esac;;
7689 esac
7690 case $ac_abs_builddir in
7691 .) ac_abs_srcdir=$ac_srcdir;;
7693 case $ac_srcdir in
7694 .) ac_abs_srcdir=$ac_abs_builddir;;
7695 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7696 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7697 esac;;
7698 esac
7699 case $ac_abs_builddir in
7700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7702 case $ac_top_srcdir in
7703 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7705 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7706 esac;;
7707 esac
7710 case $INSTALL in
7711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7712 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7713 esac
7715 if test x"$ac_file" != x-; then
7716 { echo "$as_me:$LINENO: creating $ac_file" >&5
7717 echo "$as_me: creating $ac_file" >&6;}
7718 rm -f "$ac_file"
7720 # Let's still pretend it is `configure' which instantiates (i.e., don't
7721 # use $as_me), people would be surprised to read:
7722 # /* config.h. Generated by config.status. */
7723 if test x"$ac_file" = x-; then
7724 configure_input=
7725 else
7726 configure_input="$ac_file. "
7728 configure_input=$configure_input"Generated from `echo $ac_file_in |
7729 sed 's,.*/,,'` by configure."
7731 # First look for the input files in the build tree, otherwise in the
7732 # src tree.
7733 ac_file_inputs=`IFS=:
7734 for f in $ac_file_in; do
7735 case $f in
7736 -) echo $tmp/stdin ;;
7737 [\\/$]*)
7738 # Absolute (can't be DOS-style, as IFS=:)
7739 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7740 echo "$as_me: error: cannot find input file: $f" >&2;}
7741 { (exit 1); exit 1; }; }
7742 echo "$f";;
7743 *) # Relative
7744 if test -f "$f"; then
7745 # Build tree
7746 echo "$f"
7747 elif test -f "$srcdir/$f"; then
7748 # Source tree
7749 echo "$srcdir/$f"
7750 else
7751 # /dev/null tree
7752 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7753 echo "$as_me: error: cannot find input file: $f" >&2;}
7754 { (exit 1); exit 1; }; }
7755 fi;;
7756 esac
7757 done` || { (exit 1); exit 1; }
7758 _ACEOF
7759 cat >>$CONFIG_STATUS <<_ACEOF
7760 sed "$ac_vpsub
7761 $extrasub
7762 _ACEOF
7763 cat >>$CONFIG_STATUS <<\_ACEOF
7765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7766 s,@configure_input@,$configure_input,;t t
7767 s,@srcdir@,$ac_srcdir,;t t
7768 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7769 s,@top_srcdir@,$ac_top_srcdir,;t t
7770 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7771 s,@builddir@,$ac_builddir,;t t
7772 s,@abs_builddir@,$ac_abs_builddir,;t t
7773 s,@top_builddir@,$ac_top_builddir,;t t
7774 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7775 s,@INSTALL@,$ac_INSTALL,;t t
7776 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7777 rm -f $tmp/stdin
7778 if test x"$ac_file" != x-; then
7779 mv $tmp/out $ac_file
7780 else
7781 cat $tmp/out
7782 rm -f $tmp/out
7785 done
7786 _ACEOF
7787 cat >>$CONFIG_STATUS <<\_ACEOF
7790 # CONFIG_HEADER section.
7793 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7794 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7796 # ac_d sets the value in "#define NAME VALUE" lines.
7797 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7798 ac_dB='[ ].*$,\1#\2'
7799 ac_dC=' '
7800 ac_dD=',;t'
7801 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7802 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7803 ac_uB='$,\1#\2define\3'
7804 ac_uC=' '
7805 ac_uD=',;t'
7807 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7809 case $ac_file in
7810 - | *:- | *:-:* ) # input from stdin
7811 cat >$tmp/stdin
7812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7816 * ) ac_file_in=$ac_file.in ;;
7817 esac
7819 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7820 echo "$as_me: creating $ac_file" >&6;}
7822 # First look for the input files in the build tree, otherwise in the
7823 # src tree.
7824 ac_file_inputs=`IFS=:
7825 for f in $ac_file_in; do
7826 case $f in
7827 -) echo $tmp/stdin ;;
7828 [\\/$]*)
7829 # Absolute (can't be DOS-style, as IFS=:)
7830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7831 echo "$as_me: error: cannot find input file: $f" >&2;}
7832 { (exit 1); exit 1; }; }
7833 # Do quote $f, to prevent DOS paths from being IFS'd.
7834 echo "$f";;
7835 *) # Relative
7836 if test -f "$f"; then
7837 # Build tree
7838 echo "$f"
7839 elif test -f "$srcdir/$f"; then
7840 # Source tree
7841 echo "$srcdir/$f"
7842 else
7843 # /dev/null tree
7844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7845 echo "$as_me: error: cannot find input file: $f" >&2;}
7846 { (exit 1); exit 1; }; }
7847 fi;;
7848 esac
7849 done` || { (exit 1); exit 1; }
7850 # Remove the trailing spaces.
7851 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7853 _ACEOF
7855 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7856 # `conftest.undefs', that substitutes the proper values into
7857 # config.h.in to produce config.h. The first handles `#define'
7858 # templates, and the second `#undef' templates.
7859 # And first: Protect against being on the right side of a sed subst in
7860 # config.status. Protect against being in an unquoted here document
7861 # in config.status.
7862 rm -f conftest.defines conftest.undefs
7863 # Using a here document instead of a string reduces the quoting nightmare.
7864 # Putting comments in sed scripts is not portable.
7866 # `end' is used to avoid that the second main sed command (meant for
7867 # 0-ary CPP macros) applies to n-ary macro definitions.
7868 # See the Autoconf documentation for `clear'.
7869 cat >confdef2sed.sed <<\_ACEOF
7870 s/[\\&,]/\\&/g
7871 s,[\\$`],\\&,g
7872 t clear
7873 : clear
7874 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7875 t end
7876 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7877 : end
7878 _ACEOF
7879 # If some macros were called several times there might be several times
7880 # the same #defines, which is useless. Nevertheless, we may not want to
7881 # sort them, since we want the *last* AC-DEFINE to be honored.
7882 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7883 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7884 rm -f confdef2sed.sed
7886 # This sed command replaces #undef with comments. This is necessary, for
7887 # example, in the case of _POSIX_SOURCE, which is predefined and required
7888 # on some systems where configure will not decide to define it.
7889 cat >>conftest.undefs <<\_ACEOF
7890 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7891 _ACEOF
7893 # Break up conftest.defines because some shells have a limit on the size
7894 # of here documents, and old seds have small limits too (100 cmds).
7895 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7896 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7897 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7898 echo ' :' >>$CONFIG_STATUS
7899 rm -f conftest.tail
7900 while grep . conftest.defines >/dev/null
7902 # Write a limited-size here document to $tmp/defines.sed.
7903 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7904 # Speed up: don't consider the non `#define' lines.
7905 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7906 # Work around the forget-to-reset-the-flag bug.
7907 echo 't clr' >>$CONFIG_STATUS
7908 echo ': clr' >>$CONFIG_STATUS
7909 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7910 echo 'CEOF
7911 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7912 rm -f $tmp/in
7913 mv $tmp/out $tmp/in
7914 ' >>$CONFIG_STATUS
7915 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7916 rm -f conftest.defines
7917 mv conftest.tail conftest.defines
7918 done
7919 rm -f conftest.defines
7920 echo ' fi # grep' >>$CONFIG_STATUS
7921 echo >>$CONFIG_STATUS
7923 # Break up conftest.undefs because some shells have a limit on the size
7924 # of here documents, and old seds have small limits too (100 cmds).
7925 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7926 rm -f conftest.tail
7927 while grep . conftest.undefs >/dev/null
7929 # Write a limited-size here document to $tmp/undefs.sed.
7930 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7931 # Speed up: don't consider the non `#undef'
7932 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7933 # Work around the forget-to-reset-the-flag bug.
7934 echo 't clr' >>$CONFIG_STATUS
7935 echo ': clr' >>$CONFIG_STATUS
7936 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7937 echo 'CEOF
7938 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7939 rm -f $tmp/in
7940 mv $tmp/out $tmp/in
7941 ' >>$CONFIG_STATUS
7942 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7943 rm -f conftest.undefs
7944 mv conftest.tail conftest.undefs
7945 done
7946 rm -f conftest.undefs
7948 cat >>$CONFIG_STATUS <<\_ACEOF
7949 # Let's still pretend it is `configure' which instantiates (i.e., don't
7950 # use $as_me), people would be surprised to read:
7951 # /* config.h. Generated by config.status. */
7952 if test x"$ac_file" = x-; then
7953 echo "/* Generated by configure. */" >$tmp/config.h
7954 else
7955 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7957 cat $tmp/in >>$tmp/config.h
7958 rm -f $tmp/in
7959 if test x"$ac_file" != x-; then
7960 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7962 echo "$as_me: $ac_file is unchanged" >&6;}
7963 else
7964 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7966 X"$ac_file" : 'X\(//\)[^/]' \| \
7967 X"$ac_file" : 'X\(//\)$' \| \
7968 X"$ac_file" : 'X\(/\)' \| \
7969 . : '\(.\)' 2>/dev/null ||
7970 echo X"$ac_file" |
7971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7973 /^X\(\/\/\)$/{ s//\1/; q; }
7974 /^X\(\/\).*/{ s//\1/; q; }
7975 s/.*/./; q'`
7976 { if $as_mkdir_p; then
7977 mkdir -p "$ac_dir"
7978 else
7979 as_dir="$ac_dir"
7980 as_dirs=
7981 while test ! -d "$as_dir"; do
7982 as_dirs="$as_dir $as_dirs"
7983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7985 X"$as_dir" : 'X\(//\)[^/]' \| \
7986 X"$as_dir" : 'X\(//\)$' \| \
7987 X"$as_dir" : 'X\(/\)' \| \
7988 . : '\(.\)' 2>/dev/null ||
7989 echo X"$as_dir" |
7990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7992 /^X\(\/\/\)$/{ s//\1/; q; }
7993 /^X\(\/\).*/{ s//\1/; q; }
7994 s/.*/./; q'`
7995 done
7996 test ! -n "$as_dirs" || mkdir $as_dirs
7997 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7998 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7999 { (exit 1); exit 1; }; }; }
8001 rm -f $ac_file
8002 mv $tmp/config.h $ac_file
8004 else
8005 cat $tmp/config.h
8006 rm -f $tmp/config.h
8008 done
8009 _ACEOF
8011 cat >>$CONFIG_STATUS <<\_ACEOF
8013 { (exit 0); exit 0; }
8014 _ACEOF
8015 chmod +x $CONFIG_STATUS
8016 ac_clean_files=$ac_clean_files_save
8019 # configure is writing to config.log, and then calls config.status.
8020 # config.status does its own redirection, appending to config.log.
8021 # Unfortunately, on DOS this fails, as config.log is still kept open
8022 # by configure, so config.status won't be able to write to it; its
8023 # output is simply discarded. So we exec the FD to /dev/null,
8024 # effectively closing config.log, so it can be properly (re)opened and
8025 # appended to by config.status. When coming back to configure, we
8026 # need to make the FD available again.
8027 if test "$no_create" != yes; then
8028 ac_cs_success=:
8029 ac_config_status_args=
8030 test "$silent" = yes &&
8031 ac_config_status_args="$ac_config_status_args --quiet"
8032 exec 5>/dev/null
8033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8034 exec 5>>config.log
8035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8036 # would make configure fail if this is the last instruction.
8037 $ac_cs_success || { (exit 1); exit 1; }