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