1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for hitch 1.7.0. 4# 5# Report bugs to <opensource@varnish-software.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: opensource@varnish-software.com about your system, 271$0: including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559as_awk_strverscmp=' 560 # Use only awk features that work with 7th edition Unix awk (1978). 561 # My, what an old awk you have, Mr. Solaris! 562 END { 563 while (length(v1) && length(v2)) { 564 # Set d1 to be the next thing to compare from v1, and likewise for d2. 565 # Normally this is a single character, but if v1 and v2 contain digits, 566 # compare them as integers and fractions as strverscmp does. 567 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 568 # Split v1 and v2 into their leading digit string components d1 and d2, 569 # and advance v1 and v2 past the leading digit strings. 570 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 571 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 572 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 573 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 574 if (d1 ~ /^0/) { 575 if (d2 ~ /^0/) { 576 # Compare two fractions. 577 while (d1 ~ /^0/ && d2 ~ /^0/) { 578 d1 = substr(d1, 2); len1-- 579 d2 = substr(d2, 2); len2-- 580 } 581 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 582 # The two components differ in length, and the common prefix 583 # contains only leading zeros. Consider the longer to be less. 584 d1 = -len1 585 d2 = -len2 586 } else { 587 # Otherwise, compare as strings. 588 d1 = "x" d1 589 d2 = "x" d2 590 } 591 } else { 592 # A fraction is less than an integer. 593 exit 1 594 } 595 } else { 596 if (d2 ~ /^0/) { 597 # An integer is greater than a fraction. 598 exit 2 599 } else { 600 # Compare two integers. 601 d1 += 0 602 d2 += 0 603 } 604 } 605 } else { 606 # The normal case, without worrying about digits. 607 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 608 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 609 } 610 if (d1 < d2) exit 1 611 if (d1 > d2) exit 2 612 } 613 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 614 # which mishandles some comparisons of empty strings to integers. 615 if (length(v2)) exit 1 616 if (length(v1)) exit 2 617 } 618' 619 620test -n "$DJDIR" || exec 7<&0 </dev/null 621exec 6>&1 622 623# Name of the host. 624# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 625# so uname gets run too. 626ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 627 628# 629# Initializations. 630# 631ac_default_prefix=/usr/local 632ac_clean_files= 633ac_config_libobj_dir=. 634LIBOBJS= 635cross_compiling=no 636subdirs= 637MFLAGS= 638MAKEFLAGS= 639 640# Identity of this package. 641PACKAGE_NAME='hitch' 642PACKAGE_TARNAME='hitch' 643PACKAGE_VERSION='1.7.0' 644PACKAGE_STRING='hitch 1.7.0' 645PACKAGE_BUGREPORT='opensource@varnish-software.com' 646PACKAGE_URL='' 647 648ac_unique_file="src/configuration.c" 649# Factoring default headers for most tests. 650ac_includes_default="\ 651#include <stdio.h> 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef STDC_HEADERS 659# include <stdlib.h> 660# include <stddef.h> 661#else 662# ifdef HAVE_STDLIB_H 663# include <stdlib.h> 664# endif 665#endif 666#ifdef HAVE_STRING_H 667# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 668# include <memory.h> 669# endif 670# include <string.h> 671#endif 672#ifdef HAVE_STRINGS_H 673# include <strings.h> 674#endif 675#ifdef HAVE_INTTYPES_H 676# include <inttypes.h> 677#endif 678#ifdef HAVE_STDINT_H 679# include <stdint.h> 680#endif 681#ifdef HAVE_UNISTD_H 682# include <unistd.h> 683#endif" 684 685ac_header_list= 686ac_subst_vars='am__EXEEXT_FALSE 687am__EXEEXT_TRUE 688LTLIBOBJS 689LIBOBJS 690HITCH_CFLAGS 691SH_TESTS 692HAVE_LINUX_FUTEX_FALSE 693HAVE_LINUX_FUTEX_TRUE 694USE_SHCTX_FALSE 695USE_SHCTX_TRUE 696RT_LIBS 697NSL_LIBS 698SOCKET_LIBS 699CRYPTO_LIBS 700CRYPTO_CFLAGS 701SSL_LIBS 702SSL_CFLAGS 703EV_LIBS 704EV_CFLAGS 705PKG_CONFIG_LIBDIR 706PKG_CONFIG_PATH 707PKG_CONFIG 708MAINT 709MAINTAINER_MODE_FALSE 710MAINTAINER_MODE_TRUE 711SOCKSTAT 712RST2MAN 713ENABLE_WARNINGS_FALSE 714ENABLE_WARNINGS_TRUE 715ENABLE_DOCUMENTATION_FALSE 716ENABLE_DOCUMENTATION_TRUE 717YFLAGS 718YACC 719LEXLIB 720LEX_OUTPUT_ROOT 721LEX 722RANLIB 723ac_ct_AR 724AR 725AM_BACKSLASH 726AM_DEFAULT_VERBOSITY 727AM_DEFAULT_V 728AM_V 729am__fastdepCC_FALSE 730am__fastdepCC_TRUE 731CCDEPMODE 732am__nodep 733AMDEPBACKSLASH 734AMDEP_FALSE 735AMDEP_TRUE 736am__include 737DEPDIR 738am__untar 739am__tar 740AMTAR 741am__leading_dot 742SET_MAKE 743AWK 744mkdir_p 745MKDIR_P 746INSTALL_STRIP_PROGRAM 747STRIP 748install_sh 749MAKEINFO 750AUTOHEADER 751AUTOMAKE 752AUTOCONF 753ACLOCAL 754VERSION 755PACKAGE 756CYGPATH_W 757am__isrc 758INSTALL_DATA 759INSTALL_SCRIPT 760INSTALL_PROGRAM 761EGREP 762GREP 763CPP 764OBJEXT 765EXEEXT 766ac_ct_CC 767CPPFLAGS 768LDFLAGS 769CFLAGS 770CC 771target_alias 772host_alias 773build_alias 774LIBS 775ECHO_T 776ECHO_N 777ECHO_C 778DEFS 779mandir 780localedir 781libdir 782psdir 783pdfdir 784dvidir 785htmldir 786infodir 787docdir 788oldincludedir 789includedir 790runstatedir 791localstatedir 792sharedstatedir 793sysconfdir 794datadir 795datarootdir 796libexecdir 797sbindir 798bindir 799program_transform_name 800prefix 801exec_prefix 802PACKAGE_URL 803PACKAGE_BUGREPORT 804PACKAGE_STRING 805PACKAGE_VERSION 806PACKAGE_TARNAME 807PACKAGE_NAME 808PATH_SEPARATOR 809SHELL 810am__quote' 811ac_subst_files='' 812ac_user_opts=' 813enable_option_checking 814enable_dependency_tracking 815enable_silent_rules 816with_lex 817with_yacc 818enable_documentation 819enable_warnings 820enable_maintainer_mode 821enable_sessioncache 822enable_tcp_fastopen 823' 824 ac_precious_vars='build_alias 825host_alias 826target_alias 827CC 828CFLAGS 829LDFLAGS 830LIBS 831CPPFLAGS 832CPP 833YACC 834YFLAGS 835PKG_CONFIG 836PKG_CONFIG_PATH 837PKG_CONFIG_LIBDIR 838EV_CFLAGS 839EV_LIBS 840SSL_CFLAGS 841SSL_LIBS 842CRYPTO_CFLAGS 843CRYPTO_LIBS' 844 845 846# Initialize some variables set by options. 847ac_init_help= 848ac_init_version=false 849ac_unrecognized_opts= 850ac_unrecognized_sep= 851# The variables have the same names as the options, with 852# dashes changed to underlines. 853cache_file=/dev/null 854exec_prefix=NONE 855no_create= 856no_recursion= 857prefix=NONE 858program_prefix=NONE 859program_suffix=NONE 860program_transform_name=s,x,x, 861silent= 862site= 863srcdir= 864verbose= 865x_includes=NONE 866x_libraries=NONE 867 868# Installation directory options. 869# These are left unexpanded so users can "make install exec_prefix=/foo" 870# and all the variables that are supposed to be based on exec_prefix 871# by default will actually change. 872# Use braces instead of parens because sh, perl, etc. also accept them. 873# (The list follows the same order as the GNU Coding Standards.) 874bindir='${exec_prefix}/bin' 875sbindir='${exec_prefix}/sbin' 876libexecdir='${exec_prefix}/libexec' 877datarootdir='${prefix}/share' 878datadir='${datarootdir}' 879sysconfdir='${prefix}/etc' 880sharedstatedir='${prefix}/com' 881localstatedir='${prefix}/var' 882runstatedir='${localstatedir}/run' 883includedir='${prefix}/include' 884oldincludedir='/usr/include' 885docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 886infodir='${datarootdir}/info' 887htmldir='${docdir}' 888dvidir='${docdir}' 889pdfdir='${docdir}' 890psdir='${docdir}' 891libdir='${exec_prefix}/lib' 892localedir='${datarootdir}/locale' 893mandir='${datarootdir}/man' 894 895ac_prev= 896ac_dashdash= 897for ac_option 898do 899 # If the previous option needs an argument, assign it. 900 if test -n "$ac_prev"; then 901 eval $ac_prev=\$ac_option 902 ac_prev= 903 continue 904 fi 905 906 case $ac_option in 907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 908 *=) ac_optarg= ;; 909 *) ac_optarg=yes ;; 910 esac 911 912 # Accept the important Cygnus configure options, so we can diagnose typos. 913 914 case $ac_dashdash$ac_option in 915 --) 916 ac_dashdash=yes ;; 917 918 -bindir | --bindir | --bindi | --bind | --bin | --bi) 919 ac_prev=bindir ;; 920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 921 bindir=$ac_optarg ;; 922 923 -build | --build | --buil | --bui | --bu) 924 ac_prev=build_alias ;; 925 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 926 build_alias=$ac_optarg ;; 927 928 -cache-file | --cache-file | --cache-fil | --cache-fi \ 929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 930 ac_prev=cache_file ;; 931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 933 cache_file=$ac_optarg ;; 934 935 --config-cache | -C) 936 cache_file=config.cache ;; 937 938 -datadir | --datadir | --datadi | --datad) 939 ac_prev=datadir ;; 940 -datadir=* | --datadir=* | --datadi=* | --datad=*) 941 datadir=$ac_optarg ;; 942 943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 944 | --dataroo | --dataro | --datar) 945 ac_prev=datarootdir ;; 946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 948 datarootdir=$ac_optarg ;; 949 950 -disable-* | --disable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: $ac_useropt" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=no ;; 965 966 -docdir | --docdir | --docdi | --doc | --do) 967 ac_prev=docdir ;; 968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 969 docdir=$ac_optarg ;; 970 971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 972 ac_prev=dvidir ;; 973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 974 dvidir=$ac_optarg ;; 975 976 -enable-* | --enable-*) 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 978 # Reject names that are not valid shell variable names. 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 980 as_fn_error $? "invalid feature name: $ac_useropt" 981 ac_useropt_orig=$ac_useropt 982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 983 case $ac_user_opts in 984 *" 985"enable_$ac_useropt" 986"*) ;; 987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 988 ac_unrecognized_sep=', ';; 989 esac 990 eval enable_$ac_useropt=\$ac_optarg ;; 991 992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 994 | --exec | --exe | --ex) 995 ac_prev=exec_prefix ;; 996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 998 | --exec=* | --exe=* | --ex=*) 999 exec_prefix=$ac_optarg ;; 1000 1001 -gas | --gas | --ga | --g) 1002 # Obsolete; use --with-gas. 1003 with_gas=yes ;; 1004 1005 -help | --help | --hel | --he | -h) 1006 ac_init_help=long ;; 1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1008 ac_init_help=recursive ;; 1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1010 ac_init_help=short ;; 1011 1012 -host | --host | --hos | --ho) 1013 ac_prev=host_alias ;; 1014 -host=* | --host=* | --hos=* | --ho=*) 1015 host_alias=$ac_optarg ;; 1016 1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1018 ac_prev=htmldir ;; 1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1020 | --ht=*) 1021 htmldir=$ac_optarg ;; 1022 1023 -includedir | --includedir | --includedi | --included | --include \ 1024 | --includ | --inclu | --incl | --inc) 1025 ac_prev=includedir ;; 1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1027 | --includ=* | --inclu=* | --incl=* | --inc=*) 1028 includedir=$ac_optarg ;; 1029 1030 -infodir | --infodir | --infodi | --infod | --info | --inf) 1031 ac_prev=infodir ;; 1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1033 infodir=$ac_optarg ;; 1034 1035 -libdir | --libdir | --libdi | --libd) 1036 ac_prev=libdir ;; 1037 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1038 libdir=$ac_optarg ;; 1039 1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1041 | --libexe | --libex | --libe) 1042 ac_prev=libexecdir ;; 1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1044 | --libexe=* | --libex=* | --libe=*) 1045 libexecdir=$ac_optarg ;; 1046 1047 -localedir | --localedir | --localedi | --localed | --locale) 1048 ac_prev=localedir ;; 1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1050 localedir=$ac_optarg ;; 1051 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1053 | --localstate | --localstat | --localsta | --localst | --locals) 1054 ac_prev=localstatedir ;; 1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1057 localstatedir=$ac_optarg ;; 1058 1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1060 ac_prev=mandir ;; 1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1062 mandir=$ac_optarg ;; 1063 1064 -nfp | --nfp | --nf) 1065 # Obsolete; use --without-fp. 1066 with_fp=no ;; 1067 1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1069 | --no-cr | --no-c | -n) 1070 no_create=yes ;; 1071 1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1074 no_recursion=yes ;; 1075 1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1078 | --oldin | --oldi | --old | --ol | --o) 1079 ac_prev=oldincludedir ;; 1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1083 oldincludedir=$ac_optarg ;; 1084 1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1086 ac_prev=prefix ;; 1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1088 prefix=$ac_optarg ;; 1089 1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1091 | --program-pre | --program-pr | --program-p) 1092 ac_prev=program_prefix ;; 1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1095 program_prefix=$ac_optarg ;; 1096 1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1098 | --program-suf | --program-su | --program-s) 1099 ac_prev=program_suffix ;; 1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1102 program_suffix=$ac_optarg ;; 1103 1104 -program-transform-name | --program-transform-name \ 1105 | --program-transform-nam | --program-transform-na \ 1106 | --program-transform-n | --program-transform- \ 1107 | --program-transform | --program-transfor \ 1108 | --program-transfo | --program-transf \ 1109 | --program-trans | --program-tran \ 1110 | --progr-tra | --program-tr | --program-t) 1111 ac_prev=program_transform_name ;; 1112 -program-transform-name=* | --program-transform-name=* \ 1113 | --program-transform-nam=* | --program-transform-na=* \ 1114 | --program-transform-n=* | --program-transform-=* \ 1115 | --program-transform=* | --program-transfor=* \ 1116 | --program-transfo=* | --program-transf=* \ 1117 | --program-trans=* | --program-tran=* \ 1118 | --progr-tra=* | --program-tr=* | --program-t=*) 1119 program_transform_name=$ac_optarg ;; 1120 1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1122 ac_prev=pdfdir ;; 1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1124 pdfdir=$ac_optarg ;; 1125 1126 -psdir | --psdir | --psdi | --psd | --ps) 1127 ac_prev=psdir ;; 1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1129 psdir=$ac_optarg ;; 1130 1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1132 | -silent | --silent | --silen | --sile | --sil) 1133 silent=yes ;; 1134 1135 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1136 | --runstate | --runstat | --runsta | --runst | --runs \ 1137 | --run | --ru | --r) 1138 ac_prev=runstatedir ;; 1139 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1140 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1141 | --run=* | --ru=* | --r=*) 1142 runstatedir=$ac_optarg ;; 1143 1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1145 ac_prev=sbindir ;; 1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1147 | --sbi=* | --sb=*) 1148 sbindir=$ac_optarg ;; 1149 1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1152 | --sharedst | --shareds | --shared | --share | --shar \ 1153 | --sha | --sh) 1154 ac_prev=sharedstatedir ;; 1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1158 | --sha=* | --sh=*) 1159 sharedstatedir=$ac_optarg ;; 1160 1161 -site | --site | --sit) 1162 ac_prev=site ;; 1163 -site=* | --site=* | --sit=*) 1164 site=$ac_optarg ;; 1165 1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1167 ac_prev=srcdir ;; 1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1169 srcdir=$ac_optarg ;; 1170 1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1172 | --syscon | --sysco | --sysc | --sys | --sy) 1173 ac_prev=sysconfdir ;; 1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1176 sysconfdir=$ac_optarg ;; 1177 1178 -target | --target | --targe | --targ | --tar | --ta | --t) 1179 ac_prev=target_alias ;; 1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1181 target_alias=$ac_optarg ;; 1182 1183 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1184 verbose=yes ;; 1185 1186 -version | --version | --versio | --versi | --vers | -V) 1187 ac_init_version=: ;; 1188 1189 -with-* | --with-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: $ac_useropt" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198"with_$ac_useropt" 1199"*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=\$ac_optarg ;; 1204 1205 -without-* | --without-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: $ac_useropt" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=no ;; 1220 1221 --x) 1222 # Obsolete; use --with-x. 1223 with_x=yes ;; 1224 1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1226 | --x-incl | --x-inc | --x-in | --x-i) 1227 ac_prev=x_includes ;; 1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1230 x_includes=$ac_optarg ;; 1231 1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1234 ac_prev=x_libraries ;; 1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1237 x_libraries=$ac_optarg ;; 1238 1239 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1240Try \`$0 --help' for more information" 1241 ;; 1242 1243 *=*) 1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1245 # Reject names that are not valid shell variable names. 1246 case $ac_envvar in #( 1247 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1249 esac 1250 eval $ac_envvar=\$ac_optarg 1251 export $ac_envvar ;; 1252 1253 *) 1254 # FIXME: should be removed in autoconf 3.0. 1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1259 ;; 1260 1261 esac 1262done 1263 1264if test -n "$ac_prev"; then 1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1266 as_fn_error $? "missing argument to $ac_option" 1267fi 1268 1269if test -n "$ac_unrecognized_opts"; then 1270 case $enable_option_checking in 1271 no) ;; 1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1274 esac 1275fi 1276 1277# Check all directory arguments for consistency. 1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1279 datadir sysconfdir sharedstatedir localstatedir includedir \ 1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1281 libdir localedir mandir runstatedir 1282do 1283 eval ac_val=\$$ac_var 1284 # Remove trailing slashes. 1285 case $ac_val in 1286 */ ) 1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1288 eval $ac_var=\$ac_val;; 1289 esac 1290 # Be sure to have absolute directory names. 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1296done 1297 1298# There might be people who depend on the old broken behavior: `$host' 1299# used to hold the argument of --host etc. 1300# FIXME: To remove some day. 1301build=$build_alias 1302host=$host_alias 1303target=$target_alias 1304 1305# FIXME: To remove some day. 1306if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 elif test "x$build_alias" != "x$host_alias"; then 1310 cross_compiling=yes 1311 fi 1312fi 1313 1314ac_tool_prefix= 1315test -n "$host_alias" && ac_tool_prefix=$host_alias- 1316 1317test "$silent" = yes && exec 6>/dev/null 1318 1319 1320ac_pwd=`pwd` && test -n "$ac_pwd" && 1321ac_ls_di=`ls -di .` && 1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1323 as_fn_error $? "working directory cannot be determined" 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 as_fn_error $? "pwd does not report name of working directory" 1326 1327 1328# Find the source files, if location was not specified. 1329if test -z "$srcdir"; then 1330 ac_srcdir_defaulted=yes 1331 # Try the directory containing this script, then the parent directory. 1332 ac_confdir=`$as_dirname -- "$as_myself" || 1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1334 X"$as_myself" : 'X\(//\)[^/]' \| \ 1335 X"$as_myself" : 'X\(//\)$' \| \ 1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1337$as_echo X"$as_myself" | 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)[^/].*/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\).*/{ 1351 s//\1/ 1352 q 1353 } 1354 s/.*/./; q'` 1355 srcdir=$ac_confdir 1356 if test ! -r "$srcdir/$ac_unique_file"; then 1357 srcdir=.. 1358 fi 1359else 1360 ac_srcdir_defaulted=no 1361fi 1362if test ! -r "$srcdir/$ac_unique_file"; then 1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1365fi 1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1367ac_abs_confdir=`( 1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1369 pwd)` 1370# When building in place, set srcdir=. 1371if test "$ac_abs_confdir" = "$ac_pwd"; then 1372 srcdir=. 1373fi 1374# Remove unnecessary trailing slashes from srcdir. 1375# Double slashes in file names in object file debugging info 1376# mess up M-x gdb in Emacs. 1377case $srcdir in 1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1379esac 1380for ac_var in $ac_precious_vars; do 1381 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_env_${ac_var}_value=\$${ac_var} 1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1385done 1386 1387# 1388# Report the --help message. 1389# 1390if test "$ac_init_help" = "long"; then 1391 # Omit some internal or obsolete options to make the list less imposing. 1392 # This message is too long to be a string in the A/UX 3.1 sh. 1393 cat <<_ACEOF 1394\`configure' configures hitch 1.7.0 to adapt to many kinds of systems. 1395 1396Usage: $0 [OPTION]... [VAR=VALUE]... 1397 1398To assign environment variables (e.g., CC, CFLAGS...), specify them as 1399VAR=VALUE. See below for descriptions of some of the useful variables. 1400 1401Defaults for the options are specified in brackets. 1402 1403Configuration: 1404 -h, --help display this help and exit 1405 --help=short display options specific to this package 1406 --help=recursive display the short help of all the included packages 1407 -V, --version display version information and exit 1408 -q, --quiet, --silent do not print \`checking ...' messages 1409 --cache-file=FILE cache test results in FILE [disabled] 1410 -C, --config-cache alias for \`--cache-file=config.cache' 1411 -n, --no-create do not create output files 1412 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1413 1414Installation directories: 1415 --prefix=PREFIX install architecture-independent files in PREFIX 1416 [$ac_default_prefix] 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1418 [PREFIX] 1419 1420By default, \`make install' will install all the files in 1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1422an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1423for instance \`--prefix=\$HOME'. 1424 1425For better control, use the options below. 1426 1427Fine tuning of the installation directories: 1428 --bindir=DIR user executables [EPREFIX/bin] 1429 --sbindir=DIR system admin executables [EPREFIX/sbin] 1430 --libexecdir=DIR program executables [EPREFIX/libexec] 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1434 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1435 --libdir=DIR object code libraries [EPREFIX/lib] 1436 --includedir=DIR C header files [PREFIX/include] 1437 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1440 --infodir=DIR info documentation [DATAROOTDIR/info] 1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1442 --mandir=DIR man documentation [DATAROOTDIR/man] 1443 --docdir=DIR documentation root [DATAROOTDIR/doc/hitch] 1444 --htmldir=DIR html documentation [DOCDIR] 1445 --dvidir=DIR dvi documentation [DOCDIR] 1446 --pdfdir=DIR pdf documentation [DOCDIR] 1447 --psdir=DIR ps documentation [DOCDIR] 1448_ACEOF 1449 1450 cat <<\_ACEOF 1451 1452Program names: 1453 --program-prefix=PREFIX prepend PREFIX to installed program names 1454 --program-suffix=SUFFIX append SUFFIX to installed program names 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of hitch 1.7.0:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-option-checking ignore unrecognized --enable/--with options 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-dependency-tracking 1470 do not reject slow dependency extractors 1471 --disable-dependency-tracking 1472 speeds up one-time build 1473 --enable-silent-rules less verbose build output (undo: "make V=1") 1474 --disable-silent-rules verbose build output (undo: "make V=0") 1475 --enable-documentation Build the documentation 1476 --enable-warnings Enable warnings 1477 --enable-maintainer-mode 1478 enable make rules and dependencies not useful (and 1479 sometimes confusing) to the casual installer 1480 --enable-sessioncache Enable TLS session cache. (default is off) 1481 --enable-tcp-fastopen Enable TCP Fast Open. (default is auto) 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-lex Build with lex 1487 --with-yacc Build with yacc 1488 1489Some influential environment variables: 1490 CC C compiler command 1491 CFLAGS C compiler flags 1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 nonstandard directory <lib dir> 1494 LIBS libraries to pass to the linker, e.g. -l<library> 1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 YACC The `Yet Another Compiler Compiler' implementation to use. 1499 Defaults to the first program found out of: `bison -y', `byacc', 1500 `yacc'. 1501 YFLAGS The list of arguments that will be passed by default to $YACC. 1502 This script will default YFLAGS to the empty string to avoid a 1503 default value of `-d' given by some make applications. 1504 PKG_CONFIG path to pkg-config utility 1505 PKG_CONFIG_PATH 1506 directories to add to pkg-config's search path 1507 PKG_CONFIG_LIBDIR 1508 path overriding pkg-config's built-in search path 1509 EV_CFLAGS C compiler flags for EV, overriding pkg-config 1510 EV_LIBS linker flags for EV, overriding pkg-config 1511 SSL_CFLAGS C compiler flags for SSL, overriding pkg-config 1512 SSL_LIBS linker flags for SSL, overriding pkg-config 1513 CRYPTO_CFLAGS 1514 C compiler flags for CRYPTO, overriding pkg-config 1515 CRYPTO_LIBS linker flags for CRYPTO, overriding pkg-config 1516 1517Use these variables to override the choices made by `configure' or to help 1518it to find libraries and programs with nonstandard names/locations. 1519 1520Report bugs to <opensource@varnish-software.com>. 1521_ACEOF 1522ac_status=$? 1523fi 1524 1525if test "$ac_init_help" = "recursive"; then 1526 # If there are subdirs, report their specific --help. 1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1528 test -d "$ac_dir" || 1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1530 continue 1531 ac_builddir=. 1532 1533case "$ac_dir" in 1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535*) 1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1537 # A ".." for each directory in $ac_dir_suffix. 1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1539 case $ac_top_builddir_sub in 1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1542 esac ;; 1543esac 1544ac_abs_top_builddir=$ac_pwd 1545ac_abs_builddir=$ac_pwd$ac_dir_suffix 1546# for backward compatibility: 1547ac_top_builddir=$ac_top_build_prefix 1548 1549case $srcdir in 1550 .) # We are building in place. 1551 ac_srcdir=. 1552 ac_top_srcdir=$ac_top_builddir_sub 1553 ac_abs_top_srcdir=$ac_pwd ;; 1554 [\\/]* | ?:[\\/]* ) # Absolute name. 1555 ac_srcdir=$srcdir$ac_dir_suffix; 1556 ac_top_srcdir=$srcdir 1557 ac_abs_top_srcdir=$srcdir ;; 1558 *) # Relative name. 1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1560 ac_top_srcdir=$ac_top_build_prefix$srcdir 1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1562esac 1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1564 1565 cd "$ac_dir" || { ac_status=$?; continue; } 1566 # Check for guested configure. 1567 if test -f "$ac_srcdir/configure.gnu"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1570 elif test -f "$ac_srcdir/configure"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure" --help=recursive 1573 else 1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1575 fi || ac_status=$? 1576 cd "$ac_pwd" || { ac_status=$?; break; } 1577 done 1578fi 1579 1580test -n "$ac_init_help" && exit $ac_status 1581if $ac_init_version; then 1582 cat <<\_ACEOF 1583hitch configure 1.7.0 1584generated by GNU Autoconf 2.69 1585 1586Copyright (C) 2012 Free Software Foundation, Inc. 1587This configure script is free software; the Free Software Foundation 1588gives unlimited permission to copy, distribute and modify it. 1589_ACEOF 1590 exit 1591fi 1592 1593## ------------------------ ## 1594## Autoconf initialization. ## 1595## ------------------------ ## 1596 1597# ac_fn_c_try_compile LINENO 1598# -------------------------- 1599# Try to compile conftest.$ac_ext, and return whether this succeeded. 1600ac_fn_c_try_compile () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 rm -f conftest.$ac_objext 1604 if { { ac_try="$ac_compile" 1605case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608esac 1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610$as_echo "$ac_try_echo"; } >&5 1611 (eval "$ac_compile") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { 1620 test -z "$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 } && test -s conftest.$ac_objext; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 as_fn_set_status $ac_retval 1632 1633} # ac_fn_c_try_compile 1634 1635# ac_fn_c_try_cpp LINENO 1636# ---------------------- 1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1638ac_fn_c_try_cpp () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 if { { ac_try="$ac_cpp conftest.$ac_ext" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } > conftest.i && { 1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 }; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_cpp 1671 1672# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1673# ------------------------------------------------------- 1674# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1675# the include files in INCLUDES and setting the cache variable VAR 1676# accordingly. 1677ac_fn_c_check_header_mongrel () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 if eval \${$3+:} false; then : 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1682$as_echo_n "checking for $2... " >&6; } 1683if eval \${$3+:} false; then : 1684 $as_echo_n "(cached) " >&6 1685fi 1686eval ac_res=\$$3 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688$as_echo "$ac_res" >&6; } 1689else 1690 # Is the header compilable? 1691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1692$as_echo_n "checking $2 usability... " >&6; } 1693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1694/* end confdefs.h. */ 1695$4 1696#include <$2> 1697_ACEOF 1698if ac_fn_c_try_compile "$LINENO"; then : 1699 ac_header_compiler=yes 1700else 1701 ac_header_compiler=no 1702fi 1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1705$as_echo "$ac_header_compiler" >&6; } 1706 1707# Is the header present? 1708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1709$as_echo_n "checking $2 presence... " >&6; } 1710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712#include <$2> 1713_ACEOF 1714if ac_fn_c_try_cpp "$LINENO"; then : 1715 ac_header_preproc=yes 1716else 1717 ac_header_preproc=no 1718fi 1719rm -f conftest.err conftest.i conftest.$ac_ext 1720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1721$as_echo "$ac_header_preproc" >&6; } 1722 1723# So? What about this header? 1724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1725 yes:no: ) 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1727$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1729$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1730 ;; 1731 no:yes:* ) 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1733$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1735$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1737$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1739$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1742( $as_echo "## ---------------------------------------------- ## 1743## Report this to opensource@varnish-software.com ## 1744## ---------------------------------------------- ##" 1745 ) | sed "s/^/$as_me: WARNING: /" >&2 1746 ;; 1747esac 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749$as_echo_n "checking for $2... " >&6; } 1750if eval \${$3+:} false; then : 1751 $as_echo_n "(cached) " >&6 1752else 1753 eval "$3=\$ac_header_compiler" 1754fi 1755eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757$as_echo "$ac_res" >&6; } 1758fi 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 1761} # ac_fn_c_check_header_mongrel 1762 1763# ac_fn_c_try_run LINENO 1764# ---------------------- 1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1766# that executables *can* be run. 1767ac_fn_c_try_run () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 if { { ac_try="$ac_link" 1771case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_link") 2>&5 1778 ac_status=$? 1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1781 { { case "(($ac_try" in 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1783 *) ac_try_echo=$ac_try;; 1784esac 1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1786$as_echo "$ac_try_echo"; } >&5 1787 (eval "$ac_try") 2>&5 1788 ac_status=$? 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; }; }; then : 1791 ac_retval=0 1792else 1793 $as_echo "$as_me: program exited with status $ac_status" >&5 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=$ac_status 1798fi 1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_run 1804 1805# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1806# ------------------------------------------------------- 1807# Tests whether HEADER exists and can be compiled using the include files in 1808# INCLUDES, setting the cache variable VAR accordingly. 1809ac_fn_c_check_header_compile () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1813$as_echo_n "checking for $2... " >&6; } 1814if eval \${$3+:} false; then : 1815 $as_echo_n "(cached) " >&6 1816else 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819$4 1820#include <$2> 1821_ACEOF 1822if ac_fn_c_try_compile "$LINENO"; then : 1823 eval "$3=yes" 1824else 1825 eval "$3=no" 1826fi 1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_header_compile 1835 1836# ac_fn_c_try_link LINENO 1837# ----------------------- 1838# Try to link conftest.$ac_ext, and return whether this succeeded. 1839ac_fn_c_try_link () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 rm -f conftest.$ac_objext conftest$ac_exeext 1843 if { { ac_try="$ac_link" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_link") 2>conftest.err 1851 ac_status=$? 1852 if test -s conftest.err; then 1853 grep -v '^ *+' conftest.err >conftest.er1 1854 cat conftest.er1 >&5 1855 mv -f conftest.er1 conftest.err 1856 fi 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { 1859 test -z "$ac_c_werror_flag" || 1860 test ! -s conftest.err 1861 } && test -s conftest$ac_exeext && { 1862 test "$cross_compiling" = yes || 1863 test -x conftest$ac_exeext 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1874 # interfere with the next link command; also delete a directory that is 1875 # left behind by Apple's compiler. We do this before executing the actions. 1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 as_fn_set_status $ac_retval 1879 1880} # ac_fn_c_try_link 1881 1882# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1883# ---------------------------------------------------- 1884# Tries to find if the field MEMBER exists in type AGGR, after including 1885# INCLUDES, setting cache variable VAR accordingly. 1886ac_fn_c_check_member () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1890$as_echo_n "checking for $2.$3... " >&6; } 1891if eval \${$4+:} false; then : 1892 $as_echo_n "(cached) " >&6 1893else 1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895/* end confdefs.h. */ 1896$5 1897int 1898main () 1899{ 1900static $2 ac_aggr; 1901if (ac_aggr.$3) 1902return 0; 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 eval "$4=yes" 1909else 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912$5 1913int 1914main () 1915{ 1916static $2 ac_aggr; 1917if (sizeof ac_aggr.$3) 1918return 0; 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 eval "$4=yes" 1925else 1926 eval "$4=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931fi 1932eval ac_res=\$$4 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_c_check_member 1938 1939# ac_fn_c_find_intX_t LINENO BITS VAR 1940# ----------------------------------- 1941# Finds a signed integer type with width BITS, setting cache variable VAR 1942# accordingly. 1943ac_fn_c_find_intX_t () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1947$as_echo_n "checking for int$2_t... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 eval "$3=no" 1952 # Order is important - never check a type that is potentially smaller 1953 # than half of the expected target width. 1954 for ac_type in int$2_t 'int' 'long int' \ 1955 'long long int' 'short int' 'signed char'; do 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$ac_includes_default 1959 enum { N = $2 / 2 - 1 }; 1960int 1961main () 1962{ 1963static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1964test_array [0] = 0; 1965return test_array [0]; 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1973/* end confdefs.h. */ 1974$ac_includes_default 1975 enum { N = $2 / 2 - 1 }; 1976int 1977main () 1978{ 1979static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1980 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1981test_array [0] = 0; 1982return test_array [0]; 1983 1984 ; 1985 return 0; 1986} 1987_ACEOF 1988if ac_fn_c_try_compile "$LINENO"; then : 1989 1990else 1991 case $ac_type in #( 1992 int$2_t) : 1993 eval "$3=yes" ;; #( 1994 *) : 1995 eval "$3=\$ac_type" ;; 1996esac 1997fi 1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001 if eval test \"x\$"$3"\" = x"no"; then : 2002 2003else 2004 break 2005fi 2006 done 2007fi 2008eval ac_res=\$$3 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2010$as_echo "$ac_res" >&6; } 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 2013} # ac_fn_c_find_intX_t 2014 2015# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2016# ------------------------------------------- 2017# Tests whether TYPE exists after having included INCLUDES, setting cache 2018# variable VAR accordingly. 2019ac_fn_c_check_type () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2023$as_echo_n "checking for $2... " >&6; } 2024if eval \${$3+:} false; then : 2025 $as_echo_n "(cached) " >&6 2026else 2027 eval "$3=no" 2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029/* end confdefs.h. */ 2030$4 2031int 2032main () 2033{ 2034if (sizeof ($2)) 2035 return 0; 2036 ; 2037 return 0; 2038} 2039_ACEOF 2040if ac_fn_c_try_compile "$LINENO"; then : 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047if (sizeof (($2))) 2048 return 0; 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_compile "$LINENO"; then : 2054 2055else 2056 eval "$3=yes" 2057fi 2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059fi 2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061fi 2062eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064$as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067} # ac_fn_c_check_type 2068 2069# ac_fn_c_find_uintX_t LINENO BITS VAR 2070# ------------------------------------ 2071# Finds an unsigned integer type with width BITS, setting cache variable VAR 2072# accordingly. 2073ac_fn_c_find_uintX_t () 2074{ 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2077$as_echo_n "checking for uint$2_t... " >&6; } 2078if eval \${$3+:} false; then : 2079 $as_echo_n "(cached) " >&6 2080else 2081 eval "$3=no" 2082 # Order is important - never check a type that is potentially smaller 2083 # than half of the expected target width. 2084 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2085 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$ac_includes_default 2089int 2090main () 2091{ 2092static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2093test_array [0] = 0; 2094return test_array [0]; 2095 2096 ; 2097 return 0; 2098} 2099_ACEOF 2100if ac_fn_c_try_compile "$LINENO"; then : 2101 case $ac_type in #( 2102 uint$2_t) : 2103 eval "$3=yes" ;; #( 2104 *) : 2105 eval "$3=\$ac_type" ;; 2106esac 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109 if eval test \"x\$"$3"\" = x"no"; then : 2110 2111else 2112 break 2113fi 2114 done 2115fi 2116eval ac_res=\$$3 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2118$as_echo "$ac_res" >&6; } 2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2120 2121} # ac_fn_c_find_uintX_t 2122 2123# ac_fn_c_check_func LINENO FUNC VAR 2124# ---------------------------------- 2125# Tests whether FUNC exists, setting the cache variable VAR accordingly 2126ac_fn_c_check_func () 2127{ 2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2130$as_echo_n "checking for $2... " >&6; } 2131if eval \${$3+:} false; then : 2132 $as_echo_n "(cached) " >&6 2133else 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2138#define $2 innocuous_$2 2139 2140/* System header to define __stub macros and hopefully few prototypes, 2141 which can conflict with char $2 (); below. 2142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2143 <limits.h> exists even on freestanding compilers. */ 2144 2145#ifdef __STDC__ 2146# include <limits.h> 2147#else 2148# include <assert.h> 2149#endif 2150 2151#undef $2 2152 2153/* Override any GCC internal prototype to avoid an error. 2154 Use char because int might match the return type of a GCC 2155 builtin and then its argument prototype would still apply. */ 2156#ifdef __cplusplus 2157extern "C" 2158#endif 2159char $2 (); 2160/* The GNU C library defines this for functions which it implements 2161 to always fail with ENOSYS. Some functions are actually named 2162 something starting with __ and the normal name is an alias. */ 2163#if defined __stub_$2 || defined __stub___$2 2164choke me 2165#endif 2166 2167int 2168main () 2169{ 2170return $2 (); 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_link "$LINENO"; then : 2176 eval "$3=yes" 2177else 2178 eval "$3=no" 2179fi 2180rm -f core conftest.err conftest.$ac_objext \ 2181 conftest$ac_exeext conftest.$ac_ext 2182fi 2183eval ac_res=\$$3 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2185$as_echo "$ac_res" >&6; } 2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2187 2188} # ac_fn_c_check_func 2189cat >config.log <<_ACEOF 2190This file contains any messages produced by compilers while 2191running configure, to aid debugging if configure makes a mistake. 2192 2193It was created by hitch $as_me 1.7.0, which was 2194generated by GNU Autoconf 2.69. Invocation command line was 2195 2196 $ $0 $@ 2197 2198_ACEOF 2199exec 5>>config.log 2200{ 2201cat <<_ASUNAME 2202## --------- ## 2203## Platform. ## 2204## --------- ## 2205 2206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2207uname -m = `(uname -m) 2>/dev/null || echo unknown` 2208uname -r = `(uname -r) 2>/dev/null || echo unknown` 2209uname -s = `(uname -s) 2>/dev/null || echo unknown` 2210uname -v = `(uname -v) 2>/dev/null || echo unknown` 2211 2212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2214 2215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2218/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2222 2223_ASUNAME 2224 2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2226for as_dir in $PATH 2227do 2228 IFS=$as_save_IFS 2229 test -z "$as_dir" && as_dir=. 2230 $as_echo "PATH: $as_dir" 2231 done 2232IFS=$as_save_IFS 2233 2234} >&5 2235 2236cat >&5 <<_ACEOF 2237 2238 2239## ----------- ## 2240## Core tests. ## 2241## ----------- ## 2242 2243_ACEOF 2244 2245 2246# Keep a trace of the command line. 2247# Strip out --no-create and --no-recursion so they do not pile up. 2248# Strip out --silent because we don't want to record it for future runs. 2249# Also quote any args containing shell meta-characters. 2250# Make two passes to allow for proper duplicate-argument suppression. 2251ac_configure_args= 2252ac_configure_args0= 2253ac_configure_args1= 2254ac_must_keep_next=false 2255for ac_pass in 1 2 2256do 2257 for ac_arg 2258 do 2259 case $ac_arg in 2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2262 | -silent | --silent | --silen | --sile | --sil) 2263 continue ;; 2264 *\'*) 2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2266 esac 2267 case $ac_pass in 2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2269 2) 2270 as_fn_append ac_configure_args1 " '$ac_arg'" 2271 if test $ac_must_keep_next = true; then 2272 ac_must_keep_next=false # Got value, back to normal. 2273 else 2274 case $ac_arg in 2275 *=* | --config-cache | -C | -disable-* | --disable-* \ 2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2278 | -with-* | --with-* | -without-* | --without-* | --x) 2279 case "$ac_configure_args0 " in 2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2281 esac 2282 ;; 2283 -* ) ac_must_keep_next=true ;; 2284 esac 2285 fi 2286 as_fn_append ac_configure_args " '$ac_arg'" 2287 ;; 2288 esac 2289 done 2290done 2291{ ac_configure_args0=; unset ac_configure_args0;} 2292{ ac_configure_args1=; unset ac_configure_args1;} 2293 2294# When interrupted or exit'd, cleanup temporary files, and complete 2295# config.log. We remove comments because anyway the quotes in there 2296# would cause problems or look ugly. 2297# WARNING: Use '\'' to represent an apostrophe within the trap. 2298# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2299trap 'exit_status=$? 2300 # Save into config.log some information that might help in debugging. 2301 { 2302 echo 2303 2304 $as_echo "## ---------------- ## 2305## Cache variables. ## 2306## ---------------- ##" 2307 echo 2308 # The following way of writing the cache mishandles newlines in values, 2309( 2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2311 eval ac_val=\$$ac_var 2312 case $ac_val in #( 2313 *${as_nl}*) 2314 case $ac_var in #( 2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2316$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2317 esac 2318 case $ac_var in #( 2319 _ | IFS | as_nl) ;; #( 2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2321 *) { eval $ac_var=; unset $ac_var;} ;; 2322 esac ;; 2323 esac 2324 done 2325 (set) 2>&1 | 2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2327 *${as_nl}ac_space=\ *) 2328 sed -n \ 2329 "s/'\''/'\''\\\\'\'''\''/g; 2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2331 ;; #( 2332 *) 2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2334 ;; 2335 esac | 2336 sort 2337) 2338 echo 2339 2340 $as_echo "## ----------------- ## 2341## Output variables. ## 2342## ----------------- ##" 2343 echo 2344 for ac_var in $ac_subst_vars 2345 do 2346 eval ac_val=\$$ac_var 2347 case $ac_val in 2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2349 esac 2350 $as_echo "$ac_var='\''$ac_val'\''" 2351 done | sort 2352 echo 2353 2354 if test -n "$ac_subst_files"; then 2355 $as_echo "## ------------------- ## 2356## File substitutions. ## 2357## ------------------- ##" 2358 echo 2359 for ac_var in $ac_subst_files 2360 do 2361 eval ac_val=\$$ac_var 2362 case $ac_val in 2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2364 esac 2365 $as_echo "$ac_var='\''$ac_val'\''" 2366 done | sort 2367 echo 2368 fi 2369 2370 if test -s confdefs.h; then 2371 $as_echo "## ----------- ## 2372## confdefs.h. ## 2373## ----------- ##" 2374 echo 2375 cat confdefs.h 2376 echo 2377 fi 2378 test "$ac_signal" != 0 && 2379 $as_echo "$as_me: caught signal $ac_signal" 2380 $as_echo "$as_me: exit $exit_status" 2381 } >&5 2382 rm -f core *.core core.conftest.* && 2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2384 exit $exit_status 2385' 0 2386for ac_signal in 1 2 13 15; do 2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2388done 2389ac_signal=0 2390 2391# confdefs.h avoids OS command line length limits that DEFS can exceed. 2392rm -f -r conftest* confdefs.h 2393 2394$as_echo "/* confdefs.h */" > confdefs.h 2395 2396# Predefined preprocessor variables. 2397 2398cat >>confdefs.h <<_ACEOF 2399#define PACKAGE_NAME "$PACKAGE_NAME" 2400_ACEOF 2401 2402cat >>confdefs.h <<_ACEOF 2403#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2404_ACEOF 2405 2406cat >>confdefs.h <<_ACEOF 2407#define PACKAGE_VERSION "$PACKAGE_VERSION" 2408_ACEOF 2409 2410cat >>confdefs.h <<_ACEOF 2411#define PACKAGE_STRING "$PACKAGE_STRING" 2412_ACEOF 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_URL "$PACKAGE_URL" 2420_ACEOF 2421 2422 2423# Let the site file select an alternate cache file if it wants to. 2424# Prefer an explicitly selected file to automatically selected ones. 2425ac_site_file1=NONE 2426ac_site_file2=NONE 2427if test -n "$CONFIG_SITE"; then 2428 # We do not want a PATH search for config.site. 2429 case $CONFIG_SITE in #(( 2430 -*) ac_site_file1=./$CONFIG_SITE;; 2431 */*) ac_site_file1=$CONFIG_SITE;; 2432 *) ac_site_file1=./$CONFIG_SITE;; 2433 esac 2434elif test "x$prefix" != xNONE; then 2435 ac_site_file1=$prefix/share/config.site 2436 ac_site_file2=$prefix/etc/config.site 2437else 2438 ac_site_file1=$ac_default_prefix/share/config.site 2439 ac_site_file2=$ac_default_prefix/etc/config.site 2440fi 2441for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2442do 2443 test "x$ac_site_file" = xNONE && continue 2444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2446$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2447 sed 's/^/| /' "$ac_site_file" >&5 2448 . "$ac_site_file" \ 2449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2451as_fn_error $? "failed to load site script $ac_site_file 2452See \`config.log' for more details" "$LINENO" 5; } 2453 fi 2454done 2455 2456if test -r "$cache_file"; then 2457 # Some versions of bash will fail to source /dev/null (special files 2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2461$as_echo "$as_me: loading cache $cache_file" >&6;} 2462 case $cache_file in 2463 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2464 *) . "./$cache_file";; 2465 esac 2466 fi 2467else 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2469$as_echo "$as_me: creating cache $cache_file" >&6;} 2470 >$cache_file 2471fi 2472 2473as_fn_append ac_header_list " stdlib.h" 2474as_fn_append ac_header_list " unistd.h" 2475as_fn_append ac_header_list " sys/param.h" 2476# Check that the precious variables saved in the cache have kept the same 2477# value. 2478ac_cache_corrupted=false 2479for ac_var in $ac_precious_vars; do 2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2481 eval ac_new_set=\$ac_env_${ac_var}_set 2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2483 eval ac_new_val=\$ac_env_${ac_var}_value 2484 case $ac_old_set,$ac_new_set in 2485 set,) 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2487$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2488 ac_cache_corrupted=: ;; 2489 ,set) 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2491$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,);; 2494 *) 2495 if test "x$ac_old_val" != "x$ac_new_val"; then 2496 # differences in whitespace do not lead to failure. 2497 ac_old_val_w=`echo x $ac_old_val` 2498 ac_new_val_w=`echo x $ac_new_val` 2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2501$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2502 ac_cache_corrupted=: 2503 else 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2505$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2506 eval $ac_var=\$ac_old_val 2507 fi 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2509$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2511$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2512 fi;; 2513 esac 2514 # Pass precious variables to config.status. 2515 if test "$ac_new_set" = set; then 2516 case $ac_new_val in 2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2518 *) ac_arg=$ac_var=$ac_new_val ;; 2519 esac 2520 case " $ac_configure_args " in 2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2523 esac 2524 fi 2525done 2526if $ac_cache_corrupted; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2530$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2532fi 2533## -------------------- ## 2534## Main body of script. ## 2535## -------------------- ## 2536 2537ac_ext=c 2538ac_cpp='$CPP $CPPFLAGS' 2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2541ac_compiler_gnu=$ac_cv_c_compiler_gnu 2542 2543 2544 2545ac_config_headers="$ac_config_headers config.h" 2546 2547ac_aux_dir= 2548for ac_dir in build-aux "$srcdir"/build-aux; do 2549 if test -f "$ac_dir/install-sh"; then 2550 ac_aux_dir=$ac_dir 2551 ac_install_sh="$ac_aux_dir/install-sh -c" 2552 break 2553 elif test -f "$ac_dir/install.sh"; then 2554 ac_aux_dir=$ac_dir 2555 ac_install_sh="$ac_aux_dir/install.sh -c" 2556 break 2557 elif test -f "$ac_dir/shtool"; then 2558 ac_aux_dir=$ac_dir 2559 ac_install_sh="$ac_aux_dir/shtool install -c" 2560 break 2561 fi 2562done 2563if test -z "$ac_aux_dir"; then 2564 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2565fi 2566 2567# These three variables are undocumented and unsupported, 2568# and are intended to be withdrawn in a future Autoconf release. 2569# They can cause serious problems if a builder's source tree is in a directory 2570# whose full name contains unusual characters. 2571ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2572ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2573ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2574 2575 2576 2577 2578# Expand $ac_aux_dir to an absolute path. 2579am_aux_dir=`cd "$ac_aux_dir" && pwd` 2580 2581ac_ext=c 2582ac_cpp='$CPP $CPPFLAGS' 2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2585ac_compiler_gnu=$ac_cv_c_compiler_gnu 2586if test -n "$ac_tool_prefix"; then 2587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2588set dummy ${ac_tool_prefix}gcc; ac_word=$2 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2590$as_echo_n "checking for $ac_word... " >&6; } 2591if ${ac_cv_prog_CC+:} false; then : 2592 $as_echo_n "(cached) " >&6 2593else 2594 if test -n "$CC"; then 2595 ac_cv_prog_CC="$CC" # Let the user override the test. 2596else 2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2598for as_dir in $PATH 2599do 2600 IFS=$as_save_IFS 2601 test -z "$as_dir" && as_dir=. 2602 for ac_exec_ext in '' $ac_executable_extensions; do 2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2604 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2606 break 2 2607 fi 2608done 2609 done 2610IFS=$as_save_IFS 2611 2612fi 2613fi 2614CC=$ac_cv_prog_CC 2615if test -n "$CC"; then 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2617$as_echo "$CC" >&6; } 2618else 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2620$as_echo "no" >&6; } 2621fi 2622 2623 2624fi 2625if test -z "$ac_cv_prog_CC"; then 2626 ac_ct_CC=$CC 2627 # Extract the first word of "gcc", so it can be a program name with args. 2628set dummy gcc; ac_word=$2 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2630$as_echo_n "checking for $ac_word... " >&6; } 2631if ${ac_cv_prog_ac_ct_CC+:} false; then : 2632 $as_echo_n "(cached) " >&6 2633else 2634 if test -n "$ac_ct_CC"; then 2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2636else 2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_exec_ext in '' $ac_executable_extensions; do 2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2644 ac_cv_prog_ac_ct_CC="gcc" 2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2646 break 2 2647 fi 2648done 2649 done 2650IFS=$as_save_IFS 2651 2652fi 2653fi 2654ac_ct_CC=$ac_cv_prog_ac_ct_CC 2655if test -n "$ac_ct_CC"; then 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2657$as_echo "$ac_ct_CC" >&6; } 2658else 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2660$as_echo "no" >&6; } 2661fi 2662 2663 if test "x$ac_ct_CC" = x; then 2664 CC="" 2665 else 2666 case $cross_compiling:$ac_tool_warned in 2667yes:) 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2670ac_tool_warned=yes ;; 2671esac 2672 CC=$ac_ct_CC 2673 fi 2674else 2675 CC="$ac_cv_prog_CC" 2676fi 2677 2678if test -z "$CC"; then 2679 if test -n "$ac_tool_prefix"; then 2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2681set dummy ${ac_tool_prefix}cc; ac_word=$2 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2683$as_echo_n "checking for $ac_word... " >&6; } 2684if ${ac_cv_prog_CC+:} false; then : 2685 $as_echo_n "(cached) " >&6 2686else 2687 if test -n "$CC"; then 2688 ac_cv_prog_CC="$CC" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2697 ac_cv_prog_CC="${ac_tool_prefix}cc" 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702 done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707CC=$ac_cv_prog_CC 2708if test -n "$CC"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2710$as_echo "$CC" >&6; } 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714fi 2715 2716 2717 fi 2718fi 2719if test -z "$CC"; then 2720 # Extract the first word of "cc", so it can be a program name with args. 2721set dummy cc; ac_word=$2 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2723$as_echo_n "checking for $ac_word... " >&6; } 2724if ${ac_cv_prog_CC+:} false; then : 2725 $as_echo_n "(cached) " >&6 2726else 2727 if test -n "$CC"; then 2728 ac_cv_prog_CC="$CC" # Let the user override the test. 2729else 2730 ac_prog_rejected=no 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2739 ac_prog_rejected=yes 2740 continue 2741 fi 2742 ac_cv_prog_CC="cc" 2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2744 break 2 2745 fi 2746done 2747 done 2748IFS=$as_save_IFS 2749 2750if test $ac_prog_rejected = yes; then 2751 # We found a bogon in the path, so make sure we never use it. 2752 set dummy $ac_cv_prog_CC 2753 shift 2754 if test $# != 0; then 2755 # We chose a different compiler from the bogus one. 2756 # However, it has the same basename, so the bogon will be chosen 2757 # first if we set CC to just the basename; use the full file name. 2758 shift 2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2760 fi 2761fi 2762fi 2763fi 2764CC=$ac_cv_prog_CC 2765if test -n "$CC"; then 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2767$as_echo "$CC" >&6; } 2768else 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2770$as_echo "no" >&6; } 2771fi 2772 2773 2774fi 2775if test -z "$CC"; then 2776 if test -n "$ac_tool_prefix"; then 2777 for ac_prog in cl.exe 2778 do 2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2780set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2782$as_echo_n "checking for $ac_word... " >&6; } 2783if ${ac_cv_prog_CC+:} false; then : 2784 $as_echo_n "(cached) " >&6 2785else 2786 if test -n "$CC"; then 2787 ac_cv_prog_CC="$CC" # Let the user override the test. 2788else 2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2790for as_dir in $PATH 2791do 2792 IFS=$as_save_IFS 2793 test -z "$as_dir" && as_dir=. 2794 for ac_exec_ext in '' $ac_executable_extensions; do 2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2798 break 2 2799 fi 2800done 2801 done 2802IFS=$as_save_IFS 2803 2804fi 2805fi 2806CC=$ac_cv_prog_CC 2807if test -n "$CC"; then 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2809$as_echo "$CC" >&6; } 2810else 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2812$as_echo "no" >&6; } 2813fi 2814 2815 2816 test -n "$CC" && break 2817 done 2818fi 2819if test -z "$CC"; then 2820 ac_ct_CC=$CC 2821 for ac_prog in cl.exe 2822do 2823 # Extract the first word of "$ac_prog", so it can be a program name with args. 2824set dummy $ac_prog; ac_word=$2 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2826$as_echo_n "checking for $ac_word... " >&6; } 2827if ${ac_cv_prog_ac_ct_CC+:} false; then : 2828 $as_echo_n "(cached) " >&6 2829else 2830 if test -n "$ac_ct_CC"; then 2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2832else 2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834for as_dir in $PATH 2835do 2836 IFS=$as_save_IFS 2837 test -z "$as_dir" && as_dir=. 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2840 ac_cv_prog_ac_ct_CC="$ac_prog" 2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2842 break 2 2843 fi 2844done 2845 done 2846IFS=$as_save_IFS 2847 2848fi 2849fi 2850ac_ct_CC=$ac_cv_prog_ac_ct_CC 2851if test -n "$ac_ct_CC"; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2853$as_echo "$ac_ct_CC" >&6; } 2854else 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856$as_echo "no" >&6; } 2857fi 2858 2859 2860 test -n "$ac_ct_CC" && break 2861done 2862 2863 if test "x$ac_ct_CC" = x; then 2864 CC="" 2865 else 2866 case $cross_compiling:$ac_tool_warned in 2867yes:) 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2870ac_tool_warned=yes ;; 2871esac 2872 CC=$ac_ct_CC 2873 fi 2874fi 2875 2876fi 2877 2878 2879test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2881as_fn_error $? "no acceptable C compiler found in \$PATH 2882See \`config.log' for more details" "$LINENO" 5; } 2883 2884# Provide some information about the compiler. 2885$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2886set X $ac_compile 2887ac_compiler=$2 2888for ac_option in --version -v -V -qversion; do 2889 { { ac_try="$ac_compiler $ac_option >&5" 2890case "(($ac_try" in 2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2892 *) ac_try_echo=$ac_try;; 2893esac 2894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2895$as_echo "$ac_try_echo"; } >&5 2896 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2897 ac_status=$? 2898 if test -s conftest.err; then 2899 sed '10a\ 2900... rest of stderr output deleted ... 2901 10q' conftest.err >conftest.er1 2902 cat conftest.er1 >&5 2903 fi 2904 rm -f conftest.er1 conftest.err 2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2906 test $ac_status = 0; } 2907done 2908 2909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2910/* end confdefs.h. */ 2911 2912int 2913main () 2914{ 2915 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920ac_clean_files_save=$ac_clean_files 2921ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2922# Try to create an executable without -o first, disregard a.out. 2923# It will help us diagnose broken compilers, and finding out an intuition 2924# of exeext. 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2926$as_echo_n "checking whether the C compiler works... " >&6; } 2927ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2928 2929# The possible output files: 2930ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2931 2932ac_rmfiles= 2933for ac_file in $ac_files 2934do 2935 case $ac_file in 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2937 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2938 esac 2939done 2940rm -f $ac_rmfiles 2941 2942if { { ac_try="$ac_link_default" 2943case "(($ac_try" in 2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2945 *) ac_try_echo=$ac_try;; 2946esac 2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2948$as_echo "$ac_try_echo"; } >&5 2949 (eval "$ac_link_default") 2>&5 2950 ac_status=$? 2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2952 test $ac_status = 0; }; then : 2953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2954# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2955# in a Makefile. We should not override ac_cv_exeext if it was cached, 2956# so that the user can short-circuit this test for compilers unknown to 2957# Autoconf. 2958for ac_file in $ac_files '' 2959do 2960 test -f "$ac_file" || continue 2961 case $ac_file in 2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2963 ;; 2964 [ab].out ) 2965 # We found the default executable, but exeext='' is most 2966 # certainly right. 2967 break;; 2968 *.* ) 2969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2970 then :; else 2971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2972 fi 2973 # We set ac_cv_exeext here because the later test for it is not 2974 # safe: cross compilers may not add the suffix if given an `-o' 2975 # argument, so we may need to know it at that point already. 2976 # Even if this section looks crufty: it has the advantage of 2977 # actually working. 2978 break;; 2979 * ) 2980 break;; 2981 esac 2982done 2983test "$ac_cv_exeext" = no && ac_cv_exeext= 2984 2985else 2986 ac_file='' 2987fi 2988if test -z "$ac_file"; then : 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2990$as_echo "no" >&6; } 2991$as_echo "$as_me: failed program was:" >&5 2992sed 's/^/| /' conftest.$ac_ext >&5 2993 2994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2996as_fn_error 77 "C compiler cannot create executables 2997See \`config.log' for more details" "$LINENO" 5; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3000$as_echo "yes" >&6; } 3001fi 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3003$as_echo_n "checking for C compiler default output file name... " >&6; } 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3005$as_echo "$ac_file" >&6; } 3006ac_exeext=$ac_cv_exeext 3007 3008rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3009ac_clean_files=$ac_clean_files_save 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3011$as_echo_n "checking for suffix of executables... " >&6; } 3012if { { ac_try="$ac_link" 3013case "(($ac_try" in 3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3015 *) ac_try_echo=$ac_try;; 3016esac 3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3018$as_echo "$ac_try_echo"; } >&5 3019 (eval "$ac_link") 2>&5 3020 ac_status=$? 3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3022 test $ac_status = 0; }; then : 3023 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3024# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3025# work properly (i.e., refer to `conftest.exe'), while it won't with 3026# `rm'. 3027for ac_file in conftest.exe conftest conftest.*; do 3028 test -f "$ac_file" || continue 3029 case $ac_file in 3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3032 break;; 3033 * ) break;; 3034 esac 3035done 3036else 3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3039as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3040See \`config.log' for more details" "$LINENO" 5; } 3041fi 3042rm -f conftest conftest$ac_cv_exeext 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3044$as_echo "$ac_cv_exeext" >&6; } 3045 3046rm -f conftest.$ac_ext 3047EXEEXT=$ac_cv_exeext 3048ac_exeext=$EXEEXT 3049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3050/* end confdefs.h. */ 3051#include <stdio.h> 3052int 3053main () 3054{ 3055FILE *f = fopen ("conftest.out", "w"); 3056 return ferror (f) || fclose (f) != 0; 3057 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062ac_clean_files="$ac_clean_files conftest.out" 3063# Check that the compiler produces executables we can run. If not, either 3064# the compiler is broken, or we cross compile. 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3066$as_echo_n "checking whether we are cross compiling... " >&6; } 3067if test "$cross_compiling" != yes; then 3068 { { ac_try="$ac_link" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3074$as_echo "$ac_try_echo"; } >&5 3075 (eval "$ac_link") 2>&5 3076 ac_status=$? 3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 test $ac_status = 0; } 3079 if { ac_try='./conftest$ac_cv_exeext' 3080 { { case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3085$as_echo "$ac_try_echo"; } >&5 3086 (eval "$ac_try") 2>&5 3087 ac_status=$? 3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3089 test $ac_status = 0; }; }; then 3090 cross_compiling=no 3091 else 3092 if test "$cross_compiling" = maybe; then 3093 cross_compiling=yes 3094 else 3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3097as_fn_error $? "cannot run C compiled programs. 3098If you meant to cross compile, use \`--host'. 3099See \`config.log' for more details" "$LINENO" 5; } 3100 fi 3101 fi 3102fi 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3104$as_echo "$cross_compiling" >&6; } 3105 3106rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3107ac_clean_files=$ac_clean_files_save 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3109$as_echo_n "checking for suffix of object files... " >&6; } 3110if ${ac_cv_objext+:} false; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114/* end confdefs.h. */ 3115 3116int 3117main () 3118{ 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124rm -f conftest.o conftest.obj 3125if { { ac_try="$ac_compile" 3126case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3131$as_echo "$ac_try_echo"; } >&5 3132 (eval "$ac_compile") 2>&5 3133 ac_status=$? 3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3135 test $ac_status = 0; }; then : 3136 for ac_file in conftest.o conftest.obj conftest.*; do 3137 test -f "$ac_file" || continue; 3138 case $ac_file in 3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3141 break;; 3142 esac 3143done 3144else 3145 $as_echo "$as_me: failed program was:" >&5 3146sed 's/^/| /' conftest.$ac_ext >&5 3147 3148{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3150as_fn_error $? "cannot compute suffix of object files: cannot compile 3151See \`config.log' for more details" "$LINENO" 5; } 3152fi 3153rm -f conftest.$ac_cv_objext conftest.$ac_ext 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3156$as_echo "$ac_cv_objext" >&6; } 3157OBJEXT=$ac_cv_objext 3158ac_objext=$OBJEXT 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3160$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3161if ${ac_cv_c_compiler_gnu+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165/* end confdefs.h. */ 3166 3167int 3168main () 3169{ 3170#ifndef __GNUC__ 3171 choke me 3172#endif 3173 3174 ; 3175 return 0; 3176} 3177_ACEOF 3178if ac_fn_c_try_compile "$LINENO"; then : 3179 ac_compiler_gnu=yes 3180else 3181 ac_compiler_gnu=no 3182fi 3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3184ac_cv_c_compiler_gnu=$ac_compiler_gnu 3185 3186fi 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3188$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3189if test $ac_compiler_gnu = yes; then 3190 GCC=yes 3191else 3192 GCC= 3193fi 3194ac_test_CFLAGS=${CFLAGS+set} 3195ac_save_CFLAGS=$CFLAGS 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3197$as_echo_n "checking whether $CC accepts -g... " >&6; } 3198if ${ac_cv_prog_cc_g+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 ac_save_c_werror_flag=$ac_c_werror_flag 3202 ac_c_werror_flag=yes 3203 ac_cv_prog_cc_g=no 3204 CFLAGS="-g" 3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3206/* end confdefs.h. */ 3207 3208int 3209main () 3210{ 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216if ac_fn_c_try_compile "$LINENO"; then : 3217 ac_cv_prog_cc_g=yes 3218else 3219 CFLAGS="" 3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222 3223int 3224main () 3225{ 3226 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231if ac_fn_c_try_compile "$LINENO"; then : 3232 3233else 3234 ac_c_werror_flag=$ac_save_c_werror_flag 3235 CFLAGS="-g" 3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3237/* end confdefs.h. */ 3238 3239int 3240main () 3241{ 3242 3243 ; 3244 return 0; 3245} 3246_ACEOF 3247if ac_fn_c_try_compile "$LINENO"; then : 3248 ac_cv_prog_cc_g=yes 3249fi 3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3251fi 3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3253fi 3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3255 ac_c_werror_flag=$ac_save_c_werror_flag 3256fi 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3258$as_echo "$ac_cv_prog_cc_g" >&6; } 3259if test "$ac_test_CFLAGS" = set; then 3260 CFLAGS=$ac_save_CFLAGS 3261elif test $ac_cv_prog_cc_g = yes; then 3262 if test "$GCC" = yes; then 3263 CFLAGS="-g -O2" 3264 else 3265 CFLAGS="-g" 3266 fi 3267else 3268 if test "$GCC" = yes; then 3269 CFLAGS="-O2" 3270 else 3271 CFLAGS= 3272 fi 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3275$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3276if ${ac_cv_prog_cc_c89+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278else 3279 ac_cv_prog_cc_c89=no 3280ac_save_CC=$CC 3281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3282/* end confdefs.h. */ 3283#include <stdarg.h> 3284#include <stdio.h> 3285struct stat; 3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3287struct buf { int x; }; 3288FILE * (*rcsopen) (struct buf *, struct stat *, int); 3289static char *e (p, i) 3290 char **p; 3291 int i; 3292{ 3293 return p[i]; 3294} 3295static char *f (char * (*g) (char **, int), char **p, ...) 3296{ 3297 char *s; 3298 va_list v; 3299 va_start (v,p); 3300 s = g (p, va_arg (v,int)); 3301 va_end (v); 3302 return s; 3303} 3304 3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3306 function prototypes and stuff, but not '\xHH' hex character constants. 3307 These don't provoke an error unfortunately, instead are silently treated 3308 as 'x'. The following induces an error, until -std is added to get 3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3310 array size at least. It's necessary to write '\x00'==0 to get something 3311 that's true only with -std. */ 3312int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3313 3314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3315 inside strings and character constants. */ 3316#define FOO(x) 'x' 3317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3318 3319int test (int i, double x); 3320struct s1 {int (*f) (int a);}; 3321struct s2 {int (*f) (double a);}; 3322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3323int argc; 3324char **argv; 3325int 3326main () 3327{ 3328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3335do 3336 CC="$ac_save_CC $ac_arg" 3337 if ac_fn_c_try_compile "$LINENO"; then : 3338 ac_cv_prog_cc_c89=$ac_arg 3339fi 3340rm -f core conftest.err conftest.$ac_objext 3341 test "x$ac_cv_prog_cc_c89" != "xno" && break 3342done 3343rm -f conftest.$ac_ext 3344CC=$ac_save_CC 3345 3346fi 3347# AC_CACHE_VAL 3348case "x$ac_cv_prog_cc_c89" in 3349 x) 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3351$as_echo "none needed" >&6; } ;; 3352 xno) 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3354$as_echo "unsupported" >&6; } ;; 3355 *) 3356 CC="$CC $ac_cv_prog_cc_c89" 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3358$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3359esac 3360if test "x$ac_cv_prog_cc_c89" != xno; then : 3361 3362fi 3363 3364ac_ext=c 3365ac_cpp='$CPP $CPPFLAGS' 3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3368ac_compiler_gnu=$ac_cv_c_compiler_gnu 3369 3370ac_ext=c 3371ac_cpp='$CPP $CPPFLAGS' 3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3374ac_compiler_gnu=$ac_cv_c_compiler_gnu 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3376$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3377if ${am_cv_prog_cc_c_o+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main () 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391 # Make sure it works both with $CC and with simple cc. 3392 # Following AC_PROG_CC_C_O, we do the test twice because some 3393 # compilers refuse to overwrite an existing .o file with -o, 3394 # though they will create one. 3395 am_cv_prog_cc_c_o=yes 3396 for am_i in 1 2; do 3397 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3398 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3399 ac_status=$? 3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3401 (exit $ac_status); } \ 3402 && test -f conftest2.$ac_objext; then 3403 : OK 3404 else 3405 am_cv_prog_cc_c_o=no 3406 break 3407 fi 3408 done 3409 rm -f core conftest* 3410 unset am_i 3411fi 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3413$as_echo "$am_cv_prog_cc_c_o" >&6; } 3414if test "$am_cv_prog_cc_c_o" != yes; then 3415 # Losing compiler, so override with the script. 3416 # FIXME: It is wrong to rewrite CC. 3417 # But if we don't then we get into trouble of one sort or another. 3418 # A longer-term fix would be to have automake use am__CC in this case, 3419 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3420 CC="$am_aux_dir/compile $CC" 3421fi 3422ac_ext=c 3423ac_cpp='$CPP $CPPFLAGS' 3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3426ac_compiler_gnu=$ac_cv_c_compiler_gnu 3427 3428 3429 3430ac_ext=c 3431ac_cpp='$CPP $CPPFLAGS' 3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3434ac_compiler_gnu=$ac_cv_c_compiler_gnu 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3436$as_echo_n "checking how to run the C preprocessor... " >&6; } 3437# On Suns, sometimes $CPP names a directory. 3438if test -n "$CPP" && test -d "$CPP"; then 3439 CPP= 3440fi 3441if test -z "$CPP"; then 3442 if ${ac_cv_prog_CPP+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 # Double quotes because CPP needs to be expanded 3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3447 do 3448 ac_preproc_ok=false 3449for ac_c_preproc_warn_flag in '' yes 3450do 3451 # Use a header file that comes with gcc, so configuring glibc 3452 # with a fresh cross-compiler works. 3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3454 # <limits.h> exists even on freestanding compilers. 3455 # On the NeXT, cc -E runs the code through the compiler's parser, 3456 # not just through cpp. "Syntax error" is here to catch this case. 3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459#ifdef __STDC__ 3460# include <limits.h> 3461#else 3462# include <assert.h> 3463#endif 3464 Syntax error 3465_ACEOF 3466if ac_fn_c_try_cpp "$LINENO"; then : 3467 3468else 3469 # Broken: fails on valid input. 3470continue 3471fi 3472rm -f conftest.err conftest.i conftest.$ac_ext 3473 3474 # OK, works on sane cases. Now check whether nonexistent headers 3475 # can be detected and how. 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478#include <ac_nonexistent.h> 3479_ACEOF 3480if ac_fn_c_try_cpp "$LINENO"; then : 3481 # Broken: success on invalid input. 3482continue 3483else 3484 # Passes both tests. 3485ac_preproc_ok=: 3486break 3487fi 3488rm -f conftest.err conftest.i conftest.$ac_ext 3489 3490done 3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3492rm -f conftest.i conftest.err conftest.$ac_ext 3493if $ac_preproc_ok; then : 3494 break 3495fi 3496 3497 done 3498 ac_cv_prog_CPP=$CPP 3499 3500fi 3501 CPP=$ac_cv_prog_CPP 3502else 3503 ac_cv_prog_CPP=$CPP 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3506$as_echo "$CPP" >&6; } 3507ac_preproc_ok=false 3508for ac_c_preproc_warn_flag in '' yes 3509do 3510 # Use a header file that comes with gcc, so configuring glibc 3511 # with a fresh cross-compiler works. 3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3513 # <limits.h> exists even on freestanding compilers. 3514 # On the NeXT, cc -E runs the code through the compiler's parser, 3515 # not just through cpp. "Syntax error" is here to catch this case. 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518#ifdef __STDC__ 3519# include <limits.h> 3520#else 3521# include <assert.h> 3522#endif 3523 Syntax error 3524_ACEOF 3525if ac_fn_c_try_cpp "$LINENO"; then : 3526 3527else 3528 # Broken: fails on valid input. 3529continue 3530fi 3531rm -f conftest.err conftest.i conftest.$ac_ext 3532 3533 # OK, works on sane cases. Now check whether nonexistent headers 3534 # can be detected and how. 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537#include <ac_nonexistent.h> 3538_ACEOF 3539if ac_fn_c_try_cpp "$LINENO"; then : 3540 # Broken: success on invalid input. 3541continue 3542else 3543 # Passes both tests. 3544ac_preproc_ok=: 3545break 3546fi 3547rm -f conftest.err conftest.i conftest.$ac_ext 3548 3549done 3550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3551rm -f conftest.i conftest.err conftest.$ac_ext 3552if $ac_preproc_ok; then : 3553 3554else 3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3557as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3558See \`config.log' for more details" "$LINENO" 5; } 3559fi 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 3567 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3569$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3570if ${ac_cv_path_GREP+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 if test -z "$GREP"; then 3574 ac_path_GREP_found=false 3575 # Loop through the user's path and test for each of PROGNAME-LIST 3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3578do 3579 IFS=$as_save_IFS 3580 test -z "$as_dir" && as_dir=. 3581 for ac_prog in grep ggrep; do 3582 for ac_exec_ext in '' $ac_executable_extensions; do 3583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3584 as_fn_executable_p "$ac_path_GREP" || continue 3585# Check for GNU ac_path_GREP and select it if it is found. 3586 # Check for GNU $ac_path_GREP 3587case `"$ac_path_GREP" --version 2>&1` in 3588*GNU*) 3589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3590*) 3591 ac_count=0 3592 $as_echo_n 0123456789 >"conftest.in" 3593 while : 3594 do 3595 cat "conftest.in" "conftest.in" >"conftest.tmp" 3596 mv "conftest.tmp" "conftest.in" 3597 cp "conftest.in" "conftest.nl" 3598 $as_echo 'GREP' >> "conftest.nl" 3599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3601 as_fn_arith $ac_count + 1 && ac_count=$as_val 3602 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3603 # Best one so far, save it but keep looking for a better one 3604 ac_cv_path_GREP="$ac_path_GREP" 3605 ac_path_GREP_max=$ac_count 3606 fi 3607 # 10*(2^10) chars as input seems more than enough 3608 test $ac_count -gt 10 && break 3609 done 3610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3611esac 3612 3613 $ac_path_GREP_found && break 3 3614 done 3615 done 3616 done 3617IFS=$as_save_IFS 3618 if test -z "$ac_cv_path_GREP"; then 3619 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3620 fi 3621else 3622 ac_cv_path_GREP=$GREP 3623fi 3624 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3627$as_echo "$ac_cv_path_GREP" >&6; } 3628 GREP="$ac_cv_path_GREP" 3629 3630 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3632$as_echo_n "checking for egrep... " >&6; } 3633if ${ac_cv_path_EGREP+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3637 then ac_cv_path_EGREP="$GREP -E" 3638 else 3639 if test -z "$EGREP"; then 3640 ac_path_EGREP_found=false 3641 # Loop through the user's path and test for each of PROGNAME-LIST 3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3643for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3644do 3645 IFS=$as_save_IFS 3646 test -z "$as_dir" && as_dir=. 3647 for ac_prog in egrep; do 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3650 as_fn_executable_p "$ac_path_EGREP" || continue 3651# Check for GNU ac_path_EGREP and select it if it is found. 3652 # Check for GNU $ac_path_EGREP 3653case `"$ac_path_EGREP" --version 2>&1` in 3654*GNU*) 3655 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3656*) 3657 ac_count=0 3658 $as_echo_n 0123456789 >"conftest.in" 3659 while : 3660 do 3661 cat "conftest.in" "conftest.in" >"conftest.tmp" 3662 mv "conftest.tmp" "conftest.in" 3663 cp "conftest.in" "conftest.nl" 3664 $as_echo 'EGREP' >> "conftest.nl" 3665 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3667 as_fn_arith $ac_count + 1 && ac_count=$as_val 3668 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3669 # Best one so far, save it but keep looking for a better one 3670 ac_cv_path_EGREP="$ac_path_EGREP" 3671 ac_path_EGREP_max=$ac_count 3672 fi 3673 # 10*(2^10) chars as input seems more than enough 3674 test $ac_count -gt 10 && break 3675 done 3676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3677esac 3678 3679 $ac_path_EGREP_found && break 3 3680 done 3681 done 3682 done 3683IFS=$as_save_IFS 3684 if test -z "$ac_cv_path_EGREP"; then 3685 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3686 fi 3687else 3688 ac_cv_path_EGREP=$EGREP 3689fi 3690 3691 fi 3692fi 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3694$as_echo "$ac_cv_path_EGREP" >&6; } 3695 EGREP="$ac_cv_path_EGREP" 3696 3697 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3699$as_echo_n "checking for ANSI C header files... " >&6; } 3700if ${ac_cv_header_stdc+:} false; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705#include <stdlib.h> 3706#include <stdarg.h> 3707#include <string.h> 3708#include <float.h> 3709 3710int 3711main () 3712{ 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718if ac_fn_c_try_compile "$LINENO"; then : 3719 ac_cv_header_stdc=yes 3720else 3721 ac_cv_header_stdc=no 3722fi 3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3724 3725if test $ac_cv_header_stdc = yes; then 3726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729#include <string.h> 3730 3731_ACEOF 3732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3733 $EGREP "memchr" >/dev/null 2>&1; then : 3734 3735else 3736 ac_cv_header_stdc=no 3737fi 3738rm -f conftest* 3739 3740fi 3741 3742if test $ac_cv_header_stdc = yes; then 3743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746#include <stdlib.h> 3747 3748_ACEOF 3749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3750 $EGREP "free" >/dev/null 2>&1; then : 3751 3752else 3753 ac_cv_header_stdc=no 3754fi 3755rm -f conftest* 3756 3757fi 3758 3759if test $ac_cv_header_stdc = yes; then 3760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3761 if test "$cross_compiling" = yes; then : 3762 : 3763else 3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766#include <ctype.h> 3767#include <stdlib.h> 3768#if ((' ' & 0x0FF) == 0x020) 3769# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3770# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3771#else 3772# define ISLOWER(c) \ 3773 (('a' <= (c) && (c) <= 'i') \ 3774 || ('j' <= (c) && (c) <= 'r') \ 3775 || ('s' <= (c) && (c) <= 'z')) 3776# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3777#endif 3778 3779#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3780int 3781main () 3782{ 3783 int i; 3784 for (i = 0; i < 256; i++) 3785 if (XOR (islower (i), ISLOWER (i)) 3786 || toupper (i) != TOUPPER (i)) 3787 return 2; 3788 return 0; 3789} 3790_ACEOF 3791if ac_fn_c_try_run "$LINENO"; then : 3792 3793else 3794 ac_cv_header_stdc=no 3795fi 3796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3797 conftest.$ac_objext conftest.beam conftest.$ac_ext 3798fi 3799 3800fi 3801fi 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3803$as_echo "$ac_cv_header_stdc" >&6; } 3804if test $ac_cv_header_stdc = yes; then 3805 3806$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3807 3808fi 3809 3810# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3811for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3812 inttypes.h stdint.h unistd.h 3813do : 3814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3815ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3816" 3817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3818 cat >>confdefs.h <<_ACEOF 3819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3820_ACEOF 3821 3822fi 3823 3824done 3825 3826 3827 3828 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3829if test "x$ac_cv_header_minix_config_h" = xyes; then : 3830 MINIX=yes 3831else 3832 MINIX= 3833fi 3834 3835 3836 if test "$MINIX" = yes; then 3837 3838$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3839 3840 3841$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3842 3843 3844$as_echo "#define _MINIX 1" >>confdefs.h 3845 3846 fi 3847 3848 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3850$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3851if ${ac_cv_safe_to_define___extensions__+:} false; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856 3857# define __EXTENSIONS__ 1 3858 $ac_includes_default 3859int 3860main () 3861{ 3862 3863 ; 3864 return 0; 3865} 3866_ACEOF 3867if ac_fn_c_try_compile "$LINENO"; then : 3868 ac_cv_safe_to_define___extensions__=yes 3869else 3870 ac_cv_safe_to_define___extensions__=no 3871fi 3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3875$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3876 test $ac_cv_safe_to_define___extensions__ = yes && 3877 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3878 3879 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3880 3881 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3882 3883 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3884 3885 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3886 3887 3888 3889am__api_version='1.16' 3890 3891# Find a good install program. We prefer a C program (faster), 3892# so one script is as good as another. But avoid the broken or 3893# incompatible versions: 3894# SysV /etc/install, /usr/sbin/install 3895# SunOS /usr/etc/install 3896# IRIX /sbin/install 3897# AIX /bin/install 3898# AmigaOS /C/install, which installs bootblocks on floppy discs 3899# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3900# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3901# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3902# OS/2's system install, which has a completely different semantic 3903# ./install, which can be erroneously created by make from ./install.sh. 3904# Reject install programs that cannot install multiple files. 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3906$as_echo_n "checking for a BSD-compatible install... " >&6; } 3907if test -z "$INSTALL"; then 3908if ${ac_cv_path_install+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH 3913do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 # Account for people who put trailing slashes in PATH elements. 3917case $as_dir/ in #(( 3918 ./ | .// | /[cC]/* | \ 3919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3920 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3921 /usr/ucb/* ) ;; 3922 *) 3923 # OSF1 and SCO ODT 3.0 have their own names for install. 3924 # Don't use installbsd from OSF since it installs stuff as root 3925 # by default. 3926 for ac_prog in ginstall scoinst install; do 3927 for ac_exec_ext in '' $ac_executable_extensions; do 3928 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3929 if test $ac_prog = install && 3930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3931 # AIX install. It has an incompatible calling convention. 3932 : 3933 elif test $ac_prog = install && 3934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3935 # program-specific install script used by HP pwplus--don't use. 3936 : 3937 else 3938 rm -rf conftest.one conftest.two conftest.dir 3939 echo one > conftest.one 3940 echo two > conftest.two 3941 mkdir conftest.dir 3942 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3943 test -s conftest.one && test -s conftest.two && 3944 test -s conftest.dir/conftest.one && 3945 test -s conftest.dir/conftest.two 3946 then 3947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3948 break 3 3949 fi 3950 fi 3951 fi 3952 done 3953 done 3954 ;; 3955esac 3956 3957 done 3958IFS=$as_save_IFS 3959 3960rm -rf conftest.one conftest.two conftest.dir 3961 3962fi 3963 if test "${ac_cv_path_install+set}" = set; then 3964 INSTALL=$ac_cv_path_install 3965 else 3966 # As a last resort, use the slow shell script. Don't cache a 3967 # value for INSTALL within a source directory, because that will 3968 # break other packages using the cache if that directory is 3969 # removed, or if the value is a relative name. 3970 INSTALL=$ac_install_sh 3971 fi 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3974$as_echo "$INSTALL" >&6; } 3975 3976# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3977# It thinks the first close brace ends the variable substitution. 3978test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3979 3980test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3981 3982test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3983 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3985$as_echo_n "checking whether build environment is sane... " >&6; } 3986# Reject unsafe characters in $srcdir or the absolute working directory 3987# name. Accept space and tab only in the latter. 3988am_lf=' 3989' 3990case `pwd` in 3991 *[\\\"\#\$\&\'\`$am_lf]*) 3992 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3993esac 3994case $srcdir in 3995 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3996 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3997esac 3998 3999# Do 'set' in a subshell so we don't clobber the current shell's 4000# arguments. Must try -L first in case configure is actually a 4001# symlink; some systems play weird games with the mod time of symlinks 4002# (eg FreeBSD returns the mod time of the symlink's containing 4003# directory). 4004if ( 4005 am_has_slept=no 4006 for am_try in 1 2; do 4007 echo "timestamp, slept: $am_has_slept" > conftest.file 4008 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4009 if test "$*" = "X"; then 4010 # -L didn't work. 4011 set X `ls -t "$srcdir/configure" conftest.file` 4012 fi 4013 if test "$*" != "X $srcdir/configure conftest.file" \ 4014 && test "$*" != "X conftest.file $srcdir/configure"; then 4015 4016 # If neither matched, then we have a broken ls. This can happen 4017 # if, for instance, CONFIG_SHELL is bash and it inherits a 4018 # broken ls alias from the environment. This has actually 4019 # happened. Such a system could not be considered "sane". 4020 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4021 alias in your environment" "$LINENO" 5 4022 fi 4023 if test "$2" = conftest.file || test $am_try -eq 2; then 4024 break 4025 fi 4026 # Just in case. 4027 sleep 1 4028 am_has_slept=yes 4029 done 4030 test "$2" = conftest.file 4031 ) 4032then 4033 # Ok. 4034 : 4035else 4036 as_fn_error $? "newly created file is older than distributed files! 4037Check your system clock" "$LINENO" 5 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4040$as_echo "yes" >&6; } 4041# If we didn't sleep, we still need to ensure time stamps of config.status and 4042# generated files are strictly newer. 4043am_sleep_pid= 4044if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4045 ( sleep 1 ) & 4046 am_sleep_pid=$! 4047fi 4048 4049rm -f conftest.file 4050 4051test "$program_prefix" != NONE && 4052 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4053# Use a double $ so make ignores it. 4054test "$program_suffix" != NONE && 4055 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4056# Double any \ or $. 4057# By default was `s,x,x', remove it if useless. 4058ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4059program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4060 4061if test x"${MISSING+set}" != xset; then 4062 case $am_aux_dir in 4063 *\ * | *\ *) 4064 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4065 *) 4066 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4067 esac 4068fi 4069# Use eval to expand $SHELL 4070if eval "$MISSING --is-lightweight"; then 4071 am_missing_run="$MISSING " 4072else 4073 am_missing_run= 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4075$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4076fi 4077 4078if test x"${install_sh+set}" != xset; then 4079 case $am_aux_dir in 4080 *\ * | *\ *) 4081 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4082 *) 4083 install_sh="\${SHELL} $am_aux_dir/install-sh" 4084 esac 4085fi 4086 4087# Installed binaries are usually stripped using 'strip' when the user 4088# run "make install-strip". However 'strip' might not be the right 4089# tool to use in cross-compilation environments, therefore Automake 4090# will honor the 'STRIP' environment variable to overrule this program. 4091if test "$cross_compiling" != no; then 4092 if test -n "$ac_tool_prefix"; then 4093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4094set dummy ${ac_tool_prefix}strip; ac_word=$2 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4096$as_echo_n "checking for $ac_word... " >&6; } 4097if ${ac_cv_prog_STRIP+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 if test -n "$STRIP"; then 4101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4102else 4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104for as_dir in $PATH 4105do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4110 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 break 2 4113 fi 4114done 4115 done 4116IFS=$as_save_IFS 4117 4118fi 4119fi 4120STRIP=$ac_cv_prog_STRIP 4121if test -n "$STRIP"; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4123$as_echo "$STRIP" >&6; } 4124else 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126$as_echo "no" >&6; } 4127fi 4128 4129 4130fi 4131if test -z "$ac_cv_prog_STRIP"; then 4132 ac_ct_STRIP=$STRIP 4133 # Extract the first word of "strip", so it can be a program name with args. 4134set dummy strip; ac_word=$2 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4136$as_echo_n "checking for $ac_word... " >&6; } 4137if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 if test -n "$ac_ct_STRIP"; then 4141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4142else 4143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4144for as_dir in $PATH 4145do 4146 IFS=$as_save_IFS 4147 test -z "$as_dir" && as_dir=. 4148 for ac_exec_ext in '' $ac_executable_extensions; do 4149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4150 ac_cv_prog_ac_ct_STRIP="strip" 4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4152 break 2 4153 fi 4154done 4155 done 4156IFS=$as_save_IFS 4157 4158fi 4159fi 4160ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4161if test -n "$ac_ct_STRIP"; then 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4163$as_echo "$ac_ct_STRIP" >&6; } 4164else 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4166$as_echo "no" >&6; } 4167fi 4168 4169 if test "x$ac_ct_STRIP" = x; then 4170 STRIP=":" 4171 else 4172 case $cross_compiling:$ac_tool_warned in 4173yes:) 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4176ac_tool_warned=yes ;; 4177esac 4178 STRIP=$ac_ct_STRIP 4179 fi 4180else 4181 STRIP="$ac_cv_prog_STRIP" 4182fi 4183 4184fi 4185INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4188$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4189if test -z "$MKDIR_P"; then 4190 if ${ac_cv_path_mkdir+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4195do 4196 IFS=$as_save_IFS 4197 test -z "$as_dir" && as_dir=. 4198 for ac_prog in mkdir gmkdir; do 4199 for ac_exec_ext in '' $ac_executable_extensions; do 4200 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4201 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4202 'mkdir (GNU coreutils) '* | \ 4203 'mkdir (coreutils) '* | \ 4204 'mkdir (fileutils) '4.1*) 4205 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4206 break 3;; 4207 esac 4208 done 4209 done 4210 done 4211IFS=$as_save_IFS 4212 4213fi 4214 4215 test -d ./--version && rmdir ./--version 4216 if test "${ac_cv_path_mkdir+set}" = set; then 4217 MKDIR_P="$ac_cv_path_mkdir -p" 4218 else 4219 # As a last resort, use the slow shell script. Don't cache a 4220 # value for MKDIR_P within a source directory, because that will 4221 # break other packages using the cache if that directory is 4222 # removed, or if the value is a relative name. 4223 MKDIR_P="$ac_install_sh -d" 4224 fi 4225fi 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4227$as_echo "$MKDIR_P" >&6; } 4228 4229for ac_prog in gawk mawk nawk awk 4230do 4231 # Extract the first word of "$ac_prog", so it can be a program name with args. 4232set dummy $ac_prog; ac_word=$2 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234$as_echo_n "checking for $ac_word... " >&6; } 4235if ${ac_cv_prog_AWK+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 if test -n "$AWK"; then 4239 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4240else 4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4248 ac_cv_prog_AWK="$ac_prog" 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4250 break 2 4251 fi 4252done 4253 done 4254IFS=$as_save_IFS 4255 4256fi 4257fi 4258AWK=$ac_cv_prog_AWK 4259if test -n "$AWK"; then 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4261$as_echo "$AWK" >&6; } 4262else 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4264$as_echo "no" >&6; } 4265fi 4266 4267 4268 test -n "$AWK" && break 4269done 4270 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4272$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4273set x ${MAKE-make} 4274ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4275if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 cat >conftest.make <<\_ACEOF 4279SHELL = /bin/sh 4280all: 4281 @echo '@@@%%%=$(MAKE)=@@@%%%' 4282_ACEOF 4283# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4284case `${MAKE-make} -f conftest.make 2>/dev/null` in 4285 *@@@%%%=?*=@@@%%%*) 4286 eval ac_cv_prog_make_${ac_make}_set=yes;; 4287 *) 4288 eval ac_cv_prog_make_${ac_make}_set=no;; 4289esac 4290rm -f conftest.make 4291fi 4292if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4294$as_echo "yes" >&6; } 4295 SET_MAKE= 4296else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298$as_echo "no" >&6; } 4299 SET_MAKE="MAKE=${MAKE-make}" 4300fi 4301 4302rm -rf .tst 2>/dev/null 4303mkdir .tst 2>/dev/null 4304if test -d .tst; then 4305 am__leading_dot=. 4306else 4307 am__leading_dot=_ 4308fi 4309rmdir .tst 2>/dev/null 4310 4311DEPDIR="${am__leading_dot}deps" 4312 4313ac_config_commands="$ac_config_commands depfiles" 4314 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4316$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4317cat > confinc.mk << 'END' 4318am__doit: 4319 @echo this is the am__doit target >confinc.out 4320.PHONY: am__doit 4321END 4322am__include="#" 4323am__quote= 4324# BSD make does it like this. 4325echo '.include "confinc.mk" # ignored' > confmf.BSD 4326# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4327echo 'include confinc.mk # ignored' > confmf.GNU 4328_am_result=no 4329for s in GNU BSD; do 4330 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4331 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4332 ac_status=$? 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4334 (exit $ac_status); } 4335 case $?:`cat confinc.out 2>/dev/null` in #( 4336 '0:this is the am__doit target') : 4337 case $s in #( 4338 BSD) : 4339 am__include='.include' am__quote='"' ;; #( 4340 *) : 4341 am__include='include' am__quote='' ;; 4342esac ;; #( 4343 *) : 4344 ;; 4345esac 4346 if test "$am__include" != "#"; then 4347 _am_result="yes ($s style)" 4348 break 4349 fi 4350done 4351rm -f confinc.* confmf.* 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4353$as_echo "${_am_result}" >&6; } 4354 4355# Check whether --enable-dependency-tracking was given. 4356if test "${enable_dependency_tracking+set}" = set; then : 4357 enableval=$enable_dependency_tracking; 4358fi 4359 4360if test "x$enable_dependency_tracking" != xno; then 4361 am_depcomp="$ac_aux_dir/depcomp" 4362 AMDEPBACKSLASH='\' 4363 am__nodep='_no' 4364fi 4365 if test "x$enable_dependency_tracking" != xno; then 4366 AMDEP_TRUE= 4367 AMDEP_FALSE='#' 4368else 4369 AMDEP_TRUE='#' 4370 AMDEP_FALSE= 4371fi 4372 4373 4374# Check whether --enable-silent-rules was given. 4375if test "${enable_silent_rules+set}" = set; then : 4376 enableval=$enable_silent_rules; 4377fi 4378 4379case $enable_silent_rules in # ((( 4380 yes) AM_DEFAULT_VERBOSITY=0;; 4381 no) AM_DEFAULT_VERBOSITY=1;; 4382 *) AM_DEFAULT_VERBOSITY=1;; 4383esac 4384am_make=${MAKE-make} 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4386$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4387if ${am_cv_make_support_nested_variables+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 if $as_echo 'TRUE=$(BAR$(V)) 4391BAR0=false 4392BAR1=true 4393V=1 4394am__doit: 4395 @$(TRUE) 4396.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4397 am_cv_make_support_nested_variables=yes 4398else 4399 am_cv_make_support_nested_variables=no 4400fi 4401fi 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4403$as_echo "$am_cv_make_support_nested_variables" >&6; } 4404if test $am_cv_make_support_nested_variables = yes; then 4405 AM_V='$(V)' 4406 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4407else 4408 AM_V=$AM_DEFAULT_VERBOSITY 4409 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4410fi 4411AM_BACKSLASH='\' 4412 4413if test "`cd $srcdir && pwd`" != "`pwd`"; then 4414 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4415 # is not polluted with repeated "-I." 4416 am__isrc=' -I$(srcdir)' 4417 # test to see if srcdir already configured 4418 if test -f $srcdir/config.status; then 4419 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4420 fi 4421fi 4422 4423# test whether we have cygpath 4424if test -z "$CYGPATH_W"; then 4425 if (cygpath --version) >/dev/null 2>/dev/null; then 4426 CYGPATH_W='cygpath -w' 4427 else 4428 CYGPATH_W=echo 4429 fi 4430fi 4431 4432 4433# Define the identity of the package. 4434 PACKAGE='hitch' 4435 VERSION='1.7.0' 4436 4437 4438cat >>confdefs.h <<_ACEOF 4439#define PACKAGE "$PACKAGE" 4440_ACEOF 4441 4442 4443cat >>confdefs.h <<_ACEOF 4444#define VERSION "$VERSION" 4445_ACEOF 4446 4447# Some tools Automake needs. 4448 4449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4450 4451 4452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4453 4454 4455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4456 4457 4458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4459 4460 4461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4462 4463# For better backward compatibility. To be removed once Automake 1.9.x 4464# dies out for good. For more background, see: 4465# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4466# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4467mkdir_p='$(MKDIR_P)' 4468 4469# We need awk for the "check" target (and possibly the TAP driver). The 4470# system "awk" is bad on some platforms. 4471# Always define AMTAR for backward compatibility. Yes, it's still used 4472# in the wild :-( We should find a proper way to deprecate it ... 4473AMTAR='$${TAR-tar}' 4474 4475 4476# We'll loop over all known methods to create a tar archive until one works. 4477_am_tools='gnutar pax cpio none' 4478 4479am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4480 4481 4482 4483 4484 4485depcc="$CC" am_compiler_list= 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4488$as_echo_n "checking dependency style of $depcc... " >&6; } 4489if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4493 # We make a subdir and do the tests there. Otherwise we can end up 4494 # making bogus files that we don't know about and never remove. For 4495 # instance it was reported that on HP-UX the gcc test will end up 4496 # making a dummy file named 'D' -- because '-MD' means "put the output 4497 # in D". 4498 rm -rf conftest.dir 4499 mkdir conftest.dir 4500 # Copy depcomp to subdir because otherwise we won't find it if we're 4501 # using a relative directory. 4502 cp "$am_depcomp" conftest.dir 4503 cd conftest.dir 4504 # We will build objects and dependencies in a subdirectory because 4505 # it helps to detect inapplicable dependency modes. For instance 4506 # both Tru64's cc and ICC support -MD to output dependencies as a 4507 # side effect of compilation, but ICC will put the dependencies in 4508 # the current directory while Tru64 will put them in the object 4509 # directory. 4510 mkdir sub 4511 4512 am_cv_CC_dependencies_compiler_type=none 4513 if test "$am_compiler_list" = ""; then 4514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4515 fi 4516 am__universal=false 4517 case " $depcc " in #( 4518 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4519 esac 4520 4521 for depmode in $am_compiler_list; do 4522 # Setup a source with many dependencies, because some compilers 4523 # like to wrap large dependency lists on column 80 (with \), and 4524 # we should not choose a depcomp mode which is confused by this. 4525 # 4526 # We need to recreate these files for each test, as the compiler may 4527 # overwrite some of them when testing with obscure command lines. 4528 # This happens at least with the AIX C compiler. 4529 : > sub/conftest.c 4530 for i in 1 2 3 4 5 6; do 4531 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4532 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4533 # Solaris 10 /bin/sh. 4534 echo '/* dummy */' > sub/conftst$i.h 4535 done 4536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4537 4538 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4539 # mode. It turns out that the SunPro C++ compiler does not properly 4540 # handle '-M -o', and we need to detect this. Also, some Intel 4541 # versions had trouble with output in subdirs. 4542 am__obj=sub/conftest.${OBJEXT-o} 4543 am__minus_obj="-o $am__obj" 4544 case $depmode in 4545 gcc) 4546 # This depmode causes a compiler race in universal mode. 4547 test "$am__universal" = false || continue 4548 ;; 4549 nosideeffect) 4550 # After this tag, mechanisms are not by side-effect, so they'll 4551 # only be used when explicitly requested. 4552 if test "x$enable_dependency_tracking" = xyes; then 4553 continue 4554 else 4555 break 4556 fi 4557 ;; 4558 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4559 # This compiler won't grok '-c -o', but also, the minuso test has 4560 # not run yet. These depmodes are late enough in the game, and 4561 # so weak that their functioning should not be impacted. 4562 am__obj=conftest.${OBJEXT-o} 4563 am__minus_obj= 4564 ;; 4565 none) break ;; 4566 esac 4567 if depmode=$depmode \ 4568 source=sub/conftest.c object=$am__obj \ 4569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4570 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4571 >/dev/null 2>conftest.err && 4572 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4574 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4576 # icc doesn't choke on unknown options, it will just issue warnings 4577 # or remarks (even with -Werror). So we grep stderr for any message 4578 # that says an option was ignored or not supported. 4579 # When given -MP, icc 7.0 and 7.1 complain thusly: 4580 # icc: Command line warning: ignoring option '-M'; no argument required 4581 # The diagnosis changed in icc 8.0: 4582 # icc: Command line remark: option '-MP' not supported 4583 if (grep 'ignoring option' conftest.err || 4584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4585 am_cv_CC_dependencies_compiler_type=$depmode 4586 break 4587 fi 4588 fi 4589 done 4590 4591 cd .. 4592 rm -rf conftest.dir 4593else 4594 am_cv_CC_dependencies_compiler_type=none 4595fi 4596 4597fi 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4599$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4600CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4601 4602 if 4603 test "x$enable_dependency_tracking" != xno \ 4604 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4605 am__fastdepCC_TRUE= 4606 am__fastdepCC_FALSE='#' 4607else 4608 am__fastdepCC_TRUE='#' 4609 am__fastdepCC_FALSE= 4610fi 4611 4612 4613 4614# POSIX will say in a future version that running "rm -f" with no argument 4615# is OK; and we want to be able to make that assumption in our Makefile 4616# recipes. So use an aggressive probe to check that the usage we want is 4617# actually supported "in the wild" to an acceptable degree. 4618# See automake bug#10828. 4619# To make any issue more visible, cause the running configure to be aborted 4620# by default if the 'rm' program in use doesn't match our expectations; the 4621# user can still override this though. 4622if rm -f && rm -fr && rm -rf; then : OK; else 4623 cat >&2 <<'END' 4624Oops! 4625 4626Your 'rm' program seems unable to run without file operands specified 4627on the command line, even when the '-f' option is present. This is contrary 4628to the behaviour of most rm programs out there, and not conforming with 4629the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4630 4631Please tell bug-automake@gnu.org about your system, including the value 4632of your $PATH and any error possibly output before this message. This 4633can help us improve future automake versions. 4634 4635END 4636 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4637 echo 'Configuration will proceed anyway, since you have set the' >&2 4638 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4639 echo >&2 4640 else 4641 cat >&2 <<'END' 4642Aborting the configuration process, to ensure you take notice of the issue. 4643 4644You can download and install GNU coreutils to get an 'rm' implementation 4645that behaves properly: <https://www.gnu.org/software/coreutils/>. 4646 4647If you want to complete the configuration process using your problematic 4648'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4649to "yes", and re-run configure. 4650 4651END 4652 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4653 fi 4654fi 4655 4656if test -n "$ac_tool_prefix"; then 4657 for ac_prog in ar lib "link -lib" 4658 do 4659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4660set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4662$as_echo_n "checking for $ac_word... " >&6; } 4663if ${ac_cv_prog_AR+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 if test -n "$AR"; then 4667 ac_cv_prog_AR="$AR" # Let the user override the test. 4668else 4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4670for as_dir in $PATH 4671do 4672 IFS=$as_save_IFS 4673 test -z "$as_dir" && as_dir=. 4674 for ac_exec_ext in '' $ac_executable_extensions; do 4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4676 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4678 break 2 4679 fi 4680done 4681 done 4682IFS=$as_save_IFS 4683 4684fi 4685fi 4686AR=$ac_cv_prog_AR 4687if test -n "$AR"; then 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4689$as_echo "$AR" >&6; } 4690else 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4692$as_echo "no" >&6; } 4693fi 4694 4695 4696 test -n "$AR" && break 4697 done 4698fi 4699if test -z "$AR"; then 4700 ac_ct_AR=$AR 4701 for ac_prog in ar lib "link -lib" 4702do 4703 # Extract the first word of "$ac_prog", so it can be a program name with args. 4704set dummy $ac_prog; ac_word=$2 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4706$as_echo_n "checking for $ac_word... " >&6; } 4707if ${ac_cv_prog_ac_ct_AR+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 if test -n "$ac_ct_AR"; then 4711 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4712else 4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4714for as_dir in $PATH 4715do 4716 IFS=$as_save_IFS 4717 test -z "$as_dir" && as_dir=. 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4720 ac_cv_prog_ac_ct_AR="$ac_prog" 4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4722 break 2 4723 fi 4724done 4725 done 4726IFS=$as_save_IFS 4727 4728fi 4729fi 4730ac_ct_AR=$ac_cv_prog_ac_ct_AR 4731if test -n "$ac_ct_AR"; then 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4733$as_echo "$ac_ct_AR" >&6; } 4734else 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4736$as_echo "no" >&6; } 4737fi 4738 4739 4740 test -n "$ac_ct_AR" && break 4741done 4742 4743 if test "x$ac_ct_AR" = x; then 4744 AR="false" 4745 else 4746 case $cross_compiling:$ac_tool_warned in 4747yes:) 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4750ac_tool_warned=yes ;; 4751esac 4752 AR=$ac_ct_AR 4753 fi 4754fi 4755 4756: ${AR=ar} 4757 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4759$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4760if ${am_cv_ar_interface+:} false; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 ac_ext=c 4764ac_cpp='$CPP $CPPFLAGS' 4765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4767ac_compiler_gnu=$ac_cv_c_compiler_gnu 4768 4769 am_cv_ar_interface=ar 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4771/* end confdefs.h. */ 4772int some_variable = 0; 4773_ACEOF 4774if ac_fn_c_try_compile "$LINENO"; then : 4775 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4777 (eval $am_ar_try) 2>&5 4778 ac_status=$? 4779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4780 test $ac_status = 0; } 4781 if test "$ac_status" -eq 0; then 4782 am_cv_ar_interface=ar 4783 else 4784 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4786 (eval $am_ar_try) 2>&5 4787 ac_status=$? 4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4789 test $ac_status = 0; } 4790 if test "$ac_status" -eq 0; then 4791 am_cv_ar_interface=lib 4792 else 4793 am_cv_ar_interface=unknown 4794 fi 4795 fi 4796 rm -f conftest.lib libconftest.a 4797 4798fi 4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4800 ac_ext=c 4801ac_cpp='$CPP $CPPFLAGS' 4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4804ac_compiler_gnu=$ac_cv_c_compiler_gnu 4805 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4808$as_echo "$am_cv_ar_interface" >&6; } 4809 4810case $am_cv_ar_interface in 4811ar) 4812 ;; 4813lib) 4814 # Microsoft lib, so override with the ar-lib wrapper script. 4815 # FIXME: It is wrong to rewrite AR. 4816 # But if we don't then we get into trouble of one sort or another. 4817 # A longer-term fix would be to have automake use am__AR in this case, 4818 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4819 # similar. 4820 AR="$am_aux_dir/ar-lib $AR" 4821 ;; 4822unknown) 4823 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4824 ;; 4825esac 4826 4827 4828# Checks for programs. 4829 4830if test -n "$ac_tool_prefix"; then 4831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4832set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4834$as_echo_n "checking for $ac_word... " >&6; } 4835if ${ac_cv_prog_RANLIB+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 if test -n "$RANLIB"; then 4839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4840else 4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4842for as_dir in $PATH 4843do 4844 IFS=$as_save_IFS 4845 test -z "$as_dir" && as_dir=. 4846 for ac_exec_ext in '' $ac_executable_extensions; do 4847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4850 break 2 4851 fi 4852done 4853 done 4854IFS=$as_save_IFS 4855 4856fi 4857fi 4858RANLIB=$ac_cv_prog_RANLIB 4859if test -n "$RANLIB"; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4861$as_echo "$RANLIB" >&6; } 4862else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864$as_echo "no" >&6; } 4865fi 4866 4867 4868fi 4869if test -z "$ac_cv_prog_RANLIB"; then 4870 ac_ct_RANLIB=$RANLIB 4871 # Extract the first word of "ranlib", so it can be a program name with args. 4872set dummy ranlib; ac_word=$2 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4874$as_echo_n "checking for $ac_word... " >&6; } 4875if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 if test -n "$ac_ct_RANLIB"; then 4879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4880else 4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882for as_dir in $PATH 4883do 4884 IFS=$as_save_IFS 4885 test -z "$as_dir" && as_dir=. 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4888 ac_cv_prog_ac_ct_RANLIB="ranlib" 4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4890 break 2 4891 fi 4892done 4893 done 4894IFS=$as_save_IFS 4895 4896fi 4897fi 4898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4899if test -n "$ac_ct_RANLIB"; then 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4901$as_echo "$ac_ct_RANLIB" >&6; } 4902else 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904$as_echo "no" >&6; } 4905fi 4906 4907 if test "x$ac_ct_RANLIB" = x; then 4908 RANLIB=":" 4909 else 4910 case $cross_compiling:$ac_tool_warned in 4911yes:) 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4914ac_tool_warned=yes ;; 4915esac 4916 RANLIB=$ac_ct_RANLIB 4917 fi 4918else 4919 RANLIB="$ac_cv_prog_RANLIB" 4920fi 4921 4922 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4924$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4925set x ${MAKE-make} 4926ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4927if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 cat >conftest.make <<\_ACEOF 4931SHELL = /bin/sh 4932all: 4933 @echo '@@@%%%=$(MAKE)=@@@%%%' 4934_ACEOF 4935# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4936case `${MAKE-make} -f conftest.make 2>/dev/null` in 4937 *@@@%%%=?*=@@@%%%*) 4938 eval ac_cv_prog_make_${ac_make}_set=yes;; 4939 *) 4940 eval ac_cv_prog_make_${ac_make}_set=no;; 4941esac 4942rm -f conftest.make 4943fi 4944if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4946$as_echo "yes" >&6; } 4947 SET_MAKE= 4948else 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950$as_echo "no" >&6; } 4951 SET_MAKE="MAKE=${MAKE-make}" 4952fi 4953 4954 4955 4956# Check whether --with-lex was given. 4957if test "${with_lex+set}" = set; then : 4958 withval=$with_lex; 4959else 4960 with_lex=no 4961fi 4962 4963 4964# Check whether --with-yacc was given. 4965if test "${with_yacc+set}" = set; then : 4966 withval=$with_yacc; 4967else 4968 with_yacc=no 4969fi 4970 4971# Check whether --enable-documentation was given. 4972if test "${enable_documentation+set}" = set; then : 4973 enableval=$enable_documentation; 4974else 4975 enable_documentation=no 4976fi 4977 4978# Check whether --enable-warnings was given. 4979if test "${enable_warnings+set}" = set; then : 4980 enableval=$enable_warnings; 4981else 4982 enable_warnings=no 4983fi 4984 4985 4986if test "$with_lex" = yes 4987then 4988 for ac_prog in flex lex 4989do 4990 # Extract the first word of "$ac_prog", so it can be a program name with args. 4991set dummy $ac_prog; ac_word=$2 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4993$as_echo_n "checking for $ac_word... " >&6; } 4994if ${ac_cv_prog_LEX+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -n "$LEX"; then 4998 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4999else 5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 test -z "$as_dir" && as_dir=. 5005 for ac_exec_ext in '' $ac_executable_extensions; do 5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5007 ac_cv_prog_LEX="$ac_prog" 5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5009 break 2 5010 fi 5011done 5012 done 5013IFS=$as_save_IFS 5014 5015fi 5016fi 5017LEX=$ac_cv_prog_LEX 5018if test -n "$LEX"; then 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5020$as_echo "$LEX" >&6; } 5021else 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5023$as_echo "no" >&6; } 5024fi 5025 5026 5027 test -n "$LEX" && break 5028done 5029test -n "$LEX" || LEX=":" 5030 5031if test "x$LEX" != "x:"; then 5032 cat >conftest.l <<_ACEOF 5033%% 5034a { ECHO; } 5035b { REJECT; } 5036c { yymore (); } 5037d { yyless (1); } 5038e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 5039 yyless ((input () != 0)); } 5040f { unput (yytext[0]); } 5041. { BEGIN INITIAL; } 5042%% 5043#ifdef YYTEXT_POINTER 5044extern char *yytext; 5045#endif 5046int 5047main (void) 5048{ 5049 return ! yylex () + ! yywrap (); 5050} 5051_ACEOF 5052{ { ac_try="$LEX conftest.l" 5053case "(($ac_try" in 5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5055 *) ac_try_echo=$ac_try;; 5056esac 5057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5058$as_echo "$ac_try_echo"; } >&5 5059 (eval "$LEX conftest.l") 2>&5 5060 ac_status=$? 5061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5062 test $ac_status = 0; } 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5064$as_echo_n "checking lex output file root... " >&6; } 5065if ${ac_cv_prog_lex_root+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067else 5068 5069if test -f lex.yy.c; then 5070 ac_cv_prog_lex_root=lex.yy 5071elif test -f lexyy.c; then 5072 ac_cv_prog_lex_root=lexyy 5073else 5074 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 5075fi 5076fi 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5078$as_echo "$ac_cv_prog_lex_root" >&6; } 5079LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5080 5081if test -z "${LEXLIB+set}"; then 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 5083$as_echo_n "checking lex library... " >&6; } 5084if ${ac_cv_lib_lex+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 5088 ac_save_LIBS=$LIBS 5089 ac_cv_lib_lex='none needed' 5090 for ac_lib in '' -lfl -ll; do 5091 LIBS="$ac_lib $ac_save_LIBS" 5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5093/* end confdefs.h. */ 5094`cat $LEX_OUTPUT_ROOT.c` 5095_ACEOF 5096if ac_fn_c_try_link "$LINENO"; then : 5097 ac_cv_lib_lex=$ac_lib 5098fi 5099rm -f core conftest.err conftest.$ac_objext \ 5100 conftest$ac_exeext conftest.$ac_ext 5101 test "$ac_cv_lib_lex" != 'none needed' && break 5102 done 5103 LIBS=$ac_save_LIBS 5104 5105fi 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5107$as_echo "$ac_cv_lib_lex" >&6; } 5108 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 5109fi 5110 5111 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5113$as_echo_n "checking whether yytext is a pointer... " >&6; } 5114if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 # POSIX says lex can declare yytext either as a pointer or an array; the 5118# default is implementation-dependent. Figure out which it is, since 5119# not all implementations provide the %pointer and %array declarations. 5120ac_cv_prog_lex_yytext_pointer=no 5121ac_save_LIBS=$LIBS 5122LIBS="$LEXLIB $ac_save_LIBS" 5123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5124/* end confdefs.h. */ 5125 5126 #define YYTEXT_POINTER 1 5127`cat $LEX_OUTPUT_ROOT.c` 5128_ACEOF 5129if ac_fn_c_try_link "$LINENO"; then : 5130 ac_cv_prog_lex_yytext_pointer=yes 5131fi 5132rm -f core conftest.err conftest.$ac_objext \ 5133 conftest$ac_exeext conftest.$ac_ext 5134LIBS=$ac_save_LIBS 5135 5136fi 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5138$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5139if test $ac_cv_prog_lex_yytext_pointer = yes; then 5140 5141$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5142 5143fi 5144rm -f conftest.l $LEX_OUTPUT_ROOT.c 5145 5146fi 5147 if test "$LEX" = : 5148 then 5149 as_fn_error $? "flex or lex not found" "$LINENO" 5 5150 5151 fi 5152fi 5153 5154if test "$with_yacc" = yes 5155then 5156 for ac_prog in 'bison -y' byacc 5157do 5158 # Extract the first word of "$ac_prog", so it can be a program name with args. 5159set dummy $ac_prog; ac_word=$2 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5161$as_echo_n "checking for $ac_word... " >&6; } 5162if ${ac_cv_prog_YACC+:} false; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 if test -n "$YACC"; then 5166 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5175 ac_cv_prog_YACC="$ac_prog" 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180 done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185YACC=$ac_cv_prog_YACC 5186if test -n "$YACC"; then 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5188$as_echo "$YACC" >&6; } 5189else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5191$as_echo "no" >&6; } 5192fi 5193 5194 5195 test -n "$YACC" && break 5196done 5197test -n "$YACC" || YACC="yacc" 5198 5199 if test -z "$YACC" || ! $YACC -V >/dev/null 2>&1 5200 then 5201 as_fn_error $? "bison, byacc or yacc not found" "$LINENO" 5 5202 fi 5203fi 5204 5205 if test "$enable_documentation" = yes; then 5206 ENABLE_DOCUMENTATION_TRUE= 5207 ENABLE_DOCUMENTATION_FALSE='#' 5208else 5209 ENABLE_DOCUMENTATION_TRUE='#' 5210 ENABLE_DOCUMENTATION_FALSE= 5211fi 5212 5213 if test "$enable_warnings" = yes; then 5214 ENABLE_WARNINGS_TRUE= 5215 ENABLE_WARNINGS_FALSE='#' 5216else 5217 ENABLE_WARNINGS_TRUE='#' 5218 ENABLE_WARNINGS_FALSE= 5219fi 5220 5221 5222if test -z "$ENABLE_DOCUMENTATION_TRUE"; then : 5223 5224 for ac_prog in rst2man rst2man.py 5225do 5226 # Extract the first word of "$ac_prog", so it can be a program name with args. 5227set dummy $ac_prog; ac_word=$2 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5229$as_echo_n "checking for $ac_word... " >&6; } 5230if ${ac_cv_prog_RST2MAN+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 if test -n "$RST2MAN"; then 5234 ac_cv_prog_RST2MAN="$RST2MAN" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_RST2MAN="$ac_prog" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248 done 5249IFS=$as_save_IFS 5250 5251fi 5252fi 5253RST2MAN=$ac_cv_prog_RST2MAN 5254if test -n "$RST2MAN"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5 5256$as_echo "$RST2MAN" >&6; } 5257else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259$as_echo "no" >&6; } 5260fi 5261 5262 5263 test -n "$RST2MAN" && break 5264done 5265test -n "$RST2MAN" || RST2MAN="no" 5266 5267 if test "$RST2MAN" = no 5268 then 5269 as_fn_error $? "rst2man is needed to build the documentation" "$LINENO" 5 5270 fi 5271 5272fi 5273 5274for ac_prog in lsof sockstat fstat 5275do 5276 # Extract the first word of "$ac_prog", so it can be a program name with args. 5277set dummy $ac_prog; ac_word=$2 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5279$as_echo_n "checking for $ac_word... " >&6; } 5280if ${ac_cv_prog_SOCKSTAT+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 if test -n "$SOCKSTAT"; then 5284 ac_cv_prog_SOCKSTAT="$SOCKSTAT" # Let the user override the test. 5285else 5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5287for as_dir in $PATH 5288do 5289 IFS=$as_save_IFS 5290 test -z "$as_dir" && as_dir=. 5291 for ac_exec_ext in '' $ac_executable_extensions; do 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5293 ac_cv_prog_SOCKSTAT="$ac_prog" 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5295 break 2 5296 fi 5297done 5298 done 5299IFS=$as_save_IFS 5300 5301fi 5302fi 5303SOCKSTAT=$ac_cv_prog_SOCKSTAT 5304if test -n "$SOCKSTAT"; then 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOCKSTAT" >&5 5306$as_echo "$SOCKSTAT" >&6; } 5307else 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5309$as_echo "no" >&6; } 5310fi 5311 5312 5313 test -n "$SOCKSTAT" && break 5314done 5315test -n "$SOCKSTAT" || SOCKSTAT="no" 5316 5317if test "x$SOCKSTAT" = xno; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No tool found for socket inspection, tests will fail." >&5 5319$as_echo "$as_me: WARNING: No tool found for socket inspection, tests will fail." >&2;} 5320fi 5321 5322 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 5324$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5325 # Check whether --enable-maintainer-mode was given. 5326if test "${enable_maintainer_mode+set}" = set; then : 5327 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5328else 5329 USE_MAINTAINER_MODE=no 5330fi 5331 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 5333$as_echo "$USE_MAINTAINER_MODE" >&6; } 5334 if test $USE_MAINTAINER_MODE = yes; then 5335 MAINTAINER_MODE_TRUE= 5336 MAINTAINER_MODE_FALSE='#' 5337else 5338 MAINTAINER_MODE_TRUE='#' 5339 MAINTAINER_MODE_FALSE= 5340fi 5341 5342 MAINT=$MAINTAINER_MODE_TRUE 5343 5344 5345 5346# Checks for libraries. 5347 5348 5349 5350 5351 5352 5353 5354if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5355 if test -n "$ac_tool_prefix"; then 5356 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5357set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5359$as_echo_n "checking for $ac_word... " >&6; } 5360if ${ac_cv_path_PKG_CONFIG+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 case $PKG_CONFIG in 5364 [\\/]* | ?:[\\/]*) 5365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5366 ;; 5367 *) 5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5369for as_dir in $PATH 5370do 5371 IFS=$as_save_IFS 5372 test -z "$as_dir" && as_dir=. 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5377 break 2 5378 fi 5379done 5380 done 5381IFS=$as_save_IFS 5382 5383 ;; 5384esac 5385fi 5386PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5387if test -n "$PKG_CONFIG"; then 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5389$as_echo "$PKG_CONFIG" >&6; } 5390else 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5392$as_echo "no" >&6; } 5393fi 5394 5395 5396fi 5397if test -z "$ac_cv_path_PKG_CONFIG"; then 5398 ac_pt_PKG_CONFIG=$PKG_CONFIG 5399 # Extract the first word of "pkg-config", so it can be a program name with args. 5400set dummy pkg-config; ac_word=$2 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5402$as_echo_n "checking for $ac_word... " >&6; } 5403if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 case $ac_pt_PKG_CONFIG in 5407 [\\/]* | ?:[\\/]*) 5408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5409 ;; 5410 *) 5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH 5413do 5414 IFS=$as_save_IFS 5415 test -z "$as_dir" && as_dir=. 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5418 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5420 break 2 5421 fi 5422done 5423 done 5424IFS=$as_save_IFS 5425 5426 ;; 5427esac 5428fi 5429ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5430if test -n "$ac_pt_PKG_CONFIG"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5432$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5433else 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436fi 5437 5438 if test "x$ac_pt_PKG_CONFIG" = x; then 5439 PKG_CONFIG="" 5440 else 5441 case $cross_compiling:$ac_tool_warned in 5442yes:) 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5445ac_tool_warned=yes ;; 5446esac 5447 PKG_CONFIG=$ac_pt_PKG_CONFIG 5448 fi 5449else 5450 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5451fi 5452 5453fi 5454if test -n "$PKG_CONFIG"; then 5455 _pkg_min_version=0.9.0 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5457$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5458 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5460$as_echo "yes" >&6; } 5461 else 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5463$as_echo "no" >&6; } 5464 PKG_CONFIG="" 5465 fi 5466fi 5467if test -n "$PKG_CONFIG" && \ 5468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5 5469 ($PKG_CONFIG --exists --print-errors "libev") 2>&5 5470 ac_status=$? 5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5472 test $ac_status = 0; }; then 5473 5474 5475pkg_failed=no 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EV" >&5 5477$as_echo_n "checking for EV... " >&6; } 5478 5479if test -n "$EV_CFLAGS"; then 5480 pkg_cv_EV_CFLAGS="$EV_CFLAGS" 5481 elif test -n "$PKG_CONFIG"; then 5482 if test -n "$PKG_CONFIG" && \ 5483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5 5484 ($PKG_CONFIG --exists --print-errors "libev") 2>&5 5485 ac_status=$? 5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5487 test $ac_status = 0; }; then 5488 pkg_cv_EV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null` 5489 test "x$?" != "x0" && pkg_failed=yes 5490else 5491 pkg_failed=yes 5492fi 5493 else 5494 pkg_failed=untried 5495fi 5496if test -n "$EV_LIBS"; then 5497 pkg_cv_EV_LIBS="$EV_LIBS" 5498 elif test -n "$PKG_CONFIG"; then 5499 if test -n "$PKG_CONFIG" && \ 5500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5 5501 ($PKG_CONFIG --exists --print-errors "libev") 2>&5 5502 ac_status=$? 5503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5504 test $ac_status = 0; }; then 5505 pkg_cv_EV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null` 5506 test "x$?" != "x0" && pkg_failed=yes 5507else 5508 pkg_failed=yes 5509fi 5510 else 5511 pkg_failed=untried 5512fi 5513 5514 5515 5516if test $pkg_failed = yes; then 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5518$as_echo "no" >&6; } 5519 5520if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5521 _pkg_short_errors_supported=yes 5522else 5523 _pkg_short_errors_supported=no 5524fi 5525 if test $_pkg_short_errors_supported = yes; then 5526 EV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1` 5527 else 5528 EV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1` 5529 fi 5530 # Put the nasty error message in config.log where it belongs 5531 echo "$EV_PKG_ERRORS" >&5 5532 5533 as_fn_error $? "Package requirements (libev) were not met: 5534 5535$EV_PKG_ERRORS 5536 5537Consider adjusting the PKG_CONFIG_PATH environment variable if you 5538installed software in a non-standard prefix. 5539 5540Alternatively, you may set the environment variables EV_CFLAGS 5541and EV_LIBS to avoid the need to call pkg-config. 5542See the pkg-config man page for more details." "$LINENO" 5 5543elif test $pkg_failed = untried; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5545$as_echo "no" >&6; } 5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5548as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5549is in your PATH or set the PKG_CONFIG environment variable to the full 5550path to pkg-config. 5551 5552Alternatively, you may set the environment variables EV_CFLAGS 5553and EV_LIBS to avoid the need to call pkg-config. 5554See the pkg-config man page for more details. 5555 5556To get pkg-config, see <http://pkg-config.freedesktop.org/>. 5557See \`config.log' for more details" "$LINENO" 5; } 5558else 5559 EV_CFLAGS=$pkg_cv_EV_CFLAGS 5560 EV_LIBS=$pkg_cv_EV_LIBS 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5562$as_echo "yes" >&6; } 5563 5564fi 5565else 5566 5567 5568 hitch_save_LIBS=$LIBS 5569 LIBS="" 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ev_default_loop" >&5 5571$as_echo_n "checking for library containing ev_default_loop... " >&6; } 5572if ${ac_cv_search_ev_default_loop+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 ac_func_search_save_LIBS=$LIBS 5576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578 5579/* Override any GCC internal prototype to avoid an error. 5580 Use char because int might match the return type of a GCC 5581 builtin and then its argument prototype would still apply. */ 5582#ifdef __cplusplus 5583extern "C" 5584#endif 5585char ev_default_loop (); 5586int 5587main () 5588{ 5589return ev_default_loop (); 5590 ; 5591 return 0; 5592} 5593_ACEOF 5594for ac_lib in '' ev; do 5595 if test -z "$ac_lib"; then 5596 ac_res="none required" 5597 else 5598 ac_res=-l$ac_lib 5599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5600 fi 5601 if ac_fn_c_try_link "$LINENO"; then : 5602 ac_cv_search_ev_default_loop=$ac_res 5603fi 5604rm -f core conftest.err conftest.$ac_objext \ 5605 conftest$ac_exeext 5606 if ${ac_cv_search_ev_default_loop+:} false; then : 5607 break 5608fi 5609done 5610if ${ac_cv_search_ev_default_loop+:} false; then : 5611 5612else 5613 ac_cv_search_ev_default_loop=no 5614fi 5615rm conftest.$ac_ext 5616LIBS=$ac_func_search_save_LIBS 5617fi 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ev_default_loop" >&5 5619$as_echo "$ac_cv_search_ev_default_loop" >&6; } 5620ac_res=$ac_cv_search_ev_default_loop 5621if test "$ac_res" != no; then : 5622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5623 5624else 5625 as_fn_error $? "Cannot find libev." "$LINENO" 5 5626fi 5627 5628 EV_LIBS=$LIBS 5629 5630 LIBS=$hitch_save_LIBS 5631 5632 5633fi 5634 5635 5636pkg_failed=no 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 5638$as_echo_n "checking for SSL... " >&6; } 5639 5640if test -n "$SSL_CFLAGS"; then 5641 pkg_cv_SSL_CFLAGS="$SSL_CFLAGS" 5642 elif test -n "$PKG_CONFIG"; then 5643 if test -n "$PKG_CONFIG" && \ 5644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5 5645 ($PKG_CONFIG --exists --print-errors "libssl") 2>&5 5646 ac_status=$? 5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5648 test $ac_status = 0; }; then 5649 pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null` 5650 test "x$?" != "x0" && pkg_failed=yes 5651else 5652 pkg_failed=yes 5653fi 5654 else 5655 pkg_failed=untried 5656fi 5657if test -n "$SSL_LIBS"; then 5658 pkg_cv_SSL_LIBS="$SSL_LIBS" 5659 elif test -n "$PKG_CONFIG"; then 5660 if test -n "$PKG_CONFIG" && \ 5661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5 5662 ($PKG_CONFIG --exists --print-errors "libssl") 2>&5 5663 ac_status=$? 5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5665 test $ac_status = 0; }; then 5666 pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null` 5667 test "x$?" != "x0" && pkg_failed=yes 5668else 5669 pkg_failed=yes 5670fi 5671 else 5672 pkg_failed=untried 5673fi 5674 5675 5676 5677if test $pkg_failed = yes; then 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5679$as_echo "no" >&6; } 5680 5681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5682 _pkg_short_errors_supported=yes 5683else 5684 _pkg_short_errors_supported=no 5685fi 5686 if test $_pkg_short_errors_supported = yes; then 5687 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl" 2>&1` 5688 else 5689 SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl" 2>&1` 5690 fi 5691 # Put the nasty error message in config.log where it belongs 5692 echo "$SSL_PKG_ERRORS" >&5 5693 5694 as_fn_error $? "Package requirements (libssl) were not met: 5695 5696$SSL_PKG_ERRORS 5697 5698Consider adjusting the PKG_CONFIG_PATH environment variable if you 5699installed software in a non-standard prefix. 5700 5701Alternatively, you may set the environment variables SSL_CFLAGS 5702and SSL_LIBS to avoid the need to call pkg-config. 5703See the pkg-config man page for more details." "$LINENO" 5 5704elif test $pkg_failed = untried; then 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5706$as_echo "no" >&6; } 5707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5709as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5710is in your PATH or set the PKG_CONFIG environment variable to the full 5711path to pkg-config. 5712 5713Alternatively, you may set the environment variables SSL_CFLAGS 5714and SSL_LIBS to avoid the need to call pkg-config. 5715See the pkg-config man page for more details. 5716 5717To get pkg-config, see <http://pkg-config.freedesktop.org/>. 5718See \`config.log' for more details" "$LINENO" 5; } 5719else 5720 SSL_CFLAGS=$pkg_cv_SSL_CFLAGS 5721 SSL_LIBS=$pkg_cv_SSL_LIBS 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5723$as_echo "yes" >&6; } 5724 5725fi 5726 5727pkg_failed=no 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5 5729$as_echo_n "checking for CRYPTO... " >&6; } 5730 5731if test -n "$CRYPTO_CFLAGS"; then 5732 pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS" 5733 elif test -n "$PKG_CONFIG"; then 5734 if test -n "$PKG_CONFIG" && \ 5735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 5736 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 5737 ac_status=$? 5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5739 test $ac_status = 0; }; then 5740 pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null` 5741 test "x$?" != "x0" && pkg_failed=yes 5742else 5743 pkg_failed=yes 5744fi 5745 else 5746 pkg_failed=untried 5747fi 5748if test -n "$CRYPTO_LIBS"; then 5749 pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS" 5750 elif test -n "$PKG_CONFIG"; then 5751 if test -n "$PKG_CONFIG" && \ 5752 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 5753 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 5754 ac_status=$? 5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5756 test $ac_status = 0; }; then 5757 pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null` 5758 test "x$?" != "x0" && pkg_failed=yes 5759else 5760 pkg_failed=yes 5761fi 5762 else 5763 pkg_failed=untried 5764fi 5765 5766 5767 5768if test $pkg_failed = yes; then 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770$as_echo "no" >&6; } 5771 5772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5773 _pkg_short_errors_supported=yes 5774else 5775 _pkg_short_errors_supported=no 5776fi 5777 if test $_pkg_short_errors_supported = yes; then 5778 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1` 5779 else 5780 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1` 5781 fi 5782 # Put the nasty error message in config.log where it belongs 5783 echo "$CRYPTO_PKG_ERRORS" >&5 5784 5785 as_fn_error $? "Package requirements (libcrypto) were not met: 5786 5787$CRYPTO_PKG_ERRORS 5788 5789Consider adjusting the PKG_CONFIG_PATH environment variable if you 5790installed software in a non-standard prefix. 5791 5792Alternatively, you may set the environment variables CRYPTO_CFLAGS 5793and CRYPTO_LIBS to avoid the need to call pkg-config. 5794See the pkg-config man page for more details." "$LINENO" 5 5795elif test $pkg_failed = untried; then 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5797$as_echo "no" >&6; } 5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5800as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5801is in your PATH or set the PKG_CONFIG environment variable to the full 5802path to pkg-config. 5803 5804Alternatively, you may set the environment variables CRYPTO_CFLAGS 5805and CRYPTO_LIBS to avoid the need to call pkg-config. 5806See the pkg-config man page for more details. 5807 5808To get pkg-config, see <http://pkg-config.freedesktop.org/>. 5809See \`config.log' for more details" "$LINENO" 5; } 5810else 5811 CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS 5812 CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5814$as_echo "yes" >&6; } 5815 5816fi 5817 5818 hitch_save_LIBS=$LIBS 5819 LIBS="" 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5821$as_echo_n "checking for library containing socket... " >&6; } 5822if ${ac_cv_search_socket+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 ac_func_search_save_LIBS=$LIBS 5826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828 5829/* Override any GCC internal prototype to avoid an error. 5830 Use char because int might match the return type of a GCC 5831 builtin and then its argument prototype would still apply. */ 5832#ifdef __cplusplus 5833extern "C" 5834#endif 5835char socket (); 5836int 5837main () 5838{ 5839return socket (); 5840 ; 5841 return 0; 5842} 5843_ACEOF 5844for ac_lib in '' socket; do 5845 if test -z "$ac_lib"; then 5846 ac_res="none required" 5847 else 5848 ac_res=-l$ac_lib 5849 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5850 fi 5851 if ac_fn_c_try_link "$LINENO"; then : 5852 ac_cv_search_socket=$ac_res 5853fi 5854rm -f core conftest.err conftest.$ac_objext \ 5855 conftest$ac_exeext 5856 if ${ac_cv_search_socket+:} false; then : 5857 break 5858fi 5859done 5860if ${ac_cv_search_socket+:} false; then : 5861 5862else 5863 ac_cv_search_socket=no 5864fi 5865rm conftest.$ac_ext 5866LIBS=$ac_func_search_save_LIBS 5867fi 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5869$as_echo "$ac_cv_search_socket" >&6; } 5870ac_res=$ac_cv_search_socket 5871if test "$ac_res" != no; then : 5872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5873 5874fi 5875 5876 SOCKET_LIBS=$LIBS 5877 5878 LIBS=$hitch_save_LIBS 5879 5880 5881 hitch_save_LIBS=$LIBS 5882 LIBS="" 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 5884$as_echo_n "checking for library containing inet_ntop... " >&6; } 5885if ${ac_cv_search_inet_ntop+:} false; then : 5886 $as_echo_n "(cached) " >&6 5887else 5888 ac_func_search_save_LIBS=$LIBS 5889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890/* end confdefs.h. */ 5891 5892/* Override any GCC internal prototype to avoid an error. 5893 Use char because int might match the return type of a GCC 5894 builtin and then its argument prototype would still apply. */ 5895#ifdef __cplusplus 5896extern "C" 5897#endif 5898char inet_ntop (); 5899int 5900main () 5901{ 5902return inet_ntop (); 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907for ac_lib in '' nsl; do 5908 if test -z "$ac_lib"; then 5909 ac_res="none required" 5910 else 5911 ac_res=-l$ac_lib 5912 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5913 fi 5914 if ac_fn_c_try_link "$LINENO"; then : 5915 ac_cv_search_inet_ntop=$ac_res 5916fi 5917rm -f core conftest.err conftest.$ac_objext \ 5918 conftest$ac_exeext 5919 if ${ac_cv_search_inet_ntop+:} false; then : 5920 break 5921fi 5922done 5923if ${ac_cv_search_inet_ntop+:} false; then : 5924 5925else 5926 ac_cv_search_inet_ntop=no 5927fi 5928rm conftest.$ac_ext 5929LIBS=$ac_func_search_save_LIBS 5930fi 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 5932$as_echo "$ac_cv_search_inet_ntop" >&6; } 5933ac_res=$ac_cv_search_inet_ntop 5934if test "$ac_res" != no; then : 5935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5936 5937fi 5938 5939 NSL_LIBS=$LIBS 5940 5941 LIBS=$hitch_save_LIBS 5942 5943 5944 hitch_save_LIBS=$LIBS 5945 LIBS="" 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 5947$as_echo_n "checking for library containing clock_gettime... " >&6; } 5948if ${ac_cv_search_clock_gettime+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 ac_func_search_save_LIBS=$LIBS 5952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953/* end confdefs.h. */ 5954 5955/* Override any GCC internal prototype to avoid an error. 5956 Use char because int might match the return type of a GCC 5957 builtin and then its argument prototype would still apply. */ 5958#ifdef __cplusplus 5959extern "C" 5960#endif 5961char clock_gettime (); 5962int 5963main () 5964{ 5965return clock_gettime (); 5966 ; 5967 return 0; 5968} 5969_ACEOF 5970for ac_lib in '' rt; do 5971 if test -z "$ac_lib"; then 5972 ac_res="none required" 5973 else 5974 ac_res=-l$ac_lib 5975 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5976 fi 5977 if ac_fn_c_try_link "$LINENO"; then : 5978 ac_cv_search_clock_gettime=$ac_res 5979fi 5980rm -f core conftest.err conftest.$ac_objext \ 5981 conftest$ac_exeext 5982 if ${ac_cv_search_clock_gettime+:} false; then : 5983 break 5984fi 5985done 5986if ${ac_cv_search_clock_gettime+:} false; then : 5987 5988else 5989 ac_cv_search_clock_gettime=no 5990fi 5991rm conftest.$ac_ext 5992LIBS=$ac_func_search_save_LIBS 5993fi 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 5995$as_echo "$ac_cv_search_clock_gettime" >&6; } 5996ac_res=$ac_cv_search_clock_gettime 5997if test "$ac_res" != no; then : 5998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5999 6000fi 6001 6002 RT_LIBS=$LIBS 6003 6004 LIBS=$hitch_save_LIBS 6005 6006 6007ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" 6008if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 6009 6010cat >>confdefs.h <<_ACEOF 6011#define HAVE_STRUCT_STAT_ST_MTIM 1 6012_ACEOF 6013 6014 6015fi 6016ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" 6017if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then : 6018 6019cat >>confdefs.h <<_ACEOF 6020#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1 6021_ACEOF 6022 6023 6024fi 6025 6026 6027# Check whether --enable-sessioncache was given. 6028if test "${enable_sessioncache+set}" = set; then : 6029 enableval=$enable_sessioncache; use_shctx="$enableval" 6030else 6031 use_shctx=no 6032fi 6033 6034if test x"$use_shctx" != xno; then 6035 if test ! -e 'src/ebtree/ebtree.h'; then 6036 as_fn_error $? "Must clone https://github.com/haproxy/ebtree to src/ebtree/" "$LINENO" 5 6037 fi 6038 6039$as_echo "#define USE_SHARED_CACHE 1" >>confdefs.h 6040 6041fi 6042 if test xno != x"$use_shctx"; then 6043 USE_SHCTX_TRUE= 6044 USE_SHCTX_FALSE='#' 6045else 6046 USE_SHCTX_TRUE='#' 6047 USE_SHCTX_FALSE= 6048fi 6049 6050 6051# Checks for header files. 6052for ac_header in stdlib.h unistd.h 6053do : 6054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6055ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6056if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6057 cat >>confdefs.h <<_ACEOF 6058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6059_ACEOF 6060 6061fi 6062 6063done 6064 6065 6066# Checks for typedefs, structures, and compiler characteristics. 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 6068$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 6069if ${ac_cv_type_uid_t+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073/* end confdefs.h. */ 6074#include <sys/types.h> 6075 6076_ACEOF 6077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6078 $EGREP "uid_t" >/dev/null 2>&1; then : 6079 ac_cv_type_uid_t=yes 6080else 6081 ac_cv_type_uid_t=no 6082fi 6083rm -f conftest* 6084 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 6087$as_echo "$ac_cv_type_uid_t" >&6; } 6088if test $ac_cv_type_uid_t = no; then 6089 6090$as_echo "#define uid_t int" >>confdefs.h 6091 6092 6093$as_echo "#define gid_t int" >>confdefs.h 6094 6095fi 6096 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6098$as_echo_n "checking for inline... " >&6; } 6099if ${ac_cv_c_inline+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 ac_cv_c_inline=no 6103for ac_kw in inline __inline__ __inline; do 6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6105/* end confdefs.h. */ 6106#ifndef __cplusplus 6107typedef int foo_t; 6108static $ac_kw foo_t static_foo () {return 0; } 6109$ac_kw foo_t foo () {return 0; } 6110#endif 6111 6112_ACEOF 6113if ac_fn_c_try_compile "$LINENO"; then : 6114 ac_cv_c_inline=$ac_kw 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117 test "$ac_cv_c_inline" != no && break 6118done 6119 6120fi 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6122$as_echo "$ac_cv_c_inline" >&6; } 6123 6124case $ac_cv_c_inline in 6125 inline | yes) ;; 6126 *) 6127 case $ac_cv_c_inline in 6128 no) ac_val=;; 6129 *) ac_val=$ac_cv_c_inline;; 6130 esac 6131 cat >>confdefs.h <<_ACEOF 6132#ifndef __cplusplus 6133#define inline $ac_val 6134#endif 6135_ACEOF 6136 ;; 6137esac 6138 6139ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 6140case $ac_cv_c_int32_t in #( 6141 no|yes) ;; #( 6142 *) 6143 6144cat >>confdefs.h <<_ACEOF 6145#define int32_t $ac_cv_c_int32_t 6146_ACEOF 6147;; 6148esac 6149 6150ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6151if test "x$ac_cv_type_pid_t" = xyes; then : 6152 6153else 6154 6155cat >>confdefs.h <<_ACEOF 6156#define pid_t int 6157_ACEOF 6158 6159fi 6160 6161ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6162if test "x$ac_cv_type_size_t" = xyes; then : 6163 6164else 6165 6166cat >>confdefs.h <<_ACEOF 6167#define size_t unsigned int 6168_ACEOF 6169 6170fi 6171 6172ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 6173if test "x$ac_cv_type_ssize_t" = xyes; then : 6174 6175else 6176 6177cat >>confdefs.h <<_ACEOF 6178#define ssize_t int 6179_ACEOF 6180 6181fi 6182 6183ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 6184case $ac_cv_c_uint32_t in #( 6185 no|yes) ;; #( 6186 *) 6187 6188$as_echo "#define _UINT32_T 1" >>confdefs.h 6189 6190 6191cat >>confdefs.h <<_ACEOF 6192#define uint32_t $ac_cv_c_uint32_t 6193_ACEOF 6194;; 6195 esac 6196 6197 6198# Checks for library functions. 6199for ac_header in vfork.h 6200do : 6201 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 6202if test "x$ac_cv_header_vfork_h" = xyes; then : 6203 cat >>confdefs.h <<_ACEOF 6204#define HAVE_VFORK_H 1 6205_ACEOF 6206 6207fi 6208 6209done 6210 6211for ac_func in fork vfork 6212do : 6213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6214ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6215if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6216 cat >>confdefs.h <<_ACEOF 6217#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6218_ACEOF 6219 6220fi 6221done 6222 6223if test "x$ac_cv_func_fork" = xyes; then 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 6225$as_echo_n "checking for working fork... " >&6; } 6226if ${ac_cv_func_fork_works+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228else 6229 if test "$cross_compiling" = yes; then : 6230 ac_cv_func_fork_works=cross 6231else 6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6233/* end confdefs.h. */ 6234$ac_includes_default 6235int 6236main () 6237{ 6238 6239 /* By Ruediger Kuhlmann. */ 6240 return fork () < 0; 6241 6242 ; 6243 return 0; 6244} 6245_ACEOF 6246if ac_fn_c_try_run "$LINENO"; then : 6247 ac_cv_func_fork_works=yes 6248else 6249 ac_cv_func_fork_works=no 6250fi 6251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6252 conftest.$ac_objext conftest.beam conftest.$ac_ext 6253fi 6254 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 6257$as_echo "$ac_cv_func_fork_works" >&6; } 6258 6259else 6260 ac_cv_func_fork_works=$ac_cv_func_fork 6261fi 6262if test "x$ac_cv_func_fork_works" = xcross; then 6263 case $host in 6264 *-*-amigaos* | *-*-msdosdjgpp*) 6265 # Override, as these systems have only a dummy fork() stub 6266 ac_cv_func_fork_works=no 6267 ;; 6268 *) 6269 ac_cv_func_fork_works=yes 6270 ;; 6271 esac 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 6273$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 6274fi 6275ac_cv_func_vfork_works=$ac_cv_func_vfork 6276if test "x$ac_cv_func_vfork" = xyes; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 6278$as_echo_n "checking for working vfork... " >&6; } 6279if ${ac_cv_func_vfork_works+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 if test "$cross_compiling" = yes; then : 6283 ac_cv_func_vfork_works=cross 6284else 6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6286/* end confdefs.h. */ 6287/* Thanks to Paul Eggert for this test. */ 6288$ac_includes_default 6289#include <sys/wait.h> 6290#ifdef HAVE_VFORK_H 6291# include <vfork.h> 6292#endif 6293/* On some sparc systems, changes by the child to local and incoming 6294 argument registers are propagated back to the parent. The compiler 6295 is told about this with #include <vfork.h>, but some compilers 6296 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 6297 static variable whose address is put into a register that is 6298 clobbered by the vfork. */ 6299static void 6300#ifdef __cplusplus 6301sparc_address_test (int arg) 6302# else 6303sparc_address_test (arg) int arg; 6304#endif 6305{ 6306 static pid_t child; 6307 if (!child) { 6308 child = vfork (); 6309 if (child < 0) { 6310 perror ("vfork"); 6311 _exit(2); 6312 } 6313 if (!child) { 6314 arg = getpid(); 6315 write(-1, "", 0); 6316 _exit (arg); 6317 } 6318 } 6319} 6320 6321int 6322main () 6323{ 6324 pid_t parent = getpid (); 6325 pid_t child; 6326 6327 sparc_address_test (0); 6328 6329 child = vfork (); 6330 6331 if (child == 0) { 6332 /* Here is another test for sparc vfork register problems. This 6333 test uses lots of local variables, at least as many local 6334 variables as main has allocated so far including compiler 6335 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 6336 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 6337 reuse the register of parent for one of the local variables, 6338 since it will think that parent can't possibly be used any more 6339 in this routine. Assigning to the local variable will thus 6340 munge parent in the parent process. */ 6341 pid_t 6342 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 6343 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 6344 /* Convince the compiler that p..p7 are live; otherwise, it might 6345 use the same hardware register for all 8 local variables. */ 6346 if (p != p1 || p != p2 || p != p3 || p != p4 6347 || p != p5 || p != p6 || p != p7) 6348 _exit(1); 6349 6350 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 6351 from child file descriptors. If the child closes a descriptor 6352 before it execs or exits, this munges the parent's descriptor 6353 as well. Test for this by closing stdout in the child. */ 6354 _exit(close(fileno(stdout)) != 0); 6355 } else { 6356 int status; 6357 struct stat st; 6358 6359 while (wait(&status) != child) 6360 ; 6361 return ( 6362 /* Was there some problem with vforking? */ 6363 child < 0 6364 6365 /* Did the child fail? (This shouldn't happen.) */ 6366 || status 6367 6368 /* Did the vfork/compiler bug occur? */ 6369 || parent != getpid() 6370 6371 /* Did the file descriptor bug occur? */ 6372 || fstat(fileno(stdout), &st) != 0 6373 ); 6374 } 6375} 6376_ACEOF 6377if ac_fn_c_try_run "$LINENO"; then : 6378 ac_cv_func_vfork_works=yes 6379else 6380 ac_cv_func_vfork_works=no 6381fi 6382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6383 conftest.$ac_objext conftest.beam conftest.$ac_ext 6384fi 6385 6386fi 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 6388$as_echo "$ac_cv_func_vfork_works" >&6; } 6389 6390fi; 6391if test "x$ac_cv_func_fork_works" = xcross; then 6392 ac_cv_func_vfork_works=$ac_cv_func_vfork 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 6394$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 6395fi 6396 6397if test "x$ac_cv_func_vfork_works" = xyes; then 6398 6399$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 6400 6401else 6402 6403$as_echo "#define vfork fork" >>confdefs.h 6404 6405fi 6406if test "x$ac_cv_func_fork_works" = xyes; then 6407 6408$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 6409 6410fi 6411 6412 6413 6414 6415 for ac_header in $ac_header_list 6416do : 6417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6418ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6419" 6420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6421 cat >>confdefs.h <<_ACEOF 6422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6423_ACEOF 6424 6425fi 6426 6427done 6428 6429 6430 6431 6432 6433 6434 6435 6436for ac_func in getpagesize 6437do : 6438 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 6439if test "x$ac_cv_func_getpagesize" = xyes; then : 6440 cat >>confdefs.h <<_ACEOF 6441#define HAVE_GETPAGESIZE 1 6442_ACEOF 6443 6444fi 6445done 6446 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 6448$as_echo_n "checking for working mmap... " >&6; } 6449if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 6450 $as_echo_n "(cached) " >&6 6451else 6452 if test "$cross_compiling" = yes; then : 6453 ac_cv_func_mmap_fixed_mapped=no 6454else 6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457$ac_includes_default 6458/* malloc might have been renamed as rpl_malloc. */ 6459#undef malloc 6460 6461/* Thanks to Mike Haertel and Jim Avera for this test. 6462 Here is a matrix of mmap possibilities: 6463 mmap private not fixed 6464 mmap private fixed at somewhere currently unmapped 6465 mmap private fixed at somewhere already mapped 6466 mmap shared not fixed 6467 mmap shared fixed at somewhere currently unmapped 6468 mmap shared fixed at somewhere already mapped 6469 For private mappings, we should verify that changes cannot be read() 6470 back from the file, nor mmap's back from the file at a different 6471 address. (There have been systems where private was not correctly 6472 implemented like the infamous i386 svr4.0, and systems where the 6473 VM page cache was not coherent with the file system buffer cache 6474 like early versions of FreeBSD and possibly contemporary NetBSD.) 6475 For shared mappings, we should conversely verify that changes get 6476 propagated back to all the places they're supposed to be. 6477 6478 Grep wants private fixed already mapped. 6479 The main things grep needs to know about mmap are: 6480 * does it exist and is it safe to write into the mmap'd area 6481 * how to use it (BSD variants) */ 6482 6483#include <fcntl.h> 6484#include <sys/mman.h> 6485 6486#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 6487char *malloc (); 6488#endif 6489 6490/* This mess was copied from the GNU getpagesize.h. */ 6491#ifndef HAVE_GETPAGESIZE 6492# ifdef _SC_PAGESIZE 6493# define getpagesize() sysconf(_SC_PAGESIZE) 6494# else /* no _SC_PAGESIZE */ 6495# ifdef HAVE_SYS_PARAM_H 6496# include <sys/param.h> 6497# ifdef EXEC_PAGESIZE 6498# define getpagesize() EXEC_PAGESIZE 6499# else /* no EXEC_PAGESIZE */ 6500# ifdef NBPG 6501# define getpagesize() NBPG * CLSIZE 6502# ifndef CLSIZE 6503# define CLSIZE 1 6504# endif /* no CLSIZE */ 6505# else /* no NBPG */ 6506# ifdef NBPC 6507# define getpagesize() NBPC 6508# else /* no NBPC */ 6509# ifdef PAGESIZE 6510# define getpagesize() PAGESIZE 6511# endif /* PAGESIZE */ 6512# endif /* no NBPC */ 6513# endif /* no NBPG */ 6514# endif /* no EXEC_PAGESIZE */ 6515# else /* no HAVE_SYS_PARAM_H */ 6516# define getpagesize() 8192 /* punt totally */ 6517# endif /* no HAVE_SYS_PARAM_H */ 6518# endif /* no _SC_PAGESIZE */ 6519 6520#endif /* no HAVE_GETPAGESIZE */ 6521 6522int 6523main () 6524{ 6525 char *data, *data2, *data3; 6526 const char *cdata2; 6527 int i, pagesize; 6528 int fd, fd2; 6529 6530 pagesize = getpagesize (); 6531 6532 /* First, make a file with some known garbage in it. */ 6533 data = (char *) malloc (pagesize); 6534 if (!data) 6535 return 1; 6536 for (i = 0; i < pagesize; ++i) 6537 *(data + i) = rand (); 6538 umask (0); 6539 fd = creat ("conftest.mmap", 0600); 6540 if (fd < 0) 6541 return 2; 6542 if (write (fd, data, pagesize) != pagesize) 6543 return 3; 6544 close (fd); 6545 6546 /* Next, check that the tail of a page is zero-filled. File must have 6547 non-zero length, otherwise we risk SIGBUS for entire page. */ 6548 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 6549 if (fd2 < 0) 6550 return 4; 6551 cdata2 = ""; 6552 if (write (fd2, cdata2, 1) != 1) 6553 return 5; 6554 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 6555 if (data2 == MAP_FAILED) 6556 return 6; 6557 for (i = 0; i < pagesize; ++i) 6558 if (*(data2 + i)) 6559 return 7; 6560 close (fd2); 6561 if (munmap (data2, pagesize)) 6562 return 8; 6563 6564 /* Next, try to mmap the file at a fixed address which already has 6565 something else allocated at it. If we can, also make sure that 6566 we see the same garbage. */ 6567 fd = open ("conftest.mmap", O_RDWR); 6568 if (fd < 0) 6569 return 9; 6570 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6571 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6572 return 10; 6573 for (i = 0; i < pagesize; ++i) 6574 if (*(data + i) != *(data2 + i)) 6575 return 11; 6576 6577 /* Finally, make sure that changes to the mapped area do not 6578 percolate back to the file as seen by read(). (This is a bug on 6579 some variants of i386 svr4.0.) */ 6580 for (i = 0; i < pagesize; ++i) 6581 *(data2 + i) = *(data2 + i) + 1; 6582 data3 = (char *) malloc (pagesize); 6583 if (!data3) 6584 return 12; 6585 if (read (fd, data3, pagesize) != pagesize) 6586 return 13; 6587 for (i = 0; i < pagesize; ++i) 6588 if (*(data + i) != *(data3 + i)) 6589 return 14; 6590 close (fd); 6591 free (data); 6592 free (data3); 6593 return 0; 6594} 6595_ACEOF 6596if ac_fn_c_try_run "$LINENO"; then : 6597 ac_cv_func_mmap_fixed_mapped=yes 6598else 6599 ac_cv_func_mmap_fixed_mapped=no 6600fi 6601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6602 conftest.$ac_objext conftest.beam conftest.$ac_ext 6603fi 6604 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 6607$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 6608if test $ac_cv_func_mmap_fixed_mapped = yes; then 6609 6610$as_echo "#define HAVE_MMAP 1" >>confdefs.h 6611 6612fi 6613rm -f conftest.mmap conftest.txt 6614 6615for ac_func in accept4 6616do : 6617 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 6618if test "x$ac_cv_func_accept4" = xyes; then : 6619 cat >>confdefs.h <<_ACEOF 6620#define HAVE_ACCEPT4 1 6621_ACEOF 6622 6623fi 6624done 6625 6626 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SO_REUSEPORT works" >&5 6628$as_echo_n "checking whether SO_REUSEPORT works... " >&6; } 6629if ${ac_cv_so_reuseport_works+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631else 6632 if test "$cross_compiling" = yes; then : 6633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6635as_fn_error $? "cannot run test program while cross compiling 6636See \`config.log' for more details" "$LINENO" 5; } 6637else 6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6639/* end confdefs.h. */ 6640 6641#include <sys/types.h> 6642#include <sys/socket.h> 6643 6644int 6645main () 6646{ 6647 6648 int s = socket(AF_INET, SOCK_STREAM, 0); 6649 int i = 5; 6650 if (setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &i, sizeof i) < 0) 6651 return (1); 6652 return (0); 6653 6654 ; 6655 return 0; 6656} 6657_ACEOF 6658if ac_fn_c_try_run "$LINENO"; then : 6659 ac_cv_so_reuseport_works=yes 6660else 6661 ac_cv_so_reuseport_works=no 6662fi 6663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6664 conftest.$ac_objext conftest.beam conftest.$ac_ext 6665fi 6666 6667 6668 6669fi 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_reuseport_works" >&5 6671$as_echo "$ac_cv_so_reuseport_works" >&6; } 6672if test "$ac_cv_so_reuseport_works" = yes; then 6673 6674$as_echo "#define SO_REUSEPORT_WORKS 1" >>confdefs.h 6675 6676fi 6677 6678# Check whether --enable-tcp-fastopen was given. 6679if test "${enable_tcp_fastopen+set}" = set; then : 6680 enableval=$enable_tcp_fastopen; use_tfo="$enableval" 6681else 6682 use_tfo=auto 6683fi 6684 6685 6686if test x"$use_tfo" != xno; then 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_FASTOPEN works" >&5 6688$as_echo_n "checking whether TCP_FASTOPEN works... " >&6; } 6689if ${ac_cv_so_tfo+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test "$cross_compiling" = yes; then : 6693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6695as_fn_error $? "cannot run test program while cross compiling 6696See \`config.log' for more details" "$LINENO" 5; } 6697else 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700 6701 #include <sys/types.h> 6702 #include <sys/socket.h> 6703 #include <netinet/tcp.h> 6704 6705int 6706main () 6707{ 6708 6709 int s = socket(AF_INET, SOCK_STREAM, 0); 6710 int i = 5; 6711 if (setsockopt(s, SOL_TCP, TCP_FASTOPEN, &i, sizeof i) < 0) 6712 return (1); 6713 return (0); 6714 6715 ; 6716 return 0; 6717} 6718_ACEOF 6719if ac_fn_c_try_run "$LINENO"; then : 6720 ac_cv_so_tfo=yes 6721else 6722 ac_cv_so_tfo=no 6723fi 6724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6725 conftest.$ac_objext conftest.beam conftest.$ac_ext 6726fi 6727 6728 6729 6730fi 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_tfo" >&5 6732$as_echo "$ac_cv_so_tfo" >&6; } 6733 if test "$ac_cv_so_tfo" != yes && test use_tfo = yes; then 6734 as_fn_error $? "Socket option TCP_FASTOPEN is not supported by the kernel" "$LINENO" 5 6735 fi 6736 if test "$ac_cv_so_tfo" = yes; then 6737 6738$as_echo "#define TCP_FASTOPEN_WORKS 1" >>confdefs.h 6739 6740 fi 6741fi 6742 6743for ac_header in linux/futex.h 6744do : 6745 ac_fn_c_check_header_mongrel "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default" 6746if test "x$ac_cv_header_linux_futex_h" = xyes; then : 6747 cat >>confdefs.h <<_ACEOF 6748#define HAVE_LINUX_FUTEX_H 1 6749_ACEOF 6750 6751fi 6752 6753done 6754 6755 if test $ac_cv_header_linux_futex_h = yes; then 6756 HAVE_LINUX_FUTEX_TRUE= 6757 HAVE_LINUX_FUTEX_FALSE='#' 6758else 6759 HAVE_LINUX_FUTEX_TRUE='#' 6760 HAVE_LINUX_FUTEX_FALSE= 6761fi 6762 6763 6764 6765 hitch_save_LIBS=$LIBS 6766 LIBS="$SSL_LIBS" 6767 ac_fn_c_check_func "$LINENO" "SSL_get0_alpn_selected" "ac_cv_func_SSL_get0_alpn_selected" 6768if test "x$ac_cv_func_SSL_get0_alpn_selected" = xyes; then : 6769 6770 6771$as_echo "#define OPENSSL_WITH_ALPN 1" >>confdefs.h 6772 6773 6774fi 6775 6776 LIBS=$hitch_save_LIBS 6777 6778 6779 6780 hitch_save_LIBS=$LIBS 6781 LIBS="$SSL_LIBS" 6782 ac_fn_c_check_func "$LINENO" "SSL_get0_next_proto_negotiated" "ac_cv_func_SSL_get0_next_proto_negotiated" 6783if test "x$ac_cv_func_SSL_get0_next_proto_negotiated" = xyes; then : 6784 6785 6786$as_echo "#define OPENSSL_WITH_NPN 1" >>confdefs.h 6787 6788 6789fi 6790 6791 LIBS=$hitch_save_LIBS 6792 6793 6794 6795 hitch_save_LIBS=$LIBS 6796 LIBS="$SSL_LIBS" 6797 ac_fn_c_check_func "$LINENO" "SSL_CTX_get_default_passwd_cb" "ac_cv_func_SSL_CTX_get_default_passwd_cb" 6798if test "x$ac_cv_func_SSL_CTX_get_default_passwd_cb" = xyes; then : 6799 6800 6801$as_echo "#define HAVE_SSL_CTX_GET_DEFAULT_PASSWD_CB 1" >>confdefs.h 6802 6803 6804fi 6805 6806 LIBS=$hitch_save_LIBS 6807 6808 6809 6810 hitch_save_LIBS=$LIBS 6811 LIBS="$SSL_LIBS" 6812 ac_fn_c_check_func "$LINENO" "SSL_CTX_get_default_passwd_cb_userdata" "ac_cv_func_SSL_CTX_get_default_passwd_cb_userdata" 6813if test "x$ac_cv_func_SSL_CTX_get_default_passwd_cb_userdata" = xyes; then : 6814 6815 6816$as_echo "#define HAVE_SSL_CTX_GET_DEFAULT_PASSWD_CB_USERDATA 1" >>confdefs.h 6817 6818 6819fi 6820 6821 LIBS=$hitch_save_LIBS 6822 6823 6824 6825 hitch_save_LIBS=$LIBS 6826 LIBS="$CRYPTO_LIBS" 6827 ac_fn_c_check_func "$LINENO" "CRYPTO_get_locking_callback" "ac_cv_func_CRYPTO_get_locking_callback" 6828if test "x$ac_cv_func_CRYPTO_get_locking_callback" = xyes; then : 6829 6830 6831$as_echo "#define OPENSSL_WITH_LOCKS 1" >>confdefs.h 6832 6833 6834fi 6835 6836 LIBS=$hitch_save_LIBS 6837 6838 6839 6840 hitch_save_LIBS=$LIBS 6841 LIBS="$CRYPTO_LIBS" 6842 ac_fn_c_check_func "$LINENO" "X509_NAME_ENTRY_get_data" "ac_cv_func_X509_NAME_ENTRY_get_data" 6843if test "x$ac_cv_func_X509_NAME_ENTRY_get_data" = xyes; then : 6844 6845 6846$as_echo "#define HAVE_X509_NAME_ENTRY_GET_DATA 1" >>confdefs.h 6847 6848 6849fi 6850 6851 LIBS=$hitch_save_LIBS 6852 6853 6854 6855 hitch_save_LIBS=$LIBS 6856 LIBS="$CRYPTO_LIBS" 6857 ac_fn_c_check_func "$LINENO" "X509_STORE_get0_objects" "ac_cv_func_X509_STORE_get0_objects" 6858if test "x$ac_cv_func_X509_STORE_get0_objects" = xyes; then : 6859 6860 6861$as_echo "#define HAVE_X509_STORE_GET0_OBJECTS 1" >>confdefs.h 6862 6863 6864fi 6865 6866 LIBS=$hitch_save_LIBS 6867 6868 6869 6870 hitch_save_LIBS=$LIBS 6871 LIBS="$CRYPTO_LIBS" 6872 ac_fn_c_check_func "$LINENO" "X509_OBJECT_get0_X509" "ac_cv_func_X509_OBJECT_get0_X509" 6873if test "x$ac_cv_func_X509_OBJECT_get0_X509" = xyes; then : 6874 6875 6876$as_echo "#define HAVE_X509_OBJECT_GET0_X509 1" >>confdefs.h 6877 6878 6879fi 6880 6881 LIBS=$hitch_save_LIBS 6882 6883 6884ac_fn_c_check_member "$LINENO" "struct ssl_st" "s3" "ac_cv_member_struct_ssl_st_s3" "#include <openssl/ssl.h> 6885" 6886if test "x$ac_cv_member_struct_ssl_st_s3" = xyes; then : 6887 6888cat >>confdefs.h <<_ACEOF 6889#define HAVE_STRUCT_SSL_ST_S3 1 6890_ACEOF 6891 6892 6893fi 6894 6895 6896as_arg_v1=$($PKG_CONFIG --modversion openssl) 6897as_arg_v2=1.1.1 6898awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 6899case $? in #( 6900 1) : 6901 openssl111=no ;; #( 6902 0) : 6903 openssl111=yes ;; #( 6904 2) : 6905 openssl111=yes ;; #( 6906 *) : 6907 ;; 6908esac 6909 6910if test "x$openssl111" = xyes; then : 6911 6912$as_echo "#define HAVE_TLS_1_3 1" >>confdefs.h 6913 6914fi 6915 6916SH_TESTS="$(cd $srcdir/src && echo tests/test*.sh)" 6917 6918 6919 6920 6921 6922 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -g" >&5 6924$as_echo_n "checking whether the compiler accepts -g... " >&6; } 6925 hitch_save_CFLAGS=$CFLAGS 6926 CFLAGS="$HITCH_CFLAGS -g $CFLAGS" 6927 if test "$cross_compiling" = yes; then : 6928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6930as_fn_error $? "cannot run test program while cross compiling 6931See \`config.log' for more details" "$LINENO" 5; } 6932else 6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934/* end confdefs.h. */ 6935int main(void) { return (0); } 6936_ACEOF 6937if ac_fn_c_try_run "$LINENO"; then : 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6939$as_echo "yes" >&6; }; HITCH_CFLAGS="$HITCH_CFLAGS -g" 6940else 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6942$as_echo "no" >&6; } 6943fi 6944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6945 conftest.$ac_objext conftest.beam conftest.$ac_ext 6946fi 6947 6948 CFLAGS=$hitch_save_CFLAGS 6949 6950 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -O2" >&5 6952$as_echo_n "checking whether the compiler accepts -O2... " >&6; } 6953 hitch_save_CFLAGS=$CFLAGS 6954 CFLAGS="$HITCH_CFLAGS -O2 $CFLAGS" 6955 if test "$cross_compiling" = yes; then : 6956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6958as_fn_error $? "cannot run test program while cross compiling 6959See \`config.log' for more details" "$LINENO" 5; } 6960else 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963int main(void) { return (0); } 6964_ACEOF 6965if ac_fn_c_try_run "$LINENO"; then : 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6967$as_echo "yes" >&6; }; HITCH_CFLAGS="$HITCH_CFLAGS -O2" 6968else 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6970$as_echo "no" >&6; } 6971fi 6972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6973 conftest.$ac_objext conftest.beam conftest.$ac_ext 6974fi 6975 6976 CFLAGS=$hitch_save_CFLAGS 6977 6978 6979 6980 6981if test -z "$ENABLE_WARNINGS_TRUE"; then : 6982 6983 6984 6985 6986 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wall" >&5 6988$as_echo_n "checking whether the compiler accepts -Wall... " >&6; } 6989 hitch_save_CFLAGS=$CFLAGS 6990 CFLAGS="$HITCH_CFLAGS -Wall $CFLAGS" 6991 if test "$cross_compiling" = yes; then : 6992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6994as_fn_error $? "cannot run test program while cross compiling 6995See \`config.log' for more details" "$LINENO" 5; } 6996else 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int main(void) { return (0); } 7000_ACEOF 7001if ac_fn_c_try_run "$LINENO"; then : 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7003$as_echo "yes" >&6; }; HITCH_CFLAGS="$HITCH_CFLAGS -Wall" 7004else 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7006$as_echo "no" >&6; } 7007fi 7008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7009 conftest.$ac_objext conftest.beam conftest.$ac_ext 7010fi 7011 7012 CFLAGS=$hitch_save_CFLAGS 7013 7014 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -W" >&5 7016$as_echo_n "checking whether the compiler accepts -W... " >&6; } 7017 hitch_save_CFLAGS=$CFLAGS 7018 CFLAGS="$HITCH_CFLAGS -W $CFLAGS" 7019 if test "$cross_compiling" = yes; then : 7020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7022as_fn_error $? "cannot run test program while cross compiling 7023See \`config.log' for more details" "$LINENO" 5; } 7024else 7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7026/* end confdefs.h. */ 7027int main(void) { return (0); } 7028_ACEOF 7029if ac_fn_c_try_run "$LINENO"; then : 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7031$as_echo "yes" >&6; }; HITCH_CFLAGS="$HITCH_CFLAGS -W" 7032else 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034$as_echo "no" >&6; } 7035fi 7036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7037 conftest.$ac_objext conftest.beam conftest.$ac_ext 7038fi 7039 7040 CFLAGS=$hitch_save_CFLAGS 7041 7042 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Werror" >&5 7044$as_echo_n "checking whether the compiler accepts -Werror... " >&6; } 7045 hitch_save_CFLAGS=$CFLAGS 7046 CFLAGS="$HITCH_CFLAGS -Werror $CFLAGS" 7047 if test "$cross_compiling" = yes; then : 7048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7050as_fn_error $? "cannot run test program while cross compiling 7051See \`config.log' for more details" "$LINENO" 5; } 7052else 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055int main(void) { return (0); } 7056_ACEOF 7057if ac_fn_c_try_run "$LINENO"; then : 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7059$as_echo "yes" >&6; }; HITCH_CFLAGS="$HITCH_CFLAGS -Werror" 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7065 conftest.$ac_objext conftest.beam conftest.$ac_ext 7066fi 7067 7068 CFLAGS=$hitch_save_CFLAGS 7069 7070 7071 7072 7073fi 7074 7075 7076 7077 7078 7079 7080 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-strict-aliasing" >&5 7082$as_echo_n "checking whether the compiler accepts -fno-strict-aliasing... " >&6; } 7083 hitch_save_CFLAGS=$CFLAGS 7084 CFLAGS="$EV_CFLAGS -fno-strict-aliasing $CFLAGS" 7085 if test "$cross_compiling" = yes; then : 7086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7088as_fn_error $? "cannot run test program while cross compiling 7089See \`config.log' for more details" "$LINENO" 5; } 7090else 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093int main(void) { return (0); } 7094_ACEOF 7095if ac_fn_c_try_run "$LINENO"; then : 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7097$as_echo "yes" >&6; }; EV_CFLAGS="$EV_CFLAGS -fno-strict-aliasing" 7098else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100$as_echo "no" >&6; } 7101fi 7102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7103 conftest.$ac_objext conftest.beam conftest.$ac_ext 7104fi 7105 7106 CFLAGS=$hitch_save_CFLAGS 7107 7108 7109 7110 7111ac_config_files="$ac_config_files Makefile src/Makefile src/util/Makefile" 7112 7113 7114cat >confcache <<\_ACEOF 7115# This file is a shell script that caches the results of configure 7116# tests run on this system so they can be shared between configure 7117# scripts and configure runs, see configure's option --config-cache. 7118# It is not useful on other systems. If it contains results you don't 7119# want to keep, you may remove or edit it. 7120# 7121# config.status only pays attention to the cache file if you give it 7122# the --recheck option to rerun configure. 7123# 7124# `ac_cv_env_foo' variables (set or unset) will be overridden when 7125# loading this file, other *unset* `ac_cv_foo' will be assigned the 7126# following values. 7127 7128_ACEOF 7129 7130# The following way of writing the cache mishandles newlines in values, 7131# but we know of no workaround that is simple, portable, and efficient. 7132# So, we kill variables containing newlines. 7133# Ultrix sh set writes to stderr and can't be redirected directly, 7134# and sets the high bit in the cache file unless we assign to the vars. 7135( 7136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7137 eval ac_val=\$$ac_var 7138 case $ac_val in #( 7139 *${as_nl}*) 7140 case $ac_var in #( 7141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7143 esac 7144 case $ac_var in #( 7145 _ | IFS | as_nl) ;; #( 7146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7147 *) { eval $ac_var=; unset $ac_var;} ;; 7148 esac ;; 7149 esac 7150 done 7151 7152 (set) 2>&1 | 7153 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7154 *${as_nl}ac_space=\ *) 7155 # `set' does not quote correctly, so add quotes: double-quote 7156 # substitution turns \\\\ into \\, and sed turns \\ into \. 7157 sed -n \ 7158 "s/'/'\\\\''/g; 7159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7160 ;; #( 7161 *) 7162 # `set' quotes correctly as required by POSIX, so do not add quotes. 7163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7164 ;; 7165 esac | 7166 sort 7167) | 7168 sed ' 7169 /^ac_cv_env_/b end 7170 t clear 7171 :clear 7172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7173 t end 7174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7175 :end' >>confcache 7176if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7177 if test -w "$cache_file"; then 7178 if test "x$cache_file" != "x/dev/null"; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7180$as_echo "$as_me: updating cache $cache_file" >&6;} 7181 if test ! -f "$cache_file" || test -h "$cache_file"; then 7182 cat confcache >"$cache_file" 7183 else 7184 case $cache_file in #( 7185 */* | ?:*) 7186 mv -f confcache "$cache_file"$$ && 7187 mv -f "$cache_file"$$ "$cache_file" ;; #( 7188 *) 7189 mv -f confcache "$cache_file" ;; 7190 esac 7191 fi 7192 fi 7193 else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7195$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7196 fi 7197fi 7198rm -f confcache 7199 7200test "x$prefix" = xNONE && prefix=$ac_default_prefix 7201# Let make expand exec_prefix. 7202test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7203 7204DEFS=-DHAVE_CONFIG_H 7205 7206ac_libobjs= 7207ac_ltlibobjs= 7208U= 7209for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7210 # 1. Remove the extension, and $U if already installed. 7211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7212 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7214 # will be set to the directory where LIBOBJS objects are built. 7215 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7216 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7217done 7218LIBOBJS=$ac_libobjs 7219 7220LTLIBOBJS=$ac_ltlibobjs 7221 7222 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 7224$as_echo_n "checking that generated files are newer than configure... " >&6; } 7225 if test -n "$am_sleep_pid"; then 7226 # Hide warnings about reused PIDs. 7227 wait $am_sleep_pid 2>/dev/null 7228 fi 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 7230$as_echo "done" >&6; } 7231if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 7232 as_fn_error $? "conditional \"AMDEP\" was never defined. 7233Usually this means the macro was only invoked conditionally." "$LINENO" 5 7234fi 7235if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 7236 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 7237Usually this means the macro was only invoked conditionally." "$LINENO" 5 7238fi 7239 if test -n "$EXEEXT"; then 7240 am__EXEEXT_TRUE= 7241 am__EXEEXT_FALSE='#' 7242else 7243 am__EXEEXT_TRUE='#' 7244 am__EXEEXT_FALSE= 7245fi 7246 7247if test -z "${ENABLE_DOCUMENTATION_TRUE}" && test -z "${ENABLE_DOCUMENTATION_FALSE}"; then 7248 as_fn_error $? "conditional \"ENABLE_DOCUMENTATION\" was never defined. 7249Usually this means the macro was only invoked conditionally." "$LINENO" 5 7250fi 7251if test -z "${ENABLE_WARNINGS_TRUE}" && test -z "${ENABLE_WARNINGS_FALSE}"; then 7252 as_fn_error $? "conditional \"ENABLE_WARNINGS\" was never defined. 7253Usually this means the macro was only invoked conditionally." "$LINENO" 5 7254fi 7255if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 7256 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 7257Usually this means the macro was only invoked conditionally." "$LINENO" 5 7258fi 7259if test -z "${USE_SHCTX_TRUE}" && test -z "${USE_SHCTX_FALSE}"; then 7260 as_fn_error $? "conditional \"USE_SHCTX\" was never defined. 7261Usually this means the macro was only invoked conditionally." "$LINENO" 5 7262fi 7263if test -z "${HAVE_LINUX_FUTEX_TRUE}" && test -z "${HAVE_LINUX_FUTEX_FALSE}"; then 7264 as_fn_error $? "conditional \"HAVE_LINUX_FUTEX\" was never defined. 7265Usually this means the macro was only invoked conditionally." "$LINENO" 5 7266fi 7267 7268: "${CONFIG_STATUS=./config.status}" 7269ac_write_fail=0 7270ac_clean_files_save=$ac_clean_files 7271ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7273$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7274as_write_fail=0 7275cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7276#! $SHELL 7277# Generated by $as_me. 7278# Run this file to recreate the current configuration. 7279# Compiler output produced by configure, useful for debugging 7280# configure, is in config.log if it exists. 7281 7282debug=false 7283ac_cs_recheck=false 7284ac_cs_silent=false 7285 7286SHELL=\${CONFIG_SHELL-$SHELL} 7287export SHELL 7288_ASEOF 7289cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7290## -------------------- ## 7291## M4sh Initialization. ## 7292## -------------------- ## 7293 7294# Be more Bourne compatible 7295DUALCASE=1; export DUALCASE # for MKS sh 7296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7297 emulate sh 7298 NULLCMD=: 7299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7300 # is contrary to our usage. Disable this feature. 7301 alias -g '${1+"$@"}'='"$@"' 7302 setopt NO_GLOB_SUBST 7303else 7304 case `(set -o) 2>/dev/null` in #( 7305 *posix*) : 7306 set -o posix ;; #( 7307 *) : 7308 ;; 7309esac 7310fi 7311 7312 7313as_nl=' 7314' 7315export as_nl 7316# Printing a long string crashes Solaris 7 /usr/bin/printf. 7317as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7318as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7319as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7320# Prefer a ksh shell builtin over an external printf program on Solaris, 7321# but without wasting forks for bash or zsh. 7322if test -z "$BASH_VERSION$ZSH_VERSION" \ 7323 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7324 as_echo='print -r --' 7325 as_echo_n='print -rn --' 7326elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7327 as_echo='printf %s\n' 7328 as_echo_n='printf %s' 7329else 7330 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7331 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7332 as_echo_n='/usr/ucb/echo -n' 7333 else 7334 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7335 as_echo_n_body='eval 7336 arg=$1; 7337 case $arg in #( 7338 *"$as_nl"*) 7339 expr "X$arg" : "X\\(.*\\)$as_nl"; 7340 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7341 esac; 7342 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7343 ' 7344 export as_echo_n_body 7345 as_echo_n='sh -c $as_echo_n_body as_echo' 7346 fi 7347 export as_echo_body 7348 as_echo='sh -c $as_echo_body as_echo' 7349fi 7350 7351# The user is always right. 7352if test "${PATH_SEPARATOR+set}" != set; then 7353 PATH_SEPARATOR=: 7354 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7355 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7356 PATH_SEPARATOR=';' 7357 } 7358fi 7359 7360 7361# IFS 7362# We need space, tab and new line, in precisely that order. Quoting is 7363# there to prevent editors from complaining about space-tab. 7364# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7365# splitting by setting IFS to empty value.) 7366IFS=" "" $as_nl" 7367 7368# Find who we are. Look in the path if we contain no directory separator. 7369as_myself= 7370case $0 in #(( 7371 *[\\/]* ) as_myself=$0 ;; 7372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7373for as_dir in $PATH 7374do 7375 IFS=$as_save_IFS 7376 test -z "$as_dir" && as_dir=. 7377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7378 done 7379IFS=$as_save_IFS 7380 7381 ;; 7382esac 7383# We did not find ourselves, most probably we were run as `sh COMMAND' 7384# in which case we are not to be found in the path. 7385if test "x$as_myself" = x; then 7386 as_myself=$0 7387fi 7388if test ! -f "$as_myself"; then 7389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7390 exit 1 7391fi 7392 7393# Unset variables that we do not need and which cause bugs (e.g. in 7394# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7395# suppresses any "Segmentation fault" message there. '((' could 7396# trigger a bug in pdksh 5.2.14. 7397for as_var in BASH_ENV ENV MAIL MAILPATH 7398do eval test x\${$as_var+set} = xset \ 7399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7400done 7401PS1='$ ' 7402PS2='> ' 7403PS4='+ ' 7404 7405# NLS nuisances. 7406LC_ALL=C 7407export LC_ALL 7408LANGUAGE=C 7409export LANGUAGE 7410 7411# CDPATH. 7412(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7413 7414 7415# as_fn_error STATUS ERROR [LINENO LOG_FD] 7416# ---------------------------------------- 7417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7419# script with STATUS, using 1 if that was 0. 7420as_fn_error () 7421{ 7422 as_status=$1; test $as_status -eq 0 && as_status=1 7423 if test "$4"; then 7424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7426 fi 7427 $as_echo "$as_me: error: $2" >&2 7428 as_fn_exit $as_status 7429} # as_fn_error 7430 7431 7432# as_fn_set_status STATUS 7433# ----------------------- 7434# Set $? to STATUS, without forking. 7435as_fn_set_status () 7436{ 7437 return $1 7438} # as_fn_set_status 7439 7440# as_fn_exit STATUS 7441# ----------------- 7442# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7443as_fn_exit () 7444{ 7445 set +e 7446 as_fn_set_status $1 7447 exit $1 7448} # as_fn_exit 7449 7450# as_fn_unset VAR 7451# --------------- 7452# Portably unset VAR. 7453as_fn_unset () 7454{ 7455 { eval $1=; unset $1;} 7456} 7457as_unset=as_fn_unset 7458# as_fn_append VAR VALUE 7459# ---------------------- 7460# Append the text in VALUE to the end of the definition contained in VAR. Take 7461# advantage of any shell optimizations that allow amortized linear growth over 7462# repeated appends, instead of the typical quadratic growth present in naive 7463# implementations. 7464if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7465 eval 'as_fn_append () 7466 { 7467 eval $1+=\$2 7468 }' 7469else 7470 as_fn_append () 7471 { 7472 eval $1=\$$1\$2 7473 } 7474fi # as_fn_append 7475 7476# as_fn_arith ARG... 7477# ------------------ 7478# Perform arithmetic evaluation on the ARGs, and store the result in the 7479# global $as_val. Take advantage of shells that can avoid forks. The arguments 7480# must be portable across $(()) and expr. 7481if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7482 eval 'as_fn_arith () 7483 { 7484 as_val=$(( $* )) 7485 }' 7486else 7487 as_fn_arith () 7488 { 7489 as_val=`expr "$@" || test $? -eq 1` 7490 } 7491fi # as_fn_arith 7492 7493 7494if expr a : '\(a\)' >/dev/null 2>&1 && 7495 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7496 as_expr=expr 7497else 7498 as_expr=false 7499fi 7500 7501if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7502 as_basename=basename 7503else 7504 as_basename=false 7505fi 7506 7507if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7508 as_dirname=dirname 7509else 7510 as_dirname=false 7511fi 7512 7513as_me=`$as_basename -- "$0" || 7514$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7515 X"$0" : 'X\(//\)$' \| \ 7516 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7517$as_echo X/"$0" | 7518 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7519 s//\1/ 7520 q 7521 } 7522 /^X\/\(\/\/\)$/{ 7523 s//\1/ 7524 q 7525 } 7526 /^X\/\(\/\).*/{ 7527 s//\1/ 7528 q 7529 } 7530 s/.*/./; q'` 7531 7532# Avoid depending upon Character Ranges. 7533as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7534as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7535as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7536as_cr_digits='0123456789' 7537as_cr_alnum=$as_cr_Letters$as_cr_digits 7538 7539ECHO_C= ECHO_N= ECHO_T= 7540case `echo -n x` in #((((( 7541-n*) 7542 case `echo 'xy\c'` in 7543 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7544 xy) ECHO_C='\c';; 7545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7546 ECHO_T=' ';; 7547 esac;; 7548*) 7549 ECHO_N='-n';; 7550esac 7551 7552rm -f conf$$ conf$$.exe conf$$.file 7553if test -d conf$$.dir; then 7554 rm -f conf$$.dir/conf$$.file 7555else 7556 rm -f conf$$.dir 7557 mkdir conf$$.dir 2>/dev/null 7558fi 7559if (echo >conf$$.file) 2>/dev/null; then 7560 if ln -s conf$$.file conf$$ 2>/dev/null; then 7561 as_ln_s='ln -s' 7562 # ... but there are two gotchas: 7563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7565 # In both cases, we have to default to `cp -pR'. 7566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7567 as_ln_s='cp -pR' 7568 elif ln conf$$.file conf$$ 2>/dev/null; then 7569 as_ln_s=ln 7570 else 7571 as_ln_s='cp -pR' 7572 fi 7573else 7574 as_ln_s='cp -pR' 7575fi 7576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7577rmdir conf$$.dir 2>/dev/null 7578 7579 7580# as_fn_mkdir_p 7581# ------------- 7582# Create "$as_dir" as a directory, including parents if necessary. 7583as_fn_mkdir_p () 7584{ 7585 7586 case $as_dir in #( 7587 -*) as_dir=./$as_dir;; 7588 esac 7589 test -d "$as_dir" || eval $as_mkdir_p || { 7590 as_dirs= 7591 while :; do 7592 case $as_dir in #( 7593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7594 *) as_qdir=$as_dir;; 7595 esac 7596 as_dirs="'$as_qdir' $as_dirs" 7597 as_dir=`$as_dirname -- "$as_dir" || 7598$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7599 X"$as_dir" : 'X\(//\)[^/]' \| \ 7600 X"$as_dir" : 'X\(//\)$' \| \ 7601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7602$as_echo X"$as_dir" | 7603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7604 s//\1/ 7605 q 7606 } 7607 /^X\(\/\/\)[^/].*/{ 7608 s//\1/ 7609 q 7610 } 7611 /^X\(\/\/\)$/{ 7612 s//\1/ 7613 q 7614 } 7615 /^X\(\/\).*/{ 7616 s//\1/ 7617 q 7618 } 7619 s/.*/./; q'` 7620 test -d "$as_dir" && break 7621 done 7622 test -z "$as_dirs" || eval "mkdir $as_dirs" 7623 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7624 7625 7626} # as_fn_mkdir_p 7627if mkdir -p . 2>/dev/null; then 7628 as_mkdir_p='mkdir -p "$as_dir"' 7629else 7630 test -d ./-p && rmdir ./-p 7631 as_mkdir_p=false 7632fi 7633 7634 7635# as_fn_executable_p FILE 7636# ----------------------- 7637# Test if FILE is an executable regular file. 7638as_fn_executable_p () 7639{ 7640 test -f "$1" && test -x "$1" 7641} # as_fn_executable_p 7642as_test_x='test -x' 7643as_executable_p=as_fn_executable_p 7644 7645# Sed expression to map a string onto a valid CPP name. 7646as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7647 7648# Sed expression to map a string onto a valid variable name. 7649as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7650 7651 7652exec 6>&1 7653## ----------------------------------- ## 7654## Main body of $CONFIG_STATUS script. ## 7655## ----------------------------------- ## 7656_ASEOF 7657test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7658 7659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7660# Save the log message, to keep $0 and so on meaningful, and to 7661# report actual input values of CONFIG_FILES etc. instead of their 7662# values after options handling. 7663ac_log=" 7664This file was extended by hitch $as_me 1.7.0, which was 7665generated by GNU Autoconf 2.69. Invocation command line was 7666 7667 CONFIG_FILES = $CONFIG_FILES 7668 CONFIG_HEADERS = $CONFIG_HEADERS 7669 CONFIG_LINKS = $CONFIG_LINKS 7670 CONFIG_COMMANDS = $CONFIG_COMMANDS 7671 $ $0 $@ 7672 7673on `(hostname || uname -n) 2>/dev/null | sed 1q` 7674" 7675 7676_ACEOF 7677 7678case $ac_config_files in *" 7679"*) set x $ac_config_files; shift; ac_config_files=$*;; 7680esac 7681 7682case $ac_config_headers in *" 7683"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7684esac 7685 7686 7687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7688# Files that config.status was made for. 7689config_files="$ac_config_files" 7690config_headers="$ac_config_headers" 7691config_commands="$ac_config_commands" 7692 7693_ACEOF 7694 7695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7696ac_cs_usage="\ 7697\`$as_me' instantiates files and other configuration actions 7698from templates according to the current configuration. Unless the files 7699and actions are specified as TAGs, all are instantiated by default. 7700 7701Usage: $0 [OPTION]... [TAG]... 7702 7703 -h, --help print this help, then exit 7704 -V, --version print version number and configuration settings, then exit 7705 --config print configuration, then exit 7706 -q, --quiet, --silent 7707 do not print progress messages 7708 -d, --debug don't remove temporary files 7709 --recheck update $as_me by reconfiguring in the same conditions 7710 --file=FILE[:TEMPLATE] 7711 instantiate the configuration file FILE 7712 --header=FILE[:TEMPLATE] 7713 instantiate the configuration header FILE 7714 7715Configuration files: 7716$config_files 7717 7718Configuration headers: 7719$config_headers 7720 7721Configuration commands: 7722$config_commands 7723 7724Report bugs to <opensource@varnish-software.com>." 7725 7726_ACEOF 7727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7728ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7729ac_cs_version="\\ 7730hitch config.status 1.7.0 7731configured by $0, generated by GNU Autoconf 2.69, 7732 with options \\"\$ac_cs_config\\" 7733 7734Copyright (C) 2012 Free Software Foundation, Inc. 7735This config.status script is free software; the Free Software Foundation 7736gives unlimited permission to copy, distribute and modify it." 7737 7738ac_pwd='$ac_pwd' 7739srcdir='$srcdir' 7740INSTALL='$INSTALL' 7741MKDIR_P='$MKDIR_P' 7742AWK='$AWK' 7743test -n "\$AWK" || AWK=awk 7744_ACEOF 7745 7746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7747# The default lists apply if the user does not specify any file. 7748ac_need_defaults=: 7749while test $# != 0 7750do 7751 case $1 in 7752 --*=?*) 7753 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7755 ac_shift=: 7756 ;; 7757 --*=) 7758 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7759 ac_optarg= 7760 ac_shift=: 7761 ;; 7762 *) 7763 ac_option=$1 7764 ac_optarg=$2 7765 ac_shift=shift 7766 ;; 7767 esac 7768 7769 case $ac_option in 7770 # Handling of the options. 7771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7772 ac_cs_recheck=: ;; 7773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7774 $as_echo "$ac_cs_version"; exit ;; 7775 --config | --confi | --conf | --con | --co | --c ) 7776 $as_echo "$ac_cs_config"; exit ;; 7777 --debug | --debu | --deb | --de | --d | -d ) 7778 debug=: ;; 7779 --file | --fil | --fi | --f ) 7780 $ac_shift 7781 case $ac_optarg in 7782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7783 '') as_fn_error $? "missing file argument" ;; 7784 esac 7785 as_fn_append CONFIG_FILES " '$ac_optarg'" 7786 ac_need_defaults=false;; 7787 --header | --heade | --head | --hea ) 7788 $ac_shift 7789 case $ac_optarg in 7790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7791 esac 7792 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7793 ac_need_defaults=false;; 7794 --he | --h) 7795 # Conflict between --help and --header 7796 as_fn_error $? "ambiguous option: \`$1' 7797Try \`$0 --help' for more information.";; 7798 --help | --hel | -h ) 7799 $as_echo "$ac_cs_usage"; exit ;; 7800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7801 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7802 ac_cs_silent=: ;; 7803 7804 # This is an error. 7805 -*) as_fn_error $? "unrecognized option: \`$1' 7806Try \`$0 --help' for more information." ;; 7807 7808 *) as_fn_append ac_config_targets " $1" 7809 ac_need_defaults=false ;; 7810 7811 esac 7812 shift 7813done 7814 7815ac_configure_extra_args= 7816 7817if $ac_cs_silent; then 7818 exec 6>/dev/null 7819 ac_configure_extra_args="$ac_configure_extra_args --silent" 7820fi 7821 7822_ACEOF 7823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7824if \$ac_cs_recheck; then 7825 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7826 shift 7827 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7828 CONFIG_SHELL='$SHELL' 7829 export CONFIG_SHELL 7830 exec "\$@" 7831fi 7832 7833_ACEOF 7834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7835exec 5>>config.log 7836{ 7837 echo 7838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7839## Running $as_me. ## 7840_ASBOX 7841 $as_echo "$ac_log" 7842} >&5 7843 7844_ACEOF 7845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7846# 7847# INIT-COMMANDS 7848# 7849AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 7850 7851_ACEOF 7852 7853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7854 7855# Handling of arguments. 7856for ac_config_target in $ac_config_targets 7857do 7858 case $ac_config_target in 7859 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7860 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 7861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7862 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 7863 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 7864 7865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7866 esac 7867done 7868 7869 7870# If the user did not use the arguments to specify the items to instantiate, 7871# then the envvar interface is used. Set only those that are not. 7872# We use the long form for the default assignment because of an extremely 7873# bizarre bug on SunOS 4.1.3. 7874if $ac_need_defaults; then 7875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7878fi 7879 7880# Have a temporary directory for convenience. Make it in the build tree 7881# simply because there is no reason against having it here, and in addition, 7882# creating and moving files from /tmp can sometimes cause problems. 7883# Hook for its removal unless debugging. 7884# Note that there is a small window in which the directory will not be cleaned: 7885# after its creation but before its name has been assigned to `$tmp'. 7886$debug || 7887{ 7888 tmp= ac_tmp= 7889 trap 'exit_status=$? 7890 : "${ac_tmp:=$tmp}" 7891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7892' 0 7893 trap 'as_fn_exit 1' 1 2 13 15 7894} 7895# Create a (secure) tmp directory for tmp files. 7896 7897{ 7898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7899 test -d "$tmp" 7900} || 7901{ 7902 tmp=./conf$$-$RANDOM 7903 (umask 077 && mkdir "$tmp") 7904} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7905ac_tmp=$tmp 7906 7907# Set up the scripts for CONFIG_FILES section. 7908# No need to generate them if there are no CONFIG_FILES. 7909# This happens for instance with `./config.status config.h'. 7910if test -n "$CONFIG_FILES"; then 7911 7912 7913ac_cr=`echo X | tr X '\015'` 7914# On cygwin, bash can eat \r inside `` if the user requested igncr. 7915# But we know of no other shell where ac_cr would be empty at this 7916# point, so we can use a bashism as a fallback. 7917if test "x$ac_cr" = x; then 7918 eval ac_cr=\$\'\\r\' 7919fi 7920ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7921if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7922 ac_cs_awk_cr='\\r' 7923else 7924 ac_cs_awk_cr=$ac_cr 7925fi 7926 7927echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7928_ACEOF 7929 7930 7931{ 7932 echo "cat >conf$$subs.awk <<_ACEOF" && 7933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7934 echo "_ACEOF" 7935} >conf$$subs.sh || 7936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7937ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7938ac_delim='%!_!# ' 7939for ac_last_try in false false false false false :; do 7940 . ./conf$$subs.sh || 7941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7942 7943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7944 if test $ac_delim_n = $ac_delim_num; then 7945 break 7946 elif $ac_last_try; then 7947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7948 else 7949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7950 fi 7951done 7952rm -f conf$$subs.sh 7953 7954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7955cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7956_ACEOF 7957sed -n ' 7958h 7959s/^/S["/; s/!.*/"]=/ 7960p 7961g 7962s/^[^!]*!// 7963:repl 7964t repl 7965s/'"$ac_delim"'$// 7966t delim 7967:nl 7968h 7969s/\(.\{148\}\)..*/\1/ 7970t more1 7971s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7972p 7973n 7974b repl 7975:more1 7976s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7977p 7978g 7979s/.\{148\}// 7980t nl 7981:delim 7982h 7983s/\(.\{148\}\)..*/\1/ 7984t more2 7985s/["\\]/\\&/g; s/^/"/; s/$/"/ 7986p 7987b 7988:more2 7989s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7990p 7991g 7992s/.\{148\}// 7993t delim 7994' <conf$$subs.awk | sed ' 7995/^[^""]/{ 7996 N 7997 s/\n// 7998} 7999' >>$CONFIG_STATUS || ac_write_fail=1 8000rm -f conf$$subs.awk 8001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8002_ACAWK 8003cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8004 for (key in S) S_is_set[key] = 1 8005 FS = "" 8006 8007} 8008{ 8009 line = $ 0 8010 nfields = split(line, field, "@") 8011 substed = 0 8012 len = length(field[1]) 8013 for (i = 2; i < nfields; i++) { 8014 key = field[i] 8015 keylen = length(key) 8016 if (S_is_set[key]) { 8017 value = S[key] 8018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8019 len += length(value) + length(field[++i]) 8020 substed = 1 8021 } else 8022 len += 1 + keylen 8023 } 8024 8025 print line 8026} 8027 8028_ACAWK 8029_ACEOF 8030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8031if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8033else 8034 cat 8035fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8037_ACEOF 8038 8039# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8040# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8041# trailing colons and then remove the whole line if VPATH becomes empty 8042# (actually we leave an empty line to preserve line numbers). 8043if test "x$srcdir" = x.; then 8044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8045h 8046s/// 8047s/^/:/ 8048s/[ ]*$/:/ 8049s/:\$(srcdir):/:/g 8050s/:\${srcdir}:/:/g 8051s/:@srcdir@:/:/g 8052s/^:*// 8053s/:*$// 8054x 8055s/\(=[ ]*\).*/\1/ 8056G 8057s/\n// 8058s/^[^=]*=[ ]*$// 8059}' 8060fi 8061 8062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8063fi # test -n "$CONFIG_FILES" 8064 8065# Set up the scripts for CONFIG_HEADERS section. 8066# No need to generate them if there are no CONFIG_HEADERS. 8067# This happens for instance with `./config.status Makefile'. 8068if test -n "$CONFIG_HEADERS"; then 8069cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8070BEGIN { 8071_ACEOF 8072 8073# Transform confdefs.h into an awk script `defines.awk', embedded as 8074# here-document in config.status, that substitutes the proper values into 8075# config.h.in to produce config.h. 8076 8077# Create a delimiter string that does not exist in confdefs.h, to ease 8078# handling of long lines. 8079ac_delim='%!_!# ' 8080for ac_last_try in false false :; do 8081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8082 if test -z "$ac_tt"; then 8083 break 8084 elif $ac_last_try; then 8085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8086 else 8087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8088 fi 8089done 8090 8091# For the awk script, D is an array of macro values keyed by name, 8092# likewise P contains macro parameters if any. Preserve backslash 8093# newline sequences. 8094 8095ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8096sed -n ' 8097s/.\{148\}/&'"$ac_delim"'/g 8098t rset 8099:rset 8100s/^[ ]*#[ ]*define[ ][ ]*/ / 8101t def 8102d 8103:def 8104s/\\$// 8105t bsnl 8106s/["\\]/\\&/g 8107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8108D["\1"]=" \3"/p 8109s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8110d 8111:bsnl 8112s/["\\]/\\&/g 8113s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8114D["\1"]=" \3\\\\\\n"\\/p 8115t cont 8116s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8117t cont 8118d 8119:cont 8120n 8121s/.\{148\}/&'"$ac_delim"'/g 8122t clear 8123:clear 8124s/\\$// 8125t bsnlc 8126s/["\\]/\\&/g; s/^/"/; s/$/"/p 8127d 8128:bsnlc 8129s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8130b cont 8131' <confdefs.h | sed ' 8132s/'"$ac_delim"'/"\\\ 8133"/g' >>$CONFIG_STATUS || ac_write_fail=1 8134 8135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8136 for (key in D) D_is_set[key] = 1 8137 FS = "" 8138} 8139/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8140 line = \$ 0 8141 split(line, arg, " ") 8142 if (arg[1] == "#") { 8143 defundef = arg[2] 8144 mac1 = arg[3] 8145 } else { 8146 defundef = substr(arg[1], 2) 8147 mac1 = arg[2] 8148 } 8149 split(mac1, mac2, "(") #) 8150 macro = mac2[1] 8151 prefix = substr(line, 1, index(line, defundef) - 1) 8152 if (D_is_set[macro]) { 8153 # Preserve the white space surrounding the "#". 8154 print prefix "define", macro P[macro] D[macro] 8155 next 8156 } else { 8157 # Replace #undef with comments. This is necessary, for example, 8158 # in the case of _POSIX_SOURCE, which is predefined and required 8159 # on some systems where configure will not decide to define it. 8160 if (defundef == "undef") { 8161 print "/*", prefix defundef, macro, "*/" 8162 next 8163 } 8164 } 8165} 8166{ print } 8167_ACAWK 8168_ACEOF 8169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8171fi # test -n "$CONFIG_HEADERS" 8172 8173 8174eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 8175shift 8176for ac_tag 8177do 8178 case $ac_tag in 8179 :[FHLC]) ac_mode=$ac_tag; continue;; 8180 esac 8181 case $ac_mode$ac_tag in 8182 :[FHL]*:*);; 8183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8184 :[FH]-) ac_tag=-:-;; 8185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8186 esac 8187 ac_save_IFS=$IFS 8188 IFS=: 8189 set x $ac_tag 8190 IFS=$ac_save_IFS 8191 shift 8192 ac_file=$1 8193 shift 8194 8195 case $ac_mode in 8196 :L) ac_source=$1;; 8197 :[FH]) 8198 ac_file_inputs= 8199 for ac_f 8200 do 8201 case $ac_f in 8202 -) ac_f="$ac_tmp/stdin";; 8203 *) # Look for the file first in the build tree, then in the source tree 8204 # (if the path is not absolute). The absolute path cannot be DOS-style, 8205 # because $ac_f cannot contain `:'. 8206 test -f "$ac_f" || 8207 case $ac_f in 8208 [\\/$]*) false;; 8209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8210 esac || 8211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8212 esac 8213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8214 as_fn_append ac_file_inputs " '$ac_f'" 8215 done 8216 8217 # Let's still pretend it is `configure' which instantiates (i.e., don't 8218 # use $as_me), people would be surprised to read: 8219 # /* config.h. Generated by config.status. */ 8220 configure_input='Generated from '` 8221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8222 `' by configure.' 8223 if test x"$ac_file" != x-; then 8224 configure_input="$ac_file. $configure_input" 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8226$as_echo "$as_me: creating $ac_file" >&6;} 8227 fi 8228 # Neutralize special characters interpreted by sed in replacement strings. 8229 case $configure_input in #( 8230 *\&* | *\|* | *\\* ) 8231 ac_sed_conf_input=`$as_echo "$configure_input" | 8232 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8233 *) ac_sed_conf_input=$configure_input;; 8234 esac 8235 8236 case $ac_tag in 8237 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8239 esac 8240 ;; 8241 esac 8242 8243 ac_dir=`$as_dirname -- "$ac_file" || 8244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8245 X"$ac_file" : 'X\(//\)[^/]' \| \ 8246 X"$ac_file" : 'X\(//\)$' \| \ 8247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8248$as_echo X"$ac_file" | 8249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8250 s//\1/ 8251 q 8252 } 8253 /^X\(\/\/\)[^/].*/{ 8254 s//\1/ 8255 q 8256 } 8257 /^X\(\/\/\)$/{ 8258 s//\1/ 8259 q 8260 } 8261 /^X\(\/\).*/{ 8262 s//\1/ 8263 q 8264 } 8265 s/.*/./; q'` 8266 as_dir="$ac_dir"; as_fn_mkdir_p 8267 ac_builddir=. 8268 8269case "$ac_dir" in 8270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8271*) 8272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8273 # A ".." for each directory in $ac_dir_suffix. 8274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8275 case $ac_top_builddir_sub in 8276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8278 esac ;; 8279esac 8280ac_abs_top_builddir=$ac_pwd 8281ac_abs_builddir=$ac_pwd$ac_dir_suffix 8282# for backward compatibility: 8283ac_top_builddir=$ac_top_build_prefix 8284 8285case $srcdir in 8286 .) # We are building in place. 8287 ac_srcdir=. 8288 ac_top_srcdir=$ac_top_builddir_sub 8289 ac_abs_top_srcdir=$ac_pwd ;; 8290 [\\/]* | ?:[\\/]* ) # Absolute name. 8291 ac_srcdir=$srcdir$ac_dir_suffix; 8292 ac_top_srcdir=$srcdir 8293 ac_abs_top_srcdir=$srcdir ;; 8294 *) # Relative name. 8295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8296 ac_top_srcdir=$ac_top_build_prefix$srcdir 8297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8298esac 8299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8300 8301 8302 case $ac_mode in 8303 :F) 8304 # 8305 # CONFIG_FILE 8306 # 8307 8308 case $INSTALL in 8309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8311 esac 8312 ac_MKDIR_P=$MKDIR_P 8313 case $MKDIR_P in 8314 [\\/$]* | ?:[\\/]* ) ;; 8315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 8316 esac 8317_ACEOF 8318 8319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8320# If the template does not know about datarootdir, expand it. 8321# FIXME: This hack should be removed a few years after 2.60. 8322ac_datarootdir_hack=; ac_datarootdir_seen= 8323ac_sed_dataroot=' 8324/datarootdir/ { 8325 p 8326 q 8327} 8328/@datadir@/p 8329/@docdir@/p 8330/@infodir@/p 8331/@localedir@/p 8332/@mandir@/p' 8333case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8334*datarootdir*) ac_datarootdir_seen=yes;; 8335*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8337$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8338_ACEOF 8339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8340 ac_datarootdir_hack=' 8341 s&@datadir@&$datadir&g 8342 s&@docdir@&$docdir&g 8343 s&@infodir@&$infodir&g 8344 s&@localedir@&$localedir&g 8345 s&@mandir@&$mandir&g 8346 s&\\\${datarootdir}&$datarootdir&g' ;; 8347esac 8348_ACEOF 8349 8350# Neutralize VPATH when `$srcdir' = `.'. 8351# Shell code in configure.ac might set extrasub. 8352# FIXME: do we really want to maintain this feature? 8353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8354ac_sed_extra="$ac_vpsub 8355$extrasub 8356_ACEOF 8357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8358:t 8359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8360s|@configure_input@|$ac_sed_conf_input|;t t 8361s&@top_builddir@&$ac_top_builddir_sub&;t t 8362s&@top_build_prefix@&$ac_top_build_prefix&;t t 8363s&@srcdir@&$ac_srcdir&;t t 8364s&@abs_srcdir@&$ac_abs_srcdir&;t t 8365s&@top_srcdir@&$ac_top_srcdir&;t t 8366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8367s&@builddir@&$ac_builddir&;t t 8368s&@abs_builddir@&$ac_abs_builddir&;t t 8369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8370s&@INSTALL@&$ac_INSTALL&;t t 8371s&@MKDIR_P@&$ac_MKDIR_P&;t t 8372$ac_datarootdir_hack 8373" 8374eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8376 8377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8380 "$ac_tmp/out"`; test -z "$ac_out"; } && 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8382which seems to be undefined. Please make sure it is defined" >&5 8383$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8384which seems to be undefined. Please make sure it is defined" >&2;} 8385 8386 rm -f "$ac_tmp/stdin" 8387 case $ac_file in 8388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8390 esac \ 8391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8392 ;; 8393 :H) 8394 # 8395 # CONFIG_HEADER 8396 # 8397 if test x"$ac_file" != x-; then 8398 { 8399 $as_echo "/* $configure_input */" \ 8400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8401 } >"$ac_tmp/config.h" \ 8402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8405$as_echo "$as_me: $ac_file is unchanged" >&6;} 8406 else 8407 rm -f "$ac_file" 8408 mv "$ac_tmp/config.h" "$ac_file" \ 8409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8410 fi 8411 else 8412 $as_echo "/* $configure_input */" \ 8413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8414 || as_fn_error $? "could not create -" "$LINENO" 5 8415 fi 8416# Compute "$ac_file"'s index in $config_headers. 8417_am_arg="$ac_file" 8418_am_stamp_count=1 8419for _am_header in $config_headers :; do 8420 case $_am_header in 8421 $_am_arg | $_am_arg:* ) 8422 break ;; 8423 * ) 8424 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 8425 esac 8426done 8427echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 8428$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8429 X"$_am_arg" : 'X\(//\)[^/]' \| \ 8430 X"$_am_arg" : 'X\(//\)$' \| \ 8431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 8432$as_echo X"$_am_arg" | 8433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8434 s//\1/ 8435 q 8436 } 8437 /^X\(\/\/\)[^/].*/{ 8438 s//\1/ 8439 q 8440 } 8441 /^X\(\/\/\)$/{ 8442 s//\1/ 8443 q 8444 } 8445 /^X\(\/\).*/{ 8446 s//\1/ 8447 q 8448 } 8449 s/.*/./; q'`/stamp-h$_am_stamp_count 8450 ;; 8451 8452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8453$as_echo "$as_me: executing $ac_file commands" >&6;} 8454 ;; 8455 esac 8456 8457 8458 case $ac_file$ac_mode in 8459 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 8460 # Older Autoconf quotes --file arguments for eval, but not when files 8461 # are listed without --file. Let's play safe and only enable the eval 8462 # if we detect the quoting. 8463 # TODO: see whether this extra hack can be removed once we start 8464 # requiring Autoconf 2.70 or later. 8465 case $CONFIG_FILES in #( 8466 *\'*) : 8467 eval set x "$CONFIG_FILES" ;; #( 8468 *) : 8469 set x $CONFIG_FILES ;; #( 8470 *) : 8471 ;; 8472esac 8473 shift 8474 # Used to flag and report bootstrapping failures. 8475 am_rc=0 8476 for am_mf 8477 do 8478 # Strip MF so we end up with the name of the file. 8479 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 8480 # Check whether this is an Automake generated Makefile which includes 8481 # dependency-tracking related rules and includes. 8482 # Grep'ing the whole file directly is not great: AIX grep has a line 8483 # limit of 2048, but all sed's we know have understand at least 4000. 8484 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 8485 || continue 8486 am_dirpart=`$as_dirname -- "$am_mf" || 8487$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8488 X"$am_mf" : 'X\(//\)[^/]' \| \ 8489 X"$am_mf" : 'X\(//\)$' \| \ 8490 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 8491$as_echo X"$am_mf" | 8492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8493 s//\1/ 8494 q 8495 } 8496 /^X\(\/\/\)[^/].*/{ 8497 s//\1/ 8498 q 8499 } 8500 /^X\(\/\/\)$/{ 8501 s//\1/ 8502 q 8503 } 8504 /^X\(\/\).*/{ 8505 s//\1/ 8506 q 8507 } 8508 s/.*/./; q'` 8509 am_filepart=`$as_basename -- "$am_mf" || 8510$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 8511 X"$am_mf" : 'X\(//\)$' \| \ 8512 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 8513$as_echo X/"$am_mf" | 8514 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8515 s//\1/ 8516 q 8517 } 8518 /^X\/\(\/\/\)$/{ 8519 s//\1/ 8520 q 8521 } 8522 /^X\/\(\/\).*/{ 8523 s//\1/ 8524 q 8525 } 8526 s/.*/./; q'` 8527 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 8528 && sed -e '/# am--include-marker/d' "$am_filepart" \ 8529 | $MAKE -f - am--depfiles" >&5 8530 (cd "$am_dirpart" \ 8531 && sed -e '/# am--include-marker/d' "$am_filepart" \ 8532 | $MAKE -f - am--depfiles) >&5 2>&5 8533 ac_status=$? 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); } || am_rc=$? 8536 done 8537 if test $am_rc -ne 0; then 8538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8540as_fn_error $? "Something went wrong bootstrapping makefile fragments 8541 for automatic dependency tracking. Try re-running configure with the 8542 '--disable-dependency-tracking' option to at least be able to build 8543 the package (albeit without support for automatic dependency tracking). 8544See \`config.log' for more details" "$LINENO" 5; } 8545 fi 8546 { am_dirpart=; unset am_dirpart;} 8547 { am_filepart=; unset am_filepart;} 8548 { am_mf=; unset am_mf;} 8549 { am_rc=; unset am_rc;} 8550 rm -f conftest-deps.mk 8551} 8552 ;; 8553 8554 esac 8555done # for ac_tag 8556 8557 8558as_fn_exit 0 8559_ACEOF 8560ac_clean_files=$ac_clean_files_save 8561 8562test $ac_write_fail = 0 || 8563 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8564 8565 8566# configure is writing to config.log, and then calls config.status. 8567# config.status does its own redirection, appending to config.log. 8568# Unfortunately, on DOS this fails, as config.log is still kept open 8569# by configure, so config.status won't be able to write to it; its 8570# output is simply discarded. So we exec the FD to /dev/null, 8571# effectively closing config.log, so it can be properly (re)opened and 8572# appended to by config.status. When coming back to configure, we 8573# need to make the FD available again. 8574if test "$no_create" != yes; then 8575 ac_cs_success=: 8576 ac_config_status_args= 8577 test "$silent" = yes && 8578 ac_config_status_args="$ac_config_status_args --quiet" 8579 exec 5>/dev/null 8580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8581 exec 5>>config.log 8582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8583 # would make configure fail if this is the last instruction. 8584 $ac_cs_success || as_fn_exit 1 8585fi 8586if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8588$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8589fi 8590 8591