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