Debian Codegraph @

configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 INSTALL_PROGRAM
653 INSTALL_SCRIPT
654 INSTALL_DATA
655 CC
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 CPP
663 GREP
664 EGREP
665 PKG_CONFIG
666 LIBOBJS
667 LTLIBOBJS'
668 ac_subst_files=''
669 ac_precious_vars='build_alias
670 host_alias
671 target_alias
672 CC
673 CFLAGS
674 LDFLAGS
675 LIBS
676 CPPFLAGS
677 CPP'
678
679
680 # Initialize some variables set by options.
681 ac_init_help=
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
699
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *) ac_optarg=yes ;;
740 esac
741
742 # Accept the important Cygnus configure options, so we can diagnose typos.
743
744 case $ac_dashdash$ac_option in
745 --)
746 ac_dashdash=yes ;;
747
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 ac_prev=bindir ;;
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 bindir=$ac_optarg ;;
752
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
757
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
764
765 --config-cache | -C)
766 cache_file=config.cache ;;
767
768 -datadir | --datadir | --datadi | --datad)
769 ac_prev=datadir ;;
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
772
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
779
780 -disable-* | --disable-*)
781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 { (exit 1); exit 1; }; }
786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 eval enable_$ac_feature=no ;;
788
789 -docdir | --docdir | --docdi | --doc | --do)
790 ac_prev=docdir ;;
791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 docdir=$ac_optarg ;;
793
794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795 ac_prev=dvidir ;;
796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 dvidir=$ac_optarg ;;
798
799 -enable-* | --enable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=\$ac_optarg ;;
807
808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 | --exec | --exe | --ex)
811 ac_prev=exec_prefix ;;
812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 | --exec=* | --exe=* | --ex=*)
815 exec_prefix=$ac_optarg ;;
816
817 -gas | --gas | --ga | --g)
818 # Obsolete; use --with-gas.
819 with_gas=yes ;;
820
821 -help | --help | --hel | --he | -h)
822 ac_init_help=long ;;
823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 ac_init_help=recursive ;;
825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 ac_init_help=short ;;
827
828 -host | --host | --hos | --ho)
829 ac_prev=host_alias ;;
830 -host=* | --host=* | --hos=* | --ho=*)
831 host_alias=$ac_optarg ;;
832
833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 ac_prev=htmldir ;;
835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 | --ht=*)
837 htmldir=$ac_optarg ;;
838
839 -includedir | --includedir | --includedi | --included | --include \
840 | --includ | --inclu | --incl | --inc)
841 ac_prev=includedir ;;
842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 | --includ=* | --inclu=* | --incl=* | --inc=*)
844 includedir=$ac_optarg ;;
845
846 -infodir | --infodir | --infodi | --infod | --info | --inf)
847 ac_prev=infodir ;;
848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 infodir=$ac_optarg ;;
850
851 -libdir | --libdir | --libdi | --libd)
852 ac_prev=libdir ;;
853 -libdir=* | --libdir=* | --libdi=* | --libd=*)
854 libdir=$ac_optarg ;;
855
856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 | --libexe | --libex | --libe)
858 ac_prev=libexecdir ;;
859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 | --libexe=* | --libex=* | --libe=*)
861 libexecdir=$ac_optarg ;;
862
863 -localedir | --localedir | --localedi | --localed | --locale)
864 ac_prev=localedir ;;
865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 localedir=$ac_optarg ;;
867
868 -localstatedir | --localstatedir | --localstatedi | --localstated \
869 | --localstate | --localstat | --localsta | --localst | --locals)
870 ac_prev=localstatedir ;;
871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 localstatedir=$ac_optarg ;;
874
875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 ac_prev=mandir ;;
877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878 mandir=$ac_optarg ;;
879
880 -nfp | --nfp | --nf)
881 # Obsolete; use --without-fp.
882 with_fp=no ;;
883
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c | -n)
886 no_create=yes ;;
887
888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890 no_recursion=yes ;;
891
892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 | --oldin | --oldi | --old | --ol | --o)
895 ac_prev=oldincludedir ;;
896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 oldincludedir=$ac_optarg ;;
900
901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 ac_prev=prefix ;;
903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904 prefix=$ac_optarg ;;
905
906 -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 | --program-pre | --program-pr | --program-p)
908 ac_prev=program_prefix ;;
909 -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 program_prefix=$ac_optarg ;;
912
913 -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 | --program-suf | --program-su | --program-s)
915 ac_prev=program_suffix ;;
916 -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 program_suffix=$ac_optarg ;;
919
920 -program-transform-name | --program-transform-name \
921 | --program-transform-nam | --program-transform-na \
922 | --program-transform-n | --program-transform- \
923 | --program-transform | --program-transfor \
924 | --program-transfo | --program-transf \
925 | --program-trans | --program-tran \
926 | --progr-tra | --program-tr | --program-t)
927 ac_prev=program_transform_name ;;
928 -program-transform-name=* | --program-transform-name=* \
929 | --program-transform-nam=* | --program-transform-na=* \
930 | --program-transform-n=* | --program-transform-=* \
931 | --program-transform=* | --program-transfor=* \
932 | --program-transfo=* | --program-transf=* \
933 | --program-trans=* | --program-tran=* \
934 | --progr-tra=* | --program-tr=* | --program-t=*)
935 program_transform_name=$ac_optarg ;;
936
937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 ac_prev=pdfdir ;;
939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940 pdfdir=$ac_optarg ;;
941
942 -psdir | --psdir | --psdi | --psd | --ps)
943 ac_prev=psdir ;;
944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945 psdir=$ac_optarg ;;
946
947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 | -silent | --silent | --silen | --sile | --sil)
949 silent=yes ;;
950
951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 ac_prev=sbindir ;;
953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 | --sbi=* | --sb=*)
955 sbindir=$ac_optarg ;;
956
957 -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 | --sharedst | --shareds | --shared | --share | --shar \
960 | --sha | --sh)
961 ac_prev=sharedstatedir ;;
962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 | --sha=* | --sh=*)
966 sharedstatedir=$ac_optarg ;;
967
968 -site | --site | --sit)
969 ac_prev=site ;;
970 -site=* | --site=* | --sit=*)
971 site=$ac_optarg ;;
972
973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 ac_prev=srcdir ;;
975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976 srcdir=$ac_optarg ;;
977
978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 | --syscon | --sysco | --sysc | --sys | --sy)
980 ac_prev=sysconfdir ;;
981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 sysconfdir=$ac_optarg ;;
984
985 -target | --target | --targe | --targ | --tar | --ta | --t)
986 ac_prev=target_alias ;;
987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 target_alias=$ac_optarg ;;
989
990 -v | -verbose | --verbose | --verbos | --verbo | --verb)
991 verbose=yes ;;
992
993 -version | --version | --versio | --versi | --vers | -V)
994 ac_init_version=: ;;
995
996 -with-* | --with-*)
997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 eval with_$ac_package=\$ac_optarg ;;
1004
1005 -without-* | --without-*)
1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=no ;;
1013
1014 --x)
1015 # Obsolete; use --with-x.
1016 with_x=yes ;;
1017
1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 | --x-incl | --x-inc | --x-in | --x-i)
1020 ac_prev=x_includes ;;
1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 x_includes=$ac_optarg ;;
1024
1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 ac_prev=x_libraries ;;
1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 x_libraries=$ac_optarg ;;
1031
1032 -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034 { (exit 1); exit 1; }; }
1035 ;;
1036
1037 *=*)
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 { (exit 1); exit 1; }; }
1043 eval $ac_envvar=\$ac_optarg
1044 export $ac_envvar ;;
1045
1046 *)
1047 # FIXME: should be removed in autoconf 3.0.
1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 ;;
1053
1054 esac
1055 done
1056
1057 if test -n "$ac_prev"; then
1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 { echo "$as_me: error: missing argument to $ac_option" >&2
1060 { (exit 1); exit 1; }; }
1061 fi
1062
1063 # Be sure to have absolute directory names.
1064 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 datadir sysconfdir sharedstatedir localstatedir includedir \
1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 libdir localedir mandir
1068 do
1069 eval ac_val=\$$ac_var
1070 case $ac_val in
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 esac
1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 { (exit 1); exit 1; }; }
1076 done
1077
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1081 build=$build_alias
1082 host=$host_alias
1083 target=$target_alias
1084
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1092 cross_compiling=yes
1093 fi
1094 fi
1095
1096 ac_tool_prefix=
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098
1099 test "$silent" = yes && exec 6>/dev/null
1100
1101
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 { echo "$as_me: error: Working directory cannot be determined" >&2
1106 { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 { (exit 1); exit 1; }; }
1110
1111
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$0" : 'X\(//\)[^/]' \| \
1119 X"$0" : 'X\(//\)$' \| \
1120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 echo X"$0" |
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 s//\1/
1124 q
1125 }
1126 /^X\(\/\/\)[^/].*/{
1127 s//\1/
1128 q
1129 }
1130 /^X\(\/\/\)$/{
1131 s//\1/
1132 q
1133 }
1134 /^X\(\/\).*/{
1135 s//\1/
1136 q
1137 }
1138 s/.*/./; q'`
1139 srcdir=$ac_confdir
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1141 srcdir=..
1142 fi
1143 else
1144 ac_srcdir_defaulted=no
1145 fi
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 { (exit 1); exit 1; }; }
1150 fi
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 ac_abs_confdir=`(
1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 { (exit 1); exit 1; }; }
1155 pwd)`
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1158 srcdir=.
1159 fi
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1163 case $srcdir in
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 esac
1166 for ac_var in $ac_precious_vars; do
1167 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_env_${ac_var}_value=\$${ac_var}
1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 done
1172
1173 #
1174 # Report the --help message.
1175 #
1176 if test "$ac_init_help" = "long"; then
1177 # Omit some internal or obsolete options to make the list less imposing.
1178 # This message is too long to be a string in the A/UX 3.1 sh.
1179 cat <<_ACEOF
1180 \`configure' configures this package to adapt to many kinds of systems.
1181
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1183
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE. See below for descriptions of some of the useful variables.
1186
1187 Defaults for the options are specified in brackets.
1188
1189 Configuration:
1190 -h, --help display this help and exit
1191 --help=short display options specific to this package
1192 --help=recursive display the short help of all the included packages
1193 -V, --version display version information and exit
1194 -q, --quiet, --silent do not print \`checking...' messages
1195 --cache-file=FILE cache test results in FILE [disabled]
1196 -C, --config-cache alias for \`--cache-file=config.cache'
1197 -n, --no-create do not create output files
1198 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1199
1200 Installation directories:
1201 --prefix=PREFIX install architecture-independent files in PREFIX
1202 [$ac_default_prefix]
1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1204 [PREFIX]
1205
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1210
1211 For better control, use the options below.
1212
1213 Fine tuning of the installation directories:
1214 --bindir=DIR user executables [EPREFIX/bin]
1215 --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 --libexecdir=DIR program executables [EPREFIX/libexec]
1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 --libdir=DIR object code libraries [EPREFIX/lib]
1221 --includedir=DIR C header files [PREFIX/include]
1222 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 --infodir=DIR info documentation [DATAROOTDIR/info]
1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 --mandir=DIR man documentation [DATAROOTDIR/man]
1228 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1229 --htmldir=DIR html documentation [DOCDIR]
1230 --dvidir=DIR dvi documentation [DOCDIR]
1231 --pdfdir=DIR pdf documentation [DOCDIR]
1232 --psdir=DIR ps documentation [DOCDIR]
1233 _ACEOF
1234
1235 cat <<\_ACEOF
1236 _ACEOF
1237 fi
1238
1239 if test -n "$ac_init_help"; then
1240
1241 cat <<\_ACEOF
1242
1243 Optional Features:
1244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1246 --enable-debug enable debugging
1247
1248 Optional Packages:
1249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1251 --with-libcrypto=(openssl|gnutls)
1252 default is openssl
1253
1254 Set PKG_CONFIG_PATH to choose a glib installation.
1255
1256 Some influential environment variables:
1257 CC C compiler command
1258 CFLAGS C compiler flags
1259 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1260 nonstandard directory <lib dir>
1261 LIBS libraries to pass to the linker, e.g. -l<library>
1262 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1263 you have headers in a nonstandard directory <include dir>
1264 CPP C preprocessor
1265
1266 Use these variables to override the choices made by `configure' or to help
1267 it to find libraries and programs with nonstandard names/locations.
1268
1269 _ACEOF
1270 ac_status=$?
1271 fi
1272
1273 if test "$ac_init_help" = "recursive"; then
1274 # If there are subdirs, report their specific --help.
1275 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1276 test -d "$ac_dir" || continue
1277 ac_builddir=.
1278
1279 case "$ac_dir" in
1280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1281 *)
1282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1283 # A ".." for each directory in $ac_dir_suffix.
1284 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1285 case $ac_top_builddir_sub in
1286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1288 esac ;;
1289 esac
1290 ac_abs_top_builddir=$ac_pwd
1291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1292 # for backward compatibility:
1293 ac_top_builddir=$ac_top_build_prefix
1294
1295 case $srcdir in
1296 .) # We are building in place.
1297 ac_srcdir=.
1298 ac_top_srcdir=$ac_top_builddir_sub
1299 ac_abs_top_srcdir=$ac_pwd ;;
1300 [\\/]* | ?:[\\/]* ) # Absolute name.
1301 ac_srcdir=$srcdir$ac_dir_suffix;
1302 ac_top_srcdir=$srcdir
1303 ac_abs_top_srcdir=$srcdir ;;
1304 *) # Relative name.
1305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1306 ac_top_srcdir=$ac_top_build_prefix$srcdir
1307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1308 esac
1309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1310
1311 cd "$ac_dir" || { ac_status=$?; continue; }
1312 # Check for guested configure.
1313 if test -f "$ac_srcdir/configure.gnu"; then
1314 echo &&
1315 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1316 elif test -f "$ac_srcdir/configure"; then
1317 echo &&
1318 $SHELL "$ac_srcdir/configure" --help=recursive
1319 else
1320 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1321 fi || ac_status=$?
1322 cd "$ac_pwd" || { ac_status=$?; break; }
1323 done
1324 fi
1325
1326 test -n "$ac_init_help" && exit $ac_status
1327 if $ac_init_version; then
1328 cat <<\_ACEOF
1329 configure
1330 generated by GNU Autoconf 2.61
1331
1332 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1333 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1334 This configure script is free software; the Free Software Foundation
1335 gives unlimited permission to copy, distribute and modify it.
1336 _ACEOF
1337 exit
1338 fi
1339 cat >config.log <<_ACEOF
1340 This file contains any messages produced by compilers while
1341 running configure, to aid debugging if configure makes a mistake.
1342
1343 It was created by $as_me, which was
1344 generated by GNU Autoconf 2.61. Invocation command line was
1345
1346 $ $0 $@
1347
1348 _ACEOF
1349 exec 5>>config.log
1350 {
1351 cat <<_ASUNAME
1352 ## --------- ##
1353 ## Platform. ##
1354 ## --------- ##
1355
1356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1361
1362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1364
1365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1372
1373 _ASUNAME
1374
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376 for as_dir in $PATH
1377 do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 echo "PATH: $as_dir"
1381 done
1382 IFS=$as_save_IFS
1383
1384 } >&5
1385
1386 cat >&5 <<_ACEOF
1387
1388
1389 ## ----------- ##
1390 ## Core tests. ##
1391 ## ----------- ##
1392
1393 _ACEOF
1394
1395
1396 # Keep a trace of the command line.
1397 # Strip out --no-create and --no-recursion so they do not pile up.
1398 # Strip out --silent because we don't want to record it for future runs.
1399 # Also quote any args containing shell meta-characters.
1400 # Make two passes to allow for proper duplicate-argument suppression.
1401 ac_configure_args=
1402 ac_configure_args0=
1403 ac_configure_args1=
1404 ac_must_keep_next=false
1405 for ac_pass in 1 2
1406 do
1407 for ac_arg
1408 do
1409 case $ac_arg in
1410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1412 | -silent | --silent | --silen | --sile | --sil)
1413 continue ;;
1414 *\'*)
1415 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 esac
1417 case $ac_pass in
1418 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1419 2)
1420 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1421 if test $ac_must_keep_next = true; then
1422 ac_must_keep_next=false # Got value, back to normal.
1423 else
1424 case $ac_arg in
1425 *=* | --config-cache | -C | -disable-* | --disable-* \
1426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1428 | -with-* | --with-* | -without-* | --without-* | --x)
1429 case "$ac_configure_args0 " in
1430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1431 esac
1432 ;;
1433 -* ) ac_must_keep_next=true ;;
1434 esac
1435 fi
1436 ac_configure_args="$ac_configure_args '$ac_arg'"
1437 ;;
1438 esac
1439 done
1440 done
1441 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1442 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1443
1444 # When interrupted or exit'd, cleanup temporary files, and complete
1445 # config.log. We remove comments because anyway the quotes in there
1446 # would cause problems or look ugly.
1447 # WARNING: Use '\'' to represent an apostrophe within the trap.
1448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1449 trap 'exit_status=$?
1450 # Save into config.log some information that might help in debugging.
1451 {
1452 echo
1453
1454 cat <<\_ASBOX
1455 ## ---------------- ##
1456 ## Cache variables. ##
1457 ## ---------------- ##
1458 _ASBOX
1459 echo
1460 # The following way of writing the cache mishandles newlines in values,
1461 (
1462 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1463 eval ac_val=\$$ac_var
1464 case $ac_val in #(
1465 *${as_nl}*)
1466 case $ac_var in #(
1467 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1468 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1469 esac
1470 case $ac_var in #(
1471 _ | IFS | as_nl) ;; #(
1472 *) $as_unset $ac_var ;;
1473 esac ;;
1474 esac
1475 done
1476 (set) 2>&1 |
1477 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1478 *${as_nl}ac_space=\ *)
1479 sed -n \
1480 "s/'\''/'\''\\\\'\'''\''/g;
1481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1482 ;; #(
1483 *)
1484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1485 ;;
1486 esac |
1487 sort
1488 )
1489 echo
1490
1491 cat <<\_ASBOX
1492 ## ----------------- ##
1493 ## Output variables. ##
1494 ## ----------------- ##
1495 _ASBOX
1496 echo
1497 for ac_var in $ac_subst_vars
1498 do
1499 eval ac_val=\$$ac_var
1500 case $ac_val in
1501 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1502 esac
1503 echo "$ac_var='\''$ac_val'\''"
1504 done | sort
1505 echo
1506
1507 if test -n "$ac_subst_files"; then
1508 cat <<\_ASBOX
1509 ## ------------------- ##
1510 ## File substitutions. ##
1511 ## ------------------- ##
1512 _ASBOX
1513 echo
1514 for ac_var in $ac_subst_files
1515 do
1516 eval ac_val=\$$ac_var
1517 case $ac_val in
1518 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1519 esac
1520 echo "$ac_var='\''$ac_val'\''"
1521 done | sort
1522 echo
1523 fi
1524
1525 if test -s confdefs.h; then
1526 cat <<\_ASBOX
1527 ## ----------- ##
1528 ## confdefs.h. ##
1529 ## ----------- ##
1530 _ASBOX
1531 echo
1532 cat confdefs.h
1533 echo
1534 fi
1535 test "$ac_signal" != 0 &&
1536 echo "$as_me: caught signal $ac_signal"
1537 echo "$as_me: exit $exit_status"
1538 } >&5
1539 rm -f core *.core core.conftest.* &&
1540 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1541 exit $exit_status
1542 ' 0
1543 for ac_signal in 1 2 13 15; do
1544 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1545 done
1546 ac_signal=0
1547
1548 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1549 rm -f -r conftest* confdefs.h
1550
1551 # Predefined preprocessor variables.
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_NAME "$PACKAGE_NAME"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1565 _ACEOF
1566
1567
1568 cat >>confdefs.h <<_ACEOF
1569 #define PACKAGE_STRING "$PACKAGE_STRING"
1570 _ACEOF
1571
1572
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1575 _ACEOF
1576
1577
1578 # Let the site file select an alternate cache file if it wants to.
1579 # Prefer explicitly selected file to automatically selected ones.
1580 if test -n "$CONFIG_SITE"; then
1581 set x "$CONFIG_SITE"
1582 elif test "x$prefix" != xNONE; then
1583 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1584 else
1585 set x "$ac_default_prefix/share/config.site" \
1586 "$ac_default_prefix/etc/config.site"
1587 fi
1588 shift
1589 for ac_site_file
1590 do
1591 if test -r "$ac_site_file"; then
1592 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1593 echo "$as_me: loading site script $ac_site_file" >&6;}
1594 sed 's/^/| /' "$ac_site_file" >&5
1595 . "$ac_site_file"
1596 fi
1597 done
1598
1599 if test -r "$cache_file"; then
1600 # Some versions of bash will fail to source /dev/null (special
1601 # files actually), so we avoid doing that.
1602 if test -f "$cache_file"; then
1603 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1604 echo "$as_me: loading cache $cache_file" >&6;}
1605 case $cache_file in
1606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1607 *) . "./$cache_file";;
1608 esac
1609 fi
1610 else
1611 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1612 echo "$as_me: creating cache $cache_file" >&6;}
1613 >$cache_file
1614 fi
1615
1616 # Check that the precious variables saved in the cache have kept the same
1617 # value.
1618 ac_cache_corrupted=false
1619 for ac_var in $ac_precious_vars; do
1620 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1621 eval ac_new_set=\$ac_env_${ac_var}_set
1622 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1623 eval ac_new_val=\$ac_env_${ac_var}_value
1624 case $ac_old_set,$ac_new_set in
1625 set,)
1626 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1627 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1628 ac_cache_corrupted=: ;;
1629 ,set)
1630 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1631 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1632 ac_cache_corrupted=: ;;
1633 ,);;
1634 *)
1635 if test "x$ac_old_val" != "x$ac_new_val"; then
1636 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1637 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1638 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1639 echo "$as_me: former value: $ac_old_val" >&2;}
1640 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1641 echo "$as_me: current value: $ac_new_val" >&2;}
1642 ac_cache_corrupted=:
1643 fi;;
1644 esac
1645 # Pass precious variables to config.status.
1646 if test "$ac_new_set" = set; then
1647 case $ac_new_val in
1648 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 *) ac_arg=$ac_var=$ac_new_val ;;
1650 esac
1651 case " $ac_configure_args " in
1652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1653 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1654 esac
1655 fi
1656 done
1657 if $ac_cache_corrupted; then
1658 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1659 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1660 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1661 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1662 { (exit 1); exit 1; }; }
1663 fi
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681 ac_ext=c
1682 ac_cpp='$CPP $CPPFLAGS'
1683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1686
1687
1688
1689 # Check whether --enable-debug was given.
1690 if test "${enable_debug+set}" = set; then
1691 enableval=$enable_debug;
1692 if test -n "$CFLAGS"; then
1693 { echo "$as_me:$LINENO: WARNING: ignoring CFLAGS because of --debug" >&5
1694 echo "$as_me: WARNING: ignoring CFLAGS because of --debug" >&2;}
1695 fi
1696 CFLAGS="-std=c89 -pedantic -g -Wall -Wno-parentheses"
1697
1698 fi
1699
1700
1701 if test -z "$CFLAGS"; then
1702 CFLAGS=-Wno-parentheses
1703 fi
1704
1705 ac_aux_dir=
1706 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1707 if test -f "$ac_dir/install-sh"; then
1708 ac_aux_dir=$ac_dir
1709 ac_install_sh="$ac_aux_dir/install-sh -c"
1710 break
1711 elif test -f "$ac_dir/install.sh"; then
1712 ac_aux_dir=$ac_dir
1713 ac_install_sh="$ac_aux_dir/install.sh -c"
1714 break
1715 elif test -f "$ac_dir/shtool"; then
1716 ac_aux_dir=$ac_dir
1717 ac_install_sh="$ac_aux_dir/shtool install -c"
1718 break
1719 fi
1720 done
1721 if test -z "$ac_aux_dir"; then
1722 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1723 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1724 { (exit 1); exit 1; }; }
1725 fi
1726
1727 # These three variables are undocumented and unsupported,
1728 # and are intended to be withdrawn in a future Autoconf release.
1729 # They can cause serious problems if a builder's source tree is in a directory
1730 # whose full name contains unusual characters.
1731 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1732 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1733 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1734
1735
1736 # Find a good install program. We prefer a C program (faster),
1737 # so one script is as good as another. But avoid the broken or
1738 # incompatible versions:
1739 # SysV /etc/install, /usr/sbin/install
1740 # SunOS /usr/etc/install
1741 # IRIX /sbin/install
1742 # AIX /bin/install
1743 # AmigaOS /C/install, which installs bootblocks on floppy discs
1744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1747 # OS/2's system install, which has a completely different semantic
1748 # ./install, which can be erroneously created by make from ./install.sh.
1749 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1750 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1751 if test -z "$INSTALL"; then
1752 if test "${ac_cv_path_install+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 # Account for people who put trailing slashes in PATH elements.
1761 case $as_dir/ in
1762 ./ | .// | /cC/* | \
1763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1764 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1765 /usr/ucb/* ) ;;
1766 *)
1767 # OSF1 and SCO ODT 3.0 have their own names for install.
1768 # Don't use installbsd from OSF since it installs stuff as root
1769 # by default.
1770 for ac_prog in ginstall scoinst install; do
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1773 if test $ac_prog = install &&
1774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1775 # AIX install. It has an incompatible calling convention.
1776 :
1777 elif test $ac_prog = install &&
1778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1779 # program-specific install script used by HP pwplus--don't use.
1780 :
1781 else
1782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1783 break 3
1784 fi
1785 fi
1786 done
1787 done
1788 ;;
1789 esac
1790 done
1791 IFS=$as_save_IFS
1792
1793
1794 fi
1795 if test "${ac_cv_path_install+set}" = set; then
1796 INSTALL=$ac_cv_path_install
1797 else
1798 # As a last resort, use the slow shell script. Don't cache a
1799 # value for INSTALL within a source directory, because that will
1800 # break other packages using the cache if that directory is
1801 # removed, or if the value is a relative name.
1802 INSTALL=$ac_install_sh
1803 fi
1804 fi
1805 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1806 echo "${ECHO_T}$INSTALL" >&6; }
1807
1808 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1809 # It thinks the first close brace ends the variable substitution.
1810 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1811
1812 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1813
1814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1815
1816
1817 # port.c
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845 done
1846 done
1847 IFS=$as_save_IFS
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 { echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6; }
1855 else
1856 { echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6; }
1858 fi
1859
1860
1861 fi
1862 if test -z "$ac_cv_prog_CC"; then
1863 ac_ct_CC=$CC
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885 done
1886 done
1887 IFS=$as_save_IFS
1888
1889 fi
1890 fi
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6; }
1895 else
1896 { echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6; }
1898 fi
1899
1900 if test "x$ac_ct_CC" = x; then
1901 CC=""
1902 else
1903 case $cross_compiling:$ac_tool_warned in
1904 yes:)
1905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1906 whose name does not start with the host triplet. If you think this
1907 configuration is useful to you, please write to [email protected]." >&5
1908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1909 whose name does not start with the host triplet. If you think this
1910 configuration is useful to you, please write to [email protected]." >&2;}
1911 ac_tool_warned=yes ;;
1912 esac
1913 CC=$ac_ct_CC
1914 fi
1915 else
1916 CC="$ac_cv_prog_CC"
1917 fi
1918
1919 if test -z "$CC"; then
1920 if test -n "$ac_tool_prefix"; then
1921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1922 set dummy ${ac_tool_prefix}cc; ac_word=$2
1923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1938 ac_cv_prog_CC="${ac_tool_prefix}cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1941 fi
1942 done
1943 done
1944 IFS=$as_save_IFS
1945
1946 fi
1947 fi
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 { echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6; }
1952 else
1953 { echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6; }
1955 fi
1956
1957
1958 fi
1959 fi
1960 if test -z "$CC"; then
1961 # Extract the first word of "cc", so it can be a program name with args.
1962 set dummy cc; ac_word=$2
1963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 ac_prog_rejected=no
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980 ac_prog_rejected=yes
1981 continue
1982 fi
1983 ac_cv_prog_CC="cc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987 done
1988 done
1989 IFS=$as_save_IFS
1990
1991 if test $ac_prog_rejected = yes; then
1992 # We found a bogon in the path, so make sure we never use it.
1993 set dummy $ac_cv_prog_CC
1994 shift
1995 if test $# != 0; then
1996 # We chose a different compiler from the bogus one.
1997 # However, it has the same basename, so the bogon will be chosen
1998 # first if we set CC to just the basename; use the full file name.
1999 shift
2000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001 fi
2002 fi
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014
2015 fi
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in cl.exe
2019 do
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041 done
2042 done
2043 IFS=$as_save_IFS
2044
2045 fi
2046 fi
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 { echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6; }
2051 else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6; }
2054 fi
2055
2056
2057 test -n "$CC" && break
2058 done
2059 fi
2060 if test -z "$CC"; then
2061 ac_ct_CC=$CC
2062 for ac_prog in cl.exe
2063 do
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_ac_ct_CC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085 done
2086 done
2087 IFS=$as_save_IFS
2088
2089 fi
2090 fi
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6; }
2095 else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2098 fi
2099
2100
2101 test -n "$ac_ct_CC" && break
2102 done
2103
2104 if test "x$ac_ct_CC" = x; then
2105 CC=""
2106 else
2107 case $cross_compiling:$ac_tool_warned in
2108 yes:)
2109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet. If you think this
2111 configuration is useful to you, please write to [email protected]." >&5
2112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet. If you think this
2114 configuration is useful to you, please write to [email protected]." >&2;}
2115 ac_tool_warned=yes ;;
2116 esac
2117 CC=$ac_ct_CC
2118 fi
2119 fi
2120
2121 fi
2122
2123
2124 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2125 See \`config.log' for more details." >&5
2126 echo "$as_me: error: no acceptable C compiler found in \$PATH
2127 See \`config.log' for more details." >&2;}
2128 { (exit 1); exit 1; }; }
2129
2130 # Provide some information about the compiler.
2131 echo "$as_me:$LINENO: checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (ac_try="$ac_compiler --version >&5"
2134 case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137 esac
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler --version >&5") 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (ac_try="$ac_compiler -v >&5"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_compiler -v >&5") 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (ac_try="$ac_compiler -V >&5"
2154 case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157 esac
2158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159 (eval "$ac_compiler -V >&5") 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164 cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h. */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2170
2171 int
2172 main ()
2173 {
2174
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 ac_clean_files_save=$ac_clean_files
2180 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181 # Try to create an executable without -o first, disregard a.out.
2182 # It will help us diagnose broken compilers, and finding out an intuition
2183 # of exeext.
2184 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2186 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187 #
2188 # List of possible output files, starting from the most likely.
2189 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2190 # only as a last resort. b.out is created by i960 compilers.
2191 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2192 #
2193 # The IRIX 6 linker writes into existing files which may not be
2194 # executable, retaining their permissions. Remove them first so a
2195 # subsequent execution test works.
2196 ac_rmfiles=
2197 for ac_file in $ac_files
2198 do
2199 case $ac_file in
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2202 esac
2203 done
2204 rm -f $ac_rmfiles
2205
2206 if { (ac_try="$ac_link_default"
2207 case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210 esac
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_link_default") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2217 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2218 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2219 # so that the user can short-circuit this test for compilers unknown to
2220 # Autoconf.
2221 for ac_file in $ac_files ''
2222 do
2223 test -f "$ac_file" || continue
2224 case $ac_file in
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2226 ;;
2227 [ab].out )
2228 # We found the default executable, but exeext='' is most
2229 # certainly right.
2230 break;;
2231 *.* )
2232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2233 then :; else
2234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 fi
2236 # We set ac_cv_exeext here because the later test for it is not
2237 # safe: cross compilers may not add the suffix if given an `-o'
2238 # argument, so we may need to know it at that point already.
2239 # Even if this section looks crufty: it has the advantage of
2240 # actually working.
2241 break;;
2242 * )
2243 break;;
2244 esac
2245 done
2246 test "$ac_cv_exeext" = no && ac_cv_exeext=
2247
2248 else
2249 ac_file=''
2250 fi
2251
2252 { echo "$as_me:$LINENO: result: $ac_file" >&5
2253 echo "${ECHO_T}$ac_file" >&6; }
2254 if test -z "$ac_file"; then
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: C compiler cannot create executables
2261 See \`config.log' for more details." >&2;}
2262 { (exit 77); exit 77; }; }
2263 fi
2264
2265 ac_exeext=$ac_cv_exeext
2266
2267 # Check that the compiler produces executables we can run. If not, either
2268 # the compiler is broken, or we cross compile.
2269 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2271 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272 # If not cross compiling, check that we can run a simple program.
2273 if test "$cross_compiling" != yes; then
2274 if { ac_try='./$ac_file'
2275 { (case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 cross_compiling=no
2285 else
2286 if test "$cross_compiling" = maybe; then
2287 cross_compiling=yes
2288 else
2289 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot run C compiled programs.
2293 If you meant to cross compile, use \`--host'.
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297 fi
2298 fi
2299 { echo "$as_me:$LINENO: result: yes" >&5
2300 echo "${ECHO_T}yes" >&6; }
2301
2302 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2303 ac_clean_files=$ac_clean_files_save
2304 # Check that the compiler produces executables we can run. If not, either
2305 # the compiler is broken, or we cross compile.
2306 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2307 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2308 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2309 echo "${ECHO_T}$cross_compiling" >&6; }
2310
2311 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2312 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2313 if { (ac_try="$ac_link"
2314 case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_link") 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325 # work properly (i.e., refer to `conftest.exe'), while it won't with
2326 # `rm'.
2327 for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 break;;
2333 * ) break;;
2334 esac
2335 done
2336 else
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest$ac_cv_exeext
2345 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2346 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2347
2348 rm -f conftest.$ac_ext
2349 EXEEXT=$ac_cv_exeext
2350 ac_exeext=$EXEEXT
2351 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2353 if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362
2363 int
2364 main ()
2365 {
2366
2367 ;
2368 return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.o conftest.obj
2372 if { (ac_try="$ac_compile"
2373 case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in conftest.o conftest.obj conftest.*; do
2383 test -f "$ac_file" || continue;
2384 case $ac_file in
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2387 break;;
2388 esac
2389 done
2390 else
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397 See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2399 fi
2400
2401 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402 fi
2403 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404 echo "${ECHO_T}$ac_cv_objext" >&6; }
2405 OBJEXT=$ac_cv_objext
2406 ac_objext=$OBJEXT
2407 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2409 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412 cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h. */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2418
2419 int
2420 main ()
2421 {
2422 #ifndef __GNUC__
2423 choke me
2424 #endif
2425
2426 ;
2427 return 0;
2428 }
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (ac_try="$ac_compile"
2432 case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_compile") 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest.$ac_objext; then
2447 ac_compiler_gnu=yes
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453 fi
2454
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458 fi
2459 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2461 GCC=`test $ac_compiler_gnu = yes && echo yes`
2462 ac_test_CFLAGS=${CFLAGS+set}
2463 ac_save_CFLAGS=$CFLAGS
2464 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 ac_save_c_werror_flag=$ac_c_werror_flag
2470 ac_c_werror_flag=yes
2471 ac_cv_prog_cc_g=no
2472 CFLAGS="-g"
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479
2480 int
2481 main ()
2482 {
2483
2484 ;
2485 return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (ac_try="$ac_compile"
2490 case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493 esac
2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_compile") 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } && {
2502 test -z "$ac_c_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest.$ac_objext; then
2505 ac_cv_prog_cc_g=yes
2506 else
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 CFLAGS=""
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517
2518 int
2519 main ()
2520 {
2521
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2528 case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } && {
2540 test -z "$ac_c_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest.$ac_objext; then
2543 :
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2549 CFLAGS="-g"
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556
2557 int
2558 main ()
2559 {
2560
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (ac_try="$ac_compile"
2567 case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } && {
2579 test -z "$ac_c_werror_flag" ||
2580 test ! -s conftest.err
2581 } && test -s conftest.$ac_objext; then
2582 ac_cv_prog_cc_g=yes
2583 else
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588 fi
2589
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 fi
2592
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 fi
2595
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598 fi
2599 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601 if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603 elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
2606 else
2607 CFLAGS="-g"
2608 fi
2609 else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2614 fi
2615 fi
2616 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 ac_cv_prog_cc_c89=no
2622 ac_save_CC=$CC
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h. */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2629 #include <stdarg.h>
2630 #include <stdio.h>
2631 #include <sys/types.h>
2632 #include <sys/stat.h>
2633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634 struct buf { int x; };
2635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636 static char *e (p, i)
2637 char **p;
2638 int i;
2639 {
2640 return p[i];
2641 }
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2643 {
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650 }
2651
2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std. */
2659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2663 #define FOO(x) 'x'
2664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2672 int
2673 main ()
2674 {
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 ;
2677 return 0;
2678 }
2679 _ACEOF
2680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682 do
2683 CC="$ac_save_CC $ac_arg"
2684 rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } && {
2698 test -z "$ac_c_werror_flag" ||
2699 test ! -s conftest.err
2700 } && test -s conftest.$ac_objext; then
2701 ac_cv_prog_cc_c89=$ac_arg
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2705
2706
2707 fi
2708
2709 rm -f core conftest.err conftest.$ac_objext
2710 test "x$ac_cv_prog_cc_c89" != "xno" && break
2711 done
2712 rm -f conftest.$ac_ext
2713 CC=$ac_save_CC
2714
2715 fi
2716 # AC_CACHE_VAL
2717 case "x$ac_cv_prog_cc_c89" in
2718 x)
2719 { echo "$as_me:$LINENO: result: none needed" >&5
2720 echo "${ECHO_T}none needed" >&6; } ;;
2721 xno)
2722 { echo "$as_me:$LINENO: result: unsupported" >&5
2723 echo "${ECHO_T}unsupported" >&6; } ;;
2724 *)
2725 CC="$CC $ac_cv_prog_cc_c89"
2726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2728 esac
2729
2730
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737
2738
2739 for ac_func in mkdtemp
2740 do
2741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
2743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
2744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2755 #define $ac_func innocuous_$ac_func
2756
2757 /* System header to define __stub macros and hopefully few prototypes,
2758 which can conflict with char $ac_func (); below.
2759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2760 <limits.h> exists even on freestanding compilers. */
2761
2762 #ifdef __STDC__
2763 # include <limits.h>
2764 #else
2765 # include <assert.h>
2766 #endif
2767
2768 #undef $ac_func
2769
2770 /* Override any GCC internal prototype to avoid an error.
2771 Use char because int might match the return type of a GCC
2772 builtin and then its argument prototype would still apply. */
2773 #ifdef __cplusplus
2774 extern "C"
2775 #endif
2776 char $ac_func ();
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined __stub_$ac_func || defined __stub___$ac_func
2781 choke me
2782 #endif
2783
2784 int
2785 main ()
2786 {
2787 return $ac_func ();
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext conftest$ac_exeext
2793 if { (ac_try="$ac_link"
2794 case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_link") 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } && {
2806 test -z "$ac_c_werror_flag" ||
2807 test ! -s conftest.err
2808 } && test -s conftest$ac_exeext &&
2809 $as_test_x conftest$ac_exeext; then
2810 eval "$as_ac_var=yes"
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 eval "$as_ac_var=no"
2816 fi
2817
2818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2819 conftest$ac_exeext conftest.$ac_ext
2820 fi
2821 ac_res=`eval echo '${'$as_ac_var'}'`
2822 { echo "$as_me:$LINENO: result: $ac_res" >&5
2823 echo "${ECHO_T}$ac_res" >&6; }
2824 if test `eval echo '${'$as_ac_var'}'` = yes; then
2825 cat >>confdefs.h <<_ACEOF
2826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2827 _ACEOF
2828
2829 fi
2830 done
2831
2832
2833 for ac_func in on_exit
2834 do
2835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
2837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
2838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2849 #define $ac_func innocuous_$ac_func
2850
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char $ac_func (); below.
2853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2854 <limits.h> exists even on freestanding compilers. */
2855
2856 #ifdef __STDC__
2857 # include <limits.h>
2858 #else
2859 # include <assert.h>
2860 #endif
2861
2862 #undef $ac_func
2863
2864 /* Override any GCC internal prototype to avoid an error.
2865 Use char because int might match the return type of a GCC
2866 builtin and then its argument prototype would still apply. */
2867 #ifdef __cplusplus
2868 extern "C"
2869 #endif
2870 char $ac_func ();
2871 /* The GNU C library defines this for functions which it implements
2872 to always fail with ENOSYS. Some functions are actually named
2873 something starting with __ and the normal name is an alias. */
2874 #if defined __stub_$ac_func || defined __stub___$ac_func
2875 choke me
2876 #endif
2877
2878 int
2879 main ()
2880 {
2881 return $ac_func ();
2882 ;
2883 return 0;
2884 }
2885 _ACEOF
2886 rm -f conftest.$ac_objext conftest$ac_exeext
2887 if { (ac_try="$ac_link"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest$ac_exeext &&
2903 $as_test_x conftest$ac_exeext; then
2904 eval "$as_ac_var=yes"
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 eval "$as_ac_var=no"
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2913 conftest$ac_exeext conftest.$ac_ext
2914 fi
2915 ac_res=`eval echo '${'$as_ac_var'}'`
2916 { echo "$as_me:$LINENO: result: $ac_res" >&5
2917 echo "${ECHO_T}$ac_res" >&6; }
2918 if test `eval echo '${'$as_ac_var'}'` = yes; then
2919 cat >>confdefs.h <<_ACEOF
2920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2921 _ACEOF
2922
2923 fi
2924 done
2925
2926
2927 # solaris
2928
2929 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
2930 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
2931 if test "${ac_cv_lib_socket_main+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 ac_check_lib_save_LIBS=$LIBS
2935 LIBS="-lsocket $LIBS"
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942
2943
2944 int
2945 main ()
2946 {
2947 return main ();
2948 ;
2949 return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext conftest$ac_exeext
2953 if { (ac_try="$ac_link"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_link") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest$ac_exeext &&
2969 $as_test_x conftest$ac_exeext; then
2970 ac_cv_lib_socket_main=yes
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ac_cv_lib_socket_main=no
2976 fi
2977
2978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2979 conftest$ac_exeext conftest.$ac_ext
2980 LIBS=$ac_check_lib_save_LIBS
2981 fi
2982 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
2983 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
2984 if test $ac_cv_lib_socket_main = yes; then
2985 cat >>confdefs.h <<_ACEOF
2986 #define HAVE_LIBSOCKET 1
2987 _ACEOF
2988
2989 LIBS="-lsocket $LIBS"
2990
2991 fi
2992
2993
2994 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
2995 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
2996 if test "${ac_cv_lib_resolv_main+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 ac_check_lib_save_LIBS=$LIBS
3000 LIBS="-lresolv $LIBS"
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007
3008
3009 int
3010 main ()
3011 {
3012 return main ();
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext conftest$ac_exeext
3018 if { (ac_try="$ac_link"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_link") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest$ac_exeext &&
3034 $as_test_x conftest$ac_exeext; then
3035 ac_cv_lib_resolv_main=yes
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 ac_cv_lib_resolv_main=no
3041 fi
3042
3043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3044 conftest$ac_exeext conftest.$ac_ext
3045 LIBS=$ac_check_lib_save_LIBS
3046 fi
3047 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
3048 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
3049 if test $ac_cv_lib_resolv_main = yes; then
3050 cat >>confdefs.h <<_ACEOF
3051 #define HAVE_LIBRESOLV 1
3052 _ACEOF
3053
3054 LIBS="-lresolv $LIBS"
3055
3056 fi
3057
3058
3059 # traditional libldap isn't enough
3060
3061 { echo "$as_me:$LINENO: checking for main in -llber" >&5
3062 echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6; }
3063 if test "${ac_cv_lib_lber_main+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 ac_check_lib_save_LIBS=$LIBS
3067 LIBS="-llber $LIBS"
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074
3075
3076 int
3077 main ()
3078 {
3079 return main ();
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (ac_try="$ac_link"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_link") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest$ac_exeext &&
3101 $as_test_x conftest$ac_exeext; then
3102 ac_cv_lib_lber_main=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_cv_lib_lber_main=no
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3111 conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3113 fi
3114 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
3115 echo "${ECHO_T}$ac_cv_lib_lber_main" >&6; }
3116 if test $ac_cv_lib_lber_main = yes; then
3117 cat >>confdefs.h <<_ACEOF
3118 #define HAVE_LIBLBER 1
3119 _ACEOF
3120
3121 LIBS="-llber $LIBS"
3122
3123 fi
3124
3125 { echo "$as_me:$LINENO: checking for main in -lldap" >&5
3126 echo $ECHO_N "checking for main in -lldap... $ECHO_C" >&6; }
3127 if test "${ac_cv_lib_ldap_main+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 ac_check_lib_save_LIBS=$LIBS
3131 LIBS="-lldap $LIBS"
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138
3139
3140 int
3141 main ()
3142 {
3143 return main ();
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext conftest$ac_exeext
3149 if { (ac_try="$ac_link"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_link") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest$ac_exeext &&
3165 $as_test_x conftest$ac_exeext; then
3166 ac_cv_lib_ldap_main=yes
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 ac_cv_lib_ldap_main=no
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3175 conftest$ac_exeext conftest.$ac_ext
3176 LIBS=$ac_check_lib_save_LIBS
3177 fi
3178 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_main" >&5
3179 echo "${ECHO_T}$ac_cv_lib_ldap_main" >&6; }
3180 if test $ac_cv_lib_ldap_main = yes; then
3181 :
3182 else
3183 { { echo "$as_me:$LINENO: error: libldap not found" >&5
3184 echo "$as_me: error: libldap not found" >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188
3189 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
3190 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
3191 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 ac_check_lib_save_LIBS=$LIBS
3195 LIBS="-lldap $LIBS"
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202
3203 /* Override any GCC internal prototype to avoid an error.
3204 Use char because int might match the return type of a GCC
3205 builtin and then its argument prototype would still apply. */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 char ldap_initialize ();
3210 int
3211 main ()
3212 {
3213 return ldap_initialize ();
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext conftest$ac_exeext
3219 if { (ac_try="$ac_link"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_link") 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest$ac_exeext &&
3235 $as_test_x conftest$ac_exeext; then
3236 ac_cv_lib_ldap_ldap_initialize=yes
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 ac_cv_lib_ldap_ldap_initialize=no
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3245 conftest$ac_exeext conftest.$ac_ext
3246 LIBS=$ac_check_lib_save_LIBS
3247 fi
3248 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
3249 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
3250 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
3251 cat >>confdefs.h <<_ACEOF
3252 #define HAVE_LIBLDAP 1
3253 _ACEOF
3254
3255 LIBS="-lldap $LIBS"
3256
3257 else
3258 { { echo "$as_me:$LINENO: error: libldap present but obsolete" >&5
3259 echo "$as_me: error: libldap present but obsolete" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263 { echo "$as_me:$LINENO: checking for ldap_bv2dn_x in -lldap" >&5
3264 echo $ECHO_N "checking for ldap_bv2dn_x in -lldap... $ECHO_C" >&6; }
3265 if test "${ac_cv_lib_ldap_ldap_bv2dn_x+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 ac_check_lib_save_LIBS=$LIBS
3269 LIBS="-lldap $LIBS"
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276
3277 /* Override any GCC internal prototype to avoid an error.
3278 Use char because int might match the return type of a GCC
3279 builtin and then its argument prototype would still apply. */
3280 #ifdef __cplusplus
3281 extern "C"
3282 #endif
3283 char ldap_bv2dn_x ();
3284 int
3285 main ()
3286 {
3287 return ldap_bv2dn_x ();
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (ac_try="$ac_link"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_link") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } && {
3306 test -z "$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 } && test -s conftest$ac_exeext &&
3309 $as_test_x conftest$ac_exeext; then
3310 ac_cv_lib_ldap_ldap_bv2dn_x=yes
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 ac_cv_lib_ldap_ldap_bv2dn_x=no
3316 fi
3317
3318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3319 conftest$ac_exeext conftest.$ac_ext
3320 LIBS=$ac_check_lib_save_LIBS
3321 fi
3322 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bv2dn_x" >&5
3323 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bv2dn_x" >&6; }
3324 if test $ac_cv_lib_ldap_ldap_bv2dn_x = yes; then
3325 cat >>confdefs.h <<\_ACEOF
3326 #define LIBLDAP22 1
3327 _ACEOF
3328
3329 else
3330 cat >>confdefs.h <<\_ACEOF
3331 #define LIBLDAP21 1
3332 _ACEOF
3333
3334 fi
3335
3336
3337 # sasl
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3345 # On Suns, sometimes $CPP names a directory.
3346 if test -n "$CPP" && test -d "$CPP"; then
3347 CPP=
3348 fi
3349 if test -z "$CPP"; then
3350 if test "${ac_cv_prog_CPP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 # Double quotes because CPP needs to be expanded
3354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3355 do
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376 Syntax error
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 }; then
3394 :
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null && {
3428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3430 }; then
3431 # Broken: success on invalid input.
3432 continue
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448 break
3449 fi
3450
3451 done
3452 ac_cv_prog_CPP=$CPP
3453
3454 fi
3455 CPP=$ac_cv_prog_CPP
3456 else
3457 ac_cv_prog_CPP=$CPP
3458 fi
3459 { echo "$as_me:$LINENO: result: $CPP" >&5
3460 echo "${ECHO_T}$CPP" >&6; }
3461 ac_preproc_ok=false
3462 for ac_c_preproc_warn_flag in '' yes
3463 do
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #ifdef __STDC__
3477 # include <limits.h>
3478 #else
3479 # include <assert.h>
3480 #endif
3481 Syntax error
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null && {
3496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 }; then
3499 :
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 # Broken: fails on valid input.
3505 continue
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 }; then
3536 # Broken: success on invalid input.
3537 continue
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 # Passes both tests.
3543 ac_preproc_ok=:
3544 break
3545 fi
3546
3547 rm -f conftest.err conftest.$ac_ext
3548
3549 done
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then
3553 :
3554 else
3555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3556 See \`config.log' for more details." >&5
3557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3560 fi
3561
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568
3569 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3570 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3571 if test "${ac_cv_path_GREP+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 # Extract the first word of "grep ggrep" to use in msg output
3575 if test -z "$GREP"; then
3576 set dummy grep ggrep; ac_prog_name=$2
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 ac_path_GREP_found=false
3581 # Loop through the user's path and test for each of PROGNAME-LIST
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3584 do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_prog in grep ggrep; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3590 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3591 # Check for GNU ac_path_GREP and select it if it is found.
3592 # Check for GNU $ac_path_GREP
3593 case `"$ac_path_GREP" --version 2>&1` in
3594 *GNU*)
3595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3596 *)
3597 ac_count=0
3598 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3599 while :
3600 do
3601 cat "conftest.in" "conftest.in" >"conftest.tmp"
3602 mv "conftest.tmp" "conftest.in"
3603 cp "conftest.in" "conftest.nl"
3604 echo 'GREP' >> "conftest.nl"
3605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3607 ac_count=`expr $ac_count + 1`
3608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3609 # Best one so far, save it but keep looking for a better one
3610 ac_cv_path_GREP="$ac_path_GREP"
3611 ac_path_GREP_max=$ac_count
3612 fi
3613 # 10*(2^10) chars as input seems more than enough
3614 test $ac_count -gt 10 && break
3615 done
3616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3617 esac
3618
3619
3620 $ac_path_GREP_found && break 3
3621 done
3622 done
3623
3624 done
3625 IFS=$as_save_IFS
3626
3627
3628 fi
3629
3630 GREP="$ac_cv_path_GREP"
3631 if test -z "$GREP"; then
3632 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3633 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3634 { (exit 1); exit 1; }; }
3635 fi
3636
3637 else
3638 ac_cv_path_GREP=$GREP
3639 fi
3640
3641
3642 fi
3643 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3644 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3645 GREP="$ac_cv_path_GREP"
3646
3647
3648 { echo "$as_me:$LINENO: checking for egrep" >&5
3649 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3650 if test "${ac_cv_path_EGREP+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3654 then ac_cv_path_EGREP="$GREP -E"
3655 else
3656 # Extract the first word of "egrep" to use in msg output
3657 if test -z "$EGREP"; then
3658 set dummy egrep; ac_prog_name=$2
3659 if test "${ac_cv_path_EGREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 ac_path_EGREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in egrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3673 # Check for GNU ac_path_EGREP and select it if it is found.
3674 # Check for GNU $ac_path_EGREP
3675 case `"$ac_path_EGREP" --version 2>&1` in
3676 *GNU*)
3677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3678 *)
3679 ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'EGREP' >> "conftest.nl"
3687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_EGREP="$ac_path_EGREP"
3693 ac_path_EGREP_max=$ac_count
3694 fi
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3700
3701
3702 $ac_path_EGREP_found && break 3
3703 done
3704 done
3705
3706 done
3707 IFS=$as_save_IFS
3708
3709
3710 fi
3711
3712 EGREP="$ac_cv_path_EGREP"
3713 if test -z "$EGREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3717 fi
3718
3719 else
3720 ac_cv_path_EGREP=$EGREP
3721 fi
3722
3723
3724 fi
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3728 EGREP="$ac_cv_path_EGREP"
3729
3730
3731 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3732 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3733 if test "${ac_cv_header_stdc+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <stdlib.h>
3743 #include <stdarg.h>
3744 #include <string.h>
3745 #include <float.h>
3746
3747 int
3748 main ()
3749 {
3750
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (ac_try="$ac_compile"
3757 case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3772 ac_cv_header_stdc=yes
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_cv_header_stdc=no
3778 fi
3779
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781
3782 if test $ac_cv_header_stdc = yes; then
3783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #include <string.h>
3791
3792 _ACEOF
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 $EGREP "memchr" >/dev/null 2>&1; then
3795 :
3796 else
3797 ac_cv_header_stdc=no
3798 fi
3799 rm -f conftest*
3800
3801 fi
3802
3803 if test $ac_cv_header_stdc = yes; then
3804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 #include <stdlib.h>
3812
3813 _ACEOF
3814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815 $EGREP "free" >/dev/null 2>&1; then
3816 :
3817 else
3818 ac_cv_header_stdc=no
3819 fi
3820 rm -f conftest*
3821
3822 fi
3823
3824 if test $ac_cv_header_stdc = yes; then
3825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3826 if test "$cross_compiling" = yes; then
3827 :
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 #include <ctype.h>
3836 #include <stdlib.h>
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3840 #else
3841 # define ISLOWER(c) \
3842 (('a' <= (c) && (c) <= 'i') \
3843 || ('j' <= (c) && (c) <= 'r') \
3844 || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3846 #endif
3847
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3849 int
3850 main ()
3851 {
3852 int i;
3853 for (i = 0; i < 256; i++)
3854 if (XOR (islower (i), ISLOWER (i))
3855 || toupper (i) != TOUPPER (i))
3856 return 2;
3857 return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest$ac_exeext
3861 if { (ac_try="$ac_link"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_link") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 :
3881 else
3882 echo "$as_me: program exited with status $ac_status" >&5
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ( exit $ac_status )
3887 ac_cv_header_stdc=no
3888 fi
3889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3890 fi
3891
3892
3893 fi
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3896 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3897 if test $ac_cv_header_stdc = yes; then
3898
3899 cat >>confdefs.h <<\_ACEOF
3900 #define STDC_HEADERS 1
3901 _ACEOF
3902
3903 fi
3904
3905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3916 inttypes.h stdint.h unistd.h
3917 do
3918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 $ac_includes_default
3931
3932 #include <$ac_header>
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 eval "$as_ac_Header=yes"
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 eval "$as_ac_Header=no"
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961 ac_res=`eval echo '${'$as_ac_Header'}'`
3962 { echo "$as_me:$LINENO: result: $ac_res" >&5
3963 echo "${ECHO_T}$ac_res" >&6; }
3964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3965 cat >>confdefs.h <<_ACEOF
3966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3967 _ACEOF
3968
3969 fi
3970
3971 done
3972
3973
3974 if test "${ac_cv_header_sasl_sasl_h+set}" = set; then
3975 { echo "$as_me:$LINENO: checking for sasl/sasl.h" >&5
3976 echo $ECHO_N "checking for sasl/sasl.h... $ECHO_C" >&6; }
3977 if test "${ac_cv_header_sasl_sasl_h+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_header_sasl_sasl_h" >&5
3981 echo "${ECHO_T}$ac_cv_header_sasl_sasl_h" >&6; }
3982 else
3983 # Is the header compilable?
3984 { echo "$as_me:$LINENO: checking sasl/sasl.h usability" >&5
3985 echo $ECHO_N "checking sasl/sasl.h usability... $ECHO_C" >&6; }
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h. */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 $ac_includes_default
3993 #include <sasl/sasl.h>
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4012 ac_header_compiler=yes
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 ac_header_compiler=no
4018 fi
4019
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4022 echo "${ECHO_T}$ac_header_compiler" >&6; }
4023
4024 # Is the header present?
4025 { echo "$as_me:$LINENO: checking sasl/sasl.h presence" >&5
4026 echo $ECHO_N "checking sasl/sasl.h presence... $ECHO_C" >&6; }
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #include <sasl/sasl.h>
4034 _ACEOF
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 }; then
4051 ac_header_preproc=yes
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 ac_header_preproc=no
4057 fi
4058
4059 rm -f conftest.err conftest.$ac_ext
4060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4061 echo "${ECHO_T}$ac_header_preproc" >&6; }
4062
4063 # So? What about this header?
4064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4065 yes:no: )
4066 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4067 echo "$as_me: WARNING: sasl/sasl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4068 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: proceeding with the compiler's result" >&5
4069 echo "$as_me: WARNING: sasl/sasl.h: proceeding with the compiler's result" >&2;}
4070 ac_header_preproc=yes
4071 ;;
4072 no:yes:* )
4073 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: present but cannot be compiled" >&5
4074 echo "$as_me: WARNING: sasl/sasl.h: present but cannot be compiled" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: check for missing prerequisite headers?" >&5
4076 echo "$as_me: WARNING: sasl/sasl.h: check for missing prerequisite headers?" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: see the Autoconf documentation" >&5
4078 echo "$as_me: WARNING: sasl/sasl.h: see the Autoconf documentation" >&2;}
4079 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: section \"Present But Cannot Be Compiled\"" >&5
4080 echo "$as_me: WARNING: sasl/sasl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: proceeding with the preprocessor's result" >&5
4082 echo "$as_me: WARNING: sasl/sasl.h: proceeding with the preprocessor's result" >&2;}
4083 { echo "$as_me:$LINENO: WARNING: sasl/sasl.h: in the future, the compiler will take precedence" >&5
4084 echo "$as_me: WARNING: sasl/sasl.h: in the future, the compiler will take precedence" >&2;}
4085
4086 ;;
4087 esac
4088 { echo "$as_me:$LINENO: checking for sasl/sasl.h" >&5
4089 echo $ECHO_N "checking for sasl/sasl.h... $ECHO_C" >&6; }
4090 if test "${ac_cv_header_sasl_sasl_h+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 ac_cv_header_sasl_sasl_h=$ac_header_preproc
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_header_sasl_sasl_h" >&5
4096 echo "${ECHO_T}$ac_cv_header_sasl_sasl_h" >&6; }
4097
4098 fi
4099 if test $ac_cv_header_sasl_sasl_h = yes; then
4100 cat >>confdefs.h <<\_ACEOF
4101 #define HAVE_SASL 1
4102 _ACEOF
4103
4104 else
4105 { echo "$as_me:$LINENO: WARNING: SASL support disabled" >&5
4106 echo "$as_me: WARNING: SASL support disabled" >&2;}
4107 fi
4108
4109
4110
4111 # terminfo
4112 { echo "$as_me:$LINENO: checking for library containing tigetstr" >&5
4113 echo $ECHO_N "checking for library containing tigetstr... $ECHO_C" >&6; }
4114 if test "${ac_cv_search_tigetstr+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 ac_func_search_save_LIBS=$LIBS
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124
4125 /* Override any GCC internal prototype to avoid an error.
4126 Use char because int might match the return type of a GCC
4127 builtin and then its argument prototype would still apply. */
4128 #ifdef __cplusplus
4129 extern "C"
4130 #endif
4131 char tigetstr ();
4132 int
4133 main ()
4134 {
4135 return tigetstr ();
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 for ac_lib in '' curses ncurses; do
4141 if test -z "$ac_lib"; then
4142 ac_res="none required"
4143 else
4144 ac_res=-l$ac_lib
4145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4146 fi
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (ac_try="$ac_link"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_link") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } && {
4161 test -z "$ac_c_werror_flag" ||
4162 test ! -s conftest.err
4163 } && test -s conftest$ac_exeext &&
4164 $as_test_x conftest$ac_exeext; then
4165 ac_cv_search_tigetstr=$ac_res
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170
4171 fi
4172
4173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4174 conftest$ac_exeext
4175 if test "${ac_cv_search_tigetstr+set}" = set; then
4176 break
4177 fi
4178 done
4179 if test "${ac_cv_search_tigetstr+set}" = set; then
4180 :
4181 else
4182 ac_cv_search_tigetstr=no
4183 fi
4184 rm conftest.$ac_ext
4185 LIBS=$ac_func_search_save_LIBS
4186 fi
4187 { echo "$as_me:$LINENO: result: $ac_cv_search_tigetstr" >&5
4188 echo "${ECHO_T}$ac_cv_search_tigetstr" >&6; }
4189 ac_res=$ac_cv_search_tigetstr
4190 if test "$ac_res" != no; then
4191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4192
4193 else
4194 { { echo "$as_me:$LINENO: error: libcurses not found" >&5
4195 echo "$as_me: error: libcurses not found" >&2;}
4196 { (exit 1); exit 1; }; }
4197 fi
4198
4199 if test "${ac_cv_header_curses_h+set}" = set; then
4200 { echo "$as_me:$LINENO: checking for curses.h" >&5
4201 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
4202 if test "${ac_cv_header_curses_h+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 fi
4205 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
4206 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
4207 else
4208 # Is the header compilable?
4209 { echo "$as_me:$LINENO: checking curses.h usability" >&5
4210 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 $ac_includes_default
4218 #include <curses.h>
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_header_compiler=yes
4238 else
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ac_header_compiler=no
4243 fi
4244
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4247 echo "${ECHO_T}$ac_header_compiler" >&6; }
4248
4249 # Is the header present?
4250 { echo "$as_me:$LINENO: checking curses.h presence" >&5
4251 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <curses.h>
4259 _ACEOF
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 }; then
4276 ac_header_preproc=yes
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ac_header_preproc=no
4282 fi
4283
4284 rm -f conftest.err conftest.$ac_ext
4285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4286 echo "${ECHO_T}$ac_header_preproc" >&6; }
4287
4288 # So? What about this header?
4289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4290 yes:no: )
4291 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
4292 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4293 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
4294 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
4295 ac_header_preproc=yes
4296 ;;
4297 no:yes:* )
4298 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
4299 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
4300 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
4301 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
4303 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
4305 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
4307 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
4309 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
4310
4311 ;;
4312 esac
4313 { echo "$as_me:$LINENO: checking for curses.h" >&5
4314 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
4315 if test "${ac_cv_header_curses_h+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 ac_cv_header_curses_h=$ac_header_preproc
4319 fi
4320 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
4321 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
4322
4323 fi
4324 if test $ac_cv_header_curses_h = yes; then
4325 :
4326 else
4327 { { echo "$as_me:$LINENO: error: curses.h not found" >&5
4328 echo "$as_me: error: curses.h not found" >&2;}
4329 { (exit 1); exit 1; }; }
4330 fi
4331
4332
4333
4334 # popt
4335
4336 { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
4337 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; }
4338 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 ac_check_lib_save_LIBS=$LIBS
4342 LIBS="-lpopt $LIBS"
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349
4350 /* Override any GCC internal prototype to avoid an error.
4351 Use char because int might match the return type of a GCC
4352 builtin and then its argument prototype would still apply. */
4353 #ifdef __cplusplus
4354 extern "C"
4355 #endif
4356 char poptGetContext ();
4357 int
4358 main ()
4359 {
4360 return poptGetContext ();
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>conftest.er1
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } && {
4379 test -z "$ac_c_werror_flag" ||
4380 test ! -s conftest.err
4381 } && test -s conftest$ac_exeext &&
4382 $as_test_x conftest$ac_exeext; then
4383 ac_cv_lib_popt_poptGetContext=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 ac_cv_lib_popt_poptGetContext=no
4389 fi
4390
4391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4392 conftest$ac_exeext conftest.$ac_ext
4393 LIBS=$ac_check_lib_save_LIBS
4394 fi
4395 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
4396 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; }
4397 if test $ac_cv_lib_popt_poptGetContext = yes; then
4398 cat >>confdefs.h <<_ACEOF
4399 #define HAVE_LIBPOPT 1
4400 _ACEOF
4401
4402 LIBS="-lpopt $LIBS"
4403
4404 else
4405 { { echo "$as_me:$LINENO: error: libpopt not found" >&5
4406 echo "$as_me: error: libpopt not found" >&2;}
4407 { (exit 1); exit 1; }; }
4408 fi
4409
4410
4411 # readline
4412
4413 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4414 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
4415 if test "${ac_cv_lib_readline_readline+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 ac_check_lib_save_LIBS=$LIBS
4419 LIBS="-lreadline $LIBS"
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426
4427 /* Override any GCC internal prototype to avoid an error.
4428 Use char because int might match the return type of a GCC
4429 builtin and then its argument prototype would still apply. */
4430 #ifdef __cplusplus
4431 extern "C"
4432 #endif
4433 char readline ();
4434 int
4435 main ()
4436 {
4437 return readline ();
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (ac_try="$ac_link"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_link") 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } && {
4456 test -z "$ac_c_werror_flag" ||
4457 test ! -s conftest.err
4458 } && test -s conftest$ac_exeext &&
4459 $as_test_x conftest$ac_exeext; then
4460 ac_cv_lib_readline_readline=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_cv_lib_readline_readline=no
4466 fi
4467
4468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4469 conftest$ac_exeext conftest.$ac_ext
4470 LIBS=$ac_check_lib_save_LIBS
4471 fi
4472 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4473 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
4474 if test $ac_cv_lib_readline_readline = yes; then
4475 cat >>confdefs.h <<_ACEOF
4476 #define HAVE_LIBREADLINE 1
4477 _ACEOF
4478
4479 LIBS="-lreadline $LIBS"
4480
4481 else
4482 { { echo "$as_me:$LINENO: error: libreadline not found" >&5
4483 echo "$as_me: error: libreadline not found" >&2;}
4484 { (exit 1); exit 1; }; }
4485 fi
4486
4487
4488 # pkg-config
4489 # Extract the first word of "pkg-config", so it can be a program name with args.
4490 set dummy pkg-config; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 case $PKG_CONFIG in
4497 [\\/]* | ?:[\\/]*)
4498 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4499 ;;
4500 *)
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4517 ;;
4518 esac
4519 fi
4520 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4521 if test -n "$PKG_CONFIG"; then
4522 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4523 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4524 else
4525 { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4527 fi
4528
4529
4530 if test "x$PKG_CONFIG" = "xno"; then { { echo "$as_me:$LINENO: error: pkg-config not found" >&5
4531 echo "$as_me: error: pkg-config not found" >&2;}
4532 { (exit 1); exit 1; }; }; fi
4533
4534 # glib
4535 LIBS="`$PKG_CONFIG --libs glib-2.0` $LIBS"
4536 CFLAGS="`$PKG_CONFIG --cflags glib-2.0` $CFLAGS"
4537 { echo "$as_me:$LINENO: checking for main in -lglib-2.0" >&5
4538 echo $ECHO_N "checking for main in -lglib-2.0... $ECHO_C" >&6; }
4539 if test "${ac_cv_lib_glib_2_0_main+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 ac_check_lib_save_LIBS=$LIBS
4543 LIBS="-lglib-2.0 $LIBS"
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550
4551
4552 int
4553 main ()
4554 {
4555 return main ();
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.$ac_objext conftest$ac_exeext
4561 if { (ac_try="$ac_link"
4562 case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567 (eval "$ac_link") 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } && {
4574 test -z "$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4576 } && test -s conftest$ac_exeext &&
4577 $as_test_x conftest$ac_exeext; then
4578 ac_cv_lib_glib_2_0_main=yes
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_cv_lib_glib_2_0_main=no
4584 fi
4585
4586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4587 conftest$ac_exeext conftest.$ac_ext
4588 LIBS=$ac_check_lib_save_LIBS
4589 fi
4590 { echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_main" >&5
4591 echo "${ECHO_T}$ac_cv_lib_glib_2_0_main" >&6; }
4592 if test $ac_cv_lib_glib_2_0_main = yes; then
4593 :
4594 else
4595 { { echo "$as_me:$LINENO: error: libglib2.0 not found" >&5
4596 echo "$as_me: error: libglib2.0 not found" >&2;}
4597 { (exit 1); exit 1; }; }
4598 fi
4599
4600
4601 # libcrypto
4602
4603 # Check whether --with-libcrypto was given.
4604 if test "${with_libcrypto+set}" = set; then
4605 withval=$with_libcrypto;
4606 else
4607 with_libcrypto=openssl
4608 fi
4609
4610
4611 case $with_libcrypto in
4612 openssl)
4613 LIBS="`$PKG_CONFIG --libs openssl` $LIBS"
4614 CFLAGS="`$PKG_CONFIG --cflags openssl` $CFLAGS"
4615
4616 { echo "$as_me:$LINENO: checking for main in -lssl" >&5
4617 echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6; }
4618 if test "${ac_cv_lib_ssl_main+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 ac_check_lib_save_LIBS=$LIBS
4622 LIBS="-lssl $LIBS"
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629
4630
4631 int
4632 main ()
4633 {
4634 return main ();
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (ac_try="$ac_link"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_link") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest$ac_exeext &&
4656 $as_test_x conftest$ac_exeext; then
4657 ac_cv_lib_ssl_main=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_cv_lib_ssl_main=no
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4666 conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4668 fi
4669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
4670 echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6; }
4671 if test $ac_cv_lib_ssl_main = yes; then
4672 cat >>confdefs.h <<_ACEOF
4673 #define HAVE_LIBSSL 1
4674 _ACEOF
4675
4676 LIBS="-lssl $LIBS"
4677
4678 else
4679 { { echo "$as_me:$LINENO: error: OpenSSL not found" >&5
4680 echo "$as_me: error: OpenSSL not found" >&2;}
4681 { (exit 1); exit 1; }; }
4682 fi
4683
4684 cat >>confdefs.h <<\_ACEOF
4685 #define HAVE_OPENSSL 1
4686 _ACEOF
4687
4688 ;;
4689 gnutls)
4690 LIBS="`$PKG_CONFIG --libs gnutls` $LIBS"
4691 CFLAGS="`$PKG_CONFIG --cflags gnutls` $CFLAGS"
4692
4693 { echo "$as_me:$LINENO: checking for main in -lgnutls" >&5
4694 echo $ECHO_N "checking for main in -lgnutls... $ECHO_C" >&6; }
4695 if test "${ac_cv_lib_gnutls_main+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 ac_check_lib_save_LIBS=$LIBS
4699 LIBS="-lgnutls $LIBS"
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706
4707
4708 int
4709 main ()
4710 {
4711 return main ();
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (ac_try="$ac_link"
4718 case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_link") 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && {
4730 test -z "$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 } && test -s conftest$ac_exeext &&
4733 $as_test_x conftest$ac_exeext; then
4734 ac_cv_lib_gnutls_main=yes
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 ac_cv_lib_gnutls_main=no
4740 fi
4741
4742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4743 conftest$ac_exeext conftest.$ac_ext
4744 LIBS=$ac_check_lib_save_LIBS
4745 fi
4746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_main" >&5
4747 echo "${ECHO_T}$ac_cv_lib_gnutls_main" >&6; }
4748 if test $ac_cv_lib_gnutls_main = yes; then
4749 cat >>confdefs.h <<_ACEOF
4750 #define HAVE_LIBGNUTLS 1
4751 _ACEOF
4752
4753 LIBS="-lgnutls $LIBS"
4754
4755 else
4756 { { echo "$as_me:$LINENO: error: GnuTLS not found" >&5
4757 echo "$as_me: error: GnuTLS not found" >&2;}
4758 { (exit 1); exit 1; }; }
4759 fi
4760
4761
4762 { echo "$as_me:$LINENO: checking for main in -lgnutls-openssl" >&5
4763 echo $ECHO_N "checking for main in -lgnutls-openssl... $ECHO_C" >&6; }
4764 if test "${ac_cv_lib_gnutls_openssl_main+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-lgnutls-openssl $LIBS"
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775
4776
4777 int
4778 main ()
4779 {
4780 return main ();
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 rm -f conftest.$ac_objext conftest$ac_exeext
4786 if { (ac_try="$ac_link"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_link") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest$ac_exeext &&
4802 $as_test_x conftest$ac_exeext; then
4803 ac_cv_lib_gnutls_openssl_main=yes
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_cv_lib_gnutls_openssl_main=no
4809 fi
4810
4811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4812 conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4814 fi
4815 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_openssl_main" >&5
4816 echo "${ECHO_T}$ac_cv_lib_gnutls_openssl_main" >&6; }
4817 if test $ac_cv_lib_gnutls_openssl_main = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define HAVE_LIBGNUTLS_OPENSSL 1
4820 _ACEOF
4821
4822 LIBS="-lgnutls-openssl $LIBS"
4823
4824 else
4825 { { echo "$as_me:$LINENO: error: libgnutls-openssl not found" >&5
4826 echo "$as_me: error: libgnutls-openssl not found" >&2;}
4827 { (exit 1); exit 1; }; }
4828 fi
4829
4830 cat >>confdefs.h <<\_ACEOF
4831 #define HAVE_GNUTLS 1
4832 _ACEOF
4833
4834 cat >>confdefs.h <<\_ACEOF
4835 #define SHA_DIGEST_LENGTH 20
4836 _ACEOF
4837
4838 ;;
•4839 none)
4840 ;;
4841 *)
4842 { { echo "$as_me:$LINENO: error: invalid value --with-libcrypto=$with_libcrypto, expected openssl or gnutls" >&5
4843 echo "$as_me: error: invalid value --with-libcrypto=$with_libcrypto, expected openssl or gnutls" >&2;}
4844 { (exit 1); exit 1; }; }
4845 ;;
4846 esac
4847
4848 for ac_func in SHA1
4849 do
4850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4864 #define $ac_func innocuous_$ac_func
4865
4866 /* System header to define __stub macros and hopefully few prototypes,
4867 which can conflict with char $ac_func (); below.
4868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 <limits.h> exists even on freestanding compilers. */
4870
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876
4877 #undef $ac_func
4878
4879 /* Override any GCC internal prototype to avoid an error.
4880 Use char because int might match the return type of a GCC
4881 builtin and then its argument prototype would still apply. */
4882 #ifdef __cplusplus
4883 extern "C"
4884 #endif
4885 char $ac_func ();
4886 /* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889 #if defined __stub_$ac_func || defined __stub___$ac_func
4890 choke me
4891 #endif
4892
4893 int
4894 main ()
4895 {
4896 return $ac_func ();
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext conftest$ac_exeext
4902 if { (ac_try="$ac_link"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_link") 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest$ac_exeext &&
4918 $as_test_x conftest$ac_exeext; then
4919 eval "$as_ac_var=yes"
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 eval "$as_ac_var=no"
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4928 conftest$ac_exeext conftest.$ac_ext
4929 fi
4930 ac_res=`eval echo '${'$as_ac_var'}'`
4931 { echo "$as_me:$LINENO: result: $ac_res" >&5
4932 echo "${ECHO_T}$ac_res" >&6; }
4933 if test `eval echo '${'$as_ac_var'}'` = yes; then
4934 cat >>confdefs.h <<_ACEOF
4935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4936 _ACEOF
4937
4938 fi
4939 done
4940
4941
•4942 for ac_func in MD5
4943 do
4944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4958 #define $ac_func innocuous_$ac_func
4959
4960 /* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char $ac_func (); below.
4962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 <limits.h> exists even on freestanding compilers. */
4964
4965 #ifdef __STDC__
4966 # include <limits.h>
4967 #else
4968 # include <assert.h>
4969 #endif
4970
4971 #undef $ac_func
4972
4973 /* Override any GCC internal prototype to avoid an error.
4974 Use char because int might match the return type of a GCC
4975 builtin and then its argument prototype would still apply. */
4976 #ifdef __cplusplus
4977 extern "C"
4978 #endif
4979 char $ac_func ();
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined __stub_$ac_func || defined __stub___$ac_func
4984 choke me
4985 #endif
4986
4987 int
4988 main ()
4989 {
4990 return $ac_func ();
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (ac_try="$ac_link"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_link") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && {
5009 test -z "$ac_c_werror_flag" ||
5010 test ! -s conftest.err
5011 } && test -s conftest$ac_exeext &&
5012 $as_test_x conftest$ac_exeext; then
5013 eval "$as_ac_var=yes"
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 eval "$as_ac_var=no"
5019 fi
5020
5021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5022 conftest$ac_exeext conftest.$ac_ext
5023 fi
5024 ac_res=`eval echo '${'$as_ac_var'}'`
5025 { echo "$as_me:$LINENO: result: $ac_res" >&5
5026 echo "${ECHO_T}$ac_res" >&6; }
5027 if test `eval echo '${'$as_ac_var'}'` = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5030 _ACEOF
5031
5032 fi
5033 done
5034
5035
5036 for ac_func in RAND_pseudo_bytes
5037 do
5038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5052 #define $ac_func innocuous_$ac_func
5053
5054 /* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char $ac_func (); below.
5056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 <limits.h> exists even on freestanding compilers. */
5058
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064
5065 #undef $ac_func
5066
5067 /* Override any GCC internal prototype to avoid an error.
5068 Use char because int might match the return type of a GCC
5069 builtin and then its argument prototype would still apply. */
5070 #ifdef __cplusplus
5071 extern "C"
5072 #endif
5073 char $ac_func ();
5074 /* The GNU C library defines this for functions which it implements
5075 to always fail with ENOSYS. Some functions are actually named
5076 something starting with __ and the normal name is an alias. */
5077 #if defined __stub_$ac_func || defined __stub___$ac_func
5078 choke me
5079 #endif
5080
5081 int
5082 main ()
5083 {
5084 return $ac_func ();
5085 ;
5086 return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (ac_try="$ac_link"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_link") 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && {
5103 test -z "$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 } && test -s conftest$ac_exeext &&
5106 $as_test_x conftest$ac_exeext; then
5107 eval "$as_ac_var=yes"
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 eval "$as_ac_var=no"
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5116 conftest$ac_exeext conftest.$ac_ext
5117 fi
5118 ac_res=`eval echo '${'$as_ac_var'}'`
5119 { echo "$as_me:$LINENO: result: $ac_res" >&5
5120 echo "${ECHO_T}$ac_res" >&6; }
5121 if test `eval echo '${'$as_ac_var'}'` = yes; then
5122 cat >>confdefs.h <<_ACEOF
5123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5124 _ACEOF
5125
5126 fi
5127 done
5128
5129
5130
5131 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
5132 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
5133 if test "${ac_cv_lib_crypt_main+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 ac_check_lib_save_LIBS=$LIBS
5137 LIBS="-lcrypt $LIBS"
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144
5145
5146 int
5147 main ()
5148 {
5149 return main ();
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 rm -f conftest.$ac_objext conftest$ac_exeext
5155 if { (ac_try="$ac_link"
5156 case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_link") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && {
5168 test -z "$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 } && test -s conftest$ac_exeext &&
5171 $as_test_x conftest$ac_exeext; then
5172 ac_cv_lib_crypt_main=yes
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 ac_cv_lib_crypt_main=no
5178 fi
5179
5180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5181 conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5183 fi
5184 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
5185 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
5186 if test $ac_cv_lib_crypt_main = yes; then
5187 cat >>confdefs.h <<_ACEOF
5188 #define HAVE_LIBCRYPT 1
5189 _ACEOF
5190
5191 LIBS="-lcrypt $LIBS"
5192
5193 fi
5194
5195
5196
5197 # Check whether --with-dummy was given.
5198 if test "${with_dummy+set}" = set; then
5199 withval=$with_dummy;
5200 fi
5201
5202
5203 ac_config_headers="$ac_config_headers config.h"
5204
5205 ac_config_files="$ac_config_files GNUmakefile"
5206
5207 cat >confcache <<\_ACEOF
5208 # This file is a shell script that caches the results of configure
5209 # tests run on this system so they can be shared between configure
5210 # scripts and configure runs, see configure's option --config-cache.
5211 # It is not useful on other systems. If it contains results you don't
5212 # want to keep, you may remove or edit it.
5213 #
5214 # config.status only pays attention to the cache file if you give it
5215 # the --recheck option to rerun configure.
5216 #
5217 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5218 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5219 # following values.
5220
5221 _ACEOF
5222
5223 # The following way of writing the cache mishandles newlines in values,
5224 # but we know of no workaround that is simple, portable, and efficient.
5225 # So, we kill variables containing newlines.
5226 # Ultrix sh set writes to stderr and can't be redirected directly,
5227 # and sets the high bit in the cache file unless we assign to the vars.
5228 (
5229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5230 eval ac_val=\$$ac_var
5231 case $ac_val in #(
5232 *${as_nl}*)
5233 case $ac_var in #(
5234 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5235 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5236 esac
5237 case $ac_var in #(
5238 _ | IFS | as_nl) ;; #(
5239 *) $as_unset $ac_var ;;
5240 esac ;;
5241 esac
5242 done
5243
5244 (set) 2>&1 |
5245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5246 *${as_nl}ac_space=\ *)
5247 # `set' does not quote correctly, so add quotes (double-quote
5248 # substitution turns \\\\ into \\, and sed turns \\ into \).
5249 sed -n \
5250 "s/'/'\\\\''/g;
5251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5252 ;; #(
5253 *)
5254 # `set' quotes correctly as required by POSIX, so do not add quotes.
5255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5256 ;;
5257 esac |
5258 sort
5259 ) |
5260 sed '
5261 /^ac_cv_env_/b end
5262 t clear
5263 :clear
5264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5265 t end
5266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5267 :end' >>confcache
5268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5269 if test -w "$cache_file"; then
5270 test "x$cache_file" != "x/dev/null" &&
5271 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5272 echo "$as_me: updating cache $cache_file" >&6;}
5273 cat confcache >$cache_file
5274 else
5275 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5276 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5277 fi
5278 fi
5279 rm -f confcache
5280
5281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5282 # Let make expand exec_prefix.
5283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5284
5285 DEFS=-DHAVE_CONFIG_H
5286
5287 ac_libobjs=
5288 ac_ltlibobjs=
5289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5290 # 1. Remove the extension, and $U if already installed.
5291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5292 ac_i=`echo "$ac_i" | sed "$ac_script"`
5293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5294 # will be set to the directory where LIBOBJS objects are built.
5295 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5296 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5297 done
5298 LIBOBJS=$ac_libobjs
5299
5300 LTLIBOBJS=$ac_ltlibobjs
5301
5302
5303
5304 : ${CONFIG_STATUS=./config.status}
5305 ac_clean_files_save=$ac_clean_files
5306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5307 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5308 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5309 cat >$CONFIG_STATUS <<_ACEOF
5310 #! $SHELL
5311 # Generated by $as_me.
5312 # Run this file to recreate the current configuration.
5313 # Compiler output produced by configure, useful for debugging
5314 # configure, is in config.log if it exists.
5315
5316 debug=false
5317 ac_cs_recheck=false
5318 ac_cs_silent=false
5319 SHELL=\${CONFIG_SHELL-$SHELL}
5320 _ACEOF
5321
5322 cat >>$CONFIG_STATUS <<\_ACEOF
5323 ## --------------------- ##
5324 ## M4sh Initialization. ##
5325 ## --------------------- ##
5326
5327 # Be more Bourne compatible
5328 DUALCASE=1; export DUALCASE # for MKS sh
5329 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5330 emulate sh
5331 NULLCMD=:
5332 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5333 # is contrary to our usage. Disable this feature.
5334 alias -g '${1+"$@"}'='"$@"'
5335 setopt NO_GLOB_SUBST
5336 else
5337 case `(set -o) 2>/dev/null` in
5338 *posix*) set -o posix ;;
5339 esac
5340
5341 fi
5342
5343
5344
5345
5346 # PATH needs CR
5347 # Avoid depending upon Character Ranges.
5348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5351 as_cr_digits='0123456789'
5352 as_cr_alnum=$as_cr_Letters$as_cr_digits
5353
5354 # The user is always right.
5355 if test "${PATH_SEPARATOR+set}" != set; then
5356 echo "#! /bin/sh" >conf$$.sh
5357 echo "exit 0" >>conf$$.sh
5358 chmod +x conf$$.sh
5359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5360 PATH_SEPARATOR=';'
5361 else
5362 PATH_SEPARATOR=:
5363 fi
5364 rm -f conf$$.sh
5365 fi
5366
5367 # Support unset when possible.
5368 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5369 as_unset=unset
5370 else
5371 as_unset=false
5372 fi
5373
5374
5375 # IFS
5376 # We need space, tab and new line, in precisely that order. Quoting is
5377 # there to prevent editors from complaining about space-tab.
5378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5379 # splitting by setting IFS to empty value.)
5380 as_nl='
5381 '
5382 IFS=" "" $as_nl"
5383
5384 # Find who we are. Look in the path if we contain no directory separator.
5385 case $0 in
5386 *[\\/]* ) as_myself=$0 ;;
5387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5393 done
5394 IFS=$as_save_IFS
5395
5396 ;;
5397 esac
5398 # We did not find ourselves, most probably we were run as `sh COMMAND'
5399 # in which case we are not to be found in the path.
5400 if test "x$as_myself" = x; then
5401 as_myself=$0
5402 fi
5403 if test ! -f "$as_myself"; then
5404 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5405 { (exit 1); exit 1; }
5406 fi
5407
5408 # Work around bugs in pre-3.0 UWIN ksh.
5409 for as_var in ENV MAIL MAILPATH
5410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5411 done
5412 PS1='$ '
5413 PS2='> '
5414 PS4='+ '
5415
5416 # NLS nuisances.
5417 for as_var in \
5418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5420 LC_TELEPHONE LC_TIME
5421 do
5422 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5423 eval $as_var=C; export $as_var
5424 else
5425 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5426 fi
5427 done
5428
5429 # Required to use basename.
5430 if expr a : '\(a\)' >/dev/null 2>&1 &&
5431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5432 as_expr=expr
5433 else
5434 as_expr=false
5435 fi
5436
5437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5438 as_basename=basename
5439 else
5440 as_basename=false
5441 fi
5442
5443
5444 # Name of the executable.
5445 as_me=`$as_basename -- "$0" ||
5446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5447 X"$0" : 'X\(//\)$' \| \
5448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5449 echo X/"$0" |
5450 sed '/^.*\/\([^/][^/]*\)\/*$/{
5451 s//\1/
5452 q
5453 }
5454 /^X\/\(\/\/\)$/{
5455 s//\1/
5456 q
5457 }
5458 /^X\/\(\/\).*/{
5459 s//\1/
5460 q
5461 }
5462 s/.*/./; q'`
5463
5464 # CDPATH.
5465 $as_unset CDPATH
5466
5467
5468
5469 as_lineno_1=$LINENO
5470 as_lineno_2=$LINENO
5471 test "x$as_lineno_1" != "x$as_lineno_2" &&
5472 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5473
5474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5475 # uniformly replaced by the line number. The first 'sed' inserts a
5476 # line-number line after each line using $LINENO; the second 'sed'
5477 # does the real work. The second script uses 'N' to pair each
5478 # line-number line with the line containing $LINENO, and appends
5479 # trailing '-' during substitution so that $LINENO is not a special
5480 # case at line end.
5481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5482 # scripts with optimization help from Paolo Bonzini. Blame Lee
5483 # E. McMahon (1931-1989) for sed's syntax. :-)
5484 sed -n '
5485 p
5486 /[$]LINENO/=
5487 ' <$as_myself |
5488 sed '
5489 s/[$]LINENO.*/&-/
5490 t lineno
5491 b
5492 :lineno
5493 N
5494 :loop
5495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5496 t loop
5497 s/-\n.*//
5498 ' >$as_me.lineno &&
5499 chmod +x "$as_me.lineno" ||
5500 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5501 { (exit 1); exit 1; }; }
5502
5503 # Don't try to exec as it changes $[0], causing all sort of problems
5504 # (the dirname of $[0] is not the place where we might find the
5505 # original and so on. Autoconf is especially sensitive to this).
5506 . "./$as_me.lineno"
5507 # Exit status is that of the last command.
5508 exit
5509 }
5510
5511
5512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5513 as_dirname=dirname
5514 else
5515 as_dirname=false
5516 fi
5517
5518 ECHO_C= ECHO_N= ECHO_T=
5519 case `echo -n x` in
5520 -n*)
5521 case `echo 'x\c'` in
5522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5523 *) ECHO_C='\c';;
5524 esac;;
5525 *)
5526 ECHO_N='-n';;
5527 esac
5528
5529 if expr a : '\(a\)' >/dev/null 2>&1 &&
5530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5531 as_expr=expr
5532 else
5533 as_expr=false
5534 fi
5535
5536 rm -f conf$$ conf$$.exe conf$$.file
5537 if test -d conf$$.dir; then
5538 rm -f conf$$.dir/conf$$.file
5539 else
5540 rm -f conf$$.dir
5541 mkdir conf$$.dir
5542 fi
5543 echo >conf$$.file
5544 if ln -s conf$$.file conf$$ 2>/dev/null; then
5545 as_ln_s='ln -s'
5546 # ... but there are two gotchas:
5547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5549 # In both cases, we have to default to `cp -p'.
5550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5551 as_ln_s='cp -p'
5552 elif ln conf$$.file conf$$ 2>/dev/null; then
5553 as_ln_s=ln
5554 else
5555 as_ln_s='cp -p'
5556 fi
5557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5558 rmdir conf$$.dir 2>/dev/null
5559
5560 if mkdir -p . 2>/dev/null; then
5561 as_mkdir_p=:
5562 else
5563 test -d ./-p && rmdir ./-p
5564 as_mkdir_p=false
5565 fi
5566
5567 if test -x / >/dev/null 2>&1; then
5568 as_test_x='test -x'
5569 else
5570 if ls -dL / >/dev/null 2>&1; then
5571 as_ls_L_option=L
5572 else
5573 as_ls_L_option=
5574 fi
5575 as_test_x='
5576 eval sh -c '\''
5577 if test -d "$1"; then
5578 test -d "$1/.";
5579 else
5580 case $1 in
5581 -*)set "./$1";;
5582 esac;
5583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5584 ???[sx]*):;;*)false;;esac;fi
5585 '\'' sh
5586 '
5587 fi
5588 as_executable_p=$as_test_x
5589
5590 # Sed expression to map a string onto a valid CPP name.
5591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5592
5593 # Sed expression to map a string onto a valid variable name.
5594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5595
5596
5597 exec 6>&1
5598
5599 # Save the log message, to keep $[0] and so on meaningful, and to
5600 # report actual input values of CONFIG_FILES etc. instead of their
5601 # values after options handling.
5602 ac_log="
5603 This file was extended by $as_me, which was
5604 generated by GNU Autoconf 2.61. Invocation command line was
5605
5606 CONFIG_FILES = $CONFIG_FILES
5607 CONFIG_HEADERS = $CONFIG_HEADERS
5608 CONFIG_LINKS = $CONFIG_LINKS
5609 CONFIG_COMMANDS = $CONFIG_COMMANDS
5610 $ $0 $@
5611
5612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5613 "
5614
5615 _ACEOF
5616
5617 cat >>$CONFIG_STATUS <<_ACEOF
5618 # Files that config.status was made for.
5619 config_files="$ac_config_files"
5620 config_headers="$ac_config_headers"
5621
5622 _ACEOF
5623
5624 cat >>$CONFIG_STATUS <<\_ACEOF
5625 ac_cs_usage="\
5626 \`$as_me' instantiates files from templates according to the
5627 current configuration.
5628
5629 Usage: $0 [OPTIONS] [FILE]...
5630
5631 -h, --help print this help, then exit
5632 -V, --version print version number and configuration settings, then exit
5633 -q, --quiet do not print progress messages
5634 -d, --debug don't remove temporary files
5635 --recheck update $as_me by reconfiguring in the same conditions
5636 --file=FILE[:TEMPLATE]
5637 instantiate the configuration file FILE
5638 --header=FILE[:TEMPLATE]
5639 instantiate the configuration header FILE
5640
5641 Configuration files:
5642 $config_files
5643
5644 Configuration headers:
5645 $config_headers
5646
5647 Report bugs to <[email protected]>."
5648
5649 _ACEOF
5650 cat >>$CONFIG_STATUS <<_ACEOF
5651 ac_cs_version="\\
5652 config.status
5653 configured by $0, generated by GNU Autoconf 2.61,
5654 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5655
5656 Copyright (C) 2006 Free Software Foundation, Inc.
5657 This config.status script is free software; the Free Software Foundation
5658 gives unlimited permission to copy, distribute and modify it."
5659
5660 ac_pwd='$ac_pwd'
5661 srcdir='$srcdir'
5662 INSTALL='$INSTALL'
5663 _ACEOF
5664
5665 cat >>$CONFIG_STATUS <<\_ACEOF
5666 # If no file are specified by the user, then we need to provide default
5667 # value. By we need to know if files were specified by the user.
5668 ac_need_defaults=:
5669 while test $# != 0
5670 do
5671 case $1 in
5672 --*=*)
5673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5675 ac_shift=:
5676 ;;
5677 *)
5678 ac_option=$1
5679 ac_optarg=$2
5680 ac_shift=shift
5681 ;;
5682 esac
5683
5684 case $ac_option in
5685 # Handling of the options.
5686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5687 ac_cs_recheck=: ;;
5688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5689 echo "$ac_cs_version"; exit ;;
5690 --debug | --debu | --deb | --de | --d | -d )
5691 debug=: ;;
5692 --file | --fil | --fi | --f )
5693 $ac_shift
5694 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5695 ac_need_defaults=false;;
5696 --header | --heade | --head | --hea )
5697 $ac_shift
5698 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5699 ac_need_defaults=false;;
5700 --he | --h)
5701 # Conflict between --help and --header
5702 { echo "$as_me: error: ambiguous option: $1
5703 Try \`$0 --help' for more information." >&2
5704 { (exit 1); exit 1; }; };;
5705 --help | --hel | -h )
5706 echo "$ac_cs_usage"; exit ;;
5707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5709 ac_cs_silent=: ;;
5710
5711 # This is an error.
5712 -*) { echo "$as_me: error: unrecognized option: $1
5713 Try \`$0 --help' for more information." >&2
5714 { (exit 1); exit 1; }; } ;;
5715
5716 *) ac_config_targets="$ac_config_targets $1"
5717 ac_need_defaults=false ;;
5718
5719 esac
5720 shift
5721 done
5722
5723 ac_configure_extra_args=
5724
5725 if $ac_cs_silent; then
5726 exec 6>/dev/null
5727 ac_configure_extra_args="$ac_configure_extra_args --silent"
5728 fi
5729
5730 _ACEOF
5731 cat >>$CONFIG_STATUS <<_ACEOF
5732 if \$ac_cs_recheck; then
5733 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5734 CONFIG_SHELL=$SHELL
5735 export CONFIG_SHELL
5736 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5737 fi
5738
5739 _ACEOF
5740 cat >>$CONFIG_STATUS <<\_ACEOF
5741 exec 5>>config.log
5742 {
5743 echo
5744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5745 ## Running $as_me. ##
5746 _ASBOX
5747 echo "$ac_log"
5748 } >&5
5749
5750 _ACEOF
5751 cat >>$CONFIG_STATUS <<_ACEOF
5752 _ACEOF
5753
5754 cat >>$CONFIG_STATUS <<\_ACEOF
5755
5756 # Handling of arguments.
5757 for ac_config_target in $ac_config_targets
5758 do
5759 case $ac_config_target in
5760 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5761 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5762
5763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5765 { (exit 1); exit 1; }; };;
5766 esac
5767 done
5768
5769
5770 # If the user did not use the arguments to specify the items to instantiate,
5771 # then the envvar interface is used. Set only those that are not.
5772 # We use the long form for the default assignment because of an extremely
5773 # bizarre bug on SunOS 4.1.3.
5774 if $ac_need_defaults; then
5775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5777 fi
5778
5779 # Have a temporary directory for convenience. Make it in the build tree
5780 # simply because there is no reason against having it here, and in addition,
5781 # creating and moving files from /tmp can sometimes cause problems.
5782 # Hook for its removal unless debugging.
5783 # Note that there is a small window in which the directory will not be cleaned:
5784 # after its creation but before its name has been assigned to `$tmp'.
5785 $debug ||
5786 {
5787 tmp=
5788 trap 'exit_status=$?
5789 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5790 ' 0
5791 trap '{ (exit 1); exit 1; }' 1 2 13 15
5792 }
5793 # Create a (secure) tmp directory for tmp files.
5794
5795 {
5796 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5797 test -n "$tmp" && test -d "$tmp"
5798 } ||
5799 {
5800 tmp=./conf$$-$RANDOM
5801 (umask 077 && mkdir "$tmp")
5802 } ||
5803 {
5804 echo "$me: cannot create a temporary directory in ." >&2
5805 { (exit 1); exit 1; }
5806 }
5807
5808 #
5809 # Set up the sed scripts for CONFIG_FILES section.
5810 #
5811
5812 # No need to generate the scripts if there are no CONFIG_FILES.
5813 # This happens for instance when ./config.status config.h
5814 if test -n "$CONFIG_FILES"; then
5815
5816 _ACEOF
5817
5818
5819
5820 ac_delim='%!_!# '
5821 for ac_last_try in false false false false false :; do
5822 cat >conf$$subs.sed <<_ACEOF
5823 SHELL!$SHELL$ac_delim
5824 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5825 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5826 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5827 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5828 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5829 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5830 exec_prefix!$exec_prefix$ac_delim
5831 prefix!$prefix$ac_delim
5832 program_transform_name!$program_transform_name$ac_delim
5833 bindir!$bindir$ac_delim
5834 sbindir!$sbindir$ac_delim
5835 libexecdir!$libexecdir$ac_delim
5836 datarootdir!$datarootdir$ac_delim
5837 datadir!$datadir$ac_delim
5838 sysconfdir!$sysconfdir$ac_delim
5839 sharedstatedir!$sharedstatedir$ac_delim
5840 localstatedir!$localstatedir$ac_delim
5841 includedir!$includedir$ac_delim
5842 oldincludedir!$oldincludedir$ac_delim
5843 docdir!$docdir$ac_delim
5844 infodir!$infodir$ac_delim
5845 htmldir!$htmldir$ac_delim
5846 dvidir!$dvidir$ac_delim
5847 pdfdir!$pdfdir$ac_delim
5848 psdir!$psdir$ac_delim
5849 libdir!$libdir$ac_delim
5850 localedir!$localedir$ac_delim
5851 mandir!$mandir$ac_delim
5852 DEFS!$DEFS$ac_delim
5853 ECHO_C!$ECHO_C$ac_delim
5854 ECHO_N!$ECHO_N$ac_delim
5855 ECHO_T!$ECHO_T$ac_delim
5856 LIBS!$LIBS$ac_delim
5857 build_alias!$build_alias$ac_delim
5858 host_alias!$host_alias$ac_delim
5859 target_alias!$target_alias$ac_delim
5860 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5861 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5862 INSTALL_DATA!$INSTALL_DATA$ac_delim
5863 CC!$CC$ac_delim
5864 CFLAGS!$CFLAGS$ac_delim
5865 LDFLAGS!$LDFLAGS$ac_delim
5866 CPPFLAGS!$CPPFLAGS$ac_delim
5867 ac_ct_CC!$ac_ct_CC$ac_delim
5868 EXEEXT!$EXEEXT$ac_delim
5869 OBJEXT!$OBJEXT$ac_delim
5870 CPP!$CPP$ac_delim
5871 GREP!$GREP$ac_delim
5872 EGREP!$EGREP$ac_delim
5873 PKG_CONFIG!$PKG_CONFIG$ac_delim
5874 LIBOBJS!$LIBOBJS$ac_delim
5875 LTLIBOBJS!$LTLIBOBJS$ac_delim
5876 _ACEOF
5877
5878 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
5879 break
5880 elif $ac_last_try; then
5881 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5882 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5883 { (exit 1); exit 1; }; }
5884 else
5885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5886 fi
5887 done
5888
5889 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5890 if test -n "$ac_eof"; then
5891 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5892 ac_eof=`expr $ac_eof + 1`
5893 fi
5894
5895 cat >>$CONFIG_STATUS <<_ACEOF
5896 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5898 _ACEOF
5899 sed '
5900 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5901 s/^/s,@/; s/!/@,|#_!!_#|/
5902 :n
5903 t n
5904 s/'"$ac_delim"'$/,g/; t
5905 s/$/\\/; p
5906 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5907 ' >>$CONFIG_STATUS <conf$$subs.sed
5908 rm -f conf$$subs.sed
5909 cat >>$CONFIG_STATUS <<_ACEOF
5910 :end
5911 s/|#_!!_#|//g
5912 CEOF$ac_eof
5913 _ACEOF
5914
5915
5916 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5917 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5918 # trailing colons and then remove the whole line if VPATH becomes empty
5919 # (actually we leave an empty line to preserve line numbers).
5920 if test "x$srcdir" = x.; then
5921 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5922 s/:*\$(srcdir):*/:/
5923 s/:*\${srcdir}:*/:/
5924 s/:*@srcdir@:*/:/
5925 s/^\([^=]*=[ ]*\):*/\1/
5926 s/:*$//
5927 s/^[^=]*=[ ]*$//
5928 }'
5929 fi
5930
5931 cat >>$CONFIG_STATUS <<\_ACEOF
5932 fi # test -n "$CONFIG_FILES"
5933
5934
5935 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
5936 do
5937 case $ac_tag in
5938 :[FHLC]) ac_mode=$ac_tag; continue;;
5939 esac
5940 case $ac_mode$ac_tag in
5941 :[FHL]*:*);;
5942 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5943 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5944 { (exit 1); exit 1; }; };;
5945 :[FH]-) ac_tag=-:-;;
5946 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5947 esac
5948 ac_save_IFS=$IFS
5949 IFS=:
5950 set x $ac_tag
5951 IFS=$ac_save_IFS
5952 shift
5953 ac_file=$1
5954 shift
5955
5956 case $ac_mode in
5957 :L) ac_source=$1;;
5958 :[FH])
5959 ac_file_inputs=
5960 for ac_f
5961 do
5962 case $ac_f in
5963 -) ac_f="$tmp/stdin";;
5964 *) # Look for the file first in the build tree, then in the source tree
5965 # (if the path is not absolute). The absolute path cannot be DOS-style,
5966 # because $ac_f cannot contain `:'.
5967 test -f "$ac_f" ||
5968 case $ac_f in
5969 [\\/$]*) false;;
5970 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5971 esac ||
5972 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5973 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5974 { (exit 1); exit 1; }; };;
5975 esac
5976 ac_file_inputs="$ac_file_inputs $ac_f"
5977 done
5978
5979 # Let's still pretend it is `configure' which instantiates (i.e., don't
5980 # use $as_me), people would be surprised to read:
5981 # /* config.h. Generated by config.status. */
5982 configure_input="Generated from "`IFS=:
5983 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5984 if test x"$ac_file" != x-; then
5985 configure_input="$ac_file. $configure_input"
5986 { echo "$as_me:$LINENO: creating $ac_file" >&5
5987 echo "$as_me: creating $ac_file" >&6;}
5988 fi
5989
5990 case $ac_tag in
5991 *:-:* | *:-) cat >"$tmp/stdin";;
5992 esac
5993 ;;
5994 esac
5995
5996 ac_dir=`$as_dirname -- "$ac_file" ||
5997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5998 X"$ac_file" : 'X\(//\)[^/]' \| \
5999 X"$ac_file" : 'X\(//\)$' \| \
6000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6001 echo X"$ac_file" |
6002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6003 s//\1/
6004 q
6005 }
6006 /^X\(\/\/\)[^/].*/{
6007 s//\1/
6008 q
6009 }
6010 /^X\(\/\/\)$/{
6011 s//\1/
6012 q
6013 }
6014 /^X\(\/\).*/{
6015 s//\1/
6016 q
6017 }
6018 s/.*/./; q'`
6019 { as_dir="$ac_dir"
6020 case $as_dir in #(
6021 -*) as_dir=./$as_dir;;
6022 esac
6023 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6024 as_dirs=
6025 while :; do
6026 case $as_dir in #(
6027 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6028 *) as_qdir=$as_dir;;
6029 esac
6030 as_dirs="'$as_qdir' $as_dirs"
6031 as_dir=`$as_dirname -- "$as_dir" ||
6032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6033 X"$as_dir" : 'X\(//\)[^/]' \| \
6034 X"$as_dir" : 'X\(//\)$' \| \
6035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6036 echo X"$as_dir" |
6037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6038 s//\1/
6039 q
6040 }
6041 /^X\(\/\/\)[^/].*/{
6042 s//\1/
6043 q
6044 }
6045 /^X\(\/\/\)$/{
6046 s//\1/
6047 q
6048 }
6049 /^X\(\/\).*/{
6050 s//\1/
6051 q
6052 }
6053 s/.*/./; q'`
6054 test -d "$as_dir" && break
6055 done
6056 test -z "$as_dirs" || eval "mkdir $as_dirs"
6057 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6058 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6059 { (exit 1); exit 1; }; }; }
6060 ac_builddir=.
6061
6062 case "$ac_dir" in
6063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6064 *)
6065 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6066 # A ".." for each directory in $ac_dir_suffix.
6067 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6068 case $ac_top_builddir_sub in
6069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6071 esac ;;
6072 esac
6073 ac_abs_top_builddir=$ac_pwd
6074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6075 # for backward compatibility:
6076 ac_top_builddir=$ac_top_build_prefix
6077
6078 case $srcdir in
6079 .) # We are building in place.
6080 ac_srcdir=.
6081 ac_top_srcdir=$ac_top_builddir_sub
6082 ac_abs_top_srcdir=$ac_pwd ;;
6083 [\\/]* | ?:[\\/]* ) # Absolute name.
6084 ac_srcdir=$srcdir$ac_dir_suffix;
6085 ac_top_srcdir=$srcdir
6086 ac_abs_top_srcdir=$srcdir ;;
6087 *) # Relative name.
6088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6089 ac_top_srcdir=$ac_top_build_prefix$srcdir
6090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6091 esac
6092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6093
6094
6095 case $ac_mode in
6096 :F)
6097 #
6098 # CONFIG_FILE
6099 #
6100
6101 case $INSTALL in
6102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6104 esac
6105 _ACEOF
6106
6107 cat >>$CONFIG_STATUS <<\_ACEOF
6108 # If the template does not know about datarootdir, expand it.
6109 # FIXME: This hack should be removed a few years after 2.60.
6110 ac_datarootdir_hack=; ac_datarootdir_seen=
6111
6112 case `sed -n '/datarootdir/ {
6113 p
6114 q
6115 }
6116 /@datadir@/p
6117 /@docdir@/p
6118 /@infodir@/p
6119 /@localedir@/p
6120 /@mandir@/p
6121 ' $ac_file_inputs` in
6122 *datarootdir*) ac_datarootdir_seen=yes;;
6123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6124 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6125 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6126 _ACEOF
6127 cat >>$CONFIG_STATUS <<_ACEOF
6128 ac_datarootdir_hack='
6129 s&@datadir@&$datadir&g
6130 s&@docdir@&$docdir&g
6131 s&@infodir@&$infodir&g
6132 s&@localedir@&$localedir&g
6133 s&@mandir@&$mandir&g
6134 s&\\\${datarootdir}&$datarootdir&g' ;;
6135 esac
6136 _ACEOF
6137
6138 # Neutralize VPATH when `$srcdir' = `.'.
6139 # Shell code in configure.ac might set extrasub.
6140 # FIXME: do we really want to maintain this feature?
6141 cat >>$CONFIG_STATUS <<_ACEOF
6142 sed "$ac_vpsub
6143 $extrasub
6144 _ACEOF
6145 cat >>$CONFIG_STATUS <<\_ACEOF
6146 :t
6147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6148 s&@configure_input@&$configure_input&;t t
6149 s&@top_builddir@&$ac_top_builddir_sub&;t t
6150 s&@srcdir@&$ac_srcdir&;t t
6151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6152 s&@top_srcdir@&$ac_top_srcdir&;t t
6153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6154 s&@builddir@&$ac_builddir&;t t
6155 s&@abs_builddir@&$ac_abs_builddir&;t t
6156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6157 s&@INSTALL@&$ac_INSTALL&;t t
6158 $ac_datarootdir_hack
6159 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6160
6161 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6162 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6163 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6164 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6165 which seems to be undefined. Please make sure it is defined." >&5
6166 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6167 which seems to be undefined. Please make sure it is defined." >&2;}
6168
6169 rm -f "$tmp/stdin"
6170 case $ac_file in
6171 -) cat "$tmp/out"; rm -f "$tmp/out";;
6172 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6173 esac
6174 ;;
6175 :H)
6176 #
6177 # CONFIG_HEADER
6178 #
6179 _ACEOF
6180
6181 # Transform confdefs.h into a sed script `conftest.defines', that
6182 # substitutes the proper values into config.h.in to produce config.h.
6183 rm -f conftest.defines conftest.tail
6184 # First, append a space to every undef/define line, to ease matching.
6185 echo 's/$/ /' >conftest.defines
6186 # Then, protect against being on the right side of a sed subst, or in
6187 # an unquoted here document, in config.status. If some macros were
6188 # called several times there might be several #defines for the same
6189 # symbol, which is useless. But do not sort them, since the last
6190 # AC_DEFINE must be honored.
6191 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6192 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6193 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6194 # PARAMS is the parameter list in the macro definition--in most cases, it's
6195 # just an empty string.
6196 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6197 ac_dB='\\)[ (].*,\\1define\\2'
6198 ac_dC=' '
6199 ac_dD=' ,'
6200
6201 uniq confdefs.h |
6202 sed -n '
6203 t rset
6204 :rset
6205 s/^[ ]*#[ ]*define[ ][ ]*//
6206 t ok
6207 d
6208 :ok
6209 s/[\\&,]/\\&/g
6210 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6211 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6212 ' >>conftest.defines
6213
6214 # Remove the space that was appended to ease matching.
6215 # Then replace #undef with comments. This is necessary, for
6216 # example, in the case of _POSIX_SOURCE, which is predefined and required
6217 # on some systems where configure will not decide to define it.
6218 # (The regexp can be short, since the line contains either #define or #undef.)
6219 echo 's/ $//
6220 s,^[ #]*u.*,/* & */,' >>conftest.defines
6221
6222 # Break up conftest.defines:
6223 ac_max_sed_lines=50
6224
6225 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6226 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6227 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6228 # et cetera.
6229 ac_in='$ac_file_inputs'
6230 ac_out='"$tmp/out1"'
6231 ac_nxt='"$tmp/out2"'
6232
6233 while :
6234 do
6235 # Write a here document:
6236 cat >>$CONFIG_STATUS <<_ACEOF
6237 # First, check the format of the line:
6238 cat >"\$tmp/defines.sed" <<\\CEOF
6239 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6240 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6241 b
6242 :def
6243 _ACEOF
6244 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6245 echo 'CEOF
6246 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6247 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6248 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6249 grep . conftest.tail >/dev/null || break
6250 rm -f conftest.defines
6251 mv conftest.tail conftest.defines
6252 done
6253 rm -f conftest.defines conftest.tail
6254
6255 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6256 cat >>$CONFIG_STATUS <<\_ACEOF
6257 if test x"$ac_file" != x-; then
6258 echo "/* $configure_input */" >"$tmp/config.h"
6259 cat "$ac_result" >>"$tmp/config.h"
6260 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6261 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6262 echo "$as_me: $ac_file is unchanged" >&6;}
6263 else
6264 rm -f $ac_file
6265 mv "$tmp/config.h" $ac_file
6266 fi
6267 else
6268 echo "/* $configure_input */"
6269 cat "$ac_result"
6270 fi
6271 rm -f "$tmp/out12"
6272 ;;
6273
6274
6275 esac
6276
6277 done # for ac_tag
6278
6279
6280 { (exit 0); exit 0; }
6281 _ACEOF
6282 chmod +x $CONFIG_STATUS
6283 ac_clean_files=$ac_clean_files_save
6284
6285
6286 # configure is writing to config.log, and then calls config.status.
6287 # config.status does its own redirection, appending to config.log.
6288 # Unfortunately, on DOS this fails, as config.log is still kept open
6289 # by configure, so config.status won't be able to write to it; its
6290 # output is simply discarded. So we exec the FD to /dev/null,
6291 # effectively closing config.log, so it can be properly (re)opened and
6292 # appended to by config.status. When coming back to configure, we
6293 # need to make the FD available again.
6294 if test "$no_create" != yes; then
6295 ac_cs_success=:
6296 ac_config_status_args=
6297 test "$silent" = yes &&
6298 ac_config_status_args="$ac_config_status_args --quiet"
6299 exec 5>/dev/null
6300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6301 exec 5>>config.log
6302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6303 # would make configure fail if this is the last instruction.
6304 $ac_cs_success || { (exit 1); exit 1; }
6305 fi
6306