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