remove requirement for libtasn1, which appears to be a Debian thing
[asterisk/asterisk.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 40790 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41   echo "#! /bin/sh" >conf$$.sh
42   echo  "exit 0"   >>conf$$.sh
43   chmod +x conf$$.sh
44   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45     PATH_SEPARATOR=';'
46   else
47     PATH_SEPARATOR=:
48   fi
49   rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54   as_unset=unset
55 else
56   as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order.  Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" ""        $as_nl"
68
69 # Find who we are.  Look in the path if we contain no directory separator.
70 case $0 in
71   *[\\/]* ) as_myself=$0 ;;
72   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75   IFS=$as_save_IFS
76   test -z "$as_dir" && as_dir=.
77   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81      ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86   as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90   { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105   LC_TELEPHONE LC_TIME
106 do
107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108     eval $as_var=C; export $as_var
109   else
110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111   fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
117   as_expr=expr
118 else
119   as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123   as_basename=basename
124 else
125   as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132          X"$0" : 'X\(//\)$' \| \
133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135     sed '/^.*\/\([^/][^/]*\)\/*$/{
136             s//\1/
137             q
138           }
139           /^X\/\(\/\/\)$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\).*/{
144             s//\1/
145             q
146           }
147           s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154   if (eval ":") 2>/dev/null; then
155   as_have_required=yes
156 else
157   as_have_required=no
158 fi
159
160   if test $as_have_required = yes &&     (eval ":
161 (as_func_return () {
162   (exit \$1)
163 }
164 as_func_success () {
165   as_func_return 0
166 }
167 as_func_failure () {
168   as_func_return 1
169 }
170 as_func_ret_success () {
171   return 0
172 }
173 as_func_ret_failure () {
174   return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179   :
180 else
181   exitcode=1
182   echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186   exitcode=1
187   echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191   :
192 else
193   exitcode=1
194   echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198   exitcode=1
199   echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203   :
204 else
205   exitcode=1
206   echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212   as_lineno_1=\$LINENO
213   as_lineno_2=\$LINENO
214   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217   :
218 else
219   as_candidate_shells=
220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   case $as_dir in
226          /*)
227            for as_base in sh bash ksh sh5; do
228              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229            done;;
230        esac
231 done
232 IFS=$as_save_IFS
233
234
235       for as_shell in $as_candidate_shells $SHELL; do
236          # Try only shells that exist, to save several forks.
237          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238                 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
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 *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256   CONFIG_SHELL=$as_shell
257                as_have_required=yes
258                if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261   emulate sh
262   NULLCMD=:
263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264   # is contrary to our usage.  Disable this feature.
265   alias -g '${1+"$@"}'='"$@"'
266   setopt NO_GLOB_SUBST
267 else
268   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275   (exit $1)
276 }
277 as_func_success () {
278   as_func_return 0
279 }
280 as_func_failure () {
281   as_func_return 1
282 }
283 as_func_ret_success () {
284   return 0
285 }
286 as_func_ret_failure () {
287   return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292   :
293 else
294   exitcode=1
295   echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299   exitcode=1
300   echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311   exitcode=1
312   echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316   :
317 else
318   exitcode=1
319   echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325   as_lineno_1=$LINENO
326   as_lineno_2=$LINENO
327   test "x$as_lineno_1" != "x$as_lineno_2" &&
328   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332   break
333 fi
334
335 fi
336
337       done
338
339       if test "x$CONFIG_SHELL" != x; then
340   for as_var in BASH_ENV ENV
341         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342         done
343         export CONFIG_SHELL
344         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348     if test $as_have_required = no; then
349   echo This script requires a shell more modern than all the
350       echo shells that I found on your system.  Please install a
351       echo modern shell, or manually run the script under such a
352       echo shell if you do have one.
353       { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364   (exit \$1)
365 }
366 as_func_success () {
367   as_func_return 0
368 }
369 as_func_failure () {
370   as_func_return 1
371 }
372 as_func_ret_success () {
373   return 0
374 }
375 as_func_ret_failure () {
376   return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381   :
382 else
383   exitcode=1
384   echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388   exitcode=1
389   echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393   :
394 else
395   exitcode=1
396   echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400   exitcode=1
401   echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405   :
406 else
407   exitcode=1
408   echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412   echo No shell found that supports shell functions.
413   echo Please tell autoconf@gnu.org about your system,
414   echo including any error possibly output before this
415   echo message
416 }
417
418
419
420   as_lineno_1=$LINENO
421   as_lineno_2=$LINENO
422   test "x$as_lineno_1" != "x$as_lineno_2" &&
423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426   # uniformly replaced by the line number.  The first 'sed' inserts a
427   # line-number line after each line using $LINENO; the second 'sed'
428   # does the real work.  The second script uses 'N' to pair each
429   # line-number line with the line containing $LINENO, and appends
430   # trailing '-' during substitution so that $LINENO is not a special
431   # case at line end.
432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
434   # E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452    { (exit 1); exit 1; }; }
453
454   # Don't try to exec as it changes $[0], causing all sort of problems
455   # (the dirname of $[0] is not the place where we might find the
456   # original and so on.  Autoconf is especially sensitive to this).
457   . "./$as_me.lineno"
458   # Exit status is that of the last command.
459   exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472   case `echo 'x\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   *)   ECHO_C='\c';;
475   esac;;
476 *)
477   ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
482   as_expr=expr
483 else
484   as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489   rm -f conf$$.dir/conf$$.file
490 else
491   rm -f conf$$.dir
492   mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496   as_ln_s='ln -s'
497   # ... but there are two gotchas:
498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500   # In both cases, we have to default to `cp -p'.
501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502     as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504   as_ln_s=ln
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p=:
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526   as_executable_p="test -x"
527 else
528   as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME=
562 PACKAGE_TARNAME=
563 PACKAGE_VERSION=
564 PACKAGE_STRING=
565 PACKAGE_BUGREPORT=
566
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 build
643 build_cpu
644 build_vendor
645 build_os
646 host
647 host_cpu
648 host_vendor
649 host_os
650 BUILD_PLATFORM
651 BUILD_CPU
652 BUILD_VENDOR
653 BUILD_OS
654 HOST_PLATFORM
655 HOST_CPU
656 HOST_VENDOR
657 HOST_OS
658 UNAME
659 PBX_OSREV
660 CC
661 CXX
662 LD
663 RANLIB
664 AR
665 CFLAGS
666 LDFLAGS
667 CPPFLAGS
668 ac_ct_CC
669 EXEEXT
670 OBJEXT
671 CXXFLAGS
672 ac_ct_CXX
673 CPP
674 CXXCPP
675 AWK
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 LN_S
680 GNU_MAKE
681 GREP
682 FIND
683 COMPRESS
684 BASENAME
685 DIRNAME
686 LN
687 DOT
688 AST_DEVMODE
689 ALSA_LIB
690 ALSA_INCLUDE
691 PBX_ALSA
692 CURSES_LIB
693 CURSES_INCLUDE
694 PBX_CURSES
695 GNUTLS_LIB
696 GNUTLS_INCLUDE
697 PBX_GNUTLS
698 GSM_LIB
699 GSM_INCLUDE
700 PBX_GSM
701 IKSEMEL_LIB
702 IKSEMEL_INCLUDE
703 PBX_IKSEMEL
704 IMAP_TK_LIB
705 IMAP_TK_INCLUDE
706 PBX_IMAP_TK
707 ISDNNET_LIB
708 ISDNNET_INCLUDE
709 PBX_ISDNNET
710 KDE_LIB
711 KDE_INCLUDE
712 PBX_KDE
713 MISDN_LIB
714 MISDN_INCLUDE
715 PBX_MISDN
716 NBS_LIB
717 NBS_INCLUDE
718 PBX_NBS
719 NCURSES_LIB
720 NCURSES_INCLUDE
721 PBX_NCURSES
722 NETSNMP_LIB
723 NETSNMP_INCLUDE
724 PBX_NETSNMP
725 NEWT_LIB
726 NEWT_INCLUDE
727 PBX_NEWT
728 UNIXODBC_LIB
729 UNIXODBC_INCLUDE
730 PBX_UNIXODBC
731 OGG_LIB
732 OGG_INCLUDE
733 PBX_OGG
734 OSPTK_LIB
735 OSPTK_INCLUDE
736 PBX_OSPTK
737 OSS_LIB
738 OSS_INCLUDE
739 PBX_OSS
740 POPT_LIB
741 POPT_INCLUDE
742 PBX_POPT
743 PGSQL_LIB
744 PGSQL_INCLUDE
745 PBX_PGSQL
746 PRI_LIB
747 PRI_INCLUDE
748 PBX_PRI
749 PWLIB_LIB
750 PWLIB_INCLUDE
751 PBX_PWLIB
752 QT_LIB
753 QT_INCLUDE
754 PBX_QT
755 RADIUS_LIB
756 RADIUS_INCLUDE
757 PBX_RADIUS
758 SPEEX_LIB
759 SPEEX_INCLUDE
760 PBX_SPEEX
761 SQLITE_LIB
762 SQLITE_INCLUDE
763 PBX_SQLITE
764 SUPPSERV_LIB
765 SUPPSERV_INCLUDE
766 PBX_SUPPSERV
767 OPENSSL_LIB
768 OPENSSL_INCLUDE
769 PBX_OPENSSL
770 FREETDS_LIB
771 FREETDS_INCLUDE
772 PBX_FREETDS
773 TERMCAP_LIB
774 TERMCAP_INCLUDE
775 PBX_TERMCAP
776 TINFO_LIB
777 TINFO_INCLUDE
778 PBX_TINFO
779 TONEZONE_LIB
780 TONEZONE_INCLUDE
781 PBX_TONEZONE
782 VORBIS_LIB
783 VORBIS_INCLUDE
784 PBX_VORBIS
785 VPB_LIB
786 VPB_INCLUDE
787 PBX_VPB
788 ZLIB_LIB
789 ZLIB_INCLUDE
790 PBX_ZLIB
791 ZAPTEL_LIB
792 ZAPTEL_INCLUDE
793 PBX_ZAPTEL
794 ALLOCA
795 EGREP
796 LIBOBJS
797 POW_LIB
798 GSM_INTERNAL
799 KDEINIT
800 KDEDIR
801 NETSNMP_CONFIG
802 PG_CONFIG
803 QTMOC
804 EDITLINE_LIB
805 PBX_H323
806 PBX_IXJUSER
807 GTKCONFIG
808 PBX_GTK
809 GTK_INCLUDE
810 GTK_LIB
811 CURL
812 PBX_CURL
813 CURLLIB
814 LTLIBOBJS'
815 ac_subst_files=''
816       ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 CXX
824 CXXFLAGS
825 CCC
826 CPP
827 CXXCPP'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935    { (exit 1); exit 1; }; }
936     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937     eval enable_$ac_feature=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954    { (exit 1); exit 1; }; }
955     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956     eval enable_$ac_feature=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package| sed 's/-/_/g'`
1153     eval with_$ac_package=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid package name: $ac_package" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_package=`echo $ac_package | sed 's/-/_/g'`
1162     eval with_$ac_package=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184    { (exit 1); exit 1; }; }
1185     ;;
1186
1187   *=*)
1188     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192    { (exit 1); exit 1; }; }
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   { echo "$as_me: error: missing argument to $ac_option" >&2
1210    { (exit 1); exit 1; }; }
1211 fi
1212
1213 # Be sure to have absolute directory names.
1214 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215                 datadir sysconfdir sharedstatedir localstatedir includedir \
1216                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217                 libdir localedir mandir
1218 do
1219   eval ac_val=\$$ac_var
1220   case $ac_val in
1221     [\\/$]* | ?:[\\/]* )  continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223   esac
1224   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225    { (exit 1); exit 1; }; }
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   { echo "$as_me: error: Working directory cannot be determined" >&2
1256    { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   { echo "$as_me: error: pwd does not report name of working directory" >&2
1259    { (exit 1); exit 1; }; }
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$0" : 'X\(//\)[^/]' \| \
1269          X"$0" : 'X\(//\)$' \| \
1270          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 echo X"$0" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299    { (exit 1); exit 1; }; }
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304    { (exit 1); exit 1; }; }
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures this package to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR           user executables [EPREFIX/bin]
1365   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR       program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR           object code libraries [EPREFIX/lib]
1371   --includedir=DIR       C header files [PREFIX/include]
1372   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR          info documentation [DATAROOTDIR/info]
1376   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR           man documentation [DATAROOTDIR/man]
1378   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1379   --htmldir=DIR          html documentation [DOCDIR]
1380   --dvidir=DIR           dvi documentation [DOCDIR]
1381   --pdfdir=DIR           pdf documentation [DOCDIR]
1382   --psdir=DIR            ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --enable-dev-mode    Turn on developer mode
1401   --disable-largefile     omit support for large files
1402
1403 Optional Packages:
1404   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1405   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1406   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
1407   --with-curses=PATH      use curses files in PATH
1408   --with-gnutls=PATH      use GNU TLS support (used for iksemel only) files in
1409                           PATH
1410   --with-gsm=PATH         use GSM files in PATH , or 'internal'
1411   --with-iksemel=PATH     use Iksemel Jabber Library files in PATH
1412   --with-imap=PATH        use UW IMAP Toolkit files in PATH
1413   --with-isdnnet=PATH     use ISDN4Linux Library files in PATH
1414   --with-kde=PATH         use KDE files in PATH
1415   --with-misdn=PATH       use mISDN User Library files in PATH
1416   --with-nbs=PATH         use Network Broadcast Sound files in PATH
1417   --with-ncurses=PATH     use ncurses files in PATH
1418   --with-netsnmp=PATH     use Net-SNMP files in PATH
1419   --with-newt=PATH        use newt files in PATH
1420   --with-odbc=PATH        use unixODBC files in PATH
1421   --with-ogg=PATH         use OGG files in PATH
1422   --with-osptk=PATH       use OSP Toolkit files in PATH
1423   --with-oss=PATH         use Open Sound System files in PATH
1424   --with-popt=PATH        use popt files in PATH
1425   --with-postgres=PATH    use PostgreSQL files in PATH
1426   --with-pri=PATH         use ISDN PRI files in PATH
1427   --with-pwlib=PATH       use PWlib files in PATH
1428   --with-qt=PATH          use Qt files in PATH
1429   --with-radius=PATH      use Radius Client files in PATH
1430   --with-speex=PATH       use Speex files in PATH
1431   --with-sqlite=PATH      use SQLite files in PATH
1432   --with-suppserv=PATH    use mISDN Supplemental Services files in PATH
1433   --with-ssl=PATH         use OpenSSL files in PATH
1434   --with-tds=PATH         use FreeTDS files in PATH
1435   --with-termcap=PATH     use Termcap files in PATH
1436   --with-tinfo=PATH       use Term Info files in PATH
1437   --with-tonezone=PATH    use tonezone files in PATH
1438   --with-vorbis=PATH      use Vorbis files in PATH
1439   --with-vpb=PATH         use Voicetronix API files in PATH
1440   --with-z=PATH           use zlib files in PATH
1441   --with-zaptel=PATH      use Zaptel files in PATH
1442
1443 Some influential environment variables:
1444   CC          C compiler command
1445   CFLAGS      C compiler flags
1446   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447               nonstandard directory <lib dir>
1448   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449               you have headers in a nonstandard directory <include dir>
1450   CXX         C++ compiler command
1451   CXXFLAGS    C++ compiler flags
1452   CPP         C preprocessor
1453   CXXCPP      C++ preprocessor
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463   # If there are subdirs, report their specific --help.
1464   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465     test -d "$ac_dir" || continue
1466     ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1472   # A ".." for each directory in $ac_dir_suffix.
1473   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1474   case $ac_top_builddir_sub in
1475   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477   esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485   .)  # We are building in place.
1486     ac_srcdir=.
1487     ac_top_srcdir=$ac_top_builddir_sub
1488     ac_abs_top_srcdir=$ac_pwd ;;
1489   [\\/]* | ?:[\\/]* )  # Absolute name.
1490     ac_srcdir=$srcdir$ac_dir_suffix;
1491     ac_top_srcdir=$srcdir
1492     ac_abs_top_srcdir=$srcdir ;;
1493   *) # Relative name.
1494     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495     ac_top_srcdir=$ac_top_build_prefix$srcdir
1496     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500     cd "$ac_dir" || { ac_status=$?; continue; }
1501     # Check for guested configure.
1502     if test -f "$ac_srcdir/configure.gnu"; then
1503       echo &&
1504       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505     elif test -f "$ac_srcdir/configure"; then
1506       echo &&
1507       $SHELL "$ac_srcdir/configure" --help=recursive
1508     else
1509       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510     fi || ac_status=$?
1511     cd "$ac_pwd" || { ac_status=$?; break; }
1512   done
1513 fi
1514
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517   cat <<\_ACEOF
1518 configure
1519 generated by GNU Autoconf 2.60
1520
1521 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1522 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525
1526 "Asterisk"
1527 _ACEOF
1528   exit
1529 fi
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1533
1534 It was created by $as_me, which was
1535 generated by GNU Autoconf 2.60.  Invocation command line was
1536
1537   $ $0 $@
1538
1539 _ACEOF
1540 exec 5>>config.log
1541 {
1542 cat <<_ASUNAME
1543 ## --------- ##
1544 ## Platform. ##
1545 ## --------- ##
1546
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1555
1556 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1557 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1560 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1561 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1562 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1563
1564 _ASUNAME
1565
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   echo "PATH: $as_dir"
1572 done
1573 IFS=$as_save_IFS
1574
1575 } >&5
1576
1577 cat >&5 <<_ACEOF
1578
1579
1580 ## ----------- ##
1581 ## Core tests. ##
1582 ## ----------- ##
1583
1584 _ACEOF
1585
1586
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1592 ac_configure_args=
1593 ac_configure_args0=
1594 ac_configure_args1=
1595 ac_must_keep_next=false
1596 for ac_pass in 1 2
1597 do
1598   for ac_arg
1599   do
1600     case $ac_arg in
1601     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603     | -silent | --silent | --silen | --sile | --sil)
1604       continue ;;
1605     *\'*)
1606       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607     esac
1608     case $ac_pass in
1609     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610     2)
1611       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612       if test $ac_must_keep_next = true; then
1613         ac_must_keep_next=false # Got value, back to normal.
1614       else
1615         case $ac_arg in
1616           *=* | --config-cache | -C | -disable-* | --disable-* \
1617           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619           | -with-* | --with-* | -without-* | --without-* | --x)
1620             case "$ac_configure_args0 " in
1621               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622             esac
1623             ;;
1624           -* ) ac_must_keep_next=true ;;
1625         esac
1626       fi
1627       ac_configure_args="$ac_configure_args '$ac_arg'"
1628       ;;
1629     esac
1630   done
1631 done
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log.  We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641   # Save into config.log some information that might help in debugging.
1642   {
1643     echo
1644
1645     cat <<\_ASBOX
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1649 _ASBOX
1650     echo
1651     # The following way of writing the cache mishandles newlines in values,
1652 (
1653   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654     eval ac_val=\$$ac_var
1655     case $ac_val in #(
1656     *${as_nl}*)
1657       case $ac_var in #(
1658       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660       esac
1661       case $ac_var in #(
1662       _ | IFS | as_nl) ;; #(
1663       *) $as_unset $ac_var ;;
1664       esac ;;
1665     esac
1666   done
1667   (set) 2>&1 |
1668     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669     *${as_nl}ac_space=\ *)
1670       sed -n \
1671         "s/'\''/'\''\\\\'\'''\''/g;
1672           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673       ;; #(
1674     *)
1675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1676       ;;
1677     esac |
1678     sort
1679 )
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1686 _ASBOX
1687     echo
1688     for ac_var in $ac_subst_vars
1689     do
1690       eval ac_val=\$$ac_var
1691       case $ac_val in
1692       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693       esac
1694       echo "$ac_var='\''$ac_val'\''"
1695     done | sort
1696     echo
1697
1698     if test -n "$ac_subst_files"; then
1699       cat <<\_ASBOX
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1703 _ASBOX
1704       echo
1705       for ac_var in $ac_subst_files
1706       do
1707         eval ac_val=\$$ac_var
1708         case $ac_val in
1709         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710         esac
1711         echo "$ac_var='\''$ac_val'\''"
1712       done | sort
1713       echo
1714     fi
1715
1716     if test -s confdefs.h; then
1717       cat <<\_ASBOX
1718 ## ----------- ##
1719 ## confdefs.h. ##
1720 ## ----------- ##
1721 _ASBOX
1722       echo
1723       cat confdefs.h
1724       echo
1725     fi
1726     test "$ac_signal" != 0 &&
1727       echo "$as_me: caught signal $ac_signal"
1728     echo "$as_me: exit $exit_status"
1729   } >&5
1730   rm -f core *.core core.conftest.* &&
1731     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1732     exit $exit_status
1733 ' 0
1734 for ac_signal in 1 2 13 15; do
1735   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736 done
1737 ac_signal=0
1738
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1741
1742 # Predefined preprocessor variables.
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1751 _ACEOF
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1756 _ACEOF
1757
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1766 _ACEOF
1767
1768
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772   set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775 else
1776   set x "$ac_default_prefix/share/config.site" \
1777         "$ac_default_prefix/etc/config.site"
1778 fi
1779 shift
1780 for ac_site_file
1781 do
1782   if test -r "$ac_site_file"; then
1783     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785     sed 's/^/| /' "$ac_site_file" >&5
1786     . "$ac_site_file"
1787   fi
1788 done
1789
1790 if test -r "$cache_file"; then
1791   # Some versions of bash will fail to source /dev/null (special
1792   # files actually), so we avoid doing that.
1793   if test -f "$cache_file"; then
1794     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1796     case $cache_file in
1797       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798       *)                      . "./$cache_file";;
1799     esac
1800   fi
1801 else
1802   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1804   >$cache_file
1805 fi
1806
1807 # Check that the precious variables saved in the cache have kept the same
1808 # value.
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812   eval ac_new_set=\$ac_env_${ac_var}_set
1813   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814   eval ac_new_val=\$ac_env_${ac_var}_value
1815   case $ac_old_set,$ac_new_set in
1816     set,)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,set)
1821       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823       ac_cache_corrupted=: ;;
1824     ,);;
1825     *)
1826       if test "x$ac_old_val" != "x$ac_new_val"; then
1827         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1830 echo "$as_me:   former value:  $ac_old_val" >&2;}
1831         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1832 echo "$as_me:   current value: $ac_new_val" >&2;}
1833         ac_cache_corrupted=:
1834       fi;;
1835   esac
1836   # Pass precious variables to config.status.
1837   if test "$ac_new_set" = set; then
1838     case $ac_new_val in
1839     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840     *) ac_arg=$ac_var=$ac_new_val ;;
1841     esac
1842     case " $ac_configure_args " in
1843       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1844       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845     esac
1846   fi
1847 done
1848 if $ac_cache_corrupted; then
1849   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853    { (exit 1); exit 1; }; }
1854 fi
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872 ac_ext=c
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877
1878
1879
1880 # cross-compile macros
1881 ac_aux_dir=
1882 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1883   if test -f "$ac_dir/install-sh"; then
1884     ac_aux_dir=$ac_dir
1885     ac_install_sh="$ac_aux_dir/install-sh -c"
1886     break
1887   elif test -f "$ac_dir/install.sh"; then
1888     ac_aux_dir=$ac_dir
1889     ac_install_sh="$ac_aux_dir/install.sh -c"
1890     break
1891   elif test -f "$ac_dir/shtool"; then
1892     ac_aux_dir=$ac_dir
1893     ac_install_sh="$ac_aux_dir/shtool install -c"
1894     break
1895   fi
1896 done
1897 if test -z "$ac_aux_dir"; then
1898   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1899 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1900    { (exit 1); exit 1; }; }
1901 fi
1902
1903 # These three variables are undocumented and unsupported,
1904 # and are intended to be withdrawn in a future Autoconf release.
1905 # They can cause serious problems if a builder's source tree is in a directory
1906 # whose full name contains unusual characters.
1907 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1908 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1909 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1910
1911
1912 # Make sure we can run config.sub.
1913 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1914   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1915 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1916    { (exit 1); exit 1; }; }
1917
1918 { echo "$as_me:$LINENO: checking build system type" >&5
1919 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1920 if test "${ac_cv_build+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   ac_build_alias=$build_alias
1924 test "x$ac_build_alias" = x &&
1925   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1926 test "x$ac_build_alias" = x &&
1927   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1928 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1929    { (exit 1); exit 1; }; }
1930 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1931   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1932 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1933    { (exit 1); exit 1; }; }
1934
1935 fi
1936 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1937 echo "${ECHO_T}$ac_cv_build" >&6; }
1938 case $ac_cv_build in
1939 *-*-*) ;;
1940 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1941 echo "$as_me: error: invalid value of canonical build" >&2;}
1942    { (exit 1); exit 1; }; };;
1943 esac
1944 build=$ac_cv_build
1945 ac_save_IFS=$IFS; IFS='-'
1946 set x $ac_cv_build
1947 shift
1948 build_cpu=$1
1949 build_vendor=$2
1950 shift; shift
1951 # Remember, the first character of IFS is used to create $*,
1952 # except with old shells:
1953 build_os=$*
1954 IFS=$ac_save_IFS
1955 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1956
1957
1958 { echo "$as_me:$LINENO: checking host system type" >&5
1959 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1960 if test "${ac_cv_host+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test "x$host_alias" = x; then
1964   ac_cv_host=$ac_cv_build
1965 else
1966   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1967     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1968 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 fi
1973 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1974 echo "${ECHO_T}$ac_cv_host" >&6; }
1975 case $ac_cv_host in
1976 *-*-*) ;;
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1978 echo "$as_me: error: invalid value of canonical host" >&2;}
1979    { (exit 1); exit 1; }; };;
1980 esac
1981 host=$ac_cv_host
1982 ac_save_IFS=$IFS; IFS='-'
1983 set x $ac_cv_host
1984 shift
1985 host_cpu=$1
1986 host_vendor=$2
1987 shift; shift
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1990 host_os=$*
1991 IFS=$ac_save_IFS
1992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1993
1994
1995
1996 # check existence of the package
1997
1998
1999 # specify output header file
2000 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2001
2002
2003
2004
2005
2006 case "${host_os}" in
2007      freebsd)
2008      ac_default_prefix=/usr/local
2009      ;;
2010      *)
2011      ac_default_prefix=/usr
2012      if test ${sysconfdir} = '${prefix}/etc'; then
2013         sysconfdir=/etc
2014      fi
2015      if test ${mandir} = '${prefix}/man'; then
2016         mandir=/usr/share/man
2017      fi
2018      ;;
2019 esac
2020
2021 if test ${localstatedir} = '${prefix}/var'; then
2022      localstatedir=/var
2023 fi
2024
2025 BUILD_PLATFORM=${build}
2026 BUILD_CPU=${build_cpu}
2027 BUILD_VENDOR=${build_vendor}
2028 BUILD_OS=${build_os}
2029
2030
2031
2032
2033
2034
2035 HOST_PLATFORM=${host}
2036 HOST_CPU=${host_cpu}
2037 HOST_VENDOR=${host_vendor}
2038 HOST_OS=${host_os}
2039
2040
2041
2042
2043
2044
2045 #  check for uname
2046 if test -n "$ac_tool_prefix"; then
2047   # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}uname; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_path_UNAME+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   case $UNAME in
2055   [\\/]* | ?:[\\/]*)
2056   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2057   ;;
2058   *)
2059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072 IFS=$as_save_IFS
2073
2074   ;;
2075 esac
2076 fi
2077 UNAME=$ac_cv_path_UNAME
2078 if test -n "$UNAME"; then
2079   { echo "$as_me:$LINENO: result: $UNAME" >&5
2080 echo "${ECHO_T}$UNAME" >&6; }
2081 else
2082   { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2084 fi
2085
2086
2087 fi
2088 if test -z "$ac_cv_path_UNAME"; then
2089   ac_pt_UNAME=$UNAME
2090   # Extract the first word of "uname", so it can be a program name with args.
2091 set dummy uname; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   case $ac_pt_UNAME in
2098   [\\/]* | ?:[\\/]*)
2099   ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2100   ;;
2101   *)
2102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2109     ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115 IFS=$as_save_IFS
2116
2117   ;;
2118 esac
2119 fi
2120 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2121 if test -n "$ac_pt_UNAME"; then
2122   { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2123 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2124 else
2125   { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2127 fi
2128
2129   if test "x$ac_pt_UNAME" = x; then
2130     UNAME="No"
2131   else
2132     case $cross_compiling:$ac_tool_warned in
2133 yes:)
2134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2135 whose name does not start with the host triplet.  If you think this
2136 configuration is useful to you, please write to autoconf@gnu.org." >&5
2137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2138 whose name does not start with the host triplet.  If you think this
2139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2140 ac_tool_warned=yes ;;
2141 esac
2142     UNAME=$ac_pt_UNAME
2143   fi
2144 else
2145   UNAME="$ac_cv_path_UNAME"
2146 fi
2147
2148 if test ! x"${UNAME}" = xNo; then
2149    PBX_OSREV=$(${UNAME} -r)
2150 fi
2151
2152
2153 # This needs to be before any macros that use the C compiler
2154
2155 cat >>confdefs.h <<\_ACEOF
2156 #define _GNU_SOURCE 1
2157 _ACEOF
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167 # cross-compile checks
2168 if test "${cross_compiling}" = "yes";
2169 then
2170    if test -n "$ac_tool_prefix"; then
2171   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   if test -n "$CC"; then
2179   ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2188     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 fi
2197 fi
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200   { echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6; }
2202 else
2203   { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2205 fi
2206
2207
2208 fi
2209 if test -z "$ac_cv_prog_CC"; then
2210   ac_ct_CC=$CC
2211   # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2228     ac_cv_prog_ac_ct_CC="gcc"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2242 else
2243   { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2245 fi
2246
2247   if test "x$ac_ct_CC" = x; then
2248     CC=":"
2249   else
2250     case $cross_compiling:$ac_tool_warned in
2251 yes:)
2252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2253 whose name does not start with the host triplet.  If you think this
2254 configuration is useful to you, please write to autoconf@gnu.org." >&5
2255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet.  If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2258 ac_tool_warned=yes ;;
2259 esac
2260     CC=$ac_ct_CC
2261   fi
2262 else
2263   CC="$ac_cv_prog_CC"
2264 fi
2265
2266    if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}g++; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CXX+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CXX"; then
2275   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2284     ac_cv_prog_CXX="${ac_tool_prefix}g++"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 CXX=$ac_cv_prog_CXX
2295 if test -n "$CXX"; then
2296   { echo "$as_me:$LINENO: result: $CXX" >&5
2297 echo "${ECHO_T}$CXX" >&6; }
2298 else
2299   { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2301 fi
2302
2303
2304 fi
2305 if test -z "$ac_cv_prog_CXX"; then
2306   ac_ct_CXX=$CXX
2307   # Extract the first word of "g++", so it can be a program name with args.
2308 set dummy g++; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   if test -n "$ac_ct_CXX"; then
2315   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2324     ac_cv_prog_ac_ct_CXX="g++"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2335 if test -n "$ac_ct_CXX"; then
2336   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2337 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343   if test "x$ac_ct_CXX" = x; then
2344     CXX=":"
2345   else
2346     case $cross_compiling:$ac_tool_warned in
2347 yes:)
2348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2349 whose name does not start with the host triplet.  If you think this
2350 configuration is useful to you, please write to autoconf@gnu.org." >&5
2351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet.  If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2354 ac_tool_warned=yes ;;
2355 esac
2356     CXX=$ac_ct_CXX
2357   fi
2358 else
2359   CXX="$ac_cv_prog_CXX"
2360 fi
2361
2362    if test -n "$ac_tool_prefix"; then
2363   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}ld; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_LD+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$LD"; then
2371   ac_cv_prog_LD="$LD" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_LD="${ac_tool_prefix}ld"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 LD=$ac_cv_prog_LD
2391 if test -n "$LD"; then
2392   { echo "$as_me:$LINENO: result: $LD" >&5
2393 echo "${ECHO_T}$LD" >&6; }
2394 else
2395   { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399
2400 fi
2401 if test -z "$ac_cv_prog_LD"; then
2402   ac_ct_LD=$LD
2403   # Extract the first word of "ld", so it can be a program name with args.
2404 set dummy ld; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$ac_ct_LD"; then
2411   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     ac_cv_prog_ac_ct_LD="ld"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2431 if test -n "$ac_ct_LD"; then
2432   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2433 echo "${ECHO_T}$ac_ct_LD" >&6; }
2434 else
2435   { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439   if test "x$ac_ct_LD" = x; then
2440     LD=":"
2441   else
2442     case $cross_compiling:$ac_tool_warned in
2443 yes:)
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet.  If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet.  If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2451 esac
2452     LD=$ac_ct_LD
2453   fi
2454 else
2455   LD="$ac_cv_prog_LD"
2456 fi
2457
2458    if test -n "$ac_tool_prefix"; then
2459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_RANLIB+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$RANLIB"; then
2467   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 RANLIB=$ac_cv_prog_RANLIB
2487 if test -n "$RANLIB"; then
2488   { echo "$as_me:$LINENO: result: $RANLIB" >&5
2489 echo "${ECHO_T}$RANLIB" >&6; }
2490 else
2491   { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$ac_cv_prog_RANLIB"; then
2498   ac_ct_RANLIB=$RANLIB
2499   # Extract the first word of "ranlib", so it can be a program name with args.
2500 set dummy ranlib; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$ac_ct_RANLIB"; then
2507   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_ac_ct_RANLIB="ranlib"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2527 if test -n "$ac_ct_RANLIB"; then
2528   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2529 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2530 else
2531   { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2533 fi
2534
2535   if test "x$ac_ct_RANLIB" = x; then
2536     RANLIB=":"
2537   else
2538     case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2541 whose name does not start with the host triplet.  If you think this
2542 configuration is useful to you, please write to autoconf@gnu.org." >&5
2543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet.  If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548     RANLIB=$ac_ct_RANLIB
2549   fi
2550 else
2551   RANLIB="$ac_cv_prog_RANLIB"
2552 fi
2553
2554    if test -n "$ac_tool_prefix"; then
2555   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}ar; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_AR+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   if test -n "$AR"; then
2563   ac_cv_prog_AR="$AR" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     ac_cv_prog_AR="${ac_tool_prefix}ar"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 AR=$ac_cv_prog_AR
2583 if test -n "$AR"; then
2584   { echo "$as_me:$LINENO: result: $AR" >&5
2585 echo "${ECHO_T}$AR" >&6; }
2586 else
2587   { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592 fi
2593 if test -z "$ac_cv_prog_AR"; then
2594   ac_ct_AR=$AR
2595   # Extract the first word of "ar", so it can be a program name with args.
2596 set dummy ar; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   if test -n "$ac_ct_AR"; then
2603   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610   for ac_exec_ext in '' $ac_executable_extensions; do
2611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2612     ac_cv_prog_ac_ct_AR="ar"
2613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614     break 2
2615   fi
2616 done
2617 done
2618 IFS=$as_save_IFS
2619
2620 fi
2621 fi
2622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2623 if test -n "$ac_ct_AR"; then
2624   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2625 echo "${ECHO_T}$ac_ct_AR" >&6; }
2626 else
2627   { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2629 fi
2630
2631   if test "x$ac_ct_AR" = x; then
2632     AR=":"
2633   else
2634     case $cross_compiling:$ac_tool_warned in
2635 yes:)
2636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet.  If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&5
2639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet.  If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2642 ac_tool_warned=yes ;;
2643 esac
2644     AR=$ac_ct_AR
2645   fi
2646 else
2647   AR="$ac_cv_prog_AR"
2648 fi
2649
2650 fi
2651
2652 # Checks for programs.
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   if test -n "$CC"; then
2667   ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688   { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2690 else
2691   { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_CC"; then
2698   ac_ct_CC=$CC
2699   # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706   if test -n "$ac_ct_CC"; then
2707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714   for ac_exec_ext in '' $ac_executable_extensions; do
2715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2716     ac_cv_prog_ac_ct_CC="gcc"
2717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718     break 2
2719   fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2729 echo "${ECHO_T}$ac_ct_CC" >&6; }
2730 else
2731   { echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6; }
2733 fi
2734
2735   if test "x$ac_ct_CC" = x; then
2736     CC=""
2737   else
2738     case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2741 whose name does not start with the host triplet.  If you think this
2742 configuration is useful to you, please write to autoconf@gnu.org." >&5
2743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet.  If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748     CC=$ac_ct_CC
2749   fi
2750 else
2751   CC="$ac_cv_prog_CC"
2752 fi
2753
2754 if test -z "$CC"; then
2755           if test -n "$ac_tool_prefix"; then
2756     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771   for ac_exec_ext in '' $ac_executable_extensions; do
2772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2773     ac_cv_prog_CC="${ac_tool_prefix}cc"
2774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { echo "$as_me:$LINENO: result: $CC" >&5
2786 echo "${ECHO_T}$CC" >&6; }
2787 else
2788   { echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6; }
2790 fi
2791
2792
2793   fi
2794 fi
2795 if test -z "$CC"; then
2796   # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801   echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803   if test -n "$CC"; then
2804   ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806   ac_prog_rejected=no
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812   for ac_exec_ext in '' $ac_executable_extensions; do
2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815        ac_prog_rejected=yes
2816        continue
2817      fi
2818     ac_cv_prog_CC="cc"
2819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 if test $ac_prog_rejected = yes; then
2827   # We found a bogon in the path, so make sure we never use it.
2828   set dummy $ac_cv_prog_CC
2829   shift
2830   if test $# != 0; then
2831     # We chose a different compiler from the bogus one.
2832     # However, it has the same basename, so the bogon will be chosen
2833     # first if we set CC to just the basename; use the full file name.
2834     shift
2835     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2836   fi
2837 fi
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6; }
2844 else
2845   { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2847 fi
2848
2849
2850 fi
2851 if test -z "$CC"; then
2852   if test -n "$ac_tool_prefix"; then
2853   for ac_prog in cl.exe
2854   do
2855     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892     test -n "$CC" && break
2893   done
2894 fi
2895 if test -z "$CC"; then
2896   ac_ct_CC=$CC
2897   for ac_prog in cl.exe
2898 do
2899   # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2904   echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906   if test -n "$ac_ct_CC"; then
2907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914   for ac_exec_ext in '' $ac_executable_extensions; do
2915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2916     ac_cv_prog_ac_ct_CC="$ac_prog"
2917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918     break 2
2919   fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2929 echo "${ECHO_T}$ac_ct_CC" >&6; }
2930 else
2931   { echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6; }
2933 fi
2934
2935
2936   test -n "$ac_ct_CC" && break
2937 done
2938
2939   if test "x$ac_ct_CC" = x; then
2940     CC=""
2941   else
2942     case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet.  If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&5
2947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet.  If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952     CC=$ac_ct_CC
2953   fi
2954 fi
2955
2956 fi
2957
2958
2959 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: no acceptable C compiler found in \$PATH
2962 See \`config.log' for more details." >&2;}
2963    { (exit 1); exit 1; }; }
2964
2965 # Provide some information about the compiler.
2966 echo "$as_me:$LINENO: checking for C compiler version" >&5
2967 ac_compiler=`set X $ac_compile; echo $2`
2968 { (ac_try="$ac_compiler --version >&5"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compiler --version >&5") 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }
2978 { (ac_try="$ac_compiler -v >&5"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_compiler -v >&5") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }
2988 { (ac_try="$ac_compiler -V >&5"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_compiler -V >&5") 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }
2998
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005
3006 int
3007 main ()
3008 {
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 ac_clean_files_save=$ac_clean_files
3015 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3016 # Try to create an executable without -o first, disregard a.out.
3017 # It will help us diagnose broken compilers, and finding out an intuition
3018 # of exeext.
3019 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3020 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3021 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3022 #
3023 # List of possible output files, starting from the most likely.
3024 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3025 # only as a last resort.  b.out is created by i960 compilers.
3026 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3027 #
3028 # The IRIX 6 linker writes into existing files which may not be
3029 # executable, retaining their permissions.  Remove them first so a
3030 # subsequent execution test works.
3031 ac_rmfiles=
3032 for ac_file in $ac_files
3033 do
3034   case $ac_file in
3035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3036     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037   esac
3038 done
3039 rm -f $ac_rmfiles
3040
3041 if { (ac_try="$ac_link_default"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_link_default") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; then
3051   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3055 # Autoconf.
3056 for ac_file in $ac_files
3057 do
3058   test -f "$ac_file" || continue
3059   case $ac_file in
3060     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3061         ;;
3062     [ab].out )
3063         # We found the default executable, but exeext='' is most
3064         # certainly right.
3065         break;;
3066     *.* )
3067         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068         then :; else
3069            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070         fi
3071         # We set ac_cv_exeext here because the later test for it is not
3072         # safe: cross compilers may not add the suffix if given an `-o'
3073         # argument, so we may need to know it at that point already.
3074         # Even if this section looks crufty: it has the advantage of
3075         # actually working.
3076         break;;
3077     * )
3078         break;;
3079   esac
3080 done
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3082
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091    { (exit 77); exit 77; }; }
3092 fi
3093
3094 ac_exeext=$ac_cv_exeext
3095 { echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6; }
3097
3098 # Check that the compiler produces executables we can run.  If not, either
3099 # the compiler is broken, or we cross compile.
3100 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105   if { ac_try='./$ac_file'
3106   { (case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_try") 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; }; then
3115     cross_compiling=no
3116   else
3117     if test "$cross_compiling" = maybe; then
3118         cross_compiling=yes
3119     else
3120         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3121 If you meant to cross compile, use \`--host'.
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: cannot run C compiled programs.
3124 If you meant to cross compile, use \`--host'.
3125 See \`config.log' for more details." >&2;}
3126    { (exit 1); exit 1; }; }
3127     fi
3128   fi
3129 fi
3130 { echo "$as_me:$LINENO: result: yes" >&5
3131 echo "${ECHO_T}yes" >&6; }
3132
3133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3134 ac_clean_files=$ac_clean_files_save
3135 # Check that the compiler produces executables we can run.  If not, either
3136 # the compiler is broken, or we cross compile.
3137 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3139 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3140 echo "${ECHO_T}$cross_compiling" >&6; }
3141
3142 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3144 if { (ac_try="$ac_link"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_link") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; then
3154   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3157 # `rm'.
3158 for ac_file in conftest.exe conftest conftest.*; do
3159   test -f "$ac_file" || continue
3160   case $ac_file in
3161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163           break;;
3164     * ) break;;
3165   esac
3166 done
3167 else
3168   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details." >&2;}
3172    { (exit 1); exit 1; }; }
3173 fi
3174
3175 rm -f conftest$ac_cv_exeext
3176 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3177 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3178
3179 rm -f conftest.$ac_ext
3180 EXEEXT=$ac_cv_exeext
3181 ac_exeext=$EXEEXT
3182 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3184 if test "${ac_cv_objext+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.o conftest.obj
3203 if { (ac_try="$ac_compile"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209   (eval "$ac_compile") 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; then
3213   for ac_file in conftest.o conftest.obj conftest.*; do
3214   test -f "$ac_file" || continue;
3215   case $ac_file in
3216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3217     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3218        break;;
3219   esac
3220 done
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." >&2;}
3229    { (exit 1); exit 1; }; }
3230 fi
3231
3232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3233 fi
3234 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3235 echo "${ECHO_T}$ac_cv_objext" >&6; }
3236 OBJEXT=$ac_cv_objext
3237 ac_objext=$OBJEXT
3238 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h.  */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253 #ifndef __GNUC__
3254        choke me
3255 #endif
3256
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_compile") 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } &&
3275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3276   { (case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_try") 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; } &&
3285          { ac_try='test -s conftest.$ac_objext'
3286   { (case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295   ac_compiler_gnu=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300         ac_compiler_gnu=no
3301 fi
3302
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3305
3306 fi
3307 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3308 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3309 GCC=`test $ac_compiler_gnu = yes && echo yes`
3310 ac_test_CFLAGS=${CFLAGS+set}
3311 ac_save_CFLAGS=$CFLAGS
3312 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cc_g+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   ac_save_c_werror_flag=$ac_c_werror_flag
3318    ac_c_werror_flag=yes
3319    ac_cv_prog_cc_g=no
3320    CFLAGS="-g"
3321    cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343   (eval "$ac_compile") 2>conftest.er1
3344   ac_status=$?
3345   grep -v '^ *+' conftest.er1 >conftest.err
3346   rm -f conftest.er1
3347   cat conftest.err >&5
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } &&
3350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351   { (case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356   (eval "$ac_try") 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; } &&
3360          { ac_try='test -s conftest.$ac_objext'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   ac_cv_prog_cc_g=yes
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375         CFLAGS=""
3376       cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382
3383 int
3384 main ()
3385 {
3386
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compile") 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } &&
3405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3406   { (case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_try") 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; } &&
3415          { ac_try='test -s conftest.$ac_objext'
3416   { (case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_try") 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   :
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430         ac_c_werror_flag=$ac_save_c_werror_flag
3431          CFLAGS="-g"
3432          cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_compile") 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } &&
3461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462   { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; } &&
3471          { ac_try='test -s conftest.$ac_objext'
3472   { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481   ac_cv_prog_cc_g=yes
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486
3487 fi
3488
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 fi
3491
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496    ac_c_werror_flag=$ac_save_c_werror_flag
3497 fi
3498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501   CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503   if test "$GCC" = yes; then
3504     CFLAGS="-g -O2"
3505   else
3506     CFLAGS="-g"
3507   fi
3508 else
3509   if test "$GCC" = yes; then
3510     CFLAGS="-O2"
3511   else
3512     CFLAGS=
3513   fi
3514 fi
3515 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3516 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   ac_cv_prog_cc_c89=no
3521 ac_save_CC=$CC
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #include <stdarg.h>
3529 #include <stdio.h>
3530 #include <sys/types.h>
3531 #include <sys/stat.h>
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3536      char **p;
3537      int i;
3538 {
3539   return p[i];
3540 }
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3542 {
3543   char *s;
3544   va_list v;
3545   va_start (v,p);
3546   s = g (p, va_arg (v,int));
3547   va_end (v);
3548   return s;
3549 }
3550
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3552    function prototypes and stuff, but not '\xHH' hex character constants.
3553    These don't provoke an error unfortunately, instead are silently treated
3554    as 'x'.  The following induces an error, until -std is added to get
3555    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3556    array size at least.  It's necessary to write '\x00'==0 to get something
3557    that's true only with -std.  */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561    inside strings and character constants.  */
3562 #define FOO(x) 'x'
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 int argc;
3570 char **argv;
3571 int
3572 main ()
3573 {
3574 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3581 do
3582   CC="$ac_save_CC $ac_arg"
3583   rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_compile") 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3598   { (case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_try") 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; } &&
3607          { ac_try='test -s conftest.$ac_objext'
3608   { (case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_try") 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   ac_cv_prog_cc_c89=$ac_arg
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622
3623 fi
3624
3625 rm -f core conftest.err conftest.$ac_objext
3626   test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3630
3631 fi
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c89" in
3634   x)
3635     { echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6; } ;;
3637   xno)
3638     { echo "$as_me:$LINENO: result: unsupported" >&5
3639 echo "${ECHO_T}unsupported" >&6; } ;;
3640   *)
3641     CC="$CC $ac_cv_prog_cc_c89"
3642     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 esac
3645
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653 ac_ext=cpp
3654 ac_cpp='$CXXCPP $CPPFLAGS'
3655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3658 if test -z "$CXX"; then
3659   if test -n "$CCC"; then
3660     CXX=$CCC
3661   else
3662     if test -n "$ac_tool_prefix"; then
3663   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3664   do
3665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3669 if test "${ac_cv_prog_CXX+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   if test -n "$CXX"; then
3673   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3682     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 CXX=$ac_cv_prog_CXX
3693 if test -n "$CXX"; then
3694   { echo "$as_me:$LINENO: result: $CXX" >&5
3695 echo "${ECHO_T}$CXX" >&6; }
3696 else
3697   { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3699 fi
3700
3701
3702     test -n "$CXX" && break
3703   done
3704 fi
3705 if test -z "$CXX"; then
3706   ac_ct_CXX=$CXX
3707   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3708 do
3709   # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   if test -n "$ac_ct_CXX"; then
3717   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724   for ac_exec_ext in '' $ac_executable_extensions; do
3725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3726     ac_cv_prog_ac_ct_CXX="$ac_prog"
3727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731 done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3737 if test -n "$ac_ct_CXX"; then
3738   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3739 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3740 else
3741   { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3743 fi
3744
3745
3746   test -n "$ac_ct_CXX" && break
3747 done
3748
3749   if test "x$ac_ct_CXX" = x; then
3750     CXX="g++"
3751   else
3752     case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3755 whose name does not start with the host triplet.  If you think this
3756 configuration is useful to you, please write to autoconf@gnu.org." >&5
3757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3758 whose name does not start with the host triplet.  If you think this
3759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762     CXX=$ac_ct_CXX
3763   fi
3764 fi
3765
3766   fi
3767 fi
3768 # Provide some information about the compiler.
3769 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3770 ac_compiler=`set X $ac_compile; echo $2`
3771 { (ac_try="$ac_compiler --version >&5"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777   (eval "$ac_compiler --version >&5") 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); }
3781 { (ac_try="$ac_compiler -v >&5"
3782 case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787   (eval "$ac_compiler -v >&5") 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }
3791 { (ac_try="$ac_compiler -V >&5"
3792 case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797   (eval "$ac_compiler -V >&5") 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }
3801
3802 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3803 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3804 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817 #ifndef __GNUC__
3818        choke me
3819 #endif
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832   (eval "$ac_compile") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } &&
3839          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3840   { (case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845   (eval "$ac_try") 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }; } &&
3849          { ac_try='test -s conftest.$ac_objext'
3850   { (case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_try") 2>&5
3856   ac_status=$?
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); }; }; then
3859   ac_compiler_gnu=yes
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864         ac_compiler_gnu=no
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3869
3870 fi
3871 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3872 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3873 GXX=`test $ac_compiler_gnu = yes && echo yes`
3874 ac_test_CXXFLAGS=${CXXFLAGS+set}
3875 ac_save_CXXFLAGS=$CXXFLAGS
3876 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3877 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3878 if test "${ac_cv_prog_cxx_g+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3882    ac_cxx_werror_flag=yes
3883    ac_cv_prog_cxx_g=no
3884    CXXFLAGS="-g"
3885    cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h.  */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h.  */
3891
3892 int
3893 main ()
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907   (eval "$ac_compile") 2>conftest.er1
3908   ac_status=$?
3909   grep -v '^ *+' conftest.er1 >conftest.err
3910   rm -f conftest.er1
3911   cat conftest.err >&5
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } &&
3914          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3915   { (case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920   (eval "$ac_try") 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }; } &&
3924          { ac_try='test -s conftest.$ac_objext'
3925   { (case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_try") 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   ac_cv_prog_cxx_g=yes
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939         CXXFLAGS=""
3940       cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (ac_try="$ac_compile"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_compile") 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } &&
3969          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3970   { (case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975   (eval "$ac_try") 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; } &&
3979          { ac_try='test -s conftest.$ac_objext'
3980   { (case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985   (eval "$ac_try") 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); }; }; then
3989   :
3990 else
3991   echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3995          CXXFLAGS="-g"
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
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4013 case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_compile") 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } &&
4025          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4026   { (case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031   (eval "$ac_try") 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; } &&
4035          { ac_try='test -s conftest.$ac_objext'
4036   { (case "(($ac_try" in
4037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038   *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041   (eval "$ac_try") 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); }; }; then
4045   ac_cv_prog_cxx_g=yes
4046 else
4047   echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050
4051 fi
4052
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4061 fi
4062 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4063 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4064 if test "$ac_test_CXXFLAGS" = set; then
4065   CXXFLAGS=$ac_save_CXXFLAGS
4066 elif test $ac_cv_prog_cxx_g = yes; then
4067   if test "$GXX" = yes; then
4068     CXXFLAGS="-g -O2"
4069   else
4070     CXXFLAGS="-g"
4071   fi
4072 else
4073   if test "$GXX" = yes; then
4074     CXXFLAGS="-O2"
4075   else
4076     CXXFLAGS=
4077   fi
4078 fi
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4091 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4092 # On Suns, sometimes $CPP names a directory.
4093 if test -n "$CPP" && test -d "$CPP"; then
4094   CPP=
4095 fi
4096 if test -z "$CPP"; then
4097   if test "${ac_cv_prog_CPP+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100       # Double quotes because CPP needs to be expanded
4101     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102     do
4103       ac_preproc_ok=false
4104 for ac_c_preproc_warn_flag in '' yes
4105 do
4106   # Use a header file that comes with gcc, so configuring glibc
4107   # with a fresh cross-compiler works.
4108   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109   # <limits.h> exists even on freestanding compilers.
4110   # On the NeXT, cc -E runs the code through the compiler's parser,
4111   # not just through cpp. "Syntax error" is here to catch this case.
4112   cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123                      Syntax error
4124 _ACEOF
4125 if { (ac_try="$ac_cpp conftest.$ac_ext"
4126 case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132   ac_status=$?
4133   grep -v '^ *+' conftest.er1 >conftest.err
4134   rm -f conftest.er1
4135   cat conftest.err >&5
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); } >/dev/null; then
4138   if test -s conftest.err; then
4139     ac_cpp_err=$ac_c_preproc_warn_flag
4140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4141   else
4142     ac_cpp_err=
4143   fi
4144 else
4145   ac_cpp_err=yes
4146 fi
4147 if test -z "$ac_cpp_err"; then
4148   :
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153   # Broken: fails on valid input.
4154 continue
4155 fi
4156
4157 rm -f conftest.err conftest.$ac_ext
4158
4159   # OK, works on sane cases.  Now check whether nonexistent headers
4160   # can be detected and how.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <ac_nonexistent.h>
4168 _ACEOF
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } >/dev/null; then
4182   if test -s conftest.err; then
4183     ac_cpp_err=$ac_c_preproc_warn_flag
4184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4185   else
4186     ac_cpp_err=
4187   fi
4188 else
4189   ac_cpp_err=yes
4190 fi
4191 if test -z "$ac_cpp_err"; then
4192   # Broken: success on invalid input.
4193 continue
4194 else
4195   echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198   # Passes both tests.
4199 ac_preproc_ok=:
4200 break
4201 fi
4202
4203 rm -f conftest.err conftest.$ac_ext
4204
4205 done
4206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4207 rm -f conftest.err conftest.$ac_ext
4208 if $ac_preproc_ok; then
4209   break
4210 fi
4211
4212     done
4213     ac_cv_prog_CPP=$CPP
4214
4215 fi
4216   CPP=$ac_cv_prog_CPP
4217 else
4218   ac_cv_prog_CPP=$CPP
4219 fi
4220 { echo "$as_me:$LINENO: result: $CPP" >&5
4221 echo "${ECHO_T}$CPP" >&6; }
4222 ac_preproc_ok=false
4223 for ac_c_preproc_warn_flag in '' yes
4224 do
4225   # Use a header file that comes with gcc, so configuring glibc
4226   # with a fresh cross-compiler works.
4227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228   # <limits.h> exists even on freestanding compilers.
4229   # On the NeXT, cc -E runs the code through the compiler's parser,
4230   # not just through cpp. "Syntax error" is here to catch this case.
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4242                      Syntax error
4243 _ACEOF
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } >/dev/null; then
4257   if test -s conftest.err; then
4258     ac_cpp_err=$ac_c_preproc_warn_flag
4259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260   else
4261     ac_cpp_err=
4262   fi
4263 else
4264   ac_cpp_err=yes
4265 fi
4266 if test -z "$ac_cpp_err"; then
4267   :
4268 else
4269   echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272   # Broken: fails on valid input.
4273 continue
4274 fi
4275
4276 rm -f conftest.err conftest.$ac_ext
4277
4278   # OK, works on sane cases.  Now check whether nonexistent headers
4279   # can be detected and how.
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 #include <ac_nonexistent.h>
4287 _ACEOF
4288 if { (ac_try="$ac_cpp conftest.$ac_ext"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } >/dev/null; then
4301   if test -s conftest.err; then
4302     ac_cpp_err=$ac_c_preproc_warn_flag
4303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4304   else
4305     ac_cpp_err=
4306   fi
4307 else
4308   ac_cpp_err=yes
4309 fi
4310 if test -z "$ac_cpp_err"; then
4311   # Broken: success on invalid input.
4312 continue
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317   # Passes both tests.
4318 ac_preproc_ok=:
4319 break
4320 fi
4321
4322 rm -f conftest.err conftest.$ac_ext
4323
4324 done
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then
4328   :
4329 else
4330   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4331 See \`config.log' for more details." >&5
4332 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4333 See \`config.log' for more details." >&2;}
4334    { (exit 1); exit 1; }; }
4335 fi
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343 ac_ext=cpp
4344 ac_cpp='$CXXCPP $CPPFLAGS'
4345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4348 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4350 if test -z "$CXXCPP"; then
4351   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354       # Double quotes because CXXCPP needs to be expanded
4355     for CXXCPP in "$CXX -E" "/lib/cpp"
4356     do
4357       ac_preproc_ok=false
4358 for ac_cxx_preproc_warn_flag in '' yes
4359 do
4360   # Use a header file that comes with gcc, so configuring glibc
4361   # with a fresh cross-compiler works.
4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363   # <limits.h> exists even on freestanding compilers.
4364   # On the NeXT, cc -E runs the code through the compiler's parser,
4365   # not just through cpp. "Syntax error" is here to catch this case.
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377                      Syntax error
4378 _ACEOF
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } >/dev/null; then
4392   if test -s conftest.err; then
4393     ac_cpp_err=$ac_cxx_preproc_warn_flag
4394     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4395   else
4396     ac_cpp_err=
4397   fi
4398 else
4399   ac_cpp_err=yes
4400 fi
4401 if test -z "$ac_cpp_err"; then
4402   :
4403 else
4404   echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407   # Broken: fails on valid input.
4408 continue
4409 fi
4410
4411 rm -f conftest.err conftest.$ac_ext
4412
4413   # OK, works on sane cases.  Now check whether nonexistent headers
4414   # can be detected and how.
4415   cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 #include <ac_nonexistent.h>
4422 _ACEOF
4423 if { (ac_try="$ac_cpp conftest.$ac_ext"
4424 case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } >/dev/null; then
4436   if test -s conftest.err; then
4437     ac_cpp_err=$ac_cxx_preproc_warn_flag
4438     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4439   else
4440     ac_cpp_err=
4441   fi
4442 else
4443   ac_cpp_err=yes
4444 fi
4445 if test -z "$ac_cpp_err"; then
4446   # Broken: success on invalid input.
4447 continue
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452   # Passes both tests.
4453 ac_preproc_ok=:
4454 break
4455 fi
4456
4457 rm -f conftest.err conftest.$ac_ext
4458
4459 done
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then
4463   break
4464 fi
4465
4466     done
4467     ac_cv_prog_CXXCPP=$CXXCPP
4468
4469 fi
4470   CXXCPP=$ac_cv_prog_CXXCPP
4471 else
4472   ac_cv_prog_CXXCPP=$CXXCPP
4473 fi
4474 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4475 echo "${ECHO_T}$CXXCPP" >&6; }
4476 ac_preproc_ok=false
4477 for ac_cxx_preproc_warn_flag in '' yes
4478 do
4479   # Use a header file that comes with gcc, so configuring glibc
4480   # with a fresh cross-compiler works.
4481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482   # <limits.h> exists even on freestanding compilers.
4483   # On the NeXT, cc -E runs the code through the compiler's parser,
4484   # not just through cpp. "Syntax error" is here to catch this case.
4485   cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491 #ifdef __STDC__
4492 # include <limits.h>
4493 #else
4494 # include <assert.h>
4495 #endif
4496                      Syntax error
4497 _ACEOF
4498 if { (ac_try="$ac_cpp conftest.$ac_ext"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } >/dev/null; then
4511   if test -s conftest.err; then
4512     ac_cpp_err=$ac_cxx_preproc_warn_flag
4513     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4514   else
4515     ac_cpp_err=
4516   fi
4517 else
4518   ac_cpp_err=yes
4519 fi
4520 if test -z "$ac_cpp_err"; then
4521   :
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526   # Broken: fails on valid input.
4527 continue
4528 fi
4529
4530 rm -f conftest.err conftest.$ac_ext
4531
4532   # OK, works on sane cases.  Now check whether nonexistent headers
4533   # can be detected and how.
4534   cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h.  */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h.  */
4540 #include <ac_nonexistent.h>
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4549   ac_status=$?
4550   grep -v '^ *+' conftest.er1 >conftest.err
4551   rm -f conftest.er1
4552   cat conftest.err >&5
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } >/dev/null; then
4555   if test -s conftest.err; then
4556     ac_cpp_err=$ac_cxx_preproc_warn_flag
4557     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4558   else
4559     ac_cpp_err=
4560   fi
4561 else
4562   ac_cpp_err=yes
4563 fi
4564 if test -z "$ac_cpp_err"; then
4565   # Broken: success on invalid input.
4566 continue
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571   # Passes both tests.
4572 ac_preproc_ok=:
4573 break
4574 fi
4575
4576 rm -f conftest.err conftest.$ac_ext
4577
4578 done
4579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4580 rm -f conftest.err conftest.$ac_ext
4581 if $ac_preproc_ok; then
4582   :
4583 else
4584   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4587 See \`config.log' for more details." >&2;}
4588    { (exit 1); exit 1; }; }
4589 fi
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597 for ac_prog in gawk mawk nawk awk
4598 do
4599   # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy $ac_prog; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_AWK+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   if test -n "$AWK"; then
4607   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614   for ac_exec_ext in '' $ac_executable_extensions; do
4615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616     ac_cv_prog_AWK="$ac_prog"
4617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 fi
4625 fi
4626 AWK=$ac_cv_prog_AWK
4627 if test -n "$AWK"; then
4628   { echo "$as_me:$LINENO: result: $AWK" >&5
4629 echo "${ECHO_T}$AWK" >&6; }
4630 else
4631   { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4633 fi
4634
4635
4636   test -n "$AWK" && break
4637 done
4638
4639 # Find a good install program.  We prefer a C program (faster),
4640 # so one script is as good as another.  But avoid the broken or
4641 # incompatible versions:
4642 # SysV /etc/install, /usr/sbin/install
4643 # SunOS /usr/etc/install
4644 # IRIX /sbin/install
4645 # AIX /bin/install
4646 # AmigaOS /C/install, which installs bootblocks on floppy discs
4647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4650 # OS/2's system install, which has a completely different semantic
4651 # ./install, which can be erroneously created by make from ./install.sh.
4652 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4653 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4654 if test -z "$INSTALL"; then
4655 if test "${ac_cv_path_install+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663   # Account for people who put trailing slashes in PATH elements.
4664 case $as_dir/ in
4665   ./ | .// | /cC/* | \
4666   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4667   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4668   /usr/ucb/* ) ;;
4669   *)
4670     # OSF1 and SCO ODT 3.0 have their own names for install.
4671     # Don't use installbsd from OSF since it installs stuff as root
4672     # by default.
4673     for ac_prog in ginstall scoinst install; do
4674       for ac_exec_ext in '' $ac_executable_extensions; do
4675         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4676           if test $ac_prog = install &&
4677             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4678             # AIX install.  It has an incompatible calling convention.
4679             :
4680           elif test $ac_prog = install &&
4681             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4682             # program-specific install script used by HP pwplus--don't use.
4683             :
4684           else
4685             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4686             break 3
4687           fi
4688         fi
4689       done
4690     done
4691     ;;
4692 esac
4693 done