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