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