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