Fixed windows/unix compatibility issue.
[opal.git] / configure
blobea93f8069789341e35e8401e5c7efdfcca1244de
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="include/opal/manager.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subdirs_all="$ac_subdirs_all plugins"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OPALDIR INSTALLPREFIX LIBDIR PTLIB_CONFIG PWLIBDIR CPP EGREP SIZE16 SIZE32 OPAL_SYSTEM_SPEEX OPAL_HAVE_SPEEX_SPEEX_H OPAL_AUDIO OPAL_VIDEO OPAL_SIP OPAL_H323 OPAL_IAX2 OPAL_H224 OPAL_T38FAX H323_H460 OPAL_LID OPAL_IVR OPAL_SRTP HAS_LIBSRTP STDCCFLAGS ENDLDLIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXX_set=${CXX+set}
771 ac_env_CXX_value=$CXX
772 ac_cv_env_CXX_set=${CXX+set}
773 ac_cv_env_CXX_value=$CXX
774 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_env_CXXFLAGS_value=$CXXFLAGS
776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
784 # Report the --help message.
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
792 Usage: $0 [OPTION]... [VAR=VALUE]...
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
797 Defaults for the options are specified in brackets.
799 Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 _ACEOF
812 cat <<_ACEOF
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
824 For better control, use the options below.
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839 _ACEOF
841 cat <<\_ACEOF
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-versioncheck disable PWLib version check
853 --enable-localspeex use local version of Speex library rather than system version
854 --disable-audio disable audio codec support
855 --disable-video disable video codec support
856 --disable-sip disable SIP protocol support
857 --disable-h323 disable H.323 protocol support
858 --disable-iax disable IAX2 protocol support
859 --disable-h224 disable H.224 protocol support
860 --disable-t38 disable T.38 protocol support
861 --disable-h460 disable H.460
862 --disable-lid disable LID support
863 --disable-ivr disable IVR support
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 _ACEOF
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 else
894 ac_dir_suffix= ac_top_builddir=
897 case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 esac
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
915 case `pwd` in
916 .) ac_abs_builddir="$ac_dir";;
918 case "$ac_dir" in
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
936 case $ac_srcdir in
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 esac;;
950 esac
952 cd $ac_dir
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
955 echo
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
958 echo
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
962 echo
963 $ac_configure --help
964 else
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 cd $ac_popdir
968 done
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
973 cat <<\_ACEOF
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
989 $ $0 $@
991 _ACEOF
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 _ASUNAME
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1025 } >&5
1027 cat >&5 <<_ACEOF
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1034 _ACEOF
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1049 for ac_arg
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1096 echo
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 esac;
1119 echo
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1220 done
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1323 echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 else
1331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332 for as_dir in $PATH
1334 IFS=$as_save_IFS
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 break 2
1342 done
1343 done
1347 CC=$ac_cv_prog_CC
1348 if test -n "$CC"; then
1349 echo "$as_me:$LINENO: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1351 else
1352 echo "$as_me:$LINENO: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$ac_cv_prog_CC"; then
1358 ac_ct_CC=$CC
1359 # Extract the first word of "gcc", so it can be a program name with args.
1360 set dummy gcc; ac_word=$2
1361 echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 if test -n "$ac_ct_CC"; then
1367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1368 else
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 ac_cv_prog_ac_ct_CC="gcc"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 break 2
1380 done
1381 done
1385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1386 if test -n "$ac_ct_CC"; then
1387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1388 echo "${ECHO_T}$ac_ct_CC" >&6
1389 else
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1394 CC=$ac_ct_CC
1395 else
1396 CC="$ac_cv_prog_CC"
1399 if test -z "$CC"; then
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}cc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1422 done
1423 done
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1438 ac_ct_CC=$CC
1439 # Extract the first word of "cc", so it can be a program name with args.
1440 set dummy cc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="cc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1460 done
1461 done
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 CC=$ac_ct_CC
1475 else
1476 CC="$ac_cv_prog_CC"
1480 if test -z "$CC"; then
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 ac_prog_rejected=no
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1500 ac_prog_rejected=yes
1501 continue
1503 ac_cv_prog_CC="cc"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 break 2
1507 done
1508 done
1510 if test $ac_prog_rejected = yes; then
1511 # We found a bogon in the path, so make sure we never use it.
1512 set dummy $ac_cv_prog_CC
1513 shift
1514 if test $# != 0; then
1515 # We chose a different compiler from the bogus one.
1516 # However, it has the same basename, so the bogon will be chosen
1517 # first if we set CC to just the basename; use the full file name.
1518 shift
1519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1524 CC=$ac_cv_prog_CC
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 for ac_prog in cl
1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 break 2
1559 done
1560 done
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1573 test -n "$CC" && break
1574 done
1576 if test -z "$CC"; then
1577 ac_ct_CC=$CC
1578 for ac_prog in cl
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1601 done
1602 done
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1615 test -n "$ac_ct_CC" && break
1616 done
1618 CC=$ac_ct_CC
1624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1625 See \`config.log' for more details." >&5
1626 echo "$as_me: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details." >&2;}
1628 { (exit 1); exit 1; }; }
1630 # Provide some information about the compiler.
1631 echo "$as_me:$LINENO:" \
1632 "checking for C compiler version" >&5
1633 ac_compiler=`set X $ac_compile; echo $2`
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1635 (eval $ac_compiler --version </dev/null >&5) 2>&5
1636 ac_status=$?
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1640 (eval $ac_compiler -v </dev/null >&5) 2>&5
1641 ac_status=$?
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1645 (eval $ac_compiler -V </dev/null >&5) 2>&5
1646 ac_status=$?
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1650 cat >conftest.$ac_ext <<_ACEOF
1651 /* confdefs.h. */
1652 _ACEOF
1653 cat confdefs.h >>conftest.$ac_ext
1654 cat >>conftest.$ac_ext <<_ACEOF
1655 /* end confdefs.h. */
1658 main ()
1662 return 0;
1664 _ACEOF
1665 ac_clean_files_save=$ac_clean_files
1666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1667 # Try to create an executable without -o first, disregard a.out.
1668 # It will help us diagnose broken compilers, and finding out an intuition
1669 # of exeext.
1670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1674 (eval $ac_link_default) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }; then
1678 # Find the output, starting from the most likely. This scheme is
1679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1680 # resort.
1682 # Be careful to initialize this variable, since it used to be cached.
1683 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1684 ac_cv_exeext=
1685 # b.out is created by i960 compilers.
1686 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1688 test -f "$ac_file" || continue
1689 case $ac_file in
1690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1692 conftest.$ac_ext )
1693 # This is the source file.
1695 [ab].out )
1696 # We found the default executable, but exeext='' is most
1697 # certainly right.
1698 break;;
1699 *.* )
1700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool,
1702 # but it would be cool to find out if it's true. Does anybody
1703 # maintain Libtool? --akim.
1704 export ac_cv_exeext
1705 break;;
1707 break;;
1708 esac
1709 done
1710 else
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1715 See \`config.log' for more details." >&5
1716 echo "$as_me: error: C compiler cannot create executables
1717 See \`config.log' for more details." >&2;}
1718 { (exit 77); exit 77; }; }
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732 if { ac_try='./$ac_file'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1734 (eval $ac_try) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1738 cross_compiling=no
1739 else
1740 if test "$cross_compiling" = maybe; then
1741 cross_compiling=yes
1742 else
1743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'.
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1757 ac_clean_files=$ac_clean_files_save
1758 # Check the compiler produces executables we can run. If not, either
1759 # the compiler is broken, or we cross compile.
1760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1763 echo "${ECHO_T}$cross_compiling" >&6
1765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1768 (eval $ac_link) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1774 # work properly (i.e., refer to `conftest.exe'), while it won't with
1775 # `rm'.
1776 for ac_file in conftest.exe conftest conftest.*; do
1777 test -f "$ac_file" || continue
1778 case $ac_file in
1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785 done
1786 else
1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1794 rm -f conftest$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1796 echo "${ECHO_T}$ac_cv_exeext" >&6
1798 rm -f conftest.$ac_ext
1799 EXEEXT=$ac_cv_exeext
1800 ac_exeext=$EXEEXT
1801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1803 if test "${ac_cv_objext+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 cat >conftest.$ac_ext <<_ACEOF
1807 /* confdefs.h. */
1808 _ACEOF
1809 cat confdefs.h >>conftest.$ac_ext
1810 cat >>conftest.$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1814 main ()
1818 return 0;
1820 _ACEOF
1821 rm -f conftest.o conftest.obj
1822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1828 case $ac_file in
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1831 break;;
1832 esac
1833 done
1834 else
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT=$ac_cv_objext
1850 ac_objext=$OBJEXT
1851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h. */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1864 main ()
1866 #ifndef __GNUC__
1867 choke me
1868 #endif
1871 return 0;
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>conftest.er1
1877 ac_status=$?
1878 grep -v '^ *+' conftest.er1 >conftest.err
1879 rm -f conftest.er1
1880 cat conftest.err >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); } &&
1883 { ac_try='test -z "$ac_c_werror_flag"
1884 || test ! -s conftest.err'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 ac_compiler_gnu=yes
1897 else
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_compiler_gnu=no
1903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909 GCC=`test $ac_compiler_gnu = yes && echo yes`
1910 ac_test_CFLAGS=${CFLAGS+set}
1911 ac_save_CFLAGS=$CFLAGS
1912 CFLAGS="-g"
1913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915 if test "${ac_cv_prog_cc_g+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1926 main ()
1930 return 0;
1932 _ACEOF
1933 rm -f conftest.$ac_objext
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>conftest.er1
1936 ac_status=$?
1937 grep -v '^ *+' conftest.er1 >conftest.err
1938 rm -f conftest.er1
1939 cat conftest.err >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -z "$ac_c_werror_flag"
1943 || test ! -s conftest.err'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1955 ac_cv_prog_cc_g=yes
1956 else
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_cv_prog_cc_g=no
1962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 if test "$ac_test_CFLAGS" = set; then
1967 CFLAGS=$ac_save_CFLAGS
1968 elif test $ac_cv_prog_cc_g = yes; then
1969 if test "$GCC" = yes; then
1970 CFLAGS="-g -O2"
1971 else
1972 CFLAGS="-g"
1974 else
1975 if test "$GCC" = yes; then
1976 CFLAGS="-O2"
1977 else
1978 CFLAGS=
1981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 ac_cv_prog_cc_stdc=no
1987 ac_save_CC=$CC
1988 cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h. */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1994 #include <stdarg.h>
1995 #include <stdio.h>
1996 #include <sys/types.h>
1997 #include <sys/stat.h>
1998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 struct buf { int x; };
2000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 static char *e (p, i)
2002 char **p;
2003 int i;
2005 return p[i];
2007 static char *f (char * (*g) (char **, int), char **p, ...)
2009 char *s;
2010 va_list v;
2011 va_start (v,p);
2012 s = g (p, va_arg (v,int));
2013 va_end (v);
2014 return s;
2017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 function prototypes and stuff, but not '\xHH' hex character constants.
2019 These don't provoke an error unfortunately, instead are silently treated
2020 as 'x'. The following induces an error, until -std1 is added to get
2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 array size at least. It's necessary to write '\x00'==0 to get something
2023 that's true only with -std1. */
2024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2026 int test (int i, double x);
2027 struct s1 {int (*f) (int a);};
2028 struct s2 {int (*f) (double a);};
2029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2030 int argc;
2031 char **argv;
2033 main ()
2035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2037 return 0;
2039 _ACEOF
2040 # Don't try gcc -ansi; that turns off useful extensions and
2041 # breaks some systems' header files.
2042 # AIX -qlanglvl=ansi
2043 # Ultrix and OSF/1 -std1
2044 # HP-UX 10.20 and later -Ae
2045 # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 # SVR4 -Xc -D__EXTENSIONS__
2047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 CC="$ac_save_CC $ac_arg"
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_stdc=$ac_arg
2073 break
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2079 rm -f conftest.err conftest.$ac_objext
2080 done
2081 rm -f conftest.$ac_ext conftest.$ac_objext
2082 CC=$ac_save_CC
2086 case "x$ac_cv_prog_cc_stdc" in
2087 x|xno)
2088 echo "$as_me:$LINENO: result: none needed" >&5
2089 echo "${ECHO_T}none needed" >&6 ;;
2091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2093 CC="$CC $ac_cv_prog_cc_stdc" ;;
2094 esac
2096 # Some people use a C++ compiler to compile C. Since we use `exit',
2097 # in C++ we need to declare it. In case someone uses the same compiler
2098 # for both compiling C and C++ we need to have the C++ compiler decide
2099 # the declaration of exit, since it's the most demanding environment.
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #ifndef __cplusplus
2102 choke me
2103 #endif
2104 _ACEOF
2105 rm -f conftest.$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 for ac_declaration in \
2128 '' \
2129 'extern "C" void std::exit (int) throw (); using std::exit;' \
2130 'extern "C" void std::exit (int); using std::exit;' \
2131 'extern "C" void exit (int) throw ();' \
2132 'extern "C" void exit (int);' \
2133 'void exit (int);'
2135 cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h. */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2141 $ac_declaration
2142 #include <stdlib.h>
2144 main ()
2146 exit (42);
2148 return 0;
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2178 continue
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 $ac_declaration
2189 main ()
2191 exit (42);
2193 return 0;
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 break
2219 else
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226 rm -f conftest*
2227 if test -n "$ac_declaration"; then
2228 echo '#ifdef __cplusplus' >>confdefs.h
2229 echo $ac_declaration >>confdefs.h
2230 echo '#endif' >>confdefs.h
2233 else
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 ac_ext=cc
2246 ac_cpp='$CXXCPP $CPPFLAGS'
2247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2250 if test -n "$ac_tool_prefix"; then
2251 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CXX+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 if test -n "$CXX"; then
2261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2279 CXX=$ac_cv_prog_CXX
2280 if test -n "$CXX"; then
2281 echo "$as_me:$LINENO: result: $CXX" >&5
2282 echo "${ECHO_T}$CXX" >&6
2283 else
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2288 test -n "$CXX" && break
2289 done
2291 if test -z "$CXX"; then
2292 ac_ct_CXX=$CXX
2293 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2295 # Extract the first word of "$ac_prog", so it can be a program name with args.
2296 set dummy $ac_prog; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 if test -n "$ac_ct_CXX"; then
2303 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_ac_ct_CXX="$ac_prog"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 break 2
2316 done
2317 done
2321 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2322 if test -n "$ac_ct_CXX"; then
2323 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2324 echo "${ECHO_T}$ac_ct_CXX" >&6
2325 else
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2330 test -n "$ac_ct_CXX" && break
2331 done
2332 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2334 CXX=$ac_ct_CXX
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO:" \
2340 "checking for C++ compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2343 (eval $ac_compiler --version </dev/null >&5) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2348 (eval $ac_compiler -v </dev/null >&5) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2353 (eval $ac_compiler -V </dev/null >&5) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2360 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2371 main ()
2373 #ifndef __GNUC__
2374 choke me
2375 #endif
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_cxx_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_compiler_gnu=yes
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_compiler_gnu=no
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2416 GXX=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CXXFLAGS=${CXXFLAGS+set}
2418 ac_save_CXXFLAGS=$CXXFLAGS
2419 CXXFLAGS="-g"
2420 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2421 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cxx_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_cxx_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_cv_prog_cxx_g=yes
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 ac_cv_prog_cxx_g=no
2469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2473 if test "$ac_test_CXXFLAGS" = set; then
2474 CXXFLAGS=$ac_save_CXXFLAGS
2475 elif test $ac_cv_prog_cxx_g = yes; then
2476 if test "$GXX" = yes; then
2477 CXXFLAGS="-g -O2"
2478 else
2479 CXXFLAGS="-g"
2481 else
2482 if test "$GXX" = yes; then
2483 CXXFLAGS="-O2"
2484 else
2485 CXXFLAGS=
2488 for ac_declaration in \
2489 '' \
2490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2491 'extern "C" void std::exit (int); using std::exit;' \
2492 'extern "C" void exit (int) throw ();' \
2493 'extern "C" void exit (int);' \
2494 'void exit (int);'
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h. */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2502 $ac_declaration
2503 #include <stdlib.h>
2505 main ()
2507 exit (42);
2509 return 0;
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_cxx_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2539 continue
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548 $ac_declaration
2550 main ()
2552 exit (42);
2554 return 0;
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_cxx_werror_flag"
2567 || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 break
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 done
2587 rm -f conftest*
2588 if test -n "$ac_declaration"; then
2589 echo '#ifdef __cplusplus' >>confdefs.h
2590 echo $ac_declaration >>confdefs.h
2591 echo '#endif' >>confdefs.h
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 REQUIRED_PWLIB_MAJOR=1
2602 REQUIRED_PWLIB_MINOR=11
2603 REQUIRED_PWLIB_BUILD=0
2606 OPALDIR=`pwd`
2609 if test "x$prefix" = "xNONE"; then
2610 INSTALLPREFIX="/usr/local"
2611 else
2612 INSTALLPREFIX="${prefix}"
2617 LIBDIR="${libdir}"
2623 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2624 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2625 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2626 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
2627 cat >>confdefs.h <<_ACEOF
2628 #define OPAL_MAJOR ${MAJOR_VERSION}
2629 _ACEOF
2631 cat >>confdefs.h <<_ACEOF
2632 #define OPAL_MINOR ${MINOR_VERSION}
2633 _ACEOF
2635 cat >>confdefs.h <<_ACEOF
2636 #define OPAL_BUILD ${BUILD_NUMBER}
2637 _ACEOF
2639 cat >>confdefs.h <<_ACEOF
2640 #define OPAL_VERSION "$OPAL_VERSION"
2641 _ACEOF
2646 if test "${PWLIBDIR:-unset}" != "unset" ; then
2647 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
2648 echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
2649 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
2650 if eval "test \"\${$as_ac_File+set}\" = set"; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 test "$cross_compiling" = yes &&
2654 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2655 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2656 { (exit 1); exit 1; }; }
2657 if test -r "${PWLIBDIR}/version.h"; then
2658 eval "$as_ac_File=yes"
2659 else
2660 eval "$as_ac_File=no"
2663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2664 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2665 if test `eval echo '${'$as_ac_File'}'` = yes; then
2666 HAS_PTLIB=1
2670 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2671 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
2672 echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
2673 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6
2674 if eval "test \"\${$as_ac_File+set}\" = set"; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 test "$cross_compiling" = yes &&
2678 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2679 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2680 { (exit 1); exit 1; }; }
2681 if test -r "${OPALDIR}/../pwlib/version.h"; then
2682 eval "$as_ac_File=yes"
2683 else
2684 eval "$as_ac_File=no"
2687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2688 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2689 if test `eval echo '${'$as_ac_File'}'` = yes; then
2690 HAS_PTLIB=1
2693 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2694 PWLIBDIR="${OPALDIR}/../pwlib"
2695 else
2696 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
2697 echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
2698 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
2699 if eval "test \"\${$as_ac_File+set}\" = set"; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 test "$cross_compiling" = yes &&
2703 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2704 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2705 { (exit 1); exit 1; }; }
2706 if test -r "${HOME}/pwlib/include/ptlib.h"; then
2707 eval "$as_ac_File=yes"
2708 else
2709 eval "$as_ac_File=no"
2712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
2713 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
2714 if test `eval echo '${'$as_ac_File'}'` = yes; then
2715 HAS_PTLIB=1
2718 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2719 PWLIBDIR="${HOME}/pwlib"
2720 else
2721 echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
2722 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
2723 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 test "$cross_compiling" = yes &&
2727 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2728 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2729 { (exit 1); exit 1; }; }
2730 if test -r "/usr/local/include/ptlib.h"; then
2731 ac_cv_file__usr_local_include_ptlib_h=yes
2732 else
2733 ac_cv_file__usr_local_include_ptlib_h=no
2736 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
2737 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
2738 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
2739 HAS_PTLIB=1
2742 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2743 # Extract the first word of "ptlib-config", so it can be a program name with args.
2744 set dummy ptlib-config; ac_word=$2
2745 echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 case $PTLIB_CONFIG in
2751 [\\/]* | ?:[\\/]*)
2752 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in /usr/local/bin
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2766 done
2767 done
2770 esac
2772 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2774 if test -n "$PTLIB_CONFIG"; then
2775 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2776 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2782 else
2783 echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
2784 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
2785 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 test "$cross_compiling" = yes &&
2789 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2790 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2791 { (exit 1); exit 1; }; }
2792 if test -r "/usr/include/ptlib.h"; then
2793 ac_cv_file__usr_include_ptlib_h=yes
2794 else
2795 ac_cv_file__usr_include_ptlib_h=no
2798 echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
2799 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
2800 if test $ac_cv_file__usr_include_ptlib_h = yes; then
2801 HAS_PTLIB=1
2804 if test "${HAS_PTLIB:-unset}" != "unset" ; then
2805 # Extract the first word of "ptlib-config", so it can be a program name with args.
2806 set dummy ptlib-config; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 case $PTLIB_CONFIG in
2813 [\\/]* | ?:[\\/]*)
2814 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in /usr/share/pwlib/make/
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2832 esac
2834 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
2836 if test -n "$PTLIB_CONFIG"; then
2837 echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
2838 echo "${ECHO_T}$PTLIB_CONFIG" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2850 if test "${HAS_PTLIB:-unset}" = "unset" ; then
2851 echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
2852 exit
2855 if test "${PWLIBDIR:-unset}" = "unset" ; then
2856 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
2857 echo "Cannot find ptlib-config - please install and try again"
2858 exit
2860 PWLIBDIR=`$PTLIB_CONFIG --prefix`
2863 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
2864 PWLIBDIR="/usr/share/pwlib/"
2866 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
2867 PWLIBDIR="/usr/local/share/pwlib/"
2871 echo "PWLib prefix set to.... $PWLIBDIR"
2873 if test "${PWLIBDIR:-unset}" = "unset" ; then
2874 PWVERSION=`$PTLIB_CONFIG --version`
2875 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
2876 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
2877 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
2879 else
2880 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
2881 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
2882 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
2883 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
2886 # Check whether --enable-versioncheck or --disable-versioncheck was given.
2887 if test "${enable_versioncheck+set}" = set; then
2888 enableval="$enable_versioncheck"
2889 PWLIB_VERSION_CHECK=$enableval
2892 echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
2893 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6
2894 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
2895 echo "$as_me:$LINENO: result: check disabled" >&5
2896 echo "${ECHO_T}check disabled" >&6
2897 else
2898 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
2899 echo "$as_me:$LINENO: result: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
2900 echo "${ECHO_T}Major version less than required $REQUIRED_PWLIB_MAJOR" >&6
2901 exit 1
2903 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
2904 echo "$as_me:$LINENO: result: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
2905 echo "${ECHO_T}Minor version less than required $REQUIRED_PWLIB_MINOR" >&6
2906 exit 1
2908 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
2909 echo "$as_me:$LINENO: result: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
2910 echo "${ECHO_T}Build version less than required $REQUIRED_PWLIB_BUILD" >&6
2911 exit 1
2913 echo "$as_me:$LINENO: result: ok" >&5
2914 echo "${ECHO_T}ok" >&6
2920 if test x$GXX = xyes ; then
2921 USE_GCC=yes
2922 gcc_version=`$CXX -dumpversion`
2923 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
2924 echo "$as_me: gcc version is $gcc_version" >&6;};
2925 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
2926 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
2927 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
2929 echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
2930 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6
2931 if test ${GXX_MAJOR} -lt 3 ; then
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2934 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
2935 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
2936 { (exit 1); exit 1; }; }
2937 else
2938 echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6
2944 localspeex="xxx"
2945 # Check whether --enable-localspeex or --disable-localspeex was given.
2946 if test "${enable_localspeex+set}" = set; then
2947 enableval="$enable_localspeex"
2948 localspeex=$enableval
2952 ac_ext=c
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2958 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2959 # On Suns, sometimes $CPP names a directory.
2960 if test -n "$CPP" && test -d "$CPP"; then
2961 CPP=
2963 if test -z "$CPP"; then
2964 if test "${ac_cv_prog_CPP+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 # Double quotes because CPP needs to be expanded
2968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2970 ac_preproc_ok=false
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #ifdef __STDC__
2986 # include <limits.h>
2987 #else
2988 # include <assert.h>
2989 #endif
2990 Syntax error
2991 _ACEOF
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003 else
3004 ac_cpp_err=
3006 else
3007 ac_cpp_err=yes
3009 if test -z "$ac_cpp_err"; then
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Broken: fails on valid input.
3016 continue
3018 rm -f conftest.err conftest.$ac_ext
3020 # OK, works on sane cases. Now check whether non-existent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #include <ac_nonexistent.h>
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3044 else
3045 ac_cpp_err=yes
3047 if test -z "$ac_cpp_err"; then
3048 # Broken: success on invalid input.
3049 continue
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 # Passes both tests.
3055 ac_preproc_ok=:
3056 break
3058 rm -f conftest.err conftest.$ac_ext
3060 done
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3064 break
3067 done
3068 ac_cv_prog_CPP=$CPP
3071 CPP=$ac_cv_prog_CPP
3072 else
3073 ac_cv_prog_CPP=$CPP
3075 echo "$as_me:$LINENO: result: $CPP" >&5
3076 echo "${ECHO_T}$CPP" >&6
3077 ac_preproc_ok=false
3078 for ac_c_preproc_warn_flag in '' yes
3080 # Use a header file that comes with gcc, so configuring glibc
3081 # with a fresh cross-compiler works.
3082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3083 # <limits.h> exists even on freestanding compilers.
3084 # On the NeXT, cc -E runs the code through the compiler's parser,
3085 # not just through cpp. "Syntax error" is here to catch this case.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #ifdef __STDC__
3093 # include <limits.h>
3094 #else
3095 # include <assert.h>
3096 #endif
3097 Syntax error
3098 _ACEOF
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110 else
3111 ac_cpp_err=
3113 else
3114 ac_cpp_err=yes
3116 if test -z "$ac_cpp_err"; then
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 # Broken: fails on valid input.
3123 continue
3125 rm -f conftest.err conftest.$ac_ext
3127 # OK, works on sane cases. Now check whether non-existent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3136 _ACEOF
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148 else
3149 ac_cpp_err=
3151 else
3152 ac_cpp_err=yes
3154 if test -z "$ac_cpp_err"; then
3155 # Broken: success on invalid input.
3156 continue
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 # Passes both tests.
3162 ac_preproc_ok=:
3163 break
3165 rm -f conftest.err conftest.$ac_ext
3167 done
3168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3169 rm -f conftest.err conftest.$ac_ext
3170 if $ac_preproc_ok; then
3172 else
3173 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&2;}
3177 { (exit 1); exit 1; }; }
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 echo "$as_me:$LINENO: checking for egrep" >&5
3188 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3189 if test "${ac_cv_prog_egrep+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3193 then ac_cv_prog_egrep='grep -E'
3194 else ac_cv_prog_egrep='egrep'
3197 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3198 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3199 EGREP=$ac_cv_prog_egrep
3202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3204 if test "${ac_cv_header_stdc+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #include <stdlib.h>
3214 #include <stdarg.h>
3215 #include <string.h>
3216 #include <float.h>
3219 main ()
3223 return 0;
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_header_stdc=yes
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_cv_header_stdc=no
3255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 if test $ac_cv_header_stdc = yes; then
3258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #include <string.h>
3267 _ACEOF
3268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 $EGREP "memchr" >/dev/null 2>&1; then
3271 else
3272 ac_cv_header_stdc=no
3274 rm -f conftest*
3278 if test $ac_cv_header_stdc = yes; then
3279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h. */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #include <stdlib.h>
3288 _ACEOF
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 $EGREP "free" >/dev/null 2>&1; then
3292 else
3293 ac_cv_header_stdc=no
3295 rm -f conftest*
3299 if test $ac_cv_header_stdc = yes; then
3300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3301 if test "$cross_compiling" = yes; then
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 #include <ctype.h>
3311 #if ((' ' & 0x0FF) == 0x020)
3312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3314 #else
3315 # define ISLOWER(c) \
3316 (('a' <= (c) && (c) <= 'i') \
3317 || ('j' <= (c) && (c) <= 'r') \
3318 || ('s' <= (c) && (c) <= 'z'))
3319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3320 #endif
3322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3324 main ()
3326 int i;
3327 for (i = 0; i < 256; i++)
3328 if (XOR (islower (i), ISLOWER (i))
3329 || toupper (i) != TOUPPER (i))
3330 exit(2);
3331 exit (0);
3333 _ACEOF
3334 rm -f conftest$ac_exeext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3336 (eval $ac_link) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3346 else
3347 echo "$as_me: program exited with status $ac_status" >&5
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 ( exit $ac_status )
3352 ac_cv_header_stdc=no
3354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3360 if test $ac_cv_header_stdc = yes; then
3362 cat >>confdefs.h <<\_ACEOF
3363 #define STDC_HEADERS 1
3364 _ACEOF
3368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3379 inttypes.h stdint.h unistd.h
3381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3382 echo "$as_me:$LINENO: checking for $ac_header" >&5
3383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 $ac_includes_default
3395 #include <$ac_header>
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 eval "$as_ac_Header=yes"
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 eval "$as_ac_Header=no"
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3431 cat >>confdefs.h <<_ACEOF
3432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 _ACEOF
3437 done
3440 echo "$as_me:$LINENO: checking for short" >&5
3441 echo $ECHO_N "checking for short... $ECHO_C" >&6
3442 if test "${ac_cv_type_short+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 $ac_includes_default
3453 main ()
3455 if ((short *) 0)
3456 return 0;
3457 if (sizeof (short))
3458 return 0;
3460 return 0;
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_cv_type_short=yes
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 ac_cv_type_short=no
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3495 echo "${ECHO_T}$ac_cv_type_short" >&6
3497 echo "$as_me:$LINENO: checking size of short" >&5
3498 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3499 if test "${ac_cv_sizeof_short+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test "$ac_cv_type_short" = yes; then
3503 # The cast to unsigned long works around a bug in the HP C Compiler
3504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3506 # This bug is HP SR number 8606223364.
3507 if test "$cross_compiling" = yes; then
3508 # Depending upon the size, compute the lo and hi bounds.
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_includes_default
3517 main ()
3519 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3520 test_array [0] = 0
3523 return 0;
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 ac_lo=0 ac_mid=0
3549 while :; do
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 $ac_includes_default
3558 main ()
3560 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3561 test_array [0] = 0
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 ac_hi=$ac_mid; break
3590 else
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 ac_lo=`expr $ac_mid + 1`
3595 if test $ac_lo -le $ac_mid; then
3596 ac_lo= ac_hi=
3597 break
3599 ac_mid=`expr 2 '*' $ac_mid + 1`
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602 done
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 $ac_includes_default
3615 main ()
3617 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3618 test_array [0] = 0
3621 return 0;
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_hi=-1 ac_mid=-1
3647 while :; do
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3656 main ()
3658 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3659 test_array [0] = 0
3662 return 0;
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_c_werror_flag"
3675 || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 (eval $ac_try) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 ac_lo=$ac_mid; break
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 ac_hi=`expr '(' $ac_mid ')' - 1`
3693 if test $ac_mid -le $ac_hi; then
3694 ac_lo= ac_hi=
3695 break
3697 ac_mid=`expr 2 '*' $ac_mid`
3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700 done
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 ac_lo= ac_hi=
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 # Binary search between lo and hi bounds.
3711 while test "x$ac_lo" != "x$ac_hi"; do
3712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 $ac_includes_default
3721 main ()
3723 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3724 test_array [0] = 0
3727 return 0;
3729 _ACEOF
3730 rm -f conftest.$ac_objext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732 (eval $ac_compile) 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -z "$ac_c_werror_flag"
3740 || test ! -s conftest.err'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; } &&
3746 { ac_try='test -s conftest.$ac_objext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 ac_hi=$ac_mid
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_lo=`expr '(' $ac_mid ')' + 1`
3759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760 done
3761 case $ac_lo in
3762 ?*) ac_cv_sizeof_short=$ac_lo;;
3763 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: cannot compute sizeof (short), 77
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; } ;;
3768 esac
3769 else
3770 if test "$cross_compiling" = yes; then
3771 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3772 See \`config.log' for more details." >&5
3773 echo "$as_me: error: cannot run test program while cross compiling
3774 See \`config.log' for more details." >&2;}
3775 { (exit 1); exit 1; }; }
3776 else
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3784 long longval () { return (long) (sizeof (short)); }
3785 unsigned long ulongval () { return (long) (sizeof (short)); }
3786 #include <stdio.h>
3787 #include <stdlib.h>
3789 main ()
3792 FILE *f = fopen ("conftest.val", "w");
3793 if (! f)
3794 exit (1);
3795 if (((long) (sizeof (short))) < 0)
3797 long i = longval ();
3798 if (i != ((long) (sizeof (short))))
3799 exit (1);
3800 fprintf (f, "%ld\n", i);
3802 else
3804 unsigned long i = ulongval ();
3805 if (i != ((long) (sizeof (short))))
3806 exit (1);
3807 fprintf (f, "%lu\n", i);
3809 exit (ferror (f) || fclose (f) != 0);
3812 return 0;
3814 _ACEOF
3815 rm -f conftest$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_sizeof_short=`cat conftest.val`
3827 else
3828 echo "$as_me: program exited with status $ac_status" >&5
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ( exit $ac_status )
3833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3834 See \`config.log' for more details." >&5
3835 echo "$as_me: error: cannot compute sizeof (short), 77
3836 See \`config.log' for more details." >&2;}
3837 { (exit 1); exit 1; }; }
3839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3842 rm -f conftest.val
3843 else
3844 ac_cv_sizeof_short=0
3847 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3848 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3849 cat >>confdefs.h <<_ACEOF
3850 #define SIZEOF_SHORT $ac_cv_sizeof_short
3851 _ACEOF
3854 echo "$as_me:$LINENO: checking for int" >&5
3855 echo $ECHO_N "checking for int... $ECHO_C" >&6
3856 if test "${ac_cv_type_int+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
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 if ((int *) 0)
3870 return 0;
3871 if (sizeof (int))
3872 return 0;
3874 return 0;
3876 _ACEOF
3877 rm -f conftest.$ac_objext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag"
3887 || test ! -s conftest.err'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_type_int=yes
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 ac_cv_type_int=no
3906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3909 echo "${ECHO_T}$ac_cv_type_int" >&6
3911 echo "$as_me:$LINENO: checking size of int" >&5
3912 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3913 if test "${ac_cv_sizeof_int+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if test "$ac_cv_type_int" = yes; then
3917 # The cast to unsigned long works around a bug in the HP C Compiler
3918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3920 # This bug is HP SR number 8606223364.
3921 if test "$cross_compiling" = yes; then
3922 # Depending upon the size, compute the lo and hi bounds.
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
3931 main ()
3933 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3934 test_array [0] = 0
3937 return 0;
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942 (eval $ac_compile) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -z "$ac_c_werror_flag"
3950 || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_lo=0 ac_mid=0
3963 while :; do
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 $ac_includes_default
3972 main ()
3974 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3975 test_array [0] = 0
3978 return 0;
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_hi=$ac_mid; break
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 ac_lo=`expr $ac_mid + 1`
4009 if test $ac_lo -le $ac_mid; then
4010 ac_lo= ac_hi=
4011 break
4013 ac_mid=`expr 2 '*' $ac_mid + 1`
4015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4016 done
4017 else
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 $ac_includes_default
4029 main ()
4031 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4032 test_array [0] = 0
4035 return 0;
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_hi=-1 ac_mid=-1
4061 while :; do
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 main ()
4072 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4073 test_array [0] = 0
4076 return 0;
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_lo=$ac_mid; break
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ac_hi=`expr '(' $ac_mid ')' - 1`
4107 if test $ac_mid -le $ac_hi; then
4108 ac_lo= ac_hi=
4109 break
4111 ac_mid=`expr 2 '*' $ac_mid`
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 done
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_lo= ac_hi=
4121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 # Binary search between lo and hi bounds.
4125 while test "x$ac_lo" != "x$ac_hi"; do
4126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 $ac_includes_default
4135 main ()
4137 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4138 test_array [0] = 0
4141 return 0;
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_c_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_hi=$ac_mid
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_lo=`expr '(' $ac_mid ')' + 1`
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 done
4175 case $ac_lo in
4176 ?*) ac_cv_sizeof_int=$ac_lo;;
4177 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4178 See \`config.log' for more details." >&5
4179 echo "$as_me: error: cannot compute sizeof (int), 77
4180 See \`config.log' for more details." >&2;}
4181 { (exit 1); exit 1; }; } ;;
4182 esac
4183 else
4184 if test "$cross_compiling" = yes; then
4185 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4186 See \`config.log' for more details." >&5
4187 echo "$as_me: error: cannot run test program while cross compiling
4188 See \`config.log' for more details." >&2;}
4189 { (exit 1); exit 1; }; }
4190 else
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 $ac_includes_default
4198 long longval () { return (long) (sizeof (int)); }
4199 unsigned long ulongval () { return (long) (sizeof (int)); }
4200 #include <stdio.h>
4201 #include <stdlib.h>
4203 main ()
4206 FILE *f = fopen ("conftest.val", "w");
4207 if (! f)
4208 exit (1);
4209 if (((long) (sizeof (int))) < 0)
4211 long i = longval ();
4212 if (i != ((long) (sizeof (int))))
4213 exit (1);
4214 fprintf (f, "%ld\n", i);
4216 else
4218 unsigned long i = ulongval ();
4219 if (i != ((long) (sizeof (int))))
4220 exit (1);
4221 fprintf (f, "%lu\n", i);
4223 exit (ferror (f) || fclose (f) != 0);
4226 return 0;
4228 _ACEOF
4229 rm -f conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_sizeof_int=`cat conftest.val`
4241 else
4242 echo "$as_me: program exited with status $ac_status" >&5
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ( exit $ac_status )
4247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4248 See \`config.log' for more details." >&5
4249 echo "$as_me: error: cannot compute sizeof (int), 77
4250 See \`config.log' for more details." >&2;}
4251 { (exit 1); exit 1; }; }
4253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256 rm -f conftest.val
4257 else
4258 ac_cv_sizeof_int=0
4261 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4262 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4263 cat >>confdefs.h <<_ACEOF
4264 #define SIZEOF_INT $ac_cv_sizeof_int
4265 _ACEOF
4268 echo "$as_me:$LINENO: checking for long" >&5
4269 echo $ECHO_N "checking for long... $ECHO_C" >&6
4270 if test "${ac_cv_type_long+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
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 if ((long *) 0)
4284 return 0;
4285 if (sizeof (long))
4286 return 0;
4288 return 0;
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293 (eval $ac_compile) 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -z "$ac_c_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_cv_type_long=yes
4314 else
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ac_cv_type_long=no
4320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4323 echo "${ECHO_T}$ac_cv_type_long" >&6
4325 echo "$as_me:$LINENO: checking size of long" >&5
4326 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4327 if test "${ac_cv_sizeof_long+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 if test "$ac_cv_type_long" = yes; then
4331 # The cast to unsigned long works around a bug in the HP C Compiler
4332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4334 # This bug is HP SR number 8606223364.
4335 if test "$cross_compiling" = yes; then
4336 # Depending upon the size, compute the lo and hi bounds.
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
4345 main ()
4347 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4348 test_array [0] = 0
4351 return 0;
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_lo=0 ac_mid=0
4377 while :; do
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4386 main ()
4388 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4389 test_array [0] = 0
4392 return 0;
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>conftest.er1
4398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag"
4405 || test ! -s conftest.err'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_hi=$ac_mid; break
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 ac_lo=`expr $ac_mid + 1`
4423 if test $ac_lo -le $ac_mid; then
4424 ac_lo= ac_hi=
4425 break
4427 ac_mid=`expr 2 '*' $ac_mid + 1`
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 done
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 $ac_includes_default
4443 main ()
4445 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4446 test_array [0] = 0
4449 return 0;
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_hi=-1 ac_mid=-1
4475 while :; do
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 $ac_includes_default
4484 main ()
4486 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4487 test_array [0] = 0
4490 return 0;
4492 _ACEOF
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>conftest.er1
4496 ac_status=$?
4497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_lo=$ac_mid; break
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ac_hi=`expr '(' $ac_mid ')' - 1`
4521 if test $ac_mid -le $ac_hi; then
4522 ac_lo= ac_hi=
4523 break
4525 ac_mid=`expr 2 '*' $ac_mid`
4527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528 done
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 ac_lo= ac_hi=
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 # Binary search between lo and hi bounds.
4539 while test "x$ac_lo" != "x$ac_hi"; do
4540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h. */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4547 $ac_includes_default
4549 main ()
4551 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4552 test_array [0] = 0
4555 return 0;
4557 _ACEOF
4558 rm -f conftest.$ac_objext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag"
4568 || test ! -s conftest.err'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_hi=$ac_mid
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ac_lo=`expr '(' $ac_mid ')' + 1`
4587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588 done
4589 case $ac_lo in
4590 ?*) ac_cv_sizeof_long=$ac_lo;;
4591 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4592 See \`config.log' for more details." >&5
4593 echo "$as_me: error: cannot compute sizeof (long), 77
4594 See \`config.log' for more details." >&2;}
4595 { (exit 1); exit 1; }; } ;;
4596 esac
4597 else
4598 if test "$cross_compiling" = yes; then
4599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run test program while cross compiling
4602 See \`config.log' for more details." >&2;}
4603 { (exit 1); exit 1; }; }
4604 else
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4612 long longval () { return (long) (sizeof (long)); }
4613 unsigned long ulongval () { return (long) (sizeof (long)); }
4614 #include <stdio.h>
4615 #include <stdlib.h>
4617 main ()
4620 FILE *f = fopen ("conftest.val", "w");
4621 if (! f)
4622 exit (1);
4623 if (((long) (sizeof (long))) < 0)
4625 long i = longval ();
4626 if (i != ((long) (sizeof (long))))
4627 exit (1);
4628 fprintf (f, "%ld\n", i);
4630 else
4632 unsigned long i = ulongval ();
4633 if (i != ((long) (sizeof (long))))
4634 exit (1);
4635 fprintf (f, "%lu\n", i);
4637 exit (ferror (f) || fclose (f) != 0);
4640 return 0;
4642 _ACEOF
4643 rm -f conftest$ac_exeext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645 (eval $ac_link) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 ac_cv_sizeof_long=`cat conftest.val`
4655 else
4656 echo "$as_me: program exited with status $ac_status" >&5
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 ( exit $ac_status )
4661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4662 See \`config.log' for more details." >&5
4663 echo "$as_me: error: cannot compute sizeof (long), 77
4664 See \`config.log' for more details." >&2;}
4665 { (exit 1); exit 1; }; }
4667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 rm -f conftest.val
4671 else
4672 ac_cv_sizeof_long=0
4675 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4676 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4677 cat >>confdefs.h <<_ACEOF
4678 #define SIZEOF_LONG $ac_cv_sizeof_long
4679 _ACEOF
4682 echo "$as_me:$LINENO: checking for long long" >&5
4683 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4684 if test "${ac_cv_type_long_long+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
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 if ((long long *) 0)
4698 return 0;
4699 if (sizeof (long long))
4700 return 0;
4702 return 0;
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_type_long_long=yes
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 ac_cv_type_long_long=no
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4737 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4739 echo "$as_me:$LINENO: checking size of long long" >&5
4740 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4741 if test "${ac_cv_sizeof_long_long+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 if test "$ac_cv_type_long_long" = yes; then
4745 # The cast to unsigned long works around a bug in the HP C Compiler
4746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4748 # This bug is HP SR number 8606223364.
4749 if test "$cross_compiling" = yes; then
4750 # Depending upon the size, compute the lo and hi bounds.
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
4759 main ()
4761 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
4762 test_array [0] = 0
4765 return 0;
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_lo=0 ac_mid=0
4791 while :; do
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h. */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 $ac_includes_default
4800 main ()
4802 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4803 test_array [0] = 0
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_hi=$ac_mid; break
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 ac_lo=`expr $ac_mid + 1`
4837 if test $ac_lo -le $ac_mid; then
4838 ac_lo= ac_hi=
4839 break
4841 ac_mid=`expr 2 '*' $ac_mid + 1`
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 done
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4857 main ()
4859 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4860 test_array [0] = 0
4863 return 0;
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_hi=-1 ac_mid=-1
4889 while :; do
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_includes_default
4898 main ()
4900 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4901 test_array [0] = 0
4904 return 0;
4906 _ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_lo=$ac_mid; break
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 ac_hi=`expr '(' $ac_mid ')' - 1`
4935 if test $ac_mid -le $ac_hi; then
4936 ac_lo= ac_hi=
4937 break
4939 ac_mid=`expr 2 '*' $ac_mid`
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 done
4943 else
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_lo= ac_hi=
4949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 # Binary search between lo and hi bounds.
4953 while test "x$ac_lo" != "x$ac_hi"; do
4954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 $ac_includes_default
4963 main ()
4965 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4966 test_array [0] = 0
4969 return 0;
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_hi=$ac_mid
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_lo=`expr '(' $ac_mid ')' + 1`
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 done
5003 case $ac_lo in
5004 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5005 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5006 See \`config.log' for more details." >&5
5007 echo "$as_me: error: cannot compute sizeof (long long), 77
5008 See \`config.log' for more details." >&2;}
5009 { (exit 1); exit 1; }; } ;;
5010 esac
5011 else
5012 if test "$cross_compiling" = yes; then
5013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5014 See \`config.log' for more details." >&5
5015 echo "$as_me: error: cannot run test program while cross compiling
5016 See \`config.log' for more details." >&2;}
5017 { (exit 1); exit 1; }; }
5018 else
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 long longval () { return (long) (sizeof (long long)); }
5027 unsigned long ulongval () { return (long) (sizeof (long long)); }
5028 #include <stdio.h>
5029 #include <stdlib.h>
5031 main ()
5034 FILE *f = fopen ("conftest.val", "w");
5035 if (! f)
5036 exit (1);
5037 if (((long) (sizeof (long long))) < 0)
5039 long i = longval ();
5040 if (i != ((long) (sizeof (long long))))
5041 exit (1);
5042 fprintf (f, "%ld\n", i);
5044 else
5046 unsigned long i = ulongval ();
5047 if (i != ((long) (sizeof (long long))))
5048 exit (1);
5049 fprintf (f, "%lu\n", i);
5051 exit (ferror (f) || fclose (f) != 0);
5054 return 0;
5056 _ACEOF
5057 rm -f conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_sizeof_long_long=`cat conftest.val`
5069 else
5070 echo "$as_me: program exited with status $ac_status" >&5
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ( exit $ac_status )
5075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5076 See \`config.log' for more details." >&5
5077 echo "$as_me: error: cannot compute sizeof (long long), 77
5078 See \`config.log' for more details." >&2;}
5079 { (exit 1); exit 1; }; }
5081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5084 rm -f conftest.val
5085 else
5086 ac_cv_sizeof_long_long=0
5089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5090 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5091 cat >>confdefs.h <<_ACEOF
5092 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5093 _ACEOF
5097 case 2 in
5098 $ac_cv_sizeof_short) SIZE16="short";;
5099 $ac_cv_sizeof_int) SIZE16="int";;
5100 esac
5102 case 4 in
5103 $ac_cv_sizeof_int) SIZE32="int";;
5104 $ac_cv_sizeof_long) SIZE32="long";;
5105 $ac_cv_sizeof_short) SIZE32="short";;
5106 esac
5111 OPAL_HAVE_SPEEX_H=
5112 OPAL_HAVE_SPEEX_SPEEX_H=
5114 for ac_header in "speex.h"
5116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118 echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5125 else
5126 # Is the header compilable?
5127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 $ac_includes_default
5136 #include <$ac_header>
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -z "$ac_c_werror_flag"
5148 || test ! -s conftest.err'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_header_compiler=yes
5161 else
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 ac_header_compiler=no
5167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169 echo "${ECHO_T}$ac_header_compiler" >&6
5171 # Is the header present?
5172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #include <$ac_header>
5181 _ACEOF
5182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } >/dev/null; then
5190 if test -s conftest.err; then
5191 ac_cpp_err=$ac_c_preproc_warn_flag
5192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5193 else
5194 ac_cpp_err=
5196 else
5197 ac_cpp_err=yes
5199 if test -z "$ac_cpp_err"; then
5200 ac_header_preproc=yes
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_header_preproc=no
5207 rm -f conftest.err conftest.$ac_ext
5208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5209 echo "${ECHO_T}$ac_header_preproc" >&6
5211 # So? What about this header?
5212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213 yes:no: )
5214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5218 ac_header_preproc=yes
5220 no:yes:* )
5221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5234 cat <<\_ASBOX
5235 ## ------------------------------------------ ##
5236 ## Report this to the AC_PACKAGE_NAME lists. ##
5237 ## ------------------------------------------ ##
5238 _ASBOX
5240 sed "s/^/$as_me: WARNING: /" >&2
5242 esac
5243 echo "$as_me:$LINENO: checking for $ac_header" >&5
5244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 eval "$as_ac_Header=\$ac_header_preproc"
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5255 cat >>confdefs.h <<_ACEOF
5256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5257 _ACEOF
5258 OPAL_HAVE_SPEEX_H=1
5261 done
5263 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5264 cat >>confdefs.h <<\_ACEOF
5265 #define OPAL_HAVE_SPEEX_H 1
5266 _ACEOF
5268 else
5270 for ac_header in "speex/speex.h"
5272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274 echo "$as_me:$LINENO: checking for $ac_header" >&5
5275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5281 else
5282 # Is the header compilable?
5283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 $ac_includes_default
5292 #include <$ac_header>
5293 _ACEOF
5294 rm -f conftest.$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag"
5304 || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_header_compiler=yes
5317 else
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 ac_header_compiler=no
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5325 echo "${ECHO_T}$ac_header_compiler" >&6
5327 # Is the header present?
5328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #include <$ac_header>
5337 _ACEOF
5338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } >/dev/null; then
5346 if test -s conftest.err; then
5347 ac_cpp_err=$ac_c_preproc_warn_flag
5348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5349 else
5350 ac_cpp_err=
5352 else
5353 ac_cpp_err=yes
5355 if test -z "$ac_cpp_err"; then
5356 ac_header_preproc=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_header_preproc=no
5363 rm -f conftest.err conftest.$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5365 echo "${ECHO_T}$ac_header_preproc" >&6
5367 # So? What about this header?
5368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5369 yes:no: )
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5374 ac_header_preproc=yes
5376 no:yes:* )
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5390 cat <<\_ASBOX
5391 ## ------------------------------------------ ##
5392 ## Report this to the AC_PACKAGE_NAME lists. ##
5393 ## ------------------------------------------ ##
5394 _ASBOX
5396 sed "s/^/$as_me: WARNING: /" >&2
5398 esac
5399 echo "$as_me:$LINENO: checking for $ac_header" >&5
5400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 eval "$as_ac_Header=\$ac_header_preproc"
5406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 _ACEOF
5414 OPAL_HAVE_SPEEX_SPEEX_H=1
5417 done
5419 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
5420 cat >>confdefs.h <<\_ACEOF
5421 #define OPAL_HAVE_SPEEX_SPEEX_H 1
5422 _ACEOF
5427 if test "${localspeex}" = "yes" ; then
5428 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
5429 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
5430 elif test "${localspeex}" = "no" ; then
5431 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
5432 echo "$as_me: Forcing use of system Speex library" >&6;}
5433 cat >>confdefs.h <<\_ACEOF
5434 #define OPAL_SYSTEM_SPEEX 1
5435 _ACEOF
5437 OPAL_SYSTEM_SPEEX=1
5439 else
5440 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
5441 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
5442 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 ac_check_lib_save_LIBS=$LIBS
5446 LIBS="-lspeex $LIBS"
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5454 /* Override any gcc2 internal prototype to avoid an error. */
5455 #ifdef __cplusplus
5456 extern "C"
5457 #endif
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5460 char speex_encoder_destroy ();
5462 main ()
5464 speex_encoder_destroy ();
5466 return 0;
5468 _ACEOF
5469 rm -f conftest.$ac_objext conftest$ac_exeext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_lib_speex_speex_encoder_destroy=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_lib_speex_speex_encoder_destroy=no
5498 rm -f conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5502 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
5503 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
5504 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
5505 SPEEX=1
5508 if test "${SPEEX}x" != "x" ; then
5509 echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
5510 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6
5511 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 ac_check_lib_save_LIBS=$LIBS
5515 LIBS="-lspeex $LIBS"
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 #ifdef __cplusplus
5525 extern "C"
5526 #endif
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5529 char speex_encode_int ();
5531 main ()
5533 speex_encode_int ();
5535 return 0;
5537 _ACEOF
5538 rm -f conftest.$ac_objext conftest$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag"
5548 || test ! -s conftest.err'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; } &&
5554 { ac_try='test -s conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 ac_cv_lib_speex_speex_encode_int=yes
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 ac_cv_lib_speex_speex_encode_int=no
5567 rm -f conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 LIBS=$ac_check_lib_save_LIBS
5571 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
5572 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6
5573 if test $ac_cv_lib_speex_speex_encode_int = yes; then
5574 SPEEX=1
5575 else
5576 unset SPEEX
5580 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
5581 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
5582 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
5583 else
5584 echo "$as_me:$LINENO: checking system Speex version" >&5
5585 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
5586 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5587 echo "#include <speex.h>" > t.c
5588 echo "#include <speex_header.h>" >> t.c
5589 else
5590 echo "#include <speex/speex.h>" > t.c
5591 echo "#include <speex/speex_header.h>" >> t.c
5593 cat >> t.c <<C_FILE
5594 #include <stdio.h>
5595 int main(int argc,char *argv)
5597 SpeexHeader header;
5598 speex_init_header(&header, 1, 1, &speex_nb_mode);
5599 printf("%s\n", header.speex_version);
5601 C_FILE
5602 cc -o t t.c -lspeex > /dev/null 2>&1
5603 if test \! -x t ; then
5604 echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
5605 echo "${ECHO_T}cannot determine - using OPAL version" >&6
5606 else
5607 SYSVER=`./t`
5608 echo "$as_me:$LINENO: result: $SYSVER" >&5
5609 echo "${ECHO_T}$SYSVER" >&6
5610 echo "$as_me:$LINENO: checking library Speex version" >&5
5611 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
5612 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
5613 echo "$as_me:$LINENO: result: $LIBVER" >&5
5614 echo "${ECHO_T}$LIBVER" >&6
5615 echo "$as_me:$LINENO: checking Speex versions" >&5
5616 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
5617 cat > t.pl <<P_FILE
5619 \$sysver = @ARGV[0];
5620 \$libver = @ARGV[1];
5621 @lib = split /\./, \$libver;
5622 while (@lib < 3) {
5623 @lib[0+@lib] = "0";
5625 @sys = split /\./, \$sysver;
5626 while (@sys < 3) {
5627 @sys[0+@sys] = "0";
5629 \$i = 0;
5630 while (\$i < 3) {
5631 if (@sys[\$i] < @lib[\$i]) {
5632 print "0";
5633 die;
5635 \$i++;
5637 print "1";
5639 P_FILE
5640 SPEEX=`perl t.pl $SYSVER $LIBVER`
5641 rm t.pl
5642 if test "x$SPEEX" = "x0" ; then
5643 echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
5644 echo "${ECHO_T}OPAL version is more recent" >&6
5645 else
5646 echo "$as_me:$LINENO: result: system version is more recent" >&5
5647 echo "${ECHO_T}system version is more recent" >&6
5648 cat >>confdefs.h <<\_ACEOF
5649 #define OPAL_SYSTEM_SPEEX 1
5650 _ACEOF
5652 OPAL_SYSTEM_SPEEX=1
5654 echo "$as_me:$LINENO: checking Speex noise type" >&5
5655 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6
5656 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5657 echo "#include <speex.h>" > t.c
5658 echo "#include <speex_preprocess.h>" >> t.c
5659 else
5660 echo "#include <speex/speex.h>" > t.c
5661 echo "#include <speex/speex_preprocess.h>" >> t.c
5663 cat >> t.c <<C_FILE
5664 #include <stdio.h>
5665 int main(int argc,char *argv)
5667 struct SpeexPreprocessState *st;
5668 spx_int16_t *x;
5669 float *echo;
5670 speex_preprocess(st, x, echo);
5672 C_FILE
5673 rm -f t
5674 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
5675 if test \! -x t ; then
5676 echo "$as_me:$LINENO: result: spx_int32_t" >&5
5677 echo "${ECHO_T}spx_int32_t" >&6
5678 else
5679 echo "$as_me:$LINENO: result: float" >&5
5680 echo "${ECHO_T}float" >&6
5681 cat >>confdefs.h <<\_ACEOF
5682 #define OPAL_SPEEX_FLOAT_NOISE 1
5683 _ACEOF
5688 rm -f t t.c
5696 audio=yes
5697 # Check whether --enable-audio or --disable-audio was given.
5698 if test "${enable_audio+set}" = set; then
5699 enableval="$enable_audio"
5700 audio=$enableval
5702 echo "$as_me:$LINENO: checking audio codec support" >&5
5703 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6
5704 if test "$audio" = "yes" ; then
5705 OPAL_AUDIO=1
5707 cat >>confdefs.h <<\_ACEOF
5708 #define OPAL_AUDIO 1
5709 _ACEOF
5711 echo "$as_me:$LINENO: result: enabled" >&5
5712 echo "${ECHO_T}enabled" >&6
5713 else
5714 echo "$as_me:$LINENO: result: disabled" >&5
5715 echo "${ECHO_T}disabled" >&6
5720 video=yes
5721 # Check whether --enable-video or --disable-video was given.
5722 if test "${enable_video+set}" = set; then
5723 enableval="$enable_video"
5724 video=$enableval
5726 echo "$as_me:$LINENO: checking video device support" >&5
5727 echo $ECHO_N "checking video device support... $ECHO_C" >&6
5728 if test "$video" = "yes" ; then
5729 OPAL_VIDEO=1
5731 cat >>confdefs.h <<\_ACEOF
5732 #define OPAL_VIDEO 1
5733 _ACEOF
5735 echo "$as_me:$LINENO: result: enabled" >&5
5736 echo "${ECHO_T}enabled" >&6
5737 else
5738 echo "$as_me:$LINENO: result: disabled" >&5
5739 echo "${ECHO_T}disabled" >&6
5744 sip=yes
5745 # Check whether --enable-sip or --disable-sip was given.
5746 if test "${enable_sip+set}" = set; then
5747 enableval="$enable_sip"
5748 sip=$enableval
5750 echo "$as_me:$LINENO: checking SIP protocol" >&5
5751 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6
5752 if test "$sip" = "yes" ; then
5753 OPAL_SIP=1
5755 cat >>confdefs.h <<\_ACEOF
5756 #define OPAL_SIP 1
5757 _ACEOF
5759 echo "$as_me:$LINENO: result: enabled" >&5
5760 echo "${ECHO_T}enabled" >&6
5761 else
5762 echo "$as_me:$LINENO: result: disabled" >&5
5763 echo "${ECHO_T}disabled" >&6
5768 h323=yes
5769 t38=yes
5770 h224=yes
5771 h460=yes
5772 # Check whether --enable-h323 or --disable-h323 was given.
5773 if test "${enable_h323+set}" = set; then
5774 enableval="$enable_h323"
5775 h323=$enableval
5777 echo "$as_me:$LINENO: checking H.323 protocol" >&5
5778 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6
5779 if test "$h323" = "yes" ; then
5780 OPAL_H323=1
5782 cat >>confdefs.h <<\_ACEOF
5783 #define OPAL_H323 1
5784 _ACEOF
5786 echo "$as_me:$LINENO: result: enabled" >&5
5787 echo "${ECHO_T}enabled" >&6
5788 else
5789 OPAL_H323=0
5791 echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
5792 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6
5793 t38=no
5794 h224=no
5795 h460=no
5797 OPAL_H323=$OPAL_H323
5802 iax=yes
5803 # Check whether --enable-iax or --disable-iax was given.
5804 if test "${enable_iax+set}" = set; then
5805 enableval="$enable_iax"
5806 iax=$enableval
5808 echo "$as_me:$LINENO: checking IAX2 protocol" >&5
5809 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6
5810 if test "$iax" = "yes" ; then
5811 OPAL_IAX2=1
5813 cat >>confdefs.h <<\_ACEOF
5814 #define OPAL_IAX2 1
5815 _ACEOF
5817 echo "$as_me:$LINENO: result: enabled" >&5
5818 echo "${ECHO_T}enabled" >&6
5819 else
5820 echo "$as_me:$LINENO: result: disabled" >&5
5821 echo "${ECHO_T}disabled" >&6
5825 # Check whether --enable-h224 or --disable-h224 was given.
5826 if test "${enable_h224+set}" = set; then
5827 enableval="$enable_h224"
5828 h224=$enableval
5830 echo "$as_me:$LINENO: checking H224 protocol" >&5
5831 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6
5832 if test "$h224" = "yes" ; then
5833 OPAL_H224=1
5835 cat >>confdefs.h <<\_ACEOF
5836 #define OPAL_H224 1
5837 _ACEOF
5839 echo "$as_me:$LINENO: result: enabled" >&5
5840 echo "${ECHO_T}enabled" >&6
5841 else
5842 echo "$as_me:$LINENO: result: disabled" >&5
5843 echo "${ECHO_T}disabled" >&6
5848 if test "$t38" = "yes" ; then
5849 # Check whether --enable-t38 or --disable-t38 was given.
5850 if test "${enable_t38+set}" = set; then
5851 enableval="$enable_t38"
5852 t38=$enableval
5854 echo "$as_me:$LINENO: checking T.38 protocol" >&5
5855 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6
5856 if test "$t38" = "yes" ; then
5857 OPAL_T38FAX=1
5859 cat >>confdefs.h <<\_ACEOF
5860 #define OPAL_T38FAX 1
5861 _ACEOF
5863 echo "$as_me:$LINENO: result: enabled" >&5
5864 echo "${ECHO_T}enabled" >&6
5865 else
5866 echo "$as_me:$LINENO: result: disabled" >&5
5867 echo "${ECHO_T}disabled" >&6
5874 H323_460=
5875 if test "$h460" = "yes" ; then
5876 # Check whether --enable-h460 or --disable-h460 was given.
5877 if test "${enable_h460+set}" = set; then
5878 enableval="$enable_h460"
5879 h460=$enableval
5881 echo "$as_me:$LINENO: checking H.460 support" >&5
5882 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6
5883 if test "$h460" = "yes" ; then
5884 H323_H460=1
5886 cat >>confdefs.h <<\_ACEOF
5887 #define H323_H460 1
5888 _ACEOF
5890 echo "$as_me:$LINENO: result: enabled" >&5
5891 echo "${ECHO_T}enabled" >&6
5892 else
5893 echo "$as_me:$LINENO: result: disabled" >&5
5894 echo "${ECHO_T}disabled" >&6
5901 OPAL_LID=
5902 lid=yes
5903 if test "$lid" = "yes" ; then
5904 # Check whether --enable-lid or --disable-lid was given.
5905 if test "${enable_lid+set}" = set; then
5906 enableval="$enable_lid"
5907 lid=$enableval
5909 echo "$as_me:$LINENO: checking LID support" >&5
5910 echo $ECHO_N "checking LID support... $ECHO_C" >&6
5911 if test "$lid" = "yes" ; then
5912 cat >>confdefs.h <<\_ACEOF
5913 #define OPAL_LID 1
5914 _ACEOF
5916 OPAL_LID=1
5917 echo "$as_me:$LINENO: result: enabled" >&5
5918 echo "${ECHO_T}enabled" >&6
5919 else
5920 echo "$as_me:$LINENO: result: disabled" >&5
5921 echo "${ECHO_T}disabled" >&6
5928 OPAL_ivr=
5929 ivr=yes
5930 if test "$ivr" = "yes" ; then
5931 # Check whether --enable-ivr or --disable-ivr was given.
5932 if test "${enable_ivr+set}" = set; then
5933 enableval="$enable_ivr"
5934 ivr=$enableval
5936 echo "$as_me:$LINENO: checking IVR support" >&5
5937 echo $ECHO_N "checking IVR support... $ECHO_C" >&6
5938 if test "$ivr" = "yes" ; then
5939 cat >>confdefs.h <<\_ACEOF
5940 #define OPAL_IVR 1
5941 _ACEOF
5943 OPAL_IVR=1
5944 echo "$as_me:$LINENO: result: enabled" >&5
5945 echo "${ECHO_T}enabled" >&6
5946 else
5947 echo "$as_me:$LINENO: result: disabled" >&5
5948 echo "${ECHO_T}disabled" >&6
5956 HAS_LIBSRTP=
5957 echo "$as_me:$LINENO: checking for libSRTP" >&5
5958 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #include "srtp/srtp.h"
5967 main ()
5969 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 HAS_LIBSRTP=1
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003 if test "${HAS_LIBSRTP}" = "1" ; then
6004 echo "$as_me:$LINENO: result: yes" >&5
6005 echo "${ECHO_T}yes" >&6
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAS_LIBSRTP 1
6008 _ACEOF
6010 HAS_LIBSRTP=1
6011 OPAL_SRTP=1
6012 else
6013 echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6024 ac_aux_dir=
6025 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6026 if test -f $ac_dir/install-sh; then
6027 ac_aux_dir=$ac_dir
6028 ac_install_sh="$ac_aux_dir/install-sh -c"
6029 break
6030 elif test -f $ac_dir/install.sh; then
6031 ac_aux_dir=$ac_dir
6032 ac_install_sh="$ac_aux_dir/install.sh -c"
6033 break
6034 elif test -f $ac_dir/shtool; then
6035 ac_aux_dir=$ac_dir
6036 ac_install_sh="$ac_aux_dir/shtool install -c"
6037 break
6039 done
6040 if test -z "$ac_aux_dir"; then
6041 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6042 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6043 { (exit 1); exit 1; }; }
6045 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6046 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6047 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6049 # Find a good install program. We prefer a C program (faster),
6050 # so one script is as good as another. But avoid the broken or
6051 # incompatible versions:
6052 # SysV /etc/install, /usr/sbin/install
6053 # SunOS /usr/etc/install
6054 # IRIX /sbin/install
6055 # AIX /bin/install
6056 # AmigaOS /C/install, which installs bootblocks on floppy discs
6057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6060 # OS/2's system install, which has a completely different semantic
6061 # ./install, which can be erroneously created by make from ./install.sh.
6062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6064 if test -z "$INSTALL"; then
6065 if test "${ac_cv_path_install+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 # Account for people who put trailing slashes in PATH elements.
6074 case $as_dir/ in
6075 ./ | .// | /cC/* | \
6076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6078 /usr/ucb/* ) ;;
6080 # OSF1 and SCO ODT 3.0 have their own names for install.
6081 # Don't use installbsd from OSF since it installs stuff as root
6082 # by default.
6083 for ac_prog in ginstall scoinst install; do
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6086 if test $ac_prog = install &&
6087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6088 # AIX install. It has an incompatible calling convention.
6090 elif test $ac_prog = install &&
6091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6092 # program-specific install script used by HP pwplus--don't use.
6094 else
6095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6096 break 3
6099 done
6100 done
6102 esac
6103 done
6107 if test "${ac_cv_path_install+set}" = set; then
6108 INSTALL=$ac_cv_path_install
6109 else
6110 # As a last resort, use the slow shell script. We don't cache a
6111 # path for INSTALL within a source directory, because that will
6112 # break other packages using the cache if that directory is
6113 # removed, or if the path is relative.
6114 INSTALL=$ac_install_sh
6117 echo "$as_me:$LINENO: result: $INSTALL" >&5
6118 echo "${ECHO_T}$INSTALL" >&6
6120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6121 # It thinks the first close brace ends the variable substitution.
6122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6132 subdirs="$subdirs plugins"
6136 ac_config_files="$ac_config_files opal_inc.mak"
6138 ac_config_files="$ac_config_files Makefile"
6140 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6143 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6144 cat >confcache <<\_ACEOF
6145 # This file is a shell script that caches the results of configure
6146 # tests run on this system so they can be shared between configure
6147 # scripts and configure runs, see configure's option --config-cache.
6148 # It is not useful on other systems. If it contains results you don't
6149 # want to keep, you may remove or edit it.
6151 # config.status only pays attention to the cache file if you give it
6152 # the --recheck option to rerun configure.
6154 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6155 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6156 # following values.
6158 _ACEOF
6160 # The following way of writing the cache mishandles newlines in values,
6161 # but we know of no workaround that is simple, portable, and efficient.
6162 # So, don't put newlines in cache variables' values.
6163 # Ultrix sh set writes to stderr and can't be redirected directly,
6164 # and sets the high bit in the cache file unless we assign to the vars.
6166 (set) 2>&1 |
6167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6168 *ac_space=\ *)
6169 # `set' does not quote correctly, so add quotes (double-quote
6170 # substitution turns \\\\ into \\, and sed turns \\ into \).
6171 sed -n \
6172 "s/'/'\\\\''/g;
6173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6176 # `set' quotes correctly as required by POSIX, so do not add quotes.
6177 sed -n \
6178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6180 esac;
6182 sed '
6183 t clear
6184 : clear
6185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6186 t end
6187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6188 : end' >>confcache
6189 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6190 if test -w $cache_file; then
6191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6192 cat confcache >$cache_file
6193 else
6194 echo "not updating unwritable cache $cache_file"
6197 rm -f confcache
6199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6200 # Let make expand exec_prefix.
6201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6205 # trailing colons and then remove the whole line if VPATH becomes empty
6206 # (actually we leave an empty line to preserve line numbers).
6207 if test "x$srcdir" = x.; then
6208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6209 s/:*\$(srcdir):*/:/;
6210 s/:*\${srcdir}:*/:/;
6211 s/:*@srcdir@:*/:/;
6212 s/^\([^=]*=[ ]*\):*/\1/;
6213 s/:*$//;
6214 s/^[^=]*=[ ]*$//;
6218 DEFS=-DHAVE_CONFIG_H
6220 ac_libobjs=
6221 ac_ltlibobjs=
6222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6223 # 1. Remove the extension, and $U if already installed.
6224 ac_i=`echo "$ac_i" |
6225 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6226 # 2. Add them.
6227 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6228 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6229 done
6230 LIBOBJS=$ac_libobjs
6232 LTLIBOBJS=$ac_ltlibobjs
6236 : ${CONFIG_STATUS=./config.status}
6237 ac_clean_files_save=$ac_clean_files
6238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6239 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6240 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6241 cat >$CONFIG_STATUS <<_ACEOF
6242 #! $SHELL
6243 # Generated by $as_me.
6244 # Run this file to recreate the current configuration.
6245 # Compiler output produced by configure, useful for debugging
6246 # configure, is in config.log if it exists.
6248 debug=false
6249 ac_cs_recheck=false
6250 ac_cs_silent=false
6251 SHELL=\${CONFIG_SHELL-$SHELL}
6252 _ACEOF
6254 cat >>$CONFIG_STATUS <<\_ACEOF
6255 ## --------------------- ##
6256 ## M4sh Initialization. ##
6257 ## --------------------- ##
6259 # Be Bourne compatible
6260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6261 emulate sh
6262 NULLCMD=:
6263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6264 # is contrary to our usage. Disable this feature.
6265 alias -g '${1+"$@"}'='"$@"'
6266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6267 set -o posix
6269 DUALCASE=1; export DUALCASE # for MKS sh
6271 # Support unset when possible.
6272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6273 as_unset=unset
6274 else
6275 as_unset=false
6279 # Work around bugs in pre-3.0 UWIN ksh.
6280 $as_unset ENV MAIL MAILPATH
6281 PS1='$ '
6282 PS2='> '
6283 PS4='+ '
6285 # NLS nuisances.
6286 for as_var in \
6287 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6288 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6289 LC_TELEPHONE LC_TIME
6291 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6292 eval $as_var=C; export $as_var
6293 else
6294 $as_unset $as_var
6296 done
6298 # Required to use basename.
6299 if expr a : '\(a\)' >/dev/null 2>&1; then
6300 as_expr=expr
6301 else
6302 as_expr=false
6305 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6306 as_basename=basename
6307 else
6308 as_basename=false
6312 # Name of the executable.
6313 as_me=`$as_basename "$0" ||
6314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6315 X"$0" : 'X\(//\)$' \| \
6316 X"$0" : 'X\(/\)$' \| \
6317 . : '\(.\)' 2>/dev/null ||
6318 echo X/"$0" |
6319 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6320 /^X\/\(\/\/\)$/{ s//\1/; q; }
6321 /^X\/\(\/\).*/{ s//\1/; q; }
6322 s/.*/./; q'`
6325 # PATH needs CR, and LINENO needs CR and PATH.
6326 # Avoid depending upon Character Ranges.
6327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6330 as_cr_digits='0123456789'
6331 as_cr_alnum=$as_cr_Letters$as_cr_digits
6333 # The user is always right.
6334 if test "${PATH_SEPARATOR+set}" != set; then
6335 echo "#! /bin/sh" >conf$$.sh
6336 echo "exit 0" >>conf$$.sh
6337 chmod +x conf$$.sh
6338 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6339 PATH_SEPARATOR=';'
6340 else
6341 PATH_SEPARATOR=:
6343 rm -f conf$$.sh
6347 as_lineno_1=$LINENO
6348 as_lineno_2=$LINENO
6349 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6350 test "x$as_lineno_1" != "x$as_lineno_2" &&
6351 test "x$as_lineno_3" = "x$as_lineno_2" || {
6352 # Find who we are. Look in the path if we contain no path at all
6353 # relative or not.
6354 case $0 in
6355 *[\\/]* ) as_myself=$0 ;;
6356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6362 done
6365 esac
6366 # We did not find ourselves, most probably we were run as `sh COMMAND'
6367 # in which case we are not to be found in the path.
6368 if test "x$as_myself" = x; then
6369 as_myself=$0
6371 if test ! -f "$as_myself"; then
6372 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6373 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6374 { (exit 1); exit 1; }; }
6376 case $CONFIG_SHELL in
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for as_base in sh bash ksh sh5; do
6384 case $as_dir in
6386 if ("$as_dir/$as_base" -c '
6387 as_lineno_1=$LINENO
6388 as_lineno_2=$LINENO
6389 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6390 test "x$as_lineno_1" != "x$as_lineno_2" &&
6391 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6392 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6393 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6394 CONFIG_SHELL=$as_dir/$as_base
6395 export CONFIG_SHELL
6396 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6397 fi;;
6398 esac
6399 done
6400 done
6402 esac
6404 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6405 # uniformly replaced by the line number. The first 'sed' inserts a
6406 # line-number line before each line; the second 'sed' does the real
6407 # work. The second script uses 'N' to pair each line-number line
6408 # with the numbered line, and appends trailing '-' during
6409 # substitution so that $LINENO is not a special case at line end.
6410 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6411 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6412 sed '=' <$as_myself |
6413 sed '
6415 s,$,-,
6416 : loop
6417 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6418 t loop
6419 s,-$,,
6420 s,^['$as_cr_digits']*\n,,
6421 ' >$as_me.lineno &&
6422 chmod +x $as_me.lineno ||
6423 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6424 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6425 { (exit 1); exit 1; }; }
6427 # Don't try to exec as it changes $[0], causing all sort of problems
6428 # (the dirname of $[0] is not the place where we might find the
6429 # original and so on. Autoconf is especially sensible to this).
6430 . ./$as_me.lineno
6431 # Exit status is that of the last command.
6432 exit
6436 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6437 *c*,-n*) ECHO_N= ECHO_C='
6438 ' ECHO_T=' ' ;;
6439 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6440 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6441 esac
6443 if expr a : '\(a\)' >/dev/null 2>&1; then
6444 as_expr=expr
6445 else
6446 as_expr=false
6449 rm -f conf$$ conf$$.exe conf$$.file
6450 echo >conf$$.file
6451 if ln -s conf$$.file conf$$ 2>/dev/null; then
6452 # We could just check for DJGPP; but this test a) works b) is more generic
6453 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6454 if test -f conf$$.exe; then
6455 # Don't use ln at all; we don't have any links
6456 as_ln_s='cp -p'
6457 else
6458 as_ln_s='ln -s'
6460 elif ln conf$$.file conf$$ 2>/dev/null; then
6461 as_ln_s=ln
6462 else
6463 as_ln_s='cp -p'
6465 rm -f conf$$ conf$$.exe conf$$.file
6467 if mkdir -p . 2>/dev/null; then
6468 as_mkdir_p=:
6469 else
6470 test -d ./-p && rmdir ./-p
6471 as_mkdir_p=false
6474 as_executable_p="test -f"
6476 # Sed expression to map a string onto a valid CPP name.
6477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6479 # Sed expression to map a string onto a valid variable name.
6480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6483 # IFS
6484 # We need space, tab and new line, in precisely that order.
6485 as_nl='
6487 IFS=" $as_nl"
6489 # CDPATH.
6490 $as_unset CDPATH
6492 exec 6>&1
6494 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6495 # report actual input values of CONFIG_FILES etc. instead of their
6496 # values after options handling. Logging --version etc. is OK.
6497 exec 5>>config.log
6499 echo
6500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6501 ## Running $as_me. ##
6502 _ASBOX
6503 } >&5
6504 cat >&5 <<_CSEOF
6506 This file was extended by $as_me, which was
6507 generated by GNU Autoconf 2.59. Invocation command line was
6509 CONFIG_FILES = $CONFIG_FILES
6510 CONFIG_HEADERS = $CONFIG_HEADERS
6511 CONFIG_LINKS = $CONFIG_LINKS
6512 CONFIG_COMMANDS = $CONFIG_COMMANDS
6513 $ $0 $@
6515 _CSEOF
6516 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6517 echo >&5
6518 _ACEOF
6520 # Files that config.status was made for.
6521 if test -n "$ac_config_files"; then
6522 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6525 if test -n "$ac_config_headers"; then
6526 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6529 if test -n "$ac_config_links"; then
6530 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6533 if test -n "$ac_config_commands"; then
6534 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6537 cat >>$CONFIG_STATUS <<\_ACEOF
6539 ac_cs_usage="\
6540 \`$as_me' instantiates files from templates according to the
6541 current configuration.
6543 Usage: $0 [OPTIONS] [FILE]...
6545 -h, --help print this help, then exit
6546 -V, --version print version number, then exit
6547 -q, --quiet do not print progress messages
6548 -d, --debug don't remove temporary files
6549 --recheck update $as_me by reconfiguring in the same conditions
6550 --file=FILE[:TEMPLATE]
6551 instantiate the configuration file FILE
6552 --header=FILE[:TEMPLATE]
6553 instantiate the configuration header FILE
6555 Configuration files:
6556 $config_files
6558 Configuration headers:
6559 $config_headers
6561 Report bugs to <bug-autoconf@gnu.org>."
6562 _ACEOF
6564 cat >>$CONFIG_STATUS <<_ACEOF
6565 ac_cs_version="\\
6566 config.status
6567 configured by $0, generated by GNU Autoconf 2.59,
6568 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6570 Copyright (C) 2003 Free Software Foundation, Inc.
6571 This config.status script is free software; the Free Software Foundation
6572 gives unlimited permission to copy, distribute and modify it."
6573 srcdir=$srcdir
6574 INSTALL="$INSTALL"
6575 _ACEOF
6577 cat >>$CONFIG_STATUS <<\_ACEOF
6578 # If no file are specified by the user, then we need to provide default
6579 # value. By we need to know if files were specified by the user.
6580 ac_need_defaults=:
6581 while test $# != 0
6583 case $1 in
6584 --*=*)
6585 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6586 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6587 ac_shift=:
6590 ac_option=$1
6591 ac_optarg=$2
6592 ac_shift=shift
6594 *) # This is not an option, so the user has probably given explicit
6595 # arguments.
6596 ac_option=$1
6597 ac_need_defaults=false;;
6598 esac
6600 case $ac_option in
6601 # Handling of the options.
6602 _ACEOF
6603 cat >>$CONFIG_STATUS <<\_ACEOF
6604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6605 ac_cs_recheck=: ;;
6606 --version | --vers* | -V )
6607 echo "$ac_cs_version"; exit 0 ;;
6608 --he | --h)
6609 # Conflict between --help and --header
6610 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6611 Try \`$0 --help' for more information." >&5
6612 echo "$as_me: error: ambiguous option: $1
6613 Try \`$0 --help' for more information." >&2;}
6614 { (exit 1); exit 1; }; };;
6615 --help | --hel | -h )
6616 echo "$ac_cs_usage"; exit 0 ;;
6617 --debug | --d* | -d )
6618 debug=: ;;
6619 --file | --fil | --fi | --f )
6620 $ac_shift
6621 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6622 ac_need_defaults=false;;
6623 --header | --heade | --head | --hea )
6624 $ac_shift
6625 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6626 ac_need_defaults=false;;
6627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6628 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6629 ac_cs_silent=: ;;
6631 # This is an error.
6632 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6633 Try \`$0 --help' for more information." >&5
6634 echo "$as_me: error: unrecognized option: $1
6635 Try \`$0 --help' for more information." >&2;}
6636 { (exit 1); exit 1; }; } ;;
6638 *) ac_config_targets="$ac_config_targets $1" ;;
6640 esac
6641 shift
6642 done
6644 ac_configure_extra_args=
6646 if $ac_cs_silent; then
6647 exec 6>/dev/null
6648 ac_configure_extra_args="$ac_configure_extra_args --silent"
6651 _ACEOF
6652 cat >>$CONFIG_STATUS <<_ACEOF
6653 if \$ac_cs_recheck; then
6654 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6655 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6658 _ACEOF
6664 cat >>$CONFIG_STATUS <<\_ACEOF
6665 for ac_config_target in $ac_config_targets
6667 case "$ac_config_target" in
6668 # Handling of arguments.
6669 "opal_inc.mak" ) CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
6670 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6671 "src/codec/speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
6672 "include/opal/buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
6673 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6674 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6675 { (exit 1); exit 1; }; };;
6676 esac
6677 done
6679 # If the user did not use the arguments to specify the items to instantiate,
6680 # then the envvar interface is used. Set only those that are not.
6681 # We use the long form for the default assignment because of an extremely
6682 # bizarre bug on SunOS 4.1.3.
6683 if $ac_need_defaults; then
6684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6688 # Have a temporary directory for convenience. Make it in the build tree
6689 # simply because there is no reason to put it here, and in addition,
6690 # creating and moving files from /tmp can sometimes cause problems.
6691 # Create a temporary directory, and hook for its removal unless debugging.
6692 $debug ||
6694 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6695 trap '{ (exit 1); exit 1; }' 1 2 13 15
6698 # Create a (secure) tmp directory for tmp files.
6701 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6702 test -n "$tmp" && test -d "$tmp"
6703 } ||
6705 tmp=./confstat$$-$RANDOM
6706 (umask 077 && mkdir $tmp)
6707 } ||
6709 echo "$me: cannot create a temporary directory in ." >&2
6710 { (exit 1); exit 1; }
6713 _ACEOF
6715 cat >>$CONFIG_STATUS <<_ACEOF
6718 # CONFIG_FILES section.
6721 # No need to generate the scripts if there are no CONFIG_FILES.
6722 # This happens for instance when ./config.status config.h
6723 if test -n "\$CONFIG_FILES"; then
6724 # Protect against being on the right side of a sed subst in config.status.
6725 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6726 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6727 s,@SHELL@,$SHELL,;t t
6728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6734 s,@exec_prefix@,$exec_prefix,;t t
6735 s,@prefix@,$prefix,;t t
6736 s,@program_transform_name@,$program_transform_name,;t t
6737 s,@bindir@,$bindir,;t t
6738 s,@sbindir@,$sbindir,;t t
6739 s,@libexecdir@,$libexecdir,;t t
6740 s,@datadir@,$datadir,;t t
6741 s,@sysconfdir@,$sysconfdir,;t t
6742 s,@sharedstatedir@,$sharedstatedir,;t t
6743 s,@localstatedir@,$localstatedir,;t t
6744 s,@libdir@,$libdir,;t t
6745 s,@includedir@,$includedir,;t t
6746 s,@oldincludedir@,$oldincludedir,;t t
6747 s,@infodir@,$infodir,;t t
6748 s,@mandir@,$mandir,;t t
6749 s,@build_alias@,$build_alias,;t t
6750 s,@host_alias@,$host_alias,;t t
6751 s,@target_alias@,$target_alias,;t t
6752 s,@DEFS@,$DEFS,;t t
6753 s,@ECHO_C@,$ECHO_C,;t t
6754 s,@ECHO_N@,$ECHO_N,;t t
6755 s,@ECHO_T@,$ECHO_T,;t t
6756 s,@LIBS@,$LIBS,;t t
6757 s,@CC@,$CC,;t t
6758 s,@CFLAGS@,$CFLAGS,;t t
6759 s,@LDFLAGS@,$LDFLAGS,;t t
6760 s,@CPPFLAGS@,$CPPFLAGS,;t t
6761 s,@ac_ct_CC@,$ac_ct_CC,;t t
6762 s,@EXEEXT@,$EXEEXT,;t t
6763 s,@OBJEXT@,$OBJEXT,;t t
6764 s,@CXX@,$CXX,;t t
6765 s,@CXXFLAGS@,$CXXFLAGS,;t t
6766 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6767 s,@OPALDIR@,$OPALDIR,;t t
6768 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6769 s,@LIBDIR@,$LIBDIR,;t t
6770 s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
6771 s,@PWLIBDIR@,$PWLIBDIR,;t t
6772 s,@CPP@,$CPP,;t t
6773 s,@EGREP@,$EGREP,;t t
6774 s,@SIZE16@,$SIZE16,;t t
6775 s,@SIZE32@,$SIZE32,;t t
6776 s,@OPAL_SYSTEM_SPEEX@,$OPAL_SYSTEM_SPEEX,;t t
6777 s,@OPAL_HAVE_SPEEX_SPEEX_H@,$OPAL_HAVE_SPEEX_SPEEX_H,;t t
6778 s,@OPAL_AUDIO@,$OPAL_AUDIO,;t t
6779 s,@OPAL_VIDEO@,$OPAL_VIDEO,;t t
6780 s,@OPAL_SIP@,$OPAL_SIP,;t t
6781 s,@OPAL_H323@,$OPAL_H323,;t t
6782 s,@OPAL_IAX2@,$OPAL_IAX2,;t t
6783 s,@OPAL_H224@,$OPAL_H224,;t t
6784 s,@OPAL_T38FAX@,$OPAL_T38FAX,;t t
6785 s,@H323_H460@,$H323_H460,;t t
6786 s,@OPAL_LID@,$OPAL_LID,;t t
6787 s,@OPAL_IVR@,$OPAL_IVR,;t t
6788 s,@OPAL_SRTP@,$OPAL_SRTP,;t t
6789 s,@HAS_LIBSRTP@,$HAS_LIBSRTP,;t t
6790 s,@STDCCFLAGS@,$STDCCFLAGS,;t t
6791 s,@ENDLDLIBS@,$ENDLDLIBS,;t t
6792 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6793 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6794 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6795 s,@subdirs@,$subdirs,;t t
6796 s,@LIBOBJS@,$LIBOBJS,;t t
6797 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6798 CEOF
6800 _ACEOF
6802 cat >>$CONFIG_STATUS <<\_ACEOF
6803 # Split the substitutions into bite-sized pieces for seds with
6804 # small command number limits, like on Digital OSF/1 and HP-UX.
6805 ac_max_sed_lines=48
6806 ac_sed_frag=1 # Number of current file.
6807 ac_beg=1 # First line for current file.
6808 ac_end=$ac_max_sed_lines # Line after last line for current file.
6809 ac_more_lines=:
6810 ac_sed_cmds=
6811 while $ac_more_lines; do
6812 if test $ac_beg -gt 1; then
6813 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6814 else
6815 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6817 if test ! -s $tmp/subs.frag; then
6818 ac_more_lines=false
6819 else
6820 # The purpose of the label and of the branching condition is to
6821 # speed up the sed processing (if there are no `@' at all, there
6822 # is no need to browse any of the substitutions).
6823 # These are the two extra sed commands mentioned above.
6824 (echo ':t
6825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6826 if test -z "$ac_sed_cmds"; then
6827 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6828 else
6829 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6831 ac_sed_frag=`expr $ac_sed_frag + 1`
6832 ac_beg=$ac_end
6833 ac_end=`expr $ac_end + $ac_max_sed_lines`
6835 done
6836 if test -z "$ac_sed_cmds"; then
6837 ac_sed_cmds=cat
6839 fi # test -n "$CONFIG_FILES"
6841 _ACEOF
6842 cat >>$CONFIG_STATUS <<\_ACEOF
6843 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6844 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6845 case $ac_file in
6846 - | *:- | *:-:* ) # input from stdin
6847 cat >$tmp/stdin
6848 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6849 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6850 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6852 * ) ac_file_in=$ac_file.in ;;
6853 esac
6855 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6858 X"$ac_file" : 'X\(//\)[^/]' \| \
6859 X"$ac_file" : 'X\(//\)$' \| \
6860 X"$ac_file" : 'X\(/\)' \| \
6861 . : '\(.\)' 2>/dev/null ||
6862 echo X"$ac_file" |
6863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6865 /^X\(\/\/\)$/{ s//\1/; q; }
6866 /^X\(\/\).*/{ s//\1/; q; }
6867 s/.*/./; q'`
6868 { if $as_mkdir_p; then
6869 mkdir -p "$ac_dir"
6870 else
6871 as_dir="$ac_dir"
6872 as_dirs=
6873 while test ! -d "$as_dir"; do
6874 as_dirs="$as_dir $as_dirs"
6875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6877 X"$as_dir" : 'X\(//\)[^/]' \| \
6878 X"$as_dir" : 'X\(//\)$' \| \
6879 X"$as_dir" : 'X\(/\)' \| \
6880 . : '\(.\)' 2>/dev/null ||
6881 echo X"$as_dir" |
6882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6884 /^X\(\/\/\)$/{ s//\1/; q; }
6885 /^X\(\/\).*/{ s//\1/; q; }
6886 s/.*/./; q'`
6887 done
6888 test ! -n "$as_dirs" || mkdir $as_dirs
6889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6891 { (exit 1); exit 1; }; }; }
6893 ac_builddir=.
6895 if test "$ac_dir" != .; then
6896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6897 # A "../" for each directory in $ac_dir_suffix.
6898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6899 else
6900 ac_dir_suffix= ac_top_builddir=
6903 case $srcdir in
6904 .) # No --srcdir option. We are building in place.
6905 ac_srcdir=.
6906 if test -z "$ac_top_builddir"; then
6907 ac_top_srcdir=.
6908 else
6909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6910 fi ;;
6911 [\\/]* | ?:[\\/]* ) # Absolute path.
6912 ac_srcdir=$srcdir$ac_dir_suffix;
6913 ac_top_srcdir=$srcdir ;;
6914 *) # Relative path.
6915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6917 esac
6919 # Do not use `cd foo && pwd` to compute absolute paths, because
6920 # the directories may not exist.
6921 case `pwd` in
6922 .) ac_abs_builddir="$ac_dir";;
6924 case "$ac_dir" in
6925 .) ac_abs_builddir=`pwd`;;
6926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6928 esac;;
6929 esac
6930 case $ac_abs_builddir in
6931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6933 case ${ac_top_builddir}. in
6934 .) ac_abs_top_builddir=$ac_abs_builddir;;
6935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6937 esac;;
6938 esac
6939 case $ac_abs_builddir in
6940 .) ac_abs_srcdir=$ac_srcdir;;
6942 case $ac_srcdir in
6943 .) ac_abs_srcdir=$ac_abs_builddir;;
6944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6946 esac;;
6947 esac
6948 case $ac_abs_builddir in
6949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6951 case $ac_top_srcdir in
6952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6955 esac;;
6956 esac
6959 case $INSTALL in
6960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6961 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6962 esac
6964 if test x"$ac_file" != x-; then
6965 { echo "$as_me:$LINENO: creating $ac_file" >&5
6966 echo "$as_me: creating $ac_file" >&6;}
6967 rm -f "$ac_file"
6969 # Let's still pretend it is `configure' which instantiates (i.e., don't
6970 # use $as_me), people would be surprised to read:
6971 # /* config.h. Generated by config.status. */
6972 if test x"$ac_file" = x-; then
6973 configure_input=
6974 else
6975 configure_input="$ac_file. "
6977 configure_input=$configure_input"Generated from `echo $ac_file_in |
6978 sed 's,.*/,,'` by configure."
6980 # First look for the input files in the build tree, otherwise in the
6981 # src tree.
6982 ac_file_inputs=`IFS=:
6983 for f in $ac_file_in; do
6984 case $f in
6985 -) echo $tmp/stdin ;;
6986 [\\/$]*)
6987 # Absolute (can't be DOS-style, as IFS=:)
6988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6989 echo "$as_me: error: cannot find input file: $f" >&2;}
6990 { (exit 1); exit 1; }; }
6991 echo "$f";;
6992 *) # Relative
6993 if test -f "$f"; then
6994 # Build tree
6995 echo "$f"
6996 elif test -f "$srcdir/$f"; then
6997 # Source tree
6998 echo "$srcdir/$f"
6999 else
7000 # /dev/null tree
7001 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7002 echo "$as_me: error: cannot find input file: $f" >&2;}
7003 { (exit 1); exit 1; }; }
7004 fi;;
7005 esac
7006 done` || { (exit 1); exit 1; }
7007 _ACEOF
7008 cat >>$CONFIG_STATUS <<_ACEOF
7009 sed "$ac_vpsub
7010 $extrasub
7011 _ACEOF
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7015 s,@configure_input@,$configure_input,;t t
7016 s,@srcdir@,$ac_srcdir,;t t
7017 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7018 s,@top_srcdir@,$ac_top_srcdir,;t t
7019 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7020 s,@builddir@,$ac_builddir,;t t
7021 s,@abs_builddir@,$ac_abs_builddir,;t t
7022 s,@top_builddir@,$ac_top_builddir,;t t
7023 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7024 s,@INSTALL@,$ac_INSTALL,;t t
7025 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7026 rm -f $tmp/stdin
7027 if test x"$ac_file" != x-; then
7028 mv $tmp/out $ac_file
7029 else
7030 cat $tmp/out
7031 rm -f $tmp/out
7034 done
7035 _ACEOF
7036 cat >>$CONFIG_STATUS <<\_ACEOF
7039 # CONFIG_HEADER section.
7042 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7043 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7045 # ac_d sets the value in "#define NAME VALUE" lines.
7046 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7047 ac_dB='[ ].*$,\1#\2'
7048 ac_dC=' '
7049 ac_dD=',;t'
7050 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7051 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7052 ac_uB='$,\1#\2define\3'
7053 ac_uC=' '
7054 ac_uD=',;t'
7056 for ac_file in : $CONFIG_HEADERS; 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 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7069 echo "$as_me: creating $ac_file" >&6;}
7071 # First look for the input files in the build tree, otherwise in the
7072 # src tree.
7073 ac_file_inputs=`IFS=:
7074 for f in $ac_file_in; do
7075 case $f in
7076 -) echo $tmp/stdin ;;
7077 [\\/$]*)
7078 # Absolute (can't be DOS-style, as IFS=:)
7079 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7080 echo "$as_me: error: cannot find input file: $f" >&2;}
7081 { (exit 1); exit 1; }; }
7082 # Do quote $f, to prevent DOS paths from being IFS'd.
7083 echo "$f";;
7084 *) # Relative
7085 if test -f "$f"; then
7086 # Build tree
7087 echo "$f"
7088 elif test -f "$srcdir/$f"; then
7089 # Source tree
7090 echo "$srcdir/$f"
7091 else
7092 # /dev/null tree
7093 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7094 echo "$as_me: error: cannot find input file: $f" >&2;}
7095 { (exit 1); exit 1; }; }
7096 fi;;
7097 esac
7098 done` || { (exit 1); exit 1; }
7099 # Remove the trailing spaces.
7100 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7102 _ACEOF
7104 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7105 # `conftest.undefs', that substitutes the proper values into
7106 # config.h.in to produce config.h. The first handles `#define'
7107 # templates, and the second `#undef' templates.
7108 # And first: Protect against being on the right side of a sed subst in
7109 # config.status. Protect against being in an unquoted here document
7110 # in config.status.
7111 rm -f conftest.defines conftest.undefs
7112 # Using a here document instead of a string reduces the quoting nightmare.
7113 # Putting comments in sed scripts is not portable.
7115 # `end' is used to avoid that the second main sed command (meant for
7116 # 0-ary CPP macros) applies to n-ary macro definitions.
7117 # See the Autoconf documentation for `clear'.
7118 cat >confdef2sed.sed <<\_ACEOF
7119 s/[\\&,]/\\&/g
7120 s,[\\$`],\\&,g
7121 t clear
7122 : clear
7123 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7124 t end
7125 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7126 : end
7127 _ACEOF
7128 # If some macros were called several times there might be several times
7129 # the same #defines, which is useless. Nevertheless, we may not want to
7130 # sort them, since we want the *last* AC-DEFINE to be honored.
7131 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7132 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7133 rm -f confdef2sed.sed
7135 # This sed command replaces #undef with comments. This is necessary, for
7136 # example, in the case of _POSIX_SOURCE, which is predefined and required
7137 # on some systems where configure will not decide to define it.
7138 cat >>conftest.undefs <<\_ACEOF
7139 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7140 _ACEOF
7142 # Break up conftest.defines because some shells have a limit on the size
7143 # of here documents, and old seds have small limits too (100 cmds).
7144 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7145 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7146 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7147 echo ' :' >>$CONFIG_STATUS
7148 rm -f conftest.tail
7149 while grep . conftest.defines >/dev/null
7151 # Write a limited-size here document to $tmp/defines.sed.
7152 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7153 # Speed up: don't consider the non `#define' lines.
7154 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7155 # Work around the forget-to-reset-the-flag bug.
7156 echo 't clr' >>$CONFIG_STATUS
7157 echo ': clr' >>$CONFIG_STATUS
7158 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7159 echo 'CEOF
7160 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7161 rm -f $tmp/in
7162 mv $tmp/out $tmp/in
7163 ' >>$CONFIG_STATUS
7164 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7165 rm -f conftest.defines
7166 mv conftest.tail conftest.defines
7167 done
7168 rm -f conftest.defines
7169 echo ' fi # grep' >>$CONFIG_STATUS
7170 echo >>$CONFIG_STATUS
7172 # Break up conftest.undefs because some shells have a limit on the size
7173 # of here documents, and old seds have small limits too (100 cmds).
7174 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7175 rm -f conftest.tail
7176 while grep . conftest.undefs >/dev/null
7178 # Write a limited-size here document to $tmp/undefs.sed.
7179 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7180 # Speed up: don't consider the non `#undef'
7181 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7182 # Work around the forget-to-reset-the-flag bug.
7183 echo 't clr' >>$CONFIG_STATUS
7184 echo ': clr' >>$CONFIG_STATUS
7185 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7186 echo 'CEOF
7187 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7188 rm -f $tmp/in
7189 mv $tmp/out $tmp/in
7190 ' >>$CONFIG_STATUS
7191 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7192 rm -f conftest.undefs
7193 mv conftest.tail conftest.undefs
7194 done
7195 rm -f conftest.undefs
7197 cat >>$CONFIG_STATUS <<\_ACEOF
7198 # Let's still pretend it is `configure' which instantiates (i.e., don't
7199 # use $as_me), people would be surprised to read:
7200 # /* config.h. Generated by config.status. */
7201 if test x"$ac_file" = x-; then
7202 echo "/* Generated by configure. */" >$tmp/config.h
7203 else
7204 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7206 cat $tmp/in >>$tmp/config.h
7207 rm -f $tmp/in
7208 if test x"$ac_file" != x-; then
7209 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7210 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7211 echo "$as_me: $ac_file is unchanged" >&6;}
7212 else
7213 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7215 X"$ac_file" : 'X\(//\)[^/]' \| \
7216 X"$ac_file" : 'X\(//\)$' \| \
7217 X"$ac_file" : 'X\(/\)' \| \
7218 . : '\(.\)' 2>/dev/null ||
7219 echo X"$ac_file" |
7220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7222 /^X\(\/\/\)$/{ s//\1/; q; }
7223 /^X\(\/\).*/{ s//\1/; q; }
7224 s/.*/./; q'`
7225 { if $as_mkdir_p; then
7226 mkdir -p "$ac_dir"
7227 else
7228 as_dir="$ac_dir"
7229 as_dirs=
7230 while test ! -d "$as_dir"; do
7231 as_dirs="$as_dir $as_dirs"
7232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7234 X"$as_dir" : 'X\(//\)[^/]' \| \
7235 X"$as_dir" : 'X\(//\)$' \| \
7236 X"$as_dir" : 'X\(/\)' \| \
7237 . : '\(.\)' 2>/dev/null ||
7238 echo X"$as_dir" |
7239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7241 /^X\(\/\/\)$/{ s//\1/; q; }
7242 /^X\(\/\).*/{ s//\1/; q; }
7243 s/.*/./; q'`
7244 done
7245 test ! -n "$as_dirs" || mkdir $as_dirs
7246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7248 { (exit 1); exit 1; }; }; }
7250 rm -f $ac_file
7251 mv $tmp/config.h $ac_file
7253 else
7254 cat $tmp/config.h
7255 rm -f $tmp/config.h
7257 done
7258 _ACEOF
7260 cat >>$CONFIG_STATUS <<\_ACEOF
7262 { (exit 0); exit 0; }
7263 _ACEOF
7264 chmod +x $CONFIG_STATUS
7265 ac_clean_files=$ac_clean_files_save
7268 # configure is writing to config.log, and then calls config.status.
7269 # config.status does its own redirection, appending to config.log.
7270 # Unfortunately, on DOS this fails, as config.log is still kept open
7271 # by configure, so config.status won't be able to write to it; its
7272 # output is simply discarded. So we exec the FD to /dev/null,
7273 # effectively closing config.log, so it can be properly (re)opened and
7274 # appended to by config.status. When coming back to configure, we
7275 # need to make the FD available again.
7276 if test "$no_create" != yes; then
7277 ac_cs_success=:
7278 ac_config_status_args=
7279 test "$silent" = yes &&
7280 ac_config_status_args="$ac_config_status_args --quiet"
7281 exec 5>/dev/null
7282 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7283 exec 5>>config.log
7284 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7285 # would make configure fail if this is the last instruction.
7286 $ac_cs_success || { (exit 1); exit 1; }
7290 # CONFIG_SUBDIRS section.
7292 if test "$no_recursion" != yes; then
7294 # Remove --cache-file and --srcdir arguments so they do not pile up.
7295 ac_sub_configure_args=
7296 ac_prev=
7297 for ac_arg in $ac_configure_args; do
7298 if test -n "$ac_prev"; then
7299 ac_prev=
7300 continue
7302 case $ac_arg in
7303 -cache-file | --cache-file | --cache-fil | --cache-fi \
7304 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7305 ac_prev=cache_file ;;
7306 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7307 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7308 | --c=*)
7310 --config-cache | -C)
7312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7313 ac_prev=srcdir ;;
7314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7316 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7317 ac_prev=prefix ;;
7318 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7320 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7321 esac
7322 done
7324 # Always prepend --prefix to ensure using the same prefix
7325 # in subdir configurations.
7326 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7328 ac_popdir=`pwd`
7329 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7331 # Do not complain, so a configure script can configure whichever
7332 # parts of a large source tree are present.
7333 test -d $srcdir/$ac_dir || continue
7335 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7336 echo "$as_me: configuring in $ac_dir" >&6;}
7337 { if $as_mkdir_p; then
7338 mkdir -p "$ac_dir"
7339 else
7340 as_dir="$ac_dir"
7341 as_dirs=
7342 while test ! -d "$as_dir"; do
7343 as_dirs="$as_dir $as_dirs"
7344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7346 X"$as_dir" : 'X\(//\)[^/]' \| \
7347 X"$as_dir" : 'X\(//\)$' \| \
7348 X"$as_dir" : 'X\(/\)' \| \
7349 . : '\(.\)' 2>/dev/null ||
7350 echo X"$as_dir" |
7351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7353 /^X\(\/\/\)$/{ s//\1/; q; }
7354 /^X\(\/\).*/{ s//\1/; q; }
7355 s/.*/./; q'`
7356 done
7357 test ! -n "$as_dirs" || mkdir $as_dirs
7358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7360 { (exit 1); exit 1; }; }; }
7362 ac_builddir=.
7364 if test "$ac_dir" != .; then
7365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7366 # A "../" for each directory in $ac_dir_suffix.
7367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7368 else
7369 ac_dir_suffix= ac_top_builddir=
7372 case $srcdir in
7373 .) # No --srcdir option. We are building in place.
7374 ac_srcdir=.
7375 if test -z "$ac_top_builddir"; then
7376 ac_top_srcdir=.
7377 else
7378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7379 fi ;;
7380 [\\/]* | ?:[\\/]* ) # Absolute path.
7381 ac_srcdir=$srcdir$ac_dir_suffix;
7382 ac_top_srcdir=$srcdir ;;
7383 *) # Relative path.
7384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7386 esac
7388 # Do not use `cd foo && pwd` to compute absolute paths, because
7389 # the directories may not exist.
7390 case `pwd` in
7391 .) ac_abs_builddir="$ac_dir";;
7393 case "$ac_dir" in
7394 .) ac_abs_builddir=`pwd`;;
7395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7397 esac;;
7398 esac
7399 case $ac_abs_builddir in
7400 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7402 case ${ac_top_builddir}. in
7403 .) ac_abs_top_builddir=$ac_abs_builddir;;
7404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7406 esac;;
7407 esac
7408 case $ac_abs_builddir in
7409 .) ac_abs_srcdir=$ac_srcdir;;
7411 case $ac_srcdir in
7412 .) ac_abs_srcdir=$ac_abs_builddir;;
7413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7415 esac;;
7416 esac
7417 case $ac_abs_builddir in
7418 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7420 case $ac_top_srcdir in
7421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7424 esac;;
7425 esac
7428 cd $ac_dir
7430 # Check for guested configure; otherwise get Cygnus style configure.
7431 if test -f $ac_srcdir/configure.gnu; then
7432 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7433 elif test -f $ac_srcdir/configure; then
7434 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7435 elif test -f $ac_srcdir/configure.in; then
7436 ac_sub_configure=$ac_configure
7437 else
7438 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7440 ac_sub_configure=
7443 # The recursion is here.
7444 if test -n "$ac_sub_configure"; then
7445 # Make the cache file name correct relative to the subdirectory.
7446 case $cache_file in
7447 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7448 *) # Relative path.
7449 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7450 esac
7452 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7453 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7454 # The eval makes quoting arguments work.
7455 eval $ac_sub_configure $ac_sub_configure_args \
7456 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7457 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7458 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7459 { (exit 1); exit 1; }; }
7462 cd $ac_popdir
7463 done