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