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