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