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