Update symbols
[opal/cbnco.git] / plugins / configure
blobc98f1a2e8ec5ec38901a9b6733622db43e130042
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="configure.ac"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP INSTALLPREFIX LIBDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LDSO H323_GSMAMR_NB_FLOAT H323_SYSTEM_GSM SIZE16 SIZE32 H323_SYSTEM_SPEEX HAS_FFMPEG HAS_IXJ HAS_VPB HAS_CAPI HAS_SANGOMA LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXX_set=${CXX+set}
753 ac_env_CXX_value=$CXX
754 ac_cv_env_CXX_set=${CXX+set}
755 ac_cv_env_CXX_value=$CXX
756 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
757 ac_env_CXXFLAGS_value=$CXXFLAGS
758 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CC_set=${CC+set}
769 ac_env_CC_value=$CC
770 ac_cv_env_CC_set=${CC+set}
771 ac_cv_env_CC_value=$CC
772 ac_env_CFLAGS_set=${CFLAGS+set}
773 ac_env_CFLAGS_value=$CFLAGS
774 ac_cv_env_CFLAGS_set=${CFLAGS+set}
775 ac_cv_env_CFLAGS_value=$CFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
787 cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
797 Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808 _ACEOF
810 cat <<_ACEOF
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
813 [$ac_default_prefix]
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 [PREFIX]
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
837 _ACEOF
839 cat <<\_ACEOF
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845 _ACEOF
848 if test -n "$ac_init_help"; then
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-localgsm use local version of GSM library rather than system version
856 --enable-localspeex use local version of Speex library rather than system version
857 --enable-vpb enable voicetronix vpb
858 --enable-capi enable CAPI
860 Some influential environment variables:
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CC C compiler command
868 CFLAGS C compiler flags
869 CPP C preprocessor
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 cd $ac_popdir
930 done
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935 cat <<\_ACEOF
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942 exit 0
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
952 $ $0 $@
954 _ACEOF
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 _ASUNAME
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
988 } >&5
990 cat >&5 <<_ACEOF
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
997 _ACEOF
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1012 for ac_arg
1014 case $ac_arg in
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 continue ;;
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 esac
1022 case $ac_pass in
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1028 else
1029 case $ac_arg in
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 esac
1038 -* ) ac_must_keep_next=true ;;
1039 esac
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1043 ac_sep=" "
1045 esac
1046 done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1059 echo
1061 cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066 echo
1067 # The following way of writing the cache mishandles newlines in values,
1069 (set) 2>&1 |
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 *ac_space=\ *)
1072 sed -n \
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 sed -n \
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 esac;
1082 echo
1084 cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089 echo
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1094 done | sort
1095 echo
1097 if test -n "$ac_subst_files"; then
1098 cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1112 if test -s confdefs.h; then
1113 cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118 echo
1119 sed "/^$/d" confdefs.h | sort
1120 echo
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1125 } >&5
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 exit $exit_status
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 else
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1181 . "$ac_site_file"
1183 done
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191 case $cache_file in
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1194 esac
1196 else
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199 >$cache_file
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1212 set,)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,set)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,);;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1230 fi;;
1231 esac
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1234 case $ac_new_val in
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1238 esac
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 esac
1244 done
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278 ac_ext=cc
1279 ac_cpp='$CXXCPP $CPPFLAGS'
1280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1283 if test -n "$ac_tool_prefix"; then
1284 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1288 echo "$as_me:$LINENO: checking for $ac_word" >&5
1289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1290 if test "${ac_cv_prog_CXX+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1292 else
1293 if test -n "$CXX"; then
1294 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1295 else
1296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297 for as_dir in $PATH
1299 IFS=$as_save_IFS
1300 test -z "$as_dir" && as_dir=.
1301 for ac_exec_ext in '' $ac_executable_extensions; do
1302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1303 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1305 break 2
1307 done
1308 done
1312 CXX=$ac_cv_prog_CXX
1313 if test -n "$CXX"; then
1314 echo "$as_me:$LINENO: result: $CXX" >&5
1315 echo "${ECHO_T}$CXX" >&6
1316 else
1317 echo "$as_me:$LINENO: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1321 test -n "$CXX" && break
1322 done
1324 if test -z "$CXX"; then
1325 ac_ct_CXX=$CXX
1326 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1328 # Extract the first word of "$ac_prog", so it can be a program name with args.
1329 set dummy $ac_prog; ac_word=$2
1330 echo "$as_me:$LINENO: checking for $ac_word" >&5
1331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 else
1335 if test -n "$ac_ct_CXX"; then
1336 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1337 else
1338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1339 for as_dir in $PATH
1341 IFS=$as_save_IFS
1342 test -z "$as_dir" && as_dir=.
1343 for ac_exec_ext in '' $ac_executable_extensions; do
1344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1345 ac_cv_prog_ac_ct_CXX="$ac_prog"
1346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1347 break 2
1349 done
1350 done
1354 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1355 if test -n "$ac_ct_CXX"; then
1356 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1357 echo "${ECHO_T}$ac_ct_CXX" >&6
1358 else
1359 echo "$as_me:$LINENO: result: no" >&5
1360 echo "${ECHO_T}no" >&6
1363 test -n "$ac_ct_CXX" && break
1364 done
1365 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1367 CXX=$ac_ct_CXX
1371 # Provide some information about the compiler.
1372 echo "$as_me:$LINENO:" \
1373 "checking for C++ compiler version" >&5
1374 ac_compiler=`set X $ac_compile; echo $2`
1375 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1376 (eval $ac_compiler --version </dev/null >&5) 2>&5
1377 ac_status=$?
1378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1379 (exit $ac_status); }
1380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1381 (eval $ac_compiler -v </dev/null >&5) 2>&5
1382 ac_status=$?
1383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1384 (exit $ac_status); }
1385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1386 (eval $ac_compiler -V </dev/null >&5) 2>&5
1387 ac_status=$?
1388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1389 (exit $ac_status); }
1391 cat >conftest.$ac_ext <<_ACEOF
1392 #line $LINENO "configure"
1393 /* confdefs.h. */
1394 _ACEOF
1395 cat confdefs.h >>conftest.$ac_ext
1396 cat >>conftest.$ac_ext <<_ACEOF
1397 /* end confdefs.h. */
1400 main ()
1404 return 0;
1406 _ACEOF
1407 ac_clean_files_save=$ac_clean_files
1408 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1409 # Try to create an executable without -o first, disregard a.out.
1410 # It will help us diagnose broken compilers, and finding out an intuition
1411 # of exeext.
1412 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1413 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1414 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1415 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1416 (eval $ac_link_default) 2>&5
1417 ac_status=$?
1418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1419 (exit $ac_status); }; then
1420 # Find the output, starting from the most likely. This scheme is
1421 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1422 # resort.
1424 # Be careful to initialize this variable, since it used to be cached.
1425 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1426 ac_cv_exeext=
1427 # b.out is created by i960 compilers.
1428 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1430 test -f "$ac_file" || continue
1431 case $ac_file in
1432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1434 conftest.$ac_ext )
1435 # This is the source file.
1437 [ab].out )
1438 # We found the default executable, but exeext='' is most
1439 # certainly right.
1440 break;;
1441 *.* )
1442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1443 # FIXME: I believe we export ac_cv_exeext for Libtool,
1444 # but it would be cool to find out if it's true. Does anybody
1445 # maintain Libtool? --akim.
1446 export ac_cv_exeext
1447 break;;
1449 break;;
1450 esac
1451 done
1452 else
1453 echo "$as_me: failed program was:" >&5
1454 sed 's/^/| /' conftest.$ac_ext >&5
1456 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1457 See \`config.log' for more details." >&5
1458 echo "$as_me: error: C++ compiler cannot create executables
1459 See \`config.log' for more details." >&2;}
1460 { (exit 77); exit 77; }; }
1463 ac_exeext=$ac_cv_exeext
1464 echo "$as_me:$LINENO: result: $ac_file" >&5
1465 echo "${ECHO_T}$ac_file" >&6
1467 # Check the compiler produces executables we can run. If not, either
1468 # the compiler is broken, or we cross compile.
1469 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1470 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1471 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1472 # If not cross compiling, check that we can run a simple program.
1473 if test "$cross_compiling" != yes; then
1474 if { ac_try='./$ac_file'
1475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1476 (eval $ac_try) 2>&5
1477 ac_status=$?
1478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1479 (exit $ac_status); }; }; then
1480 cross_compiling=no
1481 else
1482 if test "$cross_compiling" = maybe; then
1483 cross_compiling=yes
1484 else
1485 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1486 If you meant to cross compile, use \`--host'.
1487 See \`config.log' for more details." >&5
1488 echo "$as_me: error: cannot run C++ compiled programs.
1489 If you meant to cross compile, use \`--host'.
1490 See \`config.log' for more details." >&2;}
1491 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: yes" >&5
1496 echo "${ECHO_T}yes" >&6
1498 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1499 ac_clean_files=$ac_clean_files_save
1500 # Check the compiler produces executables we can run. If not, either
1501 # the compiler is broken, or we cross compile.
1502 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1503 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1504 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1505 echo "${ECHO_T}$cross_compiling" >&6
1507 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1508 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1510 (eval $ac_link) 2>&5
1511 ac_status=$?
1512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1513 (exit $ac_status); }; then
1514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1516 # work properly (i.e., refer to `conftest.exe'), while it won't with
1517 # `rm'.
1518 for ac_file in conftest.exe conftest conftest.*; do
1519 test -f "$ac_file" || continue
1520 case $ac_file in
1521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1523 export ac_cv_exeext
1524 break;;
1525 * ) break;;
1526 esac
1527 done
1528 else
1529 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1530 See \`config.log' for more details." >&5
1531 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1532 See \`config.log' for more details." >&2;}
1533 { (exit 1); exit 1; }; }
1536 rm -f conftest$ac_cv_exeext
1537 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1538 echo "${ECHO_T}$ac_cv_exeext" >&6
1540 rm -f conftest.$ac_ext
1541 EXEEXT=$ac_cv_exeext
1542 ac_exeext=$EXEEXT
1543 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1544 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1545 if test "${ac_cv_objext+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 cat >conftest.$ac_ext <<_ACEOF
1549 #line $LINENO "configure"
1550 /* confdefs.h. */
1551 _ACEOF
1552 cat confdefs.h >>conftest.$ac_ext
1553 cat >>conftest.$ac_ext <<_ACEOF
1554 /* end confdefs.h. */
1557 main ()
1561 return 0;
1563 _ACEOF
1564 rm -f conftest.o conftest.obj
1565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
1567 ac_status=$?
1568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1569 (exit $ac_status); }; then
1570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1571 case $ac_file in
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1574 break;;
1575 esac
1576 done
1577 else
1578 echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1581 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1582 See \`config.log' for more details." >&5
1583 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1584 See \`config.log' for more details." >&2;}
1585 { (exit 1); exit 1; }; }
1588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1590 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1591 echo "${ECHO_T}$ac_cv_objext" >&6
1592 OBJEXT=$ac_cv_objext
1593 ac_objext=$OBJEXT
1594 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1595 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1596 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 cat >conftest.$ac_ext <<_ACEOF
1600 #line $LINENO "configure"
1601 /* confdefs.h. */
1602 _ACEOF
1603 cat confdefs.h >>conftest.$ac_ext
1604 cat >>conftest.$ac_ext <<_ACEOF
1605 /* end confdefs.h. */
1608 main ()
1610 #ifndef __GNUC__
1611 choke me
1612 #endif
1615 return 0;
1617 _ACEOF
1618 rm -f conftest.$ac_objext
1619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1620 (eval $ac_compile) 2>&5
1621 ac_status=$?
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); } &&
1624 { ac_try='test -s conftest.$ac_objext'
1625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1626 (eval $ac_try) 2>&5
1627 ac_status=$?
1628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1629 (exit $ac_status); }; }; then
1630 ac_compiler_gnu=yes
1631 else
1632 echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_compiler_gnu=no
1637 rm -f conftest.$ac_objext conftest.$ac_ext
1638 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1641 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1642 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1643 GXX=`test $ac_compiler_gnu = yes && echo yes`
1644 ac_test_CXXFLAGS=${CXXFLAGS+set}
1645 ac_save_CXXFLAGS=$CXXFLAGS
1646 CXXFLAGS="-g"
1647 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1648 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1649 if test "${ac_cv_prog_cxx_g+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 cat >conftest.$ac_ext <<_ACEOF
1653 #line $LINENO "configure"
1654 /* confdefs.h. */
1655 _ACEOF
1656 cat confdefs.h >>conftest.$ac_ext
1657 cat >>conftest.$ac_ext <<_ACEOF
1658 /* end confdefs.h. */
1661 main ()
1665 return 0;
1667 _ACEOF
1668 rm -f conftest.$ac_objext
1669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1670 (eval $ac_compile) 2>&5
1671 ac_status=$?
1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1673 (exit $ac_status); } &&
1674 { ac_try='test -s conftest.$ac_objext'
1675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1676 (eval $ac_try) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; }; then
1680 ac_cv_prog_cxx_g=yes
1681 else
1682 echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1685 ac_cv_prog_cxx_g=no
1687 rm -f conftest.$ac_objext conftest.$ac_ext
1689 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1691 if test "$ac_test_CXXFLAGS" = set; then
1692 CXXFLAGS=$ac_save_CXXFLAGS
1693 elif test $ac_cv_prog_cxx_g = yes; then
1694 if test "$GXX" = yes; then
1695 CXXFLAGS="-g -O2"
1696 else
1697 CXXFLAGS="-g"
1699 else
1700 if test "$GXX" = yes; then
1701 CXXFLAGS="-O2"
1702 else
1703 CXXFLAGS=
1706 for ac_declaration in \
1708 '#include <stdlib.h>' \
1709 'extern "C" void std::exit (int) throw (); using std::exit;' \
1710 'extern "C" void std::exit (int); using std::exit;' \
1711 'extern "C" void exit (int) throw ();' \
1712 'extern "C" void exit (int);' \
1713 'void exit (int);'
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line $LINENO "configure"
1717 /* confdefs.h. */
1718 _ACEOF
1719 cat confdefs.h >>conftest.$ac_ext
1720 cat >>conftest.$ac_ext <<_ACEOF
1721 /* end confdefs.h. */
1722 #include <stdlib.h>
1723 $ac_declaration
1725 main ()
1727 exit (42);
1729 return 0;
1731 _ACEOF
1732 rm -f conftest.$ac_objext
1733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1734 (eval $ac_compile) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); } &&
1738 { ac_try='test -s conftest.$ac_objext'
1739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1740 (eval $ac_try) 2>&5
1741 ac_status=$?
1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743 (exit $ac_status); }; }; then
1745 else
1746 echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 continue
1751 rm -f conftest.$ac_objext conftest.$ac_ext
1752 cat >conftest.$ac_ext <<_ACEOF
1753 #line $LINENO "configure"
1754 /* confdefs.h. */
1755 _ACEOF
1756 cat confdefs.h >>conftest.$ac_ext
1757 cat >>conftest.$ac_ext <<_ACEOF
1758 /* end confdefs.h. */
1759 $ac_declaration
1761 main ()
1763 exit (42);
1765 return 0;
1767 _ACEOF
1768 rm -f conftest.$ac_objext
1769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1770 (eval $ac_compile) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); } &&
1774 { ac_try='test -s conftest.$ac_objext'
1775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1776 (eval $ac_try) 2>&5
1777 ac_status=$?
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1780 break
1781 else
1782 echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1786 rm -f conftest.$ac_objext conftest.$ac_ext
1787 done
1788 rm -f conftest*
1789 if test -n "$ac_declaration"; then
1790 echo '#ifdef __cplusplus' >>confdefs.h
1791 echo $ac_declaration >>confdefs.h
1792 echo '#endif' >>confdefs.h
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1828 done
1829 done
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1843 if test -z "$ac_cv_prog_CC"; then
1844 ac_ct_CC=$CC
1845 # Extract the first word of "gcc", so it can be a program name with args.
1846 set dummy gcc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_ac_ct_CC="gcc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1880 CC=$ac_ct_CC
1881 else
1882 CC="$ac_cv_prog_CC"
1885 if test -z "$CC"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_CC="${ac_tool_prefix}cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_CC"; then
1924 ac_ct_CC=$CC
1925 # Extract the first word of "cc", so it can be a program name with args.
1926 set dummy cc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_CC="cc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 CC=$ac_ct_CC
1961 else
1962 CC="$ac_cv_prog_CC"
1966 if test -z "$CC"; then
1967 # Extract the first word of "cc", so it can be a program name with args.
1968 set dummy cc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 ac_prog_rejected=no
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986 ac_prog_rejected=yes
1987 continue
1989 ac_cv_prog_CC="cc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1993 done
1994 done
1996 if test $ac_prog_rejected = yes; then
1997 # We found a bogon in the path, so make sure we never use it.
1998 set dummy $ac_cv_prog_CC
1999 shift
2000 if test $# != 0; then
2001 # We chose a different compiler from the bogus one.
2002 # However, it has the same basename, so the bogon will be chosen
2003 # first if we set CC to just the basename; use the full file name.
2004 shift
2005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2020 if test -z "$CC"; then
2021 if test -n "$ac_tool_prefix"; then
2022 for ac_prog in cl
2024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$CC" && break
2060 done
2062 if test -z "$CC"; then
2063 ac_ct_CC=$CC
2064 for ac_prog in cl
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CC="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$ac_ct_CC" && break
2102 done
2104 CC=$ac_ct_CC
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO:" \
2118 "checking for C compiler version" >&5
2119 ac_compiler=`set X $ac_compile; echo $2`
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121 (eval $ac_compiler --version </dev/null >&5) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126 (eval $ac_compiler -v </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131 (eval $ac_compiler -V </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2136 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2137 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2138 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line $LINENO "configure"
2143 /* confdefs.h. */
2144 _ACEOF
2145 cat confdefs.h >>conftest.$ac_ext
2146 cat >>conftest.$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2150 main ()
2152 #ifndef __GNUC__
2153 choke me
2154 #endif
2157 return 0;
2159 _ACEOF
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 ac_compiler_gnu=yes
2173 else
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 ac_compiler_gnu=no
2179 rm -f conftest.$ac_objext conftest.$ac_ext
2180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2183 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2185 GCC=`test $ac_compiler_gnu = yes && echo yes`
2186 ac_test_CFLAGS=${CFLAGS+set}
2187 ac_save_CFLAGS=$CFLAGS
2188 CFLAGS="-g"
2189 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2190 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_g+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2196 /* confdefs.h. */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2203 main ()
2207 return 0;
2209 _ACEOF
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_g=yes
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2227 ac_cv_prog_cc_g=no
2229 rm -f conftest.$ac_objext conftest.$ac_ext
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2233 if test "$ac_test_CFLAGS" = set; then
2234 CFLAGS=$ac_save_CFLAGS
2235 elif test $ac_cv_prog_cc_g = yes; then
2236 if test "$GCC" = yes; then
2237 CFLAGS="-g -O2"
2238 else
2239 CFLAGS="-g"
2241 else
2242 if test "$GCC" = yes; then
2243 CFLAGS="-O2"
2244 else
2245 CFLAGS=
2248 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2249 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2250 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 ac_cv_prog_cc_stdc=no
2254 ac_save_CC=$CC
2255 cat >conftest.$ac_ext <<_ACEOF
2256 #line $LINENO "configure"
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 #include <stdarg.h>
2263 #include <stdio.h>
2264 #include <sys/types.h>
2265 #include <sys/stat.h>
2266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267 struct buf { int x; };
2268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269 static char *e (p, i)
2270 char **p;
2271 int i;
2273 return p[i];
2275 static char *f (char * (*g) (char **, int), char **p, ...)
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2284 int test (int i, double x);
2285 struct s1 {int (*f) (int a);};
2286 struct s2 {int (*f) (double a);};
2287 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2288 int argc;
2289 char **argv;
2291 main ()
2293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2295 return 0;
2297 _ACEOF
2298 # Don't try gcc -ansi; that turns off useful extensions and
2299 # breaks some systems' header files.
2300 # AIX -qlanglvl=ansi
2301 # Ultrix and OSF/1 -std1
2302 # HP-UX 10.20 and later -Ae
2303 # HP-UX older versions -Aa -D_HPUX_SOURCE
2304 # SVR4 -Xc -D__EXTENSIONS__
2305 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2307 CC="$ac_save_CC $ac_arg"
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 ac_cv_prog_cc_stdc=$ac_arg
2321 break
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.$ac_objext
2328 done
2329 rm -f conftest.$ac_ext conftest.$ac_objext
2330 CC=$ac_save_CC
2334 case "x$ac_cv_prog_cc_stdc" in
2335 x|xno)
2336 echo "$as_me:$LINENO: result: none needed" >&5
2337 echo "${ECHO_T}none needed" >&6 ;;
2339 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2340 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2341 CC="$CC $ac_cv_prog_cc_stdc" ;;
2342 esac
2344 # Some people use a C++ compiler to compile C. Since we use `exit',
2345 # in C++ we need to declare it. In case someone uses the same compiler
2346 # for both compiling C and C++ we need to have the C++ compiler decide
2347 # the declaration of exit, since it's the most demanding environment.
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #ifndef __cplusplus
2350 choke me
2351 #endif
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 for ac_declaration in \
2367 '#include <stdlib.h>' \
2368 'extern "C" void std::exit (int) throw (); using std::exit;' \
2369 'extern "C" void std::exit (int); using std::exit;' \
2370 'extern "C" void exit (int) throw ();' \
2371 'extern "C" void exit (int);' \
2372 'void exit (int);'
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <stdlib.h>
2382 $ac_declaration
2384 main ()
2386 exit (42);
2388 return 0;
2390 _ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 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
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 continue
2410 rm -f conftest.$ac_objext conftest.$ac_ext
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 /* confdefs.h. */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2418 $ac_declaration
2420 main ()
2422 exit (42);
2424 return 0;
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 break
2440 else
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 done
2447 rm -f conftest*
2448 if test -n "$ac_declaration"; then
2449 echo '#ifdef __cplusplus' >>confdefs.h
2450 echo $ac_declaration >>confdefs.h
2451 echo '#endif' >>confdefs.h
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.$ac_objext conftest.$ac_ext
2460 ac_ext=c
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2473 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2474 # On Suns, sometimes $CPP names a directory.
2475 if test -n "$CPP" && test -d "$CPP"; then
2476 CPP=
2478 if test -z "$CPP"; then
2479 if test "${ac_cv_prog_CPP+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 # Double quotes because CPP needs to be expanded
2483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2485 ac_preproc_ok=false
2486 for ac_c_preproc_warn_flag in '' yes
2488 # Use a header file that comes with gcc, so configuring glibc
2489 # with a fresh cross-compiler works.
2490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2491 # <limits.h> exists even on freestanding compilers.
2492 # On the NeXT, cc -E runs the code through the compiler's parser,
2493 # not just through cpp. "Syntax error" is here to catch this case.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 #line $LINENO "configure"
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 #ifdef __STDC__
2502 # include <limits.h>
2503 #else
2504 # include <assert.h>
2505 #endif
2506 Syntax error
2507 _ACEOF
2508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } >/dev/null; then
2516 if test -s conftest.err; then
2517 ac_cpp_err=$ac_c_preproc_warn_flag
2518 else
2519 ac_cpp_err=
2521 else
2522 ac_cpp_err=yes
2524 if test -z "$ac_cpp_err"; then
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 # Broken: fails on valid input.
2531 continue
2533 rm -f conftest.err conftest.$ac_ext
2535 # OK, works on sane cases. Now check whether non-existent headers
2536 # can be detected and how.
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2544 #include <ac_nonexistent.h>
2545 _ACEOF
2546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } >/dev/null; then
2554 if test -s conftest.err; then
2555 ac_cpp_err=$ac_c_preproc_warn_flag
2556 else
2557 ac_cpp_err=
2559 else
2560 ac_cpp_err=yes
2562 if test -z "$ac_cpp_err"; then
2563 # Broken: success on invalid input.
2564 continue
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2569 # Passes both tests.
2570 ac_preproc_ok=:
2571 break
2573 rm -f conftest.err conftest.$ac_ext
2575 done
2576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2577 rm -f conftest.err conftest.$ac_ext
2578 if $ac_preproc_ok; then
2579 break
2582 done
2583 ac_cv_prog_CPP=$CPP
2586 CPP=$ac_cv_prog_CPP
2587 else
2588 ac_cv_prog_CPP=$CPP
2590 echo "$as_me:$LINENO: result: $CPP" >&5
2591 echo "${ECHO_T}$CPP" >&6
2592 ac_preproc_ok=false
2593 for ac_c_preproc_warn_flag in '' yes
2595 # Use a header file that comes with gcc, so configuring glibc
2596 # with a fresh cross-compiler works.
2597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2598 # <limits.h> exists even on freestanding compilers.
2599 # On the NeXT, cc -E runs the code through the compiler's parser,
2600 # not just through cpp. "Syntax error" is here to catch this case.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line $LINENO "configure"
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 #ifdef __STDC__
2609 # include <limits.h>
2610 #else
2611 # include <assert.h>
2612 #endif
2613 Syntax error
2614 _ACEOF
2615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } >/dev/null; then
2623 if test -s conftest.err; then
2624 ac_cpp_err=$ac_c_preproc_warn_flag
2625 else
2626 ac_cpp_err=
2628 else
2629 ac_cpp_err=yes
2631 if test -z "$ac_cpp_err"; then
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 # Broken: fails on valid input.
2638 continue
2640 rm -f conftest.err conftest.$ac_ext
2642 # OK, works on sane cases. Now check whether non-existent headers
2643 # can be detected and how.
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2651 #include <ac_nonexistent.h>
2652 _ACEOF
2653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } >/dev/null; then
2661 if test -s conftest.err; then
2662 ac_cpp_err=$ac_c_preproc_warn_flag
2663 else
2664 ac_cpp_err=
2666 else
2667 ac_cpp_err=yes
2669 if test -z "$ac_cpp_err"; then
2670 # Broken: success on invalid input.
2671 continue
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 # Passes both tests.
2677 ac_preproc_ok=:
2678 break
2680 rm -f conftest.err conftest.$ac_ext
2682 done
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2687 else
2688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702 echo "$as_me:$LINENO: checking for egrep" >&5
2703 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2704 if test "${ac_cv_prog_egrep+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2708 then ac_cv_prog_egrep='grep -E'
2709 else ac_cv_prog_egrep='egrep'
2712 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2713 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2714 EGREP=$ac_cv_prog_egrep
2717 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2719 if test "${ac_cv_header_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729 #include <stdlib.h>
2730 #include <stdarg.h>
2731 #include <string.h>
2732 #include <float.h>
2735 main ()
2739 return 0;
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_header_stdc=yes
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 ac_cv_header_stdc=no
2761 rm -f conftest.$ac_objext conftest.$ac_ext
2763 if test $ac_cv_header_stdc = yes; then
2764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2765 cat >conftest.$ac_ext <<_ACEOF
2766 #line $LINENO "configure"
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 #include <string.h>
2774 _ACEOF
2775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2776 $EGREP "memchr" >/dev/null 2>&1; then
2778 else
2779 ac_cv_header_stdc=no
2781 rm -f conftest*
2785 if test $ac_cv_header_stdc = yes; then
2786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794 #include <stdlib.h>
2796 _ACEOF
2797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2798 $EGREP "free" >/dev/null 2>&1; then
2800 else
2801 ac_cv_header_stdc=no
2803 rm -f conftest*
2807 if test $ac_cv_header_stdc = yes; then
2808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2809 if test "$cross_compiling" = yes; then
2811 else
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ctype.h>
2820 #if ((' ' & 0x0FF) == 0x020)
2821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2823 #else
2824 # define ISLOWER(c) \
2825 (('a' <= (c) && (c) <= 'i') \
2826 || ('j' <= (c) && (c) <= 'r') \
2827 || ('s' <= (c) && (c) <= 'z'))
2828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2829 #endif
2831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2833 main ()
2835 int i;
2836 for (i = 0; i < 256; i++)
2837 if (XOR (islower (i), ISLOWER (i))
2838 || toupper (i) != TOUPPER (i))
2839 exit(2);
2840 exit (0);
2842 _ACEOF
2843 rm -f conftest$ac_exeext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845 (eval $ac_link) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2855 else
2856 echo "$as_me: program exited with status $ac_status" >&5
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 ( exit $ac_status )
2861 ac_cv_header_stdc=no
2863 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2867 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2868 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2869 if test $ac_cv_header_stdc = yes; then
2871 cat >>confdefs.h <<\_ACEOF
2872 #define STDC_HEADERS 1
2873 _ACEOF
2878 if test "x$prefix" = "xNONE"; then
2879 INSTALLPREFIX="/usr/local"
2880 else
2881 INSTALLPREFIX="${prefix}"
2887 LIBDIR="${libdir}"
2891 ac_aux_dir=
2892 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2893 if test -f $ac_dir/install-sh; then
2894 ac_aux_dir=$ac_dir
2895 ac_install_sh="$ac_aux_dir/install-sh -c"
2896 break
2897 elif test -f $ac_dir/install.sh; then
2898 ac_aux_dir=$ac_dir
2899 ac_install_sh="$ac_aux_dir/install.sh -c"
2900 break
2901 elif test -f $ac_dir/shtool; then
2902 ac_aux_dir=$ac_dir
2903 ac_install_sh="$ac_aux_dir/shtool install -c"
2904 break
2906 done
2907 if test -z "$ac_aux_dir"; then
2908 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2909 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2910 { (exit 1); exit 1; }; }
2912 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2913 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2914 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2916 # Make sure we can run config.sub.
2917 $ac_config_sub sun4 >/dev/null 2>&1 ||
2918 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2919 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2920 { (exit 1); exit 1; }; }
2922 echo "$as_me:$LINENO: checking build system type" >&5
2923 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2924 if test "${ac_cv_build+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 ac_cv_build_alias=$build_alias
2928 test -z "$ac_cv_build_alias" &&
2929 ac_cv_build_alias=`$ac_config_guess`
2930 test -z "$ac_cv_build_alias" &&
2931 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2932 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2933 { (exit 1); exit 1; }; }
2934 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2936 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2937 { (exit 1); exit 1; }; }
2940 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2941 echo "${ECHO_T}$ac_cv_build" >&6
2942 build=$ac_cv_build
2943 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2944 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2945 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2948 echo "$as_me:$LINENO: checking host system type" >&5
2949 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2950 if test "${ac_cv_host+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 ac_cv_host_alias=$host_alias
2954 test -z "$ac_cv_host_alias" &&
2955 ac_cv_host_alias=$ac_cv_build_alias
2956 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2957 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2958 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2959 { (exit 1); exit 1; }; }
2962 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2963 echo "${ECHO_T}$ac_cv_host" >&6
2964 host=$ac_cv_host
2965 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2966 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2967 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2970 echo "$as_me:$LINENO: checking target system type" >&5
2971 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2972 if test "${ac_cv_target+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 ac_cv_target_alias=$target_alias
2976 test "x$ac_cv_target_alias" = "x" &&
2977 ac_cv_target_alias=$ac_cv_host_alias
2978 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2979 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2980 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2981 { (exit 1); exit 1; }; }
2984 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2985 echo "${ECHO_T}$ac_cv_target" >&6
2986 target=$ac_cv_target
2987 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2988 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2989 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2992 # The aliases save the names the user supplied, while $host etc.
2993 # will get canonicalized.
2994 test -n "$target_alias" &&
2995 test "$program_prefix$program_suffix$program_transform_name" = \
2996 NONENONEs,x,x, &&
2997 program_prefix=${target_alias}-
2998 LDSO=
2999 case "$target_os" in
3000 solaris*) LDSO="-Bdynamic -G -h" ;;
3001 darwin*) ;;
3002 *) LDSO="-shared -Wl,-soname,";;
3003 esac
3004 LDSO=${LDSO}
3008 H323_GSMAMR_NB_FLOAT=0
3009 if test -r "./audio/gsm-amr/src/interf_dec.h" ; then
3010 { echo "$as_me:$LINENO: Enabling GSM-AMR plugin" >&5
3011 echo "$as_me: Enabling GSM-AMR plugin" >&6;}
3012 H323_GSMAMR_NB_FLOAT=1
3013 else
3014 { echo "$as_me:$LINENO: GSM-AMR plugin disabled (no 3GPP source)" >&5
3015 echo "$as_me: GSM-AMR plugin disabled (no 3GPP source)" >&6;}
3017 H323_GSMAMR_NB_FLOAT=$H323_GSMAMR_NB_FLOAT
3022 H323_SYSTEM_GSM=0
3023 localgsm="xxx"
3024 # Check whether --enable-localgsm or --disable-localgsm was given.
3025 if test "${enable_localgsm+set}" = set; then
3026 enableval="$enable_localgsm"
3027 localgsm=$enableval
3030 if test "${localgsm}" = "yes" ; then
3031 { echo "$as_me:$LINENO: Forcing use of local GSM sources" >&5
3032 echo "$as_me: Forcing use of local GSM sources" >&6;}
3033 elif test "${localgsm}" = "no" ; then
3034 { echo "$as_me:$LINENO: Forcing use of system GSM library" >&5
3035 echo "$as_me: Forcing use of system GSM library" >&6;}
3036 H323_SYSTEM_GSM=1
3037 else
3038 echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
3039 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6
3040 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 ac_check_lib_save_LIBS=$LIBS
3044 LIBS="-lgsm $LIBS"
3045 cat >conftest.$ac_ext <<_ACEOF
3046 #line $LINENO "configure"
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 #ifdef __cplusplus
3055 extern "C"
3056 #endif
3057 /* We use char because int might match the return type of a gcc2
3058 builtin and then its argument prototype would still apply. */
3059 char gsm_create ();
3061 main ()
3063 gsm_create ();
3065 return 0;
3067 _ACEOF
3068 rm -f conftest.$ac_objext conftest$ac_exeext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070 (eval $ac_link) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -s conftest$ac_exeext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_gsm_gsm_create=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_cv_lib_gsm_gsm_create=no
3087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3088 LIBS=$ac_check_lib_save_LIBS
3090 echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
3091 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6
3092 if test $ac_cv_lib_gsm_gsm_create = yes; then
3093 GSM=1
3096 if test "x$GSM" != "x"; then
3097 echo "$as_me:$LINENO: checking if system GSM library has WAV49" >&5
3098 echo $ECHO_N "checking if system GSM library has WAV49... $ECHO_C" >&6
3099 OLD_LIBS=$LIBS
3100 LIBS="-lgsm"
3101 if test "$cross_compiling" = yes; then
3102 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: cannot run test program while cross compiling
3105 See \`config.log' for more details." >&2;}
3106 { (exit 1); exit 1; }; }
3107 else
3108 cat >conftest.$ac_ext <<_ACEOF
3109 #line $LINENO "configure"
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3116 #include <gsm.h>
3119 main ()
3122 int option = 0;
3123 gsm handle = gsm_create();
3124 return (gsm_option(handle, GSM_OPT_WAV49, &option) == -1) ? 1 : 0;
3127 return 0;
3129 _ACEOF
3130 rm -f conftest$ac_exeext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3132 (eval $ac_link) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 GSM=2
3142 else
3143 echo "$as_me: program exited with status $ac_status" >&5
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3148 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3150 if test "x$GSM" == "x2"; then
3151 H323_SYSTEM_GSM=1
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3154 { echo "$as_me:$LINENO: Using system gsm" >&5
3155 echo "$as_me: Using system gsm" >&6;}
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3160 LIBS=$OLD_LIBS
3163 H323_SYSTEM_GSM=$H323_SYSTEM_GSM
3165 cat >>confdefs.h <<_ACEOF
3166 #define H323_SYSTEM_GSM $H323_SYSTEM_GSM
3167 _ACEOF
3171 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3182 inttypes.h stdint.h unistd.h
3184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3185 echo "$as_me:$LINENO: checking for $ac_header" >&5
3186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 $ac_includes_default
3199 #include <$ac_header>
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 eval "$as_ac_Header=yes"
3214 else
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 eval "$as_ac_Header=no"
3220 rm -f conftest.$ac_objext conftest.$ac_ext
3222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3225 cat >>confdefs.h <<_ACEOF
3226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3227 _ACEOF
3231 done
3234 echo "$as_me:$LINENO: checking for short" >&5
3235 echo $ECHO_N "checking for short... $ECHO_C" >&6
3236 if test "${ac_cv_type_short+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 cat >conftest.$ac_ext <<_ACEOF
3240 #line $LINENO "configure"
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246 $ac_includes_default
3248 main ()
3250 if ((short *) 0)
3251 return 0;
3252 if (sizeof (short))
3253 return 0;
3255 return 0;
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_type_short=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 ac_cv_type_short=no
3277 rm -f conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3280 echo "${ECHO_T}$ac_cv_type_short" >&6
3282 echo "$as_me:$LINENO: checking size of short" >&5
3283 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3284 if test "${ac_cv_sizeof_short+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 if test "$ac_cv_type_short" = yes; then
3288 # The cast to unsigned long works around a bug in the HP C Compiler
3289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3291 # This bug is HP SR number 8606223364.
3292 if test "$cross_compiling" = yes; then
3293 # Depending upon the size, compute the lo and hi bounds.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 #line $LINENO "configure"
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301 $ac_includes_default
3303 main ()
3305 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3306 test_array [0] = 0
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -s conftest.$ac_objext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_lo=0 ac_mid=0
3325 while :; do
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 $ac_includes_default
3335 main ()
3337 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3338 test_array [0] = 0
3341 return 0;
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_hi=$ac_mid; break
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 ac_lo=`expr $ac_mid + 1`
3362 if test $ac_lo -le $ac_mid; then
3363 ac_lo= ac_hi=
3364 break
3366 ac_mid=`expr 2 '*' $ac_mid + 1`
3368 rm -f conftest.$ac_objext conftest.$ac_ext
3369 done
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 cat >conftest.$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 $ac_includes_default
3383 main ()
3385 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3386 test_array [0] = 0
3389 return 0;
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_hi=-1 ac_mid=-1
3405 while :; do
3406 cat >conftest.$ac_ext <<_ACEOF
3407 #line $LINENO "configure"
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 $ac_includes_default
3415 main ()
3417 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3418 test_array [0] = 0
3421 return 0;
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3436 ac_lo=$ac_mid; break
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 ac_hi=`expr '(' $ac_mid ')' - 1`
3442 if test $ac_mid -le $ac_hi; then
3443 ac_lo= ac_hi=
3444 break
3446 ac_mid=`expr 2 '*' $ac_mid`
3448 rm -f conftest.$ac_objext conftest.$ac_ext
3449 done
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 ac_lo= ac_hi=
3456 rm -f conftest.$ac_objext conftest.$ac_ext
3458 rm -f conftest.$ac_objext conftest.$ac_ext
3459 # Binary search between lo and hi bounds.
3460 while test "x$ac_lo" != "x$ac_hi"; do
3461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 $ac_includes_default
3471 main ()
3473 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3474 test_array [0] = 0
3477 return 0;
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_hi=$ac_mid
3493 else
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 ac_lo=`expr '(' $ac_mid ')' + 1`
3499 rm -f conftest.$ac_objext conftest.$ac_ext
3500 done
3501 case $ac_lo in
3502 ?*) ac_cv_sizeof_short=$ac_lo;;
3503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3504 See \`config.log' for more details." >&5
3505 echo "$as_me: error: cannot compute sizeof (short), 77
3506 See \`config.log' for more details." >&2;}
3507 { (exit 1); exit 1; }; } ;;
3508 esac
3509 else
3510 if test "$cross_compiling" = yes; then
3511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3512 See \`config.log' for more details." >&5
3513 echo "$as_me: error: cannot run test program while cross compiling
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3516 else
3517 cat >conftest.$ac_ext <<_ACEOF
3518 #line $LINENO "configure"
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_includes_default
3525 long longval () { return (long) (sizeof (short)); }
3526 unsigned long ulongval () { return (long) (sizeof (short)); }
3527 #include <stdio.h>
3528 #include <stdlib.h>
3530 main ()
3533 FILE *f = fopen ("conftest.val", "w");
3534 if (! f)
3535 exit (1);
3536 if (((long) (sizeof (short))) < 0)
3538 long i = longval ();
3539 if (i != ((long) (sizeof (short))))
3540 exit (1);
3541 fprintf (f, "%ld\n", i);
3543 else
3545 unsigned long i = ulongval ();
3546 if (i != ((long) (sizeof (short))))
3547 exit (1);
3548 fprintf (f, "%lu\n", i);
3550 exit (ferror (f) || fclose (f) != 0);
3553 return 0;
3555 _ACEOF
3556 rm -f conftest$ac_exeext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558 (eval $ac_link) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 ac_cv_sizeof_short=`cat conftest.val`
3568 else
3569 echo "$as_me: program exited with status $ac_status" >&5
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ( exit $ac_status )
3574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3575 See \`config.log' for more details." >&5
3576 echo "$as_me: error: cannot compute sizeof (short), 77
3577 See \`config.log' for more details." >&2;}
3578 { (exit 1); exit 1; }; }
3580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3583 rm -f conftest.val
3584 else
3585 ac_cv_sizeof_short=0
3588 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3589 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3590 cat >>confdefs.h <<_ACEOF
3591 #define SIZEOF_SHORT $ac_cv_sizeof_short
3592 _ACEOF
3595 echo "$as_me:$LINENO: checking for int" >&5
3596 echo $ECHO_N "checking for int... $ECHO_C" >&6
3597 if test "${ac_cv_type_int+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 $ac_includes_default
3609 main ()
3611 if ((int *) 0)
3612 return 0;
3613 if (sizeof (int))
3614 return 0;
3616 return 0;
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3631 ac_cv_type_int=yes
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_cv_type_int=no
3638 rm -f conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3641 echo "${ECHO_T}$ac_cv_type_int" >&6
3643 echo "$as_me:$LINENO: checking size of int" >&5
3644 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3645 if test "${ac_cv_sizeof_int+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test "$ac_cv_type_int" = yes; then
3649 # The cast to unsigned long works around a bug in the HP C Compiler
3650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3652 # This bug is HP SR number 8606223364.
3653 if test "$cross_compiling" = yes; then
3654 # Depending upon the size, compute the lo and hi bounds.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 $ac_includes_default
3664 main ()
3666 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3667 test_array [0] = 0
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_lo=0 ac_mid=0
3686 while :; do
3687 cat >conftest.$ac_ext <<_ACEOF
3688 #line $LINENO "configure"
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 $ac_includes_default
3696 main ()
3698 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3699 test_array [0] = 0
3702 return 0;
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_hi=$ac_mid; break
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_lo=`expr $ac_mid + 1`
3723 if test $ac_lo -le $ac_mid; then
3724 ac_lo= ac_hi=
3725 break
3727 ac_mid=`expr 2 '*' $ac_mid + 1`
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3730 done
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3744 main ()
3746 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3747 test_array [0] = 0
3750 return 0;
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_hi=-1 ac_mid=-1
3766 while :; do
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #line $LINENO "configure"
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 $ac_includes_default
3776 main ()
3778 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3779 test_array [0] = 0
3782 return 0;
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_lo=$ac_mid; break
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_hi=`expr '(' $ac_mid ')' - 1`
3803 if test $ac_mid -le $ac_hi; then
3804 ac_lo= ac_hi=
3805 break
3807 ac_mid=`expr 2 '*' $ac_mid`
3809 rm -f conftest.$ac_objext conftest.$ac_ext
3810 done
3811 else
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 ac_lo= ac_hi=
3817 rm -f conftest.$ac_objext conftest.$ac_ext
3819 rm -f conftest.$ac_objext conftest.$ac_ext
3820 # Binary search between lo and hi bounds.
3821 while test "x$ac_lo" != "x$ac_hi"; do
3822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3823 cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 $ac_includes_default
3832 main ()
3834 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3835 test_array [0] = 0
3838 return 0;
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -s conftest.$ac_objext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 ac_hi=$ac_mid
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 ac_lo=`expr '(' $ac_mid ')' + 1`
3860 rm -f conftest.$ac_objext conftest.$ac_ext
3861 done
3862 case $ac_lo in
3863 ?*) ac_cv_sizeof_int=$ac_lo;;
3864 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3865 See \`config.log' for more details." >&5
3866 echo "$as_me: error: cannot compute sizeof (int), 77
3867 See \`config.log' for more details." >&2;}
3868 { (exit 1); exit 1; }; } ;;
3869 esac
3870 else
3871 if test "$cross_compiling" = yes; then
3872 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3873 See \`config.log' for more details." >&5
3874 echo "$as_me: error: cannot run test program while cross compiling
3875 See \`config.log' for more details." >&2;}
3876 { (exit 1); exit 1; }; }
3877 else
3878 cat >conftest.$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 $ac_includes_default
3886 long longval () { return (long) (sizeof (int)); }
3887 unsigned long ulongval () { return (long) (sizeof (int)); }
3888 #include <stdio.h>
3889 #include <stdlib.h>
3891 main ()
3894 FILE *f = fopen ("conftest.val", "w");
3895 if (! f)
3896 exit (1);
3897 if (((long) (sizeof (int))) < 0)
3899 long i = longval ();
3900 if (i != ((long) (sizeof (int))))
3901 exit (1);
3902 fprintf (f, "%ld\n", i);
3904 else
3906 unsigned long i = ulongval ();
3907 if (i != ((long) (sizeof (int))))
3908 exit (1);
3909 fprintf (f, "%lu\n", i);
3911 exit (ferror (f) || fclose (f) != 0);
3914 return 0;
3916 _ACEOF
3917 rm -f conftest$ac_exeext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919 (eval $ac_link) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 ac_cv_sizeof_int=`cat conftest.val`
3929 else
3930 echo "$as_me: program exited with status $ac_status" >&5
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ( exit $ac_status )
3935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3936 See \`config.log' for more details." >&5
3937 echo "$as_me: error: cannot compute sizeof (int), 77
3938 See \`config.log' for more details." >&2;}
3939 { (exit 1); exit 1; }; }
3941 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3944 rm -f conftest.val
3945 else
3946 ac_cv_sizeof_int=0
3949 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3950 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3951 cat >>confdefs.h <<_ACEOF
3952 #define SIZEOF_INT $ac_cv_sizeof_int
3953 _ACEOF
3956 echo "$as_me:$LINENO: checking for long" >&5
3957 echo $ECHO_N "checking for long... $ECHO_C" >&6
3958 if test "${ac_cv_type_long+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 cat >conftest.$ac_ext <<_ACEOF
3962 #line $LINENO "configure"
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 $ac_includes_default
3970 main ()
3972 if ((long *) 0)
3973 return 0;
3974 if (sizeof (long))
3975 return 0;
3977 return 0;
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_type_long=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_cv_type_long=no
3999 rm -f conftest.$ac_objext conftest.$ac_ext
4001 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4002 echo "${ECHO_T}$ac_cv_type_long" >&6
4004 echo "$as_me:$LINENO: checking size of long" >&5
4005 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4006 if test "${ac_cv_sizeof_long+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 if test "$ac_cv_type_long" = yes; then
4010 # The cast to unsigned long works around a bug in the HP C Compiler
4011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4013 # This bug is HP SR number 8606223364.
4014 if test "$cross_compiling" = yes; then
4015 # Depending upon the size, compute the lo and hi bounds.
4016 cat >conftest.$ac_ext <<_ACEOF
4017 #line $LINENO "configure"
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 main ()
4027 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4028 test_array [0] = 0
4031 return 0;
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_lo=0 ac_mid=0
4047 while :; do
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 $ac_includes_default
4057 main ()
4059 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4060 test_array [0] = 0
4063 return 0;
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_hi=$ac_mid; break
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_lo=`expr $ac_mid + 1`
4084 if test $ac_lo -le $ac_mid; then
4085 ac_lo= ac_hi=
4086 break
4088 ac_mid=`expr 2 '*' $ac_mid + 1`
4090 rm -f conftest.$ac_objext conftest.$ac_ext
4091 done
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4105 main ()
4107 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4108 test_array [0] = 0
4111 return 0;
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_hi=-1 ac_mid=-1
4127 while :; do
4128 cat >conftest.$ac_ext <<_ACEOF
4129 #line $LINENO "configure"
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 $ac_includes_default
4137 main ()
4139 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4140 test_array [0] = 0
4143 return 0;
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_lo=$ac_mid; break
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_hi=`expr '(' $ac_mid ')' - 1`
4164 if test $ac_mid -le $ac_hi; then
4165 ac_lo= ac_hi=
4166 break
4168 ac_mid=`expr 2 '*' $ac_mid`
4170 rm -f conftest.$ac_objext conftest.$ac_ext
4171 done
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 ac_lo= ac_hi=
4178 rm -f conftest.$ac_objext conftest.$ac_ext
4180 rm -f conftest.$ac_objext conftest.$ac_ext
4181 # Binary search between lo and hi bounds.
4182 while test "x$ac_lo" != "x$ac_hi"; do
4183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4184 cat >conftest.$ac_ext <<_ACEOF
4185 #line $LINENO "configure"
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 $ac_includes_default
4193 main ()
4195 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4196 test_array [0] = 0
4199 return 0;
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_hi=$ac_mid
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_lo=`expr '(' $ac_mid ')' + 1`
4221 rm -f conftest.$ac_objext conftest.$ac_ext
4222 done
4223 case $ac_lo in
4224 ?*) ac_cv_sizeof_long=$ac_lo;;
4225 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4226 See \`config.log' for more details." >&5
4227 echo "$as_me: error: cannot compute sizeof (long), 77
4228 See \`config.log' for more details." >&2;}
4229 { (exit 1); exit 1; }; } ;;
4230 esac
4231 else
4232 if test "$cross_compiling" = yes; then
4233 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4234 See \`config.log' for more details." >&5
4235 echo "$as_me: error: cannot run test program while cross compiling
4236 See \`config.log' for more details." >&2;}
4237 { (exit 1); exit 1; }; }
4238 else
4239 cat >conftest.$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 $ac_includes_default
4247 long longval () { return (long) (sizeof (long)); }
4248 unsigned long ulongval () { return (long) (sizeof (long)); }
4249 #include <stdio.h>
4250 #include <stdlib.h>
4252 main ()
4255 FILE *f = fopen ("conftest.val", "w");
4256 if (! f)
4257 exit (1);
4258 if (((long) (sizeof (long))) < 0)
4260 long i = longval ();
4261 if (i != ((long) (sizeof (long))))
4262 exit (1);
4263 fprintf (f, "%ld\n", i);
4265 else
4267 unsigned long i = ulongval ();
4268 if (i != ((long) (sizeof (long))))
4269 exit (1);
4270 fprintf (f, "%lu\n", i);
4272 exit (ferror (f) || fclose (f) != 0);
4275 return 0;
4277 _ACEOF
4278 rm -f conftest$ac_exeext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4280 (eval $ac_link) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_sizeof_long=`cat conftest.val`
4290 else
4291 echo "$as_me: program exited with status $ac_status" >&5
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ( exit $ac_status )
4296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4297 See \`config.log' for more details." >&5
4298 echo "$as_me: error: cannot compute sizeof (long), 77
4299 See \`config.log' for more details." >&2;}
4300 { (exit 1); exit 1; }; }
4302 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 rm -f conftest.val
4306 else
4307 ac_cv_sizeof_long=0
4310 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4311 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4312 cat >>confdefs.h <<_ACEOF
4313 #define SIZEOF_LONG $ac_cv_sizeof_long
4314 _ACEOF
4317 echo "$as_me:$LINENO: checking for long long" >&5
4318 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4319 if test "${ac_cv_type_long_long+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 cat >conftest.$ac_ext <<_ACEOF
4323 #line $LINENO "configure"
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 $ac_includes_default
4331 main ()
4333 if ((long long *) 0)
4334 return 0;
4335 if (sizeof (long long))
4336 return 0;
4338 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -s conftest.$ac_objext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_type_long_long=yes
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 ac_cv_type_long_long=no
4360 rm -f conftest.$ac_objext conftest.$ac_ext
4362 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4363 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4365 echo "$as_me:$LINENO: checking size of long long" >&5
4366 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4367 if test "${ac_cv_sizeof_long_long+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test "$ac_cv_type_long_long" = yes; then
4371 # The cast to unsigned long works around a bug in the HP C Compiler
4372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4374 # This bug is HP SR number 8606223364.
4375 if test "$cross_compiling" = yes; then
4376 # Depending upon the size, compute the lo and hi bounds.
4377 cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
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 long))) >= 0)];
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>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_lo=0 ac_mid=0
4408 while :; do
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4418 main ()
4420 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4421 test_array [0] = 0
4424 return 0;
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 (eval $ac_try) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_hi=$ac_mid; break
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_lo=`expr $ac_mid + 1`
4445 if test $ac_lo -le $ac_mid; then
4446 ac_lo= ac_hi=
4447 break
4449 ac_mid=`expr 2 '*' $ac_mid + 1`
4451 rm -f conftest.$ac_objext conftest.$ac_ext
4452 done
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line $LINENO "configure"
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4466 main ()
4468 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
4469 test_array [0] = 0
4472 return 0;
4474 _ACEOF
4475 rm -f conftest.$ac_objext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 (eval $ac_try) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 ac_hi=-1 ac_mid=-1
4488 while :; do
4489 cat >conftest.$ac_ext <<_ACEOF
4490 #line $LINENO "configure"
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4498 main ()
4500 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
4501 test_array [0] = 0
4504 return 0;
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_lo=$ac_mid; break
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 ac_hi=`expr '(' $ac_mid ')' - 1`
4525 if test $ac_mid -le $ac_hi; then
4526 ac_lo= ac_hi=
4527 break
4529 ac_mid=`expr 2 '*' $ac_mid`
4531 rm -f conftest.$ac_objext conftest.$ac_ext
4532 done
4533 else
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4537 ac_lo= ac_hi=
4539 rm -f conftest.$ac_objext conftest.$ac_ext
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4542 # Binary search between lo and hi bounds.
4543 while test "x$ac_lo" != "x$ac_hi"; do
4544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4545 cat >conftest.$ac_ext <<_ACEOF
4546 #line $LINENO "configure"
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4554 main ()
4556 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
4557 test_array [0] = 0
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 ac_hi=$ac_mid
4576 else
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_lo=`expr '(' $ac_mid ')' + 1`
4582 rm -f conftest.$ac_objext conftest.$ac_ext
4583 done
4584 case $ac_lo in
4585 ?*) ac_cv_sizeof_long_long=$ac_lo;;
4586 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
4587 See \`config.log' for more details." >&5
4588 echo "$as_me: error: cannot compute sizeof (long long), 77
4589 See \`config.log' for more details." >&2;}
4590 { (exit 1); exit 1; }; } ;;
4591 esac
4592 else
4593 if test "$cross_compiling" = yes; then
4594 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4595 See \`config.log' for more details." >&5
4596 echo "$as_me: error: cannot run test program while cross compiling
4597 See \`config.log' for more details." >&2;}
4598 { (exit 1); exit 1; }; }
4599 else
4600 cat >conftest.$ac_ext <<_ACEOF
4601 #line $LINENO "configure"
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 long longval () { return (long) (sizeof (long long)); }
4609 unsigned long ulongval () { return (long) (sizeof (long long)); }
4610 #include <stdio.h>
4611 #include <stdlib.h>
4613 main ()
4616 FILE *f = fopen ("conftest.val", "w");
4617 if (! f)
4618 exit (1);
4619 if (((long) (sizeof (long long))) < 0)
4621 long i = longval ();
4622 if (i != ((long) (sizeof (long long))))
4623 exit (1);
4624 fprintf (f, "%ld\n", i);
4626 else
4628 unsigned long i = ulongval ();
4629 if (i != ((long) (sizeof (long long))))
4630 exit (1);
4631 fprintf (f, "%lu\n", i);
4633 exit (ferror (f) || fclose (f) != 0);
4636 return 0;
4638 _ACEOF
4639 rm -f conftest$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641 (eval $ac_link) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_sizeof_long_long=`cat conftest.val`
4651 else
4652 echo "$as_me: program exited with status $ac_status" >&5
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 ( exit $ac_status )
4657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute sizeof (long long), 77
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; }
4663 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 rm -f conftest.val
4667 else
4668 ac_cv_sizeof_long_long=0
4671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4672 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4673 cat >>confdefs.h <<_ACEOF
4674 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4675 _ACEOF
4679 case 2 in
4680 $ac_cv_sizeof_short) SIZE16="short";;
4681 $ac_cv_sizeof_int) SIZE16="int";;
4682 esac
4684 case 4 in
4685 $ac_cv_sizeof_int) SIZE32="int";;
4686 $ac_cv_sizeof_long) SIZE32="long";;
4687 $ac_cv_sizeof_short) SIZE32="short";;
4688 esac
4694 localspeex="xxx"
4695 # Check whether --enable-localspeex or --disable-localspeex was given.
4696 if test "${enable_localspeex+set}" = set; then
4697 enableval="$enable_localspeex"
4698 localspeex=$enableval
4701 if test "${localspeex}" = "yes" ; then
4702 { echo "$as_me:$LINENO: Forcing use of local Speex sources" >&5
4703 echo "$as_me: Forcing use of local Speex sources" >&6;}
4704 elif test "${localspeex}" = "no" ; then
4705 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
4706 echo "$as_me: Forcing use of system Speex library" >&6;}
4707 cat >>confdefs.h <<\_ACEOF
4708 #define H323_SYSTEM_SPEEX 1
4709 _ACEOF
4711 H323_SYSTEM_SPEEX=1
4713 else
4714 echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
4715 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6
4716 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 ac_check_lib_save_LIBS=$LIBS
4720 LIBS="-lspeex $LIBS"
4721 cat >conftest.$ac_ext <<_ACEOF
4722 #line $LINENO "configure"
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 #ifdef __cplusplus
4731 extern "C"
4732 #endif
4733 /* We use char because int might match the return type of a gcc2
4734 builtin and then its argument prototype would still apply. */
4735 char speex_encoder_destroy ();
4737 main ()
4739 speex_encoder_destroy ();
4741 return 0;
4743 _ACEOF
4744 rm -f conftest.$ac_objext conftest$ac_exeext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4746 (eval $ac_link) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -s conftest$ac_exeext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 ac_cv_lib_speex_speex_encoder_destroy=yes
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 ac_cv_lib_speex_speex_encoder_destroy=no
4763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4764 LIBS=$ac_check_lib_save_LIBS
4766 echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
4767 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6
4768 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
4769 SPEEX=1
4772 if test "x$SPEEX" = "x"; then
4773 { echo "$as_me:$LINENO: Forcing use of local Speex library" >&5
4774 echo "$as_me: Forcing use of local Speex library" >&6;}
4775 else
4776 echo "$as_me:$LINENO: checking system Speex version" >&5
4777 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6
4778 cat > t.c <<C_FILE
4779 #include <speex.h>
4780 #include <speex_header.h>
4781 #include <stdio.h>
4782 int main(int argc,char *argv)
4784 SpeexHeader header;
4785 speex_init_header(&header, 1, 1, &speex_nb_mode);
4786 printf("%s\n", header.speex_version);
4788 C_FILE
4789 cc -o t t.c -lspeex > /dev/null 2>&1
4790 if test \! -x t ; then
4791 echo "$as_me:$LINENO: result: cannot determine - using library version" >&5
4792 echo "${ECHO_T}cannot determine - using library version" >&6
4793 else
4794 SYSVER=`./t`
4795 rm -f t t.c
4796 echo "$as_me:$LINENO: result: $SYSVER" >&5
4797 echo "${ECHO_T}$SYSVER" >&6
4798 echo "$as_me:$LINENO: checking library Speex version" >&5
4799 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6
4800 LIBVER=`grep "#define VERSION" ./audio/Speex/libspeex/misc.h | sed -e 's/^.*speex\-//' -e 's/\"//'`
4801 echo "$as_me:$LINENO: result: $LIBVER" >&5
4802 echo "${ECHO_T}$LIBVER" >&6
4803 echo "$as_me:$LINENO: checking Speex versions" >&5
4804 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6
4805 cat > t.pl <<P_FILE
4807 \$sysver = @ARGV[0];
4808 \$libver = @ARGV[1];
4809 @lib = split /\./, \$libver;
4810 while (@lib < 3) {
4811 @lib[0+@lib] = "0";
4813 @sys = split /\./, \$sysver;
4814 while (@sys < 3) {
4815 @sys[0+@sys] = "0";
4817 \$i = 0;
4818 while (\$i < 3) {
4819 #print "comparing " . @sys[\$i] . " and " . @lib[\$i] . "\n";
4820 if (\@sys[\$i] < @lib[\$i]) {
4821 print "0";
4822 die;
4824 \$i++;
4826 print "1";
4828 P_FILE
4829 SPEEX=`perl t.pl $SYSVER $LIBVER`
4830 rm t.pl
4831 if test "x$SPEEX" = "x" ; then
4832 echo "$as_me:$LINENO: result: library version is more recent" >&5
4833 echo "${ECHO_T}library version is more recent" >&6
4834 else
4835 echo "$as_me:$LINENO: result: system version is more recent" >&5
4836 echo "${ECHO_T}system version is more recent" >&6
4837 cat >>confdefs.h <<\_ACEOF
4838 #define H323_SYSTEM_SPEEX 1
4839 _ACEOF
4841 H323_SYSTEM_SPEEX=1
4849 HAS_FFMPEG=1
4854 HAS_IXJ=0
4858 for ac_header in linux/telephony.h sys/telephony.h /usr/local/include/sys/telephony.h
4860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4862 echo "$as_me:$LINENO: checking for $ac_header" >&5
4863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4869 else
4870 # Is the header compilable?
4871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4873 cat >conftest.$ac_ext <<_ACEOF
4874 #line $LINENO "configure"
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4881 #include <$ac_header>
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_header_compiler=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 ac_header_compiler=no
4902 rm -f conftest.$ac_objext conftest.$ac_ext
4903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4904 echo "${ECHO_T}$ac_header_compiler" >&6
4906 # Is the header present?
4907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4911 /* confdefs.h. */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #include <$ac_header>
4917 _ACEOF
4918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } >/dev/null; then
4926 if test -s conftest.err; then
4927 ac_cpp_err=$ac_c_preproc_warn_flag
4928 else
4929 ac_cpp_err=
4931 else
4932 ac_cpp_err=yes
4934 if test -z "$ac_cpp_err"; then
4935 ac_header_preproc=yes
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 ac_header_preproc=no
4942 rm -f conftest.err conftest.$ac_ext
4943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4944 echo "${ECHO_T}$ac_header_preproc" >&6
4946 # So? What about this header?
4947 case $ac_header_compiler:$ac_header_preproc in
4948 yes:no )
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4954 cat <<\_ASBOX
4955 ## ------------------------------------ ##
4956 ## Report this to bug-autoconf@gnu.org. ##
4957 ## ------------------------------------ ##
4958 _ASBOX
4960 sed "s/^/$as_me: WARNING: /" >&2
4962 no:yes )
4963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4970 cat <<\_ASBOX
4971 ## ------------------------------------ ##
4972 ## Report this to bug-autoconf@gnu.org. ##
4973 ## ------------------------------------ ##
4974 _ASBOX
4976 sed "s/^/$as_me: WARNING: /" >&2
4978 esac
4979 echo "$as_me:$LINENO: checking for $ac_header" >&5
4980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 eval "$as_ac_Header=$ac_header_preproc"
4986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4991 cat >>confdefs.h <<_ACEOF
4992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993 _ACEOF
4994 HAS_IXJ=1
4997 done
4999 if test "x$HAS_IXJ" != "x" ; then
5000 echo "$as_me:$LINENO: checking if ixjuser.h actually compiles" >&5
5001 echo $ECHO_N "checking if ixjuser.h actually compiles... $ECHO_C" >&6
5002 cat >conftest.$ac_ext <<_ACEOF
5003 #line $LINENO "configure"
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 #include <linux/ixjuser.h>
5011 main ()
5013 int main(int ac,char **av) { return 0; }
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 HAS_IXJ=1
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 HAS_IXJ=
5037 rm -f conftest.$ac_objext conftest.$ac_ext
5038 if test "x$HAS_IXJ" != "x" ; then
5039 echo "$as_me:$LINENO: result: yes" >&5
5040 echo "${ECHO_T}yes" >&6
5041 HAS_IXJ=1
5042 else
5043 echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6
5051 HAS_VPB=0
5052 vpb=yes
5053 # Check whether --enable-vpb or --disable-vpb was given.
5054 if test "${enable_vpb+set}" = set; then
5055 enableval="$enable_vpb"
5056 vpb=$enableval
5058 echo "$as_me:$LINENO: checking Voicetronix vpb" >&5
5059 echo $ECHO_N "checking Voicetronix vpb... $ECHO_C" >&6
5060 if test "$vpb" = "yes" ; then
5061 HAS_VPB=1
5062 echo "$as_me:$LINENO: result: enabled" >&5
5063 echo "${ECHO_T}enabled" >&6
5064 else
5065 echo "$as_me:$LINENO: result: disabled" >&5
5066 echo "${ECHO_T}disabled" >&6
5073 for ac_header in capi20.h
5075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5077 echo "$as_me:$LINENO: checking for $ac_header" >&5
5078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5084 else
5085 # Is the header compilable?
5086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 $ac_includes_default
5096 #include <$ac_header>
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_header_compiler=yes
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_header_compiler=no
5117 rm -f conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119 echo "${ECHO_T}$ac_header_compiler" >&6
5121 # Is the header present?
5122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <$ac_header>
5132 _ACEOF
5133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } >/dev/null; then
5141 if test -s conftest.err; then
5142 ac_cpp_err=$ac_c_preproc_warn_flag
5143 else
5144 ac_cpp_err=
5146 else
5147 ac_cpp_err=yes
5149 if test -z "$ac_cpp_err"; then
5150 ac_header_preproc=yes
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 ac_header_preproc=no
5157 rm -f conftest.err conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5159 echo "${ECHO_T}$ac_header_preproc" >&6
5161 # So? What about this header?
5162 case $ac_header_compiler:$ac_header_preproc in
5163 yes:no )
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169 cat <<\_ASBOX
5170 ## ------------------------------------ ##
5171 ## Report this to bug-autoconf@gnu.org. ##
5172 ## ------------------------------------ ##
5173 _ASBOX
5175 sed "s/^/$as_me: WARNING: /" >&2
5177 no:yes )
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185 cat <<\_ASBOX
5186 ## ------------------------------------ ##
5187 ## Report this to bug-autoconf@gnu.org. ##
5188 ## ------------------------------------ ##
5189 _ASBOX
5191 sed "s/^/$as_me: WARNING: /" >&2
5193 esac
5194 echo "$as_me:$LINENO: checking for $ac_header" >&5
5195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 eval "$as_ac_Header=$ac_header_preproc"
5201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206 cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5208 _ACEOF
5209 HAS_CAPI20_H=1
5212 done
5214 HAS_CAPI=0
5215 capi=yes
5216 # Check whether --enable-capi or --disable-capi was given.
5217 if test "${enable_capi+set}" = set; then
5218 enableval="$enable_capi"
5219 capi=$enableval
5221 echo "$as_me:$LINENO: checking CAPI" >&5
5222 echo $ECHO_N "checking CAPI... $ECHO_C" >&6
5223 if test "$capi" = "yes" ; then
5224 if test "x$HAS_CAPI20_H" != "x" ; then
5225 HAS_CAPI=1
5226 echo "$as_me:$LINENO: result: enabled" >&5
5227 echo "${ECHO_T}enabled" >&6
5228 else
5229 echo "$as_me:$LINENO: result: not available" >&5
5230 echo "${ECHO_T}not available" >&6
5232 else
5233 echo "$as_me:$LINENO: result: disabled" >&5
5234 echo "${ECHO_T}disabled" >&6
5240 OLD_CPPFLAGS=$CPPFLAGS
5241 CPPFLAGS=-D__LINUX__
5243 HAS_SANGOMA=
5245 for ac_header in /usr/local/include/libpri.h
5247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5249 echo "$as_me:$LINENO: checking for $ac_header" >&5
5250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5256 else
5257 # Is the header compilable?
5258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5260 cat >conftest.$ac_ext <<_ACEOF
5261 #line $LINENO "configure"
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 $ac_includes_default
5268 #include <$ac_header>
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_header_compiler=yes
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_header_compiler=no
5289 rm -f conftest.$ac_objext conftest.$ac_ext
5290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6
5293 # Is the header present?
5294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <$ac_header>
5304 _ACEOF
5305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } >/dev/null; then
5313 if test -s conftest.err; then
5314 ac_cpp_err=$ac_c_preproc_warn_flag
5315 else
5316 ac_cpp_err=
5318 else
5319 ac_cpp_err=yes
5321 if test -z "$ac_cpp_err"; then
5322 ac_header_preproc=yes
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_header_preproc=no
5329 rm -f conftest.err conftest.$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331 echo "${ECHO_T}$ac_header_preproc" >&6
5333 # So? What about this header?
5334 case $ac_header_compiler:$ac_header_preproc in
5335 yes:no )
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5341 cat <<\_ASBOX
5342 ## ------------------------------------ ##
5343 ## Report this to bug-autoconf@gnu.org. ##
5344 ## ------------------------------------ ##
5345 _ASBOX
5347 sed "s/^/$as_me: WARNING: /" >&2
5349 no:yes )
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5357 cat <<\_ASBOX
5358 ## ------------------------------------ ##
5359 ## Report this to bug-autoconf@gnu.org. ##
5360 ## ------------------------------------ ##
5361 _ASBOX
5363 sed "s/^/$as_me: WARNING: /" >&2
5365 esac
5366 echo "$as_me:$LINENO: checking for $ac_header" >&5
5367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 eval "$as_ac_Header=$ac_header_preproc"
5373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378 cat >>confdefs.h <<_ACEOF
5379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380 _ACEOF
5381 HAS_SANGOMA=1
5384 done
5386 if test "x$HAS_SANGOMA" != "x" ; then
5388 for ac_header in /usr/local/include/libsangoma.h
5390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392 echo "$as_me:$LINENO: checking for $ac_header" >&5
5393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5399 else
5400 # Is the header compilable?
5401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5403 cat >conftest.$ac_ext <<_ACEOF
5404 #line $LINENO "configure"
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 $ac_includes_default
5411 #include <$ac_header>
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415 (eval $ac_compile) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_header_compiler=yes
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 ac_header_compiler=no
5432 rm -f conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5434 echo "${ECHO_T}$ac_header_compiler" >&6
5436 # Is the header present?
5437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line $LINENO "configure"
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 #include <$ac_header>
5447 _ACEOF
5448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } >/dev/null; then
5456 if test -s conftest.err; then
5457 ac_cpp_err=$ac_c_preproc_warn_flag
5458 else
5459 ac_cpp_err=
5461 else
5462 ac_cpp_err=yes
5464 if test -z "$ac_cpp_err"; then
5465 ac_header_preproc=yes
5466 else
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 ac_header_preproc=no
5472 rm -f conftest.err conftest.$ac_ext
5473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5474 echo "${ECHO_T}$ac_header_preproc" >&6
5476 # So? What about this header?
5477 case $ac_header_compiler:$ac_header_preproc in
5478 yes:no )
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 cat <<\_ASBOX
5485 ## ------------------------------------ ##
5486 ## Report this to bug-autoconf@gnu.org. ##
5487 ## ------------------------------------ ##
5488 _ASBOX
5490 sed "s/^/$as_me: WARNING: /" >&2
5492 no:yes )
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5500 cat <<\_ASBOX
5501 ## ------------------------------------ ##
5502 ## Report this to bug-autoconf@gnu.org. ##
5503 ## ------------------------------------ ##
5504 _ASBOX
5506 sed "s/^/$as_me: WARNING: /" >&2
5508 esac
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 eval "$as_ac_Header=$ac_header_preproc"
5516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5521 cat >>confdefs.h <<_ACEOF
5522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5523 _ACEOF
5524 HAS_SANGOMA=1
5527 done
5529 if test "x$HAS_SANGOMA" != "x" ; then
5530 echo "$as_me:$LINENO: checking for pri_new_cb in -lpri" >&5
5531 echo $ECHO_N "checking for pri_new_cb in -lpri... $ECHO_C" >&6
5532 if test "${ac_cv_lib_pri_pri_new_cb+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535 ac_check_lib_save_LIBS=$LIBS
5536 LIBS="-lpri $LIBS"
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char pri_new_cb ();
5553 main ()
5555 pri_new_cb ();
5557 return 0;
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_lib_pri_pri_new_cb=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_cv_lib_pri_pri_new_cb=no
5579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5582 echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_new_cb" >&5
5583 echo "${ECHO_T}$ac_cv_lib_pri_pri_new_cb" >&6
5584 if test $ac_cv_lib_pri_pri_new_cb = yes; then
5585 HAS_SANGOMA=1
5588 if test "x$HAS_SANGOMA" = "x" ; then
5589 { echo "$as_me:$LINENO: *** If the latest libri is installed in /usr/local/lib" >&5
5590 echo "$as_me: *** If the latest libri is installed in /usr/local/lib" >&ensure it is not obscured by an older version in /usr/lib;}
5591 else
5592 echo "$as_me:$LINENO: checking for sangoma_create_socket in -lsangoma" >&5
5593 echo $ECHO_N "checking for sangoma_create_socket in -lsangoma... $ECHO_C" >&6
5594 if test "${ac_cv_lib_sangoma_sangoma_create_socket+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lsangoma $LIBS"
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line $LINENO "configure"
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5607 /* Override any gcc2 internal prototype to avoid an error. */
5608 #ifdef __cplusplus
5609 extern "C"
5610 #endif
5611 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */
5613 char sangoma_create_socket ();
5615 main ()
5617 sangoma_create_socket ();
5619 return 0;
5621 _ACEOF
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_lib_sangoma_sangoma_create_socket=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_lib_sangoma_sangoma_create_socket=no
5641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5644 echo "$as_me:$LINENO: result: $ac_cv_lib_sangoma_sangoma_create_socket" >&5
5645 echo "${ECHO_T}$ac_cv_lib_sangoma_sangoma_create_socket" >&6
5646 if test $ac_cv_lib_sangoma_sangoma_create_socket = yes; then
5647 HAS_SANGOMA=1
5650 if test "x$HAS_SANGOMA" != "x" ; then
5651 cat >>confdefs.h <<\_ACEOF
5652 #define HAS_SANGOMA 1
5653 _ACEOF
5655 HAS_SANGOMA=1
5662 CPPFLAGS=$OLD_CPPFLAGS
5666 if test -d audio/gsm-amr ; then
5667 ac_config_files="$ac_config_files audio/gsm-amr/Makefile"
5670 if test -d audio/GSM0610 ; then
5671 ac_config_files="$ac_config_files audio/GSM0610/Makefile"
5674 if test -d audio/iLBC ; then
5675 ac_config_files="$ac_config_files audio/iLBC/Makefile"
5678 if test -d audio/Speex ; then
5679 ac_config_files="$ac_config_files audio/Speex/Makefile"
5682 if test -d audio/LPC_10 ; then
5683 ac_config_files="$ac_config_files audio/LPC_10/Makefile"
5686 if test -d audio/G726 ; then
5687 ac_config_files="$ac_config_files audio/G726/Makefile"
5690 if test -d audio/IMA_ADPCM ; then
5691 ac_config_files="$ac_config_files audio/IMA_ADPCM/Makefile"
5694 if test -d video/H.261-vic ; then
5695 ac_config_files="$ac_config_files video/H.261-vic/Makefile"
5698 if test -d video/H.263-ffmpeg ; then
5699 ac_config_files="$ac_config_files video/H.263-ffmpeg/Makefile"
5702 if test -d LID/IxJ ; then
5703 ac_config_files="$ac_config_files LID/IxJ/Makefile"
5706 if test -d LID/VPB ; then
5707 ac_config_files="$ac_config_files LID/VPB/Makefile"
5710 if test -d LID/CAPI ; then
5711 ac_config_files="$ac_config_files LID/CAPI/Makefile"
5715 ac_config_files="$ac_config_files Makefile"
5720 ac_config_files="$ac_config_files audio/Speex/libspeex/speex_config_types.h"
5721 cat >confcache <<\_ACEOF
5722 # This file is a shell script that caches the results of configure
5723 # tests run on this system so they can be shared between configure
5724 # scripts and configure runs, see configure's option --config-cache.
5725 # It is not useful on other systems. If it contains results you don't
5726 # want to keep, you may remove or edit it.
5728 # config.status only pays attention to the cache file if you give it
5729 # the --recheck option to rerun configure.
5731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5733 # following values.
5735 _ACEOF
5737 # The following way of writing the cache mishandles newlines in values,
5738 # but we know of no workaround that is simple, portable, and efficient.
5739 # So, don't put newlines in cache variables' values.
5740 # Ultrix sh set writes to stderr and can't be redirected directly,
5741 # and sets the high bit in the cache file unless we assign to the vars.
5743 (set) 2>&1 |
5744 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5745 *ac_space=\ *)
5746 # `set' does not quote correctly, so add quotes (double-quote
5747 # substitution turns \\\\ into \\, and sed turns \\ into \).
5748 sed -n \
5749 "s/'/'\\\\''/g;
5750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5753 # `set' quotes correctly as required by POSIX, so do not add quotes.
5754 sed -n \
5755 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5757 esac;
5759 sed '
5760 t clear
5761 : clear
5762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5763 t end
5764 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5765 : end' >>confcache
5766 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5767 if test -w $cache_file; then
5768 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5769 cat confcache >$cache_file
5770 else
5771 echo "not updating unwritable cache $cache_file"
5774 rm -f confcache
5776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5777 # Let make expand exec_prefix.
5778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5780 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5781 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5782 # trailing colons and then remove the whole line if VPATH becomes empty
5783 # (actually we leave an empty line to preserve line numbers).
5784 if test "x$srcdir" = x.; then
5785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5786 s/:*\$(srcdir):*/:/;
5787 s/:*\${srcdir}:*/:/;
5788 s/:*@srcdir@:*/:/;
5789 s/^\([^=]*=[ ]*\):*/\1/;
5790 s/:*$//;
5791 s/^[^=]*=[ ]*$//;
5795 # Transform confdefs.h into DEFS.
5796 # Protect against shell expansion while executing Makefile rules.
5797 # Protect against Makefile macro expansion.
5799 # If the first sed substitution is executed (which looks for macros that
5800 # take arguments), then we branch to the quote section. Otherwise,
5801 # look for a macro that doesn't take arguments.
5802 cat >confdef2opt.sed <<\_ACEOF
5803 t clear
5804 : clear
5805 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5806 t quote
5807 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5808 t quote
5810 : quote
5811 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5812 s,\[,\\&,g
5813 s,\],\\&,g
5814 s,\$,$$,g
5816 _ACEOF
5817 # We use echo to avoid assuming a particular line-breaking character.
5818 # The extra dot is to prevent the shell from consuming trailing
5819 # line-breaks from the sub-command output. A line-break within
5820 # single-quotes doesn't work because, if this script is created in a
5821 # platform that uses two characters for line-breaks (e.g., DOS), tr
5822 # would break.
5823 ac_LF_and_DOT=`echo; echo .`
5824 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5825 rm -f confdef2opt.sed
5828 ac_libobjs=
5829 ac_ltlibobjs=
5830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5831 # 1. Remove the extension, and $U if already installed.
5832 ac_i=`echo "$ac_i" |
5833 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5834 # 2. Add them.
5835 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5836 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5837 done
5838 LIBOBJS=$ac_libobjs
5840 LTLIBOBJS=$ac_ltlibobjs
5844 : ${CONFIG_STATUS=./config.status}
5845 ac_clean_files_save=$ac_clean_files
5846 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5847 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5848 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5849 cat >$CONFIG_STATUS <<_ACEOF
5850 #! $SHELL
5851 # Generated by $as_me.
5852 # Run this file to recreate the current configuration.
5853 # Compiler output produced by configure, useful for debugging
5854 # configure, is in config.log if it exists.
5856 debug=false
5857 ac_cs_recheck=false
5858 ac_cs_silent=false
5859 SHELL=\${CONFIG_SHELL-$SHELL}
5860 _ACEOF
5862 cat >>$CONFIG_STATUS <<\_ACEOF
5863 ## --------------------- ##
5864 ## M4sh Initialization. ##
5865 ## --------------------- ##
5867 # Be Bourne compatible
5868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5869 emulate sh
5870 NULLCMD=:
5871 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5872 # is contrary to our usage. Disable this feature.
5873 alias -g '${1+"$@"}'='"$@"'
5874 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5875 set -o posix
5878 # Support unset when possible.
5879 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5880 as_unset=unset
5881 else
5882 as_unset=false
5886 # Work around bugs in pre-3.0 UWIN ksh.
5887 $as_unset ENV MAIL MAILPATH
5888 PS1='$ '
5889 PS2='> '
5890 PS4='+ '
5892 # NLS nuisances.
5893 for as_var in \
5894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5896 LC_TELEPHONE LC_TIME
5898 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5899 eval $as_var=C; export $as_var
5900 else
5901 $as_unset $as_var
5903 done
5905 # Required to use basename.
5906 if expr a : '\(a\)' >/dev/null 2>&1; then
5907 as_expr=expr
5908 else
5909 as_expr=false
5912 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5913 as_basename=basename
5914 else
5915 as_basename=false
5919 # Name of the executable.
5920 as_me=`$as_basename "$0" ||
5921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5922 X"$0" : 'X\(//\)$' \| \
5923 X"$0" : 'X\(/\)$' \| \
5924 . : '\(.\)' 2>/dev/null ||
5925 echo X/"$0" |
5926 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5927 /^X\/\(\/\/\)$/{ s//\1/; q; }
5928 /^X\/\(\/\).*/{ s//\1/; q; }
5929 s/.*/./; q'`
5932 # PATH needs CR, and LINENO needs CR and PATH.
5933 # Avoid depending upon Character Ranges.
5934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5937 as_cr_digits='0123456789'
5938 as_cr_alnum=$as_cr_Letters$as_cr_digits
5940 # The user is always right.
5941 if test "${PATH_SEPARATOR+set}" != set; then
5942 echo "#! /bin/sh" >conf$$.sh
5943 echo "exit 0" >>conf$$.sh
5944 chmod +x conf$$.sh
5945 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5946 PATH_SEPARATOR=';'
5947 else
5948 PATH_SEPARATOR=:
5950 rm -f conf$$.sh
5954 as_lineno_1=$LINENO
5955 as_lineno_2=$LINENO
5956 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5957 test "x$as_lineno_1" != "x$as_lineno_2" &&
5958 test "x$as_lineno_3" = "x$as_lineno_2" || {
5959 # Find who we are. Look in the path if we contain no path at all
5960 # relative or not.
5961 case $0 in
5962 *[\\/]* ) as_myself=$0 ;;
5963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5969 done
5972 esac
5973 # We did not find ourselves, most probably we were run as `sh COMMAND'
5974 # in which case we are not to be found in the path.
5975 if test "x$as_myself" = x; then
5976 as_myself=$0
5978 if test ! -f "$as_myself"; then
5979 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5980 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5981 { (exit 1); exit 1; }; }
5983 case $CONFIG_SHELL in
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for as_base in sh bash ksh sh5; do
5991 case $as_dir in
5993 if ("$as_dir/$as_base" -c '
5994 as_lineno_1=$LINENO
5995 as_lineno_2=$LINENO
5996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5997 test "x$as_lineno_1" != "x$as_lineno_2" &&
5998 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5999 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6000 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6001 CONFIG_SHELL=$as_dir/$as_base
6002 export CONFIG_SHELL
6003 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6004 fi;;
6005 esac
6006 done
6007 done
6009 esac
6011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6012 # uniformly replaced by the line number. The first 'sed' inserts a
6013 # line-number line before each line; the second 'sed' does the real
6014 # work. The second script uses 'N' to pair each line-number line
6015 # with the numbered line, and appends trailing '-' during
6016 # substitution so that $LINENO is not a special case at line end.
6017 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6018 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6019 sed '=' <$as_myself |
6020 sed '
6022 s,$,-,
6023 : loop
6024 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6025 t loop
6026 s,-$,,
6027 s,^['$as_cr_digits']*\n,,
6028 ' >$as_me.lineno &&
6029 chmod +x $as_me.lineno ||
6030 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6031 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6032 { (exit 1); exit 1; }; }
6034 # Don't try to exec as it changes $[0], causing all sort of problems
6035 # (the dirname of $[0] is not the place where we might find the
6036 # original and so on. Autoconf is especially sensible to this).
6037 . ./$as_me.lineno
6038 # Exit status is that of the last command.
6039 exit
6043 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6044 *c*,-n*) ECHO_N= ECHO_C='
6045 ' ECHO_T=' ' ;;
6046 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6047 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6048 esac
6050 if expr a : '\(a\)' >/dev/null 2>&1; then
6051 as_expr=expr
6052 else
6053 as_expr=false
6056 rm -f conf$$ conf$$.exe conf$$.file
6057 echo >conf$$.file
6058 if ln -s conf$$.file conf$$ 2>/dev/null; then
6059 # We could just check for DJGPP; but this test a) works b) is more generic
6060 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6061 if test -f conf$$.exe; then
6062 # Don't use ln at all; we don't have any links
6063 as_ln_s='cp -p'
6064 else
6065 as_ln_s='ln -s'
6067 elif ln conf$$.file conf$$ 2>/dev/null; then
6068 as_ln_s=ln
6069 else
6070 as_ln_s='cp -p'
6072 rm -f conf$$ conf$$.exe conf$$.file
6074 if mkdir -p . 2>/dev/null; then
6075 as_mkdir_p=:
6076 else
6077 as_mkdir_p=false
6080 as_executable_p="test -f"
6082 # Sed expression to map a string onto a valid CPP name.
6083 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6085 # Sed expression to map a string onto a valid variable name.
6086 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6089 # IFS
6090 # We need space, tab and new line, in precisely that order.
6091 as_nl='
6093 IFS=" $as_nl"
6095 # CDPATH.
6096 $as_unset CDPATH
6098 exec 6>&1
6100 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6101 # report actual input values of CONFIG_FILES etc. instead of their
6102 # values after options handling. Logging --version etc. is OK.
6103 exec 5>>config.log
6105 echo
6106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6107 ## Running $as_me. ##
6108 _ASBOX
6109 } >&5
6110 cat >&5 <<_CSEOF
6112 This file was extended by $as_me, which was
6113 generated by GNU Autoconf 2.57. Invocation command line was
6115 CONFIG_FILES = $CONFIG_FILES
6116 CONFIG_HEADERS = $CONFIG_HEADERS
6117 CONFIG_LINKS = $CONFIG_LINKS
6118 CONFIG_COMMANDS = $CONFIG_COMMANDS
6119 $ $0 $@
6121 _CSEOF
6122 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6123 echo >&5
6124 _ACEOF
6126 # Files that config.status was made for.
6127 if test -n "$ac_config_files"; then
6128 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6131 if test -n "$ac_config_headers"; then
6132 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6135 if test -n "$ac_config_links"; then
6136 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6139 if test -n "$ac_config_commands"; then
6140 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6143 cat >>$CONFIG_STATUS <<\_ACEOF
6145 ac_cs_usage="\
6146 \`$as_me' instantiates files from templates according to the
6147 current configuration.
6149 Usage: $0 [OPTIONS] [FILE]...
6151 -h, --help print this help, then exit
6152 -V, --version print version number, then exit
6153 -q, --quiet do not print progress messages
6154 -d, --debug don't remove temporary files
6155 --recheck update $as_me by reconfiguring in the same conditions
6156 --file=FILE[:TEMPLATE]
6157 instantiate the configuration file FILE
6159 Configuration files:
6160 $config_files
6162 Report bugs to <bug-autoconf@gnu.org>."
6163 _ACEOF
6165 cat >>$CONFIG_STATUS <<_ACEOF
6166 ac_cs_version="\\
6167 config.status
6168 configured by $0, generated by GNU Autoconf 2.57,
6169 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6171 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6172 Free Software Foundation, Inc.
6173 This config.status script is free software; the Free Software Foundation
6174 gives unlimited permission to copy, distribute and modify it."
6175 srcdir=$srcdir
6176 _ACEOF
6178 cat >>$CONFIG_STATUS <<\_ACEOF
6179 # If no file are specified by the user, then we need to provide default
6180 # value. By we need to know if files were specified by the user.
6181 ac_need_defaults=:
6182 while test $# != 0
6184 case $1 in
6185 --*=*)
6186 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6187 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6188 ac_shift=:
6191 ac_option=$1
6192 ac_optarg=$2
6193 ac_shift=shift
6195 *) # This is not an option, so the user has probably given explicit
6196 # arguments.
6197 ac_option=$1
6198 ac_need_defaults=false;;
6199 esac
6201 case $ac_option in
6202 # Handling of the options.
6203 _ACEOF
6204 cat >>$CONFIG_STATUS <<\_ACEOF
6205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6206 ac_cs_recheck=: ;;
6207 --version | --vers* | -V )
6208 echo "$ac_cs_version"; exit 0 ;;
6209 --he | --h)
6210 # Conflict between --help and --header
6211 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6212 Try \`$0 --help' for more information." >&5
6213 echo "$as_me: error: ambiguous option: $1
6214 Try \`$0 --help' for more information." >&2;}
6215 { (exit 1); exit 1; }; };;
6216 --help | --hel | -h )
6217 echo "$ac_cs_usage"; exit 0 ;;
6218 --debug | --d* | -d )
6219 debug=: ;;
6220 --file | --fil | --fi | --f )
6221 $ac_shift
6222 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6223 ac_need_defaults=false;;
6224 --header | --heade | --head | --hea )
6225 $ac_shift
6226 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6227 ac_need_defaults=false;;
6228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6229 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6230 ac_cs_silent=: ;;
6232 # This is an error.
6233 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6234 Try \`$0 --help' for more information." >&5
6235 echo "$as_me: error: unrecognized option: $1
6236 Try \`$0 --help' for more information." >&2;}
6237 { (exit 1); exit 1; }; } ;;
6239 *) ac_config_targets="$ac_config_targets $1" ;;
6241 esac
6242 shift
6243 done
6245 ac_configure_extra_args=
6247 if $ac_cs_silent; then
6248 exec 6>/dev/null
6249 ac_configure_extra_args="$ac_configure_extra_args --silent"
6252 _ACEOF
6253 cat >>$CONFIG_STATUS <<_ACEOF
6254 if \$ac_cs_recheck; then
6255 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6256 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6259 _ACEOF
6265 cat >>$CONFIG_STATUS <<\_ACEOF
6266 for ac_config_target in $ac_config_targets
6268 case "$ac_config_target" in
6269 # Handling of arguments.
6270 "audio/gsm-amr/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/gsm-amr/Makefile" ;;
6271 "audio/GSM0610/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/GSM0610/Makefile" ;;
6272 "audio/iLBC/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/iLBC/Makefile" ;;
6273 "audio/Speex/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/Makefile" ;;
6274 "audio/LPC_10/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/LPC_10/Makefile" ;;
6275 "audio/G726/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/G726/Makefile" ;;
6276 "audio/IMA_ADPCM/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/IMA_ADPCM/Makefile" ;;
6277 "video/H.261-vic/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.261-vic/Makefile" ;;
6278 "video/H.263-ffmpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.263-ffmpeg/Makefile" ;;
6279 "LID/IxJ/Makefile" ) CONFIG_FILES="$CONFIG_FILES LID/IxJ/Makefile" ;;
6280 "LID/VPB/Makefile" ) CONFIG_FILES="$CONFIG_FILES LID/VPB/Makefile" ;;
6281 "LID/CAPI/Makefile" ) CONFIG_FILES="$CONFIG_FILES LID/CAPI/Makefile" ;;
6282 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6283 "audio/Speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/libspeex/speex_config_types.h" ;;
6284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6286 { (exit 1); exit 1; }; };;
6287 esac
6288 done
6290 # If the user did not use the arguments to specify the items to instantiate,
6291 # then the envvar interface is used. Set only those that are not.
6292 # We use the long form for the default assignment because of an extremely
6293 # bizarre bug on SunOS 4.1.3.
6294 if $ac_need_defaults; then
6295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6298 # Have a temporary directory for convenience. Make it in the build tree
6299 # simply because there is no reason to put it here, and in addition,
6300 # creating and moving files from /tmp can sometimes cause problems.
6301 # Create a temporary directory, and hook for its removal unless debugging.
6302 $debug ||
6304 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6305 trap '{ (exit 1); exit 1; }' 1 2 13 15
6308 # Create a (secure) tmp directory for tmp files.
6311 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6312 test -n "$tmp" && test -d "$tmp"
6313 } ||
6315 tmp=./confstat$$-$RANDOM
6316 (umask 077 && mkdir $tmp)
6317 } ||
6319 echo "$me: cannot create a temporary directory in ." >&2
6320 { (exit 1); exit 1; }
6323 _ACEOF
6325 cat >>$CONFIG_STATUS <<_ACEOF
6328 # CONFIG_FILES section.
6331 # No need to generate the scripts if there are no CONFIG_FILES.
6332 # This happens for instance when ./config.status config.h
6333 if test -n "\$CONFIG_FILES"; then
6334 # Protect against being on the right side of a sed subst in config.status.
6335 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6336 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6337 s,@SHELL@,$SHELL,;t t
6338 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6339 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6340 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6341 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6342 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6343 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6344 s,@exec_prefix@,$exec_prefix,;t t
6345 s,@prefix@,$prefix,;t t
6346 s,@program_transform_name@,$program_transform_name,;t t
6347 s,@bindir@,$bindir,;t t
6348 s,@sbindir@,$sbindir,;t t
6349 s,@libexecdir@,$libexecdir,;t t
6350 s,@datadir@,$datadir,;t t
6351 s,@sysconfdir@,$sysconfdir,;t t
6352 s,@sharedstatedir@,$sharedstatedir,;t t
6353 s,@localstatedir@,$localstatedir,;t t
6354 s,@libdir@,$libdir,;t t
6355 s,@includedir@,$includedir,;t t
6356 s,@oldincludedir@,$oldincludedir,;t t
6357 s,@infodir@,$infodir,;t t
6358 s,@mandir@,$mandir,;t t
6359 s,@build_alias@,$build_alias,;t t
6360 s,@host_alias@,$host_alias,;t t
6361 s,@target_alias@,$target_alias,;t t
6362 s,@DEFS@,$DEFS,;t t
6363 s,@ECHO_C@,$ECHO_C,;t t
6364 s,@ECHO_N@,$ECHO_N,;t t
6365 s,@ECHO_T@,$ECHO_T,;t t
6366 s,@LIBS@,$LIBS,;t t
6367 s,@CXX@,$CXX,;t t
6368 s,@CXXFLAGS@,$CXXFLAGS,;t t
6369 s,@LDFLAGS@,$LDFLAGS,;t t
6370 s,@CPPFLAGS@,$CPPFLAGS,;t t
6371 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6372 s,@EXEEXT@,$EXEEXT,;t t
6373 s,@OBJEXT@,$OBJEXT,;t t
6374 s,@CC@,$CC,;t t
6375 s,@CFLAGS@,$CFLAGS,;t t
6376 s,@ac_ct_CC@,$ac_ct_CC,;t t
6377 s,@CPP@,$CPP,;t t
6378 s,@EGREP@,$EGREP,;t t
6379 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6380 s,@LIBDIR@,$LIBDIR,;t t
6381 s,@build@,$build,;t t
6382 s,@build_cpu@,$build_cpu,;t t
6383 s,@build_vendor@,$build_vendor,;t t
6384 s,@build_os@,$build_os,;t t
6385 s,@host@,$host,;t t
6386 s,@host_cpu@,$host_cpu,;t t
6387 s,@host_vendor@,$host_vendor,;t t
6388 s,@host_os@,$host_os,;t t
6389 s,@target@,$target,;t t
6390 s,@target_cpu@,$target_cpu,;t t
6391 s,@target_vendor@,$target_vendor,;t t
6392 s,@target_os@,$target_os,;t t
6393 s,@LDSO@,$LDSO,;t t
6394 s,@H323_GSMAMR_NB_FLOAT@,$H323_GSMAMR_NB_FLOAT,;t t
6395 s,@H323_SYSTEM_GSM@,$H323_SYSTEM_GSM,;t t
6396 s,@SIZE16@,$SIZE16,;t t
6397 s,@SIZE32@,$SIZE32,;t t
6398 s,@H323_SYSTEM_SPEEX@,$H323_SYSTEM_SPEEX,;t t
6399 s,@HAS_FFMPEG@,$HAS_FFMPEG,;t t
6400 s,@HAS_IXJ@,$HAS_IXJ,;t t
6401 s,@HAS_VPB@,$HAS_VPB,;t t
6402 s,@HAS_CAPI@,$HAS_CAPI,;t t
6403 s,@HAS_SANGOMA@,$HAS_SANGOMA,;t t
6404 s,@LIBOBJS@,$LIBOBJS,;t t
6405 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6406 CEOF
6408 _ACEOF
6410 cat >>$CONFIG_STATUS <<\_ACEOF
6411 # Split the substitutions into bite-sized pieces for seds with
6412 # small command number limits, like on Digital OSF/1 and HP-UX.
6413 ac_max_sed_lines=48
6414 ac_sed_frag=1 # Number of current file.
6415 ac_beg=1 # First line for current file.
6416 ac_end=$ac_max_sed_lines # Line after last line for current file.
6417 ac_more_lines=:
6418 ac_sed_cmds=
6419 while $ac_more_lines; do
6420 if test $ac_beg -gt 1; then
6421 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6422 else
6423 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6425 if test ! -s $tmp/subs.frag; then
6426 ac_more_lines=false
6427 else
6428 # The purpose of the label and of the branching condition is to
6429 # speed up the sed processing (if there are no `@' at all, there
6430 # is no need to browse any of the substitutions).
6431 # These are the two extra sed commands mentioned above.
6432 (echo ':t
6433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6434 if test -z "$ac_sed_cmds"; then
6435 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6436 else
6437 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6439 ac_sed_frag=`expr $ac_sed_frag + 1`
6440 ac_beg=$ac_end
6441 ac_end=`expr $ac_end + $ac_max_sed_lines`
6443 done
6444 if test -z "$ac_sed_cmds"; then
6445 ac_sed_cmds=cat
6447 fi # test -n "$CONFIG_FILES"
6449 _ACEOF
6450 cat >>$CONFIG_STATUS <<\_ACEOF
6451 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6453 case $ac_file in
6454 - | *:- | *:-:* ) # input from stdin
6455 cat >$tmp/stdin
6456 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6457 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6458 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6459 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6460 * ) ac_file_in=$ac_file.in ;;
6461 esac
6463 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6466 X"$ac_file" : 'X\(//\)[^/]' \| \
6467 X"$ac_file" : 'X\(//\)$' \| \
6468 X"$ac_file" : 'X\(/\)' \| \
6469 . : '\(.\)' 2>/dev/null ||
6470 echo X"$ac_file" |
6471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6473 /^X\(\/\/\)$/{ s//\1/; q; }
6474 /^X\(\/\).*/{ s//\1/; q; }
6475 s/.*/./; q'`
6476 { if $as_mkdir_p; then
6477 mkdir -p "$ac_dir"
6478 else
6479 as_dir="$ac_dir"
6480 as_dirs=
6481 while test ! -d "$as_dir"; do
6482 as_dirs="$as_dir $as_dirs"
6483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6485 X"$as_dir" : 'X\(//\)[^/]' \| \
6486 X"$as_dir" : 'X\(//\)$' \| \
6487 X"$as_dir" : 'X\(/\)' \| \
6488 . : '\(.\)' 2>/dev/null ||
6489 echo X"$as_dir" |
6490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6492 /^X\(\/\/\)$/{ s//\1/; q; }
6493 /^X\(\/\).*/{ s//\1/; q; }
6494 s/.*/./; q'`
6495 done
6496 test ! -n "$as_dirs" || mkdir $as_dirs
6497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6499 { (exit 1); exit 1; }; }; }
6501 ac_builddir=.
6503 if test "$ac_dir" != .; then
6504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6505 # A "../" for each directory in $ac_dir_suffix.
6506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6507 else
6508 ac_dir_suffix= ac_top_builddir=
6511 case $srcdir in
6512 .) # No --srcdir option. We are building in place.
6513 ac_srcdir=.
6514 if test -z "$ac_top_builddir"; then
6515 ac_top_srcdir=.
6516 else
6517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6518 fi ;;
6519 [\\/]* | ?:[\\/]* ) # Absolute path.
6520 ac_srcdir=$srcdir$ac_dir_suffix;
6521 ac_top_srcdir=$srcdir ;;
6522 *) # Relative path.
6523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6525 esac
6526 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6527 # absolute.
6528 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6529 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6530 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6531 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6535 if test x"$ac_file" != x-; then
6536 { echo "$as_me:$LINENO: creating $ac_file" >&5
6537 echo "$as_me: creating $ac_file" >&6;}
6538 rm -f "$ac_file"
6540 # Let's still pretend it is `configure' which instantiates (i.e., don't
6541 # use $as_me), people would be surprised to read:
6542 # /* config.h. Generated by config.status. */
6543 if test x"$ac_file" = x-; then
6544 configure_input=
6545 else
6546 configure_input="$ac_file. "
6548 configure_input=$configure_input"Generated from `echo $ac_file_in |
6549 sed 's,.*/,,'` by configure."
6551 # First look for the input files in the build tree, otherwise in the
6552 # src tree.
6553 ac_file_inputs=`IFS=:
6554 for f in $ac_file_in; do
6555 case $f in
6556 -) echo $tmp/stdin ;;
6557 [\\/$]*)
6558 # Absolute (can't be DOS-style, as IFS=:)
6559 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6560 echo "$as_me: error: cannot find input file: $f" >&2;}
6561 { (exit 1); exit 1; }; }
6562 echo $f;;
6563 *) # Relative
6564 if test -f "$f"; then
6565 # Build tree
6566 echo $f
6567 elif test -f "$srcdir/$f"; then
6568 # Source tree
6569 echo $srcdir/$f
6570 else
6571 # /dev/null tree
6572 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6573 echo "$as_me: error: cannot find input file: $f" >&2;}
6574 { (exit 1); exit 1; }; }
6575 fi;;
6576 esac
6577 done` || { (exit 1); exit 1; }
6578 _ACEOF
6579 cat >>$CONFIG_STATUS <<_ACEOF
6580 sed "$ac_vpsub
6581 $extrasub
6582 _ACEOF
6583 cat >>$CONFIG_STATUS <<\_ACEOF
6585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6586 s,@configure_input@,$configure_input,;t t
6587 s,@srcdir@,$ac_srcdir,;t t
6588 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6589 s,@top_srcdir@,$ac_top_srcdir,;t t
6590 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6591 s,@builddir@,$ac_builddir,;t t
6592 s,@abs_builddir@,$ac_abs_builddir,;t t
6593 s,@top_builddir@,$ac_top_builddir,;t t
6594 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6595 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6596 rm -f $tmp/stdin
6597 if test x"$ac_file" != x-; then
6598 mv $tmp/out $ac_file
6599 else
6600 cat $tmp/out
6601 rm -f $tmp/out
6604 done
6605 _ACEOF
6607 cat >>$CONFIG_STATUS <<\_ACEOF
6609 { (exit 0); exit 0; }
6610 _ACEOF
6611 chmod +x $CONFIG_STATUS
6612 ac_clean_files=$ac_clean_files_save
6615 # configure is writing to config.log, and then calls config.status.
6616 # config.status does its own redirection, appending to config.log.
6617 # Unfortunately, on DOS this fails, as config.log is still kept open
6618 # by configure, so config.status won't be able to write to it; its
6619 # output is simply discarded. So we exec the FD to /dev/null,
6620 # effectively closing config.log, so it can be properly (re)opened and
6621 # appended to by config.status. When coming back to configure, we
6622 # need to make the FD available again.
6623 if test "$no_create" != yes; then
6624 ac_cs_success=:
6625 ac_config_status_args=
6626 test "$silent" = yes &&
6627 ac_config_status_args="$ac_config_status_args --quiet"
6628 exec 5>/dev/null
6629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6630 exec 5>>config.log
6631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6632 # would make configure fail if this is the last instruction.
6633 $ac_cs_success || { (exit 1); exit 1; }
6636 cat >confcache <<\_ACEOF
6637 # This file is a shell script that caches the results of configure
6638 # tests run on this system so they can be shared between configure
6639 # scripts and configure runs, see configure's option --config-cache.
6640 # It is not useful on other systems. If it contains results you don't
6641 # want to keep, you may remove or edit it.
6643 # config.status only pays attention to the cache file if you give it
6644 # the --recheck option to rerun configure.
6646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6648 # following values.
6650 _ACEOF
6652 # The following way of writing the cache mishandles newlines in values,
6653 # but we know of no workaround that is simple, portable, and efficient.
6654 # So, don't put newlines in cache variables' values.
6655 # Ultrix sh set writes to stderr and can't be redirected directly,
6656 # and sets the high bit in the cache file unless we assign to the vars.
6658 (set) 2>&1 |
6659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6660 *ac_space=\ *)
6661 # `set' does not quote correctly, so add quotes (double-quote
6662 # substitution turns \\\\ into \\, and sed turns \\ into \).
6663 sed -n \
6664 "s/'/'\\\\''/g;
6665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6668 # `set' quotes correctly as required by POSIX, so do not add quotes.
6669 sed -n \
6670 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6672 esac;
6674 sed '
6675 t clear
6676 : clear
6677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6678 t end
6679 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6680 : end' >>confcache
6681 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6682 if test -w $cache_file; then
6683 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6684 cat confcache >$cache_file
6685 else
6686 echo "not updating unwritable cache $cache_file"
6689 rm -f confcache
6691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6692 # Let make expand exec_prefix.
6693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6695 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6696 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6697 # trailing colons and then remove the whole line if VPATH becomes empty
6698 # (actually we leave an empty line to preserve line numbers).
6699 if test "x$srcdir" = x.; then
6700 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6701 s/:*\$(srcdir):*/:/;
6702 s/:*\${srcdir}:*/:/;
6703 s/:*@srcdir@:*/:/;
6704 s/^\([^=]*=[ ]*\):*/\1/;
6705 s/:*$//;
6706 s/^[^=]*=[ ]*$//;
6710 # Transform confdefs.h into DEFS.
6711 # Protect against shell expansion while executing Makefile rules.
6712 # Protect against Makefile macro expansion.
6714 # If the first sed substitution is executed (which looks for macros that
6715 # take arguments), then we branch to the quote section. Otherwise,
6716 # look for a macro that doesn't take arguments.
6717 cat >confdef2opt.sed <<\_ACEOF
6718 t clear
6719 : clear
6720 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6721 t quote
6722 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6723 t quote
6725 : quote
6726 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6727 s,\[,\\&,g
6728 s,\],\\&,g
6729 s,\$,$$,g
6731 _ACEOF
6732 # We use echo to avoid assuming a particular line-breaking character.
6733 # The extra dot is to prevent the shell from consuming trailing
6734 # line-breaks from the sub-command output. A line-break within
6735 # single-quotes doesn't work because, if this script is created in a
6736 # platform that uses two characters for line-breaks (e.g., DOS), tr
6737 # would break.
6738 ac_LF_and_DOT=`echo; echo .`
6739 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6740 rm -f confdef2opt.sed
6743 ac_libobjs=
6744 ac_ltlibobjs=
6745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6746 # 1. Remove the extension, and $U if already installed.
6747 ac_i=`echo "$ac_i" |
6748 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6749 # 2. Add them.
6750 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6751 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6752 done
6753 LIBOBJS=$ac_libobjs
6755 LTLIBOBJS=$ac_ltlibobjs
6759 : ${CONFIG_STATUS=./config.status}
6760 ac_clean_files_save=$ac_clean_files
6761 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6762 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6763 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6764 cat >$CONFIG_STATUS <<_ACEOF
6765 #! $SHELL
6766 # Generated by $as_me.
6767 # Run this file to recreate the current configuration.
6768 # Compiler output produced by configure, useful for debugging
6769 # configure, is in config.log if it exists.
6771 debug=false
6772 ac_cs_recheck=false
6773 ac_cs_silent=false
6774 SHELL=\${CONFIG_SHELL-$SHELL}
6775 _ACEOF
6777 cat >>$CONFIG_STATUS <<\_ACEOF
6778 ## --------------------- ##
6779 ## M4sh Initialization. ##
6780 ## --------------------- ##
6782 # Be Bourne compatible
6783 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6784 emulate sh
6785 NULLCMD=:
6786 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6787 # is contrary to our usage. Disable this feature.
6788 alias -g '${1+"$@"}'='"$@"'
6789 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6790 set -o posix
6793 # Support unset when possible.
6794 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6795 as_unset=unset
6796 else
6797 as_unset=false
6801 # Work around bugs in pre-3.0 UWIN ksh.
6802 $as_unset ENV MAIL MAILPATH
6803 PS1='$ '
6804 PS2='> '
6805 PS4='+ '
6807 # NLS nuisances.
6808 for as_var in \
6809 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6810 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6811 LC_TELEPHONE LC_TIME
6813 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6814 eval $as_var=C; export $as_var
6815 else
6816 $as_unset $as_var
6818 done
6820 # Required to use basename.
6821 if expr a : '\(a\)' >/dev/null 2>&1; then
6822 as_expr=expr
6823 else
6824 as_expr=false
6827 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6828 as_basename=basename
6829 else
6830 as_basename=false
6834 # Name of the executable.
6835 as_me=`$as_basename "$0" ||
6836 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6837 X"$0" : 'X\(//\)$' \| \
6838 X"$0" : 'X\(/\)$' \| \
6839 . : '\(.\)' 2>/dev/null ||
6840 echo X/"$0" |
6841 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6842 /^X\/\(\/\/\)$/{ s//\1/; q; }
6843 /^X\/\(\/\).*/{ s//\1/; q; }
6844 s/.*/./; q'`
6847 # PATH needs CR, and LINENO needs CR and PATH.
6848 # Avoid depending upon Character Ranges.
6849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6852 as_cr_digits='0123456789'
6853 as_cr_alnum=$as_cr_Letters$as_cr_digits
6855 # The user is always right.
6856 if test "${PATH_SEPARATOR+set}" != set; then
6857 echo "#! /bin/sh" >conf$$.sh
6858 echo "exit 0" >>conf$$.sh
6859 chmod +x conf$$.sh
6860 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6861 PATH_SEPARATOR=';'
6862 else
6863 PATH_SEPARATOR=:
6865 rm -f conf$$.sh
6869 as_lineno_1=$LINENO
6870 as_lineno_2=$LINENO
6871 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6872 test "x$as_lineno_1" != "x$as_lineno_2" &&
6873 test "x$as_lineno_3" = "x$as_lineno_2" || {
6874 # Find who we are. Look in the path if we contain no path at all
6875 # relative or not.
6876 case $0 in
6877 *[\\/]* ) as_myself=$0 ;;
6878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6884 done
6887 esac
6888 # We did not find ourselves, most probably we were run as `sh COMMAND'
6889 # in which case we are not to be found in the path.
6890 if test "x$as_myself" = x; then
6891 as_myself=$0
6893 if test ! -f "$as_myself"; then
6894 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6895 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6896 { (exit 1); exit 1; }; }
6898 case $CONFIG_SHELL in
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for as_base in sh bash ksh sh5; do
6906 case $as_dir in
6908 if ("$as_dir/$as_base" -c '
6909 as_lineno_1=$LINENO
6910 as_lineno_2=$LINENO
6911 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6912 test "x$as_lineno_1" != "x$as_lineno_2" &&
6913 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6914 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6915 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6916 CONFIG_SHELL=$as_dir/$as_base
6917 export CONFIG_SHELL
6918 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6919 fi;;
6920 esac
6921 done
6922 done
6924 esac
6926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6927 # uniformly replaced by the line number. The first 'sed' inserts a
6928 # line-number line before each line; the second 'sed' does the real
6929 # work. The second script uses 'N' to pair each line-number line
6930 # with the numbered line, and appends trailing '-' during
6931 # substitution so that $LINENO is not a special case at line end.
6932 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6933 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6934 sed '=' <$as_myself |
6935 sed '
6937 s,$,-,
6938 : loop
6939 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6940 t loop
6941 s,-$,,
6942 s,^['$as_cr_digits']*\n,,
6943 ' >$as_me.lineno &&
6944 chmod +x $as_me.lineno ||
6945 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6946 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6947 { (exit 1); exit 1; }; }
6949 # Don't try to exec as it changes $[0], causing all sort of problems
6950 # (the dirname of $[0] is not the place where we might find the
6951 # original and so on. Autoconf is especially sensible to this).
6952 . ./$as_me.lineno
6953 # Exit status is that of the last command.
6954 exit
6958 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6959 *c*,-n*) ECHO_N= ECHO_C='
6960 ' ECHO_T=' ' ;;
6961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6963 esac
6965 if expr a : '\(a\)' >/dev/null 2>&1; then
6966 as_expr=expr
6967 else
6968 as_expr=false
6971 rm -f conf$$ conf$$.exe conf$$.file
6972 echo >conf$$.file
6973 if ln -s conf$$.file conf$$ 2>/dev/null; then
6974 # We could just check for DJGPP; but this test a) works b) is more generic
6975 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6976 if test -f conf$$.exe; then
6977 # Don't use ln at all; we don't have any links
6978 as_ln_s='cp -p'
6979 else
6980 as_ln_s='ln -s'
6982 elif ln conf$$.file conf$$ 2>/dev/null; then
6983 as_ln_s=ln
6984 else
6985 as_ln_s='cp -p'
6987 rm -f conf$$ conf$$.exe conf$$.file
6989 if mkdir -p . 2>/dev/null; then
6990 as_mkdir_p=:
6991 else
6992 as_mkdir_p=false
6995 as_executable_p="test -f"
6997 # Sed expression to map a string onto a valid CPP name.
6998 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7000 # Sed expression to map a string onto a valid variable name.
7001 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7004 # IFS
7005 # We need space, tab and new line, in precisely that order.
7006 as_nl='
7008 IFS=" $as_nl"
7010 # CDPATH.
7011 $as_unset CDPATH
7013 exec 6>&1
7015 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7016 # report actual input values of CONFIG_FILES etc. instead of their
7017 # values after options handling. Logging --version etc. is OK.
7018 exec 5>>config.log
7020 echo
7021 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7022 ## Running $as_me. ##
7023 _ASBOX
7024 } >&5
7025 cat >&5 <<_CSEOF
7027 This file was extended by $as_me, which was
7028 generated by GNU Autoconf 2.57. Invocation command line was
7030 CONFIG_FILES = $CONFIG_FILES
7031 CONFIG_HEADERS = $CONFIG_HEADERS
7032 CONFIG_LINKS = $CONFIG_LINKS
7033 CONFIG_COMMANDS = $CONFIG_COMMANDS
7034 $ $0 $@
7036 _CSEOF
7037 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7038 echo >&5
7039 _ACEOF
7041 # Files that config.status was made for.
7042 if test -n "$ac_config_files"; then
7043 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7046 if test -n "$ac_config_headers"; then
7047 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7050 if test -n "$ac_config_links"; then
7051 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7054 if test -n "$ac_config_commands"; then
7055 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7058 cat >>$CONFIG_STATUS <<\_ACEOF
7060 ac_cs_usage="\
7061 \`$as_me' instantiates files from templates according to the
7062 current configuration.
7064 Usage: $0 [OPTIONS] [FILE]...
7066 -h, --help print this help, then exit
7067 -V, --version print version number, then exit
7068 -q, --quiet do not print progress messages
7069 -d, --debug don't remove temporary files
7070 --recheck update $as_me by reconfiguring in the same conditions
7071 --file=FILE[:TEMPLATE]
7072 instantiate the configuration file FILE
7074 Configuration files:
7075 $config_files
7077 Report bugs to <bug-autoconf@gnu.org>."
7078 _ACEOF
7080 cat >>$CONFIG_STATUS <<_ACEOF
7081 ac_cs_version="\\
7082 config.status
7083 configured by $0, generated by GNU Autoconf 2.57,
7084 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7086 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7087 Free Software Foundation, Inc.
7088 This config.status script is free software; the Free Software Foundation
7089 gives unlimited permission to copy, distribute and modify it."
7090 srcdir=$srcdir
7091 _ACEOF
7093 cat >>$CONFIG_STATUS <<\_ACEOF
7094 # If no file are specified by the user, then we need to provide default
7095 # value. By we need to know if files were specified by the user.
7096 ac_need_defaults=:
7097 while test $# != 0
7099 case $1 in
7100 --*=*)
7101 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7102 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7103 ac_shift=:
7106 ac_option=$1
7107 ac_optarg=$2
7108 ac_shift=shift
7110 *) # This is not an option, so the user has probably given explicit
7111 # arguments.
7112 ac_option=$1
7113 ac_need_defaults=false;;
7114 esac
7116 case $ac_option in
7117 # Handling of the options.
7118 _ACEOF
7119 cat >>$CONFIG_STATUS <<\_ACEOF
7120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7121 ac_cs_recheck=: ;;
7122 --version | --vers* | -V )
7123 echo "$ac_cs_version"; exit 0 ;;
7124 --he | --h)
7125 # Conflict between --help and --header
7126 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7127 Try \`$0 --help' for more information." >&5
7128 echo "$as_me: error: ambiguous option: $1
7129 Try \`$0 --help' for more information." >&2;}
7130 { (exit 1); exit 1; }; };;
7131 --help | --hel | -h )
7132 echo "$ac_cs_usage"; exit 0 ;;
7133 --debug | --d* | -d )
7134 debug=: ;;
7135 --file | --fil | --fi | --f )
7136 $ac_shift
7137 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7138 ac_need_defaults=false;;
7139 --header | --heade | --head | --hea )
7140 $ac_shift
7141 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7142 ac_need_defaults=false;;
7143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7145 ac_cs_silent=: ;;
7147 # This is an error.
7148 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7149 Try \`$0 --help' for more information." >&5
7150 echo "$as_me: error: unrecognized option: $1
7151 Try \`$0 --help' for more information." >&2;}
7152 { (exit 1); exit 1; }; } ;;
7154 *) ac_config_targets="$ac_config_targets $1" ;;
7156 esac
7157 shift
7158 done
7160 ac_configure_extra_args=
7162 if $ac_cs_silent; then
7163 exec 6>/dev/null
7164 ac_configure_extra_args="$ac_configure_extra_args --silent"
7167 _ACEOF
7168 cat >>$CONFIG_STATUS <<_ACEOF
7169 if \$ac_cs_recheck; then
7170 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7171 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7174 _ACEOF
7180 cat >>$CONFIG_STATUS <<\_ACEOF
7181 for ac_config_target in $ac_config_targets
7183 case "$ac_config_target" in
7184 # Handling of arguments.
7185 "audio/gsm-amr/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/gsm-amr/Makefile" ;;
7186 "audio/GSM0610/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/GSM0610/Makefile" ;;
7187 "audio/iLBC/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/iLBC/Makefile" ;;
7188 "audio/Speex/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/Makefile" ;;
7189 "audio/LPC_10/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/LPC_10/Makefile" ;;
7190 "audio/G726/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/G726/Makefile" ;;
7191 "audio/IMA_ADPCM/Makefile" ) CONFIG_FILES="$CONFIG_FILES audio/IMA_ADPCM/Makefile" ;;
7192 "video/H.261-vic/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.261-vic/Makefile" ;;
7193 "video/H.263-ffmpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/H.263-ffmpeg/Makefile" ;;
7194 "LID/IxJ/Makefile" ) CONFIG_FILES="$CONFIG_FILES LID/IxJ/Makefile" ;;
7195 "LID/VPB/Makefile" ) CONFIG_FILES="$CONFIG_FILES LID/VPB/Makefile" ;;
7196 "LID/CAPI/Makefile" ) CONFIG_FILES="$CONFIG_FILES LID/CAPI/Makefile" ;;
7197 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7198 "audio/Speex/libspeex/speex_config_types.h" ) CONFIG_FILES="$CONFIG_FILES audio/Speex/libspeex/speex_config_types.h" ;;
7199 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7200 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7201 { (exit 1); exit 1; }; };;
7202 esac
7203 done
7205 # If the user did not use the arguments to specify the items to instantiate,
7206 # then the envvar interface is used. Set only those that are not.
7207 # We use the long form for the default assignment because of an extremely
7208 # bizarre bug on SunOS 4.1.3.
7209 if $ac_need_defaults; then
7210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7213 # Have a temporary directory for convenience. Make it in the build tree
7214 # simply because there is no reason to put it here, and in addition,
7215 # creating and moving files from /tmp can sometimes cause problems.
7216 # Create a temporary directory, and hook for its removal unless debugging.
7217 $debug ||
7219 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7220 trap '{ (exit 1); exit 1; }' 1 2 13 15
7223 # Create a (secure) tmp directory for tmp files.
7226 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7227 test -n "$tmp" && test -d "$tmp"
7228 } ||
7230 tmp=./confstat$$-$RANDOM
7231 (umask 077 && mkdir $tmp)
7232 } ||
7234 echo "$me: cannot create a temporary directory in ." >&2
7235 { (exit 1); exit 1; }
7238 _ACEOF
7240 cat >>$CONFIG_STATUS <<_ACEOF
7243 # CONFIG_FILES section.
7246 # No need to generate the scripts if there are no CONFIG_FILES.
7247 # This happens for instance when ./config.status config.h
7248 if test -n "\$CONFIG_FILES"; then
7249 # Protect against being on the right side of a sed subst in config.status.
7250 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7251 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7252 s,@SHELL@,$SHELL,;t t
7253 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7254 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7255 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7256 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7257 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7258 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7259 s,@exec_prefix@,$exec_prefix,;t t
7260 s,@prefix@,$prefix,;t t
7261 s,@program_transform_name@,$program_transform_name,;t t
7262 s,@bindir@,$bindir,;t t
7263 s,@sbindir@,$sbindir,;t t
7264 s,@libexecdir@,$libexecdir,;t t
7265 s,@datadir@,$datadir,;t t
7266 s,@sysconfdir@,$sysconfdir,;t t
7267 s,@sharedstatedir@,$sharedstatedir,;t t
7268 s,@localstatedir@,$localstatedir,;t t
7269 s,@libdir@,$libdir,;t t
7270 s,@includedir@,$includedir,;t t
7271 s,@oldincludedir@,$oldincludedir,;t t
7272 s,@infodir@,$infodir,;t t
7273 s,@mandir@,$mandir,;t t
7274 s,@build_alias@,$build_alias,;t t
7275 s,@host_alias@,$host_alias,;t t
7276 s,@target_alias@,$target_alias,;t t
7277 s,@DEFS@,$DEFS,;t t
7278 s,@ECHO_C@,$ECHO_C,;t t
7279 s,@ECHO_N@,$ECHO_N,;t t
7280 s,@ECHO_T@,$ECHO_T,;t t
7281 s,@LIBS@,$LIBS,;t t
7282 s,@CXX@,$CXX,;t t
7283 s,@CXXFLAGS@,$CXXFLAGS,;t t
7284 s,@LDFLAGS@,$LDFLAGS,;t t
7285 s,@CPPFLAGS@,$CPPFLAGS,;t t
7286 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7287 s,@EXEEXT@,$EXEEXT,;t t
7288 s,@OBJEXT@,$OBJEXT,;t t
7289 s,@CC@,$CC,;t t
7290 s,@CFLAGS@,$CFLAGS,;t t
7291 s,@ac_ct_CC@,$ac_ct_CC,;t t
7292 s,@CPP@,$CPP,;t t
7293 s,@EGREP@,$EGREP,;t t
7294 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
7295 s,@LIBDIR@,$LIBDIR,;t t
7296 s,@build@,$build,;t t
7297 s,@build_cpu@,$build_cpu,;t t
7298 s,@build_vendor@,$build_vendor,;t t
7299 s,@build_os@,$build_os,;t t
7300 s,@host@,$host,;t t
7301 s,@host_cpu@,$host_cpu,;t t
7302 s,@host_vendor@,$host_vendor,;t t
7303 s,@host_os@,$host_os,;t t
7304 s,@target@,$target,;t t
7305 s,@target_cpu@,$target_cpu,;t t
7306 s,@target_vendor@,$target_vendor,;t t
7307 s,@target_os@,$target_os,;t t
7308 s,@LDSO@,$LDSO,;t t
7309 s,@H323_GSMAMR_NB_FLOAT@,$H323_GSMAMR_NB_FLOAT,;t t
7310 s,@H323_SYSTEM_GSM@,$H323_SYSTEM_GSM,;t t
7311 s,@SIZE16@,$SIZE16,;t t
7312 s,@SIZE32@,$SIZE32,;t t
7313 s,@H323_SYSTEM_SPEEX@,$H323_SYSTEM_SPEEX,;t t
7314 s,@HAS_FFMPEG@,$HAS_FFMPEG,;t t
7315 s,@HAS_IXJ@,$HAS_IXJ,;t t
7316 s,@HAS_VPB@,$HAS_VPB,;t t
7317 s,@HAS_CAPI@,$HAS_CAPI,;t t
7318 s,@HAS_SANGOMA@,$HAS_SANGOMA,;t t
7319 s,@LIBOBJS@,$LIBOBJS,;t t
7320 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7321 CEOF
7323 _ACEOF
7325 cat >>$CONFIG_STATUS <<\_ACEOF
7326 # Split the substitutions into bite-sized pieces for seds with
7327 # small command number limits, like on Digital OSF/1 and HP-UX.
7328 ac_max_sed_lines=48
7329 ac_sed_frag=1 # Number of current file.
7330 ac_beg=1 # First line for current file.
7331 ac_end=$ac_max_sed_lines # Line after last line for current file.
7332 ac_more_lines=:
7333 ac_sed_cmds=
7334 while $ac_more_lines; do
7335 if test $ac_beg -gt 1; then
7336 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7337 else
7338 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7340 if test ! -s $tmp/subs.frag; then
7341 ac_more_lines=false
7342 else
7343 # The purpose of the label and of the branching condition is to
7344 # speed up the sed processing (if there are no `@' at all, there
7345 # is no need to browse any of the substitutions).
7346 # These are the two extra sed commands mentioned above.
7347 (echo ':t
7348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7349 if test -z "$ac_sed_cmds"; then
7350 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7351 else
7352 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7354 ac_sed_frag=`expr $ac_sed_frag + 1`
7355 ac_beg=$ac_end
7356 ac_end=`expr $ac_end + $ac_max_sed_lines`
7358 done
7359 if test -z "$ac_sed_cmds"; then
7360 ac_sed_cmds=cat
7362 fi # test -n "$CONFIG_FILES"
7364 _ACEOF
7365 cat >>$CONFIG_STATUS <<\_ACEOF
7366 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7368 case $ac_file in
7369 - | *:- | *:-:* ) # input from stdin
7370 cat >$tmp/stdin
7371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7375 * ) ac_file_in=$ac_file.in ;;
7376 esac
7378 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7379 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7381 X"$ac_file" : 'X\(//\)[^/]' \| \
7382 X"$ac_file" : 'X\(//\)$' \| \
7383 X"$ac_file" : 'X\(/\)' \| \
7384 . : '\(.\)' 2>/dev/null ||
7385 echo X"$ac_file" |
7386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7388 /^X\(\/\/\)$/{ s//\1/; q; }
7389 /^X\(\/\).*/{ s//\1/; q; }
7390 s/.*/./; q'`
7391 { if $as_mkdir_p; then
7392 mkdir -p "$ac_dir"
7393 else
7394 as_dir="$ac_dir"
7395 as_dirs=
7396 while test ! -d "$as_dir"; do
7397 as_dirs="$as_dir $as_dirs"
7398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7400 X"$as_dir" : 'X\(//\)[^/]' \| \
7401 X"$as_dir" : 'X\(//\)$' \| \
7402 X"$as_dir" : 'X\(/\)' \| \
7403 . : '\(.\)' 2>/dev/null ||
7404 echo X"$as_dir" |
7405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7407 /^X\(\/\/\)$/{ s//\1/; q; }
7408 /^X\(\/\).*/{ s//\1/; q; }
7409 s/.*/./; q'`
7410 done
7411 test ! -n "$as_dirs" || mkdir $as_dirs
7412 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7414 { (exit 1); exit 1; }; }; }
7416 ac_builddir=.
7418 if test "$ac_dir" != .; then
7419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7420 # A "../" for each directory in $ac_dir_suffix.
7421 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7422 else
7423 ac_dir_suffix= ac_top_builddir=
7426 case $srcdir in
7427 .) # No --srcdir option. We are building in place.
7428 ac_srcdir=.
7429 if test -z "$ac_top_builddir"; then
7430 ac_top_srcdir=.
7431 else
7432 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7433 fi ;;
7434 [\\/]* | ?:[\\/]* ) # Absolute path.
7435 ac_srcdir=$srcdir$ac_dir_suffix;
7436 ac_top_srcdir=$srcdir ;;
7437 *) # Relative path.
7438 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7439 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7440 esac
7441 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7442 # absolute.
7443 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7444 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7445 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7446 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7450 if test x"$ac_file" != x-; then
7451 { echo "$as_me:$LINENO: creating $ac_file" >&5
7452 echo "$as_me: creating $ac_file" >&6;}
7453 rm -f "$ac_file"
7455 # Let's still pretend it is `configure' which instantiates (i.e., don't
7456 # use $as_me), people would be surprised to read:
7457 # /* config.h. Generated by config.status. */
7458 if test x"$ac_file" = x-; then
7459 configure_input=
7460 else
7461 configure_input="$ac_file. "
7463 configure_input=$configure_input"Generated from `echo $ac_file_in |
7464 sed 's,.*/,,'` by configure."
7466 # First look for the input files in the build tree, otherwise in the
7467 # src tree.
7468 ac_file_inputs=`IFS=:
7469 for f in $ac_file_in; do
7470 case $f in
7471 -) echo $tmp/stdin ;;
7472 [\\/$]*)
7473 # Absolute (can't be DOS-style, as IFS=:)
7474 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7475 echo "$as_me: error: cannot find input file: $f" >&2;}
7476 { (exit 1); exit 1; }; }
7477 echo $f;;
7478 *) # Relative
7479 if test -f "$f"; then
7480 # Build tree
7481 echo $f
7482 elif test -f "$srcdir/$f"; then
7483 # Source tree
7484 echo $srcdir/$f
7485 else
7486 # /dev/null tree
7487 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7488 echo "$as_me: error: cannot find input file: $f" >&2;}
7489 { (exit 1); exit 1; }; }
7490 fi;;
7491 esac
7492 done` || { (exit 1); exit 1; }
7493 _ACEOF
7494 cat >>$CONFIG_STATUS <<_ACEOF
7495 sed "$ac_vpsub
7496 $extrasub
7497 _ACEOF
7498 cat >>$CONFIG_STATUS <<\_ACEOF
7500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7501 s,@configure_input@,$configure_input,;t t
7502 s,@srcdir@,$ac_srcdir,;t t
7503 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7504 s,@top_srcdir@,$ac_top_srcdir,;t t
7505 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7506 s,@builddir@,$ac_builddir,;t t
7507 s,@abs_builddir@,$ac_abs_builddir,;t t
7508 s,@top_builddir@,$ac_top_builddir,;t t
7509 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7510 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7511 rm -f $tmp/stdin
7512 if test x"$ac_file" != x-; then
7513 mv $tmp/out $ac_file
7514 else
7515 cat $tmp/out
7516 rm -f $tmp/out
7519 done
7520 _ACEOF
7522 cat >>$CONFIG_STATUS <<\_ACEOF
7524 { (exit 0); exit 0; }
7525 _ACEOF
7526 chmod +x $CONFIG_STATUS
7527 ac_clean_files=$ac_clean_files_save
7530 # configure is writing to config.log, and then calls config.status.
7531 # config.status does its own redirection, appending to config.log.
7532 # Unfortunately, on DOS this fails, as config.log is still kept open
7533 # by configure, so config.status won't be able to write to it; its
7534 # output is simply discarded. So we exec the FD to /dev/null,
7535 # effectively closing config.log, so it can be properly (re)opened and
7536 # appended to by config.status. When coming back to configure, we
7537 # need to make the FD available again.
7538 if test "$no_create" != yes; then
7539 ac_cs_success=:
7540 ac_config_status_args=
7541 test "$silent" = yes &&
7542 ac_config_status_args="$ac_config_status_args --quiet"
7543 exec 5>/dev/null
7544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7545 exec 5>>config.log
7546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7547 # would make configure fail if this is the last instruction.
7548 $ac_cs_success || { (exit 1); exit 1; }