Fixed numerous issues with "bound" managed socket, ie associating
[opal.git] / configure
blob81163e3357d147f6920dbd21bac6928bdef63690
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="include/opal/manager.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subdirs_all="$ac_subdirs_all plugins"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OPALDIR INSTALLPREFIX LIBDIR OPAL_VERSION PTLIB_CONFIG PWLIBDIR GCC_HAS_CLZ CPP EGREP SIZE16 SIZE32 OPAL_SYSTEM_SPEEX OPAL_HAVE_SPEEX_SPEEX_H OPAL_AUDIO OPAL_VIDEO OPAL_SIP OPAL_H323 OPAL_IAX2 OPAL_H224 OPAL_T38FAX OPAL_H450 OPAL_H460 OPAL_LID OPAL_IVR OPAL_RFC4175 OPAL_ZRTP HAS_LIBZRTP OPAL_SRTP HAS_LIBSRTP STDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXX_set=${CXX+set}
771 ac_env_CXX_value=$CXX
772 ac_cv_env_CXX_set=${CXX+set}
773 ac_cv_env_CXX_value=$CXX
774 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_env_CXXFLAGS_value=$CXXFLAGS
776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
784 # Report the --help message.
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
792 Usage: $0 [OPTION]... [VAR=VALUE]...
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
797 Defaults for the options are specified in brackets.
799 Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 _ACEOF
812 cat <<_ACEOF
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
824 For better control, use the options below.
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839 _ACEOF
841 cat <<\_ACEOF
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-versioncheck disable PWLib version check
853 --enable-localspeex use local version of Speex library rather than system version
854 --disable-audio disable audio codec support
855 --disable-video disable video codec support
856 --disable-sip disable SIP protocol support
857 --disable-h323 disable H.323 protocol support
858 --disable-iax disable IAX2 protocol support
859 --disable-h224 disable H.224 protocol support
860 --disable-t38 disable T.38 protocol support
861 --disable-h450 disable H.450
862 --disable-h460 disable H.460
863 --disable-lid disable LID support
864 --disable-ivr disable IVR support
865 --disable-rfc4175 disable RFC4175 support
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
876 CPP C preprocessor
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
881 _ACEOF
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
886 ac_popdir=`pwd`
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
889 ac_builddir=.
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 else
896 ac_dir_suffix= ac_top_builddir=
899 case $srcdir in
900 .) # No --srcdir option. We are building in place.
901 ac_srcdir=.
902 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=.
904 else
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 fi ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
910 *) # Relative path.
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
920 case "$ac_dir" in
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
938 case $ac_srcdir in
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 esac;;
952 esac
954 cd $ac_dir
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
957 echo
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
960 echo
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
964 echo
965 $ac_configure --help
966 else
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 cd $ac_popdir
970 done
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975 cat <<\_ACEOF
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
980 _ACEOF
981 exit 0
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
991 $ $0 $@
993 _ACEOF
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 _ASUNAME
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1022 IFS=$as_save_IFS
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1025 done
1027 } >&5
1029 cat >&5 <<_ACEOF
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1036 _ACEOF
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1051 for ac_arg
1053 case $ac_arg in
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 continue ;;
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 esac
1061 case $ac_pass in
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1067 else
1068 case $ac_arg in
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 esac
1077 -* ) ac_must_keep_next=true ;;
1078 esac
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1082 ac_sep=" "
1084 esac
1085 done
1086 done
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1098 echo
1100 cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105 echo
1106 # The following way of writing the cache mishandles newlines in values,
1108 (set) 2>&1 |
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 *ac_space=\ *)
1111 sed -n \
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 sed -n \
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 esac;
1121 echo
1123 cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128 echo
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1136 if test -n "$ac_subst_files"; then
1137 cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1151 if test -s confdefs.h; then
1152 cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157 echo
1158 sed "/^$/d" confdefs.h | sort
1159 echo
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1164 } >&5
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 exit $exit_status
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 echo >confdefs.h
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 else
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1220 . "$ac_site_file"
1222 done
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1230 case $cache_file in
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1233 esac
1235 else
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238 >$cache_file
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1251 set,)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,set)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,);;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1269 fi;;
1270 esac
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1273 case $ac_new_val in
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1277 esac
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 esac
1283 done
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1332 else
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 for as_dir in $PATH
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1342 break 2
1344 done
1345 done
1349 CC=$ac_cv_prog_CC
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1353 else
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$ac_cv_prog_CC"; then
1360 ac_ct_CC=$CC
1361 # Extract the first word of "gcc", so it can be a program name with args.
1362 set dummy gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 break 2
1382 done
1383 done
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1391 else
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1396 CC=$ac_ct_CC
1397 else
1398 CC="$ac_cv_prog_CC"
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1424 done
1425 done
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "cc", so it can be a program name with args.
1442 set dummy cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1482 if test -z "$CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 ac_prog_rejected=no
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1502 ac_prog_rejected=yes
1503 continue
1505 ac_cv_prog_CC="cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1509 done
1510 done
1512 if test $ac_prog_rejected = yes; then
1513 # We found a bogon in the path, so make sure we never use it.
1514 set dummy $ac_cv_prog_CC
1515 shift
1516 if test $# != 0; then
1517 # We chose a different compiler from the bogus one.
1518 # However, it has the same basename, so the bogon will be chosen
1519 # first if we set CC to just the basename; use the full file name.
1520 shift
1521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1526 CC=$ac_cv_prog_CC
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1536 if test -z "$CC"; then
1537 if test -n "$ac_tool_prefix"; then
1538 for ac_prog in cl
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1561 done
1562 done
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1575 test -n "$CC" && break
1576 done
1578 if test -z "$CC"; then
1579 ac_ct_CC=$CC
1580 for ac_prog in cl
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1603 done
1604 done
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 test -n "$ac_ct_CC" && break
1618 done
1620 CC=$ac_ct_CC
1626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&5
1628 echo "$as_me: error: no acceptable C compiler found in \$PATH
1629 See \`config.log' for more details." >&2;}
1630 { (exit 1); exit 1; }; }
1632 # Provide some information about the compiler.
1633 echo "$as_me:$LINENO:" \
1634 "checking for C compiler version" >&5
1635 ac_compiler=`set X $ac_compile; echo $2`
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1637 (eval $ac_compiler --version </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1642 (eval $ac_compiler -v </dev/null >&5) 2>&5
1643 ac_status=$?
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1647 (eval $ac_compiler -V </dev/null >&5) 2>&5
1648 ac_status=$?
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }
1652 cat >conftest.$ac_ext <<_ACEOF
1653 /* confdefs.h. */
1654 _ACEOF
1655 cat confdefs.h >>conftest.$ac_ext
1656 cat >>conftest.$ac_ext <<_ACEOF
1657 /* end confdefs.h. */
1660 main ()
1664 return 0;
1666 _ACEOF
1667 ac_clean_files_save=$ac_clean_files
1668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669 # Try to create an executable without -o first, disregard a.out.
1670 # It will help us diagnose broken compilers, and finding out an intuition
1671 # of exeext.
1672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1674 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1682 # resort.
1684 # Be careful to initialize this variable, since it used to be cached.
1685 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1686 ac_cv_exeext=
1687 # b.out is created by i960 compilers.
1688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1690 test -f "$ac_file" || continue
1691 case $ac_file in
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1694 conftest.$ac_ext )
1695 # This is the source file.
1697 [ab].out )
1698 # We found the default executable, but exeext='' is most
1699 # certainly right.
1700 break;;
1701 *.* )
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1706 export ac_cv_exeext
1707 break;;
1709 break;;
1710 esac
1711 done
1712 else
1713 echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&5
1718 echo "$as_me: error: C compiler cannot create executables
1719 See \`config.log' for more details." >&2;}
1720 { (exit 77); exit 77; }; }
1723 ac_exeext=$ac_cv_exeext
1724 echo "$as_me:$LINENO: result: $ac_file" >&5
1725 echo "${ECHO_T}$ac_file" >&6
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1730 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732 # If not cross compiling, check that we can run a simple program.
1733 if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 (eval $ac_try) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 cross_compiling=no
1741 else
1742 if test "$cross_compiling" = maybe; then
1743 cross_compiling=yes
1744 else
1745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'.
1747 See \`config.log' for more details." >&5
1748 echo "$as_me: error: cannot run C compiled programs.
1749 If you meant to cross compile, use \`--host'.
1750 See \`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1777 # `rm'.
1778 for ac_file in conftest.exe conftest conftest.*; do
1779 test -f "$ac_file" || continue
1780 case $ac_file in
1781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 export ac_cv_exeext
1784 break;;
1785 * ) break;;
1786 esac
1787 done
1788 else
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1796 rm -f conftest$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798 echo "${ECHO_T}$ac_cv_exeext" >&6
1800 rm -f conftest.$ac_ext
1801 EXEEXT=$ac_cv_exeext
1802 ac_exeext=$EXEEXT
1803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805 if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h. */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1816 main ()
1820 return 0;
1822 _ACEOF
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1830 case $ac_file in
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1833 break;;
1834 esac
1835 done
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1850 echo "${ECHO_T}$ac_cv_objext" >&6
1851 OBJEXT=$ac_cv_objext
1852 ac_objext=$OBJEXT
1853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1866 main ()
1868 #ifndef __GNUC__
1869 choke me
1870 #endif
1873 return 0;
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>conftest.er1
1879 ac_status=$?
1880 grep -v '^ *+' conftest.er1 >conftest.err
1881 rm -f conftest.er1
1882 cat conftest.err >&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try='test -z "$ac_c_werror_flag"
1886 || test ! -s conftest.err'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 (eval $ac_try) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; } &&
1892 { ac_try='test -s conftest.$ac_objext'
1893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 (eval $ac_try) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; }; then
1898 ac_compiler_gnu=yes
1899 else
1900 echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_compiler_gnu=no
1905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1909 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1911 GCC=`test $ac_compiler_gnu = yes && echo yes`
1912 ac_test_CFLAGS=${CFLAGS+set}
1913 ac_save_CFLAGS=$CFLAGS
1914 CFLAGS="-g"
1915 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1917 if test "${ac_cv_prog_cc_g+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1928 main ()
1932 return 0;
1934 _ACEOF
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>conftest.er1
1938 ac_status=$?
1939 grep -v '^ *+' conftest.er1 >conftest.err
1940 rm -f conftest.er1
1941 cat conftest.err >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -z "$ac_c_werror_flag"
1945 || test ! -s conftest.err'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_cv_prog_cc_g=yes
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_cv_prog_cc_g=no
1964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968 if test "$ac_test_CFLAGS" = set; then
1969 CFLAGS=$ac_save_CFLAGS
1970 elif test $ac_cv_prog_cc_g = yes; then
1971 if test "$GCC" = yes; then
1972 CFLAGS="-g -O2"
1973 else
1974 CFLAGS="-g"
1976 else
1977 if test "$GCC" = yes; then
1978 CFLAGS="-O2"
1979 else
1980 CFLAGS=
1983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 ac_cv_prog_cc_stdc=no
1989 ac_save_CC=$CC
1990 cat >conftest.$ac_ext <<_ACEOF
1991 /* confdefs.h. */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
1996 #include <stdarg.h>
1997 #include <stdio.h>
1998 #include <sys/types.h>
1999 #include <sys/stat.h>
2000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2001 struct buf { int x; };
2002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2003 static char *e (p, i)
2004 char **p;
2005 int i;
2007 return p[i];
2009 static char *f (char * (*g) (char **, int), char **p, ...)
2011 char *s;
2012 va_list v;
2013 va_start (v,p);
2014 s = g (p, va_arg (v,int));
2015 va_end (v);
2016 return s;
2019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2020 function prototypes and stuff, but not '\xHH' hex character constants.
2021 These don't provoke an error unfortunately, instead are silently treated
2022 as 'x'. The following induces an error, until -std1 is added to get
2023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2024 array size at least. It's necessary to write '\x00'==0 to get something
2025 that's true only with -std1. */
2026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2028 int test (int i, double x);
2029 struct s1 {int (*f) (int a);};
2030 struct s2 {int (*f) (double a);};
2031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2032 int argc;
2033 char **argv;
2035 main ()
2037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2039 return 0;
2041 _ACEOF
2042 # Don't try gcc -ansi; that turns off useful extensions and
2043 # breaks some systems' header files.
2044 # AIX -qlanglvl=ansi
2045 # Ultrix and OSF/1 -std1
2046 # HP-UX 10.20 and later -Ae
2047 # HP-UX older versions -Aa -D_HPUX_SOURCE
2048 # SVR4 -Xc -D__EXTENSIONS__
2049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2051 CC="$ac_save_CC $ac_arg"
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_stdc=$ac_arg
2075 break
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2081 rm -f conftest.err conftest.$ac_objext
2082 done
2083 rm -f conftest.$ac_ext conftest.$ac_objext
2084 CC=$ac_save_CC
2088 case "x$ac_cv_prog_cc_stdc" in
2089 x|xno)
2090 echo "$as_me:$LINENO: result: none needed" >&5
2091 echo "${ECHO_T}none needed" >&6 ;;
2093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2094 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2095 CC="$CC $ac_cv_prog_cc_stdc" ;;
2096 esac
2098 # Some people use a C++ compiler to compile C. Since we use `exit',
2099 # in C++ we need to declare it. In case someone uses the same compiler
2100 # for both compiling C and C++ we need to have the C++ compiler decide
2101 # the declaration of exit, since it's the most demanding environment.
2102 cat >conftest.$ac_ext <<_ACEOF
2103 #ifndef __cplusplus
2104 choke me
2105 #endif
2106 _ACEOF
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 for ac_declaration in \
2130 '' \
2131 'extern "C" void std::exit (int) throw (); using std::exit;' \
2132 'extern "C" void std::exit (int); using std::exit;' \
2133 'extern "C" void exit (int) throw ();' \
2134 'extern "C" void exit (int);' \
2135 'void exit (int);'
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143 $ac_declaration
2144 #include <stdlib.h>
2146 main ()
2148 exit (42);
2150 return 0;
2152 _ACEOF
2153 rm -f conftest.$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2176 else
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2180 continue
2182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h. */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2189 $ac_declaration
2191 main ()
2193 exit (42);
2195 return 0;
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 break
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 rm -f conftest*
2229 if test -n "$ac_declaration"; then
2230 echo '#ifdef __cplusplus' >>confdefs.h
2231 echo $ac_declaration >>confdefs.h
2232 echo '#endif' >>confdefs.h
2235 else
2236 echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 ac_ext=c
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247 ac_ext=cc
2248 ac_cpp='$CXXCPP $CPPFLAGS'
2249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2252 if test -n "$ac_tool_prefix"; then
2253 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_CXX+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$CXX"; then
2263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2281 CXX=$ac_cv_prog_CXX
2282 if test -n "$CXX"; then
2283 echo "$as_me:$LINENO: result: $CXX" >&5
2284 echo "${ECHO_T}$CXX" >&6
2285 else
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 test -n "$CXX" && break
2291 done
2293 if test -z "$CXX"; then
2294 ac_ct_CXX=$CXX
2295 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$ac_ct_CXX"; then
2305 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CXX="$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2318 done
2319 done
2323 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2324 if test -n "$ac_ct_CXX"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2326 echo "${ECHO_T}$ac_ct_CXX" >&6
2327 else
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 test -n "$ac_ct_CXX" && break
2333 done
2334 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2336 CXX=$ac_ct_CXX
2340 # Provide some information about the compiler.
2341 echo "$as_me:$LINENO:" \
2342 "checking for C++ compiler version" >&5
2343 ac_compiler=`set X $ac_compile; echo $2`
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2345 (eval $ac_compiler --version </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2350 (eval $ac_compiler -v </dev/null >&5) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2355 (eval $ac_compiler -V </dev/null >&5) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2360 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2362 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h. */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2373 main ()
2375 #ifndef __GNUC__
2376 choke me
2377 #endif
2380 return 0;
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_cxx_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_compiler_gnu=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 ac_compiler_gnu=no
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2416 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2418 GXX=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CXXFLAGS=${CXXFLAGS+set}
2420 ac_save_CXXFLAGS=$CXXFLAGS
2421 CXXFLAGS="-g"
2422 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cxx_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2435 main ()
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_cxx_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_prog_cxx_g=yes
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 ac_cv_prog_cxx_g=no
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2475 if test "$ac_test_CXXFLAGS" = set; then
2476 CXXFLAGS=$ac_save_CXXFLAGS
2477 elif test $ac_cv_prog_cxx_g = yes; then
2478 if test "$GXX" = yes; then
2479 CXXFLAGS="-g -O2"
2480 else
2481 CXXFLAGS="-g"
2483 else
2484 if test "$GXX" = yes; then
2485 CXXFLAGS="-O2"
2486 else
2487 CXXFLAGS=
2490 for ac_declaration in \
2491 '' \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2496 'void exit (int);'
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 $ac_declaration
2505 #include <stdlib.h>
2507 main ()
2509 exit (42);
2511 return 0;
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_cxx_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 continue
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2550 $ac_declaration
2552 main ()
2554 exit (42);
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_cxx_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 break
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 done
2589 rm -f conftest*
2590 if test -n "$ac_declaration"; then
2591 echo '#ifdef __cplusplus' >>confdefs.h
2592 echo $ac_declaration >>confdefs.h
2593 echo '#endif' >>confdefs.h
2596 ac_ext=c
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 h323=yes
2604 t38=yes
2605 h224=yes
2606 h450=yes
2607 h460=yes
2608 sip=yes
2609 iax=yes
2610 audio=yes
2611 video=yes
2613 REQUIRED_PWLIB_MAJOR=1
2614 REQUIRED_PWLIB_MINOR=11
2615 REQUIRED_PWLIB_BUILD=0
2618 OPALDIR=`pwd`
2621 if test "x$prefix" = "xNONE"; then
2622 INSTALLPREFIX="/usr/local"
2623 else
2624 INSTALLPREFIX="${prefix}"
2629 LIBDIR="${libdir}"
2635 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2636 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2637 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2638 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2639 cat >>confdefs.h <<_ACEOF
2640 #define OPAL_MAJOR ${MAJOR_VERSION}
2641 _ACEOF
2643 cat >>confdefs.h <<_ACEOF
2644 #define OPAL_MINOR ${MINOR_VERSION}
2645 _ACEOF
2647 cat >>confdefs.h <<_ACEOF
2648 #define OPAL_BUILD ${BUILD_NUMBER}
2649 _ACEOF
2651 cat >>confdefs.h <<_ACEOF
2652 #define OPAL_VERSION "$OPAL_VERSION"
2653 _ACEOF
2656 { echo "$as_me:$LINENO: Opal version is ${OPAL_VERSION}" >&5
2657 echo "$as_me: Opal version is ${OPAL_VERSION}" >&6;};
2659 #use to set the version in opal.pc
2663 if test "${PWLIBDIR:-unset}" != "unset" ; then
2664 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2665 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2666 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2667 if eval "test \"\${$as_ac_File+set}\" = set"; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 test "$cross_compiling" = yes &&
2671 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2672 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2673 { (exit 1); exit 1; }; }
2674 if test -r "${PWLIBDIR}/version.h"; then
2675 eval "$as_ac_File=yes"
2676 else
2677 eval "$as_ac_File=no"
2680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2681 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2682 if test `eval echo '${'$as_ac_File'}'` = yes; then
2683 HAS_PTLIB=1
2687 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2688 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2689 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2690 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2691 if eval "test \"\${$as_ac_File+set}\" = set"; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694 test "$cross_compiling" = yes &&
2695 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2696 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2697 { (exit 1); exit 1; }; }
2698 if test -r "${OPALDIR}/../pwlib/version.h"; then
2699 eval "$as_ac_File=yes"
2700 else
2701 eval "$as_ac_File=no"
2704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2705 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2706 if test `eval echo '${'$as_ac_File'}'` = yes; then
2707 HAS_PTLIB=1
2710 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2711 PWLIBDIR="${OPALDIR}/../pwlib"
2712 else
2713 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2714 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2715 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2716 if eval "test \"\${$as_ac_File+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 test "$cross_compiling" = yes &&
2720 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2721 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2722 { (exit 1); exit 1; }; }
2723 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2724 eval "$as_ac_File=yes"
2725 else
2726 eval "$as_ac_File=no"
2729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2730 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2731 if test `eval echo '${'$as_ac_File'}'` = yes; then
2732 HAS_PTLIB=1
2735 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2736 PWLIBDIR="${HOME}/pwlib"
2737 else
2738 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2739 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2740 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 test "$cross_compiling" = yes &&
2744 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2745 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2746 { (exit 1); exit 1; }; }
2747 if test -r "/usr/local/include/ptlib.h"; then
2748 ac_cv_file__usr_local_include_ptlib_h=yes
2749 else
2750 ac_cv_file__usr_local_include_ptlib_h=no
2753 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2754 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2755 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2756 HAS_PTLIB=1
2759 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2760 # Extract the first word of "ptlib-config", so it can be a program name with args.
2761 set dummy ptlib-config; ac_word=$2
2762 echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 case $PTLIB_CONFIG in
2768 [\\/]* | ?:[\\/]*)
2769 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in /usr/local/bin
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2787 esac
2789 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2791 if test -n "$PTLIB_CONFIG"; then
2792 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2793 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2794 else
2795 echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6
2799 else
2800 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2801 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2802 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 test "$cross_compiling" = yes &&
2806 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2807 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2808 { (exit 1); exit 1; }; }
2809 if test -r "/usr/include/ptlib.h"; then
2810 ac_cv_file__usr_include_ptlib_h=yes
2811 else
2812 ac_cv_file__usr_include_ptlib_h=no
2815 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2816 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2817 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2818 HAS_PTLIB=1
2821 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2822 # Extract the first word of "ptlib-config", so it can be a program name with args.
2823 set dummy ptlib-config; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 case $PTLIB_CONFIG in
2830 [\\/]* | ?:[\\/]*)
2831 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in /usr/share/pwlib/make/
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2849 esac
2851 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2853 if test -n "$PTLIB_CONFIG"; then
2854 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2855 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2856 else
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 else
2862 as_ac_File=`echo "ac_cv_file_${prefix}/include/ptlib.h" | $as_tr_sh`
2863 echo "$as_me:$LINENO: checking for ${prefix}/include/ptlib.h" >&5
2864 echo $ECHO_N "checking for ${prefix}/include/ptlib.h... $ECHO_C" >&6
2865 if eval "test \"\${$as_ac_File+set}\" = set"; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 test "$cross_compiling" = yes &&
2869 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2870 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2871 { (exit 1); exit 1; }; }
2872 if test -r "${prefix}/include/ptlib.h"; then
2873 eval "$as_ac_File=yes"
2874 else
2875 eval "$as_ac_File=no"
2878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2879 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2880 if test `eval echo '${'$as_ac_File'}'` = yes; then
2881 HAS_PTLIB=1
2884 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2885 # Extract the first word of "ptlib-config", so it can be a program name with args.
2886 set dummy ptlib-config; ac_word=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 case $PTLIB_CONFIG in
2893 [\\/]* | ?:[\\/]*)
2894 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in ${prefix}/bin
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2912 esac
2914 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2916 if test -n "$PTLIB_CONFIG"; then
2917 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2918 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2919 else
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2931 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2932 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
2933 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
2934 { (exit 1); exit 1; }; }
2937 if test "${PWLIBDIR:-unset}" = "unset" ; then
2938 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2939 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
2940 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
2941 { (exit 1); exit 1; }; }
2943 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2946 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2947 PWLIBDIR="/usr/share/pwlib/"
2949 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2950 PWLIBDIR="/usr/local/share/pwlib/"
2952 if test "x$PWLIBDIR" = "x${prefix}"; then
2953 PWLIBDIR="${prefix}/share/pwlib/"
2957 echo "PWLib prefix set to.... $PWLIBDIR"
2959 if test "${PWLIBDIR:-unset}" = "unset" ; then
2960 PWVERSION=`$PTLIB_CONFIG --version`
2961 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2962 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2963 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2965 else
2966 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2967 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2968 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2969 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2972 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2973 if test "${enable_versioncheck+set}" = set; then
2974 enableval="$enable_versioncheck"
2975 PWLIB_VERSION_CHECK=$enableval
2978 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2979 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2980 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2981 echo "$as_me:$LINENO: result: check disabled" >&5
2982 echo "${ECHO_T}check disabled" >&6
2983 else
2984 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2985 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2986 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
2987 { (exit 1); exit 1; }; }
2989 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2990 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2991 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
2992 { (exit 1); exit 1; }; }
2994 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2995 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2996 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
2997 { (exit 1); exit 1; }; }
2999 echo "$as_me:$LINENO: result: ok" >&5
3000 echo "${ECHO_T}ok" >&6
3006 if test x$GXX = xyes ; then
3007 USE_GCC=yes
3008 gcc_version=`$CXX -dumpversion`
3009 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
3010 echo "$as_me: gcc version is $gcc_version" >&6;};
3011 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
3012 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
3013 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
3015 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
3016 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
3017 if test ${GXX_MAJOR} -lt 3 ; then
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3020 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
3021 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
3022 { (exit 1); exit 1; }; }
3023 else
3024 echo "$as_me:$LINENO: result: yes" >&5
3025 echo "${ECHO_T}yes" >&6
3030 echo "$as_me:$LINENO: checking for working bit scan intrinsic" >&5
3031 echo $ECHO_N "checking for working bit scan intrinsic... $ECHO_C" >&6
3032 BSR_TEST_SRC="
3033 #include <stdlib.h>
3034 int main(int argc, char* argv) {
3035 #ifdef __GNUC__
3036 unsigned int val = 0x00000FF0;
3037 if (__builtin_clz(val) == 20)
3038 exit(0);
3039 #endif
3040 exit(1);
3043 if test "$cross_compiling" = yes; then
3044 GCC_HAS_CLZ=1
3045 else
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052 $BSR_TEST_SRC
3053 _ACEOF
3054 rm -f conftest$ac_exeext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 GCC_HAS_CLZ=1
3066 else
3067 echo "$as_me: program exited with status $ac_status" >&5
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 ( exit $ac_status )
3072 GCC_HAS_CLZ=0
3074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3076 if test "${GCC_HAS_CLZ}" = "1" ; then
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 cat >>confdefs.h <<\_ACEOF
3080 #define GCC_HAS_CLZ 1
3081 _ACEOF
3083 GCC_HAS_CLZ=1
3084 else
3085 echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3091 localspeex="xxx"
3092 # Check whether --enable-localspeex or --disable-localspeex was given.
3093 if test "${enable_localspeex+set}" = set; then
3094 enableval="$enable_localspeex"
3095 localspeex=$enableval
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3104 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3105 # On Suns, sometimes $CPP names a directory.
3106 if test -n "$CPP" && test -d "$CPP"; then
3107 CPP=
3109 if test -z "$CPP"; then
3110 if test "${ac_cv_prog_CPP+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 # Double quotes because CPP needs to be expanded
3114 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116 ac_preproc_ok=false
3117 for ac_c_preproc_warn_flag in '' yes
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122 # <limits.h> exists even on freestanding compilers.
3123 # On the NeXT, cc -E runs the code through the compiler's parser,
3124 # not just through cpp. "Syntax error" is here to catch this case.
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #ifdef __STDC__
3132 # include <limits.h>
3133 #else
3134 # include <assert.h>
3135 #endif
3136 Syntax error
3137 _ACEOF
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null; then
3146 if test -s conftest.err; then
3147 ac_cpp_err=$ac_c_preproc_warn_flag
3148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3149 else
3150 ac_cpp_err=
3152 else
3153 ac_cpp_err=yes
3155 if test -z "$ac_cpp_err"; then
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 # Broken: fails on valid input.
3162 continue
3164 rm -f conftest.err conftest.$ac_ext
3166 # OK, works on sane cases. Now check whether non-existent headers
3167 # can be detected and how.
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 #include <ac_nonexistent.h>
3175 _ACEOF
3176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } >/dev/null; then
3184 if test -s conftest.err; then
3185 ac_cpp_err=$ac_c_preproc_warn_flag
3186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3187 else
3188 ac_cpp_err=
3190 else
3191 ac_cpp_err=yes
3193 if test -z "$ac_cpp_err"; then
3194 # Broken: success on invalid input.
3195 continue
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 # Passes both tests.
3201 ac_preproc_ok=:
3202 break
3204 rm -f conftest.err conftest.$ac_ext
3206 done
3207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3208 rm -f conftest.err conftest.$ac_ext
3209 if $ac_preproc_ok; then
3210 break
3213 done
3214 ac_cv_prog_CPP=$CPP
3217 CPP=$ac_cv_prog_CPP
3218 else
3219 ac_cv_prog_CPP=$CPP
3221 echo "$as_me:$LINENO: result: $CPP" >&5
3222 echo "${ECHO_T}$CPP" >&6
3223 ac_preproc_ok=false
3224 for ac_c_preproc_warn_flag in '' yes
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #ifdef __STDC__
3239 # include <limits.h>
3240 #else
3241 # include <assert.h>
3242 #endif
3243 Syntax error
3244 _ACEOF
3245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 else
3257 ac_cpp_err=
3259 else
3260 ac_cpp_err=yes
3262 if test -z "$ac_cpp_err"; then
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Broken: fails on valid input.
3269 continue
3271 rm -f conftest.err conftest.$ac_ext
3273 # OK, works on sane cases. Now check whether non-existent headers
3274 # can be detected and how.
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <ac_nonexistent.h>
3282 _ACEOF
3283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } >/dev/null; then
3291 if test -s conftest.err; then
3292 ac_cpp_err=$ac_c_preproc_warn_flag
3293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294 else
3295 ac_cpp_err=
3297 else
3298 ac_cpp_err=yes
3300 if test -z "$ac_cpp_err"; then
3301 # Broken: success on invalid input.
3302 continue
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Passes both tests.
3308 ac_preproc_ok=:
3309 break
3311 rm -f conftest.err conftest.$ac_ext
3313 done
3314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3315 rm -f conftest.err conftest.$ac_ext
3316 if $ac_preproc_ok; then
3318 else
3319 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3320 See \`config.log' for more details." >&5
3321 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3322 See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 echo "$as_me:$LINENO: checking for egrep" >&5
3334 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3335 if test "${ac_cv_prog_egrep+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3339 then ac_cv_prog_egrep='grep -E'
3340 else ac_cv_prog_egrep='egrep'
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3344 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3345 EGREP=$ac_cv_prog_egrep
3348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3350 if test "${ac_cv_header_stdc+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include <stdlib.h>
3360 #include <stdarg.h>
3361 #include <string.h>
3362 #include <float.h>
3365 main ()
3369 return 0;
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -z "$ac_c_werror_flag"
3382 || test ! -s conftest.err'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_header_stdc=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 ac_cv_header_stdc=no
3401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403 if test $ac_cv_header_stdc = yes; then
3404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <string.h>
3413 _ACEOF
3414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3415 $EGREP "memchr" >/dev/null 2>&1; then
3417 else
3418 ac_cv_header_stdc=no
3420 rm -f conftest*
3424 if test $ac_cv_header_stdc = yes; then
3425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <stdlib.h>
3434 _ACEOF
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 $EGREP "free" >/dev/null 2>&1; then
3438 else
3439 ac_cv_header_stdc=no
3441 rm -f conftest*
3445 if test $ac_cv_header_stdc = yes; then
3446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3447 if test "$cross_compiling" = yes; then
3449 else
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <ctype.h>
3457 #if ((' ' & 0x0FF) == 0x020)
3458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3460 #else
3461 # define ISLOWER(c) \
3462 (('a' <= (c) && (c) <= 'i') \
3463 || ('j' <= (c) && (c) <= 'r') \
3464 || ('s' <= (c) && (c) <= 'z'))
3465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3466 #endif
3468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3470 main ()
3472 int i;
3473 for (i = 0; i < 256; i++)
3474 if (XOR (islower (i), ISLOWER (i))
3475 || toupper (i) != TOUPPER (i))
3476 exit(2);
3477 exit (0);
3479 _ACEOF
3480 rm -f conftest$ac_exeext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482 (eval $ac_link) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3492 else
3493 echo "$as_me: program exited with status $ac_status" >&5
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 ( exit $ac_status )
3498 ac_cv_header_stdc=no
3500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3506 if test $ac_cv_header_stdc = yes; then
3508 cat >>confdefs.h <<\_ACEOF
3509 #define STDC_HEADERS 1
3510 _ACEOF
3514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3525 inttypes.h stdint.h unistd.h
3527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3528 echo "$as_me:$LINENO: checking for $ac_header" >&5
3529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 $ac_includes_default
3541 #include <$ac_header>
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_c_werror_flag"
3553 || test ! -s conftest.err'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 eval "$as_ac_Header=yes"
3566 else
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 eval "$as_ac_Header=no"
3572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3577 cat >>confdefs.h <<_ACEOF
3578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3579 _ACEOF
3583 done
3586 echo "$as_me:$LINENO: checking for short" >&5
3587 echo $ECHO_N "checking for short... $ECHO_C" >&6
3588 if test "${ac_cv_type_short+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 $ac_includes_default
3599 main ()
3601 if ((short *) 0)
3602 return 0;
3603 if (sizeof (short))
3604 return 0;
3606 return 0;
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag"
3619 || test ! -s conftest.err'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3631 ac_cv_type_short=yes
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_cv_type_short=no
3638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3641 echo "${ECHO_T}$ac_cv_type_short" >&6
3643 echo "$as_me:$LINENO: checking size of short" >&5
3644 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3645 if test "${ac_cv_sizeof_short+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test "$ac_cv_type_short" = yes; then
3649 # The cast to unsigned long works around a bug in the HP C Compiler
3650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3652 # This bug is HP SR number 8606223364.
3653 if test "$cross_compiling" = yes; then
3654 # Depending upon the size, compute the lo and hi bounds.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 $ac_includes_default
3663 main ()
3665 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3666 test_array [0] = 0
3669 return 0;
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_lo=0 ac_mid=0
3695 while :; do
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 $ac_includes_default
3704 main ()
3706 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3707 test_array [0] = 0
3710 return 0;
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -z "$ac_c_werror_flag"
3723 || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 ac_hi=$ac_mid; break
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_lo=`expr $ac_mid + 1`
3741 if test $ac_lo -le $ac_mid; then
3742 ac_lo= ac_hi=
3743 break
3745 ac_mid=`expr 2 '*' $ac_mid + 1`
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 done
3749 else
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 $ac_includes_default
3761 main ()
3763 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3764 test_array [0] = 0
3767 return 0;
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_hi=-1 ac_mid=-1
3793 while :; do
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 $ac_includes_default
3802 main ()
3804 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3805 test_array [0] = 0
3808 return 0;
3810 _ACEOF
3811 rm -f conftest.$ac_objext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3813 (eval $ac_compile) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -z "$ac_c_werror_flag"
3821 || test ! -s conftest.err'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; } &&
3827 { ac_try='test -s conftest.$ac_objext'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 ac_lo=$ac_mid; break
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ac_hi=`expr '(' $ac_mid ')' - 1`
3839 if test $ac_mid -le $ac_hi; then
3840 ac_lo= ac_hi=
3841 break
3843 ac_mid=`expr 2 '*' $ac_mid`
3845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3846 done
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_lo= ac_hi=
3853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 # Binary search between lo and hi bounds.
3857 while test "x$ac_lo" != "x$ac_hi"; do
3858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 $ac_includes_default
3867 main ()
3869 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3870 test_array [0] = 0
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_hi=$ac_mid
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 ac_lo=`expr '(' $ac_mid ')' + 1`
3905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906 done
3907 case $ac_lo in
3908 ?*) ac_cv_sizeof_short=$ac_lo;;
3909 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3910 See \`config.log' for more details." >&5
3911 echo "$as_me: error: cannot compute sizeof (short), 77
3912 See \`config.log' for more details." >&2;}
3913 { (exit 1); exit 1; }; } ;;
3914 esac
3915 else
3916 if test "$cross_compiling" = yes; then
3917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3918 See \`config.log' for more details." >&5
3919 echo "$as_me: error: cannot run test program while cross compiling
3920 See \`config.log' for more details." >&2;}
3921 { (exit 1); exit 1; }; }
3922 else
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 $ac_includes_default
3930 long longval () { return (long) (sizeof (short)); }
3931 unsigned long ulongval () { return (long) (sizeof (short)); }
3932 #include <stdio.h>
3933 #include <stdlib.h>
3935 main ()
3938 FILE *f = fopen ("conftest.val", "w");
3939 if (! f)
3940 exit (1);
3941 if (((long) (sizeof (short))) < 0)
3943 long i = longval ();
3944 if (i != ((long) (sizeof (short))))
3945 exit (1);
3946 fprintf (f, "%ld\n", i);
3948 else
3950 unsigned long i = ulongval ();
3951 if (i != ((long) (sizeof (short))))
3952 exit (1);
3953 fprintf (f, "%lu\n", i);
3955 exit (ferror (f) || fclose (f) != 0);
3958 return 0;
3960 _ACEOF
3961 rm -f conftest$ac_exeext
3962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3963 (eval $ac_link) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_sizeof_short=`cat conftest.val`
3973 else
3974 echo "$as_me: program exited with status $ac_status" >&5
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ( exit $ac_status )
3979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3980 See \`config.log' for more details." >&5
3981 echo "$as_me: error: cannot compute sizeof (short), 77
3982 See \`config.log' for more details." >&2;}
3983 { (exit 1); exit 1; }; }
3985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 rm -f conftest.val
3989 else
3990 ac_cv_sizeof_short=0
3993 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3994 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3995 cat >>confdefs.h <<_ACEOF
3996 #define SIZEOF_SHORT $ac_cv_sizeof_short
3997 _ACEOF
4000 echo "$as_me:$LINENO: checking for int" >&5
4001 echo $ECHO_N "checking for int... $ECHO_C" >&6
4002 if test "${ac_cv_type_int+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 $ac_includes_default
4013 main ()
4015 if ((int *) 0)
4016 return 0;
4017 if (sizeof (int))
4018 return 0;
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_type_int=yes
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cv_type_int=no
4052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4055 echo "${ECHO_T}$ac_cv_type_int" >&6
4057 echo "$as_me:$LINENO: checking size of int" >&5
4058 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4059 if test "${ac_cv_sizeof_int+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 if test "$ac_cv_type_int" = yes; then
4063 # The cast to unsigned long works around a bug in the HP C Compiler
4064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4066 # This bug is HP SR number 8606223364.
4067 if test "$cross_compiling" = yes; then
4068 # Depending upon the size, compute the lo and hi bounds.
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 $ac_includes_default
4077 main ()
4079 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4080 test_array [0] = 0
4083 return 0;
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 ac_lo=0 ac_mid=0
4109 while :; do
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 $ac_includes_default
4118 main ()
4120 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4121 test_array [0] = 0
4124 return 0;
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_hi=$ac_mid; break
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_lo=`expr $ac_mid + 1`
4155 if test $ac_lo -le $ac_mid; then
4156 ac_lo= ac_hi=
4157 break
4159 ac_mid=`expr 2 '*' $ac_mid + 1`
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162 done
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 $ac_includes_default
4175 main ()
4177 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4178 test_array [0] = 0
4181 return 0;
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4186 (eval $ac_compile) 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } &&
4193 { ac_try='test -z "$ac_c_werror_flag"
4194 || test ! -s conftest.err'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; } &&
4200 { ac_try='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_hi=-1 ac_mid=-1
4207 while :; do
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 $ac_includes_default
4216 main ()
4218 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4219 test_array [0] = 0
4222 return 0;
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_lo=$ac_mid; break
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_hi=`expr '(' $ac_mid ')' - 1`
4253 if test $ac_mid -le $ac_hi; then
4254 ac_lo= ac_hi=
4255 break
4257 ac_mid=`expr 2 '*' $ac_mid`
4259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260 done
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 ac_lo= ac_hi=
4267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4270 # Binary search between lo and hi bounds.
4271 while test "x$ac_lo" != "x$ac_hi"; do
4272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4273 cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h. */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 $ac_includes_default
4281 main ()
4283 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4284 test_array [0] = 0
4287 return 0;
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_hi=$ac_mid
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_lo=`expr '(' $ac_mid ')' + 1`
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 done
4321 case $ac_lo in
4322 ?*) ac_cv_sizeof_int=$ac_lo;;
4323 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4324 See \`config.log' for more details." >&5
4325 echo "$as_me: error: cannot compute sizeof (int), 77
4326 See \`config.log' for more details." >&2;}
4327 { (exit 1); exit 1; }; } ;;
4328 esac
4329 else
4330 if test "$cross_compiling" = yes; then
4331 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4332 See \`config.log' for more details." >&5
4333 echo "$as_me: error: cannot run test program while cross compiling
4334 See \`config.log' for more details." >&2;}
4335 { (exit 1); exit 1; }; }
4336 else
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4344 long longval () { return (long) (sizeof (int)); }
4345 unsigned long ulongval () { return (long) (sizeof (int)); }
4346 #include <stdio.h>
4347 #include <stdlib.h>
4349 main ()
4352 FILE *f = fopen ("conftest.val", "w");
4353 if (! f)
4354 exit (1);
4355 if (((long) (sizeof (int))) < 0)
4357 long i = longval ();
4358 if (i != ((long) (sizeof (int))))
4359 exit (1);
4360 fprintf (f, "%ld\n", i);
4362 else
4364 unsigned long i = ulongval ();
4365 if (i != ((long) (sizeof (int))))
4366 exit (1);
4367 fprintf (f, "%lu\n", i);
4369 exit (ferror (f) || fclose (f) != 0);
4372 return 0;
4374 _ACEOF
4375 rm -f conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377 (eval $ac_link) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_sizeof_int=`cat conftest.val`
4387 else
4388 echo "$as_me: program exited with status $ac_status" >&5
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ( exit $ac_status )
4393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4394 See \`config.log' for more details." >&5
4395 echo "$as_me: error: cannot compute sizeof (int), 77
4396 See \`config.log' for more details." >&2;}
4397 { (exit 1); exit 1; }; }
4399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4402 rm -f conftest.val
4403 else
4404 ac_cv_sizeof_int=0
4407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4408 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4409 cat >>confdefs.h <<_ACEOF
4410 #define SIZEOF_INT $ac_cv_sizeof_int
4411 _ACEOF
4414 echo "$as_me:$LINENO: checking for long" >&5
4415 echo $ECHO_N "checking for long... $ECHO_C" >&6
4416 if test "${ac_cv_type_long+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 $ac_includes_default
4427 main ()
4429 if ((long *) 0)
4430 return 0;
4431 if (sizeof (long))
4432 return 0;
4434 return 0;
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_type_long=yes
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 ac_cv_type_long=no
4466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4468 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4469 echo "${ECHO_T}$ac_cv_type_long" >&6
4471 echo "$as_me:$LINENO: checking size of long" >&5
4472 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4473 if test "${ac_cv_sizeof_long+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 if test "$ac_cv_type_long" = yes; then
4477 # The cast to unsigned long works around a bug in the HP C Compiler
4478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4480 # This bug is HP SR number 8606223364.
4481 if test "$cross_compiling" = yes; then
4482 # Depending upon the size, compute the lo and hi bounds.
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4491 main ()
4493 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4494 test_array [0] = 0
4497 return 0;
4499 _ACEOF
4500 rm -f conftest.$ac_objext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -z "$ac_c_werror_flag"
4510 || test ! -s conftest.err'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; } &&
4516 { ac_try='test -s conftest.$ac_objext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_lo=0 ac_mid=0
4523 while :; do
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4532 main ()
4534 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4535 test_array [0] = 0
4538 return 0;
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_hi=$ac_mid; break
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_lo=`expr $ac_mid + 1`
4569 if test $ac_lo -le $ac_mid; then
4570 ac_lo= ac_hi=
4571 break
4573 ac_mid=`expr 2 '*' $ac_mid + 1`
4575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4576 done
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4589 main ()
4591 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4592 test_array [0] = 0
4595 return 0;
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_hi=-1 ac_mid=-1
4621 while :; do
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 $ac_includes_default
4630 main ()
4632 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4633 test_array [0] = 0
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_lo=$ac_mid; break
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_hi=`expr '(' $ac_mid ')' - 1`
4667 if test $ac_mid -le $ac_hi; then
4668 ac_lo= ac_hi=
4669 break
4671 ac_mid=`expr 2 '*' $ac_mid`
4673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4674 done
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_lo= ac_hi=
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 # Binary search between lo and hi bounds.
4685 while test "x$ac_lo" != "x$ac_hi"; do
4686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 $ac_includes_default
4695 main ()
4697 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4698 test_array [0] = 0
4701 return 0;
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>conftest.er1
4707 ac_status=$?
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_c_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest.$ac_objext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_hi=$ac_mid
4727 else
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 ac_lo=`expr '(' $ac_mid ')' + 1`
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734 done
4735 case $ac_lo in
4736 ?*) ac_cv_sizeof_long=$ac_lo;;
4737 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4738 See \`config.log' for more details." >&5
4739 echo "$as_me: error: cannot compute sizeof (long), 77
4740 See \`config.log' for more details." >&2;}
4741 { (exit 1); exit 1; }; } ;;
4742 esac
4743 else
4744 if test "$cross_compiling" = yes; then
4745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4746 See \`config.log' for more details." >&5
4747 echo "$as_me: error: cannot run test program while cross compiling
4748 See \`config.log' for more details." >&2;}
4749 { (exit 1); exit 1; }; }
4750 else
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4758 long longval () { return (long) (sizeof (long)); }
4759 unsigned long ulongval () { return (long) (sizeof (long)); }
4760 #include <stdio.h>
4761 #include <stdlib.h>
4763 main ()
4766 FILE *f = fopen ("conftest.val", "w");
4767 if (! f)
4768 exit (1);
4769 if (((long) (sizeof (long))) < 0)
4771 long i = longval ();
4772 if (i != ((long) (sizeof (long))))
4773 exit (1);
4774 fprintf (f, "%ld\n", i);
4776 else
4778 unsigned long i = ulongval ();
4779 if (i != ((long) (sizeof (long))))
4780 exit (1);
4781 fprintf (f, "%lu\n", i);
4783 exit (ferror (f) || fclose (f) != 0);
4786 return 0;
4788 _ACEOF
4789 rm -f conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791 (eval $ac_link) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_cv_sizeof_long=`cat conftest.val`
4801 else
4802 echo "$as_me: program exited with status $ac_status" >&5
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 ( exit $ac_status )
4807 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4808 See \`config.log' for more details." >&5
4809 echo "$as_me: error: cannot compute sizeof (long), 77
4810 See \`config.log' for more details." >&2;}
4811 { (exit 1); exit 1; }; }
4813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4816 rm -f conftest.val
4817 else
4818 ac_cv_sizeof_long=0
4821 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4822 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4823 cat >>confdefs.h <<_ACEOF
4824 #define SIZEOF_LONG $ac_cv_sizeof_long
4825 _ACEOF
4828 echo "$as_me:$LINENO: checking for long long" >&5
4829 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4830 if test "${ac_cv_type_long_long+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 $ac_includes_default
4841 main ()
4843 if ((long long *) 0)
4844 return 0;
4845 if (sizeof (long long))
4846 return 0;
4848 return 0;
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -z "$ac_c_werror_flag"
4861 || test ! -s conftest.err'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 ac_cv_type_long_long=yes
4874 else
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cv_type_long_long=no
4880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4883 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4885 echo "$as_me:$LINENO: checking size of long long" >&5
4886 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4887 if test "${ac_cv_sizeof_long_long+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 if test "$ac_cv_type_long_long" = yes; then
4891 # The cast to unsigned long works around a bug in the HP C Compiler
4892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4894 # This bug is HP SR number 8606223364.
4895 if test "$cross_compiling" = yes; then
4896 # Depending upon the size, compute the lo and hi bounds.
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 $ac_includes_default
4905 main ()
4907 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4908 test_array [0] = 0
4911 return 0;
4913 _ACEOF
4914 rm -f conftest.$ac_objext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_lo=0 ac_mid=0
4937 while :; do
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 $ac_includes_default
4946 main ()
4948 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4949 test_array [0] = 0
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
4964 { ac_try='test -z "$ac_c_werror_flag"
4965 || test ! -s conftest.err'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; } &&
4971 { ac_try='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_hi=$ac_mid; break
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_lo=`expr $ac_mid + 1`
4983 if test $ac_lo -le $ac_mid; then
4984 ac_lo= ac_hi=
4985 break
4987 ac_mid=`expr 2 '*' $ac_mid + 1`
4989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990 done
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 $ac_includes_default
5003 main ()
5005 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5006 test_array [0] = 0
5009 return 0;
5011 _ACEOF
5012 rm -f conftest.$ac_objext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_hi=-1 ac_mid=-1
5035 while :; do
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 $ac_includes_default
5044 main ()
5046 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5047 test_array [0] = 0
5050 return 0;
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_c_werror_flag"
5063 || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_lo=$ac_mid; break
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_hi=`expr '(' $ac_mid ')' - 1`
5081 if test $ac_mid -le $ac_hi; then
5082 ac_lo= ac_hi=
5083 break
5085 ac_mid=`expr 2 '*' $ac_mid`
5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088 done
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_lo= ac_hi=
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 # Binary search between lo and hi bounds.
5099 while test "x$ac_lo" != "x$ac_hi"; do
5100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 $ac_includes_default
5109 main ()
5111 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5112 test_array [0] = 0
5115 return 0;
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 (eval $ac_try) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_hi=$ac_mid
5141 else
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_lo=`expr '(' $ac_mid ')' + 1`
5147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5148 done
5149 case $ac_lo in
5150 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5151 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5152 See \`config.log' for more details." >&5
5153 echo "$as_me: error: cannot compute sizeof (long long), 77
5154 See \`config.log' for more details." >&2;}
5155 { (exit 1); exit 1; }; } ;;
5156 esac
5157 else
5158 if test "$cross_compiling" = yes; then
5159 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5160 See \`config.log' for more details." >&5
5161 echo "$as_me: error: cannot run test program while cross compiling
5162 See \`config.log' for more details." >&2;}
5163 { (exit 1); exit 1; }; }
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 long longval () { return (long) (sizeof (long long)); }
5173 unsigned long ulongval () { return (long) (sizeof (long long)); }
5174 #include <stdio.h>
5175 #include <stdlib.h>
5177 main ()
5180 FILE *f = fopen ("conftest.val", "w");
5181 if (! f)
5182 exit (1);
5183 if (((long) (sizeof (long long))) < 0)
5185 long i = longval ();
5186 if (i != ((long) (sizeof (long long))))
5187 exit (1);
5188 fprintf (f, "%ld\n", i);
5190 else
5192 unsigned long i = ulongval ();
5193 if (i != ((long) (sizeof (long long))))
5194 exit (1);
5195 fprintf (f, "%lu\n", i);
5197 exit (ferror (f) || fclose (f) != 0);
5200 return 0;
5202 _ACEOF
5203 rm -f conftest$ac_exeext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5205 (eval $ac_link) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_cv_sizeof_long_long=`cat conftest.val`
5215 else
5216 echo "$as_me: program exited with status $ac_status" >&5
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ( exit $ac_status )
5221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5222 See \`config.log' for more details." >&5
5223 echo "$as_me: error: cannot compute sizeof (long long), 77
5224 See \`config.log' for more details." >&2;}
5225 { (exit 1); exit 1; }; }
5227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5230 rm -f conftest.val
5231 else
5232 ac_cv_sizeof_long_long=0
5235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5236 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5237 cat >>confdefs.h <<_ACEOF
5238 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5239 _ACEOF
5243 case 2 in
5244 $ac_cv_sizeof_short) SIZE16="short";;
5245 $ac_cv_sizeof_int) SIZE16="int";;
5246 esac
5248 case 4 in
5249 $ac_cv_sizeof_int) SIZE32="int";;
5250 $ac_cv_sizeof_long) SIZE32="long";;
5251 $ac_cv_sizeof_short) SIZE32="short";;
5252 esac
5257 OPAL_HAVE_SPEEX_H=
5258 OPAL_HAVE_SPEEX_SPEEX_H=
5260 for ac_header in "speex.h"
5262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5264 echo "$as_me:$LINENO: checking for $ac_header" >&5
5265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5271 else
5272 # Is the header compilable?
5273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 $ac_includes_default
5282 #include <$ac_header>
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag"
5294 || test ! -s conftest.err'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest.$ac_objext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_header_compiler=yes
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_header_compiler=no
5313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5315 echo "${ECHO_T}$ac_header_compiler" >&6
5317 # Is the header present?
5318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <$ac_header>
5327 _ACEOF
5328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } >/dev/null; then
5336 if test -s conftest.err; then
5337 ac_cpp_err=$ac_c_preproc_warn_flag
5338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5339 else
5340 ac_cpp_err=
5342 else
5343 ac_cpp_err=yes
5345 if test -z "$ac_cpp_err"; then
5346 ac_header_preproc=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_preproc=no
5353 rm -f conftest.err conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355 echo "${ECHO_T}$ac_header_preproc" >&6
5357 # So? What about this header?
5358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5359 yes:no: )
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364 ac_header_preproc=yes
5366 no:yes:* )
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5380 cat <<\_ASBOX
5381 ## ------------------------------------------ ##
5382 ## Report this to the AC_PACKAGE_NAME lists. ##
5383 ## ------------------------------------------ ##
5384 _ASBOX
5386 sed "s/^/$as_me: WARNING: /" >&2
5388 esac
5389 echo "$as_me:$LINENO: checking for $ac_header" >&5
5390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 eval "$as_ac_Header=\$ac_header_preproc"
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5401 cat >>confdefs.h <<_ACEOF
5402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5403 _ACEOF
5404 OPAL_HAVE_SPEEX_H=1
5407 done
5409 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5410 cat >>confdefs.h <<\_ACEOF
5411 #define OPAL_HAVE_SPEEX_H 1
5412 _ACEOF
5414 else
5416 for ac_header in "speex/speex.h"
5418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5420 echo "$as_me:$LINENO: checking for $ac_header" >&5
5421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 else
5428 # Is the header compilable?
5429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5438 #include <$ac_header>
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -z "$ac_c_werror_flag"
5450 || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_header_compiler=yes
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_header_compiler=no
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5471 echo "${ECHO_T}$ac_header_compiler" >&6
5473 # Is the header present?
5474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <$ac_header>
5483 _ACEOF
5484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } >/dev/null; then
5492 if test -s conftest.err; then
5493 ac_cpp_err=$ac_c_preproc_warn_flag
5494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5495 else
5496 ac_cpp_err=
5498 else
5499 ac_cpp_err=yes
5501 if test -z "$ac_cpp_err"; then
5502 ac_header_preproc=yes
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_header_preproc=no
5509 rm -f conftest.err conftest.$ac_ext
5510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5511 echo "${ECHO_T}$ac_header_preproc" >&6
5513 # So? What about this header?
5514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5515 yes:no: )
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5520 ac_header_preproc=yes
5522 no:yes:* )
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5536 cat <<\_ASBOX
5537 ## ------------------------------------------ ##
5538 ## Report this to the AC_PACKAGE_NAME lists. ##
5539 ## ------------------------------------------ ##
5540 _ASBOX
5542 sed "s/^/$as_me: WARNING: /" >&2
5544 esac
5545 echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 eval "$as_ac_Header=\$ac_header_preproc"
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 _ACEOF
5560 OPAL_HAVE_SPEEX_SPEEX_H=1
5563 done
5565 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5566 cat >>confdefs.h <<\_ACEOF
5567 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5568 _ACEOF
5573 if test "${localspeex}" = "yes" ; then
5574 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5575 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5576 elif test "${localspeex}" = "no" ; then
5577 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5578 echo "$as_me: Forcing use of system Speex library" >&6;}
5579 cat >>confdefs.h <<\_ACEOF
5580 #define OPAL_SYSTEM_SPEEX 1
5581 _ACEOF
5583 OPAL_SYSTEM_SPEEX=1
5585 else
5586 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5587 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5588 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 ac_check_lib_save_LIBS=$LIBS
5592 LIBS="-lspeex $LIBS"
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 #ifdef __cplusplus
5602 extern "C"
5603 #endif
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char speex_encoder_destroy ();
5608 main ()
5610 speex_encoder_destroy ();
5612 return 0;
5614 _ACEOF
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -z "$ac_c_werror_flag"
5625 || test ! -s conftest.err'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_lib_speex_speex_encoder_destroy=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cv_lib_speex_speex_encoder_destroy=no
5644 rm -f conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
5646 LIBS=$ac_check_lib_save_LIBS
5648 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5649 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5650 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5651 SPEEX=1
5654 if test "${SPEEX}x" != "x" ; then
5655 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5656 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5657 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 ac_check_lib_save_LIBS=$LIBS
5661 LIBS="-lspeex $LIBS"
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 #ifdef __cplusplus
5671 extern "C"
5672 #endif
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5675 char speex_encode_int ();
5677 main ()
5679 speex_encode_int ();
5681 return 0;
5683 _ACEOF
5684 rm -f conftest.$ac_objext conftest$ac_exeext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5686 (eval $ac_link) 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_lib_speex_speex_encode_int=yes
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 ac_cv_lib_speex_speex_encode_int=no
5713 rm -f conftest.err conftest.$ac_objext \
5714 conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5717 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5718 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5719 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5720 SPEEX=1
5721 else
5722 unset SPEEX
5726 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5727 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5728 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5729 else
5730 echo "$as_me:$LINENO: checking system Speex version" >&5
5731 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5732 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5733 echo "#include <speex.h>" > t.c
5734 echo "#include <speex_header.h>" >> t.c
5735 else
5736 echo "#include <speex/speex.h>" > t.c
5737 echo "#include <speex/speex_header.h>" >> t.c
5739 cat >> t.c <<C_FILE
5740 #include <stdio.h>
5741 int main(int argc,char *argv)
5743 SpeexHeader header;
5744 speex_init_header(&header, 1, 1, &speex_nb_mode);
5745 printf("%s\n", header.speex_version);
5747 C_FILE
5748 cc -o t t.c -lspeex > /dev/null 2>&1
5749 if test \! -x t ; then
5750 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5751 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5752 else
5753 SYSVER=`./t`
5754 echo "$as_me:$LINENO: result: $SYSVER" >&5
5755 echo "${ECHO_T}$SYSVER" >&6
5756 echo "$as_me:$LINENO: checking OPAL Speex version" >&5
5757 echo $ECHO_N "checking OPAL Speex version... $ECHO_C" >&6
5758 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5759 echo "$as_me:$LINENO: result: $LIBVER" >&5
5760 echo "${ECHO_T}$LIBVER" >&6
5761 echo "$as_me:$LINENO: checking Speex versions" >&5
5762 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5763 cat > t.pl <<P_FILE
5765 \$sysver = @ARGV[0];
5766 \$libver = @ARGV[1];
5767 @lib = split /\./, \$libver;
5768 while (@lib < 3) {
5769 @lib[0+@lib] = "0";
5771 @sys = split /\./, \$sysver;
5772 while (@sys < 3) {
5773 @sys[0+@sys] = "0";
5775 \$i = 0;
5776 while (\$i < 3) {
5777 if (@sys[\$i] < @lib[\$i]) {
5778 print "0";
5779 exit;
5781 \$i++;
5783 print "1";
5785 P_FILE
5786 SPEEX=`perl t.pl $SYSVER $LIBVER`
5787 rm t.pl
5788 if test "x$SPEEX" = "x0" ; then
5789 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5790 echo "${ECHO_T}OPAL version is more recent" >&6
5791 else
5792 echo "$as_me:$LINENO: result: system version is more recent" >&5
5793 echo "${ECHO_T}system version is more recent" >&6
5794 cat >>confdefs.h <<\_ACEOF
5795 #define OPAL_SYSTEM_SPEEX 1
5796 _ACEOF
5798 OPAL_SYSTEM_SPEEX=1
5800 echo "$as_me:$LINENO: checking Speex noise type" >&5
5801 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5802 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5803 echo "#include <speex.h>" > t.c
5804 echo "#include <speex_preprocess.h>" >> t.c
5805 else
5806 echo "#include <speex/speex.h>" > t.c
5807 echo "#include <speex/speex_preprocess.h>" >> t.c
5809 cat >> t.c <<C_FILE
5810 #include <stdio.h>
5811 int main(int argc,char *argv)
5813 struct SpeexPreprocessState *st;
5814 spx_int16_t *x;
5815 float *echo;
5816 speex_preprocess(st, x, echo);
5818 C_FILE
5819 rm -f t
5820 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5821 if test \! -x t ; then
5822 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5823 echo "${ECHO_T}spx_int32_t" >&6
5824 else
5825 echo "$as_me:$LINENO: result: float" >&5
5826 echo "${ECHO_T}float" >&6
5827 cat >>confdefs.h <<\_ACEOF
5828 #define OPAL_SPEEX_FLOAT_NOISE 1
5829 _ACEOF
5834 rm -f t t.c
5842 # Check whether --enable-audio or --disable-audio was given.
5843 if test "${enable_audio+set}" = set; then
5844 enableval="$enable_audio"
5845 audio=$enableval
5847 echo "$as_me:$LINENO: checking audio codec support" >&5
5848 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6
5849 if test "$audio" = "yes" ; then
5850 OPAL_AUDIO=1
5852 cat >>confdefs.h <<\_ACEOF
5853 #define OPAL_AUDIO 1
5854 _ACEOF
5856 echo "$as_me:$LINENO: result: enabled" >&5
5857 echo "${ECHO_T}enabled" >&6
5858 else
5859 echo "$as_me:$LINENO: result: disabled" >&5
5860 echo "${ECHO_T}disabled" >&6
5866 # Check whether --enable-video or --disable-video was given.
5867 if test "${enable_video+set}" = set; then
5868 enableval="$enable_video"
5869 video=$enableval
5871 echo "$as_me:$LINENO: checking video device support" >&5
5872 echo $ECHO_N "checking video device support... $ECHO_C" >&6
5873 if test "$video" = "yes" ; then
5874 OPAL_VIDEO=1
5876 cat >>confdefs.h <<\_ACEOF
5877 #define OPAL_VIDEO 1
5878 _ACEOF
5880 echo "$as_me:$LINENO: result: enabled" >&5
5881 echo "${ECHO_T}enabled" >&6
5882 else
5883 echo "$as_me:$LINENO: result: disabled" >&5
5884 echo "${ECHO_T}disabled" >&6
5889 # Check whether --enable-sip or --disable-sip was given.
5890 if test "${enable_sip+set}" = set; then
5891 enableval="$enable_sip"
5892 sip=$enableval
5894 echo "$as_me:$LINENO: checking SIP protocol" >&5
5895 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5896 if test "$sip" = "yes" ; then
5897 OPAL_SIP=1
5899 cat >>confdefs.h <<\_ACEOF
5900 #define OPAL_SIP 1
5901 _ACEOF
5903 echo "$as_me:$LINENO: result: enabled" >&5
5904 echo "${ECHO_T}enabled" >&6
5905 else
5906 echo "$as_me:$LINENO: result: disabled" >&5
5907 echo "${ECHO_T}disabled" >&6
5912 # Check whether --enable-h323 or --disable-h323 was given.
5913 if test "${enable_h323+set}" = set; then
5914 enableval="$enable_h323"
5915 h323=$enableval
5917 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5918 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5919 if test "$h323" = "yes" ; then
5920 OPAL_H323=1
5922 cat >>confdefs.h <<\_ACEOF
5923 #define OPAL_H323 1
5924 _ACEOF
5926 echo "$as_me:$LINENO: result: enabled" >&5
5927 echo "${ECHO_T}enabled" >&6
5928 else
5929 OPAL_H323=0
5931 echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
5932 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6
5933 h224=no
5934 h460=no
5936 OPAL_H323=$OPAL_H323
5941 # Check whether --enable-iax or --disable-iax was given.
5942 if test "${enable_iax+set}" = set; then
5943 enableval="$enable_iax"
5944 iax=$enableval
5946 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5947 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5948 if test "$iax" = "yes" ; then
5949 OPAL_IAX2=1
5951 cat >>confdefs.h <<\_ACEOF
5952 #define OPAL_IAX2 1
5953 _ACEOF
5955 echo "$as_me:$LINENO: result: enabled" >&5
5956 echo "${ECHO_T}enabled" >&6
5957 else
5958 echo "$as_me:$LINENO: result: disabled" >&5
5959 echo "${ECHO_T}disabled" >&6
5964 # Check whether --enable-h224 or --disable-h224 was given.
5965 if test "${enable_h224+set}" = set; then
5966 enableval="$enable_h224"
5967 h224=$enableval
5969 echo "$as_me:$LINENO: checking H224 protocol" >&5
5970 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5971 if test "$h224" = "yes" ; then
5972 OPAL_H224=1
5974 cat >>confdefs.h <<\_ACEOF
5975 #define OPAL_H224 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 if test "$t38" = "yes" ; then
5988 # Check whether --enable-t38 or --disable-t38 was given.
5989 if test "${enable_t38+set}" = set; then
5990 enableval="$enable_t38"
5991 t38=$enableval
5993 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5994 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5995 if test "$t38" = "yes" ; then
5996 OPAL_T38FAX=1
5998 cat >>confdefs.h <<\_ACEOF
5999 #define OPAL_T38FAX 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
6013 OPAL_450=
6014 if test "$h450" = "yes" ; then
6015 # Check whether --enable-h450 or --disable-h450 was given.
6016 if test "${enable_h450+set}" = set; then
6017 enableval="$enable_h450"
6018 h450=$enableval
6020 echo "$as_me:$LINENO: checking H.450 support" >&5
6021 echo $ECHO_N "checking H.450 support... $ECHO_C" >&6
6022 if test "$h450" = "yes" ; then
6023 OPAL_H450=1
6025 cat >>confdefs.h <<\_ACEOF
6026 #define OPAL_H450 1
6027 _ACEOF
6029 echo "$as_me:$LINENO: result: enabled" >&5
6030 echo "${ECHO_T}enabled" >&6
6031 else
6032 echo "$as_me:$LINENO: result: disabled" >&5
6033 echo "${ECHO_T}disabled" >&6
6040 OPAL_460=
6041 if test "$h460" = "yes" ; then
6042 # Check whether --enable-h460 or --disable-h460 was given.
6043 if test "${enable_h460+set}" = set; then
6044 enableval="$enable_h460"
6045 h460=$enableval
6047 echo "$as_me:$LINENO: checking H.460 support" >&5
6048 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6
6049 if test "$h460" = "yes" ; then
6050 OPAL_H460=1
6052 cat >>confdefs.h <<\_ACEOF
6053 #define OPAL_H460 1
6054 _ACEOF
6056 echo "$as_me:$LINENO: result: enabled" >&5
6057 echo "${ECHO_T}enabled" >&6
6058 else
6059 echo "$as_me:$LINENO: result: disabled" >&5
6060 echo "${ECHO_T}disabled" >&6
6067 OPAL_LID=
6068 lid=yes
6069 if test "$lid" = "yes" ; then
6070 # Check whether --enable-lid or --disable-lid was given.
6071 if test "${enable_lid+set}" = set; then
6072 enableval="$enable_lid"
6073 lid=$enableval
6075 echo "$as_me:$LINENO: checking LID support" >&5
6076 echo $ECHO_N "checking LID support... $ECHO_C" >&6
6077 if test "$lid" = "yes" ; then
6078 cat >>confdefs.h <<\_ACEOF
6079 #define OPAL_LID 1
6080 _ACEOF
6082 OPAL_LID=1
6083 echo "$as_me:$LINENO: result: enabled" >&5
6084 echo "${ECHO_T}enabled" >&6
6085 else
6086 echo "$as_me:$LINENO: result: disabled" >&5
6087 echo "${ECHO_T}disabled" >&6
6094 OPAL_ivr=
6095 ivr=yes
6096 if test "$ivr" = "yes" ; then
6097 # Check whether --enable-ivr or --disable-ivr was given.
6098 if test "${enable_ivr+set}" = set; then
6099 enableval="$enable_ivr"
6100 ivr=$enableval
6102 echo "$as_me:$LINENO: checking IVR support" >&5
6103 echo $ECHO_N "checking IVR support... $ECHO_C" >&6
6104 if test "$ivr" = "yes" ; then
6105 cat >>confdefs.h <<\_ACEOF
6106 #define OPAL_IVR 1
6107 _ACEOF
6109 OPAL_IVR=1
6110 echo "$as_me:$LINENO: result: enabled" >&5
6111 echo "${ECHO_T}enabled" >&6
6112 else
6113 echo "$as_me:$LINENO: result: disabled" >&5
6114 echo "${ECHO_T}disabled" >&6
6121 OPAL_RFC4175=
6122 rfc4175=yes
6123 if test "$rfc4175" = "yes" ; then
6124 # Check whether --enable-rfc4175 or --disable-rfc4175 was given.
6125 if test "${enable_rfc4175+set}" = set; then
6126 enableval="$enable_rfc4175"
6127 rfc4175=$enableval
6129 echo "$as_me:$LINENO: checking RFC4175 codec" >&5
6130 echo $ECHO_N "checking RFC4175 codec... $ECHO_C" >&6
6131 if test "$rfc4175" = "yes" ; then
6132 OPAL_RFC4175=1
6134 cat >>confdefs.h <<\_ACEOF
6135 #define OPAL_RFC4175 1
6136 _ACEOF
6138 echo "$as_me:$LINENO: result: enabled" >&5
6139 echo "${ECHO_T}enabled" >&6
6140 else
6141 echo "$as_me:$LINENO: result: disabled" >&5
6142 echo "${ECHO_T}disabled" >&6
6149 HAS_LIBZRTP=
6156 HAS_LIBSRTP=
6157 echo "$as_me:$LINENO: checking for libSRTP" >&5
6158 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include "srtp/srtp.h"
6167 main ()
6169 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
6171 return 0;
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 HAS_LIBSRTP=1
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203 if test "${HAS_LIBSRTP}" = "1" ; then
6204 echo "$as_me:$LINENO: result: yes" >&5
6205 echo "${ECHO_T}yes" >&6
6206 cat >>confdefs.h <<\_ACEOF
6207 #define HAS_LIBSRTP 1
6208 _ACEOF
6210 HAS_LIBSRTP=1
6211 OPAL_SRTP=1
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6
6222 ac_aux_dir=
6223 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6224 if test -f $ac_dir/install-sh; then
6225 ac_aux_dir=$ac_dir
6226 ac_install_sh="$ac_aux_dir/install-sh -c"
6227 break
6228 elif test -f $ac_dir/install.sh; then
6229 ac_aux_dir=$ac_dir
6230 ac_install_sh="$ac_aux_dir/install.sh -c"
6231 break
6232 elif test -f $ac_dir/shtool; then
6233 ac_aux_dir=$ac_dir
6234 ac_install_sh="$ac_aux_dir/shtool install -c"
6235 break
6237 done
6238 if test -z "$ac_aux_dir"; then
6239 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6240 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6241 { (exit 1); exit 1; }; }
6243 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6244 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6245 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6247 # Find a good install program. We prefer a C program (faster),
6248 # so one script is as good as another. But avoid the broken or
6249 # incompatible versions:
6250 # SysV /etc/install, /usr/sbin/install
6251 # SunOS /usr/etc/install
6252 # IRIX /sbin/install
6253 # AIX /bin/install
6254 # AmigaOS /C/install, which installs bootblocks on floppy discs
6255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6258 # OS/2's system install, which has a completely different semantic
6259 # ./install, which can be erroneously created by make from ./install.sh.
6260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6262 if test -z "$INSTALL"; then
6263 if test "${ac_cv_path_install+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 # Account for people who put trailing slashes in PATH elements.
6272 case $as_dir/ in
6273 ./ | .// | /cC/* | \
6274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6276 /usr/ucb/* ) ;;
6278 # OSF1 and SCO ODT 3.0 have their own names for install.
6279 # Don't use installbsd from OSF since it installs stuff as root
6280 # by default.
6281 for ac_prog in ginstall scoinst install; do
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6284 if test $ac_prog = install &&
6285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6286 # AIX install. It has an incompatible calling convention.
6288 elif test $ac_prog = install &&
6289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6290 # program-specific install script used by HP pwplus--don't use.
6292 else
6293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6294 break 3
6297 done
6298 done
6300 esac
6301 done
6305 if test "${ac_cv_path_install+set}" = set; then
6306 INSTALL=$ac_cv_path_install
6307 else
6308 # As a last resort, use the slow shell script. We don't cache a
6309 # path for INSTALL within a source directory, because that will
6310 # break other packages using the cache if that directory is
6311 # removed, or if the path is relative.
6312 INSTALL=$ac_install_sh
6315 echo "$as_me:$LINENO: result: $INSTALL" >&5
6316 echo "${ECHO_T}$INSTALL" >&6
6318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6319 # It thinks the first close brace ends the variable substitution.
6320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6330 subdirs="$subdirs plugins"
6334 ac_config_files="$ac_config_files opal_inc.mak"
6336 ac_config_files="$ac_config_files Makefile"
6338 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6340 ac_config_files="$ac_config_files opal.pc"
6342 ac_config_files="$ac_config_files opal.spec"
6344 ac_config_files="$ac_config_files opal_cfg.dxy"
6347 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6348 cat >confcache <<\_ACEOF
6349 # This file is a shell script that caches the results of configure
6350 # tests run on this system so they can be shared between configure
6351 # scripts and configure runs, see configure's option --config-cache.
6352 # It is not useful on other systems. If it contains results you don't
6353 # want to keep, you may remove or edit it.
6355 # config.status only pays attention to the cache file if you give it
6356 # the --recheck option to rerun configure.
6358 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6360 # following values.
6362 _ACEOF
6364 # The following way of writing the cache mishandles newlines in values,
6365 # but we know of no workaround that is simple, portable, and efficient.
6366 # So, don't put newlines in cache variables' values.
6367 # Ultrix sh set writes to stderr and can't be redirected directly,
6368 # and sets the high bit in the cache file unless we assign to the vars.
6370 (set) 2>&1 |
6371 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6372 *ac_space=\ *)
6373 # `set' does not quote correctly, so add quotes (double-quote
6374 # substitution turns \\\\ into \\, and sed turns \\ into \).
6375 sed -n \
6376 "s/'/'\\\\''/g;
6377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6380 # `set' quotes correctly as required by POSIX, so do not add quotes.
6381 sed -n \
6382 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6384 esac;
6386 sed '
6387 t clear
6388 : clear
6389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6390 t end
6391 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6392 : end' >>confcache
6393 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6394 if test -w $cache_file; then
6395 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6396 cat confcache >$cache_file
6397 else
6398 echo "not updating unwritable cache $cache_file"
6401 rm -f confcache
6403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6404 # Let make expand exec_prefix.
6405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6409 # trailing colons and then remove the whole line if VPATH becomes empty
6410 # (actually we leave an empty line to preserve line numbers).
6411 if test "x$srcdir" = x.; then
6412 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6413 s/:*\$(srcdir):*/:/;
6414 s/:*\${srcdir}:*/:/;
6415 s/:*@srcdir@:*/:/;
6416 s/^\([^=]*=[ ]*\):*/\1/;
6417 s/:*$//;
6418 s/^[^=]*=[ ]*$//;
6422 DEFS=-DHAVE_CONFIG_H
6424 ac_libobjs=
6425 ac_ltlibobjs=
6426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6427 # 1. Remove the extension, and $U if already installed.
6428 ac_i=`echo "$ac_i" |
6429 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6430 # 2. Add them.
6431 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6432 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6433 done
6434 LIBOBJS=$ac_libobjs
6436 LTLIBOBJS=$ac_ltlibobjs
6440 : ${CONFIG_STATUS=./config.status}
6441 ac_clean_files_save=$ac_clean_files
6442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6443 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6444 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6445 cat >$CONFIG_STATUS <<_ACEOF
6446 #! $SHELL
6447 # Generated by $as_me.
6448 # Run this file to recreate the current configuration.
6449 # Compiler output produced by configure, useful for debugging
6450 # configure, is in config.log if it exists.
6452 debug=false
6453 ac_cs_recheck=false
6454 ac_cs_silent=false
6455 SHELL=\${CONFIG_SHELL-$SHELL}
6456 _ACEOF
6458 cat >>$CONFIG_STATUS <<\_ACEOF
6459 ## --------------------- ##
6460 ## M4sh Initialization. ##
6461 ## --------------------- ##
6463 # Be Bourne compatible
6464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6465 emulate sh
6466 NULLCMD=:
6467 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6468 # is contrary to our usage. Disable this feature.
6469 alias -g '${1+"$@"}'='"$@"'
6470 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6471 set -o posix
6473 DUALCASE=1; export DUALCASE # for MKS sh
6475 # Support unset when possible.
6476 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6477 as_unset=unset
6478 else
6479 as_unset=false
6483 # Work around bugs in pre-3.0 UWIN ksh.
6484 $as_unset ENV MAIL MAILPATH
6485 PS1='$ '
6486 PS2='> '
6487 PS4='+ '
6489 # NLS nuisances.
6490 for as_var in \
6491 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6492 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6493 LC_TELEPHONE LC_TIME
6495 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6496 eval $as_var=C; export $as_var
6497 else
6498 $as_unset $as_var
6500 done
6502 # Required to use basename.
6503 if expr a : '\(a\)' >/dev/null 2>&1; then
6504 as_expr=expr
6505 else
6506 as_expr=false
6509 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6510 as_basename=basename
6511 else
6512 as_basename=false
6516 # Name of the executable.
6517 as_me=`$as_basename "$0" ||
6518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6519 X"$0" : 'X\(//\)$' \| \
6520 X"$0" : 'X\(/\)$' \| \
6521 . : '\(.\)' 2>/dev/null ||
6522 echo X/"$0" |
6523 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6524 /^X\/\(\/\/\)$/{ s//\1/; q; }
6525 /^X\/\(\/\).*/{ s//\1/; q; }
6526 s/.*/./; q'`
6529 # PATH needs CR, and LINENO needs CR and PATH.
6530 # Avoid depending upon Character Ranges.
6531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6534 as_cr_digits='0123456789'
6535 as_cr_alnum=$as_cr_Letters$as_cr_digits
6537 # The user is always right.
6538 if test "${PATH_SEPARATOR+set}" != set; then
6539 echo "#! /bin/sh" >conf$$.sh
6540 echo "exit 0" >>conf$$.sh
6541 chmod +x conf$$.sh
6542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6543 PATH_SEPARATOR=';'
6544 else
6545 PATH_SEPARATOR=:
6547 rm -f conf$$.sh
6551 as_lineno_1=$LINENO
6552 as_lineno_2=$LINENO
6553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6554 test "x$as_lineno_1" != "x$as_lineno_2" &&
6555 test "x$as_lineno_3" = "x$as_lineno_2" || {
6556 # Find who we are. Look in the path if we contain no path at all
6557 # relative or not.
6558 case $0 in
6559 *[\\/]* ) as_myself=$0 ;;
6560 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6566 done
6569 esac
6570 # We did not find ourselves, most probably we were run as `sh COMMAND'
6571 # in which case we are not to be found in the path.
6572 if test "x$as_myself" = x; then
6573 as_myself=$0
6575 if test ! -f "$as_myself"; then
6576 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6577 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6578 { (exit 1); exit 1; }; }
6580 case $CONFIG_SHELL in
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for as_base in sh bash ksh sh5; do
6588 case $as_dir in
6590 if ("$as_dir/$as_base" -c '
6591 as_lineno_1=$LINENO
6592 as_lineno_2=$LINENO
6593 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6594 test "x$as_lineno_1" != "x$as_lineno_2" &&
6595 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6596 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6597 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6598 CONFIG_SHELL=$as_dir/$as_base
6599 export CONFIG_SHELL
6600 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6601 fi;;
6602 esac
6603 done
6604 done
6606 esac
6608 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6609 # uniformly replaced by the line number. The first 'sed' inserts a
6610 # line-number line before each line; the second 'sed' does the real
6611 # work. The second script uses 'N' to pair each line-number line
6612 # with the numbered line, and appends trailing '-' during
6613 # substitution so that $LINENO is not a special case at line end.
6614 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6615 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6616 sed '=' <$as_myself |
6617 sed '
6619 s,$,-,
6620 : loop
6621 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6622 t loop
6623 s,-$,,
6624 s,^['$as_cr_digits']*\n,,
6625 ' >$as_me.lineno &&
6626 chmod +x $as_me.lineno ||
6627 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6628 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6629 { (exit 1); exit 1; }; }
6631 # Don't try to exec as it changes $[0], causing all sort of problems
6632 # (the dirname of $[0] is not the place where we might find the
6633 # original and so on. Autoconf is especially sensible to this).
6634 . ./$as_me.lineno
6635 # Exit status is that of the last command.
6636 exit
6640 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6641 *c*,-n*) ECHO_N= ECHO_C='
6642 ' ECHO_T=' ' ;;
6643 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6644 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6645 esac
6647 if expr a : '\(a\)' >/dev/null 2>&1; then
6648 as_expr=expr
6649 else
6650 as_expr=false
6653 rm -f conf$$ conf$$.exe conf$$.file
6654 echo >conf$$.file
6655 if ln -s conf$$.file conf$$ 2>/dev/null; then
6656 # We could just check for DJGPP; but this test a) works b) is more generic
6657 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6658 if test -f conf$$.exe; then
6659 # Don't use ln at all; we don't have any links
6660 as_ln_s='cp -p'
6661 else
6662 as_ln_s='ln -s'
6664 elif ln conf$$.file conf$$ 2>/dev/null; then
6665 as_ln_s=ln
6666 else
6667 as_ln_s='cp -p'
6669 rm -f conf$$ conf$$.exe conf$$.file
6671 if mkdir -p . 2>/dev/null; then
6672 as_mkdir_p=:
6673 else
6674 test -d ./-p && rmdir ./-p
6675 as_mkdir_p=false
6678 as_executable_p="test -f"
6680 # Sed expression to map a string onto a valid CPP name.
6681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6683 # Sed expression to map a string onto a valid variable name.
6684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6687 # IFS
6688 # We need space, tab and new line, in precisely that order.
6689 as_nl='
6691 IFS=" $as_nl"
6693 # CDPATH.
6694 $as_unset CDPATH
6696 exec 6>&1
6698 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6699 # report actual input values of CONFIG_FILES etc. instead of their
6700 # values after options handling. Logging --version etc. is OK.
6701 exec 5>>config.log
6703 echo
6704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6705 ## Running $as_me. ##
6706 _ASBOX
6707 } >&5
6708 cat >&5 <<_CSEOF
6710 This file was extended by $as_me, which was
6711 generated by GNU Autoconf 2.59. Invocation command line was
6713 CONFIG_FILES = $CONFIG_FILES
6714 CONFIG_HEADERS = $CONFIG_HEADERS
6715 CONFIG_LINKS = $CONFIG_LINKS
6716 CONFIG_COMMANDS = $CONFIG_COMMANDS
6717 $ $0 $@
6719 _CSEOF
6720 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6721 echo >&5
6722 _ACEOF
6724 # Files that config.status was made for.
6725 if test -n "$ac_config_files"; then
6726 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6729 if test -n "$ac_config_headers"; then
6730 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6733 if test -n "$ac_config_links"; then
6734 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6737 if test -n "$ac_config_commands"; then
6738 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6741 cat >>$CONFIG_STATUS <<\_ACEOF
6743 ac_cs_usage="\
6744 \`$as_me' instantiates files from templates according to the
6745 current configuration.
6747 Usage: $0 [OPTIONS] [FILE]...
6749 -h, --help print this help, then exit
6750 -V, --version print version number, then exit
6751 -q, --quiet do not print progress messages
6752 -d, --debug don't remove temporary files
6753 --recheck update $as_me by reconfiguring in the same conditions
6754 --file=FILE[:TEMPLATE]
6755 instantiate the configuration file FILE
6756 --header=FILE[:TEMPLATE]
6757 instantiate the configuration header FILE
6759 Configuration files:
6760 $config_files
6762 Configuration headers:
6763 $config_headers
6765 Report bugs to <bug-autoconf@gnu.org>."
6766 _ACEOF
6768 cat >>$CONFIG_STATUS <<_ACEOF
6769 ac_cs_version="\\
6770 config.status
6771 configured by $0, generated by GNU Autoconf 2.59,
6772 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6774 Copyright (C) 2003 Free Software Foundation, Inc.
6775 This config.status script is free software; the Free Software Foundation
6776 gives unlimited permission to copy, distribute and modify it."
6777 srcdir=$srcdir
6778 INSTALL="$INSTALL"
6779 _ACEOF
6781 cat >>$CONFIG_STATUS <<\_ACEOF
6782 # If no file are specified by the user, then we need to provide default
6783 # value. By we need to know if files were specified by the user.
6784 ac_need_defaults=:
6785 while test $# != 0
6787 case $1 in
6788 --*=*)
6789 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6790 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6791 ac_shift=:
6794 ac_option=$1
6795 ac_optarg=$2
6796 ac_shift=shift
6798 *) # This is not an option, so the user has probably given explicit
6799 # arguments.
6800 ac_option=$1
6801 ac_need_defaults=false;;
6802 esac
6804 case $ac_option in
6805 # Handling of the options.
6806 _ACEOF
6807 cat >>$CONFIG_STATUS <<\_ACEOF
6808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6809 ac_cs_recheck=: ;;
6810 --version | --vers* | -V )
6811 echo "$ac_cs_version"; exit 0 ;;
6812 --he | --h)
6813 # Conflict between --help and --header
6814 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6815 Try \`$0 --help' for more information." >&5
6816 echo "$as_me: error: ambiguous option: $1
6817 Try \`$0 --help' for more information." >&2;}
6818 { (exit 1); exit 1; }; };;
6819 --help | --hel | -h )
6820 echo "$ac_cs_usage"; exit 0 ;;
6821 --debug | --d* | -d )
6822 debug=: ;;
6823 --file | --fil | --fi | --f )
6824 $ac_shift
6825 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6826 ac_need_defaults=false;;
6827 --header | --heade | --head | --hea )
6828 $ac_shift
6829 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6830 ac_need_defaults=false;;
6831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6833 ac_cs_silent=: ;;
6835 # This is an error.
6836 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6837 Try \`$0 --help' for more information." >&5
6838 echo "$as_me: error: unrecognized option: $1
6839 Try \`$0 --help' for more information." >&2;}
6840 { (exit 1); exit 1; }; } ;;
6842 *) ac_config_targets="$ac_config_targets $1" ;;
6844 esac
6845 shift
6846 done
6848 ac_configure_extra_args=
6850 if $ac_cs_silent; then
6851 exec 6>/dev/null
6852 ac_configure_extra_args="$ac_configure_extra_args --silent"
6855 _ACEOF
6856 cat >>$CONFIG_STATUS <<_ACEOF
6857 if \$ac_cs_recheck; then
6858 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6859 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6862 _ACEOF
6868 cat >>$CONFIG_STATUS <<\_ACEOF
6869 for ac_config_target in $ac_config_targets
6871 case "$ac_config_target" in
6872 # Handling of arguments.
6873 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
6874 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6875 "opal.pc" ) CONFIG_FILES="$CONFIG_FILES opal.pc" ;;
6876 "opal.spec" ) CONFIG_FILES="$CONFIG_FILES opal.spec" ;;
6877 "opal_cfg.dxy" ) CONFIG_FILES="$CONFIG_FILES opal_cfg.dxy" ;;
6878 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
6879 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
6880 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6881 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6882 { (exit 1); exit 1; }; };;
6883 esac
6884 done
6886 # If the user did not use the arguments to specify the items to instantiate,
6887 # then the envvar interface is used. Set only those that are not.
6888 # We use the long form for the default assignment because of an extremely
6889 # bizarre bug on SunOS 4.1.3.
6890 if $ac_need_defaults; then
6891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6892 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6895 # Have a temporary directory for convenience. Make it in the build tree
6896 # simply because there is no reason to put it here, and in addition,
6897 # creating and moving files from /tmp can sometimes cause problems.
6898 # Create a temporary directory, and hook for its removal unless debugging.
6899 $debug ||
6901 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6902 trap '{ (exit 1); exit 1; }' 1 2 13 15
6905 # Create a (secure) tmp directory for tmp files.
6908 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6909 test -n "$tmp" && test -d "$tmp"
6910 } ||
6912 tmp=./confstat$$-$RANDOM
6913 (umask 077 && mkdir $tmp)
6914 } ||
6916 echo "$me: cannot create a temporary directory in ." >&2
6917 { (exit 1); exit 1; }
6920 _ACEOF
6922 cat >>$CONFIG_STATUS <<_ACEOF
6925 # CONFIG_FILES section.
6928 # No need to generate the scripts if there are no CONFIG_FILES.
6929 # This happens for instance when ./config.status config.h
6930 if test -n "\$CONFIG_FILES"; then
6931 # Protect against being on the right side of a sed subst in config.status.
6932 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6933 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6934 s,@SHELL@,$SHELL,;t t
6935 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6936 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6937 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6938 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6939 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6940 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6941 s,@exec_prefix@,$exec_prefix,;t t
6942 s,@prefix@,$prefix,;t t
6943 s,@program_transform_name@,$program_transform_name,;t t
6944 s,@bindir@,$bindir,;t t
6945 s,@sbindir@,$sbindir,;t t
6946 s,@libexecdir@,$libexecdir,;t t
6947 s,@datadir@,$datadir,;t t
6948 s,@sysconfdir@,$sysconfdir,;t t
6949 s,@sharedstatedir@,$sharedstatedir,;t t
6950 s,@localstatedir@,$localstatedir,;t t
6951 s,@libdir@,$libdir,;t t
6952 s,@includedir@,$includedir,;t t
6953 s,@oldincludedir@,$oldincludedir,;t t
6954 s,@infodir@,$infodir,;t t
6955 s,@mandir@,$mandir,;t t
6956 s,@build_alias@,$build_alias,;t t
6957 s,@host_alias@,$host_alias,;t t
6958 s,@target_alias@,$target_alias,;t t
6959 s,@DEFS@,$DEFS,;t t
6960 s,@ECHO_C@,$ECHO_C,;t t
6961 s,@ECHO_N@,$ECHO_N,;t t
6962 s,@ECHO_T@,$ECHO_T,;t t
6963 s,@LIBS@,$LIBS,;t t
6964 s,@CC@,$CC,;t t
6965 s,@CFLAGS@,$CFLAGS,;t t
6966 s,@LDFLAGS@,$LDFLAGS,;t t
6967 s,@CPPFLAGS@,$CPPFLAGS,;t t
6968 s,@ac_ct_CC@,$ac_ct_CC,;t t
6969 s,@EXEEXT@,$EXEEXT,;t t
6970 s,@OBJEXT@,$OBJEXT,;t t
6971 s,@CXX@,$CXX,;t t
6972 s,@CXXFLAGS@,$CXXFLAGS,;t t
6973 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6974 s,@OPALDIR@,$OPALDIR,;t t
6975 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6976 s,@LIBDIR@,$LIBDIR,;t t
6977 s,@OPAL_VERSION@,$OPAL_VERSION,;t t
6978 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
6979 s,@PWLIBDIR@,$PWLIBDIR,;t t
6980 s,@GCC_HAS_CLZ@,$GCC_HAS_CLZ,;t t
6981 s,@CPP@,$CPP,;t t
6982 s,@EGREP@,$EGREP,;t t
6983 s,@SIZE16@,$SIZE16,;t t
6984 s,@SIZE32@,$SIZE32,;t t
6985 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
6986 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
6987 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
6988 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
6989 s,@OPAL_SIP@,$OPAL_SIP,;t t
6990 s,@OPAL_H323@,$OPAL_H323,;t t
6991 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
6992 s,@OPAL_H224@,$OPAL_H224,;t t
6993 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
6994 s,@OPAL_H450@,$OPAL_H450,;t t
6995 s,@OPAL_H460@,$OPAL_H460,;t t
6996 s,@OPAL_LID@,$OPAL_LID,;t t
6997 s,@OPAL_IVR@,$OPAL_IVR,;t t
6998 s,@OPAL_RFC4175@,$OPAL_RFC4175,;t t
6999 s,@OPAL_ZRTP@,$OPAL_ZRTP,;t t
7000 s,@HAS_LIBZRTP@,$HAS_LIBZRTP,;t t
7001 s,@OPAL_SRTP@,$OPAL_SRTP,;t t
7002 s,@HAS_LIBSRTP@,$HAS_LIBSRTP,;t t
7003 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
7004 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
7005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7008 s,@subdirs@,$subdirs,;t t
7009 s,@LIBOBJS@,$LIBOBJS,;t t
7010 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7011 CEOF
7013 _ACEOF
7015 cat >>$CONFIG_STATUS <<\_ACEOF
7016 # Split the substitutions into bite-sized pieces for seds with
7017 # small command number limits, like on Digital OSF/1 and HP-UX.
7018 ac_max_sed_lines=48
7019 ac_sed_frag=1 # Number of current file.
7020 ac_beg=1 # First line for current file.
7021 ac_end=$ac_max_sed_lines # Line after last line for current file.
7022 ac_more_lines=:
7023 ac_sed_cmds=
7024 while $ac_more_lines; do
7025 if test $ac_beg -gt 1; then
7026 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7027 else
7028 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7030 if test ! -s $tmp/subs.frag; then
7031 ac_more_lines=false
7032 else
7033 # The purpose of the label and of the branching condition is to
7034 # speed up the sed processing (if there are no `@' at all, there
7035 # is no need to browse any of the substitutions).
7036 # These are the two extra sed commands mentioned above.
7037 (echo ':t
7038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7039 if test -z "$ac_sed_cmds"; then
7040 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7041 else
7042 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7044 ac_sed_frag=`expr $ac_sed_frag + 1`
7045 ac_beg=$ac_end
7046 ac_end=`expr $ac_end + $ac_max_sed_lines`
7048 done
7049 if test -z "$ac_sed_cmds"; then
7050 ac_sed_cmds=cat
7052 fi # test -n "$CONFIG_FILES"
7054 _ACEOF
7055 cat >>$CONFIG_STATUS <<\_ACEOF
7056 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7057 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7058 case $ac_file in
7059 - | *:- | *:-:* ) # input from stdin
7060 cat >$tmp/stdin
7061 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7062 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7063 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7064 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7065 * ) ac_file_in=$ac_file.in ;;
7066 esac
7068 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7069 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7071 X"$ac_file" : 'X\(//\)[^/]' \| \
7072 X"$ac_file" : 'X\(//\)$' \| \
7073 X"$ac_file" : 'X\(/\)' \| \
7074 . : '\(.\)' 2>/dev/null ||
7075 echo X"$ac_file" |
7076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7078 /^X\(\/\/\)$/{ s//\1/; q; }
7079 /^X\(\/\).*/{ s//\1/; q; }
7080 s/.*/./; q'`
7081 { if $as_mkdir_p; then
7082 mkdir -p "$ac_dir"
7083 else
7084 as_dir="$ac_dir"
7085 as_dirs=
7086 while test ! -d "$as_dir"; do
7087 as_dirs="$as_dir $as_dirs"
7088 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7090 X"$as_dir" : 'X\(//\)[^/]' \| \
7091 X"$as_dir" : 'X\(//\)$' \| \
7092 X"$as_dir" : 'X\(/\)' \| \
7093 . : '\(.\)' 2>/dev/null ||
7094 echo X"$as_dir" |
7095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7097 /^X\(\/\/\)$/{ s//\1/; q; }
7098 /^X\(\/\).*/{ s//\1/; q; }
7099 s/.*/./; q'`
7100 done
7101 test ! -n "$as_dirs" || mkdir $as_dirs
7102 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7103 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7104 { (exit 1); exit 1; }; }; }
7106 ac_builddir=.
7108 if test "$ac_dir" != .; then
7109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7110 # A "../" for each directory in $ac_dir_suffix.
7111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7112 else
7113 ac_dir_suffix= ac_top_builddir=
7116 case $srcdir in
7117 .) # No --srcdir option. We are building in place.
7118 ac_srcdir=.
7119 if test -z "$ac_top_builddir"; then
7120 ac_top_srcdir=.
7121 else
7122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7123 fi ;;
7124 [\\/]* | ?:[\\/]* ) # Absolute path.
7125 ac_srcdir=$srcdir$ac_dir_suffix;
7126 ac_top_srcdir=$srcdir ;;
7127 *) # Relative path.
7128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7130 esac
7132 # Do not use `cd foo && pwd` to compute absolute paths, because
7133 # the directories may not exist.
7134 case `pwd` in
7135 .) ac_abs_builddir="$ac_dir";;
7137 case "$ac_dir" in
7138 .) ac_abs_builddir=`pwd`;;
7139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7141 esac;;
7142 esac
7143 case $ac_abs_builddir in
7144 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7146 case ${ac_top_builddir}. in
7147 .) ac_abs_top_builddir=$ac_abs_builddir;;
7148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7150 esac;;
7151 esac
7152 case $ac_abs_builddir in
7153 .) ac_abs_srcdir=$ac_srcdir;;
7155 case $ac_srcdir in
7156 .) ac_abs_srcdir=$ac_abs_builddir;;
7157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7159 esac;;
7160 esac
7161 case $ac_abs_builddir in
7162 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7164 case $ac_top_srcdir in
7165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7168 esac;;
7169 esac
7172 case $INSTALL in
7173 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7174 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7175 esac
7177 if test x"$ac_file" != x-; then
7178 { echo "$as_me:$LINENO: creating $ac_file" >&5
7179 echo "$as_me: creating $ac_file" >&6;}
7180 rm -f "$ac_file"
7182 # Let's still pretend it is `configure' which instantiates (i.e., don't
7183 # use $as_me), people would be surprised to read:
7184 # /* config.h. Generated by config.status. */
7185 if test x"$ac_file" = x-; then
7186 configure_input=
7187 else
7188 configure_input="$ac_file. "
7190 configure_input=$configure_input"Generated from `echo $ac_file_in |
7191 sed 's,.*/,,'` by configure."
7193 # First look for the input files in the build tree, otherwise in the
7194 # src tree.
7195 ac_file_inputs=`IFS=:
7196 for f in $ac_file_in; do
7197 case $f in
7198 -) echo $tmp/stdin ;;
7199 [\\/$]*)
7200 # Absolute (can't be DOS-style, as IFS=:)
7201 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7202 echo "$as_me: error: cannot find input file: $f" >&2;}
7203 { (exit 1); exit 1; }; }
7204 echo "$f";;
7205 *) # Relative
7206 if test -f "$f"; then
7207 # Build tree
7208 echo "$f"
7209 elif test -f "$srcdir/$f"; then
7210 # Source tree
7211 echo "$srcdir/$f"
7212 else
7213 # /dev/null tree
7214 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7215 echo "$as_me: error: cannot find input file: $f" >&2;}
7216 { (exit 1); exit 1; }; }
7217 fi;;
7218 esac
7219 done` || { (exit 1); exit 1; }
7220 _ACEOF
7221 cat >>$CONFIG_STATUS <<_ACEOF
7222 sed "$ac_vpsub
7223 $extrasub
7224 _ACEOF
7225 cat >>$CONFIG_STATUS <<\_ACEOF
7227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7228 s,@configure_input@,$configure_input,;t t
7229 s,@srcdir@,$ac_srcdir,;t t
7230 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7231 s,@top_srcdir@,$ac_top_srcdir,;t t
7232 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7233 s,@builddir@,$ac_builddir,;t t
7234 s,@abs_builddir@,$ac_abs_builddir,;t t
7235 s,@top_builddir@,$ac_top_builddir,;t t
7236 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7237 s,@INSTALL@,$ac_INSTALL,;t t
7238 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7239 rm -f $tmp/stdin
7240 if test x"$ac_file" != x-; then
7241 mv $tmp/out $ac_file
7242 else
7243 cat $tmp/out
7244 rm -f $tmp/out
7247 done
7248 _ACEOF
7249 cat >>$CONFIG_STATUS <<\_ACEOF
7252 # CONFIG_HEADER section.
7255 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7256 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7258 # ac_d sets the value in "#define NAME VALUE" lines.
7259 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7260 ac_dB='[ ].*$,\1#\2'
7261 ac_dC=' '
7262 ac_dD=',;t'
7263 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7264 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7265 ac_uB='$,\1#\2define\3'
7266 ac_uC=' '
7267 ac_uD=',;t'
7269 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7271 case $ac_file in
7272 - | *:- | *:-:* ) # input from stdin
7273 cat >$tmp/stdin
7274 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7276 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7278 * ) ac_file_in=$ac_file.in ;;
7279 esac
7281 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7282 echo "$as_me: creating $ac_file" >&6;}
7284 # First look for the input files in the build tree, otherwise in the
7285 # src tree.
7286 ac_file_inputs=`IFS=:
7287 for f in $ac_file_in; do
7288 case $f in
7289 -) echo $tmp/stdin ;;
7290 [\\/$]*)
7291 # Absolute (can't be DOS-style, as IFS=:)
7292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7293 echo "$as_me: error: cannot find input file: $f" >&2;}
7294 { (exit 1); exit 1; }; }
7295 # Do quote $f, to prevent DOS paths from being IFS'd.
7296 echo "$f";;
7297 *) # Relative
7298 if test -f "$f"; then
7299 # Build tree
7300 echo "$f"
7301 elif test -f "$srcdir/$f"; then
7302 # Source tree
7303 echo "$srcdir/$f"
7304 else
7305 # /dev/null tree
7306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7307 echo "$as_me: error: cannot find input file: $f" >&2;}
7308 { (exit 1); exit 1; }; }
7309 fi;;
7310 esac
7311 done` || { (exit 1); exit 1; }
7312 # Remove the trailing spaces.
7313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7315 _ACEOF
7317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7318 # `conftest.undefs', that substitutes the proper values into
7319 # config.h.in to produce config.h. The first handles `#define'
7320 # templates, and the second `#undef' templates.
7321 # And first: Protect against being on the right side of a sed subst in
7322 # config.status. Protect against being in an unquoted here document
7323 # in config.status.
7324 rm -f conftest.defines conftest.undefs
7325 # Using a here document instead of a string reduces the quoting nightmare.
7326 # Putting comments in sed scripts is not portable.
7328 # `end' is used to avoid that the second main sed command (meant for
7329 # 0-ary CPP macros) applies to n-ary macro definitions.
7330 # See the Autoconf documentation for `clear'.
7331 cat >confdef2sed.sed <<\_ACEOF
7332 s/[\\&,]/\\&/g
7333 s,[\\$`],\\&,g
7334 t clear
7335 : clear
7336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7337 t end
7338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7339 : end
7340 _ACEOF
7341 # If some macros were called several times there might be several times
7342 # the same #defines, which is useless. Nevertheless, we may not want to
7343 # sort them, since we want the *last* AC-DEFINE to be honored.
7344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7346 rm -f confdef2sed.sed
7348 # This sed command replaces #undef with comments. This is necessary, for
7349 # example, in the case of _POSIX_SOURCE, which is predefined and required
7350 # on some systems where configure will not decide to define it.
7351 cat >>conftest.undefs <<\_ACEOF
7352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7353 _ACEOF
7355 # Break up conftest.defines because some shells have a limit on the size
7356 # of here documents, and old seds have small limits too (100 cmds).
7357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7358 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7360 echo ' :' >>$CONFIG_STATUS
7361 rm -f conftest.tail
7362 while grep . conftest.defines >/dev/null
7364 # Write a limited-size here document to $tmp/defines.sed.
7365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7366 # Speed up: don't consider the non `#define' lines.
7367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7368 # Work around the forget-to-reset-the-flag bug.
7369 echo 't clr' >>$CONFIG_STATUS
7370 echo ': clr' >>$CONFIG_STATUS
7371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7372 echo 'CEOF
7373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7374 rm -f $tmp/in
7375 mv $tmp/out $tmp/in
7376 ' >>$CONFIG_STATUS
7377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7378 rm -f conftest.defines
7379 mv conftest.tail conftest.defines
7380 done
7381 rm -f conftest.defines
7382 echo ' fi # grep' >>$CONFIG_STATUS
7383 echo >>$CONFIG_STATUS
7385 # Break up conftest.undefs because some shells have a limit on the size
7386 # of here documents, and old seds have small limits too (100 cmds).
7387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7388 rm -f conftest.tail
7389 while grep . conftest.undefs >/dev/null
7391 # Write a limited-size here document to $tmp/undefs.sed.
7392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7393 # Speed up: don't consider the non `#undef'
7394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7395 # Work around the forget-to-reset-the-flag bug.
7396 echo 't clr' >>$CONFIG_STATUS
7397 echo ': clr' >>$CONFIG_STATUS
7398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7399 echo 'CEOF
7400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7401 rm -f $tmp/in
7402 mv $tmp/out $tmp/in
7403 ' >>$CONFIG_STATUS
7404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7405 rm -f conftest.undefs
7406 mv conftest.tail conftest.undefs
7407 done
7408 rm -f conftest.undefs
7410 cat >>$CONFIG_STATUS <<\_ACEOF
7411 # Let's still pretend it is `configure' which instantiates (i.e., don't
7412 # use $as_me), people would be surprised to read:
7413 # /* config.h. Generated by config.status. */
7414 if test x"$ac_file" = x-; then
7415 echo "/* Generated by configure. */" >$tmp/config.h
7416 else
7417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7419 cat $tmp/in >>$tmp/config.h
7420 rm -f $tmp/in
7421 if test x"$ac_file" != x-; then
7422 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7424 echo "$as_me: $ac_file is unchanged" >&6;}
7425 else
7426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7428 X"$ac_file" : 'X\(//\)[^/]' \| \
7429 X"$ac_file" : 'X\(//\)$' \| \
7430 X"$ac_file" : 'X\(/\)' \| \
7431 . : '\(.\)' 2>/dev/null ||
7432 echo X"$ac_file" |
7433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7435 /^X\(\/\/\)$/{ s//\1/; q; }
7436 /^X\(\/\).*/{ s//\1/; q; }
7437 s/.*/./; q'`
7438 { if $as_mkdir_p; then
7439 mkdir -p "$ac_dir"
7440 else
7441 as_dir="$ac_dir"
7442 as_dirs=
7443 while test ! -d "$as_dir"; do
7444 as_dirs="$as_dir $as_dirs"
7445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7447 X"$as_dir" : 'X\(//\)[^/]' \| \
7448 X"$as_dir" : 'X\(//\)$' \| \
7449 X"$as_dir" : 'X\(/\)' \| \
7450 . : '\(.\)' 2>/dev/null ||
7451 echo X"$as_dir" |
7452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7454 /^X\(\/\/\)$/{ s//\1/; q; }
7455 /^X\(\/\).*/{ s//\1/; q; }
7456 s/.*/./; q'`
7457 done
7458 test ! -n "$as_dirs" || mkdir $as_dirs
7459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7461 { (exit 1); exit 1; }; }; }
7463 rm -f $ac_file
7464 mv $tmp/config.h $ac_file
7466 else
7467 cat $tmp/config.h
7468 rm -f $tmp/config.h
7470 done
7471 _ACEOF
7473 cat >>$CONFIG_STATUS <<\_ACEOF
7475 { (exit 0); exit 0; }
7476 _ACEOF
7477 chmod +x $CONFIG_STATUS
7478 ac_clean_files=$ac_clean_files_save
7481 # configure is writing to config.log, and then calls config.status.
7482 # config.status does its own redirection, appending to config.log.
7483 # Unfortunately, on DOS this fails, as config.log is still kept open
7484 # by configure, so config.status won't be able to write to it; its
7485 # output is simply discarded. So we exec the FD to /dev/null,
7486 # effectively closing config.log, so it can be properly (re)opened and
7487 # appended to by config.status. When coming back to configure, we
7488 # need to make the FD available again.
7489 if test "$no_create" != yes; then
7490 ac_cs_success=:
7491 ac_config_status_args=
7492 test "$silent" = yes &&
7493 ac_config_status_args="$ac_config_status_args --quiet"
7494 exec 5>/dev/null
7495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7496 exec 5>>config.log
7497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7498 # would make configure fail if this is the last instruction.
7499 $ac_cs_success || { (exit 1); exit 1; }
7503 # CONFIG_SUBDIRS section.
7505 if test "$no_recursion" != yes; then
7507 # Remove --cache-file and --srcdir arguments so they do not pile up.
7508 ac_sub_configure_args=
7509 ac_prev=
7510 for ac_arg in $ac_configure_args; do
7511 if test -n "$ac_prev"; then
7512 ac_prev=
7513 continue
7515 case $ac_arg in
7516 -cache-file | --cache-file | --cache-fil | --cache-fi \
7517 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7518 ac_prev=cache_file ;;
7519 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7520 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7521 | --c=*)
7523 --config-cache | -C)
7525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7526 ac_prev=srcdir ;;
7527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7529 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7530 ac_prev=prefix ;;
7531 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7533 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7534 esac
7535 done
7537 # Always prepend --prefix to ensure using the same prefix
7538 # in subdir configurations.
7539 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7541 ac_popdir=`pwd`
7542 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7544 # Do not complain, so a configure script can configure whichever
7545 # parts of a large source tree are present.
7546 test -d $srcdir/$ac_dir || continue
7548 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7549 echo "$as_me: configuring in $ac_dir" >&6;}
7550 { if $as_mkdir_p; then
7551 mkdir -p "$ac_dir"
7552 else
7553 as_dir="$ac_dir"
7554 as_dirs=
7555 while test ! -d "$as_dir"; do
7556 as_dirs="$as_dir $as_dirs"
7557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7559 X"$as_dir" : 'X\(//\)[^/]' \| \
7560 X"$as_dir" : 'X\(//\)$' \| \
7561 X"$as_dir" : 'X\(/\)' \| \
7562 . : '\(.\)' 2>/dev/null ||
7563 echo X"$as_dir" |
7564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7566 /^X\(\/\/\)$/{ s//\1/; q; }
7567 /^X\(\/\).*/{ s//\1/; q; }
7568 s/.*/./; q'`
7569 done
7570 test ! -n "$as_dirs" || mkdir $as_dirs
7571 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7573 { (exit 1); exit 1; }; }; }
7575 ac_builddir=.
7577 if test "$ac_dir" != .; then
7578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7579 # A "../" for each directory in $ac_dir_suffix.
7580 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7581 else
7582 ac_dir_suffix= ac_top_builddir=
7585 case $srcdir in
7586 .) # No --srcdir option. We are building in place.
7587 ac_srcdir=.
7588 if test -z "$ac_top_builddir"; then
7589 ac_top_srcdir=.
7590 else
7591 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7592 fi ;;
7593 [\\/]* | ?:[\\/]* ) # Absolute path.
7594 ac_srcdir=$srcdir$ac_dir_suffix;
7595 ac_top_srcdir=$srcdir ;;
7596 *) # Relative path.
7597 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7598 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7599 esac
7601 # Do not use `cd foo && pwd` to compute absolute paths, because
7602 # the directories may not exist.
7603 case `pwd` in
7604 .) ac_abs_builddir="$ac_dir";;
7606 case "$ac_dir" in
7607 .) ac_abs_builddir=`pwd`;;
7608 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7609 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7610 esac;;
7611 esac
7612 case $ac_abs_builddir in
7613 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7615 case ${ac_top_builddir}. in
7616 .) ac_abs_top_builddir=$ac_abs_builddir;;
7617 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7618 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7619 esac;;
7620 esac
7621 case $ac_abs_builddir in
7622 .) ac_abs_srcdir=$ac_srcdir;;
7624 case $ac_srcdir in
7625 .) ac_abs_srcdir=$ac_abs_builddir;;
7626 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7627 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7628 esac;;
7629 esac
7630 case $ac_abs_builddir in
7631 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7633 case $ac_top_srcdir in
7634 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7635 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7636 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7637 esac;;
7638 esac
7641 cd $ac_dir
7643 # Check for guested configure; otherwise get Cygnus style configure.
7644 if test -f $ac_srcdir/configure.gnu; then
7645 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7646 elif test -f $ac_srcdir/configure; then
7647 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7648 elif test -f $ac_srcdir/configure.in; then
7649 ac_sub_configure=$ac_configure
7650 else
7651 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7652 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7653 ac_sub_configure=
7656 # The recursion is here.
7657 if test -n "$ac_sub_configure"; then
7658 # Make the cache file name correct relative to the subdirectory.
7659 case $cache_file in
7660 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7661 *) # Relative path.
7662 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7663 esac
7665 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7666 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7667 # The eval makes quoting arguments work.
7668 eval $ac_sub_configure $ac_sub_configure_args \
7669 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7670 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7671 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7672 { (exit 1); exit 1; }; }
7675 cd $ac_popdir
7676 done