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