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