1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for mosh 1.3.2. 4# 5# Report bugs to <mosh-devel@mit.edu>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and mosh-devel@mit.edu 270$0: about your system, including any error possibly output 271$0: before this message. Then install a modern shell, or 272$0: manually run the script under such a shell if you do 273$0: have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='mosh' 582PACKAGE_TARNAME='mosh' 583PACKAGE_VERSION='1.3.2' 584PACKAGE_STRING='mosh 1.3.2' 585PACKAGE_BUGREPORT='mosh-devel@mit.edu' 586PACKAGE_URL='' 587 588ac_unique_file="src/frontend/mosh-client.cc" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='am__EXEEXT_FALSE 626am__EXEEXT_TRUE 627LTLIBOBJS 628LIBOBJS 629completions 630BASH_COMPLETION_LIBS 631BASH_COMPLETION_CFLAGS 632protobuf_LIBS 633protobuf_CFLAGS 634CRYPTO_LDFLAGS 635CRYPTO_CPPFLAGS 636CRYPTO_LIBS 637CRYPTO_CFLAGS 638CURSES_LIB 639TINFO_LDFLAGS 640TINFO_CPPFLAGS 641TINFO_LIBS 642TINFO_CFLAGS 643PKG_CONFIG_LIBDIR 644PKG_CONFIG_PATH 645PKG_CONFIG 646CXXCPP 647EGREP 648GREP 649CPP 650INSTALL_COMPLETION_FALSE 651INSTALL_COMPLETION_TRUE 652INSTALL_UFW_FALSE 653INSTALL_UFW_TRUE 654BUILD_EXAMPLES_FALSE 655BUILD_EXAMPLES_TRUE 656BUILD_SERVER_FALSE 657BUILD_SERVER_TRUE 658BUILD_CLIENT_FALSE 659BUILD_CLIENT_TRUE 660MISC_CXXFLAGS 661HARDEN_LDFLAGS 662HARDEN_CFLAGS 663PICKY_CXXFLAGS 664WARNING_CXXFLAGS 665ac_ct_AR 666AR 667PROTOC 668RANLIB 669am__fastdepCXX_FALSE 670am__fastdepCXX_TRUE 671CXXDEPMODE 672ac_ct_CXX 673CXXFLAGS 674CXX 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__quote 683am__include 684DEPDIR 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696am__untar 697am__tar 698AMTAR 699am__leading_dot 700SET_MAKE 701AWK 702mkdir_p 703MKDIR_P 704INSTALL_STRIP_PROGRAM 705STRIP 706install_sh 707MAKEINFO 708AUTOHEADER 709AUTOMAKE 710AUTOCONF 711ACLOCAL 712VERSION 713PACKAGE 714CYGPATH_W 715am__isrc 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719target_alias 720host_alias 721build_alias 722LIBS 723ECHO_T 724ECHO_N 725ECHO_C 726DEFS 727mandir 728localedir 729libdir 730psdir 731pdfdir 732dvidir 733htmldir 734infodir 735docdir 736oldincludedir 737includedir 738runstatedir 739localstatedir 740sharedstatedir 741sysconfdir 742datadir 743datarootdir 744libexecdir 745sbindir 746bindir 747program_transform_name 748prefix 749exec_prefix 750PACKAGE_URL 751PACKAGE_BUGREPORT 752PACKAGE_STRING 753PACKAGE_VERSION 754PACKAGE_TARNAME 755PACKAGE_NAME 756PATH_SEPARATOR 757SHELL' 758ac_subst_files='' 759ac_user_opts=' 760enable_option_checking 761enable_silent_rules 762enable_dependency_tracking 763enable_compile_warnings 764enable_hardening 765enable_client 766enable_server 767enable_examples 768enable_ufw 769enable_completion 770with_utempter 771with_curses 772with_ncurses 773with_ncursesw 774with_crypto_library 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CXX 785CXXFLAGS 786CCC 787CPP 788CXXCPP 789PKG_CONFIG 790PKG_CONFIG_PATH 791PKG_CONFIG_LIBDIR 792TINFO_CFLAGS 793TINFO_LIBS 794TINFO_CPPFLAGS 795TINFO_LDFLAGS 796CURSES_LIB 797CRYPTO_CFLAGS 798CRYPTO_LIBS 799CRYPTO_CPPFLAGS 800CRYPTO_LDFLAGS 801protobuf_CFLAGS 802protobuf_LIBS 803BASH_COMPLETION_CFLAGS 804BASH_COMPLETION_LIBS' 805 806 807# Initialize some variables set by options. 808ac_init_help= 809ac_init_version=false 810ac_unrecognized_opts= 811ac_unrecognized_sep= 812# The variables have the same names as the options, with 813# dashes changed to underlines. 814cache_file=/dev/null 815exec_prefix=NONE 816no_create= 817no_recursion= 818prefix=NONE 819program_prefix=NONE 820program_suffix=NONE 821program_transform_name=s,x,x, 822silent= 823site= 824srcdir= 825verbose= 826x_includes=NONE 827x_libraries=NONE 828 829# Installation directory options. 830# These are left unexpanded so users can "make install exec_prefix=/foo" 831# and all the variables that are supposed to be based on exec_prefix 832# by default will actually change. 833# Use braces instead of parens because sh, perl, etc. also accept them. 834# (The list follows the same order as the GNU Coding Standards.) 835bindir='${exec_prefix}/bin' 836sbindir='${exec_prefix}/sbin' 837libexecdir='${exec_prefix}/libexec' 838datarootdir='${prefix}/share' 839datadir='${datarootdir}' 840sysconfdir='${prefix}/etc' 841sharedstatedir='${prefix}/com' 842localstatedir='${prefix}/var' 843runstatedir='${localstatedir}/run' 844includedir='${prefix}/include' 845oldincludedir='/usr/include' 846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 847infodir='${datarootdir}/info' 848htmldir='${docdir}' 849dvidir='${docdir}' 850pdfdir='${docdir}' 851psdir='${docdir}' 852libdir='${exec_prefix}/lib' 853localedir='${datarootdir}/locale' 854mandir='${datarootdir}/man' 855 856ac_prev= 857ac_dashdash= 858for ac_option 859do 860 # If the previous option needs an argument, assign it. 861 if test -n "$ac_prev"; then 862 eval $ac_prev=\$ac_option 863 ac_prev= 864 continue 865 fi 866 867 case $ac_option in 868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 869 *=) ac_optarg= ;; 870 *) ac_optarg=yes ;; 871 esac 872 873 # Accept the important Cygnus configure options, so we can diagnose typos. 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 1065 -program-transform-name | --program-transform-name \ 1066 | --program-transform-nam | --program-transform-na \ 1067 | --program-transform-n | --program-transform- \ 1068 | --program-transform | --program-transfor \ 1069 | --program-transfo | --program-transf \ 1070 | --program-trans | --program-tran \ 1071 | --progr-tra | --program-tr | --program-t) 1072 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1097 | --runstate | --runstat | --runsta | --runst | --runs \ 1098 | --run | --ru | --r) 1099 ac_prev=runstatedir ;; 1100 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1101 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1102 | --run=* | --ru=* | --r=*) 1103 runstatedir=$ac_optarg ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"with_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1201Try \`$0 --help' for more information" 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220 ;; 1221 1222 esac 1223done 1224 1225if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error $? "missing argument to $ac_option" 1228fi 1229 1230if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236fi 1237 1238# Check all directory arguments for consistency. 1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir runstatedir 1243do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257done 1258 1259# There might be people who depend on the old broken behavior: `$host' 1260# used to hold the argument of --host etc. 1261# FIXME: To remove some day. 1262build=$build_alias 1263host=$host_alias 1264target=$target_alias 1265 1266# FIXME: To remove some day. 1267if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error $? "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error $? "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298$as_echo X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures mosh 1.3.2 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking ...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1396 --libdir=DIR object code libraries [EPREFIX/lib] 1397 --includedir=DIR C header files [PREFIX/include] 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1401 --infodir=DIR info documentation [DATAROOTDIR/info] 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1403 --mandir=DIR man documentation [DATAROOTDIR/man] 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/mosh] 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of mosh 1.3.2:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --enable-silent-rules less verbose build output (undo: "make V=1") 1431 --disable-silent-rules verbose build output (undo: "make V=0") 1432 --enable-dependency-tracking 1433 do not reject slow dependency extractors 1434 --disable-dependency-tracking 1435 speeds up one-time build 1436 --enable-compile-warnings[=no/yes/maximum/error/distcheck] 1437 Turn on compiler warnings 1438 --enable-hardening Enable compiler and linker options to frustrate 1439 memory corruption exploits [yes] 1440 --enable-client Build the mosh-client program [yes] 1441 --enable-server Build the mosh-server program [yes] 1442 --enable-examples Build the miscellaneous programs in src/examples 1443 [no] 1444 --enable-ufw Install firewall profile for ufw (Uncomplicated 1445 Firewall) [no] 1446 --enable-completion Install bash_completion rule [no] 1447 1448Optional Packages: 1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1451 --with-utempter write utmp entries using libutempter [check] 1452 --with-curses=DIR Where curses is installed 1453 --with-ncurses force the use of Ncurses or NcursesW 1454 --without-ncursesw do not use NcursesW (wide character support) 1455 --with-crypto-library=library 1456 build with the given crypto library, 1457 TYPE=openssl|nettle|apple-common-crypto 1458 [default=openssl] 1459 1460Some influential environment variables: 1461 CC C compiler command 1462 CFLAGS C compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 LIBS libraries to pass to the linker, e.g. -l<library> 1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467 you have headers in a nonstandard directory <include dir> 1468 CXX C++ compiler command 1469 CXXFLAGS C++ compiler flags 1470 CPP C preprocessor 1471 CXXCPP C++ preprocessor 1472 PKG_CONFIG path to pkg-config utility 1473 PKG_CONFIG_PATH 1474 directories to add to pkg-config's search path 1475 PKG_CONFIG_LIBDIR 1476 path overriding pkg-config's built-in search path 1477 TINFO_CFLAGS 1478 C compiler flags for TINFO, overriding pkg-config 1479 TINFO_LIBS linker flags for TINFO, overriding pkg-config 1480 TINFO_CPPFLAGS 1481 C preprocessor flags for TINFO headers 1482 TINFO_LDFLAGS 1483 linker flags for TINFO libraries 1484 CURSES_LIB linker library for Curses, e.g. -lcurses 1485 CRYPTO_CFLAGS 1486 C compiler flags for CRYPTO, overriding pkg-config 1487 CRYPTO_LIBS linker flags for CRYPTO, overriding pkg-config 1488 CRYPTO_CPPFLAGS 1489 C preprocessor flags for CRYPTO headers 1490 CRYPTO_LDFLAGS 1491 linker flags for CRYPTO libraries 1492 protobuf_CFLAGS 1493 C compiler flags for protobuf, overriding pkg-config 1494 protobuf_LIBS 1495 linker flags for protobuf, overriding pkg-config 1496 BASH_COMPLETION_CFLAGS 1497 C compiler flags for BASH_COMPLETION, overriding pkg-config 1498 BASH_COMPLETION_LIBS 1499 linker flags for BASH_COMPLETION, overriding pkg-config 1500 1501Use these variables to override the choices made by `configure' or to help 1502it to find libraries and programs with nonstandard names/locations. 1503 1504Report bugs to <mosh-devel@mit.edu>. 1505_ACEOF 1506ac_status=$? 1507fi 1508 1509if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567mosh configure 1.3.2 1568generated by GNU Autoconf 2.69 1569 1570Copyright (C) 2012 Free Software Foundation, Inc. 1571This configure script is free software; the Free Software Foundation 1572gives unlimited permission to copy, distribute and modify it. 1573_ACEOF 1574 exit 1575fi 1576 1577## ------------------------ ## 1578## Autoconf initialization. ## 1579## ------------------------ ## 1580 1581# ac_fn_c_try_compile LINENO 1582# -------------------------- 1583# Try to compile conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_compile () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext 1588 if { { ac_try="$ac_compile" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_compile") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest.$ac_objext; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_compile 1618 1619# ac_fn_cxx_try_compile LINENO 1620# ---------------------------- 1621# Try to compile conftest.$ac_ext, and return whether this succeeded. 1622ac_fn_cxx_try_compile () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 rm -f conftest.$ac_objext 1626 if { { ac_try="$ac_compile" 1627case "(($ac_try" in 1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 *) ac_try_echo=$ac_try;; 1630esac 1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632$as_echo "$ac_try_echo"; } >&5 1633 (eval "$ac_compile") 2>conftest.err 1634 ac_status=$? 1635 if test -s conftest.err; then 1636 grep -v '^ *+' conftest.err >conftest.er1 1637 cat conftest.er1 >&5 1638 mv -f conftest.er1 conftest.err 1639 fi 1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 test $ac_status = 0; } && { 1642 test -z "$ac_cxx_werror_flag" || 1643 test ! -s conftest.err 1644 } && test -s conftest.$ac_objext; then : 1645 ac_retval=0 1646else 1647 $as_echo "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=1 1651fi 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655} # ac_fn_cxx_try_compile 1656 1657# ac_fn_c_try_link LINENO 1658# ----------------------- 1659# Try to link conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_c_try_link () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext conftest$ac_exeext 1664 if { { ac_try="$ac_link" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_link") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest$ac_exeext && { 1683 test "$cross_compiling" = yes || 1684 test -x conftest$ac_exeext 1685 }; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1695 # interfere with the next link command; also delete a directory that is 1696 # left behind by Apple's compiler. We do this before executing the actions. 1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 as_fn_set_status $ac_retval 1700 1701} # ac_fn_c_try_link 1702 1703# ac_fn_cxx_try_link LINENO 1704# ------------------------- 1705# Try to link conftest.$ac_ext, and return whether this succeeded. 1706ac_fn_cxx_try_link () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 rm -f conftest.$ac_objext conftest$ac_exeext 1710 if { { ac_try="$ac_link" 1711case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_link") 2>conftest.err 1718 ac_status=$? 1719 if test -s conftest.err; then 1720 grep -v '^ *+' conftest.err >conftest.er1 1721 cat conftest.er1 >&5 1722 mv -f conftest.er1 conftest.err 1723 fi 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; } && { 1726 test -z "$ac_cxx_werror_flag" || 1727 test ! -s conftest.err 1728 } && test -s conftest$ac_exeext && { 1729 test "$cross_compiling" = yes || 1730 test -x conftest$ac_exeext 1731 }; then : 1732 ac_retval=0 1733else 1734 $as_echo "$as_me: failed program was:" >&5 1735sed 's/^/| /' conftest.$ac_ext >&5 1736 1737 ac_retval=1 1738fi 1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1741 # interfere with the next link command; also delete a directory that is 1742 # left behind by Apple's compiler. We do this before executing the actions. 1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_cxx_try_link 1748 1749# ac_fn_c_try_cpp LINENO 1750# ---------------------- 1751# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1752ac_fn_c_try_cpp () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 if { { ac_try="$ac_cpp conftest.$ac_ext" 1756case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761$as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1763 ac_status=$? 1764 if test -s conftest.err; then 1765 grep -v '^ *+' conftest.err >conftest.er1 1766 cat conftest.er1 >&5 1767 mv -f conftest.er1 conftest.err 1768 fi 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } > conftest.i && { 1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1772 test ! -s conftest.err 1773 }; then : 1774 ac_retval=0 1775else 1776 $as_echo "$as_me: failed program was:" >&5 1777sed 's/^/| /' conftest.$ac_ext >&5 1778 1779 ac_retval=1 1780fi 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 as_fn_set_status $ac_retval 1783 1784} # ac_fn_c_try_cpp 1785 1786# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1787# ------------------------------------------------------- 1788# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1789# the include files in INCLUDES and setting the cache variable VAR 1790# accordingly. 1791ac_fn_c_check_header_mongrel () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 if eval \${$3+:} false; then : 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796$as_echo_n "checking for $2... " >&6; } 1797if eval \${$3+:} false; then : 1798 $as_echo_n "(cached) " >&6 1799fi 1800eval ac_res=\$$3 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1802$as_echo "$ac_res" >&6; } 1803else 1804 # Is the header compilable? 1805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1806$as_echo_n "checking $2 usability... " >&6; } 1807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808/* end confdefs.h. */ 1809$4 1810#include <$2> 1811_ACEOF 1812if ac_fn_c_try_compile "$LINENO"; then : 1813 ac_header_compiler=yes 1814else 1815 ac_header_compiler=no 1816fi 1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1819$as_echo "$ac_header_compiler" >&6; } 1820 1821# Is the header present? 1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1823$as_echo_n "checking $2 presence... " >&6; } 1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825/* end confdefs.h. */ 1826#include <$2> 1827_ACEOF 1828if ac_fn_c_try_cpp "$LINENO"; then : 1829 ac_header_preproc=yes 1830else 1831 ac_header_preproc=no 1832fi 1833rm -f conftest.err conftest.i conftest.$ac_ext 1834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1835$as_echo "$ac_header_preproc" >&6; } 1836 1837# So? What about this header? 1838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1839 yes:no: ) 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1841$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1843$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1844 ;; 1845 no:yes:* ) 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1847$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1849$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1851$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1853$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1855$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1856( $as_echo "## --------------------------------- ## 1857## Report this to mosh-devel@mit.edu ## 1858## --------------------------------- ##" 1859 ) | sed "s/^/$as_me: WARNING: /" >&2 1860 ;; 1861esac 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1863$as_echo_n "checking for $2... " >&6; } 1864if eval \${$3+:} false; then : 1865 $as_echo_n "(cached) " >&6 1866else 1867 eval "$3=\$ac_header_compiler" 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872fi 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 1875} # ac_fn_c_check_header_mongrel 1876 1877# ac_fn_c_try_run LINENO 1878# ---------------------- 1879# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1880# that executables *can* be run. 1881ac_fn_c_try_run () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 if { { ac_try="$ac_link" 1885case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>&5 1892 ac_status=$? 1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1895 { { case "(($ac_try" in 1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1897 *) ac_try_echo=$ac_try;; 1898esac 1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1900$as_echo "$ac_try_echo"; } >&5 1901 (eval "$ac_try") 2>&5 1902 ac_status=$? 1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1904 test $ac_status = 0; }; }; then : 1905 ac_retval=0 1906else 1907 $as_echo "$as_me: program exited with status $ac_status" >&5 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=$ac_status 1912fi 1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_c_try_run 1918 1919# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1920# ------------------------------------------------------- 1921# Tests whether HEADER exists and can be compiled using the include files in 1922# INCLUDES, setting the cache variable VAR accordingly. 1923ac_fn_c_check_header_compile () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927$as_echo_n "checking for $2... " >&6; } 1928if eval \${$3+:} false; then : 1929 $as_echo_n "(cached) " >&6 1930else 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934#include <$2> 1935_ACEOF 1936if ac_fn_c_try_compile "$LINENO"; then : 1937 eval "$3=yes" 1938else 1939 eval "$3=no" 1940fi 1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1942fi 1943eval ac_res=\$$3 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1945$as_echo "$ac_res" >&6; } 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1947 1948} # ac_fn_c_check_header_compile 1949 1950# ac_fn_cxx_try_cpp LINENO 1951# ------------------------ 1952# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1953ac_fn_cxx_try_cpp () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 if { { ac_try="$ac_cpp conftest.$ac_ext" 1957case "(($ac_try" in 1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1959 *) ac_try_echo=$ac_try;; 1960esac 1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1962$as_echo "$ac_try_echo"; } >&5 1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1964 ac_status=$? 1965 if test -s conftest.err; then 1966 grep -v '^ *+' conftest.err >conftest.er1 1967 cat conftest.er1 >&5 1968 mv -f conftest.er1 conftest.err 1969 fi 1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1971 test $ac_status = 0; } > conftest.i && { 1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1973 test ! -s conftest.err 1974 }; then : 1975 ac_retval=0 1976else 1977 $as_echo "$as_me: failed program was:" >&5 1978sed 's/^/| /' conftest.$ac_ext >&5 1979 1980 ac_retval=1 1981fi 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 as_fn_set_status $ac_retval 1984 1985} # ac_fn_cxx_try_cpp 1986 1987# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1988# --------------------------------------------------------- 1989# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1990# the include files in INCLUDES and setting the cache variable VAR 1991# accordingly. 1992ac_fn_cxx_check_header_mongrel () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 if eval \${$3+:} false; then : 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if eval \${$3+:} false; then : 1999 $as_echo_n "(cached) " >&6 2000fi 2001eval ac_res=\$$3 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2003$as_echo "$ac_res" >&6; } 2004else 2005 # Is the header compilable? 2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2007$as_echo_n "checking $2 usability... " >&6; } 2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010$4 2011#include <$2> 2012_ACEOF 2013if ac_fn_cxx_try_compile "$LINENO"; then : 2014 ac_header_compiler=yes 2015else 2016 ac_header_compiler=no 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2020$as_echo "$ac_header_compiler" >&6; } 2021 2022# Is the header present? 2023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2024$as_echo_n "checking $2 presence... " >&6; } 2025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027#include <$2> 2028_ACEOF 2029if ac_fn_cxx_try_cpp "$LINENO"; then : 2030 ac_header_preproc=yes 2031else 2032 ac_header_preproc=no 2033fi 2034rm -f conftest.err conftest.i conftest.$ac_ext 2035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2036$as_echo "$ac_header_preproc" >&6; } 2037 2038# So? What about this header? 2039case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2040 yes:no: ) 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2042$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2045 ;; 2046 no:yes:* ) 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2048$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2050$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2052$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2054$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2056$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2057( $as_echo "## --------------------------------- ## 2058## Report this to mosh-devel@mit.edu ## 2059## --------------------------------- ##" 2060 ) | sed "s/^/$as_me: WARNING: /" >&2 2061 ;; 2062esac 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2064$as_echo_n "checking for $2... " >&6; } 2065if eval \${$3+:} false; then : 2066 $as_echo_n "(cached) " >&6 2067else 2068 eval "$3=\$ac_header_compiler" 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073fi 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 2076} # ac_fn_cxx_check_header_mongrel 2077 2078# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2079# ------------------------------------------- 2080# Tests whether TYPE exists after having included INCLUDES, setting cache 2081# variable VAR accordingly. 2082ac_fn_c_check_type () 2083{ 2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2086$as_echo_n "checking for $2... " >&6; } 2087if eval \${$3+:} false; then : 2088 $as_echo_n "(cached) " >&6 2089else 2090 eval "$3=no" 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093$4 2094int 2095main () 2096{ 2097if (sizeof ($2)) 2098 return 0; 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO"; then : 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107int 2108main () 2109{ 2110if (sizeof (($2))) 2111 return 0; 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116if ac_fn_c_try_compile "$LINENO"; then : 2117 2118else 2119 eval "$3=yes" 2120fi 2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124fi 2125eval ac_res=\$$3 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2127$as_echo "$ac_res" >&6; } 2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2129 2130} # ac_fn_c_check_type 2131 2132# ac_fn_c_find_intX_t LINENO BITS VAR 2133# ----------------------------------- 2134# Finds a signed integer type with width BITS, setting cache variable VAR 2135# accordingly. 2136ac_fn_c_find_intX_t () 2137{ 2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2140$as_echo_n "checking for int$2_t... " >&6; } 2141if eval \${$3+:} false; then : 2142 $as_echo_n "(cached) " >&6 2143else 2144 eval "$3=no" 2145 # Order is important - never check a type that is potentially smaller 2146 # than half of the expected target width. 2147 for ac_type in int$2_t 'int' 'long int' \ 2148 'long long int' 'short int' 'signed char'; do 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151$ac_includes_default 2152 enum { N = $2 / 2 - 1 }; 2153int 2154main () 2155{ 2156static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2157test_array [0] = 0; 2158return test_array [0]; 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166/* end confdefs.h. */ 2167$ac_includes_default 2168 enum { N = $2 / 2 - 1 }; 2169int 2170main () 2171{ 2172static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2173 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2174test_array [0] = 0; 2175return test_array [0]; 2176 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 2183else 2184 case $ac_type in #( 2185 int$2_t) : 2186 eval "$3=yes" ;; #( 2187 *) : 2188 eval "$3=\$ac_type" ;; 2189esac 2190fi 2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2192fi 2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2194 if eval test \"x\$"$3"\" = x"no"; then : 2195 2196else 2197 break 2198fi 2199 done 2200fi 2201eval ac_res=\$$3 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2203$as_echo "$ac_res" >&6; } 2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2205 2206} # ac_fn_c_find_intX_t 2207 2208# ac_fn_c_find_uintX_t LINENO BITS VAR 2209# ------------------------------------ 2210# Finds an unsigned integer type with width BITS, setting cache variable VAR 2211# accordingly. 2212ac_fn_c_find_uintX_t () 2213{ 2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2216$as_echo_n "checking for uint$2_t... " >&6; } 2217if eval \${$3+:} false; then : 2218 $as_echo_n "(cached) " >&6 2219else 2220 eval "$3=no" 2221 # Order is important - never check a type that is potentially smaller 2222 # than half of the expected target width. 2223 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2224 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$ac_includes_default 2228int 2229main () 2230{ 2231static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2232test_array [0] = 0; 2233return test_array [0]; 2234 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239if ac_fn_c_try_compile "$LINENO"; then : 2240 case $ac_type in #( 2241 uint$2_t) : 2242 eval "$3=yes" ;; #( 2243 *) : 2244 eval "$3=\$ac_type" ;; 2245esac 2246fi 2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2248 if eval test \"x\$"$3"\" = x"no"; then : 2249 2250else 2251 break 2252fi 2253 done 2254fi 2255eval ac_res=\$$3 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2257$as_echo "$ac_res" >&6; } 2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2259 2260} # ac_fn_c_find_uintX_t 2261 2262# ac_fn_c_check_func LINENO FUNC VAR 2263# ---------------------------------- 2264# Tests whether FUNC exists, setting the cache variable VAR accordingly 2265ac_fn_c_check_func () 2266{ 2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2269$as_echo_n "checking for $2... " >&6; } 2270if eval \${$3+:} false; then : 2271 $as_echo_n "(cached) " >&6 2272else 2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2274/* end confdefs.h. */ 2275/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2276 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2277#define $2 innocuous_$2 2278 2279/* System header to define __stub macros and hopefully few prototypes, 2280 which can conflict with char $2 (); below. 2281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2282 <limits.h> exists even on freestanding compilers. */ 2283 2284#ifdef __STDC__ 2285# include <limits.h> 2286#else 2287# include <assert.h> 2288#endif 2289 2290#undef $2 2291 2292/* Override any GCC internal prototype to avoid an error. 2293 Use char because int might match the return type of a GCC 2294 builtin and then its argument prototype would still apply. */ 2295#ifdef __cplusplus 2296extern "C" 2297#endif 2298char $2 (); 2299/* The GNU C library defines this for functions which it implements 2300 to always fail with ENOSYS. Some functions are actually named 2301 something starting with __ and the normal name is an alias. */ 2302#if defined __stub_$2 || defined __stub___$2 2303choke me 2304#endif 2305 2306int 2307main () 2308{ 2309return $2 (); 2310 ; 2311 return 0; 2312} 2313_ACEOF 2314if ac_fn_c_try_link "$LINENO"; then : 2315 eval "$3=yes" 2316else 2317 eval "$3=no" 2318fi 2319rm -f core conftest.err conftest.$ac_objext \ 2320 conftest$ac_exeext conftest.$ac_ext 2321fi 2322eval ac_res=\$$3 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2324$as_echo "$ac_res" >&6; } 2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2326 2327} # ac_fn_c_check_func 2328 2329# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2330# --------------------------------------------- 2331# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2332# accordingly. 2333ac_fn_c_check_decl () 2334{ 2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2336 as_decl_name=`echo $2|sed 's/ *(.*//'` 2337 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2339$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2340if eval \${$3+:} false; then : 2341 $as_echo_n "(cached) " >&6 2342else 2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2344/* end confdefs.h. */ 2345$4 2346int 2347main () 2348{ 2349#ifndef $as_decl_name 2350#ifdef __cplusplus 2351 (void) $as_decl_use; 2352#else 2353 (void) $as_decl_name; 2354#endif 2355#endif 2356 2357 ; 2358 return 0; 2359} 2360_ACEOF 2361if ac_fn_c_try_compile "$LINENO"; then : 2362 eval "$3=yes" 2363else 2364 eval "$3=no" 2365fi 2366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2367fi 2368eval ac_res=\$$3 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2370$as_echo "$ac_res" >&6; } 2371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2372 2373} # ac_fn_c_check_decl 2374cat >config.log <<_ACEOF 2375This file contains any messages produced by compilers while 2376running configure, to aid debugging if configure makes a mistake. 2377 2378It was created by mosh $as_me 1.3.2, which was 2379generated by GNU Autoconf 2.69. Invocation command line was 2380 2381 $ $0 $@ 2382 2383_ACEOF 2384exec 5>>config.log 2385{ 2386cat <<_ASUNAME 2387## --------- ## 2388## Platform. ## 2389## --------- ## 2390 2391hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2392uname -m = `(uname -m) 2>/dev/null || echo unknown` 2393uname -r = `(uname -r) 2>/dev/null || echo unknown` 2394uname -s = `(uname -s) 2>/dev/null || echo unknown` 2395uname -v = `(uname -v) 2>/dev/null || echo unknown` 2396 2397/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2398/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2399 2400/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2401/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2402/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2403/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2404/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2405/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2406/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2407 2408_ASUNAME 2409 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 $as_echo "PATH: $as_dir" 2416 done 2417IFS=$as_save_IFS 2418 2419} >&5 2420 2421cat >&5 <<_ACEOF 2422 2423 2424## ----------- ## 2425## Core tests. ## 2426## ----------- ## 2427 2428_ACEOF 2429 2430 2431# Keep a trace of the command line. 2432# Strip out --no-create and --no-recursion so they do not pile up. 2433# Strip out --silent because we don't want to record it for future runs. 2434# Also quote any args containing shell meta-characters. 2435# Make two passes to allow for proper duplicate-argument suppression. 2436ac_configure_args= 2437ac_configure_args0= 2438ac_configure_args1= 2439ac_must_keep_next=false 2440for ac_pass in 1 2 2441do 2442 for ac_arg 2443 do 2444 case $ac_arg in 2445 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2447 | -silent | --silent | --silen | --sile | --sil) 2448 continue ;; 2449 *\'*) 2450 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2451 esac 2452 case $ac_pass in 2453 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2454 2) 2455 as_fn_append ac_configure_args1 " '$ac_arg'" 2456 if test $ac_must_keep_next = true; then 2457 ac_must_keep_next=false # Got value, back to normal. 2458 else 2459 case $ac_arg in 2460 *=* | --config-cache | -C | -disable-* | --disable-* \ 2461 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2462 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2463 | -with-* | --with-* | -without-* | --without-* | --x) 2464 case "$ac_configure_args0 " in 2465 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2466 esac 2467 ;; 2468 -* ) ac_must_keep_next=true ;; 2469 esac 2470 fi 2471 as_fn_append ac_configure_args " '$ac_arg'" 2472 ;; 2473 esac 2474 done 2475done 2476{ ac_configure_args0=; unset ac_configure_args0;} 2477{ ac_configure_args1=; unset ac_configure_args1;} 2478 2479# When interrupted or exit'd, cleanup temporary files, and complete 2480# config.log. We remove comments because anyway the quotes in there 2481# would cause problems or look ugly. 2482# WARNING: Use '\'' to represent an apostrophe within the trap. 2483# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2484trap 'exit_status=$? 2485 # Save into config.log some information that might help in debugging. 2486 { 2487 echo 2488 2489 $as_echo "## ---------------- ## 2490## Cache variables. ## 2491## ---------------- ##" 2492 echo 2493 # The following way of writing the cache mishandles newlines in values, 2494( 2495 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in #( 2498 *${as_nl}*) 2499 case $ac_var in #( 2500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2501$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2502 esac 2503 case $ac_var in #( 2504 _ | IFS | as_nl) ;; #( 2505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2506 *) { eval $ac_var=; unset $ac_var;} ;; 2507 esac ;; 2508 esac 2509 done 2510 (set) 2>&1 | 2511 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2512 *${as_nl}ac_space=\ *) 2513 sed -n \ 2514 "s/'\''/'\''\\\\'\'''\''/g; 2515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2516 ;; #( 2517 *) 2518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2519 ;; 2520 esac | 2521 sort 2522) 2523 echo 2524 2525 $as_echo "## ----------------- ## 2526## Output variables. ## 2527## ----------------- ##" 2528 echo 2529 for ac_var in $ac_subst_vars 2530 do 2531 eval ac_val=\$$ac_var 2532 case $ac_val in 2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2534 esac 2535 $as_echo "$ac_var='\''$ac_val'\''" 2536 done | sort 2537 echo 2538 2539 if test -n "$ac_subst_files"; then 2540 $as_echo "## ------------------- ## 2541## File substitutions. ## 2542## ------------------- ##" 2543 echo 2544 for ac_var in $ac_subst_files 2545 do 2546 eval ac_val=\$$ac_var 2547 case $ac_val in 2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2549 esac 2550 $as_echo "$ac_var='\''$ac_val'\''" 2551 done | sort 2552 echo 2553 fi 2554 2555 if test -s confdefs.h; then 2556 $as_echo "## ----------- ## 2557## confdefs.h. ## 2558## ----------- ##" 2559 echo 2560 cat confdefs.h 2561 echo 2562 fi 2563 test "$ac_signal" != 0 && 2564 $as_echo "$as_me: caught signal $ac_signal" 2565 $as_echo "$as_me: exit $exit_status" 2566 } >&5 2567 rm -f core *.core core.conftest.* && 2568 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2569 exit $exit_status 2570' 0 2571for ac_signal in 1 2 13 15; do 2572 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2573done 2574ac_signal=0 2575 2576# confdefs.h avoids OS command line length limits that DEFS can exceed. 2577rm -f -r conftest* confdefs.h 2578 2579$as_echo "/* confdefs.h */" > confdefs.h 2580 2581# Predefined preprocessor variables. 2582 2583cat >>confdefs.h <<_ACEOF 2584#define PACKAGE_NAME "$PACKAGE_NAME" 2585_ACEOF 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2589_ACEOF 2590 2591cat >>confdefs.h <<_ACEOF 2592#define PACKAGE_VERSION "$PACKAGE_VERSION" 2593_ACEOF 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE_STRING "$PACKAGE_STRING" 2597_ACEOF 2598 2599cat >>confdefs.h <<_ACEOF 2600#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2601_ACEOF 2602 2603cat >>confdefs.h <<_ACEOF 2604#define PACKAGE_URL "$PACKAGE_URL" 2605_ACEOF 2606 2607 2608# Let the site file select an alternate cache file if it wants to. 2609# Prefer an explicitly selected file to automatically selected ones. 2610ac_site_file1=NONE 2611ac_site_file2=NONE 2612if test -n "$CONFIG_SITE"; then 2613 # We do not want a PATH search for config.site. 2614 case $CONFIG_SITE in #(( 2615 -*) ac_site_file1=./$CONFIG_SITE;; 2616 */*) ac_site_file1=$CONFIG_SITE;; 2617 *) ac_site_file1=./$CONFIG_SITE;; 2618 esac 2619elif test "x$prefix" != xNONE; then 2620 ac_site_file1=$prefix/share/config.site 2621 ac_site_file2=$prefix/etc/config.site 2622else 2623 ac_site_file1=$ac_default_prefix/share/config.site 2624 ac_site_file2=$ac_default_prefix/etc/config.site 2625fi 2626for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2627do 2628 test "x$ac_site_file" = xNONE && continue 2629 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2631$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2632 sed 's/^/| /' "$ac_site_file" >&5 2633 . "$ac_site_file" \ 2634 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2636as_fn_error $? "failed to load site script $ac_site_file 2637See \`config.log' for more details" "$LINENO" 5; } 2638 fi 2639done 2640 2641if test -r "$cache_file"; then 2642 # Some versions of bash will fail to source /dev/null (special files 2643 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2644 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2646$as_echo "$as_me: loading cache $cache_file" >&6;} 2647 case $cache_file in 2648 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2649 *) . "./$cache_file";; 2650 esac 2651 fi 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2654$as_echo "$as_me: creating cache $cache_file" >&6;} 2655 >$cache_file 2656fi 2657 2658# Check that the precious variables saved in the cache have kept the same 2659# value. 2660ac_cache_corrupted=false 2661for ac_var in $ac_precious_vars; do 2662 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2663 eval ac_new_set=\$ac_env_${ac_var}_set 2664 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2665 eval ac_new_val=\$ac_env_${ac_var}_value 2666 case $ac_old_set,$ac_new_set in 2667 set,) 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2669$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2670 ac_cache_corrupted=: ;; 2671 ,set) 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2673$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2674 ac_cache_corrupted=: ;; 2675 ,);; 2676 *) 2677 if test "x$ac_old_val" != "x$ac_new_val"; then 2678 # differences in whitespace do not lead to failure. 2679 ac_old_val_w=`echo x $ac_old_val` 2680 ac_new_val_w=`echo x $ac_new_val` 2681 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2683$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2684 ac_cache_corrupted=: 2685 else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2687$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2688 eval $ac_var=\$ac_old_val 2689 fi 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2691$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2693$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2694 fi;; 2695 esac 2696 # Pass precious variables to config.status. 2697 if test "$ac_new_set" = set; then 2698 case $ac_new_val in 2699 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2700 *) ac_arg=$ac_var=$ac_new_val ;; 2701 esac 2702 case " $ac_configure_args " in 2703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2704 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2705 esac 2706 fi 2707done 2708if $ac_cache_corrupted; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2712$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2713 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2714fi 2715## -------------------- ## 2716## Main body of script. ## 2717## -------------------- ## 2718 2719ac_ext=c 2720ac_cpp='$CPP $CPPFLAGS' 2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723ac_compiler_gnu=$ac_cv_c_compiler_gnu 2724 2725 2726am__api_version='1.15' 2727 2728ac_aux_dir= 2729for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2730 if test -f "$ac_dir/install-sh"; then 2731 ac_aux_dir=$ac_dir 2732 ac_install_sh="$ac_aux_dir/install-sh -c" 2733 break 2734 elif test -f "$ac_dir/install.sh"; then 2735 ac_aux_dir=$ac_dir 2736 ac_install_sh="$ac_aux_dir/install.sh -c" 2737 break 2738 elif test -f "$ac_dir/shtool"; then 2739 ac_aux_dir=$ac_dir 2740 ac_install_sh="$ac_aux_dir/shtool install -c" 2741 break 2742 fi 2743done 2744if test -z "$ac_aux_dir"; then 2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2746fi 2747 2748# These three variables are undocumented and unsupported, 2749# and are intended to be withdrawn in a future Autoconf release. 2750# They can cause serious problems if a builder's source tree is in a directory 2751# whose full name contains unusual characters. 2752ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2753ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2754ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2755 2756 2757# Find a good install program. We prefer a C program (faster), 2758# so one script is as good as another. But avoid the broken or 2759# incompatible versions: 2760# SysV /etc/install, /usr/sbin/install 2761# SunOS /usr/etc/install 2762# IRIX /sbin/install 2763# AIX /bin/install 2764# AmigaOS /C/install, which installs bootblocks on floppy discs 2765# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2766# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2767# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2768# OS/2's system install, which has a completely different semantic 2769# ./install, which can be erroneously created by make from ./install.sh. 2770# Reject install programs that cannot install multiple files. 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2772$as_echo_n "checking for a BSD-compatible install... " >&6; } 2773if test -z "$INSTALL"; then 2774if ${ac_cv_path_install+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 # Account for people who put trailing slashes in PATH elements. 2783case $as_dir/ in #(( 2784 ./ | .// | /[cC]/* | \ 2785 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2786 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2787 /usr/ucb/* ) ;; 2788 *) 2789 # OSF1 and SCO ODT 3.0 have their own names for install. 2790 # Don't use installbsd from OSF since it installs stuff as root 2791 # by default. 2792 for ac_prog in ginstall scoinst install; do 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2795 if test $ac_prog = install && 2796 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2797 # AIX install. It has an incompatible calling convention. 2798 : 2799 elif test $ac_prog = install && 2800 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2801 # program-specific install script used by HP pwplus--don't use. 2802 : 2803 else 2804 rm -rf conftest.one conftest.two conftest.dir 2805 echo one > conftest.one 2806 echo two > conftest.two 2807 mkdir conftest.dir 2808 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2809 test -s conftest.one && test -s conftest.two && 2810 test -s conftest.dir/conftest.one && 2811 test -s conftest.dir/conftest.two 2812 then 2813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2814 break 3 2815 fi 2816 fi 2817 fi 2818 done 2819 done 2820 ;; 2821esac 2822 2823 done 2824IFS=$as_save_IFS 2825 2826rm -rf conftest.one conftest.two conftest.dir 2827 2828fi 2829 if test "${ac_cv_path_install+set}" = set; then 2830 INSTALL=$ac_cv_path_install 2831 else 2832 # As a last resort, use the slow shell script. Don't cache a 2833 # value for INSTALL within a source directory, because that will 2834 # break other packages using the cache if that directory is 2835 # removed, or if the value is a relative name. 2836 INSTALL=$ac_install_sh 2837 fi 2838fi 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2840$as_echo "$INSTALL" >&6; } 2841 2842# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2843# It thinks the first close brace ends the variable substitution. 2844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2845 2846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2847 2848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2849 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2851$as_echo_n "checking whether build environment is sane... " >&6; } 2852# Reject unsafe characters in $srcdir or the absolute working directory 2853# name. Accept space and tab only in the latter. 2854am_lf=' 2855' 2856case `pwd` in 2857 *[\\\"\#\$\&\'\`$am_lf]*) 2858 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2859esac 2860case $srcdir in 2861 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2862 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2863esac 2864 2865# Do 'set' in a subshell so we don't clobber the current shell's 2866# arguments. Must try -L first in case configure is actually a 2867# symlink; some systems play weird games with the mod time of symlinks 2868# (eg FreeBSD returns the mod time of the symlink's containing 2869# directory). 2870if ( 2871 am_has_slept=no 2872 for am_try in 1 2; do 2873 echo "timestamp, slept: $am_has_slept" > conftest.file 2874 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2875 if test "$*" = "X"; then 2876 # -L didn't work. 2877 set X `ls -t "$srcdir/configure" conftest.file` 2878 fi 2879 if test "$*" != "X $srcdir/configure conftest.file" \ 2880 && test "$*" != "X conftest.file $srcdir/configure"; then 2881 2882 # If neither matched, then we have a broken ls. This can happen 2883 # if, for instance, CONFIG_SHELL is bash and it inherits a 2884 # broken ls alias from the environment. This has actually 2885 # happened. Such a system could not be considered "sane". 2886 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2887 alias in your environment" "$LINENO" 5 2888 fi 2889 if test "$2" = conftest.file || test $am_try -eq 2; then 2890 break 2891 fi 2892 # Just in case. 2893 sleep 1 2894 am_has_slept=yes 2895 done 2896 test "$2" = conftest.file 2897 ) 2898then 2899 # Ok. 2900 : 2901else 2902 as_fn_error $? "newly created file is older than distributed files! 2903Check your system clock" "$LINENO" 5 2904fi 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2906$as_echo "yes" >&6; } 2907# If we didn't sleep, we still need to ensure time stamps of config.status and 2908# generated files are strictly newer. 2909am_sleep_pid= 2910if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2911 ( sleep 1 ) & 2912 am_sleep_pid=$! 2913fi 2914 2915rm -f conftest.file 2916 2917test "$program_prefix" != NONE && 2918 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2919# Use a double $ so make ignores it. 2920test "$program_suffix" != NONE && 2921 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2922# Double any \ or $. 2923# By default was `s,x,x', remove it if useless. 2924ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2925program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2926 2927# Expand $ac_aux_dir to an absolute path. 2928am_aux_dir=`cd "$ac_aux_dir" && pwd` 2929 2930if test x"${MISSING+set}" != xset; then 2931 case $am_aux_dir in 2932 *\ * | *\ *) 2933 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2934 *) 2935 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2936 esac 2937fi 2938# Use eval to expand $SHELL 2939if eval "$MISSING --is-lightweight"; then 2940 am_missing_run="$MISSING " 2941else 2942 am_missing_run= 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2944$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2945fi 2946 2947if test x"${install_sh+set}" != xset; then 2948 case $am_aux_dir in 2949 *\ * | *\ *) 2950 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2951 *) 2952 install_sh="\${SHELL} $am_aux_dir/install-sh" 2953 esac 2954fi 2955 2956# Installed binaries are usually stripped using 'strip' when the user 2957# run "make install-strip". However 'strip' might not be the right 2958# tool to use in cross-compilation environments, therefore Automake 2959# will honor the 'STRIP' environment variable to overrule this program. 2960if test "$cross_compiling" != no; then 2961 if test -n "$ac_tool_prefix"; then 2962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2963set dummy ${ac_tool_prefix}strip; ac_word=$2 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965$as_echo_n "checking for $ac_word... " >&6; } 2966if ${ac_cv_prog_STRIP+:} false; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 if test -n "$STRIP"; then 2970 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2971else 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2979 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2981 break 2 2982 fi 2983done 2984 done 2985IFS=$as_save_IFS 2986 2987fi 2988fi 2989STRIP=$ac_cv_prog_STRIP 2990if test -n "$STRIP"; then 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2992$as_echo "$STRIP" >&6; } 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996fi 2997 2998 2999fi 3000if test -z "$ac_cv_prog_STRIP"; then 3001 ac_ct_STRIP=$STRIP 3002 # Extract the first word of "strip", so it can be a program name with args. 3003set dummy strip; ac_word=$2 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005$as_echo_n "checking for $ac_word... " >&6; } 3006if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test -n "$ac_ct_STRIP"; then 3010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3019 ac_cv_prog_ac_ct_STRIP="strip" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027fi 3028fi 3029ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3030if test -n "$ac_ct_STRIP"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3032$as_echo "$ac_ct_STRIP" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 if test "x$ac_ct_STRIP" = x; then 3039 STRIP=":" 3040 else 3041 case $cross_compiling:$ac_tool_warned in 3042yes:) 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3045ac_tool_warned=yes ;; 3046esac 3047 STRIP=$ac_ct_STRIP 3048 fi 3049else 3050 STRIP="$ac_cv_prog_STRIP" 3051fi 3052 3053fi 3054INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3055 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3057$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3058if test -z "$MKDIR_P"; then 3059 if ${ac_cv_path_mkdir+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_prog in mkdir gmkdir; do 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3070 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3071 'mkdir (GNU coreutils) '* | \ 3072 'mkdir (coreutils) '* | \ 3073 'mkdir (fileutils) '4.1*) 3074 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3075 break 3;; 3076 esac 3077 done 3078 done 3079 done 3080IFS=$as_save_IFS 3081 3082fi 3083 3084 test -d ./--version && rmdir ./--version 3085 if test "${ac_cv_path_mkdir+set}" = set; then 3086 MKDIR_P="$ac_cv_path_mkdir -p" 3087 else 3088 # As a last resort, use the slow shell script. Don't cache a 3089 # value for MKDIR_P within a source directory, because that will 3090 # break other packages using the cache if that directory is 3091 # removed, or if the value is a relative name. 3092 MKDIR_P="$ac_install_sh -d" 3093 fi 3094fi 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3096$as_echo "$MKDIR_P" >&6; } 3097 3098for ac_prog in gawk mawk nawk awk 3099do 3100 # Extract the first word of "$ac_prog", so it can be a program name with args. 3101set dummy $ac_prog; ac_word=$2 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3103$as_echo_n "checking for $ac_word... " >&6; } 3104if ${ac_cv_prog_AWK+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if test -n "$AWK"; then 3108 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3109else 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 ac_cv_prog_AWK="$ac_prog" 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122 done 3123IFS=$as_save_IFS 3124 3125fi 3126fi 3127AWK=$ac_cv_prog_AWK 3128if test -n "$AWK"; then 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3130$as_echo "$AWK" >&6; } 3131else 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133$as_echo "no" >&6; } 3134fi 3135 3136 3137 test -n "$AWK" && break 3138done 3139 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3141$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3142set x ${MAKE-make} 3143ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3144if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 cat >conftest.make <<\_ACEOF 3148SHELL = /bin/sh 3149all: 3150 @echo '@@@%%%=$(MAKE)=@@@%%%' 3151_ACEOF 3152# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3153case `${MAKE-make} -f conftest.make 2>/dev/null` in 3154 *@@@%%%=?*=@@@%%%*) 3155 eval ac_cv_prog_make_${ac_make}_set=yes;; 3156 *) 3157 eval ac_cv_prog_make_${ac_make}_set=no;; 3158esac 3159rm -f conftest.make 3160fi 3161if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3163$as_echo "yes" >&6; } 3164 SET_MAKE= 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168 SET_MAKE="MAKE=${MAKE-make}" 3169fi 3170 3171rm -rf .tst 2>/dev/null 3172mkdir .tst 2>/dev/null 3173if test -d .tst; then 3174 am__leading_dot=. 3175else 3176 am__leading_dot=_ 3177fi 3178rmdir .tst 2>/dev/null 3179 3180# Check whether --enable-silent-rules was given. 3181if test "${enable_silent_rules+set}" = set; then : 3182 enableval=$enable_silent_rules; 3183fi 3184 3185case $enable_silent_rules in # ((( 3186 yes) AM_DEFAULT_VERBOSITY=0;; 3187 no) AM_DEFAULT_VERBOSITY=1;; 3188 *) AM_DEFAULT_VERBOSITY=1;; 3189esac 3190am_make=${MAKE-make} 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3192$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3193if ${am_cv_make_support_nested_variables+:} false; then : 3194 $as_echo_n "(cached) " >&6 3195else 3196 if $as_echo 'TRUE=$(BAR$(V)) 3197BAR0=false 3198BAR1=true 3199V=1 3200am__doit: 3201 @$(TRUE) 3202.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3203 am_cv_make_support_nested_variables=yes 3204else 3205 am_cv_make_support_nested_variables=no 3206fi 3207fi 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3209$as_echo "$am_cv_make_support_nested_variables" >&6; } 3210if test $am_cv_make_support_nested_variables = yes; then 3211 AM_V='$(V)' 3212 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3213else 3214 AM_V=$AM_DEFAULT_VERBOSITY 3215 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3216fi 3217AM_BACKSLASH='\' 3218 3219if test "`cd $srcdir && pwd`" != "`pwd`"; then 3220 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3221 # is not polluted with repeated "-I." 3222 am__isrc=' -I$(srcdir)' 3223 # test to see if srcdir already configured 3224 if test -f $srcdir/config.status; then 3225 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3226 fi 3227fi 3228 3229# test whether we have cygpath 3230if test -z "$CYGPATH_W"; then 3231 if (cygpath --version) >/dev/null 2>/dev/null; then 3232 CYGPATH_W='cygpath -w' 3233 else 3234 CYGPATH_W=echo 3235 fi 3236fi 3237 3238 3239# Define the identity of the package. 3240 PACKAGE='mosh' 3241 VERSION='1.3.2' 3242 3243 3244cat >>confdefs.h <<_ACEOF 3245#define PACKAGE "$PACKAGE" 3246_ACEOF 3247 3248 3249cat >>confdefs.h <<_ACEOF 3250#define VERSION "$VERSION" 3251_ACEOF 3252 3253# Some tools Automake needs. 3254 3255ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3256 3257 3258AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3259 3260 3261AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3262 3263 3264AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3265 3266 3267MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3268 3269# For better backward compatibility. To be removed once Automake 1.9.x 3270# dies out for good. For more background, see: 3271# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3272# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3273mkdir_p='$(MKDIR_P)' 3274 3275# We need awk for the "check" target (and possibly the TAP driver). The 3276# system "awk" is bad on some platforms. 3277# Always define AMTAR for backward compatibility. Yes, it's still used 3278# in the wild :-( We should find a proper way to deprecate it ... 3279AMTAR='$${TAR-tar}' 3280 3281 3282# We'll loop over all known methods to create a tar archive until one works. 3283_am_tools='gnutar pax cpio none' 3284 3285am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3286 3287 3288 3289 3290 3291 3292# POSIX will say in a future version that running "rm -f" with no argument 3293# is OK; and we want to be able to make that assumption in our Makefile 3294# recipes. So use an aggressive probe to check that the usage we want is 3295# actually supported "in the wild" to an acceptable degree. 3296# See automake bug#10828. 3297# To make any issue more visible, cause the running configure to be aborted 3298# by default if the 'rm' program in use doesn't match our expectations; the 3299# user can still override this though. 3300if rm -f && rm -fr && rm -rf; then : OK; else 3301 cat >&2 <<'END' 3302Oops! 3303 3304Your 'rm' program seems unable to run without file operands specified 3305on the command line, even when the '-f' option is present. This is contrary 3306to the behaviour of most rm programs out there, and not conforming with 3307the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3308 3309Please tell bug-automake@gnu.org about your system, including the value 3310of your $PATH and any error possibly output before this message. This 3311can help us improve future automake versions. 3312 3313END 3314 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3315 echo 'Configuration will proceed anyway, since you have set the' >&2 3316 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3317 echo >&2 3318 else 3319 cat >&2 <<'END' 3320Aborting the configuration process, to ensure you take notice of the issue. 3321 3322You can download and install GNU coreutils to get an 'rm' implementation 3323that behaves properly: <http://www.gnu.org/software/coreutils/>. 3324 3325If you want to complete the configuration process using your problematic 3326'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3327to "yes", and re-run configure. 3328 3329END 3330 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3331 fi 3332fi 3333 3334# Check whether --enable-silent-rules was given. 3335if test "${enable_silent_rules+set}" = set; then : 3336 enableval=$enable_silent_rules; 3337fi 3338 3339case $enable_silent_rules in # ((( 3340 yes) AM_DEFAULT_VERBOSITY=0;; 3341 no) AM_DEFAULT_VERBOSITY=1;; 3342 *) AM_DEFAULT_VERBOSITY=0;; 3343esac 3344am_make=${MAKE-make} 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3346$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3347if ${am_cv_make_support_nested_variables+:} false; then : 3348 $as_echo_n "(cached) " >&6 3349else 3350 if $as_echo 'TRUE=$(BAR$(V)) 3351BAR0=false 3352BAR1=true 3353V=1 3354am__doit: 3355 @$(TRUE) 3356.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3357 am_cv_make_support_nested_variables=yes 3358else 3359 am_cv_make_support_nested_variables=no 3360fi 3361fi 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3363$as_echo "$am_cv_make_support_nested_variables" >&6; } 3364if test $am_cv_make_support_nested_variables = yes; then 3365 AM_V='$(V)' 3366 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3367else 3368 AM_V=$AM_DEFAULT_VERBOSITY 3369 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3370fi 3371AM_BACKSLASH='\' 3372 3373 3374 3375ac_config_headers="$ac_config_headers config.h" 3376 3377 3378# Checks for programs. 3379ac_ext=c 3380ac_cpp='$CPP $CPPFLAGS' 3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3383ac_compiler_gnu=$ac_cv_c_compiler_gnu 3384if test -n "$ac_tool_prefix"; then 3385 for ac_prog in cc gcc clang 3386 do 3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3388set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3390$as_echo_n "checking for $ac_word... " >&6; } 3391if ${ac_cv_prog_CC+:} false; then : 3392 $as_echo_n "(cached) " >&6 3393else 3394 if test -n "$CC"; then 3395 ac_cv_prog_CC="$CC" # Let the user override the test. 3396else 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 test -z "$as_dir" && as_dir=. 3402 for ac_exec_ext in '' $ac_executable_extensions; do 3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3406 break 2 3407 fi 3408done 3409 done 3410IFS=$as_save_IFS 3411 3412fi 3413fi 3414CC=$ac_cv_prog_CC 3415if test -n "$CC"; then 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3417$as_echo "$CC" >&6; } 3418else 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420$as_echo "no" >&6; } 3421fi 3422 3423 3424 test -n "$CC" && break 3425 done 3426fi 3427if test -z "$CC"; then 3428 ac_ct_CC=$CC 3429 for ac_prog in cc gcc clang 3430do 3431 # Extract the first word of "$ac_prog", so it can be a program name with args. 3432set dummy $ac_prog; ac_word=$2 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434$as_echo_n "checking for $ac_word... " >&6; } 3435if ${ac_cv_prog_ac_ct_CC+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 if test -n "$ac_ct_CC"; then 3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3440else 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_ac_ct_CC="$ac_prog" 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi 3457fi 3458ac_ct_CC=$ac_cv_prog_ac_ct_CC 3459if test -n "$ac_ct_CC"; then 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3461$as_echo "$ac_ct_CC" >&6; } 3462else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465fi 3466 3467 3468 test -n "$ac_ct_CC" && break 3469done 3470 3471 if test "x$ac_ct_CC" = x; then 3472 CC="" 3473 else 3474 case $cross_compiling:$ac_tool_warned in 3475yes:) 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3478ac_tool_warned=yes ;; 3479esac 3480 CC=$ac_ct_CC 3481 fi 3482fi 3483 3484 3485test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3487as_fn_error $? "no acceptable C compiler found in \$PATH 3488See \`config.log' for more details" "$LINENO" 5; } 3489 3490# Provide some information about the compiler. 3491$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3492set X $ac_compile 3493ac_compiler=$2 3494for ac_option in --version -v -V -qversion; do 3495 { { ac_try="$ac_compiler $ac_option >&5" 3496case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501$as_echo "$ac_try_echo"; } >&5 3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3503 ac_status=$? 3504 if test -s conftest.err; then 3505 sed '10a\ 3506... rest of stderr output deleted ... 3507 10q' conftest.err >conftest.er1 3508 cat conftest.er1 >&5 3509 fi 3510 rm -f conftest.er1 conftest.err 3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3512 test $ac_status = 0; } 3513done 3514 3515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main () 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526ac_clean_files_save=$ac_clean_files 3527ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3528# Try to create an executable without -o first, disregard a.out. 3529# It will help us diagnose broken compilers, and finding out an intuition 3530# of exeext. 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3532$as_echo_n "checking whether the C compiler works... " >&6; } 3533ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3534 3535# The possible output files: 3536ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3537 3538ac_rmfiles= 3539for ac_file in $ac_files 3540do 3541 case $ac_file in 3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3543 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3544 esac 3545done 3546rm -f $ac_rmfiles 3547 3548if { { ac_try="$ac_link_default" 3549case "(($ac_try" in 3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3551 *) ac_try_echo=$ac_try;; 3552esac 3553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3554$as_echo "$ac_try_echo"; } >&5 3555 (eval "$ac_link_default") 2>&5 3556 ac_status=$? 3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3558 test $ac_status = 0; }; then : 3559 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3560# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3561# in a Makefile. We should not override ac_cv_exeext if it was cached, 3562# so that the user can short-circuit this test for compilers unknown to 3563# Autoconf. 3564for ac_file in $ac_files '' 3565do 3566 test -f "$ac_file" || continue 3567 case $ac_file in 3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3569 ;; 3570 [ab].out ) 3571 # We found the default executable, but exeext='' is most 3572 # certainly right. 3573 break;; 3574 *.* ) 3575 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3576 then :; else 3577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3578 fi 3579 # We set ac_cv_exeext here because the later test for it is not 3580 # safe: cross compilers may not add the suffix if given an `-o' 3581 # argument, so we may need to know it at that point already. 3582 # Even if this section looks crufty: it has the advantage of 3583 # actually working. 3584 break;; 3585 * ) 3586 break;; 3587 esac 3588done 3589test "$ac_cv_exeext" = no && ac_cv_exeext= 3590 3591else 3592 ac_file='' 3593fi 3594if test -z "$ac_file"; then : 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596$as_echo "no" >&6; } 3597$as_echo "$as_me: failed program was:" >&5 3598sed 's/^/| /' conftest.$ac_ext >&5 3599 3600{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3602as_fn_error 77 "C compiler cannot create executables 3603See \`config.log' for more details" "$LINENO" 5; } 3604else 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3606$as_echo "yes" >&6; } 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3609$as_echo_n "checking for C compiler default output file name... " >&6; } 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3611$as_echo "$ac_file" >&6; } 3612ac_exeext=$ac_cv_exeext 3613 3614rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3615ac_clean_files=$ac_clean_files_save 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3617$as_echo_n "checking for suffix of executables... " >&6; } 3618if { { ac_try="$ac_link" 3619case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3624$as_echo "$ac_try_echo"; } >&5 3625 (eval "$ac_link") 2>&5 3626 ac_status=$? 3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3628 test $ac_status = 0; }; then : 3629 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3630# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3631# work properly (i.e., refer to `conftest.exe'), while it won't with 3632# `rm'. 3633for ac_file in conftest.exe conftest conftest.*; do 3634 test -f "$ac_file" || continue 3635 case $ac_file in 3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3638 break;; 3639 * ) break;; 3640 esac 3641done 3642else 3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3645as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3646See \`config.log' for more details" "$LINENO" 5; } 3647fi 3648rm -f conftest conftest$ac_cv_exeext 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3650$as_echo "$ac_cv_exeext" >&6; } 3651 3652rm -f conftest.$ac_ext 3653EXEEXT=$ac_cv_exeext 3654ac_exeext=$EXEEXT 3655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657#include <stdio.h> 3658int 3659main () 3660{ 3661FILE *f = fopen ("conftest.out", "w"); 3662 return ferror (f) || fclose (f) != 0; 3663 3664 ; 3665 return 0; 3666} 3667_ACEOF 3668ac_clean_files="$ac_clean_files conftest.out" 3669# Check that the compiler produces executables we can run. If not, either 3670# the compiler is broken, or we cross compile. 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3672$as_echo_n "checking whether we are cross compiling... " >&6; } 3673if test "$cross_compiling" != yes; then 3674 { { ac_try="$ac_link" 3675case "(($ac_try" in 3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3677 *) ac_try_echo=$ac_try;; 3678esac 3679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3680$as_echo "$ac_try_echo"; } >&5 3681 (eval "$ac_link") 2>&5 3682 ac_status=$? 3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3684 test $ac_status = 0; } 3685 if { ac_try='./conftest$ac_cv_exeext' 3686 { { case "(($ac_try" in 3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3688 *) ac_try_echo=$ac_try;; 3689esac 3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3691$as_echo "$ac_try_echo"; } >&5 3692 (eval "$ac_try") 2>&5 3693 ac_status=$? 3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3695 test $ac_status = 0; }; }; then 3696 cross_compiling=no 3697 else 3698 if test "$cross_compiling" = maybe; then 3699 cross_compiling=yes 3700 else 3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3703as_fn_error $? "cannot run C compiled programs. 3704If you meant to cross compile, use \`--host'. 3705See \`config.log' for more details" "$LINENO" 5; } 3706 fi 3707 fi 3708fi 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3710$as_echo "$cross_compiling" >&6; } 3711 3712rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3713ac_clean_files=$ac_clean_files_save 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3715$as_echo_n "checking for suffix of object files... " >&6; } 3716if ${ac_cv_objext+:} false; then : 3717 $as_echo_n "(cached) " >&6 3718else 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main () 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730rm -f conftest.o conftest.obj 3731if { { ac_try="$ac_compile" 3732case "(($ac_try" in 3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3734 *) ac_try_echo=$ac_try;; 3735esac 3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3737$as_echo "$ac_try_echo"; } >&5 3738 (eval "$ac_compile") 2>&5 3739 ac_status=$? 3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3741 test $ac_status = 0; }; then : 3742 for ac_file in conftest.o conftest.obj conftest.*; do 3743 test -f "$ac_file" || continue; 3744 case $ac_file in 3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3746 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3747 break;; 3748 esac 3749done 3750else 3751 $as_echo "$as_me: failed program was:" >&5 3752sed 's/^/| /' conftest.$ac_ext >&5 3753 3754{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3756as_fn_error $? "cannot compute suffix of object files: cannot compile 3757See \`config.log' for more details" "$LINENO" 5; } 3758fi 3759rm -f conftest.$ac_cv_objext conftest.$ac_ext 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3762$as_echo "$ac_cv_objext" >&6; } 3763OBJEXT=$ac_cv_objext 3764ac_objext=$OBJEXT 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3766$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3767if ${ac_cv_c_compiler_gnu+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772 3773int 3774main () 3775{ 3776#ifndef __GNUC__ 3777 choke me 3778#endif 3779 3780 ; 3781 return 0; 3782} 3783_ACEOF 3784if ac_fn_c_try_compile "$LINENO"; then : 3785 ac_compiler_gnu=yes 3786else 3787 ac_compiler_gnu=no 3788fi 3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3790ac_cv_c_compiler_gnu=$ac_compiler_gnu 3791 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3794$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3795if test $ac_compiler_gnu = yes; then 3796 GCC=yes 3797else 3798 GCC= 3799fi 3800ac_test_CFLAGS=${CFLAGS+set} 3801ac_save_CFLAGS=$CFLAGS 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3803$as_echo_n "checking whether $CC accepts -g... " >&6; } 3804if ${ac_cv_prog_cc_g+:} false; then : 3805 $as_echo_n "(cached) " >&6 3806else 3807 ac_save_c_werror_flag=$ac_c_werror_flag 3808 ac_c_werror_flag=yes 3809 ac_cv_prog_cc_g=no 3810 CFLAGS="-g" 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813 3814int 3815main () 3816{ 3817 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822if ac_fn_c_try_compile "$LINENO"; then : 3823 ac_cv_prog_cc_g=yes 3824else 3825 CFLAGS="" 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829int 3830main () 3831{ 3832 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837if ac_fn_c_try_compile "$LINENO"; then : 3838 3839else 3840 ac_c_werror_flag=$ac_save_c_werror_flag 3841 CFLAGS="-g" 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853if ac_fn_c_try_compile "$LINENO"; then : 3854 ac_cv_prog_cc_g=yes 3855fi 3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3857fi 3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3859fi 3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3861 ac_c_werror_flag=$ac_save_c_werror_flag 3862fi 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3864$as_echo "$ac_cv_prog_cc_g" >&6; } 3865if test "$ac_test_CFLAGS" = set; then 3866 CFLAGS=$ac_save_CFLAGS 3867elif test $ac_cv_prog_cc_g = yes; then 3868 if test "$GCC" = yes; then 3869 CFLAGS="-g -O2" 3870 else 3871 CFLAGS="-g" 3872 fi 3873else 3874 if test "$GCC" = yes; then 3875 CFLAGS="-O2" 3876 else 3877 CFLAGS= 3878 fi 3879fi 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3881$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3882if ${ac_cv_prog_cc_c89+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 ac_cv_prog_cc_c89=no 3886ac_save_CC=$CC 3887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889#include <stdarg.h> 3890#include <stdio.h> 3891struct stat; 3892/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3893struct buf { int x; }; 3894FILE * (*rcsopen) (struct buf *, struct stat *, int); 3895static char *e (p, i) 3896 char **p; 3897 int i; 3898{ 3899 return p[i]; 3900} 3901static char *f (char * (*g) (char **, int), char **p, ...) 3902{ 3903 char *s; 3904 va_list v; 3905 va_start (v,p); 3906 s = g (p, va_arg (v,int)); 3907 va_end (v); 3908 return s; 3909} 3910 3911/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3912 function prototypes and stuff, but not '\xHH' hex character constants. 3913 These don't provoke an error unfortunately, instead are silently treated 3914 as 'x'. The following induces an error, until -std is added to get 3915 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3916 array size at least. It's necessary to write '\x00'==0 to get something 3917 that's true only with -std. */ 3918int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3919 3920/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3921 inside strings and character constants. */ 3922#define FOO(x) 'x' 3923int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3924 3925int test (int i, double x); 3926struct s1 {int (*f) (int a);}; 3927struct s2 {int (*f) (double a);}; 3928int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3929int argc; 3930char **argv; 3931int 3932main () 3933{ 3934return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3935 ; 3936 return 0; 3937} 3938_ACEOF 3939for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3940 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3941do 3942 CC="$ac_save_CC $ac_arg" 3943 if ac_fn_c_try_compile "$LINENO"; then : 3944 ac_cv_prog_cc_c89=$ac_arg 3945fi 3946rm -f core conftest.err conftest.$ac_objext 3947 test "x$ac_cv_prog_cc_c89" != "xno" && break 3948done 3949rm -f conftest.$ac_ext 3950CC=$ac_save_CC 3951 3952fi 3953# AC_CACHE_VAL 3954case "x$ac_cv_prog_cc_c89" in 3955 x) 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3957$as_echo "none needed" >&6; } ;; 3958 xno) 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3960$as_echo "unsupported" >&6; } ;; 3961 *) 3962 CC="$CC $ac_cv_prog_cc_c89" 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3964$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3965esac 3966if test "x$ac_cv_prog_cc_c89" != xno; then : 3967 3968fi 3969 3970ac_ext=c 3971ac_cpp='$CPP $CPPFLAGS' 3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3974ac_compiler_gnu=$ac_cv_c_compiler_gnu 3975 3976ac_ext=c 3977ac_cpp='$CPP $CPPFLAGS' 3978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3980ac_compiler_gnu=$ac_cv_c_compiler_gnu 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3982$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3983if ${am_cv_prog_cc_c_o+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988 3989int 3990main () 3991{ 3992 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997 # Make sure it works both with $CC and with simple cc. 3998 # Following AC_PROG_CC_C_O, we do the test twice because some 3999 # compilers refuse to overwrite an existing .o file with -o, 4000 # though they will create one. 4001 am_cv_prog_cc_c_o=yes 4002 for am_i in 1 2; do 4003 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4004 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4005 ac_status=$? 4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4007 (exit $ac_status); } \ 4008 && test -f conftest2.$ac_objext; then 4009 : OK 4010 else 4011 am_cv_prog_cc_c_o=no 4012 break 4013 fi 4014 done 4015 rm -f core conftest* 4016 unset am_i 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4019$as_echo "$am_cv_prog_cc_c_o" >&6; } 4020if test "$am_cv_prog_cc_c_o" != yes; then 4021 # Losing compiler, so override with the script. 4022 # FIXME: It is wrong to rewrite CC. 4023 # But if we don't then we get into trouble of one sort or another. 4024 # A longer-term fix would be to have automake use am__CC in this case, 4025 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4026 CC="$am_aux_dir/compile $CC" 4027fi 4028ac_ext=c 4029ac_cpp='$CPP $CPPFLAGS' 4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4032ac_compiler_gnu=$ac_cv_c_compiler_gnu 4033 4034DEPDIR="${am__leading_dot}deps" 4035 4036ac_config_commands="$ac_config_commands depfiles" 4037 4038 4039am_make=${MAKE-make} 4040cat > confinc << 'END' 4041am__doit: 4042 @echo this is the am__doit target 4043.PHONY: am__doit 4044END 4045# If we don't find an include directive, just comment out the code. 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4047$as_echo_n "checking for style of include used by $am_make... " >&6; } 4048am__include="#" 4049am__quote= 4050_am_result=none 4051# First try GNU make style include. 4052echo "include confinc" > confmf 4053# Ignore all kinds of additional output from 'make'. 4054case `$am_make -s -f confmf 2> /dev/null` in #( 4055*the\ am__doit\ target*) 4056 am__include=include 4057 am__quote= 4058 _am_result=GNU 4059 ;; 4060esac 4061# Now try BSD make style include. 4062if test "$am__include" = "#"; then 4063 echo '.include "confinc"' > confmf 4064 case `$am_make -s -f confmf 2> /dev/null` in #( 4065 *the\ am__doit\ target*) 4066 am__include=.include 4067 am__quote="\"" 4068 _am_result=BSD 4069 ;; 4070 esac 4071fi 4072 4073 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4075$as_echo "$_am_result" >&6; } 4076rm -f confinc confmf 4077 4078# Check whether --enable-dependency-tracking was given. 4079if test "${enable_dependency_tracking+set}" = set; then : 4080 enableval=$enable_dependency_tracking; 4081fi 4082 4083if test "x$enable_dependency_tracking" != xno; then 4084 am_depcomp="$ac_aux_dir/depcomp" 4085 AMDEPBACKSLASH='\' 4086 am__nodep='_no' 4087fi 4088 if test "x$enable_dependency_tracking" != xno; then 4089 AMDEP_TRUE= 4090 AMDEP_FALSE='#' 4091else 4092 AMDEP_TRUE='#' 4093 AMDEP_FALSE= 4094fi 4095 4096 4097 4098depcc="$CC" am_compiler_list= 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4101$as_echo_n "checking dependency style of $depcc... " >&6; } 4102if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4103 $as_echo_n "(cached) " >&6 4104else 4105 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4106 # We make a subdir and do the tests there. Otherwise we can end up 4107 # making bogus files that we don't know about and never remove. For 4108 # instance it was reported that on HP-UX the gcc test will end up 4109 # making a dummy file named 'D' -- because '-MD' means "put the output 4110 # in D". 4111 rm -rf conftest.dir 4112 mkdir conftest.dir 4113 # Copy depcomp to subdir because otherwise we won't find it if we're 4114 # using a relative directory. 4115 cp "$am_depcomp" conftest.dir 4116 cd conftest.dir 4117 # We will build objects and dependencies in a subdirectory because 4118 # it helps to detect inapplicable dependency modes. For instance 4119 # both Tru64's cc and ICC support -MD to output dependencies as a 4120 # side effect of compilation, but ICC will put the dependencies in 4121 # the current directory while Tru64 will put them in the object 4122 # directory. 4123 mkdir sub 4124 4125 am_cv_CC_dependencies_compiler_type=none 4126 if test "$am_compiler_list" = ""; then 4127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4128 fi 4129 am__universal=false 4130 case " $depcc " in #( 4131 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4132 esac 4133 4134 for depmode in $am_compiler_list; do 4135 # Setup a source with many dependencies, because some compilers 4136 # like to wrap large dependency lists on column 80 (with \), and 4137 # we should not choose a depcomp mode which is confused by this. 4138 # 4139 # We need to recreate these files for each test, as the compiler may 4140 # overwrite some of them when testing with obscure command lines. 4141 # This happens at least with the AIX C compiler. 4142 : > sub/conftest.c 4143 for i in 1 2 3 4 5 6; do 4144 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4145 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4146 # Solaris 10 /bin/sh. 4147 echo '/* dummy */' > sub/conftst$i.h 4148 done 4149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4150 4151 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4152 # mode. It turns out that the SunPro C++ compiler does not properly 4153 # handle '-M -o', and we need to detect this. Also, some Intel 4154 # versions had trouble with output in subdirs. 4155 am__obj=sub/conftest.${OBJEXT-o} 4156 am__minus_obj="-o $am__obj" 4157 case $depmode in 4158 gcc) 4159 # This depmode causes a compiler race in universal mode. 4160 test "$am__universal" = false || continue 4161 ;; 4162 nosideeffect) 4163 # After this tag, mechanisms are not by side-effect, so they'll 4164 # only be used when explicitly requested. 4165 if test "x$enable_dependency_tracking" = xyes; then 4166 continue 4167 else 4168 break 4169 fi 4170 ;; 4171 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4172 # This compiler won't grok '-c -o', but also, the minuso test has 4173 # not run yet. These depmodes are late enough in the game, and 4174 # so weak that their functioning should not be impacted. 4175 am__obj=conftest.${OBJEXT-o} 4176 am__minus_obj= 4177 ;; 4178 none) break ;; 4179 esac 4180 if depmode=$depmode \ 4181 source=sub/conftest.c object=$am__obj \ 4182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4184 >/dev/null 2>conftest.err && 4185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4189 # icc doesn't choke on unknown options, it will just issue warnings 4190 # or remarks (even with -Werror). So we grep stderr for any message 4191 # that says an option was ignored or not supported. 4192 # When given -MP, icc 7.0 and 7.1 complain thusly: 4193 # icc: Command line warning: ignoring option '-M'; no argument required 4194 # The diagnosis changed in icc 8.0: 4195 # icc: Command line remark: option '-MP' not supported 4196 if (grep 'ignoring option' conftest.err || 4197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4198 am_cv_CC_dependencies_compiler_type=$depmode 4199 break 4200 fi 4201 fi 4202 done 4203 4204 cd .. 4205 rm -rf conftest.dir 4206else 4207 am_cv_CC_dependencies_compiler_type=none 4208fi 4209 4210fi 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4212$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4213CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4214 4215 if 4216 test "x$enable_dependency_tracking" != xno \ 4217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4218 am__fastdepCC_TRUE= 4219 am__fastdepCC_FALSE='#' 4220else 4221 am__fastdepCC_TRUE='#' 4222 am__fastdepCC_FALSE= 4223fi 4224 4225 4226ac_ext=cpp 4227ac_cpp='$CXXCPP $CPPFLAGS' 4228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4231if test -z "$CXX"; then 4232 if test -n "$CCC"; then 4233 CXX=$CCC 4234 else 4235 if test -n "$ac_tool_prefix"; then 4236 for ac_prog in c++ g++ clang++ 4237 do 4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4241$as_echo_n "checking for $ac_word... " >&6; } 4242if ${ac_cv_prog_CXX+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 if test -n "$CXX"; then 4246 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4247else 4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4249for as_dir in $PATH 4250do 4251 IFS=$as_save_IFS 4252 test -z "$as_dir" && as_dir=. 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4255 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260 done 4261IFS=$as_save_IFS 4262 4263fi 4264fi 4265CXX=$ac_cv_prog_CXX 4266if test -n "$CXX"; then 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4268$as_echo "$CXX" >&6; } 4269else 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271$as_echo "no" >&6; } 4272fi 4273 4274 4275 test -n "$CXX" && break 4276 done 4277fi 4278if test -z "$CXX"; then 4279 ac_ct_CXX=$CXX 4280 for ac_prog in c++ g++ clang++ 4281do 4282 # Extract the first word of "$ac_prog", so it can be a program name with args. 4283set dummy $ac_prog; ac_word=$2 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4285$as_echo_n "checking for $ac_word... " >&6; } 4286if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 if test -n "$ac_ct_CXX"; then 4290 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4291else 4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4293for as_dir in $PATH 4294do 4295 IFS=$as_save_IFS 4296 test -z "$as_dir" && as_dir=. 4297 for ac_exec_ext in '' $ac_executable_extensions; do 4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4299 ac_cv_prog_ac_ct_CXX="$ac_prog" 4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4301 break 2 4302 fi 4303done 4304 done 4305IFS=$as_save_IFS 4306 4307fi 4308fi 4309ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4310if test -n "$ac_ct_CXX"; then 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4312$as_echo "$ac_ct_CXX" >&6; } 4313else 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4315$as_echo "no" >&6; } 4316fi 4317 4318 4319 test -n "$ac_ct_CXX" && break 4320done 4321 4322 if test "x$ac_ct_CXX" = x; then 4323 CXX="g++" 4324 else 4325 case $cross_compiling:$ac_tool_warned in 4326yes:) 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4329ac_tool_warned=yes ;; 4330esac 4331 CXX=$ac_ct_CXX 4332 fi 4333fi 4334 4335 fi 4336fi 4337# Provide some information about the compiler. 4338$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4339set X $ac_compile 4340ac_compiler=$2 4341for ac_option in --version -v -V -qversion; do 4342 { { ac_try="$ac_compiler $ac_option >&5" 4343case "(($ac_try" in 4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4345 *) ac_try_echo=$ac_try;; 4346esac 4347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4348$as_echo "$ac_try_echo"; } >&5 4349 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4350 ac_status=$? 4351 if test -s conftest.err; then 4352 sed '10a\ 4353... rest of stderr output deleted ... 4354 10q' conftest.err >conftest.er1 4355 cat conftest.er1 >&5 4356 fi 4357 rm -f conftest.er1 conftest.err 4358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4359 test $ac_status = 0; } 4360done 4361 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4363$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4364if ${ac_cv_cxx_compiler_gnu+:} false; then : 4365 $as_echo_n "(cached) " >&6 4366else 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368/* end confdefs.h. */ 4369 4370int 4371main () 4372{ 4373#ifndef __GNUC__ 4374 choke me 4375#endif 4376 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381if ac_fn_cxx_try_compile "$LINENO"; then : 4382 ac_compiler_gnu=yes 4383else 4384 ac_compiler_gnu=no 4385fi 4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4387ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4388 4389fi 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4391$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4392if test $ac_compiler_gnu = yes; then 4393 GXX=yes 4394else 4395 GXX= 4396fi 4397ac_test_CXXFLAGS=${CXXFLAGS+set} 4398ac_save_CXXFLAGS=$CXXFLAGS 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4400$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4401if ${ac_cv_prog_cxx_g+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4405 ac_cxx_werror_flag=yes 4406 ac_cv_prog_cxx_g=no 4407 CXXFLAGS="-g" 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409/* end confdefs.h. */ 4410 4411int 4412main () 4413{ 4414 4415 ; 4416 return 0; 4417} 4418_ACEOF 4419if ac_fn_cxx_try_compile "$LINENO"; then : 4420 ac_cv_prog_cxx_g=yes 4421else 4422 CXXFLAGS="" 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425 4426int 4427main () 4428{ 4429 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434if ac_fn_cxx_try_compile "$LINENO"; then : 4435 4436else 4437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4438 CXXFLAGS="-g" 4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4440/* end confdefs.h. */ 4441 4442int 4443main () 4444{ 4445 4446 ; 4447 return 0; 4448} 4449_ACEOF 4450if ac_fn_cxx_try_compile "$LINENO"; then : 4451 ac_cv_prog_cxx_g=yes 4452fi 4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4454fi 4455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4456fi 4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4458 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4461$as_echo "$ac_cv_prog_cxx_g" >&6; } 4462if test "$ac_test_CXXFLAGS" = set; then 4463 CXXFLAGS=$ac_save_CXXFLAGS 4464elif test $ac_cv_prog_cxx_g = yes; then 4465 if test "$GXX" = yes; then 4466 CXXFLAGS="-g -O2" 4467 else 4468 CXXFLAGS="-g" 4469 fi 4470else 4471 if test "$GXX" = yes; then 4472 CXXFLAGS="-O2" 4473 else 4474 CXXFLAGS= 4475 fi 4476fi 4477ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482 4483depcc="$CXX" am_compiler_list= 4484 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4486$as_echo_n "checking dependency style of $depcc... " >&6; } 4487if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4491 # We make a subdir and do the tests there. Otherwise we can end up 4492 # making bogus files that we don't know about and never remove. For 4493 # instance it was reported that on HP-UX the gcc test will end up 4494 # making a dummy file named 'D' -- because '-MD' means "put the output 4495 # in D". 4496 rm -rf conftest.dir 4497 mkdir conftest.dir 4498 # Copy depcomp to subdir because otherwise we won't find it if we're 4499 # using a relative directory. 4500 cp "$am_depcomp" conftest.dir 4501 cd conftest.dir 4502 # We will build objects and dependencies in a subdirectory because 4503 # it helps to detect inapplicable dependency modes. For instance 4504 # both Tru64's cc and ICC support -MD to output dependencies as a 4505 # side effect of compilation, but ICC will put the dependencies in 4506 # the current directory while Tru64 will put them in the object 4507 # directory. 4508 mkdir sub 4509 4510 am_cv_CXX_dependencies_compiler_type=none 4511 if test "$am_compiler_list" = ""; then 4512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4513 fi 4514 am__universal=false 4515 case " $depcc " in #( 4516 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4517 esac 4518 4519 for depmode in $am_compiler_list; do 4520 # Setup a source with many dependencies, because some compilers 4521 # like to wrap large dependency lists on column 80 (with \), and 4522 # we should not choose a depcomp mode which is confused by this. 4523 # 4524 # We need to recreate these files for each test, as the compiler may 4525 # overwrite some of them when testing with obscure command lines. 4526 # This happens at least with the AIX C compiler. 4527 : > sub/conftest.c 4528 for i in 1 2 3 4 5 6; do 4529 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4531 # Solaris 10 /bin/sh. 4532 echo '/* dummy */' > sub/conftst$i.h 4533 done 4534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4535 4536 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4537 # mode. It turns out that the SunPro C++ compiler does not properly 4538 # handle '-M -o', and we need to detect this. Also, some Intel 4539 # versions had trouble with output in subdirs. 4540 am__obj=sub/conftest.${OBJEXT-o} 4541 am__minus_obj="-o $am__obj" 4542 case $depmode in 4543 gcc) 4544 # This depmode causes a compiler race in universal mode. 4545 test "$am__universal" = false || continue 4546 ;; 4547 nosideeffect) 4548 # After this tag, mechanisms are not by side-effect, so they'll 4549 # only be used when explicitly requested. 4550 if test "x$enable_dependency_tracking" = xyes; then 4551 continue 4552 else 4553 break 4554 fi 4555 ;; 4556 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4557 # This compiler won't grok '-c -o', but also, the minuso test has 4558 # not run yet. These depmodes are late enough in the game, and 4559 # so weak that their functioning should not be impacted. 4560 am__obj=conftest.${OBJEXT-o} 4561 am__minus_obj= 4562 ;; 4563 none) break ;; 4564 esac 4565 if depmode=$depmode \ 4566 source=sub/conftest.c object=$am__obj \ 4567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4569 >/dev/null 2>conftest.err && 4570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4574 # icc doesn't choke on unknown options, it will just issue warnings 4575 # or remarks (even with -Werror). So we grep stderr for any message 4576 # that says an option was ignored or not supported. 4577 # When given -MP, icc 7.0 and 7.1 complain thusly: 4578 # icc: Command line warning: ignoring option '-M'; no argument required 4579 # The diagnosis changed in icc 8.0: 4580 # icc: Command line remark: option '-MP' not supported 4581 if (grep 'ignoring option' conftest.err || 4582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4583 am_cv_CXX_dependencies_compiler_type=$depmode 4584 break 4585 fi 4586 fi 4587 done 4588 4589 cd .. 4590 rm -rf conftest.dir 4591else 4592 am_cv_CXX_dependencies_compiler_type=none 4593fi 4594 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4597$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4598CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4599 4600 if 4601 test "x$enable_dependency_tracking" != xno \ 4602 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4603 am__fastdepCXX_TRUE= 4604 am__fastdepCXX_FALSE='#' 4605else 4606 am__fastdepCXX_TRUE='#' 4607 am__fastdepCXX_FALSE= 4608fi 4609 4610 4611if test -n "$ac_tool_prefix"; then 4612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4613set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4615$as_echo_n "checking for $ac_word... " >&6; } 4616if ${ac_cv_prog_RANLIB+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618else 4619 if test -n "$RANLIB"; then 4620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4621else 4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4623for as_dir in $PATH 4624do 4625 IFS=$as_save_IFS 4626 test -z "$as_dir" && as_dir=. 4627 for ac_exec_ext in '' $ac_executable_extensions; do 4628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4631 break 2 4632 fi 4633done 4634 done 4635IFS=$as_save_IFS 4636 4637fi 4638fi 4639RANLIB=$ac_cv_prog_RANLIB 4640if test -n "$RANLIB"; then 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4642$as_echo "$RANLIB" >&6; } 4643else 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4645$as_echo "no" >&6; } 4646fi 4647 4648 4649fi 4650if test -z "$ac_cv_prog_RANLIB"; then 4651 ac_ct_RANLIB=$RANLIB 4652 # Extract the first word of "ranlib", so it can be a program name with args. 4653set dummy ranlib; ac_word=$2 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4655$as_echo_n "checking for $ac_word... " >&6; } 4656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 if test -n "$ac_ct_RANLIB"; then 4660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4661else 4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH 4664do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4669 ac_cv_prog_ac_ct_RANLIB="ranlib" 4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4671 break 2 4672 fi 4673done 4674 done 4675IFS=$as_save_IFS 4676 4677fi 4678fi 4679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4680if test -n "$ac_ct_RANLIB"; then 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4682$as_echo "$ac_ct_RANLIB" >&6; } 4683else 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4685$as_echo "no" >&6; } 4686fi 4687 4688 if test "x$ac_ct_RANLIB" = x; then 4689 RANLIB=":" 4690 else 4691 case $cross_compiling:$ac_tool_warned in 4692yes:) 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4695ac_tool_warned=yes ;; 4696esac 4697 RANLIB=$ac_ct_RANLIB 4698 fi 4699else 4700 RANLIB="$ac_cv_prog_RANLIB" 4701fi 4702 4703# Extract the first word of "protoc", so it can be a program name with args. 4704set dummy protoc; ac_word=$2 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4706$as_echo_n "checking for $ac_word... " >&6; } 4707if ${ac_cv_path_PROTOC+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 case $PROTOC in 4711 [\\/]* | ?:[\\/]*) 4712 ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path. 4713 ;; 4714 *) 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4716for as_dir in $PATH 4717do 4718 IFS=$as_save_IFS 4719 test -z "$as_dir" && as_dir=. 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4722 ac_cv_path_PROTOC="$as_dir/$ac_word$ac_exec_ext" 4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726done 4727 done 4728IFS=$as_save_IFS 4729 4730 ;; 4731esac 4732fi 4733PROTOC=$ac_cv_path_PROTOC 4734if test -n "$PROTOC"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5 4736$as_echo "$PROTOC" >&6; } 4737else 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4739$as_echo "no" >&6; } 4740fi 4741 4742 4743if test x"$PROTOC" = x; then : 4744 as_fn_error $? "cannot find protoc, the Protocol Buffers compiler" "$LINENO" 5 4745fi 4746 4747# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it 4748 4749if test -n "$ac_tool_prefix"; then 4750 for ac_prog in ar lib "link -lib" 4751 do 4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4753set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755$as_echo_n "checking for $ac_word... " >&6; } 4756if ${ac_cv_prog_AR+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 if test -n "$AR"; then 4760 ac_cv_prog_AR="$AR" # Let the user override the test. 4761else 4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 test -z "$as_dir" && as_dir=. 4767 for ac_exec_ext in '' $ac_executable_extensions; do 4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4769 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4771 break 2 4772 fi 4773done 4774 done 4775IFS=$as_save_IFS 4776 4777fi 4778fi 4779AR=$ac_cv_prog_AR 4780if test -n "$AR"; then 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4782$as_echo "$AR" >&6; } 4783else 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785$as_echo "no" >&6; } 4786fi 4787 4788 4789 test -n "$AR" && break 4790 done 4791fi 4792if test -z "$AR"; then 4793 ac_ct_AR=$AR 4794 for ac_prog in ar lib "link -lib" 4795do 4796 # Extract the first word of "$ac_prog", so it can be a program name with args. 4797set dummy $ac_prog; ac_word=$2 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4799$as_echo_n "checking for $ac_word... " >&6; } 4800if ${ac_cv_prog_ac_ct_AR+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 if test -n "$ac_ct_AR"; then 4804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4805else 4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4807for as_dir in $PATH 4808do 4809 IFS=$as_save_IFS 4810 test -z "$as_dir" && as_dir=. 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4813 ac_cv_prog_ac_ct_AR="$ac_prog" 4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4815 break 2 4816 fi 4817done 4818 done 4819IFS=$as_save_IFS 4820 4821fi 4822fi 4823ac_ct_AR=$ac_cv_prog_ac_ct_AR 4824if test -n "$ac_ct_AR"; then 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4826$as_echo "$ac_ct_AR" >&6; } 4827else 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4829$as_echo "no" >&6; } 4830fi 4831 4832 4833 test -n "$ac_ct_AR" && break 4834done 4835 4836 if test "x$ac_ct_AR" = x; then 4837 AR="false" 4838 else 4839 case $cross_compiling:$ac_tool_warned in 4840yes:) 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4843ac_tool_warned=yes ;; 4844esac 4845 AR=$ac_ct_AR 4846 fi 4847fi 4848 4849: ${AR=ar} 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4852$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4853if ${am_cv_ar_interface+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 ac_ext=c 4857ac_cpp='$CPP $CPPFLAGS' 4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4860ac_compiler_gnu=$ac_cv_c_compiler_gnu 4861 4862 am_cv_ar_interface=ar 4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4864/* end confdefs.h. */ 4865int some_variable = 0; 4866_ACEOF 4867if ac_fn_c_try_compile "$LINENO"; then : 4868 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4870 (eval $am_ar_try) 2>&5 4871 ac_status=$? 4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4873 test $ac_status = 0; } 4874 if test "$ac_status" -eq 0; then 4875 am_cv_ar_interface=ar 4876 else 4877 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4879 (eval $am_ar_try) 2>&5 4880 ac_status=$? 4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4882 test $ac_status = 0; } 4883 if test "$ac_status" -eq 0; then 4884 am_cv_ar_interface=lib 4885 else 4886 am_cv_ar_interface=unknown 4887 fi 4888 fi 4889 rm -f conftest.lib libconftest.a 4890 4891fi 4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4893 ac_ext=c 4894ac_cpp='$CPP $CPPFLAGS' 4895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4897ac_compiler_gnu=$ac_cv_c_compiler_gnu 4898 4899fi 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4901$as_echo "$am_cv_ar_interface" >&6; } 4902 4903case $am_cv_ar_interface in 4904ar) 4905 ;; 4906lib) 4907 # Microsoft lib, so override with the ar-lib wrapper script. 4908 # FIXME: It is wrong to rewrite AR. 4909 # But if we don't then we get into trouble of one sort or another. 4910 # A longer-term fix would be to have automake use am__AR in this case, 4911 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4912 # similar. 4913 AR="$am_aux_dir/ar-lib $AR" 4914 ;; 4915unknown) 4916 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4917 ;; 4918esac 4919 4920 4921WARNING_CXXFLAGS="" 4922PICKY_CXXFLAGS="" 4923DISTCHECK_CXXFLAGS="" 4924 4925# Check whether --enable-compile-warnings was given. 4926if test "${enable_compile_warnings+set}" = set; then : 4927 enableval=$enable_compile_warnings; case "$enableval" in 4928 no) 4929 ;; 4930 '' | yes) 4931 WARNING_CXXFLAGS="-Wall" 4932 ;; 4933 maximum) 4934 WARNING_CXXFLAGS="-Wall" 4935 PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" 4936 ;; 4937 error) 4938 WARNING_CXXFLAGS="-Wall -Werror" 4939 PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" 4940 ;; 4941 distcheck) 4942 WARNING_CXXFLAGS="-Wall -Werror" 4943 PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" 4944 ac_ext=cpp 4945ac_cpp='$CXXCPP $CPPFLAGS' 4946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4949 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-error=unused-parameter" >&5 4951$as_echo_n "checking whether C++ compiler accepts -Wno-error=unused-parameter... " >&6; } 4952if ${ax_cv_check_cxxflags__Werror__Wno_error_unused_parameter+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 4956 ax_check_save_flags=$CXXFLAGS 4957 CXXFLAGS="$CXXFLAGS -Werror -Wno-error=unused-parameter" 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959/* end confdefs.h. */ 4960 4961int 4962main () 4963{ 4964 4965 ; 4966 return 0; 4967} 4968_ACEOF 4969if ac_fn_cxx_try_compile "$LINENO"; then : 4970 ax_cv_check_cxxflags__Werror__Wno_error_unused_parameter=yes 4971else 4972 ax_cv_check_cxxflags__Werror__Wno_error_unused_parameter=no 4973fi 4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4975 CXXFLAGS=$ax_check_save_flags 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__Wno_error_unused_parameter" >&5 4978$as_echo "$ax_cv_check_cxxflags__Werror__Wno_error_unused_parameter" >&6; } 4979if test x"$ax_cv_check_cxxflags__Werror__Wno_error_unused_parameter" = xyes; then : 4980 PICKY_CXXFLAGS="$PICKY_CXXFLAGS -Wno-error=unused-parameter" 4981else 4982 : 4983fi 4984 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-error=c++11-extensions" >&5 4986$as_echo_n "checking whether C++ compiler accepts -Wno-error=c++11-extensions... " >&6; } 4987if ${ax_cv_check_cxxflags__Werror__Wno_error_cpp11_extensions+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 4991 ax_check_save_flags=$CXXFLAGS 4992 CXXFLAGS="$CXXFLAGS -Werror -Wno-error=c++11-extensions" 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995 4996int 4997main () 4998{ 4999 5000 ; 5001 return 0; 5002} 5003_ACEOF 5004if ac_fn_cxx_try_compile "$LINENO"; then : 5005 ax_cv_check_cxxflags__Werror__Wno_error_cpp11_extensions=yes 5006else 5007 ax_cv_check_cxxflags__Werror__Wno_error_cpp11_extensions=no 5008fi 5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5010 CXXFLAGS=$ax_check_save_flags 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__Wno_error_cpp11_extensions" >&5 5013$as_echo "$ax_cv_check_cxxflags__Werror__Wno_error_cpp11_extensions" >&6; } 5014if test x"$ax_cv_check_cxxflags__Werror__Wno_error_cpp11_extensions" = xyes; then : 5015 PICKY_CXXFLAGS="$PICKY_CXXFLAGS -Wno-error=c++11-extensions" 5016else 5017 : 5018fi 5019 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-error=deprecated-declarations" >&5 5021$as_echo_n "checking whether C++ compiler accepts -Wno-error=deprecated-declarations... " >&6; } 5022if ${ax_cv_check_cxxflags__Werror__Wno_error_deprecated_declarations+:} false; then : 5023 $as_echo_n "(cached) " >&6 5024else 5025 5026 ax_check_save_flags=$CXXFLAGS 5027 CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029/* end confdefs.h. */ 5030 5031int 5032main () 5033{ 5034 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039if ac_fn_cxx_try_compile "$LINENO"; then : 5040 ax_cv_check_cxxflags__Werror__Wno_error_deprecated_declarations=yes 5041else 5042 ax_cv_check_cxxflags__Werror__Wno_error_deprecated_declarations=no 5043fi 5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5045 CXXFLAGS=$ax_check_save_flags 5046fi 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__Wno_error_deprecated_declarations" >&5 5048$as_echo "$ax_cv_check_cxxflags__Werror__Wno_error_deprecated_declarations" >&6; } 5049if test x"$ax_cv_check_cxxflags__Werror__Wno_error_deprecated_declarations" = xyes; then : 5050 PICKY_CXXFLAGS="$PICKY_CXXFLAGS -Wno-error=deprecated-declarations" 5051else 5052 : 5053fi 5054 5055 ac_ext=c 5056ac_cpp='$CPP $CPPFLAGS' 5057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5059ac_compiler_gnu=$ac_cv_c_compiler_gnu 5060 5061 ;; 5062 *) 5063 as_fn_error $? "Unknown argument '$enableval' to --enable-compile-warnings" "$LINENO" 5 5064 ;; 5065 esac 5066else 5067 WARNING_CXXFLAGS="-Wall" 5068fi 5069 5070 5071 5072 5073# We want to check for compiler flag support, but there is no way to make 5074# clang's "argument unused" warning fatal. So we invoke the compiler through a 5075# wrapper script that greps for this message. 5076 5077saved_CC="$CC" 5078saved_CXX="$CXX" 5079saved_LD="$LD" 5080flag_wrap="$srcdir/scripts/wrap-compiler-for-flag-check" 5081CC="$flag_wrap $CC" 5082CXX="$flag_wrap $CXX" 5083LD="$flag_wrap $LD" 5084 5085# We use the same hardening flags for C and C++. We must check that each flag 5086# is supported by both compilers. 5087 5088 5089 5090# Check whether --enable-hardening was given. 5091if test "${enable_hardening+set}" = set; then : 5092 enableval=$enable_hardening; hardening="$enableval" 5093else 5094 hardening="yes" 5095fi 5096 5097 5098HARDEN_CFLAGS="" 5099HARDEN_LDFLAGS="" 5100if test x"$hardening" != x"no"; then : 5101 5102 ac_ext=c 5103ac_cpp='$CPP $CPPFLAGS' 5104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5106ac_compiler_gnu=$ac_cv_c_compiler_gnu 5107 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5 5109$as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; } 5110if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 5114 ax_check_save_flags=$CFLAGS 5115 CFLAGS="$CFLAGS -Werror -fno-strict-overflow" 5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117/* end confdefs.h. */ 5118 5119int 5120main () 5121{ 5122 5123 ; 5124 return 0; 5125} 5126_ACEOF 5127if ac_fn_c_try_compile "$LINENO"; then : 5128 ax_cv_check_cflags__Werror___fno_strict_overflow=yes 5129else 5130 ax_cv_check_cflags__Werror___fno_strict_overflow=no 5131fi 5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5133 CFLAGS=$ax_check_save_flags 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5 5136$as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; } 5137if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then : 5138 ac_ext=cpp 5139ac_cpp='$CXXCPP $CPPFLAGS' 5140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5143 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fno-strict-overflow" >&5 5145$as_echo_n "checking whether C++ compiler accepts -fno-strict-overflow... " >&6; } 5146if ${ax_cv_check_cxxflags__Werror___fno_strict_overflow+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 5150 ax_check_save_flags=$CXXFLAGS 5151 CXXFLAGS="$CXXFLAGS -Werror -fno-strict-overflow" 5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5153/* end confdefs.h. */ 5154 5155int 5156main () 5157{ 5158 5159 ; 5160 return 0; 5161} 5162_ACEOF 5163if ac_fn_cxx_try_compile "$LINENO"; then : 5164 ax_cv_check_cxxflags__Werror___fno_strict_overflow=yes 5165else 5166 ax_cv_check_cxxflags__Werror___fno_strict_overflow=no 5167fi 5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5169 CXXFLAGS=$ax_check_save_flags 5170fi 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror___fno_strict_overflow" >&5 5172$as_echo "$ax_cv_check_cxxflags__Werror___fno_strict_overflow" >&6; } 5173if test x"$ax_cv_check_cxxflags__Werror___fno_strict_overflow" = xyes; then : 5174 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow" 5175else 5176 : 5177fi 5178 5179 ac_ext=c 5180ac_cpp='$CPP $CPPFLAGS' 5181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5183ac_compiler_gnu=$ac_cv_c_compiler_gnu 5184 5185else 5186 : 5187fi 5188 5189 ac_ext=c 5190ac_cpp='$CPP $CPPFLAGS' 5191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5193ac_compiler_gnu=$ac_cv_c_compiler_gnu 5194 5195 5196 # This one will likely succeed, even on platforms where it does nothing. 5197 ac_ext=c 5198ac_cpp='$CPP $CPPFLAGS' 5199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5201ac_compiler_gnu=$ac_cv_c_compiler_gnu 5202 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5 5204$as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; } 5205if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 5209 ax_check_save_flags=$CFLAGS 5210 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2" 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213 5214int 5215main () 5216{ 5217 5218 ; 5219 return 0; 5220} 5221_ACEOF 5222if ac_fn_c_try_compile "$LINENO"; then : 5223 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes 5224else 5225 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no 5226fi 5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5228 CFLAGS=$ax_check_save_flags 5229fi 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5 5231$as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; } 5232if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then : 5233 ac_ext=cpp 5234ac_cpp='$CXXCPP $CPPFLAGS' 5235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5238 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -D_FORTIFY_SOURCE=2" >&5 5240$as_echo_n "checking whether C++ compiler accepts -D_FORTIFY_SOURCE=2... " >&6; } 5241if ${ax_cv_check_cxxflags__Werror___D_FORTIFY_SOURCE_2+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 5245 ax_check_save_flags=$CXXFLAGS 5246 CXXFLAGS="$CXXFLAGS -Werror -D_FORTIFY_SOURCE=2" 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249 5250int 5251main () 5252{ 5253 5254 ; 5255 return 0; 5256} 5257_ACEOF 5258if ac_fn_cxx_try_compile "$LINENO"; then : 5259 ax_cv_check_cxxflags__Werror___D_FORTIFY_SOURCE_2=yes 5260else 5261 ax_cv_check_cxxflags__Werror___D_FORTIFY_SOURCE_2=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5264 CXXFLAGS=$ax_check_save_flags 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror___D_FORTIFY_SOURCE_2" >&5 5267$as_echo "$ax_cv_check_cxxflags__Werror___D_FORTIFY_SOURCE_2" >&6; } 5268if test x"$ax_cv_check_cxxflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then : 5269 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2" 5270else 5271 : 5272fi 5273 5274 ac_ext=c 5275ac_cpp='$CPP $CPPFLAGS' 5276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5278ac_compiler_gnu=$ac_cv_c_compiler_gnu 5279 5280else 5281 : 5282fi 5283 5284 ac_ext=c 5285ac_cpp='$CPP $CPPFLAGS' 5286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5288ac_compiler_gnu=$ac_cv_c_compiler_gnu 5289 5290 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5 5292$as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; } 5293if ${ax_cv_check_ldflags__Werror___fstack_protector_all+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295else 5296 5297 ax_check_save_flags=$LDFLAGS 5298 LDFLAGS="$LDFLAGS -Werror -fstack-protector-all" 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5300/* end confdefs.h. */ 5301 5302int 5303main () 5304{ 5305 5306 ; 5307 return 0; 5308} 5309_ACEOF 5310if ac_fn_c_try_link "$LINENO"; then : 5311 ax_cv_check_ldflags__Werror___fstack_protector_all=yes 5312else 5313 ax_cv_check_ldflags__Werror___fstack_protector_all=no 5314fi 5315rm -f core conftest.err conftest.$ac_objext \ 5316 conftest$ac_exeext conftest.$ac_ext 5317 LDFLAGS=$ax_check_save_flags 5318fi 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5 5320$as_echo "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; } 5321if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes; then : 5322 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all" 5323 ac_ext=c 5324ac_cpp='$CPP $CPPFLAGS' 5325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5327ac_compiler_gnu=$ac_cv_c_compiler_gnu 5328 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5 5330$as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; } 5331if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 5335 ax_check_save_flags=$CFLAGS 5336 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector" 5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5338/* end confdefs.h. */ 5339 5340int 5341main () 5342{ 5343 5344 ; 5345 return 0; 5346} 5347_ACEOF 5348if ac_fn_c_try_compile "$LINENO"; then : 5349 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes 5350else 5351 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no 5352fi 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354 CFLAGS=$ax_check_save_flags 5355fi 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5 5357$as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; } 5358if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then : 5359 ac_ext=cpp 5360ac_cpp='$CXXCPP $CPPFLAGS' 5361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5364 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wstack-protector" >&5 5366$as_echo_n "checking whether C++ compiler accepts -Wstack-protector... " >&6; } 5367if ${ax_cv_check_cxxflags__Werror__fstack_protector_all__Wstack_protector+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 5371 ax_check_save_flags=$CXXFLAGS 5372 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -Wstack-protector" 5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374/* end confdefs.h. */ 5375 5376int 5377main () 5378{ 5379 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384if ac_fn_cxx_try_compile "$LINENO"; then : 5385 ax_cv_check_cxxflags__Werror__fstack_protector_all__Wstack_protector=yes 5386else 5387 ax_cv_check_cxxflags__Werror__fstack_protector_all__Wstack_protector=no 5388fi 5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5390 CXXFLAGS=$ax_check_save_flags 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__fstack_protector_all__Wstack_protector" >&5 5393$as_echo "$ax_cv_check_cxxflags__Werror__fstack_protector_all__Wstack_protector" >&6; } 5394if test x"$ax_cv_check_cxxflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then : 5395 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector" 5396else 5397 : 5398fi 5399 5400 ac_ext=c 5401ac_cpp='$CPP $CPPFLAGS' 5402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5404ac_compiler_gnu=$ac_cv_c_compiler_gnu 5405 5406else 5407 : 5408fi 5409 5410 ac_ext=c 5411ac_cpp='$CPP $CPPFLAGS' 5412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5414ac_compiler_gnu=$ac_cv_c_compiler_gnu 5415 5416 ac_ext=c 5417ac_cpp='$CPP $CPPFLAGS' 5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5420ac_compiler_gnu=$ac_cv_c_compiler_gnu 5421 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5 5423$as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; } 5424if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 5428 ax_check_save_flags=$CFLAGS 5429 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1" 5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431/* end confdefs.h. */ 5432 5433int 5434main () 5435{ 5436 5437 ; 5438 return 0; 5439} 5440_ACEOF 5441if ac_fn_c_try_compile "$LINENO"; then : 5442 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes 5443else 5444 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no 5445fi 5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5447 CFLAGS=$ax_check_save_flags 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5 5450$as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; } 5451if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then : 5452 ac_ext=cpp 5453ac_cpp='$CXXCPP $CPPFLAGS' 5454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5457 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --param ssp-buffer-size=1" >&5 5459$as_echo_n "checking whether C++ compiler accepts --param ssp-buffer-size=1... " >&6; } 5460if ${ax_cv_check_cxxflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 5464 ax_check_save_flags=$CXXFLAGS 5465 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1" 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468 5469int 5470main () 5471{ 5472 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477if ac_fn_cxx_try_compile "$LINENO"; then : 5478 ax_cv_check_cxxflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes 5479else 5480 ax_cv_check_cxxflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no 5481fi 5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5483 CXXFLAGS=$ax_check_save_flags 5484fi 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5 5486$as_echo "$ax_cv_check_cxxflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; } 5487if test x"$ax_cv_check_cxxflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then : 5488 HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1" 5489else 5490 : 5491fi 5492 5493 ac_ext=c 5494ac_cpp='$CPP $CPPFLAGS' 5495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5497ac_compiler_gnu=$ac_cv_c_compiler_gnu 5498 5499else 5500 : 5501fi 5502 5503 ac_ext=c 5504ac_cpp='$CPP $CPPFLAGS' 5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5507ac_compiler_gnu=$ac_cv_c_compiler_gnu 5508 5509else 5510 : 5511fi 5512 5513 5514 ac_ext=c 5515ac_cpp='$CPP $CPPFLAGS' 5516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5518ac_compiler_gnu=$ac_cv_c_compiler_gnu 5519 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5 5521$as_echo_n "checking whether C compiler accepts -fPIE... " >&6; } 5522if ${ax_cv_check_cflags__Werror___fPIE+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524else 5525 5526 ax_check_save_flags=$CFLAGS 5527 CFLAGS="$CFLAGS -Werror -fPIE" 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530 5531int 5532main () 5533{ 5534 5535 ; 5536 return 0; 5537} 5538_ACEOF 5539if ac_fn_c_try_compile "$LINENO"; then : 5540 ax_cv_check_cflags__Werror___fPIE=yes 5541else 5542 ax_cv_check_cflags__Werror___fPIE=no 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5545 CFLAGS=$ax_check_save_flags 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5 5548$as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; } 5549if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then : 5550 ac_ext=cpp 5551ac_cpp='$CXXCPP $CPPFLAGS' 5552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5555 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fPIE" >&5 5557$as_echo_n "checking whether C++ compiler accepts -fPIE... " >&6; } 5558if ${ax_cv_check_cxxflags__Werror___fPIE+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 5562 ax_check_save_flags=$CXXFLAGS 5563 CXXFLAGS="$CXXFLAGS -Werror -fPIE" 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566 5567int 5568main () 5569{ 5570 5571 ; 5572 return 0; 5573} 5574_ACEOF 5575if ac_fn_cxx_try_compile "$LINENO"; then : 5576 ax_cv_check_cxxflags__Werror___fPIE=yes 5577else 5578 ax_cv_check_cxxflags__Werror___fPIE=no 5579fi 5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5581 CXXFLAGS=$ax_check_save_flags 5582fi 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror___fPIE" >&5 5584$as_echo "$ax_cv_check_cxxflags__Werror___fPIE" >&6; } 5585if test x"$ax_cv_check_cxxflags__Werror___fPIE" = xyes; then : 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5 5587$as_echo_n "checking whether the linker accepts -fPIE -pie... " >&6; } 5588if ${ax_cv_check_ldflags__Werror___fPIE__pie+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 5592 ax_check_save_flags=$LDFLAGS 5593 LDFLAGS="$LDFLAGS -Werror -fPIE -pie" 5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596 5597int 5598main () 5599{ 5600 5601 ; 5602 return 0; 5603} 5604_ACEOF 5605if ac_fn_cxx_try_link "$LINENO"; then : 5606 ax_cv_check_ldflags__Werror___fPIE__pie=yes 5607else 5608 ax_cv_check_ldflags__Werror___fPIE__pie=no 5609fi 5610rm -f core conftest.err conftest.$ac_objext \ 5611 conftest$ac_exeext conftest.$ac_ext 5612 LDFLAGS=$ax_check_save_flags 5613fi 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5 5615$as_echo "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; } 5616if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes; then : 5617 HARDEN_CFLAGS="$HARDEN_CFLAGS -fPIE" 5618 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -pie" 5619else 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5 5621$as_echo_n "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; } 5622if ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 5626 ax_check_save_flags=$LDFLAGS 5627 LDFLAGS="$LDFLAGS -Werror -fPIE -Wl,-pie" 5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629/* end confdefs.h. */ 5630 5631int 5632main () 5633{ 5634 5635 ; 5636 return 0; 5637} 5638_ACEOF 5639if ac_fn_cxx_try_link "$LINENO"; then : 5640 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes 5641else 5642 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no 5643fi 5644rm -f core conftest.err conftest.$ac_objext \ 5645 conftest$ac_exeext conftest.$ac_ext 5646 LDFLAGS=$ax_check_save_flags 5647fi 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5 5649$as_echo "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; } 5650if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes; then : 5651 HARDEN_CFLAGS="$HARDEN_CFLAGS -fPIE" 5652 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-pie" 5653else 5654 : 5655fi 5656 5657fi 5658 5659else 5660 : 5661fi 5662 5663 ac_ext=c 5664ac_cpp='$CPP $CPPFLAGS' 5665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5667ac_compiler_gnu=$ac_cv_c_compiler_gnu 5668 5669else 5670 : 5671fi 5672 5673 ac_ext=c 5674ac_cpp='$CPP $CPPFLAGS' 5675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5677ac_compiler_gnu=$ac_cv_c_compiler_gnu 5678 5679 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5 5681$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; } 5682if ${ax_cv_check_ldflags__Werror___Wl__z_relro+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 5686 ax_check_save_flags=$LDFLAGS 5687 LDFLAGS="$LDFLAGS -Werror -Wl,-z,relro" 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5689/* end confdefs.h. */ 5690 5691int 5692main () 5693{ 5694 5695 ; 5696 return 0; 5697} 5698_ACEOF 5699if ac_fn_c_try_link "$LINENO"; then : 5700 ax_cv_check_ldflags__Werror___Wl__z_relro=yes 5701else 5702 ax_cv_check_ldflags__Werror___Wl__z_relro=no 5703fi 5704rm -f core conftest.err conftest.$ac_objext \ 5705 conftest$ac_exeext conftest.$ac_ext 5706 LDFLAGS=$ax_check_save_flags 5707fi 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5 5709$as_echo "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; } 5710if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes; then : 5711 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro" 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5 5713$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; } 5714if ${ax_cv_check_ldflags__Werror___Wl__z_now+:} false; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 5718 ax_check_save_flags=$LDFLAGS 5719 LDFLAGS="$LDFLAGS -Werror -Wl,-z,now" 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722 5723int 5724main () 5725{ 5726 5727 ; 5728 return 0; 5729} 5730_ACEOF 5731if ac_fn_c_try_link "$LINENO"; then : 5732 ax_cv_check_ldflags__Werror___Wl__z_now=yes 5733else 5734 ax_cv_check_ldflags__Werror___Wl__z_now=no 5735fi 5736rm -f core conftest.err conftest.$ac_objext \ 5737 conftest$ac_exeext conftest.$ac_ext 5738 LDFLAGS=$ax_check_save_flags 5739fi 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5 5741$as_echo "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; } 5742if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes; then : 5743 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now" 5744else 5745 : 5746fi 5747 5748else 5749 : 5750fi 5751 5752fi 5753 5754 5755 5756# Also check for a few non-hardening-related flags. 5757MISC_CXXFLAGS="" 5758ac_ext=cpp 5759ac_cpp='$CXXCPP $CPPFLAGS' 5760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fno-default-inline" >&5 5765$as_echo_n "checking whether C++ compiler accepts -fno-default-inline... " >&6; } 5766if ${ax_cv_check_cxxflags__Werror__fno_default_inline+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 5770 ax_check_save_flags=$CXXFLAGS 5771 CXXFLAGS="$CXXFLAGS -Werror -fno-default-inline" 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5773/* end confdefs.h. */ 5774 5775int 5776main () 5777{ 5778 5779 ; 5780 return 0; 5781} 5782_ACEOF 5783if ac_fn_cxx_try_compile "$LINENO"; then : 5784 ax_cv_check_cxxflags__Werror__fno_default_inline=yes 5785else 5786 ax_cv_check_cxxflags__Werror__fno_default_inline=no 5787fi 5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5789 CXXFLAGS=$ax_check_save_flags 5790fi 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__fno_default_inline" >&5 5792$as_echo "$ax_cv_check_cxxflags__Werror__fno_default_inline" >&6; } 5793if test x"$ax_cv_check_cxxflags__Werror__fno_default_inline" = xyes; then : 5794 MISC_CXXFLAGS="$MISC_CXXFLAGS -fno-default-inline" 5795else 5796 : 5797fi 5798 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -pipe" >&5 5800$as_echo_n "checking whether C++ compiler accepts -pipe... " >&6; } 5801if ${ax_cv_check_cxxflags__Werror__pipe+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 5805 ax_check_save_flags=$CXXFLAGS 5806 CXXFLAGS="$CXXFLAGS -Werror -pipe" 5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808/* end confdefs.h. */ 5809 5810int 5811main () 5812{ 5813 5814 ; 5815 return 0; 5816} 5817_ACEOF 5818if ac_fn_cxx_try_compile "$LINENO"; then : 5819 ax_cv_check_cxxflags__Werror__pipe=yes 5820else 5821 ax_cv_check_cxxflags__Werror__pipe=no 5822fi 5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5824 CXXFLAGS=$ax_check_save_flags 5825fi 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__pipe" >&5 5827$as_echo "$ax_cv_check_cxxflags__Werror__pipe" >&6; } 5828if test x"$ax_cv_check_cxxflags__Werror__pipe" = xyes; then : 5829 MISC_CXXFLAGS="$MISC_CXXFLAGS -pipe" 5830else 5831 : 5832fi 5833 5834ac_ext=c 5835ac_cpp='$CPP $CPPFLAGS' 5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5838ac_compiler_gnu=$ac_cv_c_compiler_gnu 5839 5840 5841 5842# End of flag tests. 5843CC="$saved_CC" 5844CXX="$saved_CXX" 5845LD="$saved_LD" 5846 5847# Check whether --enable-client was given. 5848if test "${enable_client+set}" = set; then : 5849 enableval=$enable_client; build_client="$enableval" 5850else 5851 build_client="yes" 5852fi 5853 5854 if test x"$build_client" != xno; then 5855 BUILD_CLIENT_TRUE= 5856 BUILD_CLIENT_FALSE='#' 5857else 5858 BUILD_CLIENT_TRUE='#' 5859 BUILD_CLIENT_FALSE= 5860fi 5861 5862 5863# Check whether --enable-server was given. 5864if test "${enable_server+set}" = set; then : 5865 enableval=$enable_server; build_server="$enableval" 5866else 5867 build_server="yes" 5868fi 5869 5870 if test x"$build_server" != xno; then 5871 BUILD_SERVER_TRUE= 5872 BUILD_SERVER_FALSE='#' 5873else 5874 BUILD_SERVER_TRUE='#' 5875 BUILD_SERVER_FALSE= 5876fi 5877 5878 5879# Check whether --enable-examples was given. 5880if test "${enable_examples+set}" = set; then : 5881 enableval=$enable_examples; build_examples="$enableval" 5882else 5883 build_examples="no" 5884fi 5885 5886 if test x"$build_examples" != xno; then 5887 BUILD_EXAMPLES_TRUE= 5888 BUILD_EXAMPLES_FALSE='#' 5889else 5890 BUILD_EXAMPLES_TRUE='#' 5891 BUILD_EXAMPLES_FALSE= 5892fi 5893 5894 5895# Check whether --enable-ufw was given. 5896if test "${enable_ufw+set}" = set; then : 5897 enableval=$enable_ufw; install_ufw="$enableval" 5898else 5899 install_ufw="no" 5900fi 5901 5902 if test x"$install_ufw" != xno; then 5903 INSTALL_UFW_TRUE= 5904 INSTALL_UFW_FALSE='#' 5905else 5906 INSTALL_UFW_TRUE='#' 5907 INSTALL_UFW_FALSE= 5908fi 5909 5910 5911# Check whether --enable-completion was given. 5912if test "${enable_completion+set}" = set; then : 5913 enableval=$enable_completion; install_completion="$enableval" 5914else 5915 install_completion="no" 5916fi 5917 5918 if test x"$install_completion" != xno; then 5919 INSTALL_COMPLETION_TRUE= 5920 INSTALL_COMPLETION_FALSE='#' 5921else 5922 INSTALL_COMPLETION_TRUE='#' 5923 INSTALL_COMPLETION_FALSE= 5924fi 5925 5926 5927# Checks for libraries. 5928 5929# Check whether --with-utempter was given. 5930if test "${with_utempter+set}" = set; then : 5931 withval=$with_utempter; with_utempter="$withval" 5932else 5933 with_utempter="check" 5934fi 5935 5936if test x"$with_utempter" != xno; then : 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing utempter_remove_record" >&5 5938$as_echo_n "checking for library containing utempter_remove_record... " >&6; } 5939if ${ac_cv_search_utempter_remove_record+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 ac_func_search_save_LIBS=$LIBS 5943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945 5946/* Override any GCC internal prototype to avoid an error. 5947 Use char because int might match the return type of a GCC 5948 builtin and then its argument prototype would still apply. */ 5949#ifdef __cplusplus 5950extern "C" 5951#endif 5952char utempter_remove_record (); 5953int 5954main () 5955{ 5956return utempter_remove_record (); 5957 ; 5958 return 0; 5959} 5960_ACEOF 5961for ac_lib in '' utempter; do 5962 if test -z "$ac_lib"; then 5963 ac_res="none required" 5964 else 5965 ac_res=-l$ac_lib 5966 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5967 fi 5968 if ac_fn_c_try_link "$LINENO"; then : 5969 ac_cv_search_utempter_remove_record=$ac_res 5970fi 5971rm -f core conftest.err conftest.$ac_objext \ 5972 conftest$ac_exeext 5973 if ${ac_cv_search_utempter_remove_record+:} false; then : 5974 break 5975fi 5976done 5977if ${ac_cv_search_utempter_remove_record+:} false; then : 5978 5979else 5980 ac_cv_search_utempter_remove_record=no 5981fi 5982rm conftest.$ac_ext 5983LIBS=$ac_func_search_save_LIBS 5984fi 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_utempter_remove_record" >&5 5986$as_echo "$ac_cv_search_utempter_remove_record" >&6; } 5987ac_res=$ac_cv_search_utempter_remove_record 5988if test "$ac_res" != no; then : 5989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5990 5991$as_echo "#define HAVE_UTEMPTER 1" >>confdefs.h 5992 5993else 5994 if test x"$with_utempter" = xcheck; then : 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libutempter; utmp entries will not be made." >&5 5996$as_echo "$as_me: WARNING: Unable to find libutempter; utmp entries will not be made." >&2;} 5997else 5998 as_fn_error $? "--with-utempter was given but libutempter was not found." "$LINENO" 5 5999fi 6000fi 6001 6002fi 6003 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress" >&5 6005$as_echo_n "checking for library containing compress... " >&6; } 6006if ${ac_cv_search_compress+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 ac_func_search_save_LIBS=$LIBS 6010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6011/* end confdefs.h. */ 6012 6013/* Override any GCC internal prototype to avoid an error. 6014 Use char because int might match the return type of a GCC 6015 builtin and then its argument prototype would still apply. */ 6016#ifdef __cplusplus 6017extern "C" 6018#endif 6019char compress (); 6020int 6021main () 6022{ 6023return compress (); 6024 ; 6025 return 0; 6026} 6027_ACEOF 6028for ac_lib in '' z; do 6029 if test -z "$ac_lib"; then 6030 ac_res="none required" 6031 else 6032 ac_res=-l$ac_lib 6033 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6034 fi 6035 if ac_fn_c_try_link "$LINENO"; then : 6036 ac_cv_search_compress=$ac_res 6037fi 6038rm -f core conftest.err conftest.$ac_objext \ 6039 conftest$ac_exeext 6040 if ${ac_cv_search_compress+:} false; then : 6041 break 6042fi 6043done 6044if ${ac_cv_search_compress+:} false; then : 6045 6046else 6047 ac_cv_search_compress=no 6048fi 6049rm conftest.$ac_ext 6050LIBS=$ac_func_search_save_LIBS 6051fi 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress" >&5 6053$as_echo "$ac_cv_search_compress" >&6; } 6054ac_res=$ac_cv_search_compress 6055if test "$ac_res" != no; then : 6056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6057 6058else 6059 as_fn_error $? "Unable to find zlib." "$LINENO" 5 6060fi 6061 6062 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 6064$as_echo_n "checking for library containing socket... " >&6; } 6065if ${ac_cv_search_socket+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 ac_func_search_save_LIBS=$LIBS 6069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071 6072/* Override any GCC internal prototype to avoid an error. 6073 Use char because int might match the return type of a GCC 6074 builtin and then its argument prototype would still apply. */ 6075#ifdef __cplusplus 6076extern "C" 6077#endif 6078char socket (); 6079int 6080main () 6081{ 6082return socket (); 6083 ; 6084 return 0; 6085} 6086_ACEOF 6087for ac_lib in '' socket network; do 6088 if test -z "$ac_lib"; then 6089 ac_res="none required" 6090 else 6091 ac_res=-l$ac_lib 6092 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6093 fi 6094 if ac_fn_c_try_link "$LINENO"; then : 6095 ac_cv_search_socket=$ac_res 6096fi 6097rm -f core conftest.err conftest.$ac_objext \ 6098 conftest$ac_exeext 6099 if ${ac_cv_search_socket+:} false; then : 6100 break 6101fi 6102done 6103if ${ac_cv_search_socket+:} false; then : 6104 6105else 6106 ac_cv_search_socket=no 6107fi 6108rm conftest.$ac_ext 6109LIBS=$ac_func_search_save_LIBS 6110fi 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 6112$as_echo "$ac_cv_search_socket" >&6; } 6113ac_res=$ac_cv_search_socket 6114if test "$ac_res" != no; then : 6115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6116 6117fi 6118 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 6120$as_echo_n "checking for library containing inet_addr... " >&6; } 6121if ${ac_cv_search_inet_addr+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 ac_func_search_save_LIBS=$LIBS 6125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127 6128/* Override any GCC internal prototype to avoid an error. 6129 Use char because int might match the return type of a GCC 6130 builtin and then its argument prototype would still apply. */ 6131#ifdef __cplusplus 6132extern "C" 6133#endif 6134char inet_addr (); 6135int 6136main () 6137{ 6138return inet_addr (); 6139 ; 6140 return 0; 6141} 6142_ACEOF 6143for ac_lib in '' nsl; do 6144 if test -z "$ac_lib"; then 6145 ac_res="none required" 6146 else 6147 ac_res=-l$ac_lib 6148 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6149 fi 6150 if ac_fn_c_try_link "$LINENO"; then : 6151 ac_cv_search_inet_addr=$ac_res 6152fi 6153rm -f core conftest.err conftest.$ac_objext \ 6154 conftest$ac_exeext 6155 if ${ac_cv_search_inet_addr+:} false; then : 6156 break 6157fi 6158done 6159if ${ac_cv_search_inet_addr+:} false; then : 6160 6161else 6162 ac_cv_search_inet_addr=no 6163fi 6164rm conftest.$ac_ext 6165LIBS=$ac_func_search_save_LIBS 6166fi 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 6168$as_echo "$ac_cv_search_inet_addr" >&6; } 6169ac_res=$ac_cv_search_inet_addr 6170if test "$ac_res" != no; then : 6171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6172 6173fi 6174 6175 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 6177$as_echo_n "checking for library containing clock_gettime... " >&6; } 6178if ${ac_cv_search_clock_gettime+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 ac_func_search_save_LIBS=$LIBS 6182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184 6185/* Override any GCC internal prototype to avoid an error. 6186 Use char because int might match the return type of a GCC 6187 builtin and then its argument prototype would still apply. */ 6188#ifdef __cplusplus 6189extern "C" 6190#endif 6191char clock_gettime (); 6192int 6193main () 6194{ 6195return clock_gettime (); 6196 ; 6197 return 0; 6198} 6199_ACEOF 6200for ac_lib in '' rt; do 6201 if test -z "$ac_lib"; then 6202 ac_res="none required" 6203 else 6204 ac_res=-l$ac_lib 6205 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6206 fi 6207 if ac_fn_c_try_link "$LINENO"; then : 6208 ac_cv_search_clock_gettime=$ac_res 6209fi 6210rm -f core conftest.err conftest.$ac_objext \ 6211 conftest$ac_exeext 6212 if ${ac_cv_search_clock_gettime+:} false; then : 6213 break 6214fi 6215done 6216if ${ac_cv_search_clock_gettime+:} false; then : 6217 6218else 6219 ac_cv_search_clock_gettime=no 6220fi 6221rm conftest.$ac_ext 6222LIBS=$ac_func_search_save_LIBS 6223fi 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 6225$as_echo "$ac_cv_search_clock_gettime" >&6; } 6226ac_res=$ac_cv_search_clock_gettime 6227if test "$ac_res" != no; then : 6228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6229 6230fi 6231 6232 6233# Checks for header files. 6234ac_ext=c 6235ac_cpp='$CPP $CPPFLAGS' 6236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6238ac_compiler_gnu=$ac_cv_c_compiler_gnu 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6240$as_echo_n "checking how to run the C preprocessor... " >&6; } 6241# On Suns, sometimes $CPP names a directory. 6242if test -n "$CPP" && test -d "$CPP"; then 6243 CPP= 6244fi 6245if test -z "$CPP"; then 6246 if ${ac_cv_prog_CPP+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248else 6249 # Double quotes because CPP needs to be expanded 6250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6251 do 6252 ac_preproc_ok=false 6253for ac_c_preproc_warn_flag in '' yes 6254do 6255 # Use a header file that comes with gcc, so configuring glibc 6256 # with a fresh cross-compiler works. 6257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6258 # <limits.h> exists even on freestanding compilers. 6259 # On the NeXT, cc -E runs the code through the compiler's parser, 6260 # not just through cpp. "Syntax error" is here to catch this case. 6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6262/* end confdefs.h. */ 6263#ifdef __STDC__ 6264# include <limits.h> 6265#else 6266# include <assert.h> 6267#endif 6268 Syntax error 6269_ACEOF 6270if ac_fn_c_try_cpp "$LINENO"; then : 6271 6272else 6273 # Broken: fails on valid input. 6274continue 6275fi 6276rm -f conftest.err conftest.i conftest.$ac_ext 6277 6278 # OK, works on sane cases. Now check whether nonexistent headers 6279 # can be detected and how. 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282#include <ac_nonexistent.h> 6283_ACEOF 6284if ac_fn_c_try_cpp "$LINENO"; then : 6285 # Broken: success on invalid input. 6286continue 6287else 6288 # Passes both tests. 6289ac_preproc_ok=: 6290break 6291fi 6292rm -f conftest.err conftest.i conftest.$ac_ext 6293 6294done 6295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6296rm -f conftest.i conftest.err conftest.$ac_ext 6297if $ac_preproc_ok; then : 6298 break 6299fi 6300 6301 done 6302 ac_cv_prog_CPP=$CPP 6303 6304fi 6305 CPP=$ac_cv_prog_CPP 6306else 6307 ac_cv_prog_CPP=$CPP 6308fi 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6310$as_echo "$CPP" >&6; } 6311ac_preproc_ok=false 6312for ac_c_preproc_warn_flag in '' yes 6313do 6314 # Use a header file that comes with gcc, so configuring glibc 6315 # with a fresh cross-compiler works. 6316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6317 # <limits.h> exists even on freestanding compilers. 6318 # On the NeXT, cc -E runs the code through the compiler's parser, 6319 # not just through cpp. "Syntax error" is here to catch this case. 6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321/* end confdefs.h. */ 6322#ifdef __STDC__ 6323# include <limits.h> 6324#else 6325# include <assert.h> 6326#endif 6327 Syntax error 6328_ACEOF 6329if ac_fn_c_try_cpp "$LINENO"; then : 6330 6331else 6332 # Broken: fails on valid input. 6333continue 6334fi 6335rm -f conftest.err conftest.i conftest.$ac_ext 6336 6337 # OK, works on sane cases. Now check whether nonexistent headers 6338 # can be detected and how. 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341#include <ac_nonexistent.h> 6342_ACEOF 6343if ac_fn_c_try_cpp "$LINENO"; then : 6344 # Broken: success on invalid input. 6345continue 6346else 6347 # Passes both tests. 6348ac_preproc_ok=: 6349break 6350fi 6351rm -f conftest.err conftest.i conftest.$ac_ext 6352 6353done 6354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6355rm -f conftest.i conftest.err conftest.$ac_ext 6356if $ac_preproc_ok; then : 6357 6358else 6359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6361as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6362See \`config.log' for more details" "$LINENO" 5; } 6363fi 6364 6365ac_ext=c 6366ac_cpp='$CPP $CPPFLAGS' 6367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6369ac_compiler_gnu=$ac_cv_c_compiler_gnu 6370 6371 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6373$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6374if ${ac_cv_path_GREP+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 if test -z "$GREP"; then 6378 ac_path_GREP_found=false 6379 # Loop through the user's path and test for each of PROGNAME-LIST 6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6382do 6383 IFS=$as_save_IFS 6384 test -z "$as_dir" && as_dir=. 6385 for ac_prog in grep ggrep; do 6386 for ac_exec_ext in '' $ac_executable_extensions; do 6387 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6388 as_fn_executable_p "$ac_path_GREP" || continue 6389# Check for GNU ac_path_GREP and select it if it is found. 6390 # Check for GNU $ac_path_GREP 6391case `"$ac_path_GREP" --version 2>&1` in 6392*GNU*) 6393 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6394*) 6395 ac_count=0 6396 $as_echo_n 0123456789 >"conftest.in" 6397 while : 6398 do 6399 cat "conftest.in" "conftest.in" >"conftest.tmp" 6400 mv "conftest.tmp" "conftest.in" 6401 cp "conftest.in" "conftest.nl" 6402 $as_echo 'GREP' >> "conftest.nl" 6403 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6405 as_fn_arith $ac_count + 1 && ac_count=$as_val 6406 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6407 # Best one so far, save it but keep looking for a better one 6408 ac_cv_path_GREP="$ac_path_GREP" 6409 ac_path_GREP_max=$ac_count 6410 fi 6411 # 10*(2^10) chars as input seems more than enough 6412 test $ac_count -gt 10 && break 6413 done 6414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6415esac 6416 6417 $ac_path_GREP_found && break 3 6418 done 6419 done 6420 done 6421IFS=$as_save_IFS 6422 if test -z "$ac_cv_path_GREP"; then 6423 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6424 fi 6425else 6426 ac_cv_path_GREP=$GREP 6427fi 6428 6429fi 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6431$as_echo "$ac_cv_path_GREP" >&6; } 6432 GREP="$ac_cv_path_GREP" 6433 6434 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6436$as_echo_n "checking for egrep... " >&6; } 6437if ${ac_cv_path_EGREP+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6441 then ac_cv_path_EGREP="$GREP -E" 6442 else 6443 if test -z "$EGREP"; then 6444 ac_path_EGREP_found=false 6445 # Loop through the user's path and test for each of PROGNAME-LIST 6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6448do 6449 IFS=$as_save_IFS 6450 test -z "$as_dir" && as_dir=. 6451 for ac_prog in egrep; do 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6454 as_fn_executable_p "$ac_path_EGREP" || continue 6455# Check for GNU ac_path_EGREP and select it if it is found. 6456 # Check for GNU $ac_path_EGREP 6457case `"$ac_path_EGREP" --version 2>&1` in 6458*GNU*) 6459 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6460*) 6461 ac_count=0 6462 $as_echo_n 0123456789 >"conftest.in" 6463 while : 6464 do 6465 cat "conftest.in" "conftest.in" >"conftest.tmp" 6466 mv "conftest.tmp" "conftest.in" 6467 cp "conftest.in" "conftest.nl" 6468 $as_echo 'EGREP' >> "conftest.nl" 6469 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6471 as_fn_arith $ac_count + 1 && ac_count=$as_val 6472 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6473 # Best one so far, save it but keep looking for a better one 6474 ac_cv_path_EGREP="$ac_path_EGREP" 6475 ac_path_EGREP_max=$ac_count 6476 fi 6477 # 10*(2^10) chars as input seems more than enough 6478 test $ac_count -gt 10 && break 6479 done 6480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6481esac 6482 6483 $ac_path_EGREP_found && break 3 6484 done 6485 done 6486 done 6487IFS=$as_save_IFS 6488 if test -z "$ac_cv_path_EGREP"; then 6489 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6490 fi 6491else 6492 ac_cv_path_EGREP=$EGREP 6493fi 6494 6495 fi 6496fi 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6498$as_echo "$ac_cv_path_EGREP" >&6; } 6499 EGREP="$ac_cv_path_EGREP" 6500 6501 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6503$as_echo_n "checking for ANSI C header files... " >&6; } 6504if ${ac_cv_header_stdc+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508/* end confdefs.h. */ 6509#include <stdlib.h> 6510#include <stdarg.h> 6511#include <string.h> 6512#include <float.h> 6513 6514int 6515main () 6516{ 6517 6518 ; 6519 return 0; 6520} 6521_ACEOF 6522if ac_fn_c_try_compile "$LINENO"; then : 6523 ac_cv_header_stdc=yes 6524else 6525 ac_cv_header_stdc=no 6526fi 6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6528 6529if test $ac_cv_header_stdc = yes; then 6530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533#include <string.h> 6534 6535_ACEOF 6536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6537 $EGREP "memchr" >/dev/null 2>&1; then : 6538 6539else 6540 ac_cv_header_stdc=no 6541fi 6542rm -f conftest* 6543 6544fi 6545 6546if test $ac_cv_header_stdc = yes; then 6547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6549/* end confdefs.h. */ 6550#include <stdlib.h> 6551 6552_ACEOF 6553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6554 $EGREP "free" >/dev/null 2>&1; then : 6555 6556else 6557 ac_cv_header_stdc=no 6558fi 6559rm -f conftest* 6560 6561fi 6562 6563if test $ac_cv_header_stdc = yes; then 6564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6565 if test "$cross_compiling" = yes; then : 6566 : 6567else 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570#include <ctype.h> 6571#include <stdlib.h> 6572#if ((' ' & 0x0FF) == 0x020) 6573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6575#else 6576# define ISLOWER(c) \ 6577 (('a' <= (c) && (c) <= 'i') \ 6578 || ('j' <= (c) && (c) <= 'r') \ 6579 || ('s' <= (c) && (c) <= 'z')) 6580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6581#endif 6582 6583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6584int 6585main () 6586{ 6587 int i; 6588 for (i = 0; i < 256; i++) 6589 if (XOR (islower (i), ISLOWER (i)) 6590 || toupper (i) != TOUPPER (i)) 6591 return 2; 6592 return 0; 6593} 6594_ACEOF 6595if ac_fn_c_try_run "$LINENO"; then : 6596 6597else 6598 ac_cv_header_stdc=no 6599fi 6600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6601 conftest.$ac_objext conftest.beam conftest.$ac_ext 6602fi 6603 6604fi 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6607$as_echo "$ac_cv_header_stdc" >&6; } 6608if test $ac_cv_header_stdc = yes; then 6609 6610$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6611 6612fi 6613 6614# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6616 inttypes.h stdint.h unistd.h 6617do : 6618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6620" 6621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6622 cat >>confdefs.h <<_ACEOF 6623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6624_ACEOF 6625 6626fi 6627 6628done 6629 6630 6631for ac_header in fcntl.h langinfo.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h inttypes.h stdlib.h string.h sys/ioctl.h sys/resource.h sys/socket.h sys/stat.h sys/time.h termios.h unistd.h wchar.h wctype.h 6632do : 6633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6634ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6635if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6636 cat >>confdefs.h <<_ACEOF 6637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6638_ACEOF 6639 6640else 6641 as_fn_error $? "Missing required header file." "$LINENO" 5 6642fi 6643 6644done 6645 6646 6647for ac_header in pty.h util.h libutil.h paths.h 6648do : 6649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6650ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6652 cat >>confdefs.h <<_ACEOF 6653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6654_ACEOF 6655 6656fi 6657 6658done 6659 6660for ac_header in endian.h sys/endian.h 6661do : 6662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6663ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6664if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6665 cat >>confdefs.h <<_ACEOF 6666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6667_ACEOF 6668 6669fi 6670 6671done 6672 6673for ac_header in utmpx.h 6674do : 6675 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 6676if test "x$ac_cv_header_utmpx_h" = xyes; then : 6677 cat >>confdefs.h <<_ACEOF 6678#define HAVE_UTMPX_H 1 6679_ACEOF 6680 6681fi 6682 6683done 6684 6685for ac_header in termio.h 6686do : 6687 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" 6688if test "x$ac_cv_header_termio_h" = xyes; then : 6689 cat >>confdefs.h <<_ACEOF 6690#define HAVE_TERMIO_H 1 6691_ACEOF 6692 6693fi 6694 6695done 6696 6697for ac_header in sys/uio.h 6698do : 6699 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 6700if test "x$ac_cv_header_sys_uio_h" = xyes; then : 6701 cat >>confdefs.h <<_ACEOF 6702#define HAVE_SYS_UIO_H 1 6703_ACEOF 6704 6705fi 6706 6707done 6708 6709ac_ext=cpp 6710ac_cpp='$CXXCPP $CPPFLAGS' 6711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6714 6715ac_ext=cpp 6716ac_cpp='$CXXCPP $CPPFLAGS' 6717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6721$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6722if test -z "$CXXCPP"; then 6723 if ${ac_cv_prog_CXXCPP+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 # Double quotes because CXXCPP needs to be expanded 6727 for CXXCPP in "$CXX -E" "/lib/cpp" 6728 do 6729 ac_preproc_ok=false 6730for ac_cxx_preproc_warn_flag in '' yes 6731do 6732 # Use a header file that comes with gcc, so configuring glibc 6733 # with a fresh cross-compiler works. 6734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6735 # <limits.h> exists even on freestanding compilers. 6736 # On the NeXT, cc -E runs the code through the compiler's parser, 6737 # not just through cpp. "Syntax error" is here to catch this case. 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740#ifdef __STDC__ 6741# include <limits.h> 6742#else 6743# include <assert.h> 6744#endif 6745 Syntax error 6746_ACEOF 6747if ac_fn_cxx_try_cpp "$LINENO"; then : 6748 6749else 6750 # Broken: fails on valid input. 6751continue 6752fi 6753rm -f conftest.err conftest.i conftest.$ac_ext 6754 6755 # OK, works on sane cases. Now check whether nonexistent headers 6756 # can be detected and how. 6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6758/* end confdefs.h. */ 6759#include <ac_nonexistent.h> 6760_ACEOF 6761if ac_fn_cxx_try_cpp "$LINENO"; then : 6762 # Broken: success on invalid input. 6763continue 6764else 6765 # Passes both tests. 6766ac_preproc_ok=: 6767break 6768fi 6769rm -f conftest.err conftest.i conftest.$ac_ext 6770 6771done 6772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6773rm -f conftest.i conftest.err conftest.$ac_ext 6774if $ac_preproc_ok; then : 6775 break 6776fi 6777 6778 done 6779 ac_cv_prog_CXXCPP=$CXXCPP 6780 6781fi 6782 CXXCPP=$ac_cv_prog_CXXCPP 6783else 6784 ac_cv_prog_CXXCPP=$CXXCPP 6785fi 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6787$as_echo "$CXXCPP" >&6; } 6788ac_preproc_ok=false 6789for ac_cxx_preproc_warn_flag in '' yes 6790do 6791 # Use a header file that comes with gcc, so configuring glibc 6792 # with a fresh cross-compiler works. 6793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6794 # <limits.h> exists even on freestanding compilers. 6795 # On the NeXT, cc -E runs the code through the compiler's parser, 6796 # not just through cpp. "Syntax error" is here to catch this case. 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798/* end confdefs.h. */ 6799#ifdef __STDC__ 6800# include <limits.h> 6801#else 6802# include <assert.h> 6803#endif 6804 Syntax error 6805_ACEOF 6806if ac_fn_cxx_try_cpp "$LINENO"; then : 6807 6808else 6809 # Broken: fails on valid input. 6810continue 6811fi 6812rm -f conftest.err conftest.i conftest.$ac_ext 6813 6814 # OK, works on sane cases. Now check whether nonexistent headers 6815 # can be detected and how. 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6817/* end confdefs.h. */ 6818#include <ac_nonexistent.h> 6819_ACEOF 6820if ac_fn_cxx_try_cpp "$LINENO"; then : 6821 # Broken: success on invalid input. 6822continue 6823else 6824 # Passes both tests. 6825ac_preproc_ok=: 6826break 6827fi 6828rm -f conftest.err conftest.i conftest.$ac_ext 6829 6830done 6831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6832rm -f conftest.i conftest.err conftest.$ac_ext 6833if $ac_preproc_ok; then : 6834 6835else 6836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6838as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 6839See \`config.log' for more details" "$LINENO" 5; } 6840fi 6841 6842ac_ext=cpp 6843ac_cpp='$CXXCPP $CPPFLAGS' 6844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6847 6848 6849for ac_header in memory tr1/memory 6850do : 6851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6852ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6854 cat >>confdefs.h <<_ACEOF 6855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6856_ACEOF 6857 6858fi 6859 6860done 6861 6862ac_ext=c 6863ac_cpp='$CPP $CPPFLAGS' 6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6866ac_compiler_gnu=$ac_cv_c_compiler_gnu 6867 6868 6869# Checks for typedefs, structures, and compiler characteristics. 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 6871$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 6872if ${ac_cv_header_stdbool_h+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6876/* end confdefs.h. */ 6877 6878 #include <stdbool.h> 6879 #ifndef bool 6880 "error: bool is not defined" 6881 #endif 6882 #ifndef false 6883 "error: false is not defined" 6884 #endif 6885 #if false 6886 "error: false is not 0" 6887 #endif 6888 #ifndef true 6889 "error: true is not defined" 6890 #endif 6891 #if true != 1 6892 "error: true is not 1" 6893 #endif 6894 #ifndef __bool_true_false_are_defined 6895 "error: __bool_true_false_are_defined is not defined" 6896 #endif 6897 6898 struct s { _Bool s: 1; _Bool t; } s; 6899 6900 char a[true == 1 ? 1 : -1]; 6901 char b[false == 0 ? 1 : -1]; 6902 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 6903 char d[(bool) 0.5 == true ? 1 : -1]; 6904 /* See body of main program for 'e'. */ 6905 char f[(_Bool) 0.0 == false ? 1 : -1]; 6906 char g[true]; 6907 char h[sizeof (_Bool)]; 6908 char i[sizeof s.t]; 6909 enum { j = false, k = true, l = false * true, m = true * 256 }; 6910 /* The following fails for 6911 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 6912 _Bool n[m]; 6913 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 6914 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 6915 /* Catch a bug in an HP-UX C compiler. See 6916 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 6917 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 6918 */ 6919 _Bool q = true; 6920 _Bool *pq = &q; 6921 6922int 6923main () 6924{ 6925 6926 bool e = &s; 6927 *pq |= q; 6928 *pq |= ! q; 6929 /* Refer to every declared value, to avoid compiler optimizations. */ 6930 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 6931 + !m + !n + !o + !p + !q + !pq); 6932 6933 ; 6934 return 0; 6935} 6936_ACEOF 6937if ac_fn_c_try_compile "$LINENO"; then : 6938 ac_cv_header_stdbool_h=yes 6939else 6940 ac_cv_header_stdbool_h=no 6941fi 6942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6943fi 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 6945$as_echo "$ac_cv_header_stdbool_h" >&6; } 6946 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 6947if test "x$ac_cv_type__Bool" = xyes; then : 6948 6949cat >>confdefs.h <<_ACEOF 6950#define HAVE__BOOL 1 6951_ACEOF 6952 6953 6954fi 6955 6956 6957if test $ac_cv_header_stdbool_h = yes; then 6958 6959$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 6960 6961fi 6962 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6964$as_echo_n "checking for inline... " >&6; } 6965if ${ac_cv_c_inline+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 ac_cv_c_inline=no 6969for ac_kw in inline __inline__ __inline; do 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971/* end confdefs.h. */ 6972#ifndef __cplusplus 6973typedef int foo_t; 6974static $ac_kw foo_t static_foo () {return 0; } 6975$ac_kw foo_t foo () {return 0; } 6976#endif 6977 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO"; then : 6980 ac_cv_c_inline=$ac_kw 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6983 test "$ac_cv_c_inline" != no && break 6984done 6985 6986fi 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6988$as_echo "$ac_cv_c_inline" >&6; } 6989 6990case $ac_cv_c_inline in 6991 inline | yes) ;; 6992 *) 6993 case $ac_cv_c_inline in 6994 no) ac_val=;; 6995 *) ac_val=$ac_cv_c_inline;; 6996 esac 6997 cat >>confdefs.h <<_ACEOF 6998#ifndef __cplusplus 6999#define inline $ac_val 7000#endif 7001_ACEOF 7002 ;; 7003esac 7004 7005ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 7006case $ac_cv_c_int64_t in #( 7007 no|yes) ;; #( 7008 *) 7009 7010cat >>confdefs.h <<_ACEOF 7011#define int64_t $ac_cv_c_int64_t 7012_ACEOF 7013;; 7014esac 7015 7016ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7017if test "x$ac_cv_type_pid_t" = xyes; then : 7018 7019else 7020 7021cat >>confdefs.h <<_ACEOF 7022#define pid_t int 7023_ACEOF 7024 7025fi 7026 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 7028$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 7029if ${ac_cv_c_restrict+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 ac_cv_c_restrict=no 7033 # The order here caters to the fact that C++ does not require restrict. 7034 for ac_kw in __restrict __restrict__ _Restrict restrict; do 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037typedef int * int_ptr; 7038 int foo (int_ptr $ac_kw ip) { 7039 return ip[0]; 7040 } 7041int 7042main () 7043{ 7044int s[1]; 7045 int * $ac_kw t = s; 7046 t[0] = 0; 7047 return foo(t) 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052if ac_fn_c_try_compile "$LINENO"; then : 7053 ac_cv_c_restrict=$ac_kw 7054fi 7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7056 test "$ac_cv_c_restrict" != no && break 7057 done 7058 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 7061$as_echo "$ac_cv_c_restrict" >&6; } 7062 7063 case $ac_cv_c_restrict in 7064 restrict) ;; 7065 no) $as_echo "#define restrict /**/" >>confdefs.h 7066 ;; 7067 *) cat >>confdefs.h <<_ACEOF 7068#define restrict $ac_cv_c_restrict 7069_ACEOF 7070 ;; 7071 esac 7072 7073ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7074if test "x$ac_cv_type_size_t" = xyes; then : 7075 7076else 7077 7078cat >>confdefs.h <<_ACEOF 7079#define size_t unsigned int 7080_ACEOF 7081 7082fi 7083 7084ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 7085if test "x$ac_cv_type_ssize_t" = xyes; then : 7086 7087else 7088 7089cat >>confdefs.h <<_ACEOF 7090#define ssize_t int 7091_ACEOF 7092 7093fi 7094 7095ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 7096case $ac_cv_c_uint16_t in #( 7097 no|yes) ;; #( 7098 *) 7099 7100 7101cat >>confdefs.h <<_ACEOF 7102#define uint16_t $ac_cv_c_uint16_t 7103_ACEOF 7104;; 7105 esac 7106 7107ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 7108case $ac_cv_c_uint32_t in #( 7109 no|yes) ;; #( 7110 *) 7111 7112$as_echo "#define _UINT32_T 1" >>confdefs.h 7113 7114 7115cat >>confdefs.h <<_ACEOF 7116#define uint32_t $ac_cv_c_uint32_t 7117_ACEOF 7118;; 7119 esac 7120 7121ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 7122case $ac_cv_c_uint64_t in #( 7123 no|yes) ;; #( 7124 *) 7125 7126$as_echo "#define _UINT64_T 1" >>confdefs.h 7127 7128 7129cat >>confdefs.h <<_ACEOF 7130#define uint64_t $ac_cv_c_uint64_t 7131_ACEOF 7132;; 7133 esac 7134 7135ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 7136case $ac_cv_c_uint8_t in #( 7137 no|yes) ;; #( 7138 *) 7139 7140$as_echo "#define _UINT8_T 1" >>confdefs.h 7141 7142 7143cat >>confdefs.h <<_ACEOF 7144#define uint8_t $ac_cv_c_uint8_t 7145_ACEOF 7146;; 7147 esac 7148 7149 7150 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7151if test "x$ac_cv_type_uintptr_t" = xyes; then : 7152 7153$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 7154 7155else 7156 for ac_type in 'unsigned int' 'unsigned long int' \ 7157 'unsigned long long int'; do 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7159/* end confdefs.h. */ 7160$ac_includes_default 7161int 7162main () 7163{ 7164static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7165test_array [0] = 0; 7166return test_array [0]; 7167 7168 ; 7169 return 0; 7170} 7171_ACEOF 7172if ac_fn_c_try_compile "$LINENO"; then : 7173 7174cat >>confdefs.h <<_ACEOF 7175#define uintptr_t $ac_type 7176_ACEOF 7177 7178 ac_type= 7179fi 7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7181 test -z "$ac_type" && break 7182 done 7183fi 7184 7185 7186 7187# Checks for library functions. 7188for ac_header in vfork.h 7189do : 7190 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 7191if test "x$ac_cv_header_vfork_h" = xyes; then : 7192 cat >>confdefs.h <<_ACEOF 7193#define HAVE_VFORK_H 1 7194_ACEOF 7195 7196fi 7197 7198done 7199 7200for ac_func in fork vfork 7201do : 7202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7203ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7204if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7205 cat >>confdefs.h <<_ACEOF 7206#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7207_ACEOF 7208 7209fi 7210done 7211 7212if test "x$ac_cv_func_fork" = xyes; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7214$as_echo_n "checking for working fork... " >&6; } 7215if ${ac_cv_func_fork_works+:} false; then : 7216 $as_echo_n "(cached) " >&6 7217else 7218 if test "$cross_compiling" = yes; then : 7219 ac_cv_func_fork_works=cross 7220else 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223$ac_includes_default 7224int 7225main () 7226{ 7227 7228 /* By Ruediger Kuhlmann. */ 7229 return fork () < 0; 7230 7231 ; 7232 return 0; 7233} 7234_ACEOF 7235if ac_fn_c_try_run "$LINENO"; then : 7236 ac_cv_func_fork_works=yes 7237else 7238 ac_cv_func_fork_works=no 7239fi 7240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7241 conftest.$ac_objext conftest.beam conftest.$ac_ext 7242fi 7243 7244fi 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7246$as_echo "$ac_cv_func_fork_works" >&6; } 7247 7248else 7249 ac_cv_func_fork_works=$ac_cv_func_fork 7250fi 7251if test "x$ac_cv_func_fork_works" = xcross; then 7252 case $host in 7253 *-*-amigaos* | *-*-msdosdjgpp*) 7254 # Override, as these systems have only a dummy fork() stub 7255 ac_cv_func_fork_works=no 7256 ;; 7257 *) 7258 ac_cv_func_fork_works=yes 7259 ;; 7260 esac 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 7262$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 7263fi 7264ac_cv_func_vfork_works=$ac_cv_func_vfork 7265if test "x$ac_cv_func_vfork" = xyes; then 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 7267$as_echo_n "checking for working vfork... " >&6; } 7268if ${ac_cv_func_vfork_works+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 if test "$cross_compiling" = yes; then : 7272 ac_cv_func_vfork_works=cross 7273else 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276/* Thanks to Paul Eggert for this test. */ 7277$ac_includes_default 7278#include <sys/wait.h> 7279#ifdef HAVE_VFORK_H 7280# include <vfork.h> 7281#endif 7282/* On some sparc systems, changes by the child to local and incoming 7283 argument registers are propagated back to the parent. The compiler 7284 is told about this with #include <vfork.h>, but some compilers 7285 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 7286 static variable whose address is put into a register that is 7287 clobbered by the vfork. */ 7288static void 7289#ifdef __cplusplus 7290sparc_address_test (int arg) 7291# else 7292sparc_address_test (arg) int arg; 7293#endif 7294{ 7295 static pid_t child; 7296 if (!child) { 7297 child = vfork (); 7298 if (child < 0) { 7299 perror ("vfork"); 7300 _exit(2); 7301 } 7302 if (!child) { 7303 arg = getpid(); 7304 write(-1, "", 0); 7305 _exit (arg); 7306 } 7307 } 7308} 7309 7310int 7311main () 7312{ 7313 pid_t parent = getpid (); 7314 pid_t child; 7315 7316 sparc_address_test (0); 7317 7318 child = vfork (); 7319 7320 if (child == 0) { 7321 /* Here is another test for sparc vfork register problems. This 7322 test uses lots of local variables, at least as many local 7323 variables as main has allocated so far including compiler 7324 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 7325 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 7326 reuse the register of parent for one of the local variables, 7327 since it will think that parent can't possibly be used any more 7328 in this routine. Assigning to the local variable will thus 7329 munge parent in the parent process. */ 7330 pid_t 7331 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 7332 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 7333 /* Convince the compiler that p..p7 are live; otherwise, it might 7334 use the same hardware register for all 8 local variables. */ 7335 if (p != p1 || p != p2 || p != p3 || p != p4 7336 || p != p5 || p != p6 || p != p7) 7337 _exit(1); 7338 7339 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 7340 from child file descriptors. If the child closes a descriptor 7341 before it execs or exits, this munges the parent's descriptor 7342 as well. Test for this by closing stdout in the child. */ 7343 _exit(close(fileno(stdout)) != 0); 7344 } else { 7345 int status; 7346 struct stat st; 7347 7348 while (wait(&status) != child) 7349 ; 7350 return ( 7351 /* Was there some problem with vforking? */ 7352 child < 0 7353 7354 /* Did the child fail? (This shouldn't happen.) */ 7355 || status 7356 7357 /* Did the vfork/compiler bug occur? */ 7358 || parent != getpid() 7359 7360 /* Did the file descriptor bug occur? */ 7361 || fstat(fileno(stdout), &st) != 0 7362 ); 7363 } 7364} 7365_ACEOF 7366if ac_fn_c_try_run "$LINENO"; then : 7367 ac_cv_func_vfork_works=yes 7368else 7369 ac_cv_func_vfork_works=no 7370fi 7371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7372 conftest.$ac_objext conftest.beam conftest.$ac_ext 7373fi 7374 7375fi 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 7377$as_echo "$ac_cv_func_vfork_works" >&6; } 7378 7379fi; 7380if test "x$ac_cv_func_fork_works" = xcross; then 7381 ac_cv_func_vfork_works=$ac_cv_func_vfork 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 7383$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 7384fi 7385 7386if test "x$ac_cv_func_vfork_works" = xyes; then 7387 7388$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 7389 7390else 7391 7392$as_echo "#define vfork fork" >>confdefs.h 7393 7394fi 7395if test "x$ac_cv_func_fork_works" = xyes; then 7396 7397$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 7398 7399fi 7400 7401 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 7403$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 7404if ${ac_cv_func_mbrtowc+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409#include <wchar.h> 7410int 7411main () 7412{ 7413wchar_t wc; 7414 char const s[] = ""; 7415 size_t n = 1; 7416 mbstate_t state; 7417 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 7418 ; 7419 return 0; 7420} 7421_ACEOF 7422if ac_fn_c_try_link "$LINENO"; then : 7423 ac_cv_func_mbrtowc=yes 7424else 7425 ac_cv_func_mbrtowc=no 7426fi 7427rm -f core conftest.err conftest.$ac_objext \ 7428 conftest$ac_exeext conftest.$ac_ext 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 7431$as_echo "$ac_cv_func_mbrtowc" >&6; } 7432 if test $ac_cv_func_mbrtowc = yes; then 7433 7434$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 7435 7436 fi 7437 7438for ac_func in gettimeofday setrlimit iswprint memchr memset nl_langinfo posix_memalign setenv setlocale sigaction socket strchr strdup strncasecmp strtok strerror strtol wcwidth cfmakeraw pselect getaddrinfo getnameinfo pledge 7439do : 7440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7441ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7442if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7443 cat >>confdefs.h <<_ACEOF 7444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7445_ACEOF 7446 7447fi 7448done 7449 7450 7451# Start by trying to find the needed tinfo parts by pkg-config 7452 7453 7454 7455 7456 7457 7458 7459if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7460 if test -n "$ac_tool_prefix"; then 7461 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7462set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7464$as_echo_n "checking for $ac_word... " >&6; } 7465if ${ac_cv_path_PKG_CONFIG+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 case $PKG_CONFIG in 7469 [\\/]* | ?:[\\/]*) 7470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7471 ;; 7472 *) 7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7474for as_dir in $PATH 7475do 7476 IFS=$as_save_IFS 7477 test -z "$as_dir" && as_dir=. 7478 for ac_exec_ext in '' $ac_executable_extensions; do 7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7480 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7482 break 2 7483 fi 7484done 7485 done 7486IFS=$as_save_IFS 7487 7488 ;; 7489esac 7490fi 7491PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7492if test -n "$PKG_CONFIG"; then 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7494$as_echo "$PKG_CONFIG" >&6; } 7495else 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7497$as_echo "no" >&6; } 7498fi 7499 7500 7501fi 7502if test -z "$ac_cv_path_PKG_CONFIG"; then 7503 ac_pt_PKG_CONFIG=$PKG_CONFIG 7504 # Extract the first word of "pkg-config", so it can be a program name with args. 7505set dummy pkg-config; ac_word=$2 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7507$as_echo_n "checking for $ac_word... " >&6; } 7508if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 7509 $as_echo_n "(cached) " >&6 7510else 7511 case $ac_pt_PKG_CONFIG in 7512 [\\/]* | ?:[\\/]*) 7513 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7514 ;; 7515 *) 7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517for as_dir in $PATH 7518do 7519 IFS=$as_save_IFS 7520 test -z "$as_dir" && as_dir=. 7521 for ac_exec_ext in '' $ac_executable_extensions; do 7522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7523 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7525 break 2 7526 fi 7527done 7528 done 7529IFS=$as_save_IFS 7530 7531 ;; 7532esac 7533fi 7534ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7535if test -n "$ac_pt_PKG_CONFIG"; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7537$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7538else 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540$as_echo "no" >&6; } 7541fi 7542 7543 if test "x$ac_pt_PKG_CONFIG" = x; then 7544 PKG_CONFIG="" 7545 else 7546 case $cross_compiling:$ac_tool_warned in 7547yes:) 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7550ac_tool_warned=yes ;; 7551esac 7552 PKG_CONFIG=$ac_pt_PKG_CONFIG 7553 fi 7554else 7555 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7556fi 7557 7558fi 7559if test -n "$PKG_CONFIG"; then 7560 _pkg_min_version=0.9.0 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7562$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7563 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7565$as_echo "yes" >&6; } 7566 else 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7568$as_echo "no" >&6; } 7569 PKG_CONFIG="" 7570 fi 7571fi 7572 7573pkg_failed=no 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TINFO" >&5 7575$as_echo_n "checking for TINFO... " >&6; } 7576 7577if test -n "$TINFO_CFLAGS"; then 7578 pkg_cv_TINFO_CFLAGS="$TINFO_CFLAGS" 7579 elif test -n "$PKG_CONFIG"; then 7580 if test -n "$PKG_CONFIG" && \ 7581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5 7582 ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5 7583 ac_status=$? 7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7585 test $ac_status = 0; }; then 7586 pkg_cv_TINFO_CFLAGS=`$PKG_CONFIG --cflags "tinfo" 2>/dev/null` 7587 test "x$?" != "x0" && pkg_failed=yes 7588else 7589 pkg_failed=yes 7590fi 7591 else 7592 pkg_failed=untried 7593fi 7594if test -n "$TINFO_LIBS"; then 7595 pkg_cv_TINFO_LIBS="$TINFO_LIBS" 7596 elif test -n "$PKG_CONFIG"; then 7597 if test -n "$PKG_CONFIG" && \ 7598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5 7599 ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5 7600 ac_status=$? 7601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7602 test $ac_status = 0; }; then 7603 pkg_cv_TINFO_LIBS=`$PKG_CONFIG --libs "tinfo" 2>/dev/null` 7604 test "x$?" != "x0" && pkg_failed=yes 7605else 7606 pkg_failed=yes 7607fi 7608 else 7609 pkg_failed=untried 7610fi 7611 7612 7613 7614if test $pkg_failed = yes; then 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7616$as_echo "no" >&6; } 7617 7618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7619 _pkg_short_errors_supported=yes 7620else 7621 _pkg_short_errors_supported=no 7622fi 7623 if test $_pkg_short_errors_supported = yes; then 7624 TINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tinfo" 2>&1` 7625 else 7626 TINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tinfo" 2>&1` 7627 fi 7628 # Put the nasty error message in config.log where it belongs 7629 echo "$TINFO_PKG_ERRORS" >&5 7630 7631 7632pkg_failed=no 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TINFO" >&5 7634$as_echo_n "checking for TINFO... " >&6; } 7635 7636if test -n "$TINFO_CFLAGS"; then 7637 pkg_cv_TINFO_CFLAGS="$TINFO_CFLAGS" 7638 elif test -n "$PKG_CONFIG"; then 7639 if test -n "$PKG_CONFIG" && \ 7640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 7641 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 7642 ac_status=$? 7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7644 test $ac_status = 0; }; then 7645 pkg_cv_TINFO_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null` 7646 test "x$?" != "x0" && pkg_failed=yes 7647else 7648 pkg_failed=yes 7649fi 7650 else 7651 pkg_failed=untried 7652fi 7653if test -n "$TINFO_LIBS"; then 7654 pkg_cv_TINFO_LIBS="$TINFO_LIBS" 7655 elif test -n "$PKG_CONFIG"; then 7656 if test -n "$PKG_CONFIG" && \ 7657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 7658 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 7659 ac_status=$? 7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7661 test $ac_status = 0; }; then 7662 pkg_cv_TINFO_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null` 7663 test "x$?" != "x0" && pkg_failed=yes 7664else 7665 pkg_failed=yes 7666fi 7667 else 7668 pkg_failed=untried 7669fi 7670 7671 7672 7673if test $pkg_failed = yes; then 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7675$as_echo "no" >&6; } 7676 7677if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7678 _pkg_short_errors_supported=yes 7679else 7680 _pkg_short_errors_supported=no 7681fi 7682 if test $_pkg_short_errors_supported = yes; then 7683 TINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1` 7684 else 7685 TINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1` 7686 fi 7687 # Put the nasty error message in config.log where it belongs 7688 echo "$TINFO_PKG_ERRORS" >&5 7689 7690 7691 7692 7693 7694 if ${ax_cv_have_TINFO+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696else 7697 save_CPPFLAGS="$CPPFLAGS" 7698 save_LDFLAGS="$LDFLAGS" 7699 save_LIBS="$LIBS" 7700 7701 if test "x$TINFO_CPPFLAGS" != "x"; then : 7702 CPPFLAGS="$CPPFLAGS $TINFO_CPPFLAGS" 7703fi 7704 7705 if test "x$TINFO_LDFLAGS" != "x"; then : 7706 LDFLAGS="$LDFLAGS $TINFO_LDFLAGS" 7707fi 7708 7709 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 7710if test "x$ac_cv_header_curses_h" = xyes; then : 7711 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltinfo" >&5 7713$as_echo_n "checking for main in -ltinfo... " >&6; } 7714if ${ac_cv_lib_tinfo_main+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 ac_check_lib_save_LIBS=$LIBS 7718LIBS="-ltinfo $LIBS" 7719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721 7722 7723int 7724main () 7725{ 7726return main (); 7727 ; 7728 return 0; 7729} 7730_ACEOF 7731if ac_fn_c_try_link "$LINENO"; then : 7732 ac_cv_lib_tinfo_main=yes 7733else 7734 ac_cv_lib_tinfo_main=no 7735fi 7736rm -f core conftest.err conftest.$ac_objext \ 7737 conftest$ac_exeext conftest.$ac_ext 7738LIBS=$ac_check_lib_save_LIBS 7739fi 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_main" >&5 7741$as_echo "$ac_cv_lib_tinfo_main" >&6; } 7742if test "x$ac_cv_lib_tinfo_main" = xyes; then : 7743 ax_cv_have_TINFO=yes 7744else 7745 ax_cv_have_TINFO=no 7746fi 7747 7748 7749else 7750 ax_cv_have_TINFO=no 7751fi 7752 7753 7754 7755 CPPFLAGS="$save_CPPFLAGS" 7756 LDFLAGS="$save_LDFLAGS" 7757 LIBS="$save_LIBS" 7758 7759fi 7760 7761 7762 if test "$ax_cv_have_TINFO" = "yes"; then : 7763 7764$as_echo "#define HAVE_TINFO 1" >>confdefs.h 7765 7766 7767$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 7768 7769 TINFO_CFLAGS="$TINFO_CPPFLAGS" 7770 7771 TINFO_LIBS="$TINFO_LDFLAGS -ltinfo" 7772 7773fi 7774 7775elif test $pkg_failed = untried; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7777$as_echo "no" >&6; } 7778 7779 7780 7781 7782 if ${ax_cv_have_TINFO+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 save_CPPFLAGS="$CPPFLAGS" 7786 save_LDFLAGS="$LDFLAGS" 7787 save_LIBS="$LIBS" 7788 7789 if test "x$TINFO_CPPFLAGS" != "x"; then : 7790 CPPFLAGS="$CPPFLAGS $TINFO_CPPFLAGS" 7791fi 7792 7793 if test "x$TINFO_LDFLAGS" != "x"; then : 7794 LDFLAGS="$LDFLAGS $TINFO_LDFLAGS" 7795fi 7796 7797 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 7798if test "x$ac_cv_header_curses_h" = xyes; then : 7799 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltinfo" >&5 7801$as_echo_n "checking for main in -ltinfo... " >&6; } 7802if ${ac_cv_lib_tinfo_main+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 ac_check_lib_save_LIBS=$LIBS 7806LIBS="-ltinfo $LIBS" 7807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809 7810 7811int 7812main () 7813{ 7814return main (); 7815 ; 7816 return 0; 7817} 7818_ACEOF 7819if ac_fn_c_try_link "$LINENO"; then : 7820 ac_cv_lib_tinfo_main=yes 7821else 7822 ac_cv_lib_tinfo_main=no 7823fi 7824rm -f core conftest.err conftest.$ac_objext \ 7825 conftest$ac_exeext conftest.$ac_ext 7826LIBS=$ac_check_lib_save_LIBS 7827fi 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_main" >&5 7829$as_echo "$ac_cv_lib_tinfo_main" >&6; } 7830if test "x$ac_cv_lib_tinfo_main" = xyes; then : 7831 ax_cv_have_TINFO=yes 7832else 7833 ax_cv_have_TINFO=no 7834fi 7835 7836 7837else 7838 ax_cv_have_TINFO=no 7839fi 7840 7841 7842 7843 CPPFLAGS="$save_CPPFLAGS" 7844 LDFLAGS="$save_LDFLAGS" 7845 LIBS="$save_LIBS" 7846 7847fi 7848 7849 7850 if test "$ax_cv_have_TINFO" = "yes"; then : 7851 7852$as_echo "#define HAVE_TINFO 1" >>confdefs.h 7853 7854 7855$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 7856 7857 TINFO_CFLAGS="$TINFO_CPPFLAGS" 7858 7859 TINFO_LIBS="$TINFO_LDFLAGS -ltinfo" 7860 7861fi 7862 7863else 7864 TINFO_CFLAGS=$pkg_cv_TINFO_CFLAGS 7865 TINFO_LIBS=$pkg_cv_TINFO_LIBS 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7867$as_echo "yes" >&6; } 7868 7869$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 7870 7871fi 7872elif test $pkg_failed = untried; then 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875 7876pkg_failed=no 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TINFO" >&5 7878$as_echo_n "checking for TINFO... " >&6; } 7879 7880if test -n "$TINFO_CFLAGS"; then 7881 pkg_cv_TINFO_CFLAGS="$TINFO_CFLAGS" 7882 elif test -n "$PKG_CONFIG"; then 7883 if test -n "$PKG_CONFIG" && \ 7884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 7885 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 7886 ac_status=$? 7887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7888 test $ac_status = 0; }; then 7889 pkg_cv_TINFO_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null` 7890 test "x$?" != "x0" && pkg_failed=yes 7891else 7892 pkg_failed=yes 7893fi 7894 else 7895 pkg_failed=untried 7896fi 7897if test -n "$TINFO_LIBS"; then 7898 pkg_cv_TINFO_LIBS="$TINFO_LIBS" 7899 elif test -n "$PKG_CONFIG"; then 7900 if test -n "$PKG_CONFIG" && \ 7901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 7902 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 7903 ac_status=$? 7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7905 test $ac_status = 0; }; then 7906 pkg_cv_TINFO_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null` 7907 test "x$?" != "x0" && pkg_failed=yes 7908else 7909 pkg_failed=yes 7910fi 7911 else 7912 pkg_failed=untried 7913fi 7914 7915 7916 7917if test $pkg_failed = yes; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7919$as_echo "no" >&6; } 7920 7921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7922 _pkg_short_errors_supported=yes 7923else 7924 _pkg_short_errors_supported=no 7925fi 7926 if test $_pkg_short_errors_supported = yes; then 7927 TINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1` 7928 else 7929 TINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1` 7930 fi 7931 # Put the nasty error message in config.log where it belongs 7932 echo "$TINFO_PKG_ERRORS" >&5 7933 7934 7935 7936 7937 7938 if ${ax_cv_have_TINFO+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940else 7941 save_CPPFLAGS="$CPPFLAGS" 7942 save_LDFLAGS="$LDFLAGS" 7943 save_LIBS="$LIBS" 7944 7945 if test "x$TINFO_CPPFLAGS" != "x"; then : 7946 CPPFLAGS="$CPPFLAGS $TINFO_CPPFLAGS" 7947fi 7948 7949 if test "x$TINFO_LDFLAGS" != "x"; then : 7950 LDFLAGS="$LDFLAGS $TINFO_LDFLAGS" 7951fi 7952 7953 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 7954if test "x$ac_cv_header_curses_h" = xyes; then : 7955 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltinfo" >&5 7957$as_echo_n "checking for main in -ltinfo... " >&6; } 7958if ${ac_cv_lib_tinfo_main+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 ac_check_lib_save_LIBS=$LIBS 7962LIBS="-ltinfo $LIBS" 7963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965 7966 7967int 7968main () 7969{ 7970return main (); 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975if ac_fn_c_try_link "$LINENO"; then : 7976 ac_cv_lib_tinfo_main=yes 7977else 7978 ac_cv_lib_tinfo_main=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext \ 7981 conftest$ac_exeext conftest.$ac_ext 7982LIBS=$ac_check_lib_save_LIBS 7983fi 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_main" >&5 7985$as_echo "$ac_cv_lib_tinfo_main" >&6; } 7986if test "x$ac_cv_lib_tinfo_main" = xyes; then : 7987 ax_cv_have_TINFO=yes 7988else 7989 ax_cv_have_TINFO=no 7990fi 7991 7992 7993else 7994 ax_cv_have_TINFO=no 7995fi 7996 7997 7998 7999 CPPFLAGS="$save_CPPFLAGS" 8000 LDFLAGS="$save_LDFLAGS" 8001 LIBS="$save_LIBS" 8002 8003fi 8004 8005 8006 if test "$ax_cv_have_TINFO" = "yes"; then : 8007 8008$as_echo "#define HAVE_TINFO 1" >>confdefs.h 8009 8010 8011$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 8012 8013 TINFO_CFLAGS="$TINFO_CPPFLAGS" 8014 8015 TINFO_LIBS="$TINFO_LDFLAGS -ltinfo" 8016 8017fi 8018 8019elif test $pkg_failed = untried; then 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021$as_echo "no" >&6; } 8022 8023 8024 8025 8026 if ${ax_cv_have_TINFO+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 save_CPPFLAGS="$CPPFLAGS" 8030 save_LDFLAGS="$LDFLAGS" 8031 save_LIBS="$LIBS" 8032 8033 if test "x$TINFO_CPPFLAGS" != "x"; then : 8034 CPPFLAGS="$CPPFLAGS $TINFO_CPPFLAGS" 8035fi 8036 8037 if test "x$TINFO_LDFLAGS" != "x"; then : 8038 LDFLAGS="$LDFLAGS $TINFO_LDFLAGS" 8039fi 8040 8041 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 8042if test "x$ac_cv_header_curses_h" = xyes; then : 8043 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltinfo" >&5 8045$as_echo_n "checking for main in -ltinfo... " >&6; } 8046if ${ac_cv_lib_tinfo_main+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 ac_check_lib_save_LIBS=$LIBS 8050LIBS="-ltinfo $LIBS" 8051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052/* end confdefs.h. */ 8053 8054 8055int 8056main () 8057{ 8058return main (); 8059 ; 8060 return 0; 8061} 8062_ACEOF 8063if ac_fn_c_try_link "$LINENO"; then : 8064 ac_cv_lib_tinfo_main=yes 8065else 8066 ac_cv_lib_tinfo_main=no 8067fi 8068rm -f core conftest.err conftest.$ac_objext \ 8069 conftest$ac_exeext conftest.$ac_ext 8070LIBS=$ac_check_lib_save_LIBS 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_main" >&5 8073$as_echo "$ac_cv_lib_tinfo_main" >&6; } 8074if test "x$ac_cv_lib_tinfo_main" = xyes; then : 8075 ax_cv_have_TINFO=yes 8076else 8077 ax_cv_have_TINFO=no 8078fi 8079 8080 8081else 8082 ax_cv_have_TINFO=no 8083fi 8084 8085 8086 8087 CPPFLAGS="$save_CPPFLAGS" 8088 LDFLAGS="$save_LDFLAGS" 8089 LIBS="$save_LIBS" 8090 8091fi 8092 8093 8094 if test "$ax_cv_have_TINFO" = "yes"; then : 8095 8096$as_echo "#define HAVE_TINFO 1" >>confdefs.h 8097 8098 8099$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 8100 8101 TINFO_CFLAGS="$TINFO_CPPFLAGS" 8102 8103 TINFO_LIBS="$TINFO_LDFLAGS -ltinfo" 8104 8105fi 8106 8107else 8108 TINFO_CFLAGS=$pkg_cv_TINFO_CFLAGS 8109 TINFO_LIBS=$pkg_cv_TINFO_LIBS 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8111$as_echo "yes" >&6; } 8112 8113$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 8114 8115fi 8116else 8117 TINFO_CFLAGS=$pkg_cv_TINFO_CFLAGS 8118 TINFO_LIBS=$pkg_cv_TINFO_LIBS 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8120$as_echo "yes" >&6; } 8121 8122$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 8123 8124fi 8125 8126# Then try to find it in a specific install dir 8127 8128# Check whether --with-curses was given. 8129if test "${with_curses+set}" = set; then : 8130 withval=$with_curses; if test $withval != yes; then 8131 cv_curses=$withval 8132 fi 8133 if test x$cv_curses != x/usr; then 8134 CURSES_LDFLAGS="-L${cv_curses}/lib" 8135 CURSES_CPPFLAGS="-I${cv_curses}/include" 8136 fi 8137fi 8138 8139 8140if test "x$ax_cv_have_TINFO" = xno ; then 8141 # save away old LDFLAGS/CPPFLAGS and check for curses with cv_curses 8142 old_LDFLAGS="$LDFLAGS" 8143 old_CPPFLAGS="$CPPFLAGS" 8144 LDFLAGS="$LDFLAGS $CURSES_LDFLAGS" 8145 CPPFLAGS="$CPPFLAGS $CURSES_CPPFLAGS" 8146 8147 8148 8149 8150# Check whether --with-ncurses was given. 8151if test "${with_ncurses+set}" = set; then : 8152 withval=$with_ncurses; 8153else 8154 with_ncurses=check 8155fi 8156 8157 8158# Check whether --with-ncursesw was given. 8159if test "${with_ncursesw+set}" = set; then : 8160 withval=$with_ncursesw; 8161else 8162 with_ncursesw=check 8163fi 8164 8165 8166 ax_saved_LIBS=$LIBS 8167 if test "x$with_ncurses" = xyes || test "x$with_ncursesw" = xyes; then : 8168 ax_with_plaincurses=no 8169else 8170 ax_with_plaincurses=check 8171fi 8172 8173 ax_cv_curses_which=no 8174 8175 # Test for NcursesW 8176 8177 if test "x$CURSES_LIB" = x && test "x$with_ncursesw" != xno; then : 8178 8179 LIBS="$ax_saved_LIBS -lncursesw" 8180 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NcursesW wide-character library" >&5 8182$as_echo_n "checking for NcursesW wide-character library... " >&6; } 8183if ${ax_cv_ncursesw+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189 8190/* Override any GCC internal prototype to avoid an error. 8191 Use char because int might match the return type of a GCC 8192 builtin and then its argument prototype would still apply. */ 8193#ifdef __cplusplus 8194extern "C" 8195#endif 8196char initscr (); 8197int 8198main () 8199{ 8200return initscr (); 8201 ; 8202 return 0; 8203} 8204_ACEOF 8205if ac_fn_c_try_link "$LINENO"; then : 8206 ax_cv_ncursesw=yes 8207else 8208 ax_cv_ncursesw=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext \ 8211 conftest$ac_exeext conftest.$ac_ext 8212 8213fi 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncursesw" >&5 8215$as_echo "$ax_cv_ncursesw" >&6; } 8216 if test "x$ax_cv_ncursesw" = xno && test "x$with_ncursesw" = xyes; then : 8217 8218 as_fn_error $? "--with-ncursesw specified but could not find NcursesW library" "$LINENO" 5 8219 8220fi 8221 8222 if test "x$ax_cv_ncursesw" = xyes; then : 8223 8224 ax_cv_curses=yes 8225 ax_cv_curses_which=ncursesw 8226 CURSES_LIB="-lncursesw" 8227 8228$as_echo "#define HAVE_NCURSESW 1" >>confdefs.h 8229 8230 8231$as_echo "#define HAVE_CURSES 1" >>confdefs.h 8232 8233 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncursesw/curses.h" >&5 8235$as_echo_n "checking for working ncursesw/curses.h... " >&6; } 8236if ${ax_cv_header_ncursesw_curses_h+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242 8243 #define _XOPEN_SOURCE_EXTENDED 1 8244 #include <ncursesw/curses.h> 8245 8246int 8247main () 8248{ 8249 8250 chtype a = A_BOLD; 8251 int b = KEY_LEFT; 8252 chtype c = COLOR_PAIR(1) & A_COLOR; 8253 attr_t d = WA_NORMAL; 8254 cchar_t e; 8255 wint_t f; 8256 int g = getattrs(stdscr); 8257 int h = getcurx(stdscr) + getmaxx(stdscr); 8258 initscr(); 8259 init_pair(1, COLOR_WHITE, COLOR_RED); 8260 wattr_set(stdscr, d, 0, NULL); 8261 wget_wch(stdscr, &f); 8262 8263 ; 8264 return 0; 8265} 8266_ACEOF 8267if ac_fn_c_try_link "$LINENO"; then : 8268 ax_cv_header_ncursesw_curses_h=yes 8269else 8270 ax_cv_header_ncursesw_curses_h=no 8271fi 8272rm -f core conftest.err conftest.$ac_objext \ 8273 conftest$ac_exeext conftest.$ac_ext 8274 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_curses_h" >&5 8277$as_echo "$ax_cv_header_ncursesw_curses_h" >&6; } 8278 if test "x$ax_cv_header_ncursesw_curses_h" = xyes; then : 8279 8280 ax_cv_curses_enhanced=yes 8281 ax_cv_curses_color=yes 8282 ax_cv_curses_obsolete=yes 8283 8284$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h 8285 8286 8287$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8288 8289 8290$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h 8291 8292 8293$as_echo "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h 8294 8295 8296fi 8297 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncursesw.h" >&5 8299$as_echo_n "checking for working ncursesw.h... " >&6; } 8300if ${ax_cv_header_ncursesw_h+:} false; then : 8301 $as_echo_n "(cached) " >&6 8302else 8303 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306 8307 #define _XOPEN_SOURCE_EXTENDED 1 8308 #include <ncursesw.h> 8309 8310int 8311main () 8312{ 8313 8314 chtype a = A_BOLD; 8315 int b = KEY_LEFT; 8316 chtype c = COLOR_PAIR(1) & A_COLOR; 8317 attr_t d = WA_NORMAL; 8318 cchar_t e; 8319 wint_t f; 8320 int g = getattrs(stdscr); 8321 int h = getcurx(stdscr) + getmaxx(stdscr); 8322 initscr(); 8323 init_pair(1, COLOR_WHITE, COLOR_RED); 8324 wattr_set(stdscr, d, 0, NULL); 8325 wget_wch(stdscr, &f); 8326 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331if ac_fn_c_try_link "$LINENO"; then : 8332 ax_cv_header_ncursesw_h=yes 8333else 8334 ax_cv_header_ncursesw_h=no 8335fi 8336rm -f core conftest.err conftest.$ac_objext \ 8337 conftest$ac_exeext conftest.$ac_ext 8338 8339fi 8340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_h" >&5 8341$as_echo "$ax_cv_header_ncursesw_h" >&6; } 8342 if test "x$ax_cv_header_ncursesw_h" = xyes; then : 8343 8344 ax_cv_curses_enhanced=yes 8345 ax_cv_curses_color=yes 8346 ax_cv_curses_obsolete=yes 8347 8348$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h 8349 8350 8351$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8352 8353 8354$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h 8355 8356 8357$as_echo "#define HAVE_NCURSESW_H 1" >>confdefs.h 8358 8359 8360fi 8361 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5 8363$as_echo_n "checking for working ncurses.h... " >&6; } 8364if ${ax_cv_header_ncurses_h_with_ncursesw+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370 8371 #define _XOPEN_SOURCE_EXTENDED 1 8372 #include <ncurses.h> 8373 8374int 8375main () 8376{ 8377 8378 chtype a = A_BOLD; 8379 int b = KEY_LEFT; 8380 chtype c = COLOR_PAIR(1) & A_COLOR; 8381 attr_t d = WA_NORMAL; 8382 cchar_t e; 8383 wint_t f; 8384 int g = getattrs(stdscr); 8385 int h = getcurx(stdscr) + getmaxx(stdscr); 8386 initscr(); 8387 init_pair(1, COLOR_WHITE, COLOR_RED); 8388 wattr_set(stdscr, d, 0, NULL); 8389 wget_wch(stdscr, &f); 8390 8391 ; 8392 return 0; 8393} 8394_ACEOF 8395if ac_fn_c_try_link "$LINENO"; then : 8396 ax_cv_header_ncurses_h_with_ncursesw=yes 8397else 8398 ax_cv_header_ncurses_h_with_ncursesw=no 8399fi 8400rm -f core conftest.err conftest.$ac_objext \ 8401 conftest$ac_exeext conftest.$ac_ext 8402 8403fi 8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h_with_ncursesw" >&5 8405$as_echo "$ax_cv_header_ncurses_h_with_ncursesw" >&6; } 8406 if test "x$ax_cv_header_ncurses_h_with_ncursesw" = xyes; then : 8407 8408 ax_cv_curses_enhanced=yes 8409 ax_cv_curses_color=yes 8410 ax_cv_curses_obsolete=yes 8411 8412$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h 8413 8414 8415$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8416 8417 8418$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h 8419 8420 8421$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h 8422 8423 8424fi 8425 8426 if test "x$ax_cv_header_ncursesw_curses_h" = xno && test "x$ax_cv_header_ncursesw_h" = xno && test "x$ax_cv_header_ncurses_h_with_ncursesw" = xno; then : 8427 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&5 8429$as_echo "$as_me: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&2;} 8430 8431fi 8432 8433fi 8434 8435fi 8436 8437 # Test for Ncurses 8438 8439 if test "x$CURSES_LIB" = x && test "x$with_ncurses" != xno && test "x$ax_cv_curses_which" = xno; then : 8440 8441 LIBS="$ax_saved_LIBS -lncurses" 8442 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ncurses library" >&5 8444$as_echo_n "checking for Ncurses library... " >&6; } 8445if ${ax_cv_ncurses+:} false; then : 8446 $as_echo_n "(cached) " >&6 8447else 8448 8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8450/* end confdefs.h. */ 8451 8452/* Override any GCC internal prototype to avoid an error. 8453 Use char because int might match the return type of a GCC 8454 builtin and then its argument prototype would still apply. */ 8455#ifdef __cplusplus 8456extern "C" 8457#endif 8458char initscr (); 8459int 8460main () 8461{ 8462return initscr (); 8463 ; 8464 return 0; 8465} 8466_ACEOF 8467if ac_fn_c_try_link "$LINENO"; then : 8468 ax_cv_ncurses=yes 8469else 8470 ax_cv_ncurses=no 8471fi 8472rm -f core conftest.err conftest.$ac_objext \ 8473 conftest$ac_exeext conftest.$ac_ext 8474 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncurses" >&5 8477$as_echo "$ax_cv_ncurses" >&6; } 8478 if test "x$ax_cv_ncurses" = xno && test "x$with_ncurses" = xyes; then : 8479 8480 as_fn_error $? "--with-ncurses specified but could not find Ncurses library" "$LINENO" 5 8481 8482fi 8483 8484 if test "x$ax_cv_ncurses" = xyes; then : 8485 8486 ax_cv_curses=yes 8487 ax_cv_curses_which=ncurses 8488 CURSES_LIB="-lncurses" 8489 8490$as_echo "#define HAVE_NCURSES 1" >>confdefs.h 8491 8492 8493$as_echo "#define HAVE_CURSES 1" >>confdefs.h 8494 8495 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses/curses.h" >&5 8497$as_echo_n "checking for working ncurses/curses.h... " >&6; } 8498if ${ax_cv_header_ncurses_curses_h+:} false; then : 8499 $as_echo_n "(cached) " >&6 8500else 8501 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504 8505 #include <ncurses/curses.h> 8506 8507int 8508main () 8509{ 8510 8511 chtype a = A_BOLD; 8512 int b = KEY_LEFT; 8513 chtype c = COLOR_PAIR(1) & A_COLOR; 8514 int g = getattrs(stdscr); 8515 int h = getcurx(stdscr) + getmaxx(stdscr); 8516 initscr(); 8517 init_pair(1, COLOR_WHITE, COLOR_RED); 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523if ac_fn_c_try_link "$LINENO"; then : 8524 ax_cv_header_ncurses_curses_h=yes 8525else 8526 ax_cv_header_ncurses_curses_h=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext \ 8529 conftest$ac_exeext conftest.$ac_ext 8530 8531fi 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_curses_h" >&5 8533$as_echo "$ax_cv_header_ncurses_curses_h" >&6; } 8534 if test "x$ax_cv_header_ncurses_curses_h" = xyes; then : 8535 8536 ax_cv_curses_color=yes 8537 ax_cv_curses_obsolete=yes 8538 8539$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8540 8541 8542$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h 8543 8544 8545$as_echo "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h 8546 8547 8548fi 8549 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5 8551$as_echo_n "checking for working ncurses.h... " >&6; } 8552if ${ax_cv_header_ncurses_h+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8557/* end confdefs.h. */ 8558 8559 #include <ncurses.h> 8560 8561int 8562main () 8563{ 8564 8565 chtype a = A_BOLD; 8566 int b = KEY_LEFT; 8567 chtype c = COLOR_PAIR(1) & A_COLOR; 8568 int g = getattrs(stdscr); 8569 int h = getcurx(stdscr) + getmaxx(stdscr); 8570 initscr(); 8571 init_pair(1, COLOR_WHITE, COLOR_RED); 8572 8573 ; 8574 return 0; 8575} 8576_ACEOF 8577if ac_fn_c_try_link "$LINENO"; then : 8578 ax_cv_header_ncurses_h=yes 8579else 8580 ax_cv_header_ncurses_h=no 8581fi 8582rm -f core conftest.err conftest.$ac_objext \ 8583 conftest$ac_exeext conftest.$ac_ext 8584 8585fi 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h" >&5 8587$as_echo "$ax_cv_header_ncurses_h" >&6; } 8588 if test "x$ax_cv_header_ncurses_h" = xyes; then : 8589 8590 ax_cv_curses_color=yes 8591 ax_cv_curses_obsolete=yes 8592 8593$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8594 8595 8596$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h 8597 8598 8599$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h 8600 8601 8602fi 8603 8604 if test "x$ax_cv_header_ncurses_curses_h" = xno && test "x$ax_cv_header_ncurses_h" = xno; then : 8605 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&5 8607$as_echo "$as_me: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&2;} 8608 8609fi 8610 8611fi 8612 8613fi 8614 8615 # Test for plain Curses (or if CURSES_LIB was set by user) 8616 8617 if test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno; then : 8618 8619 if test "x$CURSES_LIB" != x; then : 8620 8621 LIBS="$ax_saved_LIBS $CURSES_LIB" 8622 8623else 8624 8625 LIBS="$ax_saved_LIBS -lcurses" 8626 8627fi 8628 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curses library" >&5 8630$as_echo_n "checking for Curses library... " >&6; } 8631if ${ax_cv_plaincurses+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8636/* end confdefs.h. */ 8637 8638/* Override any GCC internal prototype to avoid an error. 8639 Use char because int might match the return type of a GCC 8640 builtin and then its argument prototype would still apply. */ 8641#ifdef __cplusplus 8642extern "C" 8643#endif 8644char initscr (); 8645int 8646main () 8647{ 8648return initscr (); 8649 ; 8650 return 0; 8651} 8652_ACEOF 8653if ac_fn_c_try_link "$LINENO"; then : 8654 ax_cv_plaincurses=yes 8655else 8656 ax_cv_plaincurses=no 8657fi 8658rm -f core conftest.err conftest.$ac_objext \ 8659 conftest$ac_exeext conftest.$ac_ext 8660 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses" >&5 8663$as_echo "$ax_cv_plaincurses" >&6; } 8664 8665 if test "x$ax_cv_plaincurses" = xyes; then : 8666 8667 ax_cv_curses=yes 8668 ax_cv_curses_which=plaincurses 8669 if test "x$CURSES_LIB" = x; then : 8670 8671 CURSES_LIB="-lcurses" 8672 8673fi 8674 8675$as_echo "#define HAVE_CURSES 1" >>confdefs.h 8676 8677 8678 # Check for base conformance (and header file) 8679 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working curses.h" >&5 8681$as_echo_n "checking for working curses.h... " >&6; } 8682if ${ax_cv_header_curses_h+:} false; then : 8683 $as_echo_n "(cached) " >&6 8684else 8685 8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8687/* end confdefs.h. */ 8688 8689 #include <curses.h> 8690 8691int 8692main () 8693{ 8694 8695 chtype a = A_BOLD; 8696 int b = KEY_LEFT; 8697 initscr(); 8698 8699 ; 8700 return 0; 8701} 8702_ACEOF 8703if ac_fn_c_try_link "$LINENO"; then : 8704 ax_cv_header_curses_h=yes 8705else 8706 ax_cv_header_curses_h=no 8707fi 8708rm -f core conftest.err conftest.$ac_objext \ 8709 conftest$ac_exeext conftest.$ac_ext 8710 8711fi 8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_curses_h" >&5 8713$as_echo "$ax_cv_header_curses_h" >&6; } 8714 if test "x$ax_cv_header_curses_h" = xyes; then : 8715 8716 8717$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 8718 8719 8720 # Check for X/Open Enhanced conformance 8721 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X/Open Enhanced Curses conformance" >&5 8723$as_echo_n "checking for X/Open Enhanced Curses conformance... " >&6; } 8724if ${ax_cv_plaincurses_enhanced+:} false; then : 8725 $as_echo_n "(cached) " >&6 8726else 8727 8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8729/* end confdefs.h. */ 8730 8731 #define _XOPEN_SOURCE_EXTENDED 1 8732 #include <curses.h> 8733 #ifndef _XOPEN_CURSES 8734 #error "this Curses library is not enhanced" 8735 "this Curses library is not enhanced" 8736 #endif 8737 8738int 8739main () 8740{ 8741 8742 chtype a = A_BOLD; 8743 int b = KEY_LEFT; 8744 chtype c = COLOR_PAIR(1) & A_COLOR; 8745 attr_t d = WA_NORMAL; 8746 cchar_t e; 8747 wint_t f; 8748 initscr(); 8749 init_pair(1, COLOR_WHITE, COLOR_RED); 8750 wattr_set(stdscr, d, 0, NULL); 8751 wget_wch(stdscr, &f); 8752 8753 ; 8754 return 0; 8755} 8756_ACEOF 8757if ac_fn_c_try_link "$LINENO"; then : 8758 ax_cv_plaincurses_enhanced=yes 8759else 8760 ax_cv_plaincurses_enhanced=no 8761fi 8762rm -f core conftest.err conftest.$ac_objext \ 8763 conftest$ac_exeext conftest.$ac_ext 8764 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_enhanced" >&5 8767$as_echo "$ax_cv_plaincurses_enhanced" >&6; } 8768 if test "x$ax_cv_plaincurses_enhanced" = xyes; then : 8769 8770 ax_cv_curses_enhanced=yes 8771 ax_cv_curses_color=yes 8772 8773$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h 8774 8775 8776$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8777 8778 8779fi 8780 8781 # Check for color functions 8782 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curses color functions" >&5 8784$as_echo_n "checking for Curses color functions... " >&6; } 8785if ${ax_cv_plaincurses_color+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790/* end confdefs.h. */ 8791 8792 #define _XOPEN_SOURCE_EXTENDED 1 8793 #include <curses.h> 8794 8795int 8796main () 8797{ 8798 8799 chtype a = A_BOLD; 8800 int b = KEY_LEFT; 8801 chtype c = COLOR_PAIR(1) & A_COLOR; 8802 initscr(); 8803 init_pair(1, COLOR_WHITE, COLOR_RED); 8804 8805 ; 8806 return 0; 8807} 8808_ACEOF 8809if ac_fn_c_try_link "$LINENO"; then : 8810 ax_cv_plaincurses_color=yes 8811else 8812 ax_cv_plaincurses_color=no 8813fi 8814rm -f core conftest.err conftest.$ac_objext \ 8815 conftest$ac_exeext conftest.$ac_ext 8816 8817fi 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_color" >&5 8819$as_echo "$ax_cv_plaincurses_color" >&6; } 8820 if test "x$ax_cv_plaincurses_color" = xyes; then : 8821 8822 ax_cv_curses_color=yes 8823 8824$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h 8825 8826 8827fi 8828 8829 # Check for obsolete functions 8830 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete Curses functions" >&5 8832$as_echo_n "checking for obsolete Curses functions... " >&6; } 8833if ${ax_cv_plaincurses_obsolete+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838/* end confdefs.h. */ 8839 8840 #include <curses.h> 8841 8842int 8843main () 8844{ 8845 8846 chtype a = A_BOLD; 8847 int b = KEY_LEFT; 8848 int g = getattrs(stdscr); 8849 int h = getcurx(stdscr) + getmaxx(stdscr); 8850 initscr(); 8851 8852 ; 8853 return 0; 8854} 8855_ACEOF 8856if ac_fn_c_try_link "$LINENO"; then : 8857 ax_cv_plaincurses_obsolete=yes 8858else 8859 ax_cv_plaincurses_obsolete=no 8860fi 8861rm -f core conftest.err conftest.$ac_objext \ 8862 conftest$ac_exeext conftest.$ac_ext 8863 8864fi 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_obsolete" >&5 8866$as_echo "$ax_cv_plaincurses_obsolete" >&6; } 8867 if test "x$ax_cv_plaincurses_obsolete" = xyes; then : 8868 8869 ax_cv_curses_obsolete=yes 8870 8871$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h 8872 8873 8874fi 8875 8876fi 8877 8878 if test "x$ax_cv_header_curses_h" = xno; then : 8879 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working curses.h" >&5 8881$as_echo "$as_me: WARNING: could not find a working curses.h" >&2;} 8882 8883fi 8884 8885fi 8886 8887fi 8888 8889 if test "x$ax_cv_curses" != xyes; then : 8890 ax_cv_curses=no 8891fi 8892 if test "x$ax_cv_curses_enhanced" != xyes; then : 8893 ax_cv_curses_enhanced=no 8894fi 8895 if test "x$ax_cv_curses_color" != xyes; then : 8896 ax_cv_curses_color=no 8897fi 8898 if test "x$ax_cv_curses_obsolete" != xyes; then : 8899 ax_cv_curses_obsolete=no 8900fi 8901 8902 LIBS=$ax_saved_LIBS 8903 8904 # restore old LDFLAGS/CPPFLAGS 8905 LDFLAGS="$old_LDFLAGS" 8906 CPPFLAGS="$old_CPPFLAGS" 8907 8908 if test "x$ax_cv_curses_which" = xno ; then 8909 as_fn_error $? "requires either tinfo, NcursesW or Ncurses library" "$LINENO" 5 8910 else 8911 TINFO_LIBS="$CURSES_LDFLAGS $CURSES_LIB" 8912 8913 TINFO_CFLAGS="$CURSES_CPPFLAGS" 8914 8915 fi 8916fi 8917 8918for ac_header in CommonCrypto/CommonCrypto.h 8919do : 8920 ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonCrypto.h" "ac_cv_header_CommonCrypto_CommonCrypto_h" "$ac_includes_default" 8921if test "x$ac_cv_header_CommonCrypto_CommonCrypto_h" = xyes; then : 8922 cat >>confdefs.h <<_ACEOF 8923#define HAVE_COMMONCRYPTO_COMMONCRYPTO_H 1 8924_ACEOF 8925 default_crypto_library="apple-common-crypto" 8926else 8927 default_crypto_library="openssl" 8928 8929fi 8930 8931done 8932 8933 8934 8935# Check whether --with-crypto-library was given. 8936if test "${with_crypto_library+set}" = set; then : 8937 withval=$with_crypto_library; 8938 case "${withval}" in 8939 openssl|nettle|apple-common-crypto) ;; 8940 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;; 8941 esac 8942 8943else 8944 with_crypto_library="$default_crypto_library" 8945 8946fi 8947 8948 8949case "${with_crypto_library}" in 8950 openssl) 8951 8952pkg_failed=no 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5 8954$as_echo_n "checking for CRYPTO... " >&6; } 8955 8956if test -n "$CRYPTO_CFLAGS"; then 8957 pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS" 8958 elif test -n "$PKG_CONFIG"; then 8959 if test -n "$PKG_CONFIG" && \ 8960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 8961 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 8962 ac_status=$? 8963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8964 test $ac_status = 0; }; then 8965 pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 8966 test "x$?" != "x0" && pkg_failed=yes 8967else 8968 pkg_failed=yes 8969fi 8970 else 8971 pkg_failed=untried 8972fi 8973if test -n "$CRYPTO_LIBS"; then 8974 pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS" 8975 elif test -n "$PKG_CONFIG"; then 8976 if test -n "$PKG_CONFIG" && \ 8977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 8978 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 8979 ac_status=$? 8980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8981 test $ac_status = 0; }; then 8982 pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 8983 test "x$?" != "x0" && pkg_failed=yes 8984else 8985 pkg_failed=yes 8986fi 8987 else 8988 pkg_failed=untried 8989fi 8990 8991 8992 8993if test $pkg_failed = yes; then 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8995$as_echo "no" >&6; } 8996 8997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8998 _pkg_short_errors_supported=yes 8999else 9000 _pkg_short_errors_supported=no 9001fi 9002 if test $_pkg_short_errors_supported = yes; then 9003 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 9004 else 9005 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 9006 fi 9007 # Put the nasty error message in config.log where it belongs 9008 echo "$CRYPTO_PKG_ERRORS" >&5 9009 9010 9011 9012 9013 9014 if ${ax_cv_have_CRYPTO+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 save_CPPFLAGS="$CPPFLAGS" 9018 save_LDFLAGS="$LDFLAGS" 9019 save_LIBS="$LIBS" 9020 9021 if test "x$CRYPTO_CPPFLAGS" != "x"; then : 9022 CPPFLAGS="$CPPFLAGS $CRYPTO_CPPFLAGS" 9023fi 9024 9025 if test "x$CRYPTO_LDFLAGS" != "x"; then : 9026 LDFLAGS="$LDFLAGS $CRYPTO_LDFLAGS" 9027fi 9028 9029 ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" 9030if test "x$ac_cv_header_openssl_aes_h" = xyes; then : 9031 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5 9033$as_echo_n "checking for main in -lcrypto... " >&6; } 9034if ${ac_cv_lib_crypto_main+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 ac_check_lib_save_LIBS=$LIBS 9038LIBS="-lcrypto $LIBS" 9039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041 9042 9043int 9044main () 9045{ 9046return main (); 9047 ; 9048 return 0; 9049} 9050_ACEOF 9051if ac_fn_c_try_link "$LINENO"; then : 9052 ac_cv_lib_crypto_main=yes 9053else 9054 ac_cv_lib_crypto_main=no 9055fi 9056rm -f core conftest.err conftest.$ac_objext \ 9057 conftest$ac_exeext conftest.$ac_ext 9058LIBS=$ac_check_lib_save_LIBS 9059fi 9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5 9061$as_echo "$ac_cv_lib_crypto_main" >&6; } 9062if test "x$ac_cv_lib_crypto_main" = xyes; then : 9063 ax_cv_have_CRYPTO=yes 9064else 9065 ax_cv_have_CRYPTO=no 9066fi 9067 9068 9069else 9070 ax_cv_have_CRYPTO=no 9071fi 9072 9073 9074 9075 CPPFLAGS="$save_CPPFLAGS" 9076 LDFLAGS="$save_LDFLAGS" 9077 LIBS="$save_LIBS" 9078 9079fi 9080 9081 9082 if test "$ax_cv_have_CRYPTO" = "yes"; then : 9083 9084$as_echo "#define HAVE_CRYPTO 1" >>confdefs.h 9085 9086 9087$as_echo "#define USE_OPENSSL_AES 1" >>confdefs.h 9088 9089 CRYPTO_CFLAGS="$CRYPTO_CPPFLAGS" 9090 9091 CRYPTO_LIBS="$CRYPTO_LDFLAGS -lcrypto" 9092 9093else 9094 as_fn_error $? "OpenSSL crypto library not found" "$LINENO" 5 9095fi 9096 9097elif test $pkg_failed = untried; then 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9099$as_echo "no" >&6; } 9100 9101 9102 9103 9104 if ${ax_cv_have_CRYPTO+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 save_CPPFLAGS="$CPPFLAGS" 9108 save_LDFLAGS="$LDFLAGS" 9109 save_LIBS="$LIBS" 9110 9111 if test "x$CRYPTO_CPPFLAGS" != "x"; then : 9112 CPPFLAGS="$CPPFLAGS $CRYPTO_CPPFLAGS" 9113fi 9114 9115 if test "x$CRYPTO_LDFLAGS" != "x"; then : 9116 LDFLAGS="$LDFLAGS $CRYPTO_LDFLAGS" 9117fi 9118 9119 ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" 9120if test "x$ac_cv_header_openssl_aes_h" = xyes; then : 9121 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5 9123$as_echo_n "checking for main in -lcrypto... " >&6; } 9124if ${ac_cv_lib_crypto_main+:} false; then : 9125 $as_echo_n "(cached) " >&6 9126else 9127 ac_check_lib_save_LIBS=$LIBS 9128LIBS="-lcrypto $LIBS" 9129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131 9132 9133int 9134main () 9135{ 9136return main (); 9137 ; 9138 return 0; 9139} 9140_ACEOF 9141if ac_fn_c_try_link "$LINENO"; then : 9142 ac_cv_lib_crypto_main=yes 9143else 9144 ac_cv_lib_crypto_main=no 9145fi 9146rm -f core conftest.err conftest.$ac_objext \ 9147 conftest$ac_exeext conftest.$ac_ext 9148LIBS=$ac_check_lib_save_LIBS 9149fi 9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5 9151$as_echo "$ac_cv_lib_crypto_main" >&6; } 9152if test "x$ac_cv_lib_crypto_main" = xyes; then : 9153 ax_cv_have_CRYPTO=yes 9154else 9155 ax_cv_have_CRYPTO=no 9156fi 9157 9158 9159else 9160 ax_cv_have_CRYPTO=no 9161fi 9162 9163 9164 9165 CPPFLAGS="$save_CPPFLAGS" 9166 LDFLAGS="$save_LDFLAGS" 9167 LIBS="$save_LIBS" 9168 9169fi 9170 9171 9172 if test "$ax_cv_have_CRYPTO" = "yes"; then : 9173 9174$as_echo "#define HAVE_CRYPTO 1" >>confdefs.h 9175 9176 9177$as_echo "#define USE_OPENSSL_AES 1" >>confdefs.h 9178 9179 CRYPTO_CFLAGS="$CRYPTO_CPPFLAGS" 9180 9181 CRYPTO_LIBS="$CRYPTO_LDFLAGS -lcrypto" 9182 9183else 9184 as_fn_error $? "OpenSSL crypto library not found" "$LINENO" 5 9185fi 9186 9187else 9188 CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS 9189 CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9191$as_echo "yes" >&6; } 9192 9193$as_echo "#define USE_OPENSSL_AES 1" >>confdefs.h 9194 9195fi 9196 ;; 9197 nettle) 9198 9199pkg_failed=no 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5 9201$as_echo_n "checking for CRYPTO... " >&6; } 9202 9203if test -n "$CRYPTO_CFLAGS"; then 9204 pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS" 9205 elif test -n "$PKG_CONFIG"; then 9206 if test -n "$PKG_CONFIG" && \ 9207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5 9208 ($PKG_CONFIG --exists --print-errors "nettle") 2>&5 9209 ac_status=$? 9210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9211 test $ac_status = 0; }; then 9212 pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "nettle" 2>/dev/null` 9213 test "x$?" != "x0" && pkg_failed=yes 9214else 9215 pkg_failed=yes 9216fi 9217 else 9218 pkg_failed=untried 9219fi 9220if test -n "$CRYPTO_LIBS"; then 9221 pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS" 9222 elif test -n "$PKG_CONFIG"; then 9223 if test -n "$PKG_CONFIG" && \ 9224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5 9225 ($PKG_CONFIG --exists --print-errors "nettle") 2>&5 9226 ac_status=$? 9227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9228 test $ac_status = 0; }; then 9229 pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "nettle" 2>/dev/null` 9230 test "x$?" != "x0" && pkg_failed=yes 9231else 9232 pkg_failed=yes 9233fi 9234 else 9235 pkg_failed=untried 9236fi 9237 9238 9239 9240if test $pkg_failed = yes; then 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9242$as_echo "no" >&6; } 9243 9244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9245 _pkg_short_errors_supported=yes 9246else 9247 _pkg_short_errors_supported=no 9248fi 9249 if test $_pkg_short_errors_supported = yes; then 9250 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nettle" 2>&1` 9251 else 9252 CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nettle" 2>&1` 9253 fi 9254 # Put the nasty error message in config.log where it belongs 9255 echo "$CRYPTO_PKG_ERRORS" >&5 9256 9257 as_fn_error $? "Nettle crypto library not found" "$LINENO" 5 9258elif test $pkg_failed = untried; then 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9260$as_echo "no" >&6; } 9261 as_fn_error $? "Nettle crypto library not found" "$LINENO" 5 9262else 9263 CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS 9264 CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9266$as_echo "yes" >&6; } 9267 9268fi 9269 9270$as_echo "#define USE_NETTLE_AES 1" >>confdefs.h 9271 9272 ;; 9273 apple-common-crypto) 9274 for ac_header in CommonCrypto/CommonCrypto.h 9275do : 9276 ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonCrypto.h" "ac_cv_header_CommonCrypto_CommonCrypto_h" "$ac_includes_default" 9277if test "x$ac_cv_header_CommonCrypto_CommonCrypto_h" = xyes; then : 9278 cat >>confdefs.h <<_ACEOF 9279#define HAVE_COMMONCRYPTO_COMMONCRYPTO_H 1 9280_ACEOF 9281 9282else 9283 as_fn_error $? "Apple Common Crypto header not found" "$LINENO" 5 9284fi 9285 9286done 9287 9288 9289$as_echo "#define USE_APPLE_COMMON_CRYPTO_AES 1" >>confdefs.h 9290 9291 ;; 9292esac 9293 9294ac_fn_c_check_decl "$LINENO" "forkpty" "ac_cv_have_decl_forkpty" "#include <sys/types.h> 9295 #include <libutil.h> 9296" 9297if test "x$ac_cv_have_decl_forkpty" = xyes; then : 9298 9299$as_echo "#define FORKPTY_IN_LIBUTIL 1" >>confdefs.h 9300 9301fi 9302 9303 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing forkpty" >&5 9305$as_echo_n "checking for library containing forkpty... " >&6; } 9306if ${ac_cv_search_forkpty+:} false; then : 9307 $as_echo_n "(cached) " >&6 9308else 9309 ac_func_search_save_LIBS=$LIBS 9310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312 9313/* Override any GCC internal prototype to avoid an error. 9314 Use char because int might match the return type of a GCC 9315 builtin and then its argument prototype would still apply. */ 9316#ifdef __cplusplus 9317extern "C" 9318#endif 9319char forkpty (); 9320int 9321main () 9322{ 9323return forkpty (); 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328for ac_lib in '' util bsd; do 9329 if test -z "$ac_lib"; then 9330 ac_res="none required" 9331 else 9332 ac_res=-l$ac_lib 9333 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9334 fi 9335 if ac_fn_c_try_link "$LINENO"; then : 9336 ac_cv_search_forkpty=$ac_res 9337fi 9338rm -f core conftest.err conftest.$ac_objext \ 9339 conftest$ac_exeext 9340 if ${ac_cv_search_forkpty+:} false; then : 9341 break 9342fi 9343done 9344if ${ac_cv_search_forkpty+:} false; then : 9345 9346else 9347 ac_cv_search_forkpty=no 9348fi 9349rm conftest.$ac_ext 9350LIBS=$ac_func_search_save_LIBS 9351fi 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_forkpty" >&5 9353$as_echo "$ac_cv_search_forkpty" >&6; } 9354ac_res=$ac_cv_search_forkpty 9355if test "$ac_res" != no; then : 9356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9357 9358 9359$as_echo "#define HAVE_FORKPTY /**/" >>confdefs.h 9360 9361 9362fi 9363 9364 9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pipe2(..., O_CLOEXEC) is supported" >&5 9366$as_echo_n "checking whether pipe2(..., O_CLOEXEC) is supported... " >&6; } 9367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369#define _GNU_SOURCE 9370#include <unistd.h> 9371#include <fcntl.h> 9372int pipefd[2]; 9373 9374int 9375main () 9376{ 9377(void) pipe2(pipefd, O_CLOEXEC); 9378 ; 9379 return 0; 9380} 9381_ACEOF 9382if ac_fn_c_try_link "$LINENO"; then : 9383 9384$as_echo "#define HAVE_PIPE2_CLOEXEC 1" >>confdefs.h 9385 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9387$as_echo "yes" >&6; } 9388else 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9390$as_echo "no" >&6; } 9391fi 9392rm -f core conftest.err conftest.$ac_objext \ 9393 conftest$ac_exeext conftest.$ac_ext 9394 9395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FD_ISSET() argument is const" >&5 9396$as_echo_n "checking whether FD_ISSET() argument is const... " >&6; } 9397ac_ext=cpp 9398ac_cpp='$CXXCPP $CPPFLAGS' 9399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9402 9403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405#include <sys/select.h> 9406class T { 9407public: 9408 fd_set fds; 9409 bool Fun( void ) const { return FD_ISSET( 0, &fds ); } }; 9410int 9411main () 9412{ 9413T x; return x.Fun(); 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418if ac_fn_cxx_try_compile "$LINENO"; then : 9419 9420$as_echo "#define FD_ISSET_IS_CONST 1" >>confdefs.h 9421 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9423$as_echo "yes" >&6; } 9424else 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9426$as_echo "no" >&6; } 9427fi 9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9429ac_ext=c 9430ac_cpp='$CPP $CPPFLAGS' 9431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9433ac_compiler_gnu=$ac_cv_c_compiler_gnu 9434 9435 9436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::shared_ptr is available" >&5 9437$as_echo_n "checking whether std::shared_ptr is available... " >&6; } 9438ac_ext=cpp 9439ac_cpp='$CXXCPP $CPPFLAGS' 9440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9443 9444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445/* end confdefs.h. */ 9446#include <memory> 9447class T { 9448public: 9449 std::shared_ptr<int> Fun( void ) { return std::shared_ptr<int>( new int ( 0 ) ); } }; 9450int 9451main () 9452{ 9453T x; return !!x.Fun(); 9454 ; 9455 return 0; 9456} 9457_ACEOF 9458if ac_fn_cxx_try_compile "$LINENO"; then : 9459 9460$as_echo "#define HAVE_STD_SHARED_PTR 1" >>confdefs.h 9461 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9463$as_echo "yes" >&6; } 9464else 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9466$as_echo "no" >&6; } 9467fi 9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9469ac_ext=c 9470ac_cpp='$CPP $CPPFLAGS' 9471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9473ac_compiler_gnu=$ac_cv_c_compiler_gnu 9474 9475 9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::shared_ptr is available" >&5 9477$as_echo_n "checking whether std::tr1::shared_ptr is available... " >&6; } 9478ac_ext=cpp 9479ac_cpp='$CXXCPP $CPPFLAGS' 9480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9483 9484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486#include <tr1/memory> 9487class T { 9488public: 9489 std::tr1::shared_ptr<int> Fun( void ) { return std::tr1::shared_ptr<int>( new int ( 0 ) ); } }; 9490int 9491main () 9492{ 9493T x; return !!x.Fun(); 9494 ; 9495 return 0; 9496} 9497_ACEOF 9498if ac_fn_cxx_try_compile "$LINENO"; then : 9499 9500$as_echo "#define HAVE_STD_TR1_SHARED_PTR 1" >>confdefs.h 9501 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9503$as_echo "yes" >&6; } 9504else 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9506$as_echo "no" >&6; } 9507fi 9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9509ac_ext=c 9510ac_cpp='$CPP $CPPFLAGS' 9511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9513ac_compiler_gnu=$ac_cv_c_compiler_gnu 9514 9515 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime() is supported" >&5 9517$as_echo_n "checking whether clock_gettime() is supported... " >&6; } 9518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9519/* end confdefs.h. */ 9520#include <time.h> 9521struct timespec ts; 9522 9523int 9524main () 9525{ 9526return clock_gettime(CLOCK_MONOTONIC, &ts); 9527 ; 9528 return 0; 9529} 9530_ACEOF 9531if ac_fn_c_try_link "$LINENO"; then : 9532 9533$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 9534 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9536$as_echo "yes" >&6; } 9537else 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9539$as_echo "no" >&6; } 9540fi 9541rm -f core conftest.err conftest.$ac_objext \ 9542 conftest$ac_exeext conftest.$ac_ext 9543 9544ac_fn_c_check_decl "$LINENO" "mach_absolute_time" "ac_cv_have_decl_mach_absolute_time" "#include <mach/mach_time.h> 9545" 9546if test "x$ac_cv_have_decl_mach_absolute_time" = xyes; then : 9547 9548$as_echo "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h 9549 9550fi 9551 9552 9553 9554ac_fn_c_check_decl "$LINENO" "__builtin_ctz" "ac_cv_have_decl___builtin_ctz" "$ac_includes_default" 9555if test "x$ac_cv_have_decl___builtin_ctz" = xyes; then : 9556 ac_have_decl=1 9557else 9558 ac_have_decl=0 9559fi 9560 9561cat >>confdefs.h <<_ACEOF 9562#define HAVE_DECL___BUILTIN_CTZ $ac_have_decl 9563_ACEOF 9564 9565 9566ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "#include <strings.h> 9567" 9568if test "x$ac_cv_have_decl_ffs" = xyes; then : 9569 ac_have_decl=1 9570else 9571 ac_have_decl=0 9572fi 9573 9574cat >>confdefs.h <<_ACEOF 9575#define HAVE_DECL_FFS $ac_have_decl 9576_ACEOF 9577 9578 9579ac_fn_c_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#if defined(HAVE_ENDIAN_H) 9580#include <endian.h> 9581#elif defined(HAVE_SYS_ENDIAN_H) 9582#include <sys/types.h> 9583#include <sys/endian.h> 9584#endif 9585" 9586if test "x$ac_cv_have_decl_be64toh" = xyes; then : 9587 ac_have_decl=1 9588else 9589 ac_have_decl=0 9590fi 9591 9592cat >>confdefs.h <<_ACEOF 9593#define HAVE_DECL_BE64TOH $ac_have_decl 9594_ACEOF 9595ac_fn_c_check_decl "$LINENO" "betoh64" "ac_cv_have_decl_betoh64" "#if defined(HAVE_ENDIAN_H) 9596#include <endian.h> 9597#elif defined(HAVE_SYS_ENDIAN_H) 9598#include <sys/types.h> 9599#include <sys/endian.h> 9600#endif 9601" 9602if test "x$ac_cv_have_decl_betoh64" = xyes; then : 9603 ac_have_decl=1 9604else 9605 ac_have_decl=0 9606fi 9607 9608cat >>confdefs.h <<_ACEOF 9609#define HAVE_DECL_BETOH64 $ac_have_decl 9610_ACEOF 9611ac_fn_c_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#if defined(HAVE_ENDIAN_H) 9612#include <endian.h> 9613#elif defined(HAVE_SYS_ENDIAN_H) 9614#include <sys/types.h> 9615#include <sys/endian.h> 9616#endif 9617" 9618if test "x$ac_cv_have_decl_bswap64" = xyes; then : 9619 ac_have_decl=1 9620else 9621 ac_have_decl=0 9622fi 9623 9624cat >>confdefs.h <<_ACEOF 9625#define HAVE_DECL_BSWAP64 $ac_have_decl 9626_ACEOF 9627ac_fn_c_check_decl "$LINENO" "__builtin_bswap64" "ac_cv_have_decl___builtin_bswap64" "#if defined(HAVE_ENDIAN_H) 9628#include <endian.h> 9629#elif defined(HAVE_SYS_ENDIAN_H) 9630#include <sys/types.h> 9631#include <sys/endian.h> 9632#endif 9633" 9634if test "x$ac_cv_have_decl___builtin_bswap64" = xyes; then : 9635 ac_have_decl=1 9636else 9637 ac_have_decl=0 9638fi 9639 9640cat >>confdefs.h <<_ACEOF 9641#define HAVE_DECL___BUILTIN_BSWAP64 $ac_have_decl 9642_ACEOF 9643 9644 9645if test x"$ac_cv_have_decl_be64toh" != xyes && 9646 test x"$ac_cv_have_decl_betoh64" != xyes; then : 9647 ac_fn_c_check_decl "$LINENO" "OSSwapHostToBigInt64" "ac_cv_have_decl_OSSwapHostToBigInt64" "#include <libkern/OSByteOrder.h> 9648" 9649if test "x$ac_cv_have_decl_OSSwapHostToBigInt64" = xyes; then : 9650 9651$as_echo "#define HAVE_OSX_SWAP 1" >>confdefs.h 9652 9653else 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find byte swapping functions; using built-in routines." >&5 9655$as_echo "$as_me: WARNING: Unable to find byte swapping functions; using built-in routines." >&2;} 9656fi 9657 9658fi 9659 9660ac_fn_c_check_decl "$LINENO" "IP_MTU_DISCOVER" "ac_cv_have_decl_IP_MTU_DISCOVER" "#include <netinet/in.h> 9661" 9662if test "x$ac_cv_have_decl_IP_MTU_DISCOVER" = xyes; then : 9663 9664$as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h 9665 9666fi 9667 9668 9669ac_fn_c_check_decl "$LINENO" "IP_RECVTOS" "ac_cv_have_decl_IP_RECVTOS" "#include <netinet/in.h> 9670" 9671if test "x$ac_cv_have_decl_IP_RECVTOS" = xyes; then : 9672 9673$as_echo "#define HAVE_IP_RECVTOS 1" >>confdefs.h 9674 9675fi 9676 9677 9678ac_fn_c_check_decl "$LINENO" "__STDC_ISO_10646__" "ac_cv_have_decl___STDC_ISO_10646__" "#include <wchar.h> 9679" 9680if test "x$ac_cv_have_decl___STDC_ISO_10646__" = xyes; then : 9681 9682else 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C library doesn't advertise wchar_t is Unicode (OS X works anyway with workaround)." >&5 9684$as_echo "$as_me: WARNING: C library doesn't advertise wchar_t is Unicode (OS X works anyway with workaround)." >&2;} 9685fi 9686 9687 9688ac_fn_c_check_decl "$LINENO" "IUTF8" "ac_cv_have_decl_IUTF8" "#include <termios.h> 9689" 9690if test "x$ac_cv_have_decl_IUTF8" = xyes; then : 9691 9692$as_echo "#define HAVE_IUTF8 1" >>confdefs.h 9693 9694else 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No IUTF8 termios mode; character-erase of multibyte character sequence probably does not work properly in canonical mode on this platform." >&5 9696$as_echo "$as_me: WARNING: No IUTF8 termios mode; character-erase of multibyte character sequence probably does not work properly in canonical mode on this platform." >&2;} 9697fi 9698 9699 9700# Checks for protobuf 9701 9702pkg_failed=no 9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5 9704$as_echo_n "checking for protobuf... " >&6; } 9705 9706if test -n "$protobuf_CFLAGS"; then 9707 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS" 9708 elif test -n "$PKG_CONFIG"; then 9709 if test -n "$PKG_CONFIG" && \ 9710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf\""; } >&5 9711 ($PKG_CONFIG --exists --print-errors "protobuf") 2>&5 9712 ac_status=$? 9713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9714 test $ac_status = 0; }; then 9715 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf" 2>/dev/null` 9716 test "x$?" != "x0" && pkg_failed=yes 9717else 9718 pkg_failed=yes 9719fi 9720 else 9721 pkg_failed=untried 9722fi 9723if test -n "$protobuf_LIBS"; then 9724 pkg_cv_protobuf_LIBS="$protobuf_LIBS" 9725 elif test -n "$PKG_CONFIG"; then 9726 if test -n "$PKG_CONFIG" && \ 9727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf\""; } >&5 9728 ($PKG_CONFIG --exists --print-errors "protobuf") 2>&5 9729 ac_status=$? 9730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9731 test $ac_status = 0; }; then 9732 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf" 2>/dev/null` 9733 test "x$?" != "x0" && pkg_failed=yes 9734else 9735 pkg_failed=yes 9736fi 9737 else 9738 pkg_failed=untried 9739fi 9740 9741 9742 9743if test $pkg_failed = yes; then 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9745$as_echo "no" >&6; } 9746 9747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9748 _pkg_short_errors_supported=yes 9749else 9750 _pkg_short_errors_supported=no 9751fi 9752 if test $_pkg_short_errors_supported = yes; then 9753 protobuf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "protobuf" 2>&1` 9754 else 9755 protobuf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "protobuf" 2>&1` 9756 fi 9757 # Put the nasty error message in config.log where it belongs 9758 echo "$protobuf_PKG_ERRORS" >&5 9759 9760 as_fn_error $? "Package requirements (protobuf) were not met: 9761 9762$protobuf_PKG_ERRORS 9763 9764Consider adjusting the PKG_CONFIG_PATH environment variable if you 9765installed software in a non-standard prefix. 9766 9767Alternatively, you may set the environment variables protobuf_CFLAGS 9768and protobuf_LIBS to avoid the need to call pkg-config. 9769See the pkg-config man page for more details." "$LINENO" 5 9770elif test $pkg_failed = untried; then 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9772$as_echo "no" >&6; } 9773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9775as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 9776is in your PATH or set the PKG_CONFIG environment variable to the full 9777path to pkg-config. 9778 9779Alternatively, you may set the environment variables protobuf_CFLAGS 9780and protobuf_LIBS to avoid the need to call pkg-config. 9781See the pkg-config man page for more details. 9782 9783To get pkg-config, see <http://pkg-config.freedesktop.org/>. 9784See \`config.log' for more details" "$LINENO" 5; } 9785else 9786 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS 9787 protobuf_LIBS=$pkg_cv_protobuf_LIBS 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9789$as_echo "yes" >&6; } 9790 9791fi 9792 9793# On Debian Sid 2016-03-16ish at least, "pkgconfig --libs protobuf" 9794# gives us the bogus "-lprotobuf -pthread -lpthread"; remove 9795# "-lpthread" which misconfigures compile, causing a segfault in 9796# mosh-server. 9797if echo "$protobuf_LIBS" | grep -q -- -pthread; then : 9798 protobuf_LIBS="`echo $protobuf_LIBS | sed 's/-lpthread//g'`" 9799fi 9800 9801# Bash completion needs to ask where it goes if >= 2.0 is installed. 9802if test "$install_completion" != no; then : 9803 9804pkg_failed=no 9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH_COMPLETION" >&5 9806$as_echo_n "checking for BASH_COMPLETION... " >&6; } 9807 9808if test -n "$BASH_COMPLETION_CFLAGS"; then 9809 pkg_cv_BASH_COMPLETION_CFLAGS="$BASH_COMPLETION_CFLAGS" 9810 elif test -n "$PKG_CONFIG"; then 9811 if test -n "$PKG_CONFIG" && \ 9812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5 9813 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5 9814 ac_status=$? 9815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9816 test $ac_status = 0; }; then 9817 pkg_cv_BASH_COMPLETION_CFLAGS=`$PKG_CONFIG --cflags "bash-completion >= 2.0" 2>/dev/null` 9818 test "x$?" != "x0" && pkg_failed=yes 9819else 9820 pkg_failed=yes 9821fi 9822 else 9823 pkg_failed=untried 9824fi 9825if test -n "$BASH_COMPLETION_LIBS"; then 9826 pkg_cv_BASH_COMPLETION_LIBS="$BASH_COMPLETION_LIBS" 9827 elif test -n "$PKG_CONFIG"; then 9828 if test -n "$PKG_CONFIG" && \ 9829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5 9830 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5 9831 ac_status=$? 9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9833 test $ac_status = 0; }; then 9834 pkg_cv_BASH_COMPLETION_LIBS=`$PKG_CONFIG --libs "bash-completion >= 2.0" 2>/dev/null` 9835 test "x$?" != "x0" && pkg_failed=yes 9836else 9837 pkg_failed=yes 9838fi 9839 else 9840 pkg_failed=untried 9841fi 9842 9843 9844 9845if test $pkg_failed = yes; then 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9847$as_echo "no" >&6; } 9848 9849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9850 _pkg_short_errors_supported=yes 9851else 9852 _pkg_short_errors_supported=no 9853fi 9854 if test $_pkg_short_errors_supported = yes; then 9855 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1` 9856 else 9857 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1` 9858 fi 9859 # Put the nasty error message in config.log where it belongs 9860 echo "$BASH_COMPLETION_PKG_ERRORS" >&5 9861 9862 completions="${sysconfdir}/bash_completion.d" 9863elif test $pkg_failed = untried; then 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9865$as_echo "no" >&6; } 9866 completions="${sysconfdir}/bash_completion.d" 9867else 9868 BASH_COMPLETION_CFLAGS=$pkg_cv_BASH_COMPLETION_CFLAGS 9869 BASH_COMPLETION_LIBS=$pkg_cv_BASH_COMPLETION_LIBS 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9871$as_echo "yes" >&6; } 9872 if test "$prefix" = "NONE"; then 9873 completions="`pkg-config --variable=completionsdir bash-completion`" 9874 else 9875 completions="`pkg-config --define-variable=prefix=$prefix --variable=completionsdir bash-completion`" 9876 fi 9877fi 9878 9879fi 9880 9881ac_config_files="$ac_config_files Makefile src/Makefile src/crypto/Makefile src/frontend/Makefile src/network/Makefile src/protobufs/Makefile src/statesync/Makefile src/terminal/Makefile src/util/Makefile scripts/Makefile src/examples/Makefile src/tests/Makefile man/Makefile conf/Makefile" 9882 9883cat >confcache <<\_ACEOF 9884# This file is a shell script that caches the results of configure 9885# tests run on this system so they can be shared between configure 9886# scripts and configure runs, see configure's option --config-cache. 9887# It is not useful on other systems. If it contains results you don't 9888# want to keep, you may remove or edit it. 9889# 9890# config.status only pays attention to the cache file if you give it 9891# the --recheck option to rerun configure. 9892# 9893# `ac_cv_env_foo' variables (set or unset) will be overridden when 9894# loading this file, other *unset* `ac_cv_foo' will be assigned the 9895# following values. 9896 9897_ACEOF 9898 9899# The following way of writing the cache mishandles newlines in values, 9900# but we know of no workaround that is simple, portable, and efficient. 9901# So, we kill variables containing newlines. 9902# Ultrix sh set writes to stderr and can't be redirected directly, 9903# and sets the high bit in the cache file unless we assign to the vars. 9904( 9905 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9906 eval ac_val=\$$ac_var 9907 case $ac_val in #( 9908 *${as_nl}*) 9909 case $ac_var in #( 9910 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9911$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9912 esac 9913 case $ac_var in #( 9914 _ | IFS | as_nl) ;; #( 9915 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9916 *) { eval $ac_var=; unset $ac_var;} ;; 9917 esac ;; 9918 esac 9919 done 9920 9921 (set) 2>&1 | 9922 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9923 *${as_nl}ac_space=\ *) 9924 # `set' does not quote correctly, so add quotes: double-quote 9925 # substitution turns \\\\ into \\, and sed turns \\ into \. 9926 sed -n \ 9927 "s/'/'\\\\''/g; 9928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9929 ;; #( 9930 *) 9931 # `set' quotes correctly as required by POSIX, so do not add quotes. 9932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9933 ;; 9934 esac | 9935 sort 9936) | 9937 sed ' 9938 /^ac_cv_env_/b end 9939 t clear 9940 :clear 9941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9942 t end 9943 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9944 :end' >>confcache 9945if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9946 if test -w "$cache_file"; then 9947 if test "x$cache_file" != "x/dev/null"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9949$as_echo "$as_me: updating cache $cache_file" >&6;} 9950 if test ! -f "$cache_file" || test -h "$cache_file"; then 9951 cat confcache >"$cache_file" 9952 else 9953 case $cache_file in #( 9954 */* | ?:*) 9955 mv -f confcache "$cache_file"$$ && 9956 mv -f "$cache_file"$$ "$cache_file" ;; #( 9957 *) 9958 mv -f confcache "$cache_file" ;; 9959 esac 9960 fi 9961 fi 9962 else 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9964$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9965 fi 9966fi 9967rm -f confcache 9968 9969test "x$prefix" = xNONE && prefix=$ac_default_prefix 9970# Let make expand exec_prefix. 9971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9972 9973DEFS=-DHAVE_CONFIG_H 9974 9975ac_libobjs= 9976ac_ltlibobjs= 9977U= 9978for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9979 # 1. Remove the extension, and $U if already installed. 9980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9983 # will be set to the directory where LIBOBJS objects are built. 9984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9986done 9987LIBOBJS=$ac_libobjs 9988 9989LTLIBOBJS=$ac_ltlibobjs 9990 9991 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 9993$as_echo_n "checking that generated files are newer than configure... " >&6; } 9994 if test -n "$am_sleep_pid"; then 9995 # Hide warnings about reused PIDs. 9996 wait $am_sleep_pid 2>/dev/null 9997 fi 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 9999$as_echo "done" >&6; } 10000 if test -n "$EXEEXT"; then 10001 am__EXEEXT_TRUE= 10002 am__EXEEXT_FALSE='#' 10003else 10004 am__EXEEXT_TRUE='#' 10005 am__EXEEXT_FALSE= 10006fi 10007 10008if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10009 as_fn_error $? "conditional \"AMDEP\" was never defined. 10010Usually this means the macro was only invoked conditionally." "$LINENO" 5 10011fi 10012if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10013 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10014Usually this means the macro was only invoked conditionally." "$LINENO" 5 10015fi 10016if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 10017 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 10018Usually this means the macro was only invoked conditionally." "$LINENO" 5 10019fi 10020if test -z "${BUILD_CLIENT_TRUE}" && test -z "${BUILD_CLIENT_FALSE}"; then 10021 as_fn_error $? "conditional \"BUILD_CLIENT\" was never defined. 10022Usually this means the macro was only invoked conditionally." "$LINENO" 5 10023fi 10024if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then 10025 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined. 10026Usually this means the macro was only invoked conditionally." "$LINENO" 5 10027fi 10028if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then 10029 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. 10030Usually this means the macro was only invoked conditionally." "$LINENO" 5 10031fi 10032if test -z "${INSTALL_UFW_TRUE}" && test -z "${INSTALL_UFW_FALSE}"; then 10033 as_fn_error $? "conditional \"INSTALL_UFW\" was never defined. 10034Usually this means the macro was only invoked conditionally." "$LINENO" 5 10035fi 10036if test -z "${INSTALL_COMPLETION_TRUE}" && test -z "${INSTALL_COMPLETION_FALSE}"; then 10037 as_fn_error $? "conditional \"INSTALL_COMPLETION\" was never defined. 10038Usually this means the macro was only invoked conditionally." "$LINENO" 5 10039fi 10040 10041: "${CONFIG_STATUS=./config.status}" 10042ac_write_fail=0 10043ac_clean_files_save=$ac_clean_files 10044ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10046$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10047as_write_fail=0 10048cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10049#! $SHELL 10050# Generated by $as_me. 10051# Run this file to recreate the current configuration. 10052# Compiler output produced by configure, useful for debugging 10053# configure, is in config.log if it exists. 10054 10055debug=false 10056ac_cs_recheck=false 10057ac_cs_silent=false 10058 10059SHELL=\${CONFIG_SHELL-$SHELL} 10060export SHELL 10061_ASEOF 10062cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10063## -------------------- ## 10064## M4sh Initialization. ## 10065## -------------------- ## 10066 10067# Be more Bourne compatible 10068DUALCASE=1; export DUALCASE # for MKS sh 10069if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10070 emulate sh 10071 NULLCMD=: 10072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10073 # is contrary to our usage. Disable this feature. 10074 alias -g '${1+"$@"}'='"$@"' 10075 setopt NO_GLOB_SUBST 10076else 10077 case `(set -o) 2>/dev/null` in #( 10078 *posix*) : 10079 set -o posix ;; #( 10080 *) : 10081 ;; 10082esac 10083fi 10084 10085 10086as_nl=' 10087' 10088export as_nl 10089# Printing a long string crashes Solaris 7 /usr/bin/printf. 10090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10093# Prefer a ksh shell builtin over an external printf program on Solaris, 10094# but without wasting forks for bash or zsh. 10095if test -z "$BASH_VERSION$ZSH_VERSION" \ 10096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10097 as_echo='print -r --' 10098 as_echo_n='print -rn --' 10099elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10100 as_echo='printf %s\n' 10101 as_echo_n='printf %s' 10102else 10103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10105 as_echo_n='/usr/ucb/echo -n' 10106 else 10107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10108 as_echo_n_body='eval 10109 arg=$1; 10110 case $arg in #( 10111 *"$as_nl"*) 10112 expr "X$arg" : "X\\(.*\\)$as_nl"; 10113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10114 esac; 10115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10116 ' 10117 export as_echo_n_body 10118 as_echo_n='sh -c $as_echo_n_body as_echo' 10119 fi 10120 export as_echo_body 10121 as_echo='sh -c $as_echo_body as_echo' 10122fi 10123 10124# The user is always right. 10125if test "${PATH_SEPARATOR+set}" != set; then 10126 PATH_SEPARATOR=: 10127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10129 PATH_SEPARATOR=';' 10130 } 10131fi 10132 10133 10134# IFS 10135# We need space, tab and new line, in precisely that order. Quoting is 10136# there to prevent editors from complaining about space-tab. 10137# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10138# splitting by setting IFS to empty value.) 10139IFS=" "" $as_nl" 10140 10141# Find who we are. Look in the path if we contain no directory separator. 10142as_myself= 10143case $0 in #(( 10144 *[\\/]* ) as_myself=$0 ;; 10145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10146for as_dir in $PATH 10147do 10148 IFS=$as_save_IFS 10149 test -z "$as_dir" && as_dir=. 10150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10151 done 10152IFS=$as_save_IFS 10153 10154 ;; 10155esac 10156# We did not find ourselves, most probably we were run as `sh COMMAND' 10157# in which case we are not to be found in the path. 10158if test "x$as_myself" = x; then 10159 as_myself=$0 10160fi 10161if test ! -f "$as_myself"; then 10162 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10163 exit 1 10164fi 10165 10166# Unset variables that we do not need and which cause bugs (e.g. in 10167# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10168# suppresses any "Segmentation fault" message there. '((' could 10169# trigger a bug in pdksh 5.2.14. 10170for as_var in BASH_ENV ENV MAIL MAILPATH 10171do eval test x\${$as_var+set} = xset \ 10172 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10173done 10174PS1='$ ' 10175PS2='> ' 10176PS4='+ ' 10177 10178# NLS nuisances. 10179LC_ALL=C 10180export LC_ALL 10181LANGUAGE=C 10182export LANGUAGE 10183 10184# CDPATH. 10185(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10186 10187 10188# as_fn_error STATUS ERROR [LINENO LOG_FD] 10189# ---------------------------------------- 10190# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10191# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10192# script with STATUS, using 1 if that was 0. 10193as_fn_error () 10194{ 10195 as_status=$1; test $as_status -eq 0 && as_status=1 10196 if test "$4"; then 10197 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10198 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10199 fi 10200 $as_echo "$as_me: error: $2" >&2 10201 as_fn_exit $as_status 10202} # as_fn_error 10203 10204 10205# as_fn_set_status STATUS 10206# ----------------------- 10207# Set $? to STATUS, without forking. 10208as_fn_set_status () 10209{ 10210 return $1 10211} # as_fn_set_status 10212 10213# as_fn_exit STATUS 10214# ----------------- 10215# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10216as_fn_exit () 10217{ 10218 set +e 10219 as_fn_set_status $1 10220 exit $1 10221} # as_fn_exit 10222 10223# as_fn_unset VAR 10224# --------------- 10225# Portably unset VAR. 10226as_fn_unset () 10227{ 10228 { eval $1=; unset $1;} 10229} 10230as_unset=as_fn_unset 10231# as_fn_append VAR VALUE 10232# ---------------------- 10233# Append the text in VALUE to the end of the definition contained in VAR. Take 10234# advantage of any shell optimizations that allow amortized linear growth over 10235# repeated appends, instead of the typical quadratic growth present in naive 10236# implementations. 10237if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10238 eval 'as_fn_append () 10239 { 10240 eval $1+=\$2 10241 }' 10242else 10243 as_fn_append () 10244 { 10245 eval $1=\$$1\$2 10246 } 10247fi # as_fn_append 10248 10249# as_fn_arith ARG... 10250# ------------------ 10251# Perform arithmetic evaluation on the ARGs, and store the result in the 10252# global $as_val. Take advantage of shells that can avoid forks. The arguments 10253# must be portable across $(()) and expr. 10254if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10255 eval 'as_fn_arith () 10256 { 10257 as_val=$(( $* )) 10258 }' 10259else 10260 as_fn_arith () 10261 { 10262 as_val=`expr "$@" || test $? -eq 1` 10263 } 10264fi # as_fn_arith 10265 10266 10267if expr a : '\(a\)' >/dev/null 2>&1 && 10268 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10269 as_expr=expr 10270else 10271 as_expr=false 10272fi 10273 10274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10275 as_basename=basename 10276else 10277 as_basename=false 10278fi 10279 10280if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10281 as_dirname=dirname 10282else 10283 as_dirname=false 10284fi 10285 10286as_me=`$as_basename -- "$0" || 10287$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10288 X"$0" : 'X\(//\)$' \| \ 10289 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10290$as_echo X/"$0" | 10291 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10292 s//\1/ 10293 q 10294 } 10295 /^X\/\(\/\/\)$/{ 10296 s//\1/ 10297 q 10298 } 10299 /^X\/\(\/\).*/{ 10300 s//\1/ 10301 q 10302 } 10303 s/.*/./; q'` 10304 10305# Avoid depending upon Character Ranges. 10306as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10307as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10308as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10309as_cr_digits='0123456789' 10310as_cr_alnum=$as_cr_Letters$as_cr_digits 10311 10312ECHO_C= ECHO_N= ECHO_T= 10313case `echo -n x` in #((((( 10314-n*) 10315 case `echo 'xy\c'` in 10316 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10317 xy) ECHO_C='\c';; 10318 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10319 ECHO_T=' ';; 10320 esac;; 10321*) 10322 ECHO_N='-n';; 10323esac 10324 10325rm -f conf$$ conf$$.exe conf$$.file 10326if test -d conf$$.dir; then 10327 rm -f conf$$.dir/conf$$.file 10328else 10329 rm -f conf$$.dir 10330 mkdir conf$$.dir 2>/dev/null 10331fi 10332if (echo >conf$$.file) 2>/dev/null; then 10333 if ln -s conf$$.file conf$$ 2>/dev/null; then 10334 as_ln_s='ln -s' 10335 # ... but there are two gotchas: 10336 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10337 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10338 # In both cases, we have to default to `cp -pR'. 10339 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10340 as_ln_s='cp -pR' 10341 elif ln conf$$.file conf$$ 2>/dev/null; then 10342 as_ln_s=ln 10343 else 10344 as_ln_s='cp -pR' 10345 fi 10346else 10347 as_ln_s='cp -pR' 10348fi 10349rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10350rmdir conf$$.dir 2>/dev/null 10351 10352 10353# as_fn_mkdir_p 10354# ------------- 10355# Create "$as_dir" as a directory, including parents if necessary. 10356as_fn_mkdir_p () 10357{ 10358 10359 case $as_dir in #( 10360 -*) as_dir=./$as_dir;; 10361 esac 10362 test -d "$as_dir" || eval $as_mkdir_p || { 10363 as_dirs= 10364 while :; do 10365 case $as_dir in #( 10366 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10367 *) as_qdir=$as_dir;; 10368 esac 10369 as_dirs="'$as_qdir' $as_dirs" 10370 as_dir=`$as_dirname -- "$as_dir" || 10371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10372 X"$as_dir" : 'X\(//\)[^/]' \| \ 10373 X"$as_dir" : 'X\(//\)$' \| \ 10374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10375$as_echo X"$as_dir" | 10376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10377 s//\1/ 10378 q 10379 } 10380 /^X\(\/\/\)[^/].*/{ 10381 s//\1/ 10382 q 10383 } 10384 /^X\(\/\/\)$/{ 10385 s//\1/ 10386 q 10387 } 10388 /^X\(\/\).*/{ 10389 s//\1/ 10390 q 10391 } 10392 s/.*/./; q'` 10393 test -d "$as_dir" && break 10394 done 10395 test -z "$as_dirs" || eval "mkdir $as_dirs" 10396 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10397 10398 10399} # as_fn_mkdir_p 10400if mkdir -p . 2>/dev/null; then 10401 as_mkdir_p='mkdir -p "$as_dir"' 10402else 10403 test -d ./-p && rmdir ./-p 10404 as_mkdir_p=false 10405fi 10406 10407 10408# as_fn_executable_p FILE 10409# ----------------------- 10410# Test if FILE is an executable regular file. 10411as_fn_executable_p () 10412{ 10413 test -f "$1" && test -x "$1" 10414} # as_fn_executable_p 10415as_test_x='test -x' 10416as_executable_p=as_fn_executable_p 10417 10418# Sed expression to map a string onto a valid CPP name. 10419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10420 10421# Sed expression to map a string onto a valid variable name. 10422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10423 10424 10425exec 6>&1 10426## ----------------------------------- ## 10427## Main body of $CONFIG_STATUS script. ## 10428## ----------------------------------- ## 10429_ASEOF 10430test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10431 10432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10433# Save the log message, to keep $0 and so on meaningful, and to 10434# report actual input values of CONFIG_FILES etc. instead of their 10435# values after options handling. 10436ac_log=" 10437This file was extended by mosh $as_me 1.3.2, which was 10438generated by GNU Autoconf 2.69. Invocation command line was 10439 10440 CONFIG_FILES = $CONFIG_FILES 10441 CONFIG_HEADERS = $CONFIG_HEADERS 10442 CONFIG_LINKS = $CONFIG_LINKS 10443 CONFIG_COMMANDS = $CONFIG_COMMANDS 10444 $ $0 $@ 10445 10446on `(hostname || uname -n) 2>/dev/null | sed 1q` 10447" 10448 10449_ACEOF 10450 10451case $ac_config_files in *" 10452"*) set x $ac_config_files; shift; ac_config_files=$*;; 10453esac 10454 10455case $ac_config_headers in *" 10456"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10457esac 10458 10459 10460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10461# Files that config.status was made for. 10462config_files="$ac_config_files" 10463config_headers="$ac_config_headers" 10464config_commands="$ac_config_commands" 10465 10466_ACEOF 10467 10468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10469ac_cs_usage="\ 10470\`$as_me' instantiates files and other configuration actions 10471from templates according to the current configuration. Unless the files 10472and actions are specified as TAGs, all are instantiated by default. 10473 10474Usage: $0 [OPTION]... [TAG]... 10475 10476 -h, --help print this help, then exit 10477 -V, --version print version number and configuration settings, then exit 10478 --config print configuration, then exit 10479 -q, --quiet, --silent 10480 do not print progress messages 10481 -d, --debug don't remove temporary files 10482 --recheck update $as_me by reconfiguring in the same conditions 10483 --file=FILE[:TEMPLATE] 10484 instantiate the configuration file FILE 10485 --header=FILE[:TEMPLATE] 10486 instantiate the configuration header FILE 10487 10488Configuration files: 10489$config_files 10490 10491Configuration headers: 10492$config_headers 10493 10494Configuration commands: 10495$config_commands 10496 10497Report bugs to <mosh-devel@mit.edu>." 10498 10499_ACEOF 10500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10501ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10502ac_cs_version="\\ 10503mosh config.status 1.3.2 10504configured by $0, generated by GNU Autoconf 2.69, 10505 with options \\"\$ac_cs_config\\" 10506 10507Copyright (C) 2012 Free Software Foundation, Inc. 10508This config.status script is free software; the Free Software Foundation 10509gives unlimited permission to copy, distribute and modify it." 10510 10511ac_pwd='$ac_pwd' 10512srcdir='$srcdir' 10513INSTALL='$INSTALL' 10514MKDIR_P='$MKDIR_P' 10515AWK='$AWK' 10516test -n "\$AWK" || AWK=awk 10517_ACEOF 10518 10519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10520# The default lists apply if the user does not specify any file. 10521ac_need_defaults=: 10522while test $# != 0 10523do 10524 case $1 in 10525 --*=?*) 10526 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10527 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10528 ac_shift=: 10529 ;; 10530 --*=) 10531 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10532 ac_optarg= 10533 ac_shift=: 10534 ;; 10535 *) 10536 ac_option=$1 10537 ac_optarg=$2 10538 ac_shift=shift 10539 ;; 10540 esac 10541 10542 case $ac_option in 10543 # Handling of the options. 10544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10545 ac_cs_recheck=: ;; 10546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10547 $as_echo "$ac_cs_version"; exit ;; 10548 --config | --confi | --conf | --con | --co | --c ) 10549 $as_echo "$ac_cs_config"; exit ;; 10550 --debug | --debu | --deb | --de | --d | -d ) 10551 debug=: ;; 10552 --file | --fil | --fi | --f ) 10553 $ac_shift 10554 case $ac_optarg in 10555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10556 '') as_fn_error $? "missing file argument" ;; 10557 esac 10558 as_fn_append CONFIG_FILES " '$ac_optarg'" 10559 ac_need_defaults=false;; 10560 --header | --heade | --head | --hea ) 10561 $ac_shift 10562 case $ac_optarg in 10563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10564 esac 10565 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10566 ac_need_defaults=false;; 10567 --he | --h) 10568 # Conflict between --help and --header 10569 as_fn_error $? "ambiguous option: \`$1' 10570Try \`$0 --help' for more information.";; 10571 --help | --hel | -h ) 10572 $as_echo "$ac_cs_usage"; exit ;; 10573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10574 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10575 ac_cs_silent=: ;; 10576 10577 # This is an error. 10578 -*) as_fn_error $? "unrecognized option: \`$1' 10579Try \`$0 --help' for more information." ;; 10580 10581 *) as_fn_append ac_config_targets " $1" 10582 ac_need_defaults=false ;; 10583 10584 esac 10585 shift 10586done 10587 10588ac_configure_extra_args= 10589 10590if $ac_cs_silent; then 10591 exec 6>/dev/null 10592 ac_configure_extra_args="$ac_configure_extra_args --silent" 10593fi 10594 10595_ACEOF 10596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10597if \$ac_cs_recheck; then 10598 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10599 shift 10600 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10601 CONFIG_SHELL='$SHELL' 10602 export CONFIG_SHELL 10603 exec "\$@" 10604fi 10605 10606_ACEOF 10607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10608exec 5>>config.log 10609{ 10610 echo 10611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10612## Running $as_me. ## 10613_ASBOX 10614 $as_echo "$ac_log" 10615} >&5 10616 10617_ACEOF 10618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10619# 10620# INIT-COMMANDS 10621# 10622AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10623 10624_ACEOF 10625 10626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10627 10628# Handling of arguments. 10629for ac_config_target in $ac_config_targets 10630do 10631 case $ac_config_target in 10632 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10633 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 10634 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10635 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 10636 "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;; 10637 "src/frontend/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/Makefile" ;; 10638 "src/network/Makefile") CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;; 10639 "src/protobufs/Makefile") CONFIG_FILES="$CONFIG_FILES src/protobufs/Makefile" ;; 10640 "src/statesync/Makefile") CONFIG_FILES="$CONFIG_FILES src/statesync/Makefile" ;; 10641 "src/terminal/Makefile") CONFIG_FILES="$CONFIG_FILES src/terminal/Makefile" ;; 10642 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 10643 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 10644 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; 10645 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 10646 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 10647 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 10648 10649 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10650 esac 10651done 10652 10653 10654# If the user did not use the arguments to specify the items to instantiate, 10655# then the envvar interface is used. Set only those that are not. 10656# We use the long form for the default assignment because of an extremely 10657# bizarre bug on SunOS 4.1.3. 10658if $ac_need_defaults; then 10659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10662fi 10663 10664# Have a temporary directory for convenience. Make it in the build tree 10665# simply because there is no reason against having it here, and in addition, 10666# creating and moving files from /tmp can sometimes cause problems. 10667# Hook for its removal unless debugging. 10668# Note that there is a small window in which the directory will not be cleaned: 10669# after its creation but before its name has been assigned to `$tmp'. 10670$debug || 10671{ 10672 tmp= ac_tmp= 10673 trap 'exit_status=$? 10674 : "${ac_tmp:=$tmp}" 10675 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10676' 0 10677 trap 'as_fn_exit 1' 1 2 13 15 10678} 10679# Create a (secure) tmp directory for tmp files. 10680 10681{ 10682 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10683 test -d "$tmp" 10684} || 10685{ 10686 tmp=./conf$$-$RANDOM 10687 (umask 077 && mkdir "$tmp") 10688} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10689ac_tmp=$tmp 10690 10691# Set up the scripts for CONFIG_FILES section. 10692# No need to generate them if there are no CONFIG_FILES. 10693# This happens for instance with `./config.status config.h'. 10694if test -n "$CONFIG_FILES"; then 10695 10696 10697ac_cr=`echo X | tr X '\015'` 10698# On cygwin, bash can eat \r inside `` if the user requested igncr. 10699# But we know of no other shell where ac_cr would be empty at this 10700# point, so we can use a bashism as a fallback. 10701if test "x$ac_cr" = x; then 10702 eval ac_cr=\$\'\\r\' 10703fi 10704ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10705if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10706 ac_cs_awk_cr='\\r' 10707else 10708 ac_cs_awk_cr=$ac_cr 10709fi 10710 10711echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10712_ACEOF 10713 10714 10715{ 10716 echo "cat >conf$$subs.awk <<_ACEOF" && 10717 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10718 echo "_ACEOF" 10719} >conf$$subs.sh || 10720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10721ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10722ac_delim='%!_!# ' 10723for ac_last_try in false false false false false :; do 10724 . ./conf$$subs.sh || 10725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10726 10727 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10728 if test $ac_delim_n = $ac_delim_num; then 10729 break 10730 elif $ac_last_try; then 10731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10732 else 10733 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10734 fi 10735done 10736rm -f conf$$subs.sh 10737 10738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10739cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10740_ACEOF 10741sed -n ' 10742h 10743s/^/S["/; s/!.*/"]=/ 10744p 10745g 10746s/^[^!]*!// 10747:repl 10748t repl 10749s/'"$ac_delim"'$// 10750t delim 10751:nl 10752h 10753s/\(.\{148\}\)..*/\1/ 10754t more1 10755s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10756p 10757n 10758b repl 10759:more1 10760s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10761p 10762g 10763s/.\{148\}// 10764t nl 10765:delim 10766h 10767s/\(.\{148\}\)..*/\1/ 10768t more2 10769s/["\\]/\\&/g; s/^/"/; s/$/"/ 10770p 10771b 10772:more2 10773s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10774p 10775g 10776s/.\{148\}// 10777t delim 10778' <conf$$subs.awk | sed ' 10779/^[^""]/{ 10780 N 10781 s/\n// 10782} 10783' >>$CONFIG_STATUS || ac_write_fail=1 10784rm -f conf$$subs.awk 10785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10786_ACAWK 10787cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10788 for (key in S) S_is_set[key] = 1 10789 FS = "" 10790 10791} 10792{ 10793 line = $ 0 10794 nfields = split(line, field, "@") 10795 substed = 0 10796 len = length(field[1]) 10797 for (i = 2; i < nfields; i++) { 10798 key = field[i] 10799 keylen = length(key) 10800 if (S_is_set[key]) { 10801 value = S[key] 10802 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10803 len += length(value) + length(field[++i]) 10804 substed = 1 10805 } else 10806 len += 1 + keylen 10807 } 10808 10809 print line 10810} 10811 10812_ACAWK 10813_ACEOF 10814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10815if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10816 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10817else 10818 cat 10819fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10820 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10821_ACEOF 10822 10823# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10824# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10825# trailing colons and then remove the whole line if VPATH becomes empty 10826# (actually we leave an empty line to preserve line numbers). 10827if test "x$srcdir" = x.; then 10828 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10829h 10830s/// 10831s/^/:/ 10832s/[ ]*$/:/ 10833s/:\$(srcdir):/:/g 10834s/:\${srcdir}:/:/g 10835s/:@srcdir@:/:/g 10836s/^:*// 10837s/:*$// 10838x 10839s/\(=[ ]*\).*/\1/ 10840G 10841s/\n// 10842s/^[^=]*=[ ]*$// 10843}' 10844fi 10845 10846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10847fi # test -n "$CONFIG_FILES" 10848 10849# Set up the scripts for CONFIG_HEADERS section. 10850# No need to generate them if there are no CONFIG_HEADERS. 10851# This happens for instance with `./config.status Makefile'. 10852if test -n "$CONFIG_HEADERS"; then 10853cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10854BEGIN { 10855_ACEOF 10856 10857# Transform confdefs.h into an awk script `defines.awk', embedded as 10858# here-document in config.status, that substitutes the proper values into 10859# config.h.in to produce config.h. 10860 10861# Create a delimiter string that does not exist in confdefs.h, to ease 10862# handling of long lines. 10863ac_delim='%!_!# ' 10864for ac_last_try in false false :; do 10865 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10866 if test -z "$ac_tt"; then 10867 break 10868 elif $ac_last_try; then 10869 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10870 else 10871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10872 fi 10873done 10874 10875# For the awk script, D is an array of macro values keyed by name, 10876# likewise P contains macro parameters if any. Preserve backslash 10877# newline sequences. 10878 10879ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10880sed -n ' 10881s/.\{148\}/&'"$ac_delim"'/g 10882t rset 10883:rset 10884s/^[ ]*#[ ]*define[ ][ ]*/ / 10885t def 10886d 10887:def 10888s/\\$// 10889t bsnl 10890s/["\\]/\\&/g 10891s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10892D["\1"]=" \3"/p 10893s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10894d 10895:bsnl 10896s/["\\]/\\&/g 10897s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10898D["\1"]=" \3\\\\\\n"\\/p 10899t cont 10900s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10901t cont 10902d 10903:cont 10904n 10905s/.\{148\}/&'"$ac_delim"'/g 10906t clear 10907:clear 10908s/\\$// 10909t bsnlc 10910s/["\\]/\\&/g; s/^/"/; s/$/"/p 10911d 10912:bsnlc 10913s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10914b cont 10915' <confdefs.h | sed ' 10916s/'"$ac_delim"'/"\\\ 10917"/g' >>$CONFIG_STATUS || ac_write_fail=1 10918 10919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10920 for (key in D) D_is_set[key] = 1 10921 FS = "" 10922} 10923/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10924 line = \$ 0 10925 split(line, arg, " ") 10926 if (arg[1] == "#") { 10927 defundef = arg[2] 10928 mac1 = arg[3] 10929 } else { 10930 defundef = substr(arg[1], 2) 10931 mac1 = arg[2] 10932 } 10933 split(mac1, mac2, "(") #) 10934 macro = mac2[1] 10935 prefix = substr(line, 1, index(line, defundef) - 1) 10936 if (D_is_set[macro]) { 10937 # Preserve the white space surrounding the "#". 10938 print prefix "define", macro P[macro] D[macro] 10939 next 10940 } else { 10941 # Replace #undef with comments. This is necessary, for example, 10942 # in the case of _POSIX_SOURCE, which is predefined and required 10943 # on some systems where configure will not decide to define it. 10944 if (defundef == "undef") { 10945 print "/*", prefix defundef, macro, "*/" 10946 next 10947 } 10948 } 10949} 10950{ print } 10951_ACAWK 10952_ACEOF 10953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10954 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10955fi # test -n "$CONFIG_HEADERS" 10956 10957 10958eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10959shift 10960for ac_tag 10961do 10962 case $ac_tag in 10963 :[FHLC]) ac_mode=$ac_tag; continue;; 10964 esac 10965 case $ac_mode$ac_tag in 10966 :[FHL]*:*);; 10967 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10968 :[FH]-) ac_tag=-:-;; 10969 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10970 esac 10971 ac_save_IFS=$IFS 10972 IFS=: 10973 set x $ac_tag 10974 IFS=$ac_save_IFS 10975 shift 10976 ac_file=$1 10977 shift 10978 10979 case $ac_mode in 10980 :L) ac_source=$1;; 10981 :[FH]) 10982 ac_file_inputs= 10983 for ac_f 10984 do 10985 case $ac_f in 10986 -) ac_f="$ac_tmp/stdin";; 10987 *) # Look for the file first in the build tree, then in the source tree 10988 # (if the path is not absolute). The absolute path cannot be DOS-style, 10989 # because $ac_f cannot contain `:'. 10990 test -f "$ac_f" || 10991 case $ac_f in 10992 [\\/$]*) false;; 10993 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10994 esac || 10995 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10996 esac 10997 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10998 as_fn_append ac_file_inputs " '$ac_f'" 10999 done 11000 11001 # Let's still pretend it is `configure' which instantiates (i.e., don't 11002 # use $as_me), people would be surprised to read: 11003 # /* config.h. Generated by config.status. */ 11004 configure_input='Generated from '` 11005 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11006 `' by configure.' 11007 if test x"$ac_file" != x-; then 11008 configure_input="$ac_file. $configure_input" 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11010$as_echo "$as_me: creating $ac_file" >&6;} 11011 fi 11012 # Neutralize special characters interpreted by sed in replacement strings. 11013 case $configure_input in #( 11014 *\&* | *\|* | *\\* ) 11015 ac_sed_conf_input=`$as_echo "$configure_input" | 11016 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11017 *) ac_sed_conf_input=$configure_input;; 11018 esac 11019 11020 case $ac_tag in 11021 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11023 esac 11024 ;; 11025 esac 11026 11027 ac_dir=`$as_dirname -- "$ac_file" || 11028$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11029 X"$ac_file" : 'X\(//\)[^/]' \| \ 11030 X"$ac_file" : 'X\(//\)$' \| \ 11031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11032$as_echo X"$ac_file" | 11033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11034 s//\1/ 11035 q 11036 } 11037 /^X\(\/\/\)[^/].*/{ 11038 s//\1/ 11039 q 11040 } 11041 /^X\(\/\/\)$/{ 11042 s//\1/ 11043 q 11044 } 11045 /^X\(\/\).*/{ 11046 s//\1/ 11047 q 11048 } 11049 s/.*/./; q'` 11050 as_dir="$ac_dir"; as_fn_mkdir_p 11051 ac_builddir=. 11052 11053case "$ac_dir" in 11054.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11055*) 11056 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11057 # A ".." for each directory in $ac_dir_suffix. 11058 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11059 case $ac_top_builddir_sub in 11060 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11061 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11062 esac ;; 11063esac 11064ac_abs_top_builddir=$ac_pwd 11065ac_abs_builddir=$ac_pwd$ac_dir_suffix 11066# for backward compatibility: 11067ac_top_builddir=$ac_top_build_prefix 11068 11069case $srcdir in 11070 .) # We are building in place. 11071 ac_srcdir=. 11072 ac_top_srcdir=$ac_top_builddir_sub 11073 ac_abs_top_srcdir=$ac_pwd ;; 11074 [\\/]* | ?:[\\/]* ) # Absolute name. 11075 ac_srcdir=$srcdir$ac_dir_suffix; 11076 ac_top_srcdir=$srcdir 11077 ac_abs_top_srcdir=$srcdir ;; 11078 *) # Relative name. 11079 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11080 ac_top_srcdir=$ac_top_build_prefix$srcdir 11081 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11082esac 11083ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11084 11085 11086 case $ac_mode in 11087 :F) 11088 # 11089 # CONFIG_FILE 11090 # 11091 11092 case $INSTALL in 11093 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11094 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11095 esac 11096 ac_MKDIR_P=$MKDIR_P 11097 case $MKDIR_P in 11098 [\\/$]* | ?:[\\/]* ) ;; 11099 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11100 esac 11101_ACEOF 11102 11103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11104# If the template does not know about datarootdir, expand it. 11105# FIXME: This hack should be removed a few years after 2.60. 11106ac_datarootdir_hack=; ac_datarootdir_seen= 11107ac_sed_dataroot=' 11108/datarootdir/ { 11109 p 11110 q 11111} 11112/@datadir@/p 11113/@docdir@/p 11114/@infodir@/p 11115/@localedir@/p 11116/@mandir@/p' 11117case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11118*datarootdir*) ac_datarootdir_seen=yes;; 11119*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11121$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11122_ACEOF 11123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11124 ac_datarootdir_hack=' 11125 s&@datadir@&$datadir&g 11126 s&@docdir@&$docdir&g 11127 s&@infodir@&$infodir&g 11128 s&@localedir@&$localedir&g 11129 s&@mandir@&$mandir&g 11130 s&\\\${datarootdir}&$datarootdir&g' ;; 11131esac 11132_ACEOF 11133 11134# Neutralize VPATH when `$srcdir' = `.'. 11135# Shell code in configure.ac might set extrasub. 11136# FIXME: do we really want to maintain this feature? 11137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11138ac_sed_extra="$ac_vpsub 11139$extrasub 11140_ACEOF 11141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11142:t 11143/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11144s|@configure_input@|$ac_sed_conf_input|;t t 11145s&@top_builddir@&$ac_top_builddir_sub&;t t 11146s&@top_build_prefix@&$ac_top_build_prefix&;t t 11147s&@srcdir@&$ac_srcdir&;t t 11148s&@abs_srcdir@&$ac_abs_srcdir&;t t 11149s&@top_srcdir@&$ac_top_srcdir&;t t 11150s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11151s&@builddir@&$ac_builddir&;t t 11152s&@abs_builddir@&$ac_abs_builddir&;t t 11153s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11154s&@INSTALL@&$ac_INSTALL&;t t 11155s&@MKDIR_P@&$ac_MKDIR_P&;t t 11156$ac_datarootdir_hack 11157" 11158eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11159 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11160 11161test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11162 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11163 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11164 "$ac_tmp/out"`; test -z "$ac_out"; } && 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11166which seems to be undefined. Please make sure it is defined" >&5 11167$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11168which seems to be undefined. Please make sure it is defined" >&2;} 11169 11170 rm -f "$ac_tmp/stdin" 11171 case $ac_file in 11172 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11173 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11174 esac \ 11175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11176 ;; 11177 :H) 11178 # 11179 # CONFIG_HEADER 11180 # 11181 if test x"$ac_file" != x-; then 11182 { 11183 $as_echo "/* $configure_input */" \ 11184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11185 } >"$ac_tmp/config.h" \ 11186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11187 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11189$as_echo "$as_me: $ac_file is unchanged" >&6;} 11190 else 11191 rm -f "$ac_file" 11192 mv "$ac_tmp/config.h" "$ac_file" \ 11193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11194 fi 11195 else 11196 $as_echo "/* $configure_input */" \ 11197 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11198 || as_fn_error $? "could not create -" "$LINENO" 5 11199 fi 11200# Compute "$ac_file"'s index in $config_headers. 11201_am_arg="$ac_file" 11202_am_stamp_count=1 11203for _am_header in $config_headers :; do 11204 case $_am_header in 11205 $_am_arg | $_am_arg:* ) 11206 break ;; 11207 * ) 11208 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11209 esac 11210done 11211echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11212$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11213 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11214 X"$_am_arg" : 'X\(//\)$' \| \ 11215 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11216$as_echo X"$_am_arg" | 11217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11218 s//\1/ 11219 q 11220 } 11221 /^X\(\/\/\)[^/].*/{ 11222 s//\1/ 11223 q 11224 } 11225 /^X\(\/\/\)$/{ 11226 s//\1/ 11227 q 11228 } 11229 /^X\(\/\).*/{ 11230 s//\1/ 11231 q 11232 } 11233 s/.*/./; q'`/stamp-h$_am_stamp_count 11234 ;; 11235 11236 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11237$as_echo "$as_me: executing $ac_file commands" >&6;} 11238 ;; 11239 esac 11240 11241 11242 case $ac_file$ac_mode in 11243 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11244 # Older Autoconf quotes --file arguments for eval, but not when files 11245 # are listed without --file. Let's play safe and only enable the eval 11246 # if we detect the quoting. 11247 case $CONFIG_FILES in 11248 *\'*) eval set x "$CONFIG_FILES" ;; 11249 *) set x $CONFIG_FILES ;; 11250 esac 11251 shift 11252 for mf 11253 do 11254 # Strip MF so we end up with the name of the file. 11255 mf=`echo "$mf" | sed -e 's/:.*$//'` 11256 # Check whether this is an Automake generated Makefile or not. 11257 # We used to match only the files named 'Makefile.in', but 11258 # some people rename them; so instead we look at the file content. 11259 # Grep'ing the first line is not enough: some people post-process 11260 # each Makefile.in and add a new line on top of each file to say so. 11261 # Grep'ing the whole file is not good either: AIX grep has a line 11262 # limit of 2048, but all sed's we know have understand at least 4000. 11263 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11264 dirpart=`$as_dirname -- "$mf" || 11265$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11266 X"$mf" : 'X\(//\)[^/]' \| \ 11267 X"$mf" : 'X\(//\)$' \| \ 11268 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11269$as_echo X"$mf" | 11270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11271 s//\1/ 11272 q 11273 } 11274 /^X\(\/\/\)[^/].*/{ 11275 s//\1/ 11276 q 11277 } 11278 /^X\(\/\/\)$/{ 11279 s//\1/ 11280 q 11281 } 11282 /^X\(\/\).*/{ 11283 s//\1/ 11284 q 11285 } 11286 s/.*/./; q'` 11287 else 11288 continue 11289 fi 11290 # Extract the definition of DEPDIR, am__include, and am__quote 11291 # from the Makefile without running 'make'. 11292 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11293 test -z "$DEPDIR" && continue 11294 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11295 test -z "$am__include" && continue 11296 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11297 # Find all dependency output files, they are included files with 11298 # $(DEPDIR) in their names. We invoke sed twice because it is the 11299 # simplest approach to changing $(DEPDIR) to its actual value in the 11300 # expansion. 11301 for file in `sed -n " 11302 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11303 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 11304 # Make sure the directory exists. 11305 test -f "$dirpart/$file" && continue 11306 fdir=`$as_dirname -- "$file" || 11307$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11308 X"$file" : 'X\(//\)[^/]' \| \ 11309 X"$file" : 'X\(//\)$' \| \ 11310 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11311$as_echo X"$file" | 11312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11313 s//\1/ 11314 q 11315 } 11316 /^X\(\/\/\)[^/].*/{ 11317 s//\1/ 11318 q 11319 } 11320 /^X\(\/\/\)$/{ 11321 s//\1/ 11322 q 11323 } 11324 /^X\(\/\).*/{ 11325 s//\1/ 11326 q 11327 } 11328 s/.*/./; q'` 11329 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11330 # echo "creating $dirpart/$file" 11331 echo '# dummy' > "$dirpart/$file" 11332 done 11333 done 11334} 11335 ;; 11336 11337 esac 11338done # for ac_tag 11339 11340 11341as_fn_exit 0 11342_ACEOF 11343ac_clean_files=$ac_clean_files_save 11344 11345test $ac_write_fail = 0 || 11346 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11347 11348 11349# configure is writing to config.log, and then calls config.status. 11350# config.status does its own redirection, appending to config.log. 11351# Unfortunately, on DOS this fails, as config.log is still kept open 11352# by configure, so config.status won't be able to write to it; its 11353# output is simply discarded. So we exec the FD to /dev/null, 11354# effectively closing config.log, so it can be properly (re)opened and 11355# appended to by config.status. When coming back to configure, we 11356# need to make the FD available again. 11357if test "$no_create" != yes; then 11358 ac_cs_success=: 11359 ac_config_status_args= 11360 test "$silent" = yes && 11361 ac_config_status_args="$ac_config_status_args --quiet" 11362 exec 5>/dev/null 11363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11364 exec 5>>config.log 11365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11366 # would make configure fail if this is the last instruction. 11367 $ac_cs_success || as_fn_exit 1 11368fi 11369if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11371$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11372fi 11373 11374 11375{ $as_echo "$as_me:${as_lineno-$LINENO}: === Configuration results ===" >&5 11376$as_echo "$as_me: === Configuration results ===" >&6;} 11377{ $as_echo "$as_me:${as_lineno-$LINENO}: Version: $PACKAGE_VERSION" >&5 11378$as_echo "$as_me: Version: $PACKAGE_VERSION" >&6;} 11379{ $as_echo "$as_me:${as_lineno-$LINENO}: c++ compiler: $CXX" >&5 11380$as_echo "$as_me: c++ compiler: $CXX" >&6;} 11381{ $as_echo "$as_me:${as_lineno-$LINENO}: Warning CXXFLAGS: $WARNING_CXXFLAGS" >&5 11382$as_echo "$as_me: Warning CXXFLAGS: $WARNING_CXXFLAGS" >&6;} 11383{ $as_echo "$as_me:${as_lineno-$LINENO}: Picky CXXFLAGS: $PICKY_CXXFLAGS" >&5 11384$as_echo "$as_me: Picky CXXFLAGS: $PICKY_CXXFLAGS" >&6;} 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: Harden CFLAGS: $HARDEN_CFLAGS" >&5 11386$as_echo "$as_me: Harden CFLAGS: $HARDEN_CFLAGS" >&6;} 11387{ $as_echo "$as_me:${as_lineno-$LINENO}: =============================" >&5 11388$as_echo "$as_me: =============================" >&6;} 11389