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