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