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