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