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