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