Utilise new MergeSym feature to no longer overwrite the source .DEF file when buildin...
[opal.git] / configure
blobe0984b12b6d958a48a06d323fc9dbe7210f4e0d5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="include/opal/manager.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
661 CXXFLAGS
662 ac_ct_CXX
663 OPALDIR
664 INSTALLPREFIX
665 LIBDIR
666 OPAL_VERSION
667 PTLIB_CONFIG
668 PWLIBDIR
669 GCC_HAS_CLZ
671 GREP
672 EGREP
673 SIZE16
674 SIZE32
675 OPAL_SYSTEM_SPEEX
676 OPAL_HAVE_SPEEX_SPEEX_H
677 OPAL_AUDIO
678 OPAL_VIDEO
679 OPAL_SIP
680 OPAL_H323
681 OPAL_IAX2
682 OPAL_H224
683 OPAL_T38FAX
684 OPAL_H450
685 OPAL_H460
686 OPAL_LID
687 OPAL_IVR
688 OPAL_RFC4175
689 OPAL_ZRTP
690 HAS_LIBZRTP
691 OPAL_SRTP
692 HAS_LIBSRTP
693 STDCCFLAGS
694 ENDLDLIBS
695 INSTALL_PROGRAM
696 INSTALL_SCRIPT
697 INSTALL_DATA
698 subdirs
699 LIBOBJS
700 LTLIBOBJS'
701 ac_subst_files=''
702 ac_precious_vars='build_alias
703 host_alias
704 target_alias
706 CFLAGS
707 LDFLAGS
708 LIBS
709 CPPFLAGS
711 CXXFLAGS
713 CPP'
714 ac_subdirs_all='plugins'
716 # Initialize some variables set by options.
717 ac_init_help=
718 ac_init_version=false
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE}'
753 infodir='${datarootdir}/info'
754 htmldir='${docdir}'
755 dvidir='${docdir}'
756 pdfdir='${docdir}'
757 psdir='${docdir}'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
762 ac_prev=
763 ac_dashdash=
764 for ac_option
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
769 ac_prev=
770 continue
773 case $ac_option in
774 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *) ac_optarg=yes ;;
776 esac
778 # Accept the important Cygnus configure options, so we can diagnose typos.
780 case $ac_dashdash$ac_option in
782 ac_dashdash=yes ;;
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
801 --config-cache | -C)
802 cache_file=config.cache ;;
804 -datadir | --datadir | --datadi | --datad)
805 ac_prev=datadir ;;
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
816 -disable-* | --disable-*)
817 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821 { (exit 1); exit 1; }; }
822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823 eval enable_$ac_feature=no ;;
825 -docdir | --docdir | --docdi | --doc | --do)
826 ac_prev=docdir ;;
827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828 docdir=$ac_optarg ;;
830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831 ac_prev=dvidir ;;
832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833 dvidir=$ac_optarg ;;
835 -enable-* | --enable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=\$ac_optarg ;;
844 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846 | --exec | --exe | --ex)
847 ac_prev=exec_prefix ;;
848 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850 | --exec=* | --exe=* | --ex=*)
851 exec_prefix=$ac_optarg ;;
853 -gas | --gas | --ga | --g)
854 # Obsolete; use --with-gas.
855 with_gas=yes ;;
857 -help | --help | --hel | --he | -h)
858 ac_init_help=long ;;
859 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860 ac_init_help=recursive ;;
861 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862 ac_init_help=short ;;
864 -host | --host | --hos | --ho)
865 ac_prev=host_alias ;;
866 -host=* | --host=* | --hos=* | --ho=*)
867 host_alias=$ac_optarg ;;
869 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870 ac_prev=htmldir ;;
871 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872 | --ht=*)
873 htmldir=$ac_optarg ;;
875 -includedir | --includedir | --includedi | --included | --include \
876 | --includ | --inclu | --incl | --inc)
877 ac_prev=includedir ;;
878 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879 | --includ=* | --inclu=* | --incl=* | --inc=*)
880 includedir=$ac_optarg ;;
882 -infodir | --infodir | --infodi | --infod | --info | --inf)
883 ac_prev=infodir ;;
884 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885 infodir=$ac_optarg ;;
887 -libdir | --libdir | --libdi | --libd)
888 ac_prev=libdir ;;
889 -libdir=* | --libdir=* | --libdi=* | --libd=*)
890 libdir=$ac_optarg ;;
892 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893 | --libexe | --libex | --libe)
894 ac_prev=libexecdir ;;
895 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896 | --libexe=* | --libex=* | --libe=*)
897 libexecdir=$ac_optarg ;;
899 -localedir | --localedir | --localedi | --localed | --locale)
900 ac_prev=localedir ;;
901 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902 localedir=$ac_optarg ;;
904 -localstatedir | --localstatedir | --localstatedi | --localstated \
905 | --localstate | --localstat | --localsta | --localst | --locals)
906 ac_prev=localstatedir ;;
907 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909 localstatedir=$ac_optarg ;;
911 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912 ac_prev=mandir ;;
913 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 mandir=$ac_optarg ;;
916 -nfp | --nfp | --nf)
917 # Obsolete; use --without-fp.
918 with_fp=no ;;
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c | -n)
922 no_create=yes ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926 no_recursion=yes ;;
928 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930 | --oldin | --oldi | --old | --ol | --o)
931 ac_prev=oldincludedir ;;
932 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935 oldincludedir=$ac_optarg ;;
937 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938 ac_prev=prefix ;;
939 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940 prefix=$ac_optarg ;;
942 -program-prefix | --program-prefix | --program-prefi | --program-pref \
943 | --program-pre | --program-pr | --program-p)
944 ac_prev=program_prefix ;;
945 -program-prefix=* | --program-prefix=* | --program-prefi=* \
946 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947 program_prefix=$ac_optarg ;;
949 -program-suffix | --program-suffix | --program-suffi | --program-suff \
950 | --program-suf | --program-su | --program-s)
951 ac_prev=program_suffix ;;
952 -program-suffix=* | --program-suffix=* | --program-suffi=* \
953 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954 program_suffix=$ac_optarg ;;
956 -program-transform-name | --program-transform-name \
957 | --program-transform-nam | --program-transform-na \
958 | --program-transform-n | --program-transform- \
959 | --program-transform | --program-transfor \
960 | --program-transfo | --program-transf \
961 | --program-trans | --program-tran \
962 | --progr-tra | --program-tr | --program-t)
963 ac_prev=program_transform_name ;;
964 -program-transform-name=* | --program-transform-name=* \
965 | --program-transform-nam=* | --program-transform-na=* \
966 | --program-transform-n=* | --program-transform-=* \
967 | --program-transform=* | --program-transfor=* \
968 | --program-transfo=* | --program-transf=* \
969 | --program-trans=* | --program-tran=* \
970 | --progr-tra=* | --program-tr=* | --program-t=*)
971 program_transform_name=$ac_optarg ;;
973 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974 ac_prev=pdfdir ;;
975 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976 pdfdir=$ac_optarg ;;
978 -psdir | --psdir | --psdi | --psd | --ps)
979 ac_prev=psdir ;;
980 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981 psdir=$ac_optarg ;;
983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984 | -silent | --silent | --silen | --sile | --sil)
985 silent=yes ;;
987 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988 ac_prev=sbindir ;;
989 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990 | --sbi=* | --sb=*)
991 sbindir=$ac_optarg ;;
993 -sharedstatedir | --sharedstatedir | --sharedstatedi \
994 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995 | --sharedst | --shareds | --shared | --share | --shar \
996 | --sha | --sh)
997 ac_prev=sharedstatedir ;;
998 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001 | --sha=* | --sh=*)
1002 sharedstatedir=$ac_optarg ;;
1004 -site | --site | --sit)
1005 ac_prev=site ;;
1006 -site=* | --site=* | --sit=*)
1007 site=$ac_optarg ;;
1009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010 ac_prev=srcdir ;;
1011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012 srcdir=$ac_optarg ;;
1014 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015 | --syscon | --sysco | --sysc | --sys | --sy)
1016 ac_prev=sysconfdir ;;
1017 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019 sysconfdir=$ac_optarg ;;
1021 -target | --target | --targe | --targ | --tar | --ta | --t)
1022 ac_prev=target_alias ;;
1023 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024 target_alias=$ac_optarg ;;
1026 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027 verbose=yes ;;
1029 -version | --version | --versio | --versi | --vers | -V)
1030 ac_init_version=: ;;
1032 -with-* | --with-*)
1033 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid package name: $ac_package" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039 eval with_$ac_package=\$ac_optarg ;;
1041 -without-* | --without-*)
1042 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=no ;;
1050 --x)
1051 # Obsolete; use --with-x.
1052 with_x=yes ;;
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059 x_includes=$ac_optarg ;;
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066 x_libraries=$ac_optarg ;;
1068 -*) { echo "$as_me: error: unrecognized option: $ac_option
1069 Try \`$0 --help' for more information." >&2
1070 { (exit 1); exit 1; }; }
1073 *=*)
1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078 { (exit 1); exit 1; }; }
1079 eval $ac_envvar=\$ac_optarg
1080 export $ac_envvar ;;
1083 # FIXME: should be removed in autoconf 3.0.
1084 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 esac
1091 done
1093 if test -n "$ac_prev"; then
1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095 { echo "$as_me: error: missing argument to $ac_option" >&2
1096 { (exit 1); exit 1; }; }
1099 # Be sure to have absolute directory names.
1100 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir
1105 eval ac_val=\$$ac_var
1106 case $ac_val in
1107 [\\/$]* | ?:[\\/]* ) continue;;
1108 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1109 esac
1110 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111 { (exit 1); exit 1; }; }
1112 done
1114 # There might be people who depend on the old broken behavior: `$host'
1115 # used to hold the argument of --host etc.
1116 # FIXME: To remove some day.
1117 build=$build_alias
1118 host=$host_alias
1119 target=$target_alias
1121 # FIXME: To remove some day.
1122 if test "x$host_alias" != x; then
1123 if test "x$build_alias" = x; then
1124 cross_compiling=maybe
1125 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126 If a cross compiler is detected then cross compile mode will be used." >&2
1127 elif test "x$build_alias" != "x$host_alias"; then
1128 cross_compiling=yes
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135 test "$silent" = yes && exec 6>/dev/null
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141 { echo "$as_me: error: Working directory cannot be determined" >&2
1142 { (exit 1); exit 1; }; }
1143 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144 { echo "$as_me: error: pwd does not report name of working directory" >&2
1145 { (exit 1); exit 1; }; }
1148 # Find the source files, if location was not specified.
1149 if test -z "$srcdir"; then
1150 ac_srcdir_defaulted=yes
1151 # Try the directory containing this script, then the parent directory.
1152 ac_confdir=`$as_dirname -- "$0" ||
1153 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154 X"$0" : 'X\(//\)[^/]' \| \
1155 X"$0" : 'X\(//\)$' \| \
1156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1157 echo X"$0" |
1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 s//\1/
1162 /^X\(\/\/\)[^/].*/{
1163 s//\1/
1166 /^X\(\/\/\)$/{
1167 s//\1/
1170 /^X\(\/\).*/{
1171 s//\1/
1174 s/.*/./; q'`
1175 srcdir=$ac_confdir
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 srcdir=..
1179 else
1180 ac_srcdir_defaulted=no
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185 { (exit 1); exit 1; }; }
1187 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1188 ac_abs_confdir=`(
1189 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190 { (exit 1); exit 1; }; }
1191 pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 srcdir=.
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1210 # Report the --help message.
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1215 cat <<_ACEOF
1216 \`configure' configures this package to adapt to many kinds of systems.
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1223 Defaults for the options are specified in brackets.
1225 Configuration:
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 [PREFIX]
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1247 For better control, use the options below.
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1269 _ACEOF
1271 cat <<\_ACEOF
1272 _ACEOF
1275 if test -n "$ac_init_help"; then
1277 cat <<\_ACEOF
1279 Optional Features:
1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1282 --disable-versioncheck disable PWLib version check
1283 --enable-localspeex use local version of Speex library rather than system version
1284 --disable-audio disable audio codec support
1285 --disable-video disable video codec support
1286 --disable-sip disable SIP protocol support
1287 --disable-h323 disable H.323 protocol support
1288 --disable-iax disable IAX2 protocol support
1289 --disable-h224 disable H.224 protocol support
1290 --disable-t38 disable T.38 protocol support
1291 --disable-h450 disable H.450
1292 --disable-h460 disable H.460
1293 --disable-lid disable LID support
1294 --disable-ivr disable IVR support
1295 --disable-rfc4175 disable RFC4175 support
1297 Some influential environment variables:
1298 CC C compiler command
1299 CFLAGS C compiler flags
1300 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1301 nonstandard directory <lib dir>
1302 LIBS libraries to pass to the linker, e.g. -l<library>
1303 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1304 you have headers in a nonstandard directory <include dir>
1305 CXX C++ compiler command
1306 CXXFLAGS C++ compiler flags
1307 CPP C preprocessor
1309 Use these variables to override the choices made by `configure' or to help
1310 it to find libraries and programs with nonstandard names/locations.
1312 _ACEOF
1313 ac_status=$?
1316 if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319 test -d "$ac_dir" || continue
1320 ac_builddir=.
1322 case "$ac_dir" in
1323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1326 # A ".." for each directory in $ac_dir_suffix.
1327 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1328 case $ac_top_builddir_sub in
1329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1331 esac ;;
1332 esac
1333 ac_abs_top_builddir=$ac_pwd
1334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335 # for backward compatibility:
1336 ac_top_builddir=$ac_top_build_prefix
1338 case $srcdir in
1339 .) # We are building in place.
1340 ac_srcdir=.
1341 ac_top_srcdir=$ac_top_builddir_sub
1342 ac_abs_top_srcdir=$ac_pwd ;;
1343 [\\/]* | ?:[\\/]* ) # Absolute name.
1344 ac_srcdir=$srcdir$ac_dir_suffix;
1345 ac_top_srcdir=$srcdir
1346 ac_abs_top_srcdir=$srcdir ;;
1347 *) # Relative name.
1348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349 ac_top_srcdir=$ac_top_build_prefix$srcdir
1350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1351 esac
1352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354 cd "$ac_dir" || { ac_status=$?; continue; }
1355 # Check for guested configure.
1356 if test -f "$ac_srcdir/configure.gnu"; then
1357 echo &&
1358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359 elif test -f "$ac_srcdir/configure"; then
1360 echo &&
1361 $SHELL "$ac_srcdir/configure" --help=recursive
1362 else
1363 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1364 fi || ac_status=$?
1365 cd "$ac_pwd" || { ac_status=$?; break; }
1366 done
1369 test -n "$ac_init_help" && exit $ac_status
1370 if $ac_init_version; then
1371 cat <<\_ACEOF
1372 configure
1373 generated by GNU Autoconf 2.61
1375 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1376 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1377 This configure script is free software; the Free Software Foundation
1378 gives unlimited permission to copy, distribute and modify it.
1379 _ACEOF
1380 exit
1382 cat >config.log <<_ACEOF
1383 This file contains any messages produced by compilers while
1384 running configure, to aid debugging if configure makes a mistake.
1386 It was created by $as_me, which was
1387 generated by GNU Autoconf 2.61. Invocation command line was
1389 $ $0 $@
1391 _ACEOF
1392 exec 5>>config.log
1394 cat <<_ASUNAME
1395 ## --------- ##
1396 ## Platform. ##
1397 ## --------- ##
1399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1406 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1408 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1409 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1411 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1412 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1413 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1414 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1416 _ASUNAME
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 echo "PATH: $as_dir"
1424 done
1425 IFS=$as_save_IFS
1427 } >&5
1429 cat >&5 <<_ACEOF
1432 ## ----------- ##
1433 ## Core tests. ##
1434 ## ----------- ##
1436 _ACEOF
1439 # Keep a trace of the command line.
1440 # Strip out --no-create and --no-recursion so they do not pile up.
1441 # Strip out --silent because we don't want to record it for future runs.
1442 # Also quote any args containing shell meta-characters.
1443 # Make two passes to allow for proper duplicate-argument suppression.
1444 ac_configure_args=
1445 ac_configure_args0=
1446 ac_configure_args1=
1447 ac_must_keep_next=false
1448 for ac_pass in 1 2
1450 for ac_arg
1452 case $ac_arg in
1453 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455 | -silent | --silent | --silen | --sile | --sil)
1456 continue ;;
1457 *\'*)
1458 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 esac
1460 case $ac_pass in
1461 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1463 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1464 if test $ac_must_keep_next = true; then
1465 ac_must_keep_next=false # Got value, back to normal.
1466 else
1467 case $ac_arg in
1468 *=* | --config-cache | -C | -disable-* | --disable-* \
1469 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1470 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1471 | -with-* | --with-* | -without-* | --without-* | --x)
1472 case "$ac_configure_args0 " in
1473 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1474 esac
1476 -* ) ac_must_keep_next=true ;;
1477 esac
1479 ac_configure_args="$ac_configure_args '$ac_arg'"
1481 esac
1482 done
1483 done
1484 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1485 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1487 # When interrupted or exit'd, cleanup temporary files, and complete
1488 # config.log. We remove comments because anyway the quotes in there
1489 # would cause problems or look ugly.
1490 # WARNING: Use '\'' to represent an apostrophe within the trap.
1491 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1492 trap 'exit_status=$?
1493 # Save into config.log some information that might help in debugging.
1495 echo
1497 cat <<\_ASBOX
1498 ## ---------------- ##
1499 ## Cache variables. ##
1500 ## ---------------- ##
1501 _ASBOX
1502 echo
1503 # The following way of writing the cache mishandles newlines in values,
1505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1506 eval ac_val=\$$ac_var
1507 case $ac_val in #(
1508 *${as_nl}*)
1509 case $ac_var in #(
1510 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1511 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1512 esac
1513 case $ac_var in #(
1514 _ | IFS | as_nl) ;; #(
1515 *) $as_unset $ac_var ;;
1516 esac ;;
1517 esac
1518 done
1519 (set) 2>&1 |
1520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1521 *${as_nl}ac_space=\ *)
1522 sed -n \
1523 "s/'\''/'\''\\\\'\'''\''/g;
1524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1525 ;; #(
1527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1529 esac |
1530 sort
1532 echo
1534 cat <<\_ASBOX
1535 ## ----------------- ##
1536 ## Output variables. ##
1537 ## ----------------- ##
1538 _ASBOX
1539 echo
1540 for ac_var in $ac_subst_vars
1542 eval ac_val=\$$ac_var
1543 case $ac_val in
1544 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1545 esac
1546 echo "$ac_var='\''$ac_val'\''"
1547 done | sort
1548 echo
1550 if test -n "$ac_subst_files"; then
1551 cat <<\_ASBOX
1552 ## ------------------- ##
1553 ## File substitutions. ##
1554 ## ------------------- ##
1555 _ASBOX
1556 echo
1557 for ac_var in $ac_subst_files
1559 eval ac_val=\$$ac_var
1560 case $ac_val in
1561 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1562 esac
1563 echo "$ac_var='\''$ac_val'\''"
1564 done | sort
1565 echo
1568 if test -s confdefs.h; then
1569 cat <<\_ASBOX
1570 ## ----------- ##
1571 ## confdefs.h. ##
1572 ## ----------- ##
1573 _ASBOX
1574 echo
1575 cat confdefs.h
1576 echo
1578 test "$ac_signal" != 0 &&
1579 echo "$as_me: caught signal $ac_signal"
1580 echo "$as_me: exit $exit_status"
1581 } >&5
1582 rm -f core *.core core.conftest.* &&
1583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1584 exit $exit_status
1586 for ac_signal in 1 2 13 15; do
1587 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1588 done
1589 ac_signal=0
1591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1592 rm -f -r conftest* confdefs.h
1594 # Predefined preprocessor variables.
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_NAME "$PACKAGE_NAME"
1598 _ACEOF
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1603 _ACEOF
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1608 _ACEOF
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_STRING "$PACKAGE_STRING"
1613 _ACEOF
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1618 _ACEOF
1621 # Let the site file select an alternate cache file if it wants to.
1622 # Prefer explicitly selected file to automatically selected ones.
1623 if test -n "$CONFIG_SITE"; then
1624 set x "$CONFIG_SITE"
1625 elif test "x$prefix" != xNONE; then
1626 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1627 else
1628 set x "$ac_default_prefix/share/config.site" \
1629 "$ac_default_prefix/etc/config.site"
1631 shift
1632 for ac_site_file
1634 if test -r "$ac_site_file"; then
1635 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1636 echo "$as_me: loading site script $ac_site_file" >&6;}
1637 sed 's/^/| /' "$ac_site_file" >&5
1638 . "$ac_site_file"
1640 done
1642 if test -r "$cache_file"; then
1643 # Some versions of bash will fail to source /dev/null (special
1644 # files actually), so we avoid doing that.
1645 if test -f "$cache_file"; then
1646 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1647 echo "$as_me: loading cache $cache_file" >&6;}
1648 case $cache_file in
1649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1650 *) . "./$cache_file";;
1651 esac
1653 else
1654 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1655 echo "$as_me: creating cache $cache_file" >&6;}
1656 >$cache_file
1659 # Check that the precious variables saved in the cache have kept the same
1660 # value.
1661 ac_cache_corrupted=false
1662 for ac_var in $ac_precious_vars; do
1663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1664 eval ac_new_set=\$ac_env_${ac_var}_set
1665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1666 eval ac_new_val=\$ac_env_${ac_var}_value
1667 case $ac_old_set,$ac_new_set in
1668 set,)
1669 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1670 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1671 ac_cache_corrupted=: ;;
1672 ,set)
1673 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1674 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1675 ac_cache_corrupted=: ;;
1676 ,);;
1678 if test "x$ac_old_val" != "x$ac_new_val"; then
1679 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1680 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1681 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1682 echo "$as_me: former value: $ac_old_val" >&2;}
1683 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1684 echo "$as_me: current value: $ac_new_val" >&2;}
1685 ac_cache_corrupted=:
1686 fi;;
1687 esac
1688 # Pass precious variables to config.status.
1689 if test "$ac_new_set" = set; then
1690 case $ac_new_val in
1691 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 *) ac_arg=$ac_var=$ac_new_val ;;
1693 esac
1694 case " $ac_configure_args " in
1695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1696 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1697 esac
1699 done
1700 if $ac_cache_corrupted; then
1701 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1702 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1703 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1704 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1705 { (exit 1); exit 1; }; }
1724 ac_ext=c
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1732 ac_ext=c
1733 ac_cpp='$CPP $CPPFLAGS'
1734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1737 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1759 done
1760 done
1761 IFS=$as_save_IFS
1765 CC=$ac_cv_prog_CC
1766 if test -n "$CC"; then
1767 { echo "$as_me:$LINENO: result: $CC" >&5
1768 echo "${ECHO_T}$CC" >&6; }
1769 else
1770 { echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6; }
1776 if test -z "$ac_cv_prog_CC"; then
1777 ac_ct_CC=$CC
1778 # Extract the first word of "gcc", so it can be a program name with args.
1779 set dummy gcc; ac_word=$2
1780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 else
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1795 ac_cv_prog_ac_ct_CC="gcc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1799 done
1800 done
1801 IFS=$as_save_IFS
1805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806 if test -n "$ac_ct_CC"; then
1807 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808 echo "${ECHO_T}$ac_ct_CC" >&6; }
1809 else
1810 { echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6; }
1814 if test "x$ac_ct_CC" = x; then
1815 CC=""
1816 else
1817 case $cross_compiling:$ac_tool_warned in
1818 yes:)
1819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1820 whose name does not start with the host triplet. If you think this
1821 configuration is useful to you, please write to autoconf@gnu.org." >&5
1822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1823 whose name does not start with the host triplet. If you think this
1824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1825 ac_tool_warned=yes ;;
1826 esac
1827 CC=$ac_ct_CC
1829 else
1830 CC="$ac_cv_prog_CC"
1833 if test -z "$CC"; then
1834 if test -n "$ac_tool_prefix"; then
1835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}cc; ac_word=$2
1837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839 if test "${ac_cv_prog_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 ac_cv_prog_CC="${ac_tool_prefix}cc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1856 done
1857 done
1858 IFS=$as_save_IFS
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864 { echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6; }
1866 else
1867 { echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6; }
1874 if test -z "$CC"; then
1875 # Extract the first word of "cc", so it can be a program name with args.
1876 set dummy cc; ac_word=$2
1877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 else
1885 ac_prog_rejected=no
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1894 ac_prog_rejected=yes
1895 continue
1897 ac_cv_prog_CC="cc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1903 IFS=$as_save_IFS
1905 if test $ac_prog_rejected = yes; then
1906 # We found a bogon in the path, so make sure we never use it.
1907 set dummy $ac_cv_prog_CC
1908 shift
1909 if test $# != 0; then
1910 # We chose a different compiler from the bogus one.
1911 # However, it has the same basename, so the bogon will be chosen
1912 # first if we set CC to just the basename; use the full file name.
1913 shift
1914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1919 CC=$ac_cv_prog_CC
1920 if test -n "$CC"; then
1921 { echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6; }
1923 else
1924 { echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6; }
1930 if test -z "$CC"; then
1931 if test -n "$ac_tool_prefix"; then
1932 for ac_prog in cl.exe
1934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1955 done
1956 done
1957 IFS=$as_save_IFS
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 { echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6; }
1965 else
1966 { echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6; }
1971 test -n "$CC" && break
1972 done
1974 if test -z "$CC"; then
1975 ac_ct_CC=$CC
1976 for ac_prog in cl.exe
1978 # Extract the first word of "$ac_prog", so it can be a program name with args.
1979 set dummy $ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 if test -n "$ac_ct_CC"; then
1986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_ac_ct_CC="$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1999 done
2000 done
2001 IFS=$as_save_IFS
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6; }
2009 else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$ac_ct_CC" && break
2016 done
2018 if test "x$ac_ct_CC" = x; then
2019 CC=""
2020 else
2021 case $cross_compiling:$ac_tool_warned in
2022 yes:)
2023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2024 whose name does not start with the host triplet. If you think this
2025 configuration is useful to you, please write to autoconf@gnu.org." >&5
2026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2027 whose name does not start with the host triplet. If you think this
2028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2029 ac_tool_warned=yes ;;
2030 esac
2031 CC=$ac_ct_CC
2038 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2044 # Provide some information about the compiler.
2045 echo "$as_me:$LINENO: checking for C compiler version" >&5
2046 ac_compiler=`set X $ac_compile; echo $2`
2047 { (ac_try="$ac_compiler --version >&5"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2053 (eval "$ac_compiler --version >&5") 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }
2057 { (ac_try="$ac_compiler -v >&5"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2063 (eval "$ac_compiler -v >&5") 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2067 { (ac_try="$ac_compiler -V >&5"
2068 case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2073 (eval "$ac_compiler -V >&5") 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2078 cat >conftest.$ac_ext <<_ACEOF
2079 /* confdefs.h. */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2086 main ()
2090 return 0;
2092 _ACEOF
2093 ac_clean_files_save=$ac_clean_files
2094 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2095 # Try to create an executable without -o first, disregard a.out.
2096 # It will help us diagnose broken compilers, and finding out an intuition
2097 # of exeext.
2098 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2099 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2100 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 # List of possible output files, starting from the most likely.
2103 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2104 # only as a last resort. b.out is created by i960 compilers.
2105 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2107 # The IRIX 6 linker writes into existing files which may not be
2108 # executable, retaining their permissions. Remove them first so a
2109 # subsequent execution test works.
2110 ac_rmfiles=
2111 for ac_file in $ac_files
2113 case $ac_file in
2114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2116 esac
2117 done
2118 rm -f $ac_rmfiles
2120 if { (ac_try="$ac_link_default"
2121 case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_link_default") 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; then
2130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2133 # so that the user can short-circuit this test for compilers unknown to
2134 # Autoconf.
2135 for ac_file in $ac_files ''
2137 test -f "$ac_file" || continue
2138 case $ac_file in
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2141 [ab].out )
2142 # We found the default executable, but exeext='' is most
2143 # certainly right.
2144 break;;
2145 *.* )
2146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2147 then :; else
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # We set ac_cv_exeext here because the later test for it is not
2151 # safe: cross compilers may not add the suffix if given an `-o'
2152 # argument, so we may need to know it at that point already.
2153 # Even if this section looks crufty: it has the advantage of
2154 # actually working.
2155 break;;
2157 break;;
2158 esac
2159 done
2160 test "$ac_cv_exeext" = no && ac_cv_exeext=
2162 else
2163 ac_file=''
2166 { echo "$as_me:$LINENO: result: $ac_file" >&5
2167 echo "${ECHO_T}$ac_file" >&6; }
2168 if test -z "$ac_file"; then
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2172 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: C compiler cannot create executables
2175 See \`config.log' for more details." >&2;}
2176 { (exit 77); exit 77; }; }
2179 ac_exeext=$ac_cv_exeext
2181 # Check that the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_try") 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 cross_compiling=no
2199 else
2200 if test "$cross_compiling" = maybe; then
2201 cross_compiling=yes
2202 else
2203 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2204 If you meant to cross compile, use \`--host'.
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot run C compiled programs.
2207 If you meant to cross compile, use \`--host'.
2208 See \`config.log' for more details." >&2;}
2209 { (exit 1); exit 1; }; }
2213 { echo "$as_me:$LINENO: result: yes" >&5
2214 echo "${ECHO_T}yes" >&6; }
2216 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2217 ac_clean_files=$ac_clean_files_save
2218 # Check that the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2221 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2222 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2223 echo "${ECHO_T}$cross_compiling" >&6; }
2225 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2226 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2227 if { (ac_try="$ac_link"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_link") 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; then
2237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2239 # work properly (i.e., refer to `conftest.exe'), while it won't with
2240 # `rm'.
2241 for ac_file in conftest.exe conftest conftest.*; do
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246 break;;
2247 * ) break;;
2248 esac
2249 done
2250 else
2251 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2258 rm -f conftest$ac_cv_exeext
2259 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2260 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2262 rm -f conftest.$ac_ext
2263 EXEEXT=$ac_cv_exeext
2264 ac_exeext=$EXEEXT
2265 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2266 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2267 if test "${ac_cv_objext+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2278 main ()
2282 return 0;
2284 _ACEOF
2285 rm -f conftest.o conftest.obj
2286 if { (ac_try="$ac_compile"
2287 case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_compile") 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 for ac_file in conftest.o conftest.obj conftest.*; do
2297 test -f "$ac_file" || continue;
2298 case $ac_file in
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2301 break;;
2302 esac
2303 done
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2317 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2318 echo "${ECHO_T}$ac_cv_objext" >&6; }
2319 OBJEXT=$ac_cv_objext
2320 ac_objext=$OBJEXT
2321 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2322 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2323 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2334 main ()
2336 #ifndef __GNUC__
2337 choke me
2338 #endif
2341 return 0;
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (ac_try="$ac_compile"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compile") 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } && {
2358 test -z "$ac_c_werror_flag" ||
2359 test ! -s conftest.err
2360 } && test -s conftest.$ac_objext; then
2361 ac_compiler_gnu=yes
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 ac_compiler_gnu=no
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2374 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2375 GCC=`test $ac_compiler_gnu = yes && echo yes`
2376 ac_test_CFLAGS=${CFLAGS+set}
2377 ac_save_CFLAGS=$CFLAGS
2378 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2379 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_cc_g+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 ac_save_c_werror_flag=$ac_c_werror_flag
2384 ac_c_werror_flag=yes
2385 ac_cv_prog_cc_g=no
2386 CFLAGS="-g"
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2395 main ()
2399 return 0;
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (ac_try="$ac_compile"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compile") 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest.$ac_objext; then
2419 ac_cv_prog_cc_g=yes
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2424 CFLAGS=""
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (ac_try="$ac_compile"
2442 case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_compile") 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } && {
2454 test -z "$ac_c_werror_flag" ||
2455 test ! -s conftest.err
2456 } && test -s conftest.$ac_objext; then
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 ac_c_werror_flag=$ac_save_c_werror_flag
2463 CFLAGS="-g"
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2472 main ()
2476 return 0;
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2481 case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_compile") 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } && {
2493 test -z "$ac_c_werror_flag" ||
2494 test ! -s conftest.err
2495 } && test -s conftest.$ac_objext; then
2496 ac_cv_prog_cc_g=yes
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 ac_c_werror_flag=$ac_save_c_werror_flag
2513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2514 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2515 if test "$ac_test_CFLAGS" = set; then
2516 CFLAGS=$ac_save_CFLAGS
2517 elif test $ac_cv_prog_cc_g = yes; then
2518 if test "$GCC" = yes; then
2519 CFLAGS="-g -O2"
2520 else
2521 CFLAGS="-g"
2523 else
2524 if test "$GCC" = yes; then
2525 CFLAGS="-O2"
2526 else
2527 CFLAGS=
2530 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2531 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_cc_c89+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 ac_cv_prog_cc_c89=no
2536 ac_save_CC=$CC
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2543 #include <stdarg.h>
2544 #include <stdio.h>
2545 #include <sys/types.h>
2546 #include <sys/stat.h>
2547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2548 struct buf { int x; };
2549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2550 static char *e (p, i)
2551 char **p;
2552 int i;
2554 return p[i];
2556 static char *f (char * (*g) (char **, int), char **p, ...)
2558 char *s;
2559 va_list v;
2560 va_start (v,p);
2561 s = g (p, va_arg (v,int));
2562 va_end (v);
2563 return s;
2566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2567 function prototypes and stuff, but not '\xHH' hex character constants.
2568 These don't provoke an error unfortunately, instead are silently treated
2569 as 'x'. The following induces an error, until -std is added to get
2570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2571 array size at least. It's necessary to write '\x00'==0 to get something
2572 that's true only with -std. */
2573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2576 inside strings and character constants. */
2577 #define FOO(x) 'x'
2578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2580 int test (int i, double x);
2581 struct s1 {int (*f) (int a);};
2582 struct s2 {int (*f) (double a);};
2583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2584 int argc;
2585 char **argv;
2587 main ()
2589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2591 return 0;
2593 _ACEOF
2594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2597 CC="$ac_save_CC $ac_arg"
2598 rm -f conftest.$ac_objext
2599 if { (ac_try="$ac_compile"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest.$ac_objext; then
2615 ac_cv_prog_cc_c89=$ac_arg
2616 else
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f core conftest.err conftest.$ac_objext
2624 test "x$ac_cv_prog_cc_c89" != "xno" && break
2625 done
2626 rm -f conftest.$ac_ext
2627 CC=$ac_save_CC
2630 # AC_CACHE_VAL
2631 case "x$ac_cv_prog_cc_c89" in
2633 { echo "$as_me:$LINENO: result: none needed" >&5
2634 echo "${ECHO_T}none needed" >&6; } ;;
2635 xno)
2636 { echo "$as_me:$LINENO: result: unsupported" >&5
2637 echo "${ECHO_T}unsupported" >&6; } ;;
2639 CC="$CC $ac_cv_prog_cc_c89"
2640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2642 esac
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 ac_ext=cpp
2652 ac_cpp='$CXXCPP $CPPFLAGS'
2653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2656 if test -z "$CXX"; then
2657 if test -n "$CCC"; then
2658 CXX=$CCC
2659 else
2660 if test -n "$ac_tool_prefix"; then
2661 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CXX+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$CXX"; then
2671 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 CXX=$ac_cv_prog_CXX
2691 if test -n "$CXX"; then
2692 { echo "$as_me:$LINENO: result: $CXX" >&5
2693 echo "${ECHO_T}$CXX" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2700 test -n "$CXX" && break
2701 done
2703 if test -z "$CXX"; then
2704 ac_ct_CXX=$CXX
2705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -n "$ac_ct_CXX"; then
2715 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CXX="$ac_prog"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2730 IFS=$as_save_IFS
2734 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2735 if test -n "$ac_ct_CXX"; then
2736 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2737 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2738 else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2744 test -n "$ac_ct_CXX" && break
2745 done
2747 if test "x$ac_ct_CXX" = x; then
2748 CXX="g++"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&5
2755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2756 whose name does not start with the host triplet. If you think this
2757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 CXX=$ac_ct_CXX
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2768 ac_compiler=`set X $ac_compile; echo $2`
2769 { (ac_try="$ac_compiler --version >&5"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler --version >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2779 { (ac_try="$ac_compiler -v >&5"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler -v >&5") 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789 { (ac_try="$ac_compiler -V >&5"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler -V >&5") 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2800 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2801 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h. */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2813 main ()
2815 #ifndef __GNUC__
2816 choke me
2817 #endif
2820 return 0;
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (ac_try="$ac_compile"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_cxx_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
2840 ac_compiler_gnu=yes
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 ac_compiler_gnu=no
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2852 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2853 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2854 GXX=`test $ac_compiler_gnu = yes && echo yes`
2855 ac_test_CXXFLAGS=${CXXFLAGS+set}
2856 ac_save_CXXFLAGS=$CXXFLAGS
2857 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2858 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_cxx_g+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2863 ac_cxx_werror_flag=yes
2864 ac_cv_prog_cxx_g=no
2865 CXXFLAGS="-g"
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2874 main ()
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_cxx_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2898 ac_cv_prog_cxx_g=yes
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 CXXFLAGS=""
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 main ()
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (ac_try="$ac_compile"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && {
2933 test -z "$ac_cxx_werror_flag" ||
2934 test ! -s conftest.err
2935 } && test -s conftest.$ac_objext; then
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2942 CXXFLAGS="-g"
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2951 main ()
2955 return 0;
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2966 ac_status=$?
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_cxx_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_prog_cxx_g=yes
2976 else
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2992 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2993 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2994 if test "$ac_test_CXXFLAGS" = set; then
2995 CXXFLAGS=$ac_save_CXXFLAGS
2996 elif test $ac_cv_prog_cxx_g = yes; then
2997 if test "$GXX" = yes; then
2998 CXXFLAGS="-g -O2"
2999 else
3000 CXXFLAGS="-g"
3002 else
3003 if test "$GXX" = yes; then
3004 CXXFLAGS="-O2"
3005 else
3006 CXXFLAGS=
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 h323=yes
3017 t38=yes
3018 h224=yes
3019 h450=yes
3020 h460=yes
3021 sip=yes
3022 iax=yes
3023 audio=yes
3024 video=yes
3026 REQUIRED_PWLIB_MAJOR=1
3027 REQUIRED_PWLIB_MINOR=11
3028 REQUIRED_PWLIB_BUILD=0
3031 OPALDIR=`pwd`
3034 if test "x$prefix" = "xNONE"; then
3035 INSTALLPREFIX="/usr/local"
3036 else
3037 INSTALLPREFIX="${prefix}"
3042 LIBDIR="${libdir}"
3048 MAJOR_VERSION=`cat ${OPALDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
3049 MINOR_VERSION=`cat ${OPALDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
3050 BUILD_NUMBER=`cat ${OPALDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
3051 OPAL_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
3052 cat >>confdefs.h <<_ACEOF
3053 #define OPAL_MAJOR ${MAJOR_VERSION}
3054 _ACEOF
3056 cat >>confdefs.h <<_ACEOF
3057 #define OPAL_MINOR ${MINOR_VERSION}
3058 _ACEOF
3060 cat >>confdefs.h <<_ACEOF
3061 #define OPAL_BUILD ${BUILD_NUMBER}
3062 _ACEOF
3064 cat >>confdefs.h <<_ACEOF
3065 #define OPAL_VERSION "$OPAL_VERSION"
3066 _ACEOF
3069 { echo "$as_me:$LINENO: Opal version is ${OPAL_VERSION}" >&5
3070 echo "$as_me: Opal version is ${OPAL_VERSION}" >&6;};
3072 #use to set the version in opal.pc
3076 if test "${PWLIBDIR:-unset}" != "unset" ; then
3077 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
3078 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
3079 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
3080 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 test "$cross_compiling" = yes &&
3084 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3085 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3086 { (exit 1); exit 1; }; }
3087 if test -r "${PWLIBDIR}/version.h"; then
3088 eval "$as_ac_File=yes"
3089 else
3090 eval "$as_ac_File=no"
3093 ac_res=`eval echo '${'$as_ac_File'}'`
3094 { echo "$as_me:$LINENO: result: $ac_res" >&5
3095 echo "${ECHO_T}$ac_res" >&6; }
3096 if test `eval echo '${'$as_ac_File'}'` = yes; then
3097 HAS_PTLIB=1
3101 if test "${HAS_PTLIB:-unset}" = "unset" ; then
3102 as_ac_File=`echo "ac_cv_file_${OPALDIR}/../pwlib/version.h" | $as_tr_sh`
3103 { echo "$as_me:$LINENO: checking for ${OPALDIR}/../pwlib/version.h" >&5
3104 echo $ECHO_N "checking for ${OPALDIR}/../pwlib/version.h... $ECHO_C" >&6; }
3105 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 test "$cross_compiling" = yes &&
3109 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3110 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3111 { (exit 1); exit 1; }; }
3112 if test -r "${OPALDIR}/../pwlib/version.h"; then
3113 eval "$as_ac_File=yes"
3114 else
3115 eval "$as_ac_File=no"
3118 ac_res=`eval echo '${'$as_ac_File'}'`
3119 { echo "$as_me:$LINENO: result: $ac_res" >&5
3120 echo "${ECHO_T}$ac_res" >&6; }
3121 if test `eval echo '${'$as_ac_File'}'` = yes; then
3122 HAS_PTLIB=1
3125 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3126 PWLIBDIR="${OPALDIR}/../pwlib"
3127 else
3128 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
3129 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
3130 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
3131 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 test "$cross_compiling" = yes &&
3135 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3136 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3137 { (exit 1); exit 1; }; }
3138 if test -r "${HOME}/pwlib/include/ptlib.h"; then
3139 eval "$as_ac_File=yes"
3140 else
3141 eval "$as_ac_File=no"
3144 ac_res=`eval echo '${'$as_ac_File'}'`
3145 { echo "$as_me:$LINENO: result: $ac_res" >&5
3146 echo "${ECHO_T}$ac_res" >&6; }
3147 if test `eval echo '${'$as_ac_File'}'` = yes; then
3148 HAS_PTLIB=1
3151 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3152 PWLIBDIR="${HOME}/pwlib"
3153 else
3154 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
3155 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
3156 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 test "$cross_compiling" = yes &&
3160 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3161 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3162 { (exit 1); exit 1; }; }
3163 if test -r "/usr/local/include/ptlib.h"; then
3164 ac_cv_file__usr_local_include_ptlib_h=yes
3165 else
3166 ac_cv_file__usr_local_include_ptlib_h=no
3169 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
3170 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
3171 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
3172 HAS_PTLIB=1
3175 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3176 # Extract the first word of "ptlib-config", so it can be a program name with args.
3177 set dummy ptlib-config; ac_word=$2
3178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3180 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 case $PTLIB_CONFIG in
3184 [\\/]* | ?:[\\/]*)
3185 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in /usr/local/bin
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3204 esac
3206 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
3207 if test -n "$PTLIB_CONFIG"; then
3208 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
3209 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
3210 else
3211 { echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6; }
3216 else
3217 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
3218 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
3219 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 test "$cross_compiling" = yes &&
3223 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3224 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3225 { (exit 1); exit 1; }; }
3226 if test -r "/usr/include/ptlib.h"; then
3227 ac_cv_file__usr_include_ptlib_h=yes
3228 else
3229 ac_cv_file__usr_include_ptlib_h=no
3232 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
3233 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
3234 if test $ac_cv_file__usr_include_ptlib_h = yes; then
3235 HAS_PTLIB=1
3238 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3239 # Extract the first word of "ptlib-config", so it can be a program name with args.
3240 set dummy ptlib-config; ac_word=$2
3241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3243 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 case $PTLIB_CONFIG in
3247 [\\/]* | ?:[\\/]*)
3248 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in /usr/share/pwlib/make/
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3267 esac
3269 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
3270 if test -n "$PTLIB_CONFIG"; then
3271 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
3272 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
3273 else
3274 { echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6; }
3279 else
3280 as_ac_File=`echo "ac_cv_file_${prefix}/include/ptlib.h" | $as_tr_sh`
3281 { echo "$as_me:$LINENO: checking for ${prefix}/include/ptlib.h" >&5
3282 echo $ECHO_N "checking for ${prefix}/include/ptlib.h... $ECHO_C" >&6; }
3283 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 test "$cross_compiling" = yes &&
3287 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
3288 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
3289 { (exit 1); exit 1; }; }
3290 if test -r "${prefix}/include/ptlib.h"; then
3291 eval "$as_ac_File=yes"
3292 else
3293 eval "$as_ac_File=no"
3296 ac_res=`eval echo '${'$as_ac_File'}'`
3297 { echo "$as_me:$LINENO: result: $ac_res" >&5
3298 echo "${ECHO_T}$ac_res" >&6; }
3299 if test `eval echo '${'$as_ac_File'}'` = yes; then
3300 HAS_PTLIB=1
3303 if test "${HAS_PTLIB:-unset}" != "unset" ; then
3304 # Extract the first word of "ptlib-config", so it can be a program name with args.
3305 set dummy ptlib-config; ac_word=$2
3306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3308 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 case $PTLIB_CONFIG in
3312 [\\/]* | ?:[\\/]*)
3313 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in ${prefix}/bin
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3327 done
3328 done
3329 IFS=$as_save_IFS
3332 esac
3334 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
3335 if test -n "$PTLIB_CONFIG"; then
3336 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
3337 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
3338 else
3339 { echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6; }
3351 if test "${HAS_PTLIB:-unset}" = "unset" ; then
3352 { { echo "$as_me:$LINENO: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&5
3353 echo "$as_me: error: \"Cannot find pwlib - please install or set PWLIBDIR and try again\"" >&2;}
3354 { (exit 1); exit 1; }; }
3357 if test "${PWLIBDIR:-unset}" = "unset" ; then
3358 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
3359 { { echo "$as_me:$LINENO: error: \"Cannot find ptlib-config - please install and try again\"" >&5
3360 echo "$as_me: error: \"Cannot find ptlib-config - please install and try again\"" >&2;}
3361 { (exit 1); exit 1; }; }
3363 PWLIBDIR=`$PTLIB_CONFIG --prefix`
3366 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
3367 PWLIBDIR="/usr/share/pwlib/"
3369 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
3370 PWLIBDIR="/usr/local/share/pwlib/"
3372 if test "x$PWLIBDIR" = "x${prefix}"; then
3373 PWLIBDIR="${prefix}/share/pwlib/"
3377 echo "PWLib prefix set to.... $PWLIBDIR"
3379 if test "${PWLIBDIR:-unset}" = "unset" ; then
3380 PWVERSION=`$PTLIB_CONFIG --version`
3381 PW_MAJOR_VERSION=`echo $PW_VERSION | cut -d'.' -f1`
3382 PW_MINOR_VERSION=`echo $PW_VERSION | cut -d'.' -f2`
3383 PW_BUILD_NUMBER=`echo $PW_VERSION | cut -d'.' -f3`
3385 else
3386 PW_MAJOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
3387 PW_MINOR_VERSION=`cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
3388 PW_BUILD_NUMBER=`cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
3389 PWVERSION="${PW_MAJOR_VERSION}.${PW_MINOR_VERSION}.${PW_BUILD_NUMBER}"
3392 # Check whether --enable-versioncheck was given.
3393 if test "${enable_versioncheck+set}" = set; then
3394 enableval=$enable_versioncheck; PWLIB_VERSION_CHECK=$enableval
3398 { echo "$as_me:$LINENO: checking Checking PWLib version ${PWVERSION}" >&5
3399 echo $ECHO_N "checking Checking PWLib version ${PWVERSION}... $ECHO_C" >&6; }
3400 if test "${PWLIB_VERSION_CHECK}x" = "nox" ; then
3401 { echo "$as_me:$LINENO: result: check disabled" >&5
3402 echo "${ECHO_T}check disabled" >&6; }
3403 else
3404 if test $PW_MAJOR_VERSION -lt $REQUIRED_PWLIB_MAJOR ; then
3405 { { echo "$as_me:$LINENO: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&5
3406 echo "$as_me: error: Major version less than required $REQUIRED_PWLIB_MAJOR" >&2;}
3407 { (exit 1); exit 1; }; }
3409 if test $PW_MINOR_VERSION -lt $REQUIRED_PWLIB_MINOR ; then
3410 { { echo "$as_me:$LINENO: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&5
3411 echo "$as_me: error: Minor version less than required $REQUIRED_PWLIB_MINOR" >&2;}
3412 { (exit 1); exit 1; }; }
3414 if test $PW_BUILD_NUMBER -lt $REQUIRED_PWLIB_BUILD ; then
3415 { { echo "$as_me:$LINENO: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&5
3416 echo "$as_me: error: Build version less than required $REQUIRED_PWLIB_BUILD" >&2;}
3417 { (exit 1); exit 1; }; }
3419 { echo "$as_me:$LINENO: result: ok" >&5
3420 echo "${ECHO_T}ok" >&6; }
3426 if test x$GXX = xyes ; then
3427 USE_GCC=yes
3428 gcc_version=`$CXX -dumpversion`
3429 { echo "$as_me:$LINENO: gcc version is $gcc_version" >&5
3430 echo "$as_me: gcc version is $gcc_version" >&6;};
3431 GXX_MAJOR=`echo $gcc_version | sed 's/\..*$//'`
3432 GXX_MINOR=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.//' -e 's/\..*$//'`
3433 GXX_PATCH=`echo $gcc_version | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.//' -e 's/\..*$//'`
3435 { echo "$as_me:$LINENO: checking checking if gcc version is valid" >&5
3436 echo $ECHO_N "checking checking if gcc version is valid... $ECHO_C" >&6; }
3437 if test ${GXX_MAJOR} -lt 3 ; then
3438 { echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6; }
3440 { { echo "$as_me:$LINENO: error: OPAL requires gcc version 3 or later" >&5
3441 echo "$as_me: error: OPAL requires gcc version 3 or later" >&2;}
3442 { (exit 1); exit 1; }; }
3443 else
3444 { echo "$as_me:$LINENO: result: yes" >&5
3445 echo "${ECHO_T}yes" >&6; }
3450 { echo "$as_me:$LINENO: checking for working bit scan intrinsic" >&5
3451 echo $ECHO_N "checking for working bit scan intrinsic... $ECHO_C" >&6; }
3452 BSR_TEST_SRC="
3453 #include <stdlib.h>
3454 int main(int argc, char* argv) {
3455 #ifdef __GNUC__
3456 unsigned int val = 0x00000FF0;
3457 if (__builtin_clz(val) == 20)
3458 exit(0);
3459 #endif
3460 exit(1);
3463 if test "$cross_compiling" = yes; then
3464 GCC_HAS_CLZ=1
3465 else
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 $BSR_TEST_SRC
3473 _ACEOF
3474 rm -f conftest$ac_exeext
3475 if { (ac_try="$ac_link"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_link") 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3485 { (case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_try") 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 GCC_HAS_CLZ=1
3495 else
3496 echo "$as_me: program exited with status $ac_status" >&5
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ( exit $ac_status )
3501 GCC_HAS_CLZ=0
3503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3507 if test "${GCC_HAS_CLZ}" = "1" ; then
3508 { echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6; }
3510 cat >>confdefs.h <<\_ACEOF
3511 #define GCC_HAS_CLZ 1
3512 _ACEOF
3514 GCC_HAS_CLZ=1
3515 else
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3522 localspeex="xxx"
3523 # Check whether --enable-localspeex was given.
3524 if test "${enable_localspeex+set}" = set; then
3525 enableval=$enable_localspeex; localspeex=$enableval
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3536 # On Suns, sometimes $CPP names a directory.
3537 if test -n "$CPP" && test -d "$CPP"; then
3538 CPP=
3540 if test -z "$CPP"; then
3541 if test "${ac_cv_prog_CPP+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 # Double quotes because CPP needs to be expanded
3545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567 Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 }; then
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3591 continue
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3605 _ACEOF
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
3622 # Broken: success on invalid input.
3623 continue
3624 else
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Passes both tests.
3629 ac_preproc_ok=:
3630 break
3633 rm -f conftest.err conftest.$ac_ext
3635 done
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3639 break
3642 done
3643 ac_cv_prog_CPP=$CPP
3646 CPP=$ac_cv_prog_CPP
3647 else
3648 ac_cv_prog_CPP=$CPP
3650 { echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6; }
3652 ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672 Syntax error
3673 _ACEOF
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null && {
3687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 }; then
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 # Broken: fails on valid input.
3696 continue
3699 rm -f conftest.err conftest.$ac_ext
3701 # OK, works on sane cases. Now check whether nonexistent headers
3702 # can be detected and how.
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 #include <ac_nonexistent.h>
3710 _ACEOF
3711 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null && {
3724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3726 }; then
3727 # Broken: success on invalid input.
3728 continue
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 # Passes both tests.
3734 ac_preproc_ok=:
3735 break
3738 rm -f conftest.err conftest.$ac_ext
3740 done
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then
3745 else
3746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3761 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 # Extract the first word of "grep ggrep" to use in msg output
3766 if test -z "$GREP"; then
3767 set dummy grep ggrep; ac_prog_name=$2
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 ac_path_GREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in grep ggrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3782 # Check for GNU ac_path_GREP and select it if it is found.
3783 # Check for GNU $ac_path_GREP
3784 case `"$ac_path_GREP" --version 2>&1` in
3785 *GNU*)
3786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3788 ac_count=0
3789 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790 while :
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 echo 'GREP' >> "conftest.nl"
3796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 ac_count=`expr $ac_count + 1`
3799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_GREP="$ac_path_GREP"
3802 ac_path_GREP_max=$ac_count
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3806 done
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 esac
3811 $ac_path_GREP_found && break 3
3812 done
3813 done
3815 done
3816 IFS=$as_save_IFS
3821 GREP="$ac_cv_path_GREP"
3822 if test -z "$GREP"; then
3823 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3825 { (exit 1); exit 1; }; }
3828 else
3829 ac_cv_path_GREP=$GREP
3834 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3835 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3836 GREP="$ac_cv_path_GREP"
3839 { echo "$as_me:$LINENO: checking for egrep" >&5
3840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845 then ac_cv_path_EGREP="$GREP -E"
3846 else
3847 # Extract the first word of "egrep" to use in msg output
3848 if test -z "$EGREP"; then
3849 set dummy egrep; ac_prog_name=$2
3850 if test "${ac_cv_path_EGREP+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 ac_path_EGREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in egrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3864 # Check for GNU ac_path_EGREP and select it if it is found.
3865 # Check for GNU $ac_path_EGREP
3866 case `"$ac_path_EGREP" --version 2>&1` in
3867 *GNU*)
3868 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3870 ac_count=0
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872 while :
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo 'EGREP' >> "conftest.nl"
3878 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_EGREP="$ac_path_EGREP"
3884 ac_path_EGREP_max=$ac_count
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3893 $ac_path_EGREP_found && break 3
3894 done
3895 done
3897 done
3898 IFS=$as_save_IFS
3903 EGREP="$ac_cv_path_EGREP"
3904 if test -z "$EGREP"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907 { (exit 1); exit 1; }; }
3910 else
3911 ac_cv_path_EGREP=$EGREP
3917 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3918 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3919 EGREP="$ac_cv_path_EGREP"
3922 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3924 if test "${ac_cv_header_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <stdlib.h>
3934 #include <stdarg.h>
3935 #include <string.h>
3936 #include <float.h>
3939 main ()
3943 return 0;
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 ac_cv_header_stdc=yes
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ac_cv_header_stdc=no
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 if test $ac_cv_header_stdc = yes; then
3974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 #include <string.h>
3983 _ACEOF
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 $EGREP "memchr" >/dev/null 2>&1; then
3987 else
3988 ac_cv_header_stdc=no
3990 rm -f conftest*
3994 if test $ac_cv_header_stdc = yes; then
3995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #include <stdlib.h>
4004 _ACEOF
4005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006 $EGREP "free" >/dev/null 2>&1; then
4008 else
4009 ac_cv_header_stdc=no
4011 rm -f conftest*
4015 if test $ac_cv_header_stdc = yes; then
4016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4017 if test "$cross_compiling" = yes; then
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <ctype.h>
4027 #include <stdlib.h>
4028 #if ((' ' & 0x0FF) == 0x020)
4029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4031 #else
4032 # define ISLOWER(c) \
4033 (('a' <= (c) && (c) <= 'i') \
4034 || ('j' <= (c) && (c) <= 'r') \
4035 || ('s' <= (c) && (c) <= 'z'))
4036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4037 #endif
4039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4041 main ()
4043 int i;
4044 for (i = 0; i < 256; i++)
4045 if (XOR (islower (i), ISLOWER (i))
4046 || toupper (i) != TOUPPER (i))
4047 return 2;
4048 return 0;
4050 _ACEOF
4051 rm -f conftest$ac_exeext
4052 if { (ac_try="$ac_link"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_link") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4062 { (case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_try") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 else
4073 echo "$as_me: program exited with status $ac_status" >&5
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 ( exit $ac_status )
4078 ac_cv_header_stdc=no
4080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4086 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4087 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4088 if test $ac_cv_header_stdc = yes; then
4090 cat >>confdefs.h <<\_ACEOF
4091 #define STDC_HEADERS 1
4092 _ACEOF
4096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4107 inttypes.h stdint.h unistd.h
4109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 $ac_includes_default
4123 #include <$ac_header>
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4127 case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4142 eval "$as_ac_Header=yes"
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 eval "$as_ac_Header=no"
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_res=`eval echo '${'$as_ac_Header'}'`
4153 { echo "$as_me:$LINENO: result: $ac_res" >&5
4154 echo "${ECHO_T}$ac_res" >&6; }
4155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4156 cat >>confdefs.h <<_ACEOF
4157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4158 _ACEOF
4162 done
4165 { echo "$as_me:$LINENO: checking for short" >&5
4166 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4167 if test "${ac_cv_type_short+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4177 typedef short ac__type_new_;
4179 main ()
4181 if ((ac__type_new_ *) 0)
4182 return 0;
4183 if (sizeof (ac__type_new_))
4184 return 0;
4186 return 0;
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest.$ac_objext; then
4206 ac_cv_type_short=yes
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_type_short=no
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4217 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4219 # The cast to long int works around a bug in the HP C Compiler
4220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4222 # This bug is HP SR number 8606223364.
4223 { echo "$as_me:$LINENO: checking size of short" >&5
4224 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4225 if test "${ac_cv_sizeof_short+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test "$cross_compiling" = yes; then
4229 # Depending upon the size, compute the lo and hi bounds.
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4237 typedef short ac__type_sizeof_;
4239 main ()
4241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4242 test_array [0] = 0
4245 return 0;
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest.$ac_objext; then
4265 ac_lo=0 ac_mid=0
4266 while :; do
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 $ac_includes_default
4274 typedef short ac__type_sizeof_;
4276 main ()
4278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4279 test_array [0] = 0
4282 return 0;
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4287 case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && {
4299 test -z "$ac_c_werror_flag" ||
4300 test ! -s conftest.err
4301 } && test -s conftest.$ac_objext; then
4302 ac_hi=$ac_mid; break
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_lo=`expr $ac_mid + 1`
4308 if test $ac_lo -le $ac_mid; then
4309 ac_lo= ac_hi=
4310 break
4312 ac_mid=`expr 2 '*' $ac_mid + 1`
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 done
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4328 typedef short ac__type_sizeof_;
4330 main ()
4332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4333 test_array [0] = 0
4336 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } && {
4353 test -z "$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4355 } && test -s conftest.$ac_objext; then
4356 ac_hi=-1 ac_mid=-1
4357 while :; do
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 $ac_includes_default
4365 typedef short ac__type_sizeof_;
4367 main ()
4369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4370 test_array [0] = 0
4373 return 0;
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_lo=$ac_mid; break
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_hi=`expr '(' $ac_mid ')' - 1`
4399 if test $ac_mid -le $ac_hi; then
4400 ac_lo= ac_hi=
4401 break
4403 ac_mid=`expr 2 '*' $ac_mid`
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 done
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_lo= ac_hi=
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 # Binary search between lo and hi bounds.
4420 while test "x$ac_lo" != "x$ac_hi"; do
4421 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4429 typedef short ac__type_sizeof_;
4431 main ()
4433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4434 test_array [0] = 0
4437 return 0;
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (ac_try="$ac_compile"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_compile") 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest.$ac_objext; then
4457 ac_hi=$ac_mid
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_lo=`expr '(' $ac_mid ')' + 1`
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 done
4467 case $ac_lo in
4468 ?*) ac_cv_sizeof_short=$ac_lo;;
4469 '') if test "$ac_cv_type_short" = yes; then
4470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4471 See \`config.log' for more details." >&5
4472 echo "$as_me: error: cannot compute sizeof (short)
4473 See \`config.log' for more details." >&2;}
4474 { (exit 77); exit 77; }; }
4475 else
4476 ac_cv_sizeof_short=0
4477 fi ;;
4478 esac
4479 else
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4487 typedef short ac__type_sizeof_;
4488 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4489 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4490 #include <stdio.h>
4491 #include <stdlib.h>
4493 main ()
4496 FILE *f = fopen ("conftest.val", "w");
4497 if (! f)
4498 return 1;
4499 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4501 long int i = longval ();
4502 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4503 return 1;
4504 fprintf (f, "%ld\n", i);
4506 else
4508 unsigned long int i = ulongval ();
4509 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4510 return 1;
4511 fprintf (f, "%lu\n", i);
4513 return ferror (f) || fclose (f) != 0;
4516 return 0;
4518 _ACEOF
4519 rm -f conftest$ac_exeext
4520 if { (ac_try="$ac_link"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_link") 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4530 { (case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_try") 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_cv_sizeof_short=`cat conftest.val`
4540 else
4541 echo "$as_me: program exited with status $ac_status" >&5
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 ( exit $ac_status )
4546 if test "$ac_cv_type_short" = yes; then
4547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: cannot compute sizeof (short)
4550 See \`config.log' for more details." >&2;}
4551 { (exit 77); exit 77; }; }
4552 else
4553 ac_cv_sizeof_short=0
4556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4558 rm -f conftest.val
4560 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4561 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
4565 cat >>confdefs.h <<_ACEOF
4566 #define SIZEOF_SHORT $ac_cv_sizeof_short
4567 _ACEOF
4570 { echo "$as_me:$LINENO: checking for int" >&5
4571 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
4572 if test "${ac_cv_type_int+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 $ac_includes_default
4582 typedef int ac__type_new_;
4584 main ()
4586 if ((ac__type_new_ *) 0)
4587 return 0;
4588 if (sizeof (ac__type_new_))
4589 return 0;
4591 return 0;
4593 _ACEOF
4594 rm -f conftest.$ac_objext
4595 if { (ac_try="$ac_compile"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_compile") 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
4611 ac_cv_type_int=yes
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_cv_type_int=no
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4622 echo "${ECHO_T}$ac_cv_type_int" >&6; }
4624 # The cast to long int works around a bug in the HP C Compiler
4625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4627 # This bug is HP SR number 8606223364.
4628 { echo "$as_me:$LINENO: checking size of int" >&5
4629 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
4630 if test "${ac_cv_sizeof_int+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 if test "$cross_compiling" = yes; then
4634 # Depending upon the size, compute the lo and hi bounds.
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_includes_default
4642 typedef int ac__type_sizeof_;
4644 main ()
4646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4647 test_array [0] = 0
4650 return 0;
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (ac_try="$ac_compile"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest.$ac_objext; then
4670 ac_lo=0 ac_mid=0
4671 while :; do
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 $ac_includes_default
4679 typedef int ac__type_sizeof_;
4681 main ()
4683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4684 test_array [0] = 0
4687 return 0;
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (ac_try="$ac_compile"
4692 case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_compile") 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && {
4704 test -z "$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4706 } && test -s conftest.$ac_objext; then
4707 ac_hi=$ac_mid; break
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 ac_lo=`expr $ac_mid + 1`
4713 if test $ac_lo -le $ac_mid; then
4714 ac_lo= ac_hi=
4715 break
4717 ac_mid=`expr 2 '*' $ac_mid + 1`
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 done
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 $ac_includes_default
4733 typedef int ac__type_sizeof_;
4735 main ()
4737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4738 test_array [0] = 0
4741 return 0;
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (ac_try="$ac_compile"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_compile") 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && {
4758 test -z "$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 } && test -s conftest.$ac_objext; then
4761 ac_hi=-1 ac_mid=-1
4762 while :; do
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4770 typedef int ac__type_sizeof_;
4772 main ()
4774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4775 test_array [0] = 0
4778 return 0;
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_compile") 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then
4798 ac_lo=$ac_mid; break
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 ac_hi=`expr '(' $ac_mid ')' - 1`
4804 if test $ac_mid -le $ac_hi; then
4805 ac_lo= ac_hi=
4806 break
4808 ac_mid=`expr 2 '*' $ac_mid`
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 done
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 ac_lo= ac_hi=
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 # Binary search between lo and hi bounds.
4825 while test "x$ac_lo" != "x$ac_hi"; do
4826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4834 typedef int ac__type_sizeof_;
4836 main ()
4838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4839 test_array [0] = 0
4842 return 0;
4844 _ACEOF
4845 rm -f conftest.$ac_objext
4846 if { (ac_try="$ac_compile"
4847 case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850 esac
4851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4852 (eval "$ac_compile") 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && {
4859 test -z "$ac_c_werror_flag" ||
4860 test ! -s conftest.err
4861 } && test -s conftest.$ac_objext; then
4862 ac_hi=$ac_mid
4863 else
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 ac_lo=`expr '(' $ac_mid ')' + 1`
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 done
4872 case $ac_lo in
4873 ?*) ac_cv_sizeof_int=$ac_lo;;
4874 '') if test "$ac_cv_type_int" = yes; then
4875 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (int)
4878 See \`config.log' for more details." >&2;}
4879 { (exit 77); exit 77; }; }
4880 else
4881 ac_cv_sizeof_int=0
4882 fi ;;
4883 esac
4884 else
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4892 typedef int ac__type_sizeof_;
4893 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4894 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4895 #include <stdio.h>
4896 #include <stdlib.h>
4898 main ()
4901 FILE *f = fopen ("conftest.val", "w");
4902 if (! f)
4903 return 1;
4904 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4906 long int i = longval ();
4907 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4908 return 1;
4909 fprintf (f, "%ld\n", i);
4911 else
4913 unsigned long int i = ulongval ();
4914 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4915 return 1;
4916 fprintf (f, "%lu\n", i);
4918 return ferror (f) || fclose (f) != 0;
4921 return 0;
4923 _ACEOF
4924 rm -f conftest$ac_exeext
4925 if { (ac_try="$ac_link"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_link") 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4935 { (case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_try") 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_cv_sizeof_int=`cat conftest.val`
4945 else
4946 echo "$as_me: program exited with status $ac_status" >&5
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 ( exit $ac_status )
4951 if test "$ac_cv_type_int" = yes; then
4952 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: cannot compute sizeof (int)
4955 See \`config.log' for more details." >&2;}
4956 { (exit 77); exit 77; }; }
4957 else
4958 ac_cv_sizeof_int=0
4961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4963 rm -f conftest.val
4965 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4966 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
4970 cat >>confdefs.h <<_ACEOF
4971 #define SIZEOF_INT $ac_cv_sizeof_int
4972 _ACEOF
4975 { echo "$as_me:$LINENO: checking for long" >&5
4976 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4977 if test "${ac_cv_type_long+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4987 typedef long ac__type_new_;
4989 main ()
4991 if ((ac__type_new_ *) 0)
4992 return 0;
4993 if (sizeof (ac__type_new_))
4994 return 0;
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_cv_type_long=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_cv_type_long=no
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5027 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5029 # The cast to long int works around a bug in the HP C Compiler
5030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5032 # This bug is HP SR number 8606223364.
5033 { echo "$as_me:$LINENO: checking size of long" >&5
5034 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5035 if test "${ac_cv_sizeof_long+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038 if test "$cross_compiling" = yes; then
5039 # Depending upon the size, compute the lo and hi bounds.
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 $ac_includes_default
5047 typedef long ac__type_sizeof_;
5049 main ()
5051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5052 test_array [0] = 0
5055 return 0;
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (ac_try="$ac_compile"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_compile") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } && {
5072 test -z "$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 } && test -s conftest.$ac_objext; then
5075 ac_lo=0 ac_mid=0
5076 while :; do
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 $ac_includes_default
5084 typedef long ac__type_sizeof_;
5086 main ()
5088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5089 test_array [0] = 0
5092 return 0;
5094 _ACEOF
5095 rm -f conftest.$ac_objext
5096 if { (ac_try="$ac_compile"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_compile") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest.$ac_objext; then
5112 ac_hi=$ac_mid; break
5113 else
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 ac_lo=`expr $ac_mid + 1`
5118 if test $ac_lo -le $ac_mid; then
5119 ac_lo= ac_hi=
5120 break
5122 ac_mid=`expr 2 '*' $ac_mid + 1`
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 done
5127 else
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 $ac_includes_default
5138 typedef long ac__type_sizeof_;
5140 main ()
5142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5143 test_array [0] = 0
5146 return 0;
5148 _ACEOF
5149 rm -f conftest.$ac_objext
5150 if { (ac_try="$ac_compile"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compile") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && {
5163 test -z "$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 } && test -s conftest.$ac_objext; then
5166 ac_hi=-1 ac_mid=-1
5167 while :; do
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 typedef long ac__type_sizeof_;
5177 main ()
5179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5180 test_array [0] = 0
5183 return 0;
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (ac_try="$ac_compile"
5188 case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191 esac
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_compile") 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && {
5200 test -z "$ac_c_werror_flag" ||
5201 test ! -s conftest.err
5202 } && test -s conftest.$ac_objext; then
5203 ac_lo=$ac_mid; break
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_hi=`expr '(' $ac_mid ')' - 1`
5209 if test $ac_mid -le $ac_hi; then
5210 ac_lo= ac_hi=
5211 break
5213 ac_mid=`expr 2 '*' $ac_mid`
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 done
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ac_lo= ac_hi=
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 # Binary search between lo and hi bounds.
5230 while test "x$ac_lo" != "x$ac_hi"; do
5231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 typedef long ac__type_sizeof_;
5241 main ()
5243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5244 test_array [0] = 0
5247 return 0;
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5267 ac_hi=$ac_mid
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 ac_lo=`expr '(' $ac_mid ')' + 1`
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 done
5277 case $ac_lo in
5278 ?*) ac_cv_sizeof_long=$ac_lo;;
5279 '') if test "$ac_cv_type_long" = yes; then
5280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5281 See \`config.log' for more details." >&5
5282 echo "$as_me: error: cannot compute sizeof (long)
5283 See \`config.log' for more details." >&2;}
5284 { (exit 77); exit 77; }; }
5285 else
5286 ac_cv_sizeof_long=0
5287 fi ;;
5288 esac
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 $ac_includes_default
5297 typedef long ac__type_sizeof_;
5298 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5299 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5300 #include <stdio.h>
5301 #include <stdlib.h>
5303 main ()
5306 FILE *f = fopen ("conftest.val", "w");
5307 if (! f)
5308 return 1;
5309 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5311 long int i = longval ();
5312 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5313 return 1;
5314 fprintf (f, "%ld\n", i);
5316 else
5318 unsigned long int i = ulongval ();
5319 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5320 return 1;
5321 fprintf (f, "%lu\n", i);
5323 return ferror (f) || fclose (f) != 0;
5326 return 0;
5328 _ACEOF
5329 rm -f conftest$ac_exeext
5330 if { (ac_try="$ac_link"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_link") 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5340 { (case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_try") 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_sizeof_long=`cat conftest.val`
5350 else
5351 echo "$as_me: program exited with status $ac_status" >&5
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ( exit $ac_status )
5356 if test "$ac_cv_type_long" = yes; then
5357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5358 See \`config.log' for more details." >&5
5359 echo "$as_me: error: cannot compute sizeof (long)
5360 See \`config.log' for more details." >&2;}
5361 { (exit 77); exit 77; }; }
5362 else
5363 ac_cv_sizeof_long=0
5366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5368 rm -f conftest.val
5370 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5371 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5375 cat >>confdefs.h <<_ACEOF
5376 #define SIZEOF_LONG $ac_cv_sizeof_long
5377 _ACEOF
5380 { echo "$as_me:$LINENO: checking for long long" >&5
5381 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5382 if test "${ac_cv_type_long_long+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 $ac_includes_default
5392 typedef long long ac__type_new_;
5394 main ()
5396 if ((ac__type_new_ *) 0)
5397 return 0;
5398 if (sizeof (ac__type_new_))
5399 return 0;
5401 return 0;
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (ac_try="$ac_compile"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 ac_cv_type_long_long=yes
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 ac_cv_type_long_long=no
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5432 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5434 # The cast to long int works around a bug in the HP C Compiler
5435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5437 # This bug is HP SR number 8606223364.
5438 { echo "$as_me:$LINENO: checking size of long long" >&5
5439 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5440 if test "${ac_cv_sizeof_long_long+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 if test "$cross_compiling" = yes; then
5444 # Depending upon the size, compute the lo and hi bounds.
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5452 typedef long long ac__type_sizeof_;
5454 main ()
5456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5457 test_array [0] = 0
5460 return 0;
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_lo=0 ac_mid=0
5481 while :; do
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5489 typedef long long ac__type_sizeof_;
5491 main ()
5493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5494 test_array [0] = 0
5497 return 0;
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_hi=$ac_mid; break
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_lo=`expr $ac_mid + 1`
5523 if test $ac_lo -le $ac_mid; then
5524 ac_lo= ac_hi=
5525 break
5527 ac_mid=`expr 2 '*' $ac_mid + 1`
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 done
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 typedef long long ac__type_sizeof_;
5545 main ()
5547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5548 test_array [0] = 0
5551 return 0;
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5556 case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 ac_hi=-1 ac_mid=-1
5572 while :; do
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 $ac_includes_default
5580 typedef long long ac__type_sizeof_;
5582 main ()
5584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5585 test_array [0] = 0
5588 return 0;
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 ac_lo=$ac_mid; break
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_hi=`expr '(' $ac_mid ')' - 1`
5614 if test $ac_mid -le $ac_hi; then
5615 ac_lo= ac_hi=
5616 break
5618 ac_mid=`expr 2 '*' $ac_mid`
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 done
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_lo= ac_hi=
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 # Binary search between lo and hi bounds.
5635 while test "x$ac_lo" != "x$ac_hi"; do
5636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 $ac_includes_default
5644 typedef long long ac__type_sizeof_;
5646 main ()
5648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5649 test_array [0] = 0
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_hi=$ac_mid
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_lo=`expr '(' $ac_mid ')' + 1`
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 done
5682 case $ac_lo in
5683 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5684 '') if test "$ac_cv_type_long_long" = yes; then
5685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
5686 See \`config.log' for more details." >&5
5687 echo "$as_me: error: cannot compute sizeof (long long)
5688 See \`config.log' for more details." >&2;}
5689 { (exit 77); exit 77; }; }
5690 else
5691 ac_cv_sizeof_long_long=0
5692 fi ;;
5693 esac
5694 else
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5702 typedef long long ac__type_sizeof_;
5703 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5704 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5705 #include <stdio.h>
5706 #include <stdlib.h>
5708 main ()
5711 FILE *f = fopen ("conftest.val", "w");
5712 if (! f)
5713 return 1;
5714 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5716 long int i = longval ();
5717 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5718 return 1;
5719 fprintf (f, "%ld\n", i);
5721 else
5723 unsigned long int i = ulongval ();
5724 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5725 return 1;
5726 fprintf (f, "%lu\n", i);
5728 return ferror (f) || fclose (f) != 0;
5731 return 0;
5733 _ACEOF
5734 rm -f conftest$ac_exeext
5735 if { (ac_try="$ac_link"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_link") 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_sizeof_long_long=`cat conftest.val`
5755 else
5756 echo "$as_me: program exited with status $ac_status" >&5
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ( exit $ac_status )
5761 if test "$ac_cv_type_long_long" = yes; then
5762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
5763 See \`config.log' for more details." >&5
5764 echo "$as_me: error: cannot compute sizeof (long long)
5765 See \`config.log' for more details." >&2;}
5766 { (exit 77); exit 77; }; }
5767 else
5768 ac_cv_sizeof_long_long=0
5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5773 rm -f conftest.val
5775 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5776 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5782 _ACEOF
5786 case 2 in
5787 $ac_cv_sizeof_short) SIZE16="short";;
5788 $ac_cv_sizeof_int) SIZE16="int";;
5789 esac
5791 case 4 in
5792 $ac_cv_sizeof_int) SIZE32="int";;
5793 $ac_cv_sizeof_long) SIZE32="long";;
5794 $ac_cv_sizeof_short) SIZE32="short";;
5795 esac
5800 OPAL_HAVE_SPEEX_H=
5801 OPAL_HAVE_SPEEX_SPEEX_H=
5803 for ac_header in "speex.h"
5805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 ac_res=`eval echo '${'$as_ac_Header'}'`
5813 { echo "$as_me:$LINENO: result: $ac_res" >&5
5814 echo "${ECHO_T}$ac_res" >&6; }
5815 else
5816 # Is the header compilable?
5817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 $ac_includes_default
5826 #include <$ac_header>
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.$ac_objext; then
5845 ac_header_compiler=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_header_compiler=no
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5855 echo "${ECHO_T}$ac_header_compiler" >&6; }
5857 # Is the header present?
5858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h. */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 #include <$ac_header>
5867 _ACEOF
5868 if { (ac_try="$ac_cpp conftest.$ac_ext"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } >/dev/null && {
5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 }; then
5884 ac_header_preproc=yes
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ac_header_preproc=no
5892 rm -f conftest.err conftest.$ac_ext
5893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5894 echo "${ECHO_T}$ac_header_preproc" >&6; }
5896 # So? What about this header?
5897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5898 yes:no: )
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5903 ac_header_preproc=yes
5905 no:yes:* )
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5920 esac
5921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 eval "$as_ac_Header=\$ac_header_preproc"
5928 ac_res=`eval echo '${'$as_ac_Header'}'`
5929 { echo "$as_me:$LINENO: result: $ac_res" >&5
5930 echo "${ECHO_T}$ac_res" >&6; }
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934 cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5936 _ACEOF
5937 OPAL_HAVE_SPEEX_H=1
5940 done
5942 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
5943 cat >>confdefs.h <<\_ACEOF
5944 #define OPAL_HAVE_SPEEX_H 1
5945 _ACEOF
5947 else
5949 for ac_header in "speex/speex.h"
5951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_res=`eval echo '${'$as_ac_Header'}'`
5959 { echo "$as_me:$LINENO: result: $ac_res" >&5
5960 echo "${ECHO_T}$ac_res" >&6; }
5961 else
5962 # Is the header compilable?
5963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest.$ac_objext; then
5991 ac_header_compiler=yes
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_header_compiler=no
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6001 echo "${ECHO_T}$ac_header_compiler" >&6; }
6003 # Is the header present?
6004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <$ac_header>
6013 _ACEOF
6014 if { (ac_try="$ac_cpp conftest.$ac_ext"
6015 case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } >/dev/null && {
6027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6028 test ! -s conftest.err
6029 }; then
6030 ac_header_preproc=yes
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 ac_header_preproc=no
6038 rm -f conftest.err conftest.$ac_ext
6039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6040 echo "${ECHO_T}$ac_header_preproc" >&6; }
6042 # So? What about this header?
6043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6044 yes:no: )
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6049 ac_header_preproc=yes
6051 no:yes:* )
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6066 esac
6067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 eval "$as_ac_Header=\$ac_header_preproc"
6074 ac_res=`eval echo '${'$as_ac_Header'}'`
6075 { echo "$as_me:$LINENO: result: $ac_res" >&5
6076 echo "${ECHO_T}$ac_res" >&6; }
6079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6080 cat >>confdefs.h <<_ACEOF
6081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6082 _ACEOF
6083 OPAL_HAVE_SPEEX_SPEEX_H=1
6086 done
6088 if test "${OPAL_HAVE_SPEEX_SPEEX_H}x" != "x" ; then
6089 cat >>confdefs.h <<\_ACEOF
6090 #define OPAL_HAVE_SPEEX_SPEEX_H 1
6091 _ACEOF
6096 if test "${localspeex}" = "yes" ; then
6097 { echo "$as_me:$LINENO: Forcing use of OPAL Speex sources" >&5
6098 echo "$as_me: Forcing use of OPAL Speex sources" >&6;}
6099 elif test "${localspeex}" = "no" ; then
6100 { echo "$as_me:$LINENO: Forcing use of system Speex library" >&5
6101 echo "$as_me: Forcing use of system Speex library" >&6;}
6102 cat >>confdefs.h <<\_ACEOF
6103 #define OPAL_SYSTEM_SPEEX 1
6104 _ACEOF
6106 OPAL_SYSTEM_SPEEX=1
6108 else
6109 { echo "$as_me:$LINENO: checking for speex_encoder_destroy in -lspeex" >&5
6110 echo $ECHO_N "checking for speex_encoder_destroy in -lspeex... $ECHO_C" >&6; }
6111 if test "${ac_cv_lib_speex_speex_encoder_destroy+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 ac_check_lib_save_LIBS=$LIBS
6115 LIBS="-lspeex $LIBS"
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6123 /* Override any GCC internal prototype to avoid an error.
6124 Use char because int might match the return type of a GCC
6125 builtin and then its argument prototype would still apply. */
6126 #ifdef __cplusplus
6127 extern "C"
6128 #endif
6129 char speex_encoder_destroy ();
6131 main ()
6133 return speex_encoder_destroy ();
6135 return 0;
6137 _ACEOF
6138 rm -f conftest.$ac_objext conftest$ac_exeext
6139 if { (ac_try="$ac_link"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_link") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && {
6152 test -z "$ac_c_werror_flag" ||
6153 test ! -s conftest.err
6154 } && test -s conftest$ac_exeext &&
6155 $as_test_x conftest$ac_exeext; then
6156 ac_cv_lib_speex_speex_encoder_destroy=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_cv_lib_speex_speex_encoder_destroy=no
6164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6165 conftest$ac_exeext conftest.$ac_ext
6166 LIBS=$ac_check_lib_save_LIBS
6168 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_destroy" >&5
6169 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_destroy" >&6; }
6170 if test $ac_cv_lib_speex_speex_encoder_destroy = yes; then
6171 SPEEX=1
6174 if test "${SPEEX}x" != "x" ; then
6175 { echo "$as_me:$LINENO: checking for speex_encode_int in -lspeex" >&5
6176 echo $ECHO_N "checking for speex_encode_int in -lspeex... $ECHO_C" >&6; }
6177 if test "${ac_cv_lib_speex_speex_encode_int+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 ac_check_lib_save_LIBS=$LIBS
6181 LIBS="-lspeex $LIBS"
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6189 /* Override any GCC internal prototype to avoid an error.
6190 Use char because int might match the return type of a GCC
6191 builtin and then its argument prototype would still apply. */
6192 #ifdef __cplusplus
6193 extern "C"
6194 #endif
6195 char speex_encode_int ();
6197 main ()
6199 return speex_encode_int ();
6201 return 0;
6203 _ACEOF
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_link") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest$ac_exeext &&
6221 $as_test_x conftest$ac_exeext; then
6222 ac_cv_lib_speex_speex_encode_int=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_lib_speex_speex_encode_int=no
6230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6234 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode_int" >&5
6235 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode_int" >&6; }
6236 if test $ac_cv_lib_speex_speex_encode_int = yes; then
6237 SPEEX=1
6238 else
6239 unset SPEEX
6243 if test "x$SPEEX" = "x" -o \( "${OPAL_HAVE_SPEEX_H}x" = "x" -a "${OPAL_HAVE_SPEEX_SPEEX_H}x" = "x" \); then
6244 { echo "$as_me:$LINENO: Forcing use of OPAL Speex library" >&5
6245 echo "$as_me: Forcing use of OPAL Speex library" >&6;}
6246 else
6247 { echo "$as_me:$LINENO: checking system Speex version" >&5
6248 echo $ECHO_N "checking system Speex version... $ECHO_C" >&6; }
6249 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
6250 echo "#include <speex.h>" > t.c
6251 echo "#include <speex_header.h>" >> t.c
6252 else
6253 echo "#include <speex/speex.h>" > t.c
6254 echo "#include <speex/speex_header.h>" >> t.c
6256 cat >> t.c <<C_FILE
6257 #include <stdio.h>
6258 int main(int argc,char *argv)
6260 SpeexHeader header;
6261 speex_init_header(&header, 1, 1, &speex_nb_mode);
6262 printf("%s\n", header.speex_version);
6264 C_FILE
6265 cc -o t t.c -lspeex > /dev/null 2>&1
6266 if test \! -x t ; then
6267 { echo "$as_me:$LINENO: result: cannot determine - using OPAL version" >&5
6268 echo "${ECHO_T}cannot determine - using OPAL version" >&6; }
6269 else
6270 SYSVER=`./t`
6271 { echo "$as_me:$LINENO: result: $SYSVER" >&5
6272 echo "${ECHO_T}$SYSVER" >&6; }
6273 { echo "$as_me:$LINENO: checking library Speex version" >&5
6274 echo $ECHO_N "checking library Speex version... $ECHO_C" >&6; }
6275 LIBVER=`grep "#define SPEEX_VERSION" ./src/codec/speex/libspeex/misc.h | sed -e 's/^.*[Ss][Pp][Ee][Ee][Xx]\-//' -e 's/\"//' -e 's/\/.*//'`
6276 { echo "$as_me:$LINENO: result: $LIBVER" >&5
6277 echo "${ECHO_T}$LIBVER" >&6; }
6278 { echo "$as_me:$LINENO: checking Speex versions" >&5
6279 echo $ECHO_N "checking Speex versions... $ECHO_C" >&6; }
6280 cat > t.pl <<P_FILE
6282 \$sysver = @ARGV[0];
6283 \$libver = @ARGV[1];
6284 @lib = split /\./, \$libver;
6285 while (@lib < 3) {
6286 @lib[0+@lib] = "0";
6288 @sys = split /\./, \$sysver;
6289 while (@sys < 3) {
6290 @sys[0+@sys] = "0";
6292 \$i = 0;
6293 while (\$i < 3) {
6294 if (@sys[\$i] < @lib[\$i]) {
6295 print "0";
6296 die;
6298 \$i++;
6300 print "1";
6302 P_FILE
6303 SPEEX=`perl t.pl $SYSVER $LIBVER`
6304 rm t.pl
6305 if test "x$SPEEX" = "x0" ; then
6306 { echo "$as_me:$LINENO: result: OPAL version is more recent" >&5
6307 echo "${ECHO_T}OPAL version is more recent" >&6; }
6308 else
6309 { echo "$as_me:$LINENO: result: system version is more recent" >&5
6310 echo "${ECHO_T}system version is more recent" >&6; }
6311 cat >>confdefs.h <<\_ACEOF
6312 #define OPAL_SYSTEM_SPEEX 1
6313 _ACEOF
6315 OPAL_SYSTEM_SPEEX=1
6317 { echo "$as_me:$LINENO: checking Speex noise type" >&5
6318 echo $ECHO_N "checking Speex noise type... $ECHO_C" >&6; }
6319 if test "${OPAL_HAVE_SPEEX_H}x" != "x" ; then
6320 echo "#include <speex.h>" > t.c
6321 echo "#include <speex_preprocess.h>" >> t.c
6322 else
6323 echo "#include <speex/speex.h>" > t.c
6324 echo "#include <speex/speex_preprocess.h>" >> t.c
6326 cat >> t.c <<C_FILE
6327 #include <stdio.h>
6328 int main(int argc,char *argv)
6330 struct SpeexPreprocessState *st;
6331 spx_int16_t *x;
6332 float *echo;
6333 speex_preprocess(st, x, echo);
6335 C_FILE
6336 rm -f t
6337 cc -Werror -o t t.c -lspeex > /dev/null 2>&1
6338 if test \! -x t ; then
6339 { echo "$as_me:$LINENO: result: spx_int32_t" >&5
6340 echo "${ECHO_T}spx_int32_t" >&6; }
6341 else
6342 { echo "$as_me:$LINENO: result: float" >&5
6343 echo "${ECHO_T}float" >&6; }
6344 cat >>confdefs.h <<\_ACEOF
6345 #define OPAL_SPEEX_FLOAT_NOISE 1
6346 _ACEOF
6351 rm -f t t.c
6359 # Check whether --enable-audio was given.
6360 if test "${enable_audio+set}" = set; then
6361 enableval=$enable_audio; audio=$enableval
6364 { echo "$as_me:$LINENO: checking audio codec support" >&5
6365 echo $ECHO_N "checking audio codec support... $ECHO_C" >&6; }
6366 if test "$audio" = "yes" ; then
6367 OPAL_AUDIO=1
6369 cat >>confdefs.h <<\_ACEOF
6370 #define OPAL_AUDIO 1
6371 _ACEOF
6373 { echo "$as_me:$LINENO: result: enabled" >&5
6374 echo "${ECHO_T}enabled" >&6; }
6375 else
6376 { echo "$as_me:$LINENO: result: disabled" >&5
6377 echo "${ECHO_T}disabled" >&6; }
6383 # Check whether --enable-video was given.
6384 if test "${enable_video+set}" = set; then
6385 enableval=$enable_video; video=$enableval
6388 { echo "$as_me:$LINENO: checking video device support" >&5
6389 echo $ECHO_N "checking video device support... $ECHO_C" >&6; }
6390 if test "$video" = "yes" ; then
6391 OPAL_VIDEO=1
6393 cat >>confdefs.h <<\_ACEOF
6394 #define OPAL_VIDEO 1
6395 _ACEOF
6397 { echo "$as_me:$LINENO: result: enabled" >&5
6398 echo "${ECHO_T}enabled" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: disabled" >&5
6401 echo "${ECHO_T}disabled" >&6; }
6406 # Check whether --enable-sip was given.
6407 if test "${enable_sip+set}" = set; then
6408 enableval=$enable_sip; sip=$enableval
6411 { echo "$as_me:$LINENO: checking SIP protocol" >&5
6412 echo $ECHO_N "checking SIP protocol... $ECHO_C" >&6; }
6413 if test "$sip" = "yes" ; then
6414 OPAL_SIP=1
6416 cat >>confdefs.h <<\_ACEOF
6417 #define OPAL_SIP 1
6418 _ACEOF
6420 { echo "$as_me:$LINENO: result: enabled" >&5
6421 echo "${ECHO_T}enabled" >&6; }
6422 else
6423 { echo "$as_me:$LINENO: result: disabled" >&5
6424 echo "${ECHO_T}disabled" >&6; }
6429 # Check whether --enable-h323 was given.
6430 if test "${enable_h323+set}" = set; then
6431 enableval=$enable_h323; h323=$enableval
6434 { echo "$as_me:$LINENO: checking H.323 protocol" >&5
6435 echo $ECHO_N "checking H.323 protocol... $ECHO_C" >&6; }
6436 if test "$h323" = "yes" ; then
6437 OPAL_H323=1
6439 cat >>confdefs.h <<\_ACEOF
6440 #define OPAL_H323 1
6441 _ACEOF
6443 { echo "$as_me:$LINENO: result: enabled" >&5
6444 echo "${ECHO_T}enabled" >&6; }
6445 else
6446 OPAL_H323=0
6448 { echo "$as_me:$LINENO: result: disabled (T.38, H.224, H.460 also disabled)" >&5
6449 echo "${ECHO_T}disabled (T.38, H.224, H.460 also disabled)" >&6; }
6450 h224=no
6451 h460=no
6453 OPAL_H323=$OPAL_H323
6458 # Check whether --enable-iax was given.
6459 if test "${enable_iax+set}" = set; then
6460 enableval=$enable_iax; iax=$enableval
6463 { echo "$as_me:$LINENO: checking IAX2 protocol" >&5
6464 echo $ECHO_N "checking IAX2 protocol... $ECHO_C" >&6; }
6465 if test "$iax" = "yes" ; then
6466 OPAL_IAX2=1
6468 cat >>confdefs.h <<\_ACEOF
6469 #define OPAL_IAX2 1
6470 _ACEOF
6472 { echo "$as_me:$LINENO: result: enabled" >&5
6473 echo "${ECHO_T}enabled" >&6; }
6474 else
6475 { echo "$as_me:$LINENO: result: disabled" >&5
6476 echo "${ECHO_T}disabled" >&6; }
6481 # Check whether --enable-h224 was given.
6482 if test "${enable_h224+set}" = set; then
6483 enableval=$enable_h224; h224=$enableval
6486 { echo "$as_me:$LINENO: checking H224 protocol" >&5
6487 echo $ECHO_N "checking H224 protocol... $ECHO_C" >&6; }
6488 if test "$h224" = "yes" ; then
6489 OPAL_H224=1
6491 cat >>confdefs.h <<\_ACEOF
6492 #define OPAL_H224 1
6493 _ACEOF
6495 { echo "$as_me:$LINENO: result: enabled" >&5
6496 echo "${ECHO_T}enabled" >&6; }
6497 else
6498 { echo "$as_me:$LINENO: result: disabled" >&5
6499 echo "${ECHO_T}disabled" >&6; }
6504 if test "$t38" = "yes" ; then
6505 # Check whether --enable-t38 was given.
6506 if test "${enable_t38+set}" = set; then
6507 enableval=$enable_t38; t38=$enableval
6510 { echo "$as_me:$LINENO: checking T.38 protocol" >&5
6511 echo $ECHO_N "checking T.38 protocol... $ECHO_C" >&6; }
6512 if test "$t38" = "yes" ; then
6513 OPAL_T38FAX=1
6515 cat >>confdefs.h <<\_ACEOF
6516 #define OPAL_T38FAX 1
6517 _ACEOF
6519 { echo "$as_me:$LINENO: result: enabled" >&5
6520 echo "${ECHO_T}enabled" >&6; }
6521 else
6522 { echo "$as_me:$LINENO: result: disabled" >&5
6523 echo "${ECHO_T}disabled" >&6; }
6530 OPAL_450=
6531 if test "$h450" = "yes" ; then
6532 # Check whether --enable-h450 was given.
6533 if test "${enable_h450+set}" = set; then
6534 enableval=$enable_h450; h450=$enableval
6537 { echo "$as_me:$LINENO: checking H.450 support" >&5
6538 echo $ECHO_N "checking H.450 support... $ECHO_C" >&6; }
6539 if test "$h450" = "yes" ; then
6540 OPAL_H450=1
6542 cat >>confdefs.h <<\_ACEOF
6543 #define OPAL_H450 1
6544 _ACEOF
6546 { echo "$as_me:$LINENO: result: enabled" >&5
6547 echo "${ECHO_T}enabled" >&6; }
6548 else
6549 { echo "$as_me:$LINENO: result: disabled" >&5
6550 echo "${ECHO_T}disabled" >&6; }
6557 OPAL_460=
6558 if test "$h460" = "yes" ; then
6559 # Check whether --enable-h460 was given.
6560 if test "${enable_h460+set}" = set; then
6561 enableval=$enable_h460; h460=$enableval
6564 { echo "$as_me:$LINENO: checking H.460 support" >&5
6565 echo $ECHO_N "checking H.460 support... $ECHO_C" >&6; }
6566 if test "$h460" = "yes" ; then
6567 OPAL_H460=1
6569 cat >>confdefs.h <<\_ACEOF
6570 #define OPAL_H460 1
6571 _ACEOF
6573 { echo "$as_me:$LINENO: result: enabled" >&5
6574 echo "${ECHO_T}enabled" >&6; }
6575 else
6576 { echo "$as_me:$LINENO: result: disabled" >&5
6577 echo "${ECHO_T}disabled" >&6; }
6584 OPAL_LID=
6585 lid=yes
6586 if test "$lid" = "yes" ; then
6587 # Check whether --enable-lid was given.
6588 if test "${enable_lid+set}" = set; then
6589 enableval=$enable_lid; lid=$enableval
6592 { echo "$as_me:$LINENO: checking LID support" >&5
6593 echo $ECHO_N "checking LID support... $ECHO_C" >&6; }
6594 if test "$lid" = "yes" ; then
6595 cat >>confdefs.h <<\_ACEOF
6596 #define OPAL_LID 1
6597 _ACEOF
6599 OPAL_LID=1
6600 { echo "$as_me:$LINENO: result: enabled" >&5
6601 echo "${ECHO_T}enabled" >&6; }
6602 else
6603 { echo "$as_me:$LINENO: result: disabled" >&5
6604 echo "${ECHO_T}disabled" >&6; }
6611 OPAL_ivr=
6612 ivr=yes
6613 if test "$ivr" = "yes" ; then
6614 # Check whether --enable-ivr was given.
6615 if test "${enable_ivr+set}" = set; then
6616 enableval=$enable_ivr; ivr=$enableval
6619 { echo "$as_me:$LINENO: checking IVR support" >&5
6620 echo $ECHO_N "checking IVR support... $ECHO_C" >&6; }
6621 if test "$ivr" = "yes" ; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define OPAL_IVR 1
6624 _ACEOF
6626 OPAL_IVR=1
6627 { echo "$as_me:$LINENO: result: enabled" >&5
6628 echo "${ECHO_T}enabled" >&6; }
6629 else
6630 { echo "$as_me:$LINENO: result: disabled" >&5
6631 echo "${ECHO_T}disabled" >&6; }
6638 OPAL_RFC4175=
6639 rfc4175=yes
6640 if test "$rfc4175" = "yes" ; then
6641 # Check whether --enable-rfc4175 was given.
6642 if test "${enable_rfc4175+set}" = set; then
6643 enableval=$enable_rfc4175; rfc4175=$enableval
6646 { echo "$as_me:$LINENO: checking RFC4175 codec" >&5
6647 echo $ECHO_N "checking RFC4175 codec... $ECHO_C" >&6; }
6648 if test "$rfc4175" = "yes" ; then
6649 OPAL_RFC4175=1
6651 cat >>confdefs.h <<\_ACEOF
6652 #define OPAL_RFC4175 1
6653 _ACEOF
6655 { echo "$as_me:$LINENO: result: enabled" >&5
6656 echo "${ECHO_T}enabled" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: result: disabled" >&5
6659 echo "${ECHO_T}disabled" >&6; }
6666 HAS_LIBZRTP=
6673 HAS_LIBSRTP=
6674 { echo "$as_me:$LINENO: checking for libSRTP" >&5
6675 echo $ECHO_N "checking for libSRTP... $ECHO_C" >&6; }
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include "srtp/srtp.h"
6684 main ()
6686 int main(int argc, char *argv[]) { crypto_policy_t p; p.cipher_key_len = SRTP_MASTER_KEY_LEN; return 0; }
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (ac_try="$ac_compile"
6693 case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696 esac
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 HAS_LIBSRTP=1
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 if test "${HAS_LIBSRTP}" = "1" ; then
6718 { echo "$as_me:$LINENO: result: yes" >&5
6719 echo "${ECHO_T}yes" >&6; }
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAS_LIBSRTP 1
6722 _ACEOF
6724 HAS_LIBSRTP=1
6725 OPAL_SRTP=1
6726 else
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6736 ac_aux_dir=
6737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6738 if test -f "$ac_dir/install-sh"; then
6739 ac_aux_dir=$ac_dir
6740 ac_install_sh="$ac_aux_dir/install-sh -c"
6741 break
6742 elif test -f "$ac_dir/install.sh"; then
6743 ac_aux_dir=$ac_dir
6744 ac_install_sh="$ac_aux_dir/install.sh -c"
6745 break
6746 elif test -f "$ac_dir/shtool"; then
6747 ac_aux_dir=$ac_dir
6748 ac_install_sh="$ac_aux_dir/shtool install -c"
6749 break
6751 done
6752 if test -z "$ac_aux_dir"; then
6753 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6754 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6755 { (exit 1); exit 1; }; }
6758 # These three variables are undocumented and unsupported,
6759 # and are intended to be withdrawn in a future Autoconf release.
6760 # They can cause serious problems if a builder's source tree is in a directory
6761 # whose full name contains unusual characters.
6762 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6763 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6764 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6767 # Find a good install program. We prefer a C program (faster),
6768 # so one script is as good as another. But avoid the broken or
6769 # incompatible versions:
6770 # SysV /etc/install, /usr/sbin/install
6771 # SunOS /usr/etc/install
6772 # IRIX /sbin/install
6773 # AIX /bin/install
6774 # AmigaOS /C/install, which installs bootblocks on floppy discs
6775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6778 # OS/2's system install, which has a completely different semantic
6779 # ./install, which can be erroneously created by make from ./install.sh.
6780 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6781 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6782 if test -z "$INSTALL"; then
6783 if test "${ac_cv_path_install+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 # Account for people who put trailing slashes in PATH elements.
6792 case $as_dir/ in
6793 ./ | .// | /cC/* | \
6794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6795 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6796 /usr/ucb/* ) ;;
6798 # OSF1 and SCO ODT 3.0 have their own names for install.
6799 # Don't use installbsd from OSF since it installs stuff as root
6800 # by default.
6801 for ac_prog in ginstall scoinst install; do
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6804 if test $ac_prog = install &&
6805 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6806 # AIX install. It has an incompatible calling convention.
6808 elif test $ac_prog = install &&
6809 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6810 # program-specific install script used by HP pwplus--don't use.
6812 else
6813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6814 break 3
6817 done
6818 done
6820 esac
6821 done
6822 IFS=$as_save_IFS
6826 if test "${ac_cv_path_install+set}" = set; then
6827 INSTALL=$ac_cv_path_install
6828 else
6829 # As a last resort, use the slow shell script. Don't cache a
6830 # value for INSTALL within a source directory, because that will
6831 # break other packages using the cache if that directory is
6832 # removed, or if the value is a relative name.
6833 INSTALL=$ac_install_sh
6836 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6837 echo "${ECHO_T}$INSTALL" >&6; }
6839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6840 # It thinks the first close brace ends the variable substitution.
6841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6849 subdirs="$subdirs plugins"
6853 ac_config_files="$ac_config_files opal_inc.mak"
6855 ac_config_files="$ac_config_files Makefile"
6857 ac_config_headers="$ac_config_headers include/opal/buildopts.h"
6859 ac_config_files="$ac_config_files opal.pc"
6861 ac_config_files="$ac_config_files opal.spec"
6863 ac_config_files="$ac_config_files opal_cfg.dxy"
6866 ac_config_files="$ac_config_files src/codec/speex/libspeex/speex_config_types.h"
6868 cat >confcache <<\_ACEOF
6869 # This file is a shell script that caches the results of configure
6870 # tests run on this system so they can be shared between configure
6871 # scripts and configure runs, see configure's option --config-cache.
6872 # It is not useful on other systems. If it contains results you don't
6873 # want to keep, you may remove or edit it.
6875 # config.status only pays attention to the cache file if you give it
6876 # the --recheck option to rerun configure.
6878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6880 # following values.
6882 _ACEOF
6884 # The following way of writing the cache mishandles newlines in values,
6885 # but we know of no workaround that is simple, portable, and efficient.
6886 # So, we kill variables containing newlines.
6887 # Ultrix sh set writes to stderr and can't be redirected directly,
6888 # and sets the high bit in the cache file unless we assign to the vars.
6890 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6891 eval ac_val=\$$ac_var
6892 case $ac_val in #(
6893 *${as_nl}*)
6894 case $ac_var in #(
6895 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6896 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6897 esac
6898 case $ac_var in #(
6899 _ | IFS | as_nl) ;; #(
6900 *) $as_unset $ac_var ;;
6901 esac ;;
6902 esac
6903 done
6905 (set) 2>&1 |
6906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6907 *${as_nl}ac_space=\ *)
6908 # `set' does not quote correctly, so add quotes (double-quote
6909 # substitution turns \\\\ into \\, and sed turns \\ into \).
6910 sed -n \
6911 "s/'/'\\\\''/g;
6912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6913 ;; #(
6915 # `set' quotes correctly as required by POSIX, so do not add quotes.
6916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6918 esac |
6919 sort
6921 sed '
6922 /^ac_cv_env_/b end
6923 t clear
6924 :clear
6925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6926 t end
6927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6928 :end' >>confcache
6929 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6930 if test -w "$cache_file"; then
6931 test "x$cache_file" != "x/dev/null" &&
6932 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6933 echo "$as_me: updating cache $cache_file" >&6;}
6934 cat confcache >$cache_file
6935 else
6936 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6937 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6940 rm -f confcache
6942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6943 # Let make expand exec_prefix.
6944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6946 DEFS=-DHAVE_CONFIG_H
6948 ac_libobjs=
6949 ac_ltlibobjs=
6950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6951 # 1. Remove the extension, and $U if already installed.
6952 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6953 ac_i=`echo "$ac_i" | sed "$ac_script"`
6954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6955 # will be set to the directory where LIBOBJS objects are built.
6956 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6957 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6958 done
6959 LIBOBJS=$ac_libobjs
6961 LTLIBOBJS=$ac_ltlibobjs
6965 : ${CONFIG_STATUS=./config.status}
6966 ac_clean_files_save=$ac_clean_files
6967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6968 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6969 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6970 cat >$CONFIG_STATUS <<_ACEOF
6971 #! $SHELL
6972 # Generated by $as_me.
6973 # Run this file to recreate the current configuration.
6974 # Compiler output produced by configure, useful for debugging
6975 # configure, is in config.log if it exists.
6977 debug=false
6978 ac_cs_recheck=false
6979 ac_cs_silent=false
6980 SHELL=\${CONFIG_SHELL-$SHELL}
6981 _ACEOF
6983 cat >>$CONFIG_STATUS <<\_ACEOF
6984 ## --------------------- ##
6985 ## M4sh Initialization. ##
6986 ## --------------------- ##
6988 # Be more Bourne compatible
6989 DUALCASE=1; export DUALCASE # for MKS sh
6990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6991 emulate sh
6992 NULLCMD=:
6993 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6994 # is contrary to our usage. Disable this feature.
6995 alias -g '${1+"$@"}'='"$@"'
6996 setopt NO_GLOB_SUBST
6997 else
6998 case `(set -o) 2>/dev/null` in
6999 *posix*) set -o posix ;;
7000 esac
7007 # PATH needs CR
7008 # Avoid depending upon Character Ranges.
7009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7012 as_cr_digits='0123456789'
7013 as_cr_alnum=$as_cr_Letters$as_cr_digits
7015 # The user is always right.
7016 if test "${PATH_SEPARATOR+set}" != set; then
7017 echo "#! /bin/sh" >conf$$.sh
7018 echo "exit 0" >>conf$$.sh
7019 chmod +x conf$$.sh
7020 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7021 PATH_SEPARATOR=';'
7022 else
7023 PATH_SEPARATOR=:
7025 rm -f conf$$.sh
7028 # Support unset when possible.
7029 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7030 as_unset=unset
7031 else
7032 as_unset=false
7036 # IFS
7037 # We need space, tab and new line, in precisely that order. Quoting is
7038 # there to prevent editors from complaining about space-tab.
7039 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7040 # splitting by setting IFS to empty value.)
7041 as_nl='
7043 IFS=" "" $as_nl"
7045 # Find who we are. Look in the path if we contain no directory separator.
7046 case $0 in
7047 *[\\/]* ) as_myself=$0 ;;
7048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7054 done
7055 IFS=$as_save_IFS
7058 esac
7059 # We did not find ourselves, most probably we were run as `sh COMMAND'
7060 # in which case we are not to be found in the path.
7061 if test "x$as_myself" = x; then
7062 as_myself=$0
7064 if test ! -f "$as_myself"; then
7065 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7066 { (exit 1); exit 1; }
7069 # Work around bugs in pre-3.0 UWIN ksh.
7070 for as_var in ENV MAIL MAILPATH
7071 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7072 done
7073 PS1='$ '
7074 PS2='> '
7075 PS4='+ '
7077 # NLS nuisances.
7078 for as_var in \
7079 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7080 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7081 LC_TELEPHONE LC_TIME
7083 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7084 eval $as_var=C; export $as_var
7085 else
7086 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7088 done
7090 # Required to use basename.
7091 if expr a : '\(a\)' >/dev/null 2>&1 &&
7092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7093 as_expr=expr
7094 else
7095 as_expr=false
7098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7099 as_basename=basename
7100 else
7101 as_basename=false
7105 # Name of the executable.
7106 as_me=`$as_basename -- "$0" ||
7107 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7108 X"$0" : 'X\(//\)$' \| \
7109 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7110 echo X/"$0" |
7111 sed '/^.*\/\([^/][^/]*\)\/*$/{
7112 s//\1/
7115 /^X\/\(\/\/\)$/{
7116 s//\1/
7119 /^X\/\(\/\).*/{
7120 s//\1/
7123 s/.*/./; q'`
7125 # CDPATH.
7126 $as_unset CDPATH
7130 as_lineno_1=$LINENO
7131 as_lineno_2=$LINENO
7132 test "x$as_lineno_1" != "x$as_lineno_2" &&
7133 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7136 # uniformly replaced by the line number. The first 'sed' inserts a
7137 # line-number line after each line using $LINENO; the second 'sed'
7138 # does the real work. The second script uses 'N' to pair each
7139 # line-number line with the line containing $LINENO, and appends
7140 # trailing '-' during substitution so that $LINENO is not a special
7141 # case at line end.
7142 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7143 # scripts with optimization help from Paolo Bonzini. Blame Lee
7144 # E. McMahon (1931-1989) for sed's syntax. :-)
7145 sed -n '
7147 /[$]LINENO/=
7148 ' <$as_myself |
7149 sed '
7150 s/[$]LINENO.*/&-/
7151 t lineno
7153 :lineno
7155 :loop
7156 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7157 t loop
7158 s/-\n.*//
7159 ' >$as_me.lineno &&
7160 chmod +x "$as_me.lineno" ||
7161 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7162 { (exit 1); exit 1; }; }
7164 # Don't try to exec as it changes $[0], causing all sort of problems
7165 # (the dirname of $[0] is not the place where we might find the
7166 # original and so on. Autoconf is especially sensitive to this).
7167 . "./$as_me.lineno"
7168 # Exit status is that of the last command.
7169 exit
7173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7174 as_dirname=dirname
7175 else
7176 as_dirname=false
7179 ECHO_C= ECHO_N= ECHO_T=
7180 case `echo -n x` in
7181 -n*)
7182 case `echo 'x\c'` in
7183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7184 *) ECHO_C='\c';;
7185 esac;;
7187 ECHO_N='-n';;
7188 esac
7190 if expr a : '\(a\)' >/dev/null 2>&1 &&
7191 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7192 as_expr=expr
7193 else
7194 as_expr=false
7197 rm -f conf$$ conf$$.exe conf$$.file
7198 if test -d conf$$.dir; then
7199 rm -f conf$$.dir/conf$$.file
7200 else
7201 rm -f conf$$.dir
7202 mkdir conf$$.dir
7204 echo >conf$$.file
7205 if ln -s conf$$.file conf$$ 2>/dev/null; then
7206 as_ln_s='ln -s'
7207 # ... but there are two gotchas:
7208 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7209 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7210 # In both cases, we have to default to `cp -p'.
7211 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7212 as_ln_s='cp -p'
7213 elif ln conf$$.file conf$$ 2>/dev/null; then
7214 as_ln_s=ln
7215 else
7216 as_ln_s='cp -p'
7218 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7219 rmdir conf$$.dir 2>/dev/null
7221 if mkdir -p . 2>/dev/null; then
7222 as_mkdir_p=:
7223 else
7224 test -d ./-p && rmdir ./-p
7225 as_mkdir_p=false
7228 if test -x / >/dev/null 2>&1; then
7229 as_test_x='test -x'
7230 else
7231 if ls -dL / >/dev/null 2>&1; then
7232 as_ls_L_option=L
7233 else
7234 as_ls_L_option=
7236 as_test_x='
7237 eval sh -c '\''
7238 if test -d "$1"; then
7239 test -d "$1/.";
7240 else
7241 case $1 in
7242 -*)set "./$1";;
7243 esac;
7244 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7245 ???[sx]*):;;*)false;;esac;fi
7246 '\'' sh
7249 as_executable_p=$as_test_x
7251 # Sed expression to map a string onto a valid CPP name.
7252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7254 # Sed expression to map a string onto a valid variable name.
7255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7258 exec 6>&1
7260 # Save the log message, to keep $[0] and so on meaningful, and to
7261 # report actual input values of CONFIG_FILES etc. instead of their
7262 # values after options handling.
7263 ac_log="
7264 This file was extended by $as_me, which was
7265 generated by GNU Autoconf 2.61. Invocation command line was
7267 CONFIG_FILES = $CONFIG_FILES
7268 CONFIG_HEADERS = $CONFIG_HEADERS
7269 CONFIG_LINKS = $CONFIG_LINKS
7270 CONFIG_COMMANDS = $CONFIG_COMMANDS
7271 $ $0 $@
7273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7276 _ACEOF
7278 cat >>$CONFIG_STATUS <<_ACEOF
7279 # Files that config.status was made for.
7280 config_files="$ac_config_files"
7281 config_headers="$ac_config_headers"
7283 _ACEOF
7285 cat >>$CONFIG_STATUS <<\_ACEOF
7286 ac_cs_usage="\
7287 \`$as_me' instantiates files from templates according to the
7288 current configuration.
7290 Usage: $0 [OPTIONS] [FILE]...
7292 -h, --help print this help, then exit
7293 -V, --version print version number and configuration settings, then exit
7294 -q, --quiet do not print progress messages
7295 -d, --debug don't remove temporary files
7296 --recheck update $as_me by reconfiguring in the same conditions
7297 --file=FILE[:TEMPLATE]
7298 instantiate the configuration file FILE
7299 --header=FILE[:TEMPLATE]
7300 instantiate the configuration header FILE
7302 Configuration files:
7303 $config_files
7305 Configuration headers:
7306 $config_headers
7308 Report bugs to <bug-autoconf@gnu.org>."
7310 _ACEOF
7311 cat >>$CONFIG_STATUS <<_ACEOF
7312 ac_cs_version="\\
7313 config.status
7314 configured by $0, generated by GNU Autoconf 2.61,
7315 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7317 Copyright (C) 2006 Free Software Foundation, Inc.
7318 This config.status script is free software; the Free Software Foundation
7319 gives unlimited permission to copy, distribute and modify it."
7321 ac_pwd='$ac_pwd'
7322 srcdir='$srcdir'
7323 INSTALL='$INSTALL'
7324 _ACEOF
7326 cat >>$CONFIG_STATUS <<\_ACEOF
7327 # If no file are specified by the user, then we need to provide default
7328 # value. By we need to know if files were specified by the user.
7329 ac_need_defaults=:
7330 while test $# != 0
7332 case $1 in
7333 --*=*)
7334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7336 ac_shift=:
7339 ac_option=$1
7340 ac_optarg=$2
7341 ac_shift=shift
7343 esac
7345 case $ac_option in
7346 # Handling of the options.
7347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7348 ac_cs_recheck=: ;;
7349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7350 echo "$ac_cs_version"; exit ;;
7351 --debug | --debu | --deb | --de | --d | -d )
7352 debug=: ;;
7353 --file | --fil | --fi | --f )
7354 $ac_shift
7355 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7356 ac_need_defaults=false;;
7357 --header | --heade | --head | --hea )
7358 $ac_shift
7359 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7360 ac_need_defaults=false;;
7361 --he | --h)
7362 # Conflict between --help and --header
7363 { echo "$as_me: error: ambiguous option: $1
7364 Try \`$0 --help' for more information." >&2
7365 { (exit 1); exit 1; }; };;
7366 --help | --hel | -h )
7367 echo "$ac_cs_usage"; exit ;;
7368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7369 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7370 ac_cs_silent=: ;;
7372 # This is an error.
7373 -*) { echo "$as_me: error: unrecognized option: $1
7374 Try \`$0 --help' for more information." >&2
7375 { (exit 1); exit 1; }; } ;;
7377 *) ac_config_targets="$ac_config_targets $1"
7378 ac_need_defaults=false ;;
7380 esac
7381 shift
7382 done
7384 ac_configure_extra_args=
7386 if $ac_cs_silent; then
7387 exec 6>/dev/null
7388 ac_configure_extra_args="$ac_configure_extra_args --silent"
7391 _ACEOF
7392 cat >>$CONFIG_STATUS <<_ACEOF
7393 if \$ac_cs_recheck; then
7394 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7395 CONFIG_SHELL=$SHELL
7396 export CONFIG_SHELL
7397 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7400 _ACEOF
7401 cat >>$CONFIG_STATUS <<\_ACEOF
7402 exec 5>>config.log
7404 echo
7405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7406 ## Running $as_me. ##
7407 _ASBOX
7408 echo "$ac_log"
7409 } >&5
7411 _ACEOF
7412 cat >>$CONFIG_STATUS <<_ACEOF
7413 _ACEOF
7415 cat >>$CONFIG_STATUS <<\_ACEOF
7417 # Handling of arguments.
7418 for ac_config_target in $ac_config_targets
7420 case $ac_config_target in
7421 "opal_inc.mak") CONFIG_FILES="$CONFIG_FILES opal_inc.mak" ;;
7422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7423 "include/opal/buildopts.h") CONFIG_HEADERS="$CONFIG_HEADERS include/opal/buildopts.h" ;;
7424 "opal.pc") CONFIG_FILES="$CONFIG_FILES opal.pc" ;;
7425 "opal.spec") CONFIG_FILES="$CONFIG_FILES opal.spec" ;;
7426 "opal_cfg.dxy") CONFIG_FILES="$CONFIG_FILES opal_cfg.dxy" ;;
7427 "src/codec/speex/libspeex/speex_config_types.h") CONFIG_FILES="$CONFIG_FILES src/codec/speex/libspeex/speex_config_types.h" ;;
7429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7431 { (exit 1); exit 1; }; };;
7432 esac
7433 done
7436 # If the user did not use the arguments to specify the items to instantiate,
7437 # then the envvar interface is used. Set only those that are not.
7438 # We use the long form for the default assignment because of an extremely
7439 # bizarre bug on SunOS 4.1.3.
7440 if $ac_need_defaults; then
7441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7445 # Have a temporary directory for convenience. Make it in the build tree
7446 # simply because there is no reason against having it here, and in addition,
7447 # creating and moving files from /tmp can sometimes cause problems.
7448 # Hook for its removal unless debugging.
7449 # Note that there is a small window in which the directory will not be cleaned:
7450 # after its creation but before its name has been assigned to `$tmp'.
7451 $debug ||
7453 tmp=
7454 trap 'exit_status=$?
7455 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7457 trap '{ (exit 1); exit 1; }' 1 2 13 15
7459 # Create a (secure) tmp directory for tmp files.
7462 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7463 test -n "$tmp" && test -d "$tmp"
7464 } ||
7466 tmp=./conf$$-$RANDOM
7467 (umask 077 && mkdir "$tmp")
7468 } ||
7470 echo "$me: cannot create a temporary directory in ." >&2
7471 { (exit 1); exit 1; }
7475 # Set up the sed scripts for CONFIG_FILES section.
7478 # No need to generate the scripts if there are no CONFIG_FILES.
7479 # This happens for instance when ./config.status config.h
7480 if test -n "$CONFIG_FILES"; then
7482 _ACEOF
7486 ac_delim='%!_!# '
7487 for ac_last_try in false false false false false :; do
7488 cat >conf$$subs.sed <<_ACEOF
7489 SHELL!$SHELL$ac_delim
7490 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7491 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7492 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7493 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7494 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7495 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7496 exec_prefix!$exec_prefix$ac_delim
7497 prefix!$prefix$ac_delim
7498 program_transform_name!$program_transform_name$ac_delim
7499 bindir!$bindir$ac_delim
7500 sbindir!$sbindir$ac_delim
7501 libexecdir!$libexecdir$ac_delim
7502 datarootdir!$datarootdir$ac_delim
7503 datadir!$datadir$ac_delim
7504 sysconfdir!$sysconfdir$ac_delim
7505 sharedstatedir!$sharedstatedir$ac_delim
7506 localstatedir!$localstatedir$ac_delim
7507 includedir!$includedir$ac_delim
7508 oldincludedir!$oldincludedir$ac_delim
7509 docdir!$docdir$ac_delim
7510 infodir!$infodir$ac_delim
7511 htmldir!$htmldir$ac_delim
7512 dvidir!$dvidir$ac_delim
7513 pdfdir!$pdfdir$ac_delim
7514 psdir!$psdir$ac_delim
7515 libdir!$libdir$ac_delim
7516 localedir!$localedir$ac_delim
7517 mandir!$mandir$ac_delim
7518 DEFS!$DEFS$ac_delim
7519 ECHO_C!$ECHO_C$ac_delim
7520 ECHO_N!$ECHO_N$ac_delim
7521 ECHO_T!$ECHO_T$ac_delim
7522 LIBS!$LIBS$ac_delim
7523 build_alias!$build_alias$ac_delim
7524 host_alias!$host_alias$ac_delim
7525 target_alias!$target_alias$ac_delim
7526 CC!$CC$ac_delim
7527 CFLAGS!$CFLAGS$ac_delim
7528 LDFLAGS!$LDFLAGS$ac_delim
7529 CPPFLAGS!$CPPFLAGS$ac_delim
7530 ac_ct_CC!$ac_ct_CC$ac_delim
7531 EXEEXT!$EXEEXT$ac_delim
7532 OBJEXT!$OBJEXT$ac_delim
7533 CXX!$CXX$ac_delim
7534 CXXFLAGS!$CXXFLAGS$ac_delim
7535 ac_ct_CXX!$ac_ct_CXX$ac_delim
7536 OPALDIR!$OPALDIR$ac_delim
7537 INSTALLPREFIX!$INSTALLPREFIX$ac_delim
7538 LIBDIR!$LIBDIR$ac_delim
7539 OPAL_VERSION!$OPAL_VERSION$ac_delim
7540 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
7541 PWLIBDIR!$PWLIBDIR$ac_delim
7542 GCC_HAS_CLZ!$GCC_HAS_CLZ$ac_delim
7543 CPP!$CPP$ac_delim
7544 GREP!$GREP$ac_delim
7545 EGREP!$EGREP$ac_delim
7546 SIZE16!$SIZE16$ac_delim
7547 SIZE32!$SIZE32$ac_delim
7548 OPAL_SYSTEM_SPEEX!$OPAL_SYSTEM_SPEEX$ac_delim
7549 OPAL_HAVE_SPEEX_SPEEX_H!$OPAL_HAVE_SPEEX_SPEEX_H$ac_delim
7550 OPAL_AUDIO!$OPAL_AUDIO$ac_delim
7551 OPAL_VIDEO!$OPAL_VIDEO$ac_delim
7552 OPAL_SIP!$OPAL_SIP$ac_delim
7553 OPAL_H323!$OPAL_H323$ac_delim
7554 OPAL_IAX2!$OPAL_IAX2$ac_delim
7555 OPAL_H224!$OPAL_H224$ac_delim
7556 OPAL_T38FAX!$OPAL_T38FAX$ac_delim
7557 OPAL_H450!$OPAL_H450$ac_delim
7558 OPAL_H460!$OPAL_H460$ac_delim
7559 OPAL_LID!$OPAL_LID$ac_delim
7560 OPAL_IVR!$OPAL_IVR$ac_delim
7561 OPAL_RFC4175!$OPAL_RFC4175$ac_delim
7562 OPAL_ZRTP!$OPAL_ZRTP$ac_delim
7563 HAS_LIBZRTP!$HAS_LIBZRTP$ac_delim
7564 OPAL_SRTP!$OPAL_SRTP$ac_delim
7565 HAS_LIBSRTP!$HAS_LIBSRTP$ac_delim
7566 STDCCFLAGS!$STDCCFLAGS$ac_delim
7567 ENDLDLIBS!$ENDLDLIBS$ac_delim
7568 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7569 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7570 INSTALL_DATA!$INSTALL_DATA$ac_delim
7571 subdirs!$subdirs$ac_delim
7572 LIBOBJS!$LIBOBJS$ac_delim
7573 LTLIBOBJS!$LTLIBOBJS$ac_delim
7574 _ACEOF
7576 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
7577 break
7578 elif $ac_last_try; then
7579 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7580 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7581 { (exit 1); exit 1; }; }
7582 else
7583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7585 done
7587 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7588 if test -n "$ac_eof"; then
7589 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7590 ac_eof=`expr $ac_eof + 1`
7593 cat >>$CONFIG_STATUS <<_ACEOF
7594 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7596 _ACEOF
7597 sed '
7598 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7599 s/^/s,@/; s/!/@,|#_!!_#|/
7602 s/'"$ac_delim"'$/,g/; t
7603 s/$/\\/; p
7604 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7605 ' >>$CONFIG_STATUS <conf$$subs.sed
7606 rm -f conf$$subs.sed
7607 cat >>$CONFIG_STATUS <<_ACEOF
7608 :end
7609 s/|#_!!_#|//g
7610 CEOF$ac_eof
7611 _ACEOF
7614 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7615 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7616 # trailing colons and then remove the whole line if VPATH becomes empty
7617 # (actually we leave an empty line to preserve line numbers).
7618 if test "x$srcdir" = x.; then
7619 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7620 s/:*\$(srcdir):*/:/
7621 s/:*\${srcdir}:*/:/
7622 s/:*@srcdir@:*/:/
7623 s/^\([^=]*=[ ]*\):*/\1/
7624 s/:*$//
7625 s/^[^=]*=[ ]*$//
7629 cat >>$CONFIG_STATUS <<\_ACEOF
7630 fi # test -n "$CONFIG_FILES"
7633 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7635 case $ac_tag in
7636 :[FHLC]) ac_mode=$ac_tag; continue;;
7637 esac
7638 case $ac_mode$ac_tag in
7639 :[FHL]*:*);;
7640 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7641 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7642 { (exit 1); exit 1; }; };;
7643 :[FH]-) ac_tag=-:-;;
7644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7645 esac
7646 ac_save_IFS=$IFS
7647 IFS=:
7648 set x $ac_tag
7649 IFS=$ac_save_IFS
7650 shift
7651 ac_file=$1
7652 shift
7654 case $ac_mode in
7655 :L) ac_source=$1;;
7656 :[FH])
7657 ac_file_inputs=
7658 for ac_f
7660 case $ac_f in
7661 -) ac_f="$tmp/stdin";;
7662 *) # Look for the file first in the build tree, then in the source tree
7663 # (if the path is not absolute). The absolute path cannot be DOS-style,
7664 # because $ac_f cannot contain `:'.
7665 test -f "$ac_f" ||
7666 case $ac_f in
7667 [\\/$]*) false;;
7668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7669 esac ||
7670 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7671 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7672 { (exit 1); exit 1; }; };;
7673 esac
7674 ac_file_inputs="$ac_file_inputs $ac_f"
7675 done
7677 # Let's still pretend it is `configure' which instantiates (i.e., don't
7678 # use $as_me), people would be surprised to read:
7679 # /* config.h. Generated by config.status. */
7680 configure_input="Generated from "`IFS=:
7681 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7682 if test x"$ac_file" != x-; then
7683 configure_input="$ac_file. $configure_input"
7684 { echo "$as_me:$LINENO: creating $ac_file" >&5
7685 echo "$as_me: creating $ac_file" >&6;}
7688 case $ac_tag in
7689 *:-:* | *:-) cat >"$tmp/stdin";;
7690 esac
7692 esac
7694 ac_dir=`$as_dirname -- "$ac_file" ||
7695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7696 X"$ac_file" : 'X\(//\)[^/]' \| \
7697 X"$ac_file" : 'X\(//\)$' \| \
7698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7699 echo X"$ac_file" |
7700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7701 s//\1/
7704 /^X\(\/\/\)[^/].*/{
7705 s//\1/
7708 /^X\(\/\/\)$/{
7709 s//\1/
7712 /^X\(\/\).*/{
7713 s//\1/
7716 s/.*/./; q'`
7717 { as_dir="$ac_dir"
7718 case $as_dir in #(
7719 -*) as_dir=./$as_dir;;
7720 esac
7721 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7722 as_dirs=
7723 while :; do
7724 case $as_dir in #(
7725 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7726 *) as_qdir=$as_dir;;
7727 esac
7728 as_dirs="'$as_qdir' $as_dirs"
7729 as_dir=`$as_dirname -- "$as_dir" ||
7730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7731 X"$as_dir" : 'X\(//\)[^/]' \| \
7732 X"$as_dir" : 'X\(//\)$' \| \
7733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7734 echo X"$as_dir" |
7735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7736 s//\1/
7739 /^X\(\/\/\)[^/].*/{
7740 s//\1/
7743 /^X\(\/\/\)$/{
7744 s//\1/
7747 /^X\(\/\).*/{
7748 s//\1/
7751 s/.*/./; q'`
7752 test -d "$as_dir" && break
7753 done
7754 test -z "$as_dirs" || eval "mkdir $as_dirs"
7755 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7756 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7757 { (exit 1); exit 1; }; }; }
7758 ac_builddir=.
7760 case "$ac_dir" in
7761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7763 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7764 # A ".." for each directory in $ac_dir_suffix.
7765 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7766 case $ac_top_builddir_sub in
7767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7769 esac ;;
7770 esac
7771 ac_abs_top_builddir=$ac_pwd
7772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7773 # for backward compatibility:
7774 ac_top_builddir=$ac_top_build_prefix
7776 case $srcdir in
7777 .) # We are building in place.
7778 ac_srcdir=.
7779 ac_top_srcdir=$ac_top_builddir_sub
7780 ac_abs_top_srcdir=$ac_pwd ;;
7781 [\\/]* | ?:[\\/]* ) # Absolute name.
7782 ac_srcdir=$srcdir$ac_dir_suffix;
7783 ac_top_srcdir=$srcdir
7784 ac_abs_top_srcdir=$srcdir ;;
7785 *) # Relative name.
7786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7787 ac_top_srcdir=$ac_top_build_prefix$srcdir
7788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7789 esac
7790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7793 case $ac_mode in
7796 # CONFIG_FILE
7799 case $INSTALL in
7800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7801 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7802 esac
7803 _ACEOF
7805 cat >>$CONFIG_STATUS <<\_ACEOF
7806 # If the template does not know about datarootdir, expand it.
7807 # FIXME: This hack should be removed a few years after 2.60.
7808 ac_datarootdir_hack=; ac_datarootdir_seen=
7810 case `sed -n '/datarootdir/ {
7814 /@datadir@/p
7815 /@docdir@/p
7816 /@infodir@/p
7817 /@localedir@/p
7818 /@mandir@/p
7819 ' $ac_file_inputs` in
7820 *datarootdir*) ac_datarootdir_seen=yes;;
7821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7822 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7823 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7824 _ACEOF
7825 cat >>$CONFIG_STATUS <<_ACEOF
7826 ac_datarootdir_hack='
7827 s&@datadir@&$datadir&g
7828 s&@docdir@&$docdir&g
7829 s&@infodir@&$infodir&g
7830 s&@localedir@&$localedir&g
7831 s&@mandir@&$mandir&g
7832 s&\\\${datarootdir}&$datarootdir&g' ;;
7833 esac
7834 _ACEOF
7836 # Neutralize VPATH when `$srcdir' = `.'.
7837 # Shell code in configure.ac might set extrasub.
7838 # FIXME: do we really want to maintain this feature?
7839 cat >>$CONFIG_STATUS <<_ACEOF
7840 sed "$ac_vpsub
7841 $extrasub
7842 _ACEOF
7843 cat >>$CONFIG_STATUS <<\_ACEOF
7845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7846 s&@configure_input@&$configure_input&;t t
7847 s&@top_builddir@&$ac_top_builddir_sub&;t t
7848 s&@srcdir@&$ac_srcdir&;t t
7849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7850 s&@top_srcdir@&$ac_top_srcdir&;t t
7851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7852 s&@builddir@&$ac_builddir&;t t
7853 s&@abs_builddir@&$ac_abs_builddir&;t t
7854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7855 s&@INSTALL@&$ac_INSTALL&;t t
7856 $ac_datarootdir_hack
7857 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7860 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7862 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7863 which seems to be undefined. Please make sure it is defined." >&5
7864 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7865 which seems to be undefined. Please make sure it is defined." >&2;}
7867 rm -f "$tmp/stdin"
7868 case $ac_file in
7869 -) cat "$tmp/out"; rm -f "$tmp/out";;
7870 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7871 esac
7875 # CONFIG_HEADER
7877 _ACEOF
7879 # Transform confdefs.h into a sed script `conftest.defines', that
7880 # substitutes the proper values into config.h.in to produce config.h.
7881 rm -f conftest.defines conftest.tail
7882 # First, append a space to every undef/define line, to ease matching.
7883 echo 's/$/ /' >conftest.defines
7884 # Then, protect against being on the right side of a sed subst, or in
7885 # an unquoted here document, in config.status. If some macros were
7886 # called several times there might be several #defines for the same
7887 # symbol, which is useless. But do not sort them, since the last
7888 # AC_DEFINE must be honored.
7889 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7890 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7891 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7892 # PARAMS is the parameter list in the macro definition--in most cases, it's
7893 # just an empty string.
7894 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7895 ac_dB='\\)[ (].*,\\1define\\2'
7896 ac_dC=' '
7897 ac_dD=' ,'
7899 uniq confdefs.h |
7900 sed -n '
7901 t rset
7902 :rset
7903 s/^[ ]*#[ ]*define[ ][ ]*//
7904 t ok
7907 s/[\\&,]/\\&/g
7908 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7909 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7910 ' >>conftest.defines
7912 # Remove the space that was appended to ease matching.
7913 # Then replace #undef with comments. This is necessary, for
7914 # example, in the case of _POSIX_SOURCE, which is predefined and required
7915 # on some systems where configure will not decide to define it.
7916 # (The regexp can be short, since the line contains either #define or #undef.)
7917 echo 's/ $//
7918 s,^[ #]*u.*,/* & */,' >>conftest.defines
7920 # Break up conftest.defines:
7921 ac_max_sed_lines=50
7923 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7924 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7925 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7926 # et cetera.
7927 ac_in='$ac_file_inputs'
7928 ac_out='"$tmp/out1"'
7929 ac_nxt='"$tmp/out2"'
7931 while :
7933 # Write a here document:
7934 cat >>$CONFIG_STATUS <<_ACEOF
7935 # First, check the format of the line:
7936 cat >"\$tmp/defines.sed" <<\\CEOF
7937 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7938 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7940 :def
7941 _ACEOF
7942 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7943 echo 'CEOF
7944 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7945 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7946 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7947 grep . conftest.tail >/dev/null || break
7948 rm -f conftest.defines
7949 mv conftest.tail conftest.defines
7950 done
7951 rm -f conftest.defines conftest.tail
7953 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7954 cat >>$CONFIG_STATUS <<\_ACEOF
7955 if test x"$ac_file" != x-; then
7956 echo "/* $configure_input */" >"$tmp/config.h"
7957 cat "$ac_result" >>"$tmp/config.h"
7958 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7960 echo "$as_me: $ac_file is unchanged" >&6;}
7961 else
7962 rm -f $ac_file
7963 mv "$tmp/config.h" $ac_file
7965 else
7966 echo "/* $configure_input */"
7967 cat "$ac_result"
7969 rm -f "$tmp/out12"
7973 esac
7975 done # for ac_tag
7978 { (exit 0); exit 0; }
7979 _ACEOF
7980 chmod +x $CONFIG_STATUS
7981 ac_clean_files=$ac_clean_files_save
7984 # configure is writing to config.log, and then calls config.status.
7985 # config.status does its own redirection, appending to config.log.
7986 # Unfortunately, on DOS this fails, as config.log is still kept open
7987 # by configure, so config.status won't be able to write to it; its
7988 # output is simply discarded. So we exec the FD to /dev/null,
7989 # effectively closing config.log, so it can be properly (re)opened and
7990 # appended to by config.status. When coming back to configure, we
7991 # need to make the FD available again.
7992 if test "$no_create" != yes; then
7993 ac_cs_success=:
7994 ac_config_status_args=
7995 test "$silent" = yes &&
7996 ac_config_status_args="$ac_config_status_args --quiet"
7997 exec 5>/dev/null
7998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7999 exec 5>>config.log
8000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8001 # would make configure fail if this is the last instruction.
8002 $ac_cs_success || { (exit 1); exit 1; }
8006 # CONFIG_SUBDIRS section.
8008 if test "$no_recursion" != yes; then
8010 # Remove --cache-file and --srcdir arguments so they do not pile up.
8011 ac_sub_configure_args=
8012 ac_prev=
8013 eval "set x $ac_configure_args"
8014 shift
8015 for ac_arg
8017 if test -n "$ac_prev"; then
8018 ac_prev=
8019 continue
8021 case $ac_arg in
8022 -cache-file | --cache-file | --cache-fil | --cache-fi \
8023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8024 ac_prev=cache_file ;;
8025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8027 | --c=*)
8029 --config-cache | -C)
8031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8032 ac_prev=srcdir ;;
8033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8036 ac_prev=prefix ;;
8037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8040 case $ac_arg in
8041 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8042 esac
8043 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8044 esac
8045 done
8047 # Always prepend --prefix to ensure using the same prefix
8048 # in subdir configurations.
8049 ac_arg="--prefix=$prefix"
8050 case $ac_arg in
8051 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8052 esac
8053 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8055 # Pass --silent
8056 if test "$silent" = yes; then
8057 ac_sub_configure_args="--silent $ac_sub_configure_args"
8060 ac_popdir=`pwd`
8061 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8063 # Do not complain, so a configure script can configure whichever
8064 # parts of a large source tree are present.
8065 test -d "$srcdir/$ac_dir" || continue
8067 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8068 echo "$as_me:$LINENO: $ac_msg" >&5
8069 echo "$ac_msg" >&6
8070 { as_dir="$ac_dir"
8071 case $as_dir in #(
8072 -*) as_dir=./$as_dir;;
8073 esac
8074 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8075 as_dirs=
8076 while :; do
8077 case $as_dir in #(
8078 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8079 *) as_qdir=$as_dir;;
8080 esac
8081 as_dirs="'$as_qdir' $as_dirs"
8082 as_dir=`$as_dirname -- "$as_dir" ||
8083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8084 X"$as_dir" : 'X\(//\)[^/]' \| \
8085 X"$as_dir" : 'X\(//\)$' \| \
8086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8087 echo X"$as_dir" |
8088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8089 s//\1/
8092 /^X\(\/\/\)[^/].*/{
8093 s//\1/
8096 /^X\(\/\/\)$/{
8097 s//\1/
8100 /^X\(\/\).*/{
8101 s//\1/
8104 s/.*/./; q'`
8105 test -d "$as_dir" && break
8106 done
8107 test -z "$as_dirs" || eval "mkdir $as_dirs"
8108 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8109 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8110 { (exit 1); exit 1; }; }; }
8111 ac_builddir=.
8113 case "$ac_dir" in
8114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8117 # A ".." for each directory in $ac_dir_suffix.
8118 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8119 case $ac_top_builddir_sub in
8120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8122 esac ;;
8123 esac
8124 ac_abs_top_builddir=$ac_pwd
8125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8126 # for backward compatibility:
8127 ac_top_builddir=$ac_top_build_prefix
8129 case $srcdir in
8130 .) # We are building in place.
8131 ac_srcdir=.
8132 ac_top_srcdir=$ac_top_builddir_sub
8133 ac_abs_top_srcdir=$ac_pwd ;;
8134 [\\/]* | ?:[\\/]* ) # Absolute name.
8135 ac_srcdir=$srcdir$ac_dir_suffix;
8136 ac_top_srcdir=$srcdir
8137 ac_abs_top_srcdir=$srcdir ;;
8138 *) # Relative name.
8139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8140 ac_top_srcdir=$ac_top_build_prefix$srcdir
8141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8142 esac
8143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8146 cd "$ac_dir"
8148 # Check for guested configure; otherwise get Cygnus style configure.
8149 if test -f "$ac_srcdir/configure.gnu"; then
8150 ac_sub_configure=$ac_srcdir/configure.gnu
8151 elif test -f "$ac_srcdir/configure"; then
8152 ac_sub_configure=$ac_srcdir/configure
8153 elif test -f "$ac_srcdir/configure.in"; then
8154 # This should be Cygnus configure.
8155 ac_sub_configure=$ac_aux_dir/configure
8156 else
8157 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8159 ac_sub_configure=
8162 # The recursion is here.
8163 if test -n "$ac_sub_configure"; then
8164 # Make the cache file name correct relative to the subdirectory.
8165 case $cache_file in
8166 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8167 *) # Relative name.
8168 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8169 esac
8171 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8172 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8173 # The eval makes quoting arguments work.
8174 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8175 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8176 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8177 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8178 { (exit 1); exit 1; }; }
8181 cd "$ac_popdir"
8182 done