1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for stl_ext 1.0. 4# 5# Report bugs to <dmatthews@utexas.edu>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: dmatthews@utexas.edu about your system, including any 271$0: error possibly output before this message. Then install 272$0: a modern shell, or manually run the script under such a 273$0: 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='stl_ext' 582PACKAGE_TARNAME='aquarius' 583PACKAGE_VERSION='1.0' 584PACKAGE_STRING='stl_ext 1.0' 585PACKAGE_BUGREPORT='dmatthews@utexas.edu' 586PACKAGE_URL='http://www.github.com/devinamatthews/stl_ext' 587 588# Factoring default headers for most tests. 589ac_includes_default="\ 590#include <stdio.h> 591#ifdef HAVE_SYS_TYPES_H 592# include <sys/types.h> 593#endif 594#ifdef HAVE_SYS_STAT_H 595# include <sys/stat.h> 596#endif 597#ifdef STDC_HEADERS 598# include <stdlib.h> 599# include <stddef.h> 600#else 601# ifdef HAVE_STDLIB_H 602# include <stdlib.h> 603# endif 604#endif 605#ifdef HAVE_STRING_H 606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607# include <memory.h> 608# endif 609# include <string.h> 610#endif 611#ifdef HAVE_STRINGS_H 612# include <strings.h> 613#endif 614#ifdef HAVE_INTTYPES_H 615# include <inttypes.h> 616#endif 617#ifdef HAVE_STDINT_H 618# include <stdint.h> 619#endif 620#ifdef HAVE_UNISTD_H 621# include <unistd.h> 622#endif" 623 624ac_subst_vars='am__EXEEXT_FALSE 625am__EXEEXT_TRUE 626LTLIBOBJS 627LIBOBJS 628HAVE_GTEST_FALSE 629HAVE_GTEST_TRUE 630gtest_LIBS 631gtest_INCLUDES 632EGREP 633GREP 634CXXCPP 635HAVE_CXX11 636am__fastdepCXX_FALSE 637am__fastdepCXX_TRUE 638CXXDEPMODE 639am__nodep 640AMDEPBACKSLASH 641AMDEP_FALSE 642AMDEP_TRUE 643am__quote 644am__include 645DEPDIR 646OBJEXT 647EXEEXT 648ac_ct_CXX 649CPPFLAGS 650LDFLAGS 651CXXFLAGS 652CXX 653MAINT 654MAINTAINER_MODE_FALSE 655MAINTAINER_MODE_TRUE 656AM_BACKSLASH 657AM_DEFAULT_VERBOSITY 658AM_DEFAULT_V 659AM_V 660am__untar 661am__tar 662AMTAR 663am__leading_dot 664SET_MAKE 665AWK 666mkdir_p 667MKDIR_P 668INSTALL_STRIP_PROGRAM 669STRIP 670install_sh 671MAKEINFO 672AUTOHEADER 673AUTOMAKE 674AUTOCONF 675ACLOCAL 676VERSION 677PACKAGE 678CYGPATH_W 679am__isrc 680INSTALL_DATA 681INSTALL_SCRIPT 682INSTALL_PROGRAM 683target_alias 684host_alias 685build_alias 686LIBS 687ECHO_T 688ECHO_N 689ECHO_C 690DEFS 691mandir 692localedir 693libdir 694psdir 695pdfdir 696dvidir 697htmldir 698infodir 699docdir 700oldincludedir 701includedir 702localstatedir 703sharedstatedir 704sysconfdir 705datadir 706datarootdir 707libexecdir 708sbindir 709bindir 710program_transform_name 711prefix 712exec_prefix 713PACKAGE_URL 714PACKAGE_BUGREPORT 715PACKAGE_STRING 716PACKAGE_VERSION 717PACKAGE_TARNAME 718PACKAGE_NAME 719PATH_SEPARATOR 720SHELL' 721ac_subst_files='' 722ac_user_opts=' 723enable_option_checking 724enable_silent_rules 725enable_maintainer_mode 726enable_dependency_tracking 727with_gtest 728with_gtest_libs 729' 730 ac_precious_vars='build_alias 731host_alias 732target_alias 733CXX 734CXXFLAGS 735LDFLAGS 736LIBS 737CPPFLAGS 738CCC 739CXXCPP' 740 741 742# Initialize some variables set by options. 743ac_init_help= 744ac_init_version=false 745ac_unrecognized_opts= 746ac_unrecognized_sep= 747# The variables have the same names as the options, with 748# dashes changed to underlines. 749cache_file=/dev/null 750exec_prefix=NONE 751no_create= 752no_recursion= 753prefix=NONE 754program_prefix=NONE 755program_suffix=NONE 756program_transform_name=s,x,x, 757silent= 758site= 759srcdir= 760verbose= 761x_includes=NONE 762x_libraries=NONE 763 764# Installation directory options. 765# These are left unexpanded so users can "make install exec_prefix=/foo" 766# and all the variables that are supposed to be based on exec_prefix 767# by default will actually change. 768# Use braces instead of parens because sh, perl, etc. also accept them. 769# (The list follows the same order as the GNU Coding Standards.) 770bindir='${exec_prefix}/bin' 771sbindir='${exec_prefix}/sbin' 772libexecdir='${exec_prefix}/libexec' 773datarootdir='${prefix}/share' 774datadir='${datarootdir}' 775sysconfdir='${prefix}/etc' 776sharedstatedir='${prefix}/com' 777localstatedir='${prefix}/var' 778includedir='${prefix}/include' 779oldincludedir='/usr/include' 780docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 781infodir='${datarootdir}/info' 782htmldir='${docdir}' 783dvidir='${docdir}' 784pdfdir='${docdir}' 785psdir='${docdir}' 786libdir='${exec_prefix}/lib' 787localedir='${datarootdir}/locale' 788mandir='${datarootdir}/man' 789 790ac_prev= 791ac_dashdash= 792for ac_option 793do 794 # If the previous option needs an argument, assign it. 795 if test -n "$ac_prev"; then 796 eval $ac_prev=\$ac_option 797 ac_prev= 798 continue 799 fi 800 801 case $ac_option in 802 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 803 *=) ac_optarg= ;; 804 *) ac_optarg=yes ;; 805 esac 806 807 # Accept the important Cygnus configure options, so we can diagnose typos. 808 809 case $ac_dashdash$ac_option in 810 --) 811 ac_dashdash=yes ;; 812 813 -bindir | --bindir | --bindi | --bind | --bin | --bi) 814 ac_prev=bindir ;; 815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 816 bindir=$ac_optarg ;; 817 818 -build | --build | --buil | --bui | --bu) 819 ac_prev=build_alias ;; 820 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 821 build_alias=$ac_optarg ;; 822 823 -cache-file | --cache-file | --cache-fil | --cache-fi \ 824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 825 ac_prev=cache_file ;; 826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 828 cache_file=$ac_optarg ;; 829 830 --config-cache | -C) 831 cache_file=config.cache ;; 832 833 -datadir | --datadir | --datadi | --datad) 834 ac_prev=datadir ;; 835 -datadir=* | --datadir=* | --datadi=* | --datad=*) 836 datadir=$ac_optarg ;; 837 838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 839 | --dataroo | --dataro | --datar) 840 ac_prev=datarootdir ;; 841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 843 datarootdir=$ac_optarg ;; 844 845 -disable-* | --disable-*) 846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 847 # Reject names that are not valid shell variable names. 848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 849 as_fn_error $? "invalid feature name: $ac_useropt" 850 ac_useropt_orig=$ac_useropt 851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 852 case $ac_user_opts in 853 *" 854"enable_$ac_useropt" 855"*) ;; 856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 857 ac_unrecognized_sep=', ';; 858 esac 859 eval enable_$ac_useropt=no ;; 860 861 -docdir | --docdir | --docdi | --doc | --do) 862 ac_prev=docdir ;; 863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 864 docdir=$ac_optarg ;; 865 866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 867 ac_prev=dvidir ;; 868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 869 dvidir=$ac_optarg ;; 870 871 -enable-* | --enable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error $? "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=\$ac_optarg ;; 886 887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 889 | --exec | --exe | --ex) 890 ac_prev=exec_prefix ;; 891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 893 | --exec=* | --exe=* | --ex=*) 894 exec_prefix=$ac_optarg ;; 895 896 -gas | --gas | --ga | --g) 897 # Obsolete; use --with-gas. 898 with_gas=yes ;; 899 900 -help | --help | --hel | --he | -h) 901 ac_init_help=long ;; 902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 903 ac_init_help=recursive ;; 904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 905 ac_init_help=short ;; 906 907 -host | --host | --hos | --ho) 908 ac_prev=host_alias ;; 909 -host=* | --host=* | --hos=* | --ho=*) 910 host_alias=$ac_optarg ;; 911 912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 913 ac_prev=htmldir ;; 914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 915 | --ht=*) 916 htmldir=$ac_optarg ;; 917 918 -includedir | --includedir | --includedi | --included | --include \ 919 | --includ | --inclu | --incl | --inc) 920 ac_prev=includedir ;; 921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 922 | --includ=* | --inclu=* | --incl=* | --inc=*) 923 includedir=$ac_optarg ;; 924 925 -infodir | --infodir | --infodi | --infod | --info | --inf) 926 ac_prev=infodir ;; 927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 928 infodir=$ac_optarg ;; 929 930 -libdir | --libdir | --libdi | --libd) 931 ac_prev=libdir ;; 932 -libdir=* | --libdir=* | --libdi=* | --libd=*) 933 libdir=$ac_optarg ;; 934 935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 936 | --libexe | --libex | --libe) 937 ac_prev=libexecdir ;; 938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 939 | --libexe=* | --libex=* | --libe=*) 940 libexecdir=$ac_optarg ;; 941 942 -localedir | --localedir | --localedi | --localed | --locale) 943 ac_prev=localedir ;; 944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 945 localedir=$ac_optarg ;; 946 947 -localstatedir | --localstatedir | --localstatedi | --localstated \ 948 | --localstate | --localstat | --localsta | --localst | --locals) 949 ac_prev=localstatedir ;; 950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 952 localstatedir=$ac_optarg ;; 953 954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 955 ac_prev=mandir ;; 956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 957 mandir=$ac_optarg ;; 958 959 -nfp | --nfp | --nf) 960 # Obsolete; use --without-fp. 961 with_fp=no ;; 962 963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 964 | --no-cr | --no-c | -n) 965 no_create=yes ;; 966 967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 969 no_recursion=yes ;; 970 971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 973 | --oldin | --oldi | --old | --ol | --o) 974 ac_prev=oldincludedir ;; 975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 978 oldincludedir=$ac_optarg ;; 979 980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 981 ac_prev=prefix ;; 982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 983 prefix=$ac_optarg ;; 984 985 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 986 | --program-pre | --program-pr | --program-p) 987 ac_prev=program_prefix ;; 988 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 990 program_prefix=$ac_optarg ;; 991 992 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 993 | --program-suf | --program-su | --program-s) 994 ac_prev=program_suffix ;; 995 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 997 program_suffix=$ac_optarg ;; 998 999 -program-transform-name | --program-transform-name \ 1000 | --program-transform-nam | --program-transform-na \ 1001 | --program-transform-n | --program-transform- \ 1002 | --program-transform | --program-transfor \ 1003 | --program-transfo | --program-transf \ 1004 | --program-trans | --program-tran \ 1005 | --progr-tra | --program-tr | --program-t) 1006 ac_prev=program_transform_name ;; 1007 -program-transform-name=* | --program-transform-name=* \ 1008 | --program-transform-nam=* | --program-transform-na=* \ 1009 | --program-transform-n=* | --program-transform-=* \ 1010 | --program-transform=* | --program-transfor=* \ 1011 | --program-transfo=* | --program-transf=* \ 1012 | --program-trans=* | --program-tran=* \ 1013 | --progr-tra=* | --program-tr=* | --program-t=*) 1014 program_transform_name=$ac_optarg ;; 1015 1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1017 ac_prev=pdfdir ;; 1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1019 pdfdir=$ac_optarg ;; 1020 1021 -psdir | --psdir | --psdi | --psd | --ps) 1022 ac_prev=psdir ;; 1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1024 psdir=$ac_optarg ;; 1025 1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1027 | -silent | --silent | --silen | --sile | --sil) 1028 silent=yes ;; 1029 1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1031 ac_prev=sbindir ;; 1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1033 | --sbi=* | --sb=*) 1034 sbindir=$ac_optarg ;; 1035 1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1038 | --sharedst | --shareds | --shared | --share | --shar \ 1039 | --sha | --sh) 1040 ac_prev=sharedstatedir ;; 1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1044 | --sha=* | --sh=*) 1045 sharedstatedir=$ac_optarg ;; 1046 1047 -site | --site | --sit) 1048 ac_prev=site ;; 1049 -site=* | --site=* | --sit=*) 1050 site=$ac_optarg ;; 1051 1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1053 ac_prev=srcdir ;; 1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1055 srcdir=$ac_optarg ;; 1056 1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1058 | --syscon | --sysco | --sysc | --sys | --sy) 1059 ac_prev=sysconfdir ;; 1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1062 sysconfdir=$ac_optarg ;; 1063 1064 -target | --target | --targe | --targ | --tar | --ta | --t) 1065 ac_prev=target_alias ;; 1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1067 target_alias=$ac_optarg ;; 1068 1069 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1070 verbose=yes ;; 1071 1072 -version | --version | --versio | --versi | --vers | -V) 1073 ac_init_version=: ;; 1074 1075 -with-* | --with-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 as_fn_error $? "invalid package name: $ac_useropt" 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084"with_$ac_useropt" 1085"*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval with_$ac_useropt=\$ac_optarg ;; 1090 1091 -without-* | --without-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 as_fn_error $? "invalid package name: $ac_useropt" 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"with_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval with_$ac_useropt=no ;; 1106 1107 --x) 1108 # Obsolete; use --with-x. 1109 with_x=yes ;; 1110 1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1112 | --x-incl | --x-inc | --x-in | --x-i) 1113 ac_prev=x_includes ;; 1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1116 x_includes=$ac_optarg ;; 1117 1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1120 ac_prev=x_libraries ;; 1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1123 x_libraries=$ac_optarg ;; 1124 1125 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1126Try \`$0 --help' for more information" 1127 ;; 1128 1129 *=*) 1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1131 # Reject names that are not valid shell variable names. 1132 case $ac_envvar in #( 1133 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1134 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1135 esac 1136 eval $ac_envvar=\$ac_optarg 1137 export $ac_envvar ;; 1138 1139 *) 1140 # FIXME: should be removed in autoconf 3.0. 1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1145 ;; 1146 1147 esac 1148done 1149 1150if test -n "$ac_prev"; then 1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1152 as_fn_error $? "missing argument to $ac_option" 1153fi 1154 1155if test -n "$ac_unrecognized_opts"; then 1156 case $enable_option_checking in 1157 no) ;; 1158 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1160 esac 1161fi 1162 1163# Check all directory arguments for consistency. 1164for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1165 datadir sysconfdir sharedstatedir localstatedir includedir \ 1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1167 libdir localedir mandir 1168do 1169 eval ac_val=\$$ac_var 1170 # Remove trailing slashes. 1171 case $ac_val in 1172 */ ) 1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1174 eval $ac_var=\$ac_val;; 1175 esac 1176 # Be sure to have absolute directory names. 1177 case $ac_val in 1178 [\\/$]* | ?:[\\/]* ) continue;; 1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1180 esac 1181 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1182done 1183 1184# There might be people who depend on the old broken behavior: `$host' 1185# used to hold the argument of --host etc. 1186# FIXME: To remove some day. 1187build=$build_alias 1188host=$host_alias 1189target=$target_alias 1190 1191# FIXME: To remove some day. 1192if test "x$host_alias" != x; then 1193 if test "x$build_alias" = x; then 1194 cross_compiling=maybe 1195 elif test "x$build_alias" != "x$host_alias"; then 1196 cross_compiling=yes 1197 fi 1198fi 1199 1200ac_tool_prefix= 1201test -n "$host_alias" && ac_tool_prefix=$host_alias- 1202 1203test "$silent" = yes && exec 6>/dev/null 1204 1205 1206ac_pwd=`pwd` && test -n "$ac_pwd" && 1207ac_ls_di=`ls -di .` && 1208ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1209 as_fn_error $? "working directory cannot be determined" 1210test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1211 as_fn_error $? "pwd does not report name of working directory" 1212 1213 1214# Find the source files, if location was not specified. 1215if test -z "$srcdir"; then 1216 ac_srcdir_defaulted=yes 1217 # Try the directory containing this script, then the parent directory. 1218 ac_confdir=`$as_dirname -- "$as_myself" || 1219$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1220 X"$as_myself" : 'X\(//\)[^/]' \| \ 1221 X"$as_myself" : 'X\(//\)$' \| \ 1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1223$as_echo X"$as_myself" | 1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1225 s//\1/ 1226 q 1227 } 1228 /^X\(\/\/\)[^/].*/{ 1229 s//\1/ 1230 q 1231 } 1232 /^X\(\/\/\)$/{ 1233 s//\1/ 1234 q 1235 } 1236 /^X\(\/\).*/{ 1237 s//\1/ 1238 q 1239 } 1240 s/.*/./; q'` 1241 srcdir=$ac_confdir 1242 if test ! -r "$srcdir/$ac_unique_file"; then 1243 srcdir=.. 1244 fi 1245else 1246 ac_srcdir_defaulted=no 1247fi 1248if test ! -r "$srcdir/$ac_unique_file"; then 1249 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1250 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1251fi 1252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1253ac_abs_confdir=`( 1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1255 pwd)` 1256# When building in place, set srcdir=. 1257if test "$ac_abs_confdir" = "$ac_pwd"; then 1258 srcdir=. 1259fi 1260# Remove unnecessary trailing slashes from srcdir. 1261# Double slashes in file names in object file debugging info 1262# mess up M-x gdb in Emacs. 1263case $srcdir in 1264*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1265esac 1266for ac_var in $ac_precious_vars; do 1267 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1268 eval ac_env_${ac_var}_value=\$${ac_var} 1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1270 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1271done 1272 1273# 1274# Report the --help message. 1275# 1276if test "$ac_init_help" = "long"; then 1277 # Omit some internal or obsolete options to make the list less imposing. 1278 # This message is too long to be a string in the A/UX 3.1 sh. 1279 cat <<_ACEOF 1280\`configure' configures stl_ext 1.0 to adapt to many kinds of systems. 1281 1282Usage: $0 [OPTION]... [VAR=VALUE]... 1283 1284To assign environment variables (e.g., CC, CFLAGS...), specify them as 1285VAR=VALUE. See below for descriptions of some of the useful variables. 1286 1287Defaults for the options are specified in brackets. 1288 1289Configuration: 1290 -h, --help display this help and exit 1291 --help=short display options specific to this package 1292 --help=recursive display the short help of all the included packages 1293 -V, --version display version information and exit 1294 -q, --quiet, --silent do not print \`checking ...' messages 1295 --cache-file=FILE cache test results in FILE [disabled] 1296 -C, --config-cache alias for \`--cache-file=config.cache' 1297 -n, --no-create do not create output files 1298 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1299 1300Installation directories: 1301 --prefix=PREFIX install architecture-independent files in PREFIX 1302 [$ac_default_prefix] 1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1304 [PREFIX] 1305 1306By default, \`make install' will install all the files in 1307\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1308an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1309for instance \`--prefix=\$HOME'. 1310 1311For better control, use the options below. 1312 1313Fine tuning of the installation directories: 1314 --bindir=DIR user executables [EPREFIX/bin] 1315 --sbindir=DIR system admin executables [EPREFIX/sbin] 1316 --libexecdir=DIR program executables [EPREFIX/libexec] 1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1320 --libdir=DIR object code libraries [EPREFIX/lib] 1321 --includedir=DIR C header files [PREFIX/include] 1322 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1325 --infodir=DIR info documentation [DATAROOTDIR/info] 1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1327 --mandir=DIR man documentation [DATAROOTDIR/man] 1328 --docdir=DIR documentation root [DATAROOTDIR/doc/aquarius] 1329 --htmldir=DIR html documentation [DOCDIR] 1330 --dvidir=DIR dvi documentation [DOCDIR] 1331 --pdfdir=DIR pdf documentation [DOCDIR] 1332 --psdir=DIR ps documentation [DOCDIR] 1333_ACEOF 1334 1335 cat <<\_ACEOF 1336 1337Program names: 1338 --program-prefix=PREFIX prepend PREFIX to installed program names 1339 --program-suffix=SUFFIX append SUFFIX to installed program names 1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1341_ACEOF 1342fi 1343 1344if test -n "$ac_init_help"; then 1345 case $ac_init_help in 1346 short | recursive ) echo "Configuration of stl_ext 1.0:";; 1347 esac 1348 cat <<\_ACEOF 1349 1350Optional Features: 1351 --disable-option-checking ignore unrecognized --enable/--with options 1352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1354 --enable-silent-rules less verbose build output (undo: "make V=1") 1355 --disable-silent-rules verbose build output (undo: "make V=0") 1356 --enable-maintainer-mode 1357 enable make rules and dependencies not useful (and 1358 sometimes confusing) to the casual installer 1359 --enable-dependency-tracking 1360 do not reject slow dependency extractors 1361 --disable-dependency-tracking 1362 speeds up one-time build 1363 1364Optional Packages: 1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1367 --with-gtest=<dir> Specify the location of GTest. 1368 --with-gtest-libs=<...> Specify the libraries to link for GTest. 1369 1370Some influential environment variables: 1371 CXX C++ compiler command 1372 CXXFLAGS C++ compiler flags 1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1374 nonstandard directory <lib dir> 1375 LIBS libraries to pass to the linker, e.g. -l<library> 1376 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1377 you have headers in a nonstandard directory <include dir> 1378 CXXCPP C++ preprocessor 1379 1380Use these variables to override the choices made by `configure' or to help 1381it to find libraries and programs with nonstandard names/locations. 1382 1383Report bugs to <dmatthews@utexas.edu>. 1384stl_ext home page: <http://www.github.com/devinamatthews/stl_ext>. 1385_ACEOF 1386ac_status=$? 1387fi 1388 1389if test "$ac_init_help" = "recursive"; then 1390 # If there are subdirs, report their specific --help. 1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1392 test -d "$ac_dir" || 1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1394 continue 1395 ac_builddir=. 1396 1397case "$ac_dir" in 1398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1399*) 1400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1401 # A ".." for each directory in $ac_dir_suffix. 1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1403 case $ac_top_builddir_sub in 1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1406 esac ;; 1407esac 1408ac_abs_top_builddir=$ac_pwd 1409ac_abs_builddir=$ac_pwd$ac_dir_suffix 1410# for backward compatibility: 1411ac_top_builddir=$ac_top_build_prefix 1412 1413case $srcdir in 1414 .) # We are building in place. 1415 ac_srcdir=. 1416 ac_top_srcdir=$ac_top_builddir_sub 1417 ac_abs_top_srcdir=$ac_pwd ;; 1418 [\\/]* | ?:[\\/]* ) # Absolute name. 1419 ac_srcdir=$srcdir$ac_dir_suffix; 1420 ac_top_srcdir=$srcdir 1421 ac_abs_top_srcdir=$srcdir ;; 1422 *) # Relative name. 1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1424 ac_top_srcdir=$ac_top_build_prefix$srcdir 1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1426esac 1427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1428 1429 cd "$ac_dir" || { ac_status=$?; continue; } 1430 # Check for guested configure. 1431 if test -f "$ac_srcdir/configure.gnu"; then 1432 echo && 1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1434 elif test -f "$ac_srcdir/configure"; then 1435 echo && 1436 $SHELL "$ac_srcdir/configure" --help=recursive 1437 else 1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1439 fi || ac_status=$? 1440 cd "$ac_pwd" || { ac_status=$?; break; } 1441 done 1442fi 1443 1444test -n "$ac_init_help" && exit $ac_status 1445if $ac_init_version; then 1446 cat <<\_ACEOF 1447stl_ext configure 1.0 1448generated by GNU Autoconf 2.69 1449 1450Copyright (C) 2012 Free Software Foundation, Inc. 1451This configure script is free software; the Free Software Foundation 1452gives unlimited permission to copy, distribute and modify it. 1453_ACEOF 1454 exit 1455fi 1456 1457## ------------------------ ## 1458## Autoconf initialization. ## 1459## ------------------------ ## 1460 1461# ac_fn_cxx_try_compile LINENO 1462# ---------------------------- 1463# Try to compile conftest.$ac_ext, and return whether this succeeded. 1464ac_fn_cxx_try_compile () 1465{ 1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1467 rm -f conftest.$ac_objext 1468 if { { ac_try="$ac_compile" 1469case "(($ac_try" in 1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1471 *) ac_try_echo=$ac_try;; 1472esac 1473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1474$as_echo "$ac_try_echo"; } >&5 1475 (eval "$ac_compile") 2>conftest.err 1476 ac_status=$? 1477 if test -s conftest.err; then 1478 grep -v '^ *+' conftest.err >conftest.er1 1479 cat conftest.er1 >&5 1480 mv -f conftest.er1 conftest.err 1481 fi 1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1483 test $ac_status = 0; } && { 1484 test -z "$ac_cxx_werror_flag" || 1485 test ! -s conftest.err 1486 } && test -s conftest.$ac_objext; then : 1487 ac_retval=0 1488else 1489 $as_echo "$as_me: failed program was:" >&5 1490sed 's/^/| /' conftest.$ac_ext >&5 1491 1492 ac_retval=1 1493fi 1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1495 as_fn_set_status $ac_retval 1496 1497} # ac_fn_cxx_try_compile 1498 1499# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1500# --------------------------------------------------------- 1501# Tests whether HEADER exists and can be compiled using the include files in 1502# INCLUDES, setting the cache variable VAR accordingly. 1503ac_fn_cxx_check_header_compile () 1504{ 1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1507$as_echo_n "checking for $2... " >&6; } 1508if eval \${$3+:} false; then : 1509 $as_echo_n "(cached) " >&6 1510else 1511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1512/* end confdefs.h. */ 1513$4 1514#include <$2> 1515_ACEOF 1516if ac_fn_cxx_try_compile "$LINENO"; then : 1517 eval "$3=yes" 1518else 1519 eval "$3=no" 1520fi 1521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1522fi 1523eval ac_res=\$$3 1524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1525$as_echo "$ac_res" >&6; } 1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1527 1528} # ac_fn_cxx_check_header_compile 1529 1530# ac_fn_cxx_try_cpp LINENO 1531# ------------------------ 1532# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1533ac_fn_cxx_try_cpp () 1534{ 1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1536 if { { ac_try="$ac_cpp conftest.$ac_ext" 1537case "(($ac_try" in 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1539 *) ac_try_echo=$ac_try;; 1540esac 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1542$as_echo "$ac_try_echo"; } >&5 1543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1544 ac_status=$? 1545 if test -s conftest.err; then 1546 grep -v '^ *+' conftest.err >conftest.er1 1547 cat conftest.er1 >&5 1548 mv -f conftest.er1 conftest.err 1549 fi 1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1551 test $ac_status = 0; } > conftest.i && { 1552 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1553 test ! -s conftest.err 1554 }; then : 1555 ac_retval=0 1556else 1557 $as_echo "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 1561fi 1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563 as_fn_set_status $ac_retval 1564 1565} # ac_fn_cxx_try_cpp 1566 1567# ac_fn_cxx_try_run LINENO 1568# ------------------------ 1569# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1570# that executables *can* be run. 1571ac_fn_cxx_try_run () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 if { { ac_try="$ac_link" 1575case "(($ac_try" in 1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1577 *) ac_try_echo=$ac_try;; 1578esac 1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1580$as_echo "$ac_try_echo"; } >&5 1581 (eval "$ac_link") 2>&5 1582 ac_status=$? 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1585 { { case "(($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_try") 2>&5 1592 ac_status=$? 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; }; }; then : 1595 ac_retval=0 1596else 1597 $as_echo "$as_me: program exited with status $ac_status" >&5 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=$ac_status 1602fi 1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_cxx_try_run 1608 1609# ac_fn_cxx_try_link LINENO 1610# ------------------------- 1611# Try to link conftest.$ac_ext, and return whether this succeeded. 1612ac_fn_cxx_try_link () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 rm -f conftest.$ac_objext conftest$ac_exeext 1616 if { { ac_try="$ac_link" 1617case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620esac 1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622$as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_link") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } && { 1632 test -z "$ac_cxx_werror_flag" || 1633 test ! -s conftest.err 1634 } && test -s conftest$ac_exeext && { 1635 test "$cross_compiling" = yes || 1636 test -x conftest$ac_exeext 1637 }; then : 1638 ac_retval=0 1639else 1640 $as_echo "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1647 # interfere with the next link command; also delete a directory that is 1648 # left behind by Apple's compiler. We do this before executing the actions. 1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_cxx_try_link 1654cat >config.log <<_ACEOF 1655This file contains any messages produced by compilers while 1656running configure, to aid debugging if configure makes a mistake. 1657 1658It was created by stl_ext $as_me 1.0, which was 1659generated by GNU Autoconf 2.69. Invocation command line was 1660 1661 $ $0 $@ 1662 1663_ACEOF 1664exec 5>>config.log 1665{ 1666cat <<_ASUNAME 1667## --------- ## 1668## Platform. ## 1669## --------- ## 1670 1671hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1672uname -m = `(uname -m) 2>/dev/null || echo unknown` 1673uname -r = `(uname -r) 2>/dev/null || echo unknown` 1674uname -s = `(uname -s) 2>/dev/null || echo unknown` 1675uname -v = `(uname -v) 2>/dev/null || echo unknown` 1676 1677/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1678/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1679 1680/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1681/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1682/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1683/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1684/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1685/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1686/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1687 1688_ASUNAME 1689 1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1691for as_dir in $PATH 1692do 1693 IFS=$as_save_IFS 1694 test -z "$as_dir" && as_dir=. 1695 $as_echo "PATH: $as_dir" 1696 done 1697IFS=$as_save_IFS 1698 1699} >&5 1700 1701cat >&5 <<_ACEOF 1702 1703 1704## ----------- ## 1705## Core tests. ## 1706## ----------- ## 1707 1708_ACEOF 1709 1710 1711# Keep a trace of the command line. 1712# Strip out --no-create and --no-recursion so they do not pile up. 1713# Strip out --silent because we don't want to record it for future runs. 1714# Also quote any args containing shell meta-characters. 1715# Make two passes to allow for proper duplicate-argument suppression. 1716ac_configure_args= 1717ac_configure_args0= 1718ac_configure_args1= 1719ac_must_keep_next=false 1720for ac_pass in 1 2 1721do 1722 for ac_arg 1723 do 1724 case $ac_arg in 1725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1727 | -silent | --silent | --silen | --sile | --sil) 1728 continue ;; 1729 *\'*) 1730 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1731 esac 1732 case $ac_pass in 1733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1734 2) 1735 as_fn_append ac_configure_args1 " '$ac_arg'" 1736 if test $ac_must_keep_next = true; then 1737 ac_must_keep_next=false # Got value, back to normal. 1738 else 1739 case $ac_arg in 1740 *=* | --config-cache | -C | -disable-* | --disable-* \ 1741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1743 | -with-* | --with-* | -without-* | --without-* | --x) 1744 case "$ac_configure_args0 " in 1745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1746 esac 1747 ;; 1748 -* ) ac_must_keep_next=true ;; 1749 esac 1750 fi 1751 as_fn_append ac_configure_args " '$ac_arg'" 1752 ;; 1753 esac 1754 done 1755done 1756{ ac_configure_args0=; unset ac_configure_args0;} 1757{ ac_configure_args1=; unset ac_configure_args1;} 1758 1759# When interrupted or exit'd, cleanup temporary files, and complete 1760# config.log. We remove comments because anyway the quotes in there 1761# would cause problems or look ugly. 1762# WARNING: Use '\'' to represent an apostrophe within the trap. 1763# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1764trap 'exit_status=$? 1765 # Save into config.log some information that might help in debugging. 1766 { 1767 echo 1768 1769 $as_echo "## ---------------- ## 1770## Cache variables. ## 1771## ---------------- ##" 1772 echo 1773 # The following way of writing the cache mishandles newlines in values, 1774( 1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1776 eval ac_val=\$$ac_var 1777 case $ac_val in #( 1778 *${as_nl}*) 1779 case $ac_var in #( 1780 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1781$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1782 esac 1783 case $ac_var in #( 1784 _ | IFS | as_nl) ;; #( 1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1786 *) { eval $ac_var=; unset $ac_var;} ;; 1787 esac ;; 1788 esac 1789 done 1790 (set) 2>&1 | 1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1792 *${as_nl}ac_space=\ *) 1793 sed -n \ 1794 "s/'\''/'\''\\\\'\'''\''/g; 1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1796 ;; #( 1797 *) 1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1799 ;; 1800 esac | 1801 sort 1802) 1803 echo 1804 1805 $as_echo "## ----------------- ## 1806## Output variables. ## 1807## ----------------- ##" 1808 echo 1809 for ac_var in $ac_subst_vars 1810 do 1811 eval ac_val=\$$ac_var 1812 case $ac_val in 1813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1814 esac 1815 $as_echo "$ac_var='\''$ac_val'\''" 1816 done | sort 1817 echo 1818 1819 if test -n "$ac_subst_files"; then 1820 $as_echo "## ------------------- ## 1821## File substitutions. ## 1822## ------------------- ##" 1823 echo 1824 for ac_var in $ac_subst_files 1825 do 1826 eval ac_val=\$$ac_var 1827 case $ac_val in 1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1829 esac 1830 $as_echo "$ac_var='\''$ac_val'\''" 1831 done | sort 1832 echo 1833 fi 1834 1835 if test -s confdefs.h; then 1836 $as_echo "## ----------- ## 1837## confdefs.h. ## 1838## ----------- ##" 1839 echo 1840 cat confdefs.h 1841 echo 1842 fi 1843 test "$ac_signal" != 0 && 1844 $as_echo "$as_me: caught signal $ac_signal" 1845 $as_echo "$as_me: exit $exit_status" 1846 } >&5 1847 rm -f core *.core core.conftest.* && 1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1849 exit $exit_status 1850' 0 1851for ac_signal in 1 2 13 15; do 1852 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1853done 1854ac_signal=0 1855 1856# confdefs.h avoids OS command line length limits that DEFS can exceed. 1857rm -f -r conftest* confdefs.h 1858 1859$as_echo "/* confdefs.h */" > confdefs.h 1860 1861# Predefined preprocessor variables. 1862 1863cat >>confdefs.h <<_ACEOF 1864#define PACKAGE_NAME "$PACKAGE_NAME" 1865_ACEOF 1866 1867cat >>confdefs.h <<_ACEOF 1868#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1869_ACEOF 1870 1871cat >>confdefs.h <<_ACEOF 1872#define PACKAGE_VERSION "$PACKAGE_VERSION" 1873_ACEOF 1874 1875cat >>confdefs.h <<_ACEOF 1876#define PACKAGE_STRING "$PACKAGE_STRING" 1877_ACEOF 1878 1879cat >>confdefs.h <<_ACEOF 1880#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1881_ACEOF 1882 1883cat >>confdefs.h <<_ACEOF 1884#define PACKAGE_URL "$PACKAGE_URL" 1885_ACEOF 1886 1887 1888# Let the site file select an alternate cache file if it wants to. 1889# Prefer an explicitly selected file to automatically selected ones. 1890ac_site_file1=NONE 1891ac_site_file2=NONE 1892if test -n "$CONFIG_SITE"; then 1893 # We do not want a PATH search for config.site. 1894 case $CONFIG_SITE in #(( 1895 -*) ac_site_file1=./$CONFIG_SITE;; 1896 */*) ac_site_file1=$CONFIG_SITE;; 1897 *) ac_site_file1=./$CONFIG_SITE;; 1898 esac 1899elif test "x$prefix" != xNONE; then 1900 ac_site_file1=$prefix/share/config.site 1901 ac_site_file2=$prefix/etc/config.site 1902else 1903 ac_site_file1=$ac_default_prefix/share/config.site 1904 ac_site_file2=$ac_default_prefix/etc/config.site 1905fi 1906for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1907do 1908 test "x$ac_site_file" = xNONE && continue 1909 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1911$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1912 sed 's/^/| /' "$ac_site_file" >&5 1913 . "$ac_site_file" \ 1914 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1916as_fn_error $? "failed to load site script $ac_site_file 1917See \`config.log' for more details" "$LINENO" 5; } 1918 fi 1919done 1920 1921if test -r "$cache_file"; then 1922 # Some versions of bash will fail to source /dev/null (special files 1923 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1924 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1926$as_echo "$as_me: loading cache $cache_file" >&6;} 1927 case $cache_file in 1928 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1929 *) . "./$cache_file";; 1930 esac 1931 fi 1932else 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1934$as_echo "$as_me: creating cache $cache_file" >&6;} 1935 >$cache_file 1936fi 1937 1938# Check that the precious variables saved in the cache have kept the same 1939# value. 1940ac_cache_corrupted=false 1941for ac_var in $ac_precious_vars; do 1942 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1943 eval ac_new_set=\$ac_env_${ac_var}_set 1944 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1945 eval ac_new_val=\$ac_env_${ac_var}_value 1946 case $ac_old_set,$ac_new_set in 1947 set,) 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1949$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1950 ac_cache_corrupted=: ;; 1951 ,set) 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1953$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1954 ac_cache_corrupted=: ;; 1955 ,);; 1956 *) 1957 if test "x$ac_old_val" != "x$ac_new_val"; then 1958 # differences in whitespace do not lead to failure. 1959 ac_old_val_w=`echo x $ac_old_val` 1960 ac_new_val_w=`echo x $ac_new_val` 1961 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1963$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1964 ac_cache_corrupted=: 1965 else 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1967$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1968 eval $ac_var=\$ac_old_val 1969 fi 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1971$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1973$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1974 fi;; 1975 esac 1976 # Pass precious variables to config.status. 1977 if test "$ac_new_set" = set; then 1978 case $ac_new_val in 1979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1980 *) ac_arg=$ac_var=$ac_new_val ;; 1981 esac 1982 case " $ac_configure_args " in 1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1984 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1985 esac 1986 fi 1987done 1988if $ac_cache_corrupted; then 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1992$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1993 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1994fi 1995## -------------------- ## 1996## Main body of script. ## 1997## -------------------- ## 1998 1999ac_ext=c 2000ac_cpp='$CPP $CPPFLAGS' 2001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2003ac_compiler_gnu=$ac_cv_c_compiler_gnu 2004 2005 2006am__api_version='1.15' 2007 2008ac_aux_dir= 2009for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2010 if test -f "$ac_dir/install-sh"; then 2011 ac_aux_dir=$ac_dir 2012 ac_install_sh="$ac_aux_dir/install-sh -c" 2013 break 2014 elif test -f "$ac_dir/install.sh"; then 2015 ac_aux_dir=$ac_dir 2016 ac_install_sh="$ac_aux_dir/install.sh -c" 2017 break 2018 elif test -f "$ac_dir/shtool"; then 2019 ac_aux_dir=$ac_dir 2020 ac_install_sh="$ac_aux_dir/shtool install -c" 2021 break 2022 fi 2023done 2024if test -z "$ac_aux_dir"; then 2025 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2026fi 2027 2028# These three variables are undocumented and unsupported, 2029# and are intended to be withdrawn in a future Autoconf release. 2030# They can cause serious problems if a builder's source tree is in a directory 2031# whose full name contains unusual characters. 2032ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2033ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2034ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2035 2036 2037# Find a good install program. We prefer a C program (faster), 2038# so one script is as good as another. But avoid the broken or 2039# incompatible versions: 2040# SysV /etc/install, /usr/sbin/install 2041# SunOS /usr/etc/install 2042# IRIX /sbin/install 2043# AIX /bin/install 2044# AmigaOS /C/install, which installs bootblocks on floppy discs 2045# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2046# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2047# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2048# OS/2's system install, which has a completely different semantic 2049# ./install, which can be erroneously created by make from ./install.sh. 2050# Reject install programs that cannot install multiple files. 2051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2052$as_echo_n "checking for a BSD-compatible install... " >&6; } 2053if test -z "$INSTALL"; then 2054if ${ac_cv_path_install+:} false; then : 2055 $as_echo_n "(cached) " >&6 2056else 2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2058for as_dir in $PATH 2059do 2060 IFS=$as_save_IFS 2061 test -z "$as_dir" && as_dir=. 2062 # Account for people who put trailing slashes in PATH elements. 2063case $as_dir/ in #(( 2064 ./ | .// | /[cC]/* | \ 2065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2066 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2067 /usr/ucb/* ) ;; 2068 *) 2069 # OSF1 and SCO ODT 3.0 have their own names for install. 2070 # Don't use installbsd from OSF since it installs stuff as root 2071 # by default. 2072 for ac_prog in ginstall scoinst install; do 2073 for ac_exec_ext in '' $ac_executable_extensions; do 2074 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2075 if test $ac_prog = install && 2076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2077 # AIX install. It has an incompatible calling convention. 2078 : 2079 elif test $ac_prog = install && 2080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2081 # program-specific install script used by HP pwplus--don't use. 2082 : 2083 else 2084 rm -rf conftest.one conftest.two conftest.dir 2085 echo one > conftest.one 2086 echo two > conftest.two 2087 mkdir conftest.dir 2088 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2089 test -s conftest.one && test -s conftest.two && 2090 test -s conftest.dir/conftest.one && 2091 test -s conftest.dir/conftest.two 2092 then 2093 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2094 break 3 2095 fi 2096 fi 2097 fi 2098 done 2099 done 2100 ;; 2101esac 2102 2103 done 2104IFS=$as_save_IFS 2105 2106rm -rf conftest.one conftest.two conftest.dir 2107 2108fi 2109 if test "${ac_cv_path_install+set}" = set; then 2110 INSTALL=$ac_cv_path_install 2111 else 2112 # As a last resort, use the slow shell script. Don't cache a 2113 # value for INSTALL within a source directory, because that will 2114 # break other packages using the cache if that directory is 2115 # removed, or if the value is a relative name. 2116 INSTALL=$ac_install_sh 2117 fi 2118fi 2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2120$as_echo "$INSTALL" >&6; } 2121 2122# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2123# It thinks the first close brace ends the variable substitution. 2124test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2125 2126test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2127 2128test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2129 2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2131$as_echo_n "checking whether build environment is sane... " >&6; } 2132# Reject unsafe characters in $srcdir or the absolute working directory 2133# name. Accept space and tab only in the latter. 2134am_lf=' 2135' 2136case `pwd` in 2137 *[\\\"\#\$\&\'\`$am_lf]*) 2138 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2139esac 2140case $srcdir in 2141 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2142 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2143esac 2144 2145# Do 'set' in a subshell so we don't clobber the current shell's 2146# arguments. Must try -L first in case configure is actually a 2147# symlink; some systems play weird games with the mod time of symlinks 2148# (eg FreeBSD returns the mod time of the symlink's containing 2149# directory). 2150if ( 2151 am_has_slept=no 2152 for am_try in 1 2; do 2153 echo "timestamp, slept: $am_has_slept" > conftest.file 2154 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2155 if test "$*" = "X"; then 2156 # -L didn't work. 2157 set X `ls -t "$srcdir/configure" conftest.file` 2158 fi 2159 if test "$*" != "X $srcdir/configure conftest.file" \ 2160 && test "$*" != "X conftest.file $srcdir/configure"; then 2161 2162 # If neither matched, then we have a broken ls. This can happen 2163 # if, for instance, CONFIG_SHELL is bash and it inherits a 2164 # broken ls alias from the environment. This has actually 2165 # happened. Such a system could not be considered "sane". 2166 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2167 alias in your environment" "$LINENO" 5 2168 fi 2169 if test "$2" = conftest.file || test $am_try -eq 2; then 2170 break 2171 fi 2172 # Just in case. 2173 sleep 1 2174 am_has_slept=yes 2175 done 2176 test "$2" = conftest.file 2177 ) 2178then 2179 # Ok. 2180 : 2181else 2182 as_fn_error $? "newly created file is older than distributed files! 2183Check your system clock" "$LINENO" 5 2184fi 2185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2186$as_echo "yes" >&6; } 2187# If we didn't sleep, we still need to ensure time stamps of config.status and 2188# generated files are strictly newer. 2189am_sleep_pid= 2190if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2191 ( sleep 1 ) & 2192 am_sleep_pid=$! 2193fi 2194 2195rm -f conftest.file 2196 2197test "$program_prefix" != NONE && 2198 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2199# Use a double $ so make ignores it. 2200test "$program_suffix" != NONE && 2201 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2202# Double any \ or $. 2203# By default was `s,x,x', remove it if useless. 2204ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2205program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2206 2207# Expand $ac_aux_dir to an absolute path. 2208am_aux_dir=`cd "$ac_aux_dir" && pwd` 2209 2210if test x"${MISSING+set}" != xset; then 2211 case $am_aux_dir in 2212 *\ * | *\ *) 2213 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2214 *) 2215 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2216 esac 2217fi 2218# Use eval to expand $SHELL 2219if eval "$MISSING --is-lightweight"; then 2220 am_missing_run="$MISSING " 2221else 2222 am_missing_run= 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2224$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2225fi 2226 2227if test x"${install_sh+set}" != xset; then 2228 case $am_aux_dir in 2229 *\ * | *\ *) 2230 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2231 *) 2232 install_sh="\${SHELL} $am_aux_dir/install-sh" 2233 esac 2234fi 2235 2236# Installed binaries are usually stripped using 'strip' when the user 2237# run "make install-strip". However 'strip' might not be the right 2238# tool to use in cross-compilation environments, therefore Automake 2239# will honor the 'STRIP' environment variable to overrule this program. 2240if test "$cross_compiling" != no; then 2241 if test -n "$ac_tool_prefix"; then 2242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2243set dummy ${ac_tool_prefix}strip; ac_word=$2 2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2245$as_echo_n "checking for $ac_word... " >&6; } 2246if ${ac_cv_prog_STRIP+:} false; then : 2247 $as_echo_n "(cached) " >&6 2248else 2249 if test -n "$STRIP"; then 2250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2251else 2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253for as_dir in $PATH 2254do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 for ac_exec_ext in '' $ac_executable_extensions; do 2258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2259 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2261 break 2 2262 fi 2263done 2264 done 2265IFS=$as_save_IFS 2266 2267fi 2268fi 2269STRIP=$ac_cv_prog_STRIP 2270if test -n "$STRIP"; then 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2272$as_echo "$STRIP" >&6; } 2273else 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2275$as_echo "no" >&6; } 2276fi 2277 2278 2279fi 2280if test -z "$ac_cv_prog_STRIP"; then 2281 ac_ct_STRIP=$STRIP 2282 # Extract the first word of "strip", so it can be a program name with args. 2283set dummy strip; ac_word=$2 2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2285$as_echo_n "checking for $ac_word... " >&6; } 2286if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2287 $as_echo_n "(cached) " >&6 2288else 2289 if test -n "$ac_ct_STRIP"; then 2290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2291else 2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2293for as_dir in $PATH 2294do 2295 IFS=$as_save_IFS 2296 test -z "$as_dir" && as_dir=. 2297 for ac_exec_ext in '' $ac_executable_extensions; do 2298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2299 ac_cv_prog_ac_ct_STRIP="strip" 2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2301 break 2 2302 fi 2303done 2304 done 2305IFS=$as_save_IFS 2306 2307fi 2308fi 2309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2310if test -n "$ac_ct_STRIP"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2312$as_echo "$ac_ct_STRIP" >&6; } 2313else 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2315$as_echo "no" >&6; } 2316fi 2317 2318 if test "x$ac_ct_STRIP" = x; then 2319 STRIP=":" 2320 else 2321 case $cross_compiling:$ac_tool_warned in 2322yes:) 2323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2325ac_tool_warned=yes ;; 2326esac 2327 STRIP=$ac_ct_STRIP 2328 fi 2329else 2330 STRIP="$ac_cv_prog_STRIP" 2331fi 2332 2333fi 2334INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2335 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2337$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2338if test -z "$MKDIR_P"; then 2339 if ${ac_cv_path_mkdir+:} false; then : 2340 $as_echo_n "(cached) " >&6 2341else 2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_prog in mkdir gmkdir; do 2348 for ac_exec_ext in '' $ac_executable_extensions; do 2349 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2350 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2351 'mkdir (GNU coreutils) '* | \ 2352 'mkdir (coreutils) '* | \ 2353 'mkdir (fileutils) '4.1*) 2354 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2355 break 3;; 2356 esac 2357 done 2358 done 2359 done 2360IFS=$as_save_IFS 2361 2362fi 2363 2364 test -d ./--version && rmdir ./--version 2365 if test "${ac_cv_path_mkdir+set}" = set; then 2366 MKDIR_P="$ac_cv_path_mkdir -p" 2367 else 2368 # As a last resort, use the slow shell script. Don't cache a 2369 # value for MKDIR_P within a source directory, because that will 2370 # break other packages using the cache if that directory is 2371 # removed, or if the value is a relative name. 2372 MKDIR_P="$ac_install_sh -d" 2373 fi 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2376$as_echo "$MKDIR_P" >&6; } 2377 2378for ac_prog in gawk mawk nawk awk 2379do 2380 # Extract the first word of "$ac_prog", so it can be a program name with args. 2381set dummy $ac_prog; ac_word=$2 2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2383$as_echo_n "checking for $ac_word... " >&6; } 2384if ${ac_cv_prog_AWK+:} false; then : 2385 $as_echo_n "(cached) " >&6 2386else 2387 if test -n "$AWK"; then 2388 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2389else 2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2391for as_dir in $PATH 2392do 2393 IFS=$as_save_IFS 2394 test -z "$as_dir" && as_dir=. 2395 for ac_exec_ext in '' $ac_executable_extensions; do 2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2397 ac_cv_prog_AWK="$ac_prog" 2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2399 break 2 2400 fi 2401done 2402 done 2403IFS=$as_save_IFS 2404 2405fi 2406fi 2407AWK=$ac_cv_prog_AWK 2408if test -n "$AWK"; then 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2410$as_echo "$AWK" >&6; } 2411else 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2413$as_echo "no" >&6; } 2414fi 2415 2416 2417 test -n "$AWK" && break 2418done 2419 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2421$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2422set x ${MAKE-make} 2423ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2424if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2425 $as_echo_n "(cached) " >&6 2426else 2427 cat >conftest.make <<\_ACEOF 2428SHELL = /bin/sh 2429all: 2430 @echo '@@@%%%=$(MAKE)=@@@%%%' 2431_ACEOF 2432# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2433case `${MAKE-make} -f conftest.make 2>/dev/null` in 2434 *@@@%%%=?*=@@@%%%*) 2435 eval ac_cv_prog_make_${ac_make}_set=yes;; 2436 *) 2437 eval ac_cv_prog_make_${ac_make}_set=no;; 2438esac 2439rm -f conftest.make 2440fi 2441if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2443$as_echo "yes" >&6; } 2444 SET_MAKE= 2445else 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2447$as_echo "no" >&6; } 2448 SET_MAKE="MAKE=${MAKE-make}" 2449fi 2450 2451rm -rf .tst 2>/dev/null 2452mkdir .tst 2>/dev/null 2453if test -d .tst; then 2454 am__leading_dot=. 2455else 2456 am__leading_dot=_ 2457fi 2458rmdir .tst 2>/dev/null 2459 2460# Check whether --enable-silent-rules was given. 2461if test "${enable_silent_rules+set}" = set; then : 2462 enableval=$enable_silent_rules; 2463fi 2464 2465case $enable_silent_rules in # ((( 2466 yes) AM_DEFAULT_VERBOSITY=0;; 2467 no) AM_DEFAULT_VERBOSITY=1;; 2468 *) AM_DEFAULT_VERBOSITY=1;; 2469esac 2470am_make=${MAKE-make} 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2472$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2473if ${am_cv_make_support_nested_variables+:} false; then : 2474 $as_echo_n "(cached) " >&6 2475else 2476 if $as_echo 'TRUE=$(BAR$(V)) 2477BAR0=false 2478BAR1=true 2479V=1 2480am__doit: 2481 @$(TRUE) 2482.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2483 am_cv_make_support_nested_variables=yes 2484else 2485 am_cv_make_support_nested_variables=no 2486fi 2487fi 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2489$as_echo "$am_cv_make_support_nested_variables" >&6; } 2490if test $am_cv_make_support_nested_variables = yes; then 2491 AM_V='$(V)' 2492 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2493else 2494 AM_V=$AM_DEFAULT_VERBOSITY 2495 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2496fi 2497AM_BACKSLASH='\' 2498 2499if test "`cd $srcdir && pwd`" != "`pwd`"; then 2500 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2501 # is not polluted with repeated "-I." 2502 am__isrc=' -I$(srcdir)' 2503 # test to see if srcdir already configured 2504 if test -f $srcdir/config.status; then 2505 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2506 fi 2507fi 2508 2509# test whether we have cygpath 2510if test -z "$CYGPATH_W"; then 2511 if (cygpath --version) >/dev/null 2>/dev/null; then 2512 CYGPATH_W='cygpath -w' 2513 else 2514 CYGPATH_W=echo 2515 fi 2516fi 2517 2518 2519# Define the identity of the package. 2520 PACKAGE='aquarius' 2521 VERSION='1.0' 2522 2523 2524cat >>confdefs.h <<_ACEOF 2525#define PACKAGE "$PACKAGE" 2526_ACEOF 2527 2528 2529cat >>confdefs.h <<_ACEOF 2530#define VERSION "$VERSION" 2531_ACEOF 2532 2533# Some tools Automake needs. 2534 2535ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2536 2537 2538AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2539 2540 2541AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2542 2543 2544AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2545 2546 2547MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2548 2549# For better backward compatibility. To be removed once Automake 1.9.x 2550# dies out for good. For more background, see: 2551# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2552# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2553mkdir_p='$(MKDIR_P)' 2554 2555# We need awk for the "check" target (and possibly the TAP driver). The 2556# system "awk" is bad on some platforms. 2557# Always define AMTAR for backward compatibility. Yes, it's still used 2558# in the wild :-( We should find a proper way to deprecate it ... 2559AMTAR='$${TAR-tar}' 2560 2561 2562# We'll loop over all known methods to create a tar archive until one works. 2563_am_tools='gnutar pax cpio none' 2564 2565am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2566 2567 2568 2569 2570 2571 2572# POSIX will say in a future version that running "rm -f" with no argument 2573# is OK; and we want to be able to make that assumption in our Makefile 2574# recipes. So use an aggressive probe to check that the usage we want is 2575# actually supported "in the wild" to an acceptable degree. 2576# See automake bug#10828. 2577# To make any issue more visible, cause the running configure to be aborted 2578# by default if the 'rm' program in use doesn't match our expectations; the 2579# user can still override this though. 2580if rm -f && rm -fr && rm -rf; then : OK; else 2581 cat >&2 <<'END' 2582Oops! 2583 2584Your 'rm' program seems unable to run without file operands specified 2585on the command line, even when the '-f' option is present. This is contrary 2586to the behaviour of most rm programs out there, and not conforming with 2587the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2588 2589Please tell bug-automake@gnu.org about your system, including the value 2590of your $PATH and any error possibly output before this message. This 2591can help us improve future automake versions. 2592 2593END 2594 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2595 echo 'Configuration will proceed anyway, since you have set the' >&2 2596 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2597 echo >&2 2598 else 2599 cat >&2 <<'END' 2600Aborting the configuration process, to ensure you take notice of the issue. 2601 2602You can download and install GNU coreutils to get an 'rm' implementation 2603that behaves properly: <http://www.gnu.org/software/coreutils/>. 2604 2605If you want to complete the configuration process using your problematic 2606'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2607to "yes", and re-run configure. 2608 2609END 2610 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2611 fi 2612fi 2613 2614# Check whether --enable-silent-rules was given. 2615if test "${enable_silent_rules+set}" = set; then : 2616 enableval=$enable_silent_rules; 2617fi 2618 2619case $enable_silent_rules in # ((( 2620 yes) AM_DEFAULT_VERBOSITY=0;; 2621 no) AM_DEFAULT_VERBOSITY=1;; 2622 *) AM_DEFAULT_VERBOSITY=0;; 2623esac 2624am_make=${MAKE-make} 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2626$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2627if ${am_cv_make_support_nested_variables+:} false; then : 2628 $as_echo_n "(cached) " >&6 2629else 2630 if $as_echo 'TRUE=$(BAR$(V)) 2631BAR0=false 2632BAR1=true 2633V=1 2634am__doit: 2635 @$(TRUE) 2636.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2637 am_cv_make_support_nested_variables=yes 2638else 2639 am_cv_make_support_nested_variables=no 2640fi 2641fi 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2643$as_echo "$am_cv_make_support_nested_variables" >&6; } 2644if test $am_cv_make_support_nested_variables = yes; then 2645 AM_V='$(V)' 2646 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2647else 2648 AM_V=$AM_DEFAULT_VERBOSITY 2649 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2650fi 2651AM_BACKSLASH='\' 2652 2653 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2655$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2656 # Check whether --enable-maintainer-mode was given. 2657if test "${enable_maintainer_mode+set}" = set; then : 2658 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2659else 2660 USE_MAINTAINER_MODE=no 2661fi 2662 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2664$as_echo "$USE_MAINTAINER_MODE" >&6; } 2665 if test $USE_MAINTAINER_MODE = yes; then 2666 MAINTAINER_MODE_TRUE= 2667 MAINTAINER_MODE_FALSE='#' 2668else 2669 MAINTAINER_MODE_TRUE='#' 2670 MAINTAINER_MODE_FALSE= 2671fi 2672 2673 MAINT=$MAINTAINER_MODE_TRUE 2674 2675 2676 2677 2678 2679ac_config_headers="$ac_config_headers config.h" 2680 2681 2682 2683 2684ac_ext=cpp 2685ac_cpp='$CXXCPP $CPPFLAGS' 2686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2689if test -z "$CXX"; then 2690 if test -n "$CCC"; then 2691 CXX=$CCC 2692 else 2693 if test -n "$ac_tool_prefix"; then 2694 for ac_prog in g++ clang++ icpc 2695 do 2696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2699$as_echo_n "checking for $ac_word... " >&6; } 2700if ${ac_cv_prog_CXX+:} false; then : 2701 $as_echo_n "(cached) " >&6 2702else 2703 if test -n "$CXX"; then 2704 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2713 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718 done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723CXX=$ac_cv_prog_CXX 2724if test -n "$CXX"; then 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2726$as_echo "$CXX" >&6; } 2727else 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2729$as_echo "no" >&6; } 2730fi 2731 2732 2733 test -n "$CXX" && break 2734 done 2735fi 2736if test -z "$CXX"; then 2737 ac_ct_CXX=$CXX 2738 for ac_prog in g++ clang++ icpc 2739do 2740 # Extract the first word of "$ac_prog", so it can be a program name with args. 2741set dummy $ac_prog; ac_word=$2 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2743$as_echo_n "checking for $ac_word... " >&6; } 2744if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 if test -n "$ac_ct_CXX"; then 2748 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2749else 2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2751for as_dir in $PATH 2752do 2753 IFS=$as_save_IFS 2754 test -z "$as_dir" && as_dir=. 2755 for ac_exec_ext in '' $ac_executable_extensions; do 2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2757 ac_cv_prog_ac_ct_CXX="$ac_prog" 2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2759 break 2 2760 fi 2761done 2762 done 2763IFS=$as_save_IFS 2764 2765fi 2766fi 2767ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2768if test -n "$ac_ct_CXX"; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2770$as_echo "$ac_ct_CXX" >&6; } 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2773$as_echo "no" >&6; } 2774fi 2775 2776 2777 test -n "$ac_ct_CXX" && break 2778done 2779 2780 if test "x$ac_ct_CXX" = x; then 2781 CXX="g++" 2782 else 2783 case $cross_compiling:$ac_tool_warned in 2784yes:) 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2787ac_tool_warned=yes ;; 2788esac 2789 CXX=$ac_ct_CXX 2790 fi 2791fi 2792 2793 fi 2794fi 2795# Provide some information about the compiler. 2796$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2797set X $ac_compile 2798ac_compiler=$2 2799for ac_option in --version -v -V -qversion; do 2800 { { ac_try="$ac_compiler $ac_option >&5" 2801case "(($ac_try" in 2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2803 *) ac_try_echo=$ac_try;; 2804esac 2805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2806$as_echo "$ac_try_echo"; } >&5 2807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2808 ac_status=$? 2809 if test -s conftest.err; then 2810 sed '10a\ 2811... rest of stderr output deleted ... 2812 10q' conftest.err >conftest.er1 2813 cat conftest.er1 >&5 2814 fi 2815 rm -f conftest.er1 conftest.err 2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2817 test $ac_status = 0; } 2818done 2819 2820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2821/* end confdefs.h. */ 2822 2823int 2824main () 2825{ 2826 2827 ; 2828 return 0; 2829} 2830_ACEOF 2831ac_clean_files_save=$ac_clean_files 2832ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2833# Try to create an executable without -o first, disregard a.out. 2834# It will help us diagnose broken compilers, and finding out an intuition 2835# of exeext. 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2837$as_echo_n "checking whether the C++ compiler works... " >&6; } 2838ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2839 2840# The possible output files: 2841ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2842 2843ac_rmfiles= 2844for ac_file in $ac_files 2845do 2846 case $ac_file in 2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2848 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2849 esac 2850done 2851rm -f $ac_rmfiles 2852 2853if { { ac_try="$ac_link_default" 2854case "(($ac_try" in 2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2856 *) ac_try_echo=$ac_try;; 2857esac 2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2859$as_echo "$ac_try_echo"; } >&5 2860 (eval "$ac_link_default") 2>&5 2861 ac_status=$? 2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2863 test $ac_status = 0; }; then : 2864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2865# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2866# in a Makefile. We should not override ac_cv_exeext if it was cached, 2867# so that the user can short-circuit this test for compilers unknown to 2868# Autoconf. 2869for ac_file in $ac_files '' 2870do 2871 test -f "$ac_file" || continue 2872 case $ac_file in 2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2874 ;; 2875 [ab].out ) 2876 # We found the default executable, but exeext='' is most 2877 # certainly right. 2878 break;; 2879 *.* ) 2880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2881 then :; else 2882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2883 fi 2884 # We set ac_cv_exeext here because the later test for it is not 2885 # safe: cross compilers may not add the suffix if given an `-o' 2886 # argument, so we may need to know it at that point already. 2887 # Even if this section looks crufty: it has the advantage of 2888 # actually working. 2889 break;; 2890 * ) 2891 break;; 2892 esac 2893done 2894test "$ac_cv_exeext" = no && ac_cv_exeext= 2895 2896else 2897 ac_file='' 2898fi 2899if test -z "$ac_file"; then : 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2901$as_echo "no" >&6; } 2902$as_echo "$as_me: failed program was:" >&5 2903sed 's/^/| /' conftest.$ac_ext >&5 2904 2905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2907as_fn_error 77 "C++ compiler cannot create executables 2908See \`config.log' for more details" "$LINENO" 5; } 2909else 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2911$as_echo "yes" >&6; } 2912fi 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2914$as_echo_n "checking for C++ compiler default output file name... " >&6; } 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2916$as_echo "$ac_file" >&6; } 2917ac_exeext=$ac_cv_exeext 2918 2919rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2920ac_clean_files=$ac_clean_files_save 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2922$as_echo_n "checking for suffix of executables... " >&6; } 2923if { { ac_try="$ac_link" 2924case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927esac 2928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2929$as_echo "$ac_try_echo"; } >&5 2930 (eval "$ac_link") 2>&5 2931 ac_status=$? 2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2933 test $ac_status = 0; }; then : 2934 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2935# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2936# work properly (i.e., refer to `conftest.exe'), while it won't with 2937# `rm'. 2938for ac_file in conftest.exe conftest conftest.*; do 2939 test -f "$ac_file" || continue 2940 case $ac_file in 2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2943 break;; 2944 * ) break;; 2945 esac 2946done 2947else 2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2950as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2951See \`config.log' for more details" "$LINENO" 5; } 2952fi 2953rm -f conftest conftest$ac_cv_exeext 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2955$as_echo "$ac_cv_exeext" >&6; } 2956 2957rm -f conftest.$ac_ext 2958EXEEXT=$ac_cv_exeext 2959ac_exeext=$EXEEXT 2960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2961/* end confdefs.h. */ 2962#include <stdio.h> 2963int 2964main () 2965{ 2966FILE *f = fopen ("conftest.out", "w"); 2967 return ferror (f) || fclose (f) != 0; 2968 2969 ; 2970 return 0; 2971} 2972_ACEOF 2973ac_clean_files="$ac_clean_files conftest.out" 2974# Check that the compiler produces executables we can run. If not, either 2975# the compiler is broken, or we cross compile. 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2977$as_echo_n "checking whether we are cross compiling... " >&6; } 2978if test "$cross_compiling" != yes; then 2979 { { ac_try="$ac_link" 2980case "(($ac_try" in 2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2982 *) ac_try_echo=$ac_try;; 2983esac 2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2985$as_echo "$ac_try_echo"; } >&5 2986 (eval "$ac_link") 2>&5 2987 ac_status=$? 2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2989 test $ac_status = 0; } 2990 if { ac_try='./conftest$ac_cv_exeext' 2991 { { case "(($ac_try" in 2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2993 *) ac_try_echo=$ac_try;; 2994esac 2995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2996$as_echo "$ac_try_echo"; } >&5 2997 (eval "$ac_try") 2>&5 2998 ac_status=$? 2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3000 test $ac_status = 0; }; }; then 3001 cross_compiling=no 3002 else 3003 if test "$cross_compiling" = maybe; then 3004 cross_compiling=yes 3005 else 3006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3008as_fn_error $? "cannot run C++ compiled programs. 3009If you meant to cross compile, use \`--host'. 3010See \`config.log' for more details" "$LINENO" 5; } 3011 fi 3012 fi 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3015$as_echo "$cross_compiling" >&6; } 3016 3017rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3018ac_clean_files=$ac_clean_files_save 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3020$as_echo_n "checking for suffix of object files... " >&6; } 3021if ${ac_cv_objext+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.o conftest.obj 3036if { { ac_try="$ac_compile" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3042$as_echo "$ac_try_echo"; } >&5 3043 (eval "$ac_compile") 2>&5 3044 ac_status=$? 3045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3046 test $ac_status = 0; }; then : 3047 for ac_file in conftest.o conftest.obj conftest.*; do 3048 test -f "$ac_file" || continue; 3049 case $ac_file in 3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3052 break;; 3053 esac 3054done 3055else 3056 $as_echo "$as_me: failed program was:" >&5 3057sed 's/^/| /' conftest.$ac_ext >&5 3058 3059{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3061as_fn_error $? "cannot compute suffix of object files: cannot compile 3062See \`config.log' for more details" "$LINENO" 5; } 3063fi 3064rm -f conftest.$ac_cv_objext conftest.$ac_ext 3065fi 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3067$as_echo "$ac_cv_objext" >&6; } 3068OBJEXT=$ac_cv_objext 3069ac_objext=$OBJEXT 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3071$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3072if ${ac_cv_cxx_compiler_gnu+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3076/* end confdefs.h. */ 3077 3078int 3079main () 3080{ 3081#ifndef __GNUC__ 3082 choke me 3083#endif 3084 3085 ; 3086 return 0; 3087} 3088_ACEOF 3089if ac_fn_cxx_try_compile "$LINENO"; then : 3090 ac_compiler_gnu=yes 3091else 3092 ac_compiler_gnu=no 3093fi 3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3095ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3096 3097fi 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3099$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3100if test $ac_compiler_gnu = yes; then 3101 GXX=yes 3102else 3103 GXX= 3104fi 3105ac_test_CXXFLAGS=${CXXFLAGS+set} 3106ac_save_CXXFLAGS=$CXXFLAGS 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3108$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3109if ${ac_cv_prog_cxx_g+:} false; then : 3110 $as_echo_n "(cached) " >&6 3111else 3112 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3113 ac_cxx_werror_flag=yes 3114 ac_cv_prog_cxx_g=no 3115 CXXFLAGS="-g" 3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3117/* end confdefs.h. */ 3118 3119int 3120main () 3121{ 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127if ac_fn_cxx_try_compile "$LINENO"; then : 3128 ac_cv_prog_cxx_g=yes 3129else 3130 CXXFLAGS="" 3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3132/* end confdefs.h. */ 3133 3134int 3135main () 3136{ 3137 3138 ; 3139 return 0; 3140} 3141_ACEOF 3142if ac_fn_cxx_try_compile "$LINENO"; then : 3143 3144else 3145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3146 CXXFLAGS="-g" 3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3148/* end confdefs.h. */ 3149 3150int 3151main () 3152{ 3153 3154 ; 3155 return 0; 3156} 3157_ACEOF 3158if ac_fn_cxx_try_compile "$LINENO"; then : 3159 ac_cv_prog_cxx_g=yes 3160fi 3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3162fi 3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3164fi 3165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3166 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3167fi 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3169$as_echo "$ac_cv_prog_cxx_g" >&6; } 3170if test "$ac_test_CXXFLAGS" = set; then 3171 CXXFLAGS=$ac_save_CXXFLAGS 3172elif test $ac_cv_prog_cxx_g = yes; then 3173 if test "$GXX" = yes; then 3174 CXXFLAGS="-g -O2" 3175 else 3176 CXXFLAGS="-g" 3177 fi 3178else 3179 if test "$GXX" = yes; then 3180 CXXFLAGS="-O2" 3181 else 3182 CXXFLAGS= 3183 fi 3184fi 3185ac_ext=c 3186ac_cpp='$CPP $CPPFLAGS' 3187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3189ac_compiler_gnu=$ac_cv_c_compiler_gnu 3190DEPDIR="${am__leading_dot}deps" 3191 3192ac_config_commands="$ac_config_commands depfiles" 3193 3194 3195am_make=${MAKE-make} 3196cat > confinc << 'END' 3197am__doit: 3198 @echo this is the am__doit target 3199.PHONY: am__doit 3200END 3201# If we don't find an include directive, just comment out the code. 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3203$as_echo_n "checking for style of include used by $am_make... " >&6; } 3204am__include="#" 3205am__quote= 3206_am_result=none 3207# First try GNU make style include. 3208echo "include confinc" > confmf 3209# Ignore all kinds of additional output from 'make'. 3210case `$am_make -s -f confmf 2> /dev/null` in #( 3211*the\ am__doit\ target*) 3212 am__include=include 3213 am__quote= 3214 _am_result=GNU 3215 ;; 3216esac 3217# Now try BSD make style include. 3218if test "$am__include" = "#"; then 3219 echo '.include "confinc"' > confmf 3220 case `$am_make -s -f confmf 2> /dev/null` in #( 3221 *the\ am__doit\ target*) 3222 am__include=.include 3223 am__quote="\"" 3224 _am_result=BSD 3225 ;; 3226 esac 3227fi 3228 3229 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3231$as_echo "$_am_result" >&6; } 3232rm -f confinc confmf 3233 3234# Check whether --enable-dependency-tracking was given. 3235if test "${enable_dependency_tracking+set}" = set; then : 3236 enableval=$enable_dependency_tracking; 3237fi 3238 3239if test "x$enable_dependency_tracking" != xno; then 3240 am_depcomp="$ac_aux_dir/depcomp" 3241 AMDEPBACKSLASH='\' 3242 am__nodep='_no' 3243fi 3244 if test "x$enable_dependency_tracking" != xno; then 3245 AMDEP_TRUE= 3246 AMDEP_FALSE='#' 3247else 3248 AMDEP_TRUE='#' 3249 AMDEP_FALSE= 3250fi 3251 3252 3253 3254depcc="$CXX" am_compiler_list= 3255 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3257$as_echo_n "checking dependency style of $depcc... " >&6; } 3258if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3262 # We make a subdir and do the tests there. Otherwise we can end up 3263 # making bogus files that we don't know about and never remove. For 3264 # instance it was reported that on HP-UX the gcc test will end up 3265 # making a dummy file named 'D' -- because '-MD' means "put the output 3266 # in D". 3267 rm -rf conftest.dir 3268 mkdir conftest.dir 3269 # Copy depcomp to subdir because otherwise we won't find it if we're 3270 # using a relative directory. 3271 cp "$am_depcomp" conftest.dir 3272 cd conftest.dir 3273 # We will build objects and dependencies in a subdirectory because 3274 # it helps to detect inapplicable dependency modes. For instance 3275 # both Tru64's cc and ICC support -MD to output dependencies as a 3276 # side effect of compilation, but ICC will put the dependencies in 3277 # the current directory while Tru64 will put them in the object 3278 # directory. 3279 mkdir sub 3280 3281 am_cv_CXX_dependencies_compiler_type=none 3282 if test "$am_compiler_list" = ""; then 3283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3284 fi 3285 am__universal=false 3286 case " $depcc " in #( 3287 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3288 esac 3289 3290 for depmode in $am_compiler_list; do 3291 # Setup a source with many dependencies, because some compilers 3292 # like to wrap large dependency lists on column 80 (with \), and 3293 # we should not choose a depcomp mode which is confused by this. 3294 # 3295 # We need to recreate these files for each test, as the compiler may 3296 # overwrite some of them when testing with obscure command lines. 3297 # This happens at least with the AIX C compiler. 3298 : > sub/conftest.c 3299 for i in 1 2 3 4 5 6; do 3300 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3301 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3302 # Solaris 10 /bin/sh. 3303 echo '/* dummy */' > sub/conftst$i.h 3304 done 3305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3306 3307 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3308 # mode. It turns out that the SunPro C++ compiler does not properly 3309 # handle '-M -o', and we need to detect this. Also, some Intel 3310 # versions had trouble with output in subdirs. 3311 am__obj=sub/conftest.${OBJEXT-o} 3312 am__minus_obj="-o $am__obj" 3313 case $depmode in 3314 gcc) 3315 # This depmode causes a compiler race in universal mode. 3316 test "$am__universal" = false || continue 3317 ;; 3318 nosideeffect) 3319 # After this tag, mechanisms are not by side-effect, so they'll 3320 # only be used when explicitly requested. 3321 if test "x$enable_dependency_tracking" = xyes; then 3322 continue 3323 else 3324 break 3325 fi 3326 ;; 3327 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3328 # This compiler won't grok '-c -o', but also, the minuso test has 3329 # not run yet. These depmodes are late enough in the game, and 3330 # so weak that their functioning should not be impacted. 3331 am__obj=conftest.${OBJEXT-o} 3332 am__minus_obj= 3333 ;; 3334 none) break ;; 3335 esac 3336 if depmode=$depmode \ 3337 source=sub/conftest.c object=$am__obj \ 3338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3340 >/dev/null 2>conftest.err && 3341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3345 # icc doesn't choke on unknown options, it will just issue warnings 3346 # or remarks (even with -Werror). So we grep stderr for any message 3347 # that says an option was ignored or not supported. 3348 # When given -MP, icc 7.0 and 7.1 complain thusly: 3349 # icc: Command line warning: ignoring option '-M'; no argument required 3350 # The diagnosis changed in icc 8.0: 3351 # icc: Command line remark: option '-MP' not supported 3352 if (grep 'ignoring option' conftest.err || 3353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3354 am_cv_CXX_dependencies_compiler_type=$depmode 3355 break 3356 fi 3357 fi 3358 done 3359 3360 cd .. 3361 rm -rf conftest.dir 3362else 3363 am_cv_CXX_dependencies_compiler_type=none 3364fi 3365 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3368$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3369CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3370 3371 if 3372 test "x$enable_dependency_tracking" != xno \ 3373 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3374 am__fastdepCXX_TRUE= 3375 am__fastdepCXX_FALSE='#' 3376else 3377 am__fastdepCXX_TRUE='#' 3378 am__fastdepCXX_FALSE= 3379fi 3380 3381 3382 3383 ax_cxx_compile_cxx11_required=true 3384 ac_ext=cpp 3385ac_cpp='$CXXCPP $CPPFLAGS' 3386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3389 ac_success=no 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 3391$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 3392if ${ax_cv_cxx_compile_cxx11+:} false; then : 3393 $as_echo_n "(cached) " >&6 3394else 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397 3398 template <typename T> 3399 struct check 3400 { 3401 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 3402 }; 3403 3404 typedef check<check<bool>> right_angle_brackets; 3405 3406 int a; 3407 decltype(a) b; 3408 3409 typedef check<int> check_type; 3410 check_type c; 3411 check_type&& cr = static_cast<check_type&&>(c); 3412 3413 auto d = a; 3414 auto l = [](){}; 3415 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 3416 struct use_l { use_l() { l(); } }; 3417 3418 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 3419 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 3420 namespace test_template_alias_sfinae { 3421 struct foo {}; 3422 3423 template<typename T> 3424 using member = typename T::member_type; 3425 3426 template<typename T> 3427 void func(...) {} 3428 3429 template<typename T> 3430 void func(member<T>*) {} 3431 3432 void test(); 3433 3434 void test() { 3435 func<foo>(0); 3436 } 3437 } 3438 3439_ACEOF 3440if ac_fn_cxx_try_compile "$LINENO"; then : 3441 ax_cv_cxx_compile_cxx11=yes 3442else 3443 ax_cv_cxx_compile_cxx11=no 3444fi 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446fi 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 3448$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 3449 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 3450 ac_success=yes 3451 fi 3452 3453 3454 3455 if test x$ac_success = xno; then 3456 for switch in -std=c++11 -std=c++0x; do 3457 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 3459$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 3460if eval \${$cachevar+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 ac_save_CXXFLAGS="$CXXFLAGS" 3464 CXXFLAGS="$CXXFLAGS $switch" 3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467 3468 template <typename T> 3469 struct check 3470 { 3471 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 3472 }; 3473 3474 typedef check<check<bool>> right_angle_brackets; 3475 3476 int a; 3477 decltype(a) b; 3478 3479 typedef check<int> check_type; 3480 check_type c; 3481 check_type&& cr = static_cast<check_type&&>(c); 3482 3483 auto d = a; 3484 auto l = [](){}; 3485 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 3486 struct use_l { use_l() { l(); } }; 3487 3488 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 3489 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 3490 namespace test_template_alias_sfinae { 3491 struct foo {}; 3492 3493 template<typename T> 3494 using member = typename T::member_type; 3495 3496 template<typename T> 3497 void func(...) {} 3498 3499 template<typename T> 3500 void func(member<T>*) {} 3501 3502 void test(); 3503 3504 void test() { 3505 func<foo>(0); 3506 } 3507 } 3508 3509_ACEOF 3510if ac_fn_cxx_try_compile "$LINENO"; then : 3511 eval $cachevar=yes 3512else 3513 eval $cachevar=no 3514fi 3515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3516 CXXFLAGS="$ac_save_CXXFLAGS" 3517fi 3518eval ac_res=\$$cachevar 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3520$as_echo "$ac_res" >&6; } 3521 if eval test x\$$cachevar = xyes; then 3522 CXXFLAGS="$CXXFLAGS $switch" 3523 ac_success=yes 3524 break 3525 fi 3526 done 3527 fi 3528 ac_ext=c 3529ac_cpp='$CPP $CPPFLAGS' 3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3532ac_compiler_gnu=$ac_cv_c_compiler_gnu 3533 3534 if test x$ax_cxx_compile_cxx11_required = xtrue; then 3535 if test x$ac_success = xno; then 3536 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 3537 fi 3538 else 3539 if test x$ac_success = xno; then 3540 HAVE_CXX11=0 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 3542$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 3543 else 3544 HAVE_CXX11=1 3545 3546$as_echo "#define HAVE_CXX11 1" >>confdefs.h 3547 3548 fi 3549 3550 3551 fi 3552 3553ac_ext=cpp 3554ac_cpp='$CXXCPP $CPPFLAGS' 3555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3558 3559 3560# 3561# Configure Google Test 3562# 3563ac_ext=cpp 3564ac_cpp='$CXXCPP $CPPFLAGS' 3565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 3569$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 3570if test -z "$CXXCPP"; then 3571 if ${ac_cv_prog_CXXCPP+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 # Double quotes because CXXCPP needs to be expanded 3575 for CXXCPP in "$CXX -E" "/lib/cpp" 3576 do 3577 ac_preproc_ok=false 3578for ac_cxx_preproc_warn_flag in '' yes 3579do 3580 # Use a header file that comes with gcc, so configuring glibc 3581 # with a fresh cross-compiler works. 3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3583 # <limits.h> exists even on freestanding compilers. 3584 # On the NeXT, cc -E runs the code through the compiler's parser, 3585 # not just through cpp. "Syntax error" is here to catch this case. 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588#ifdef __STDC__ 3589# include <limits.h> 3590#else 3591# include <assert.h> 3592#endif 3593 Syntax error 3594_ACEOF 3595if ac_fn_cxx_try_cpp "$LINENO"; then : 3596 3597else 3598 # Broken: fails on valid input. 3599continue 3600fi 3601rm -f conftest.err conftest.i conftest.$ac_ext 3602 3603 # OK, works on sane cases. Now check whether nonexistent headers 3604 # can be detected and how. 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606/* end confdefs.h. */ 3607#include <ac_nonexistent.h> 3608_ACEOF 3609if ac_fn_cxx_try_cpp "$LINENO"; then : 3610 # Broken: success on invalid input. 3611continue 3612else 3613 # Passes both tests. 3614ac_preproc_ok=: 3615break 3616fi 3617rm -f conftest.err conftest.i conftest.$ac_ext 3618 3619done 3620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3621rm -f conftest.i conftest.err conftest.$ac_ext 3622if $ac_preproc_ok; then : 3623 break 3624fi 3625 3626 done 3627 ac_cv_prog_CXXCPP=$CXXCPP 3628 3629fi 3630 CXXCPP=$ac_cv_prog_CXXCPP 3631else 3632 ac_cv_prog_CXXCPP=$CXXCPP 3633fi 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 3635$as_echo "$CXXCPP" >&6; } 3636ac_preproc_ok=false 3637for ac_cxx_preproc_warn_flag in '' yes 3638do 3639 # Use a header file that comes with gcc, so configuring glibc 3640 # with a fresh cross-compiler works. 3641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3642 # <limits.h> exists even on freestanding compilers. 3643 # On the NeXT, cc -E runs the code through the compiler's parser, 3644 # not just through cpp. "Syntax error" is here to catch this case. 3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3646/* end confdefs.h. */ 3647#ifdef __STDC__ 3648# include <limits.h> 3649#else 3650# include <assert.h> 3651#endif 3652 Syntax error 3653_ACEOF 3654if ac_fn_cxx_try_cpp "$LINENO"; then : 3655 3656else 3657 # Broken: fails on valid input. 3658continue 3659fi 3660rm -f conftest.err conftest.i conftest.$ac_ext 3661 3662 # OK, works on sane cases. Now check whether nonexistent headers 3663 # can be detected and how. 3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665/* end confdefs.h. */ 3666#include <ac_nonexistent.h> 3667_ACEOF 3668if ac_fn_cxx_try_cpp "$LINENO"; then : 3669 # Broken: success on invalid input. 3670continue 3671else 3672 # Passes both tests. 3673ac_preproc_ok=: 3674break 3675fi 3676rm -f conftest.err conftest.i conftest.$ac_ext 3677 3678done 3679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3680rm -f conftest.i conftest.err conftest.$ac_ext 3681if $ac_preproc_ok; then : 3682 3683else 3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3686as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 3687See \`config.log' for more details" "$LINENO" 5; } 3688fi 3689 3690ac_ext=cpp 3691ac_cpp='$CXXCPP $CPPFLAGS' 3692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3695 3696 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3698$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3699if ${ac_cv_path_GREP+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701else 3702 if test -z "$GREP"; then 3703 ac_path_GREP_found=false 3704 # Loop through the user's path and test for each of PROGNAME-LIST 3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3707do 3708 IFS=$as_save_IFS 3709 test -z "$as_dir" && as_dir=. 3710 for ac_prog in grep ggrep; do 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3713 as_fn_executable_p "$ac_path_GREP" || continue 3714# Check for GNU ac_path_GREP and select it if it is found. 3715 # Check for GNU $ac_path_GREP 3716case `"$ac_path_GREP" --version 2>&1` in 3717*GNU*) 3718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3719*) 3720 ac_count=0 3721 $as_echo_n 0123456789 >"conftest.in" 3722 while : 3723 do 3724 cat "conftest.in" "conftest.in" >"conftest.tmp" 3725 mv "conftest.tmp" "conftest.in" 3726 cp "conftest.in" "conftest.nl" 3727 $as_echo 'GREP' >> "conftest.nl" 3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3730 as_fn_arith $ac_count + 1 && ac_count=$as_val 3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3732 # Best one so far, save it but keep looking for a better one 3733 ac_cv_path_GREP="$ac_path_GREP" 3734 ac_path_GREP_max=$ac_count 3735 fi 3736 # 10*(2^10) chars as input seems more than enough 3737 test $ac_count -gt 10 && break 3738 done 3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3740esac 3741 3742 $ac_path_GREP_found && break 3 3743 done 3744 done 3745 done 3746IFS=$as_save_IFS 3747 if test -z "$ac_cv_path_GREP"; then 3748 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3749 fi 3750else 3751 ac_cv_path_GREP=$GREP 3752fi 3753 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3756$as_echo "$ac_cv_path_GREP" >&6; } 3757 GREP="$ac_cv_path_GREP" 3758 3759 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3761$as_echo_n "checking for egrep... " >&6; } 3762if ${ac_cv_path_EGREP+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3766 then ac_cv_path_EGREP="$GREP -E" 3767 else 3768 if test -z "$EGREP"; then 3769 ac_path_EGREP_found=false 3770 # Loop through the user's path and test for each of PROGNAME-LIST 3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3773do 3774 IFS=$as_save_IFS 3775 test -z "$as_dir" && as_dir=. 3776 for ac_prog in egrep; do 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3779 as_fn_executable_p "$ac_path_EGREP" || continue 3780# Check for GNU ac_path_EGREP and select it if it is found. 3781 # Check for GNU $ac_path_EGREP 3782case `"$ac_path_EGREP" --version 2>&1` in 3783*GNU*) 3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3785*) 3786 ac_count=0 3787 $as_echo_n 0123456789 >"conftest.in" 3788 while : 3789 do 3790 cat "conftest.in" "conftest.in" >"conftest.tmp" 3791 mv "conftest.tmp" "conftest.in" 3792 cp "conftest.in" "conftest.nl" 3793 $as_echo 'EGREP' >> "conftest.nl" 3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3796 as_fn_arith $ac_count + 1 && ac_count=$as_val 3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3798 # Best one so far, save it but keep looking for a better one 3799 ac_cv_path_EGREP="$ac_path_EGREP" 3800 ac_path_EGREP_max=$ac_count 3801 fi 3802 # 10*(2^10) chars as input seems more than enough 3803 test $ac_count -gt 10 && break 3804 done 3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3806esac 3807 3808 $ac_path_EGREP_found && break 3 3809 done 3810 done 3811 done 3812IFS=$as_save_IFS 3813 if test -z "$ac_cv_path_EGREP"; then 3814 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3815 fi 3816else 3817 ac_cv_path_EGREP=$EGREP 3818fi 3819 3820 fi 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3823$as_echo "$ac_cv_path_EGREP" >&6; } 3824 EGREP="$ac_cv_path_EGREP" 3825 3826 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3828$as_echo_n "checking for ANSI C header files... " >&6; } 3829if ${ac_cv_header_stdc+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834#include <stdlib.h> 3835#include <stdarg.h> 3836#include <string.h> 3837#include <float.h> 3838 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847if ac_fn_cxx_try_compile "$LINENO"; then : 3848 ac_cv_header_stdc=yes 3849else 3850 ac_cv_header_stdc=no 3851fi 3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3853 3854if test $ac_cv_header_stdc = yes; then 3855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3857/* end confdefs.h. */ 3858#include <string.h> 3859 3860_ACEOF 3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3862 $EGREP "memchr" >/dev/null 2>&1; then : 3863 3864else 3865 ac_cv_header_stdc=no 3866fi 3867rm -f conftest* 3868 3869fi 3870 3871if test $ac_cv_header_stdc = yes; then 3872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875#include <stdlib.h> 3876 3877_ACEOF 3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3879 $EGREP "free" >/dev/null 2>&1; then : 3880 3881else 3882 ac_cv_header_stdc=no 3883fi 3884rm -f conftest* 3885 3886fi 3887 3888if test $ac_cv_header_stdc = yes; then 3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3890 if test "$cross_compiling" = yes; then : 3891 : 3892else 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3894/* end confdefs.h. */ 3895#include <ctype.h> 3896#include <stdlib.h> 3897#if ((' ' & 0x0FF) == 0x020) 3898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3900#else 3901# define ISLOWER(c) \ 3902 (('a' <= (c) && (c) <= 'i') \ 3903 || ('j' <= (c) && (c) <= 'r') \ 3904 || ('s' <= (c) && (c) <= 'z')) 3905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3906#endif 3907 3908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3909int 3910main () 3911{ 3912 int i; 3913 for (i = 0; i < 256; i++) 3914 if (XOR (islower (i), ISLOWER (i)) 3915 || toupper (i) != TOUPPER (i)) 3916 return 2; 3917 return 0; 3918} 3919_ACEOF 3920if ac_fn_cxx_try_run "$LINENO"; then : 3921 3922else 3923 ac_cv_header_stdc=no 3924fi 3925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3926 conftest.$ac_objext conftest.beam conftest.$ac_ext 3927fi 3928 3929fi 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3932$as_echo "$ac_cv_header_stdc" >&6; } 3933if test $ac_cv_header_stdc = yes; then 3934 3935$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3936 3937fi 3938 3939# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3940for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3941 inttypes.h stdint.h unistd.h 3942do : 3943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3944ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3945" 3946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3947 cat >>confdefs.h <<_ACEOF 3948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3949_ACEOF 3950 3951fi 3952 3953done 3954 3955 3956 3957 download=no 3958 downloaded=no 3959 3960# Check whether --with-gtest was given. 3961if test "${with_gtest+set}" = set; then : 3962 withval=$with_gtest; 3963else 3964 download=yes 3965fi 3966 3967 3968 libraries= 3969 3970# Check whether --with-gtest-libs was given. 3971if test "${with_gtest_libs+set}" = set; then : 3972 withval=$with_gtest_libs; 3973else 3974 libraries="-lgtest -lgtest_main -lpthread" 3975fi 3976 3977 if test x"$libraries" == x; then 3978 libraries=$with_gtest_libs 3979 fi 3980 3981 pkg_dir=$with_gtest 3982 if test x"$pkg_dir" = xno; then 3983 3984 include_package=no 3985 elif test x"$download" = xyes && test x"" = x; then 3986 include_package=no 3987 else 3988 if test x"$download" = xyes && test x"" != x; then 3989 pkg_dir=src/external/gtest 3990 if ! test -d $pkg_dir; then 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: downloading GTest from external Git repository..." >&5 3992$as_echo "$as_me: downloading GTest from external Git repository..." >&6;} 3993 if ! git clone -q $pkg_dir; then 3994 as_fn_error $? "could not download GTest repository" "$LINENO" 5 3995 fi 3996 fi 3997 if test -f $pkg_dir/configure; then 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring GTest in $pkg_dir" >&5 3999$as_echo "$as_me: configuring GTest in $pkg_dir" >&6;} 4000 ( cd $pkg_dir && ./configure ) 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: done configuring GTest" >&5 4002$as_echo "$as_me: done configuring GTest" >&6;} 4003 fi 4004 downloaded=yes 4005 fi 4006 4007 include_flags= 4008 for dir_path in include; do 4009 as_fn_append include_flags " -I$pkg_dir/$dir_path" 4010 done 4011 for header in gtest/gtest.h; do 4012 ac_save_CPPFLAGS="$CPPFLAGS" 4013 CPPFLAGS="$CPPFLAGS $include_flags" 4014 as_ac_Header=`$as_echo "ac_cv_header_$header" | $as_tr_sh` 4015ac_fn_cxx_check_header_compile "$LINENO" "$header" "$as_ac_Header" "$ac_includes_default 4016" 4017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4018 4019else 4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4022as_fn_error $? "Could not find $header. 4023See \`config.log' for more details" "$LINENO" 5; } 4024fi 4025 4026 4027 CPPFLAGS="$ac_save_CPPFLAGS" 4028 4029 done 4030 gtest_INCLUDES=$include_flags 4031 4032 4033 if test x"testing::Test" != x; then 4034 lib_flags= 4035 for dir_path in lib lib64; do 4036 as_fn_append lib_flags " -L$pkg_dir/$dir_path" 4037 done 4038 as_fn_append lib_flags " $libraries" 4039 if test x"$downloaded" != xyes; then 4040 for symbol in testing::Test; do 4041 ac_save_LIBS="$LIBS" 4042 LIBS="$LIBS $lib_flags $LAPACK_LIBS $BLAS_LIBS" 4043 as_ac_Lib=`$as_echo "ac_cv_lib__$symbol" | $as_tr_sh` 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $symbol" >&5 4045$as_echo_n "checking for $symbol... " >&6; } 4046if eval \${$as_ac_Lib+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 ac_check_lib_save_LIBS=$LIBS 4050LIBS=" $LIBS" 4051case "$symbol" 4052in *::*::*\(*) 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055 4056 namespace `echo "$symbol" | sed -e "s/::.*//"` 4057 { class `echo "$symbol" | sed -e "s/.*::\\(.*\\)::.*/\\1/" -e "s/(.*//"` 4058 { public: int `echo "$symbol" | sed -e "s/.*:://" -e "/(/!s/..*/&()/"`; 4059 }; 4060 } 4061 4062int 4063main () 4064{ 4065`echo "$symbol" | sed -e "s/(.*//" -e "s/\\(.*\\)::\\(.*\\)/((\\1*)(0))->\\2/g"`() 4066 ; 4067 return 0; 4068} 4069_ACEOF 4070if ac_fn_cxx_try_link "$LINENO"; then : 4071 eval "$as_ac_Lib=yes" 4072else 4073 eval "$as_ac_Lib=no" 4074fi 4075rm -f core conftest.err conftest.$ac_objext \ 4076 conftest$ac_exeext conftest.$ac_ext 4077;; *::*::*) 4078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080 4081 namespace `echo "$symbol" | sed -e "s/::.*//"` 4082 { namespace `echo "$symbol" | sed -e "s/.*::\\(.*\\)::.*/\\1/"` 4083 { class `echo "$symbol" | sed -e "s/.*:://"` 4084 { public: `echo "$symbol" | sed -e "s/.*:://"` (); 4085 }; 4086 } 4087 } 4088 4089int 4090main () 4091{ 4092new $symbol() 4093 ; 4094 return 0; 4095} 4096_ACEOF 4097if ac_fn_cxx_try_link "$LINENO"; then : 4098 eval "$as_ac_Lib=yes" 4099else 4100 eval "$as_ac_Lib=no" 4101fi 4102rm -f core conftest.err conftest.$ac_objext \ 4103 conftest$ac_exeext conftest.$ac_ext 4104;; *::*\(*) 4105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107 4108 class `echo "$symbol" | sed -e "s/\\(.*\\)::.*/\\1/" -e "s/(.*//"` 4109 { public: int `echo "$symbol" | sed -e "s/.*:://" -e "/(/!s/..*/&()/"`; 4110 }; 4111 4112int 4113main () 4114{ 4115`echo "$symbol" | sed -e "s/(.*//" -e "s/\\(.*\\)::\\(.*\\)/((\\1*)(0))->\\2/g"`() 4116 ; 4117 return 0; 4118} 4119_ACEOF 4120if ac_fn_cxx_try_link "$LINENO"; then : 4121 eval "$as_ac_Lib=yes" 4122else 4123 eval "$as_ac_Lib=no" 4124fi 4125rm -f core conftest.err conftest.$ac_objext \ 4126 conftest$ac_exeext conftest.$ac_ext 4127;; *::*) 4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130 4131 namespace `echo "$symbol" | sed -e "s/::.*//"` 4132 { class `echo "$symbol" | sed -e "s/.*:://"` 4133 { public: `echo "$symbol" | sed -e "s/.*:://"` (); 4134 }; 4135 } 4136 4137int 4138main () 4139{ 4140new $symbol() 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145if ac_fn_cxx_try_link "$LINENO"; then : 4146 eval "$as_ac_Lib=yes" 4147else 4148 eval "$as_ac_Lib=no" 4149fi 4150rm -f core conftest.err conftest.$ac_objext \ 4151 conftest$ac_exeext conftest.$ac_ext 4152;; *) 4153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155 4156/* Override any GCC internal prototype to avoid an error. 4157 Use char because int might match the return type of a GCC 4158 builtin and then its argument prototype would still apply. */ 4159#ifdef __cplusplus 4160extern "C" 4161#endif 4162char $symbol (); 4163int 4164main () 4165{ 4166return $symbol (); 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171if ac_fn_cxx_try_link "$LINENO"; then : 4172 eval "$as_ac_Lib=yes" 4173else 4174 eval "$as_ac_Lib=no" 4175fi 4176rm -f core conftest.err conftest.$ac_objext \ 4177 conftest$ac_exeext conftest.$ac_ext 4178;; esac 4179LIBS=$ac_check_lib_save_LIBS 4180fi 4181eval ac_res=\$$as_ac_Lib 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4183$as_echo "$ac_res" >&6; } 4184if test `eval 'as_val=${'$as_ac_Lib'};$as_echo "$as_val"'` = yes; then : 4185 cat >>confdefs.h <<_ACEOF 4186#define HAVE_LIB 1 4187_ACEOF 4188 4189 LIBS="-l $LIBS" 4190 4191else 4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4194as_fn_error $? "Could not find $symbol in $libraries. 4195See \`config.log' for more details" "$LINENO" 5; } 4196fi 4197 LIBS="$ac_save_LIBS" 4198 4199 done 4200 fi 4201 gtest_LIBS=$lib_flags 4202 4203 fi 4204 include_package=yes 4205 fi 4206 if test x"$include_package" = xyes; then : 4207 4208$as_echo "#define HAVE_GTEST 1" >>confdefs.h 4209 4210fi 4211 if test x"$include_package" = xyes; then 4212 HAVE_GTEST_TRUE= 4213 HAVE_GTEST_FALSE='#' 4214else 4215 HAVE_GTEST_TRUE='#' 4216 HAVE_GTEST_FALSE= 4217fi 4218 4219 4220 4221mkdir -p bin 4222 4223ac_config_files="$ac_config_files Makefile" 4224 4225cat >confcache <<\_ACEOF 4226# This file is a shell script that caches the results of configure 4227# tests run on this system so they can be shared between configure 4228# scripts and configure runs, see configure's option --config-cache. 4229# It is not useful on other systems. If it contains results you don't 4230# want to keep, you may remove or edit it. 4231# 4232# config.status only pays attention to the cache file if you give it 4233# the --recheck option to rerun configure. 4234# 4235# `ac_cv_env_foo' variables (set or unset) will be overridden when 4236# loading this file, other *unset* `ac_cv_foo' will be assigned the 4237# following values. 4238 4239_ACEOF 4240 4241# The following way of writing the cache mishandles newlines in values, 4242# but we know of no workaround that is simple, portable, and efficient. 4243# So, we kill variables containing newlines. 4244# Ultrix sh set writes to stderr and can't be redirected directly, 4245# and sets the high bit in the cache file unless we assign to the vars. 4246( 4247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4248 eval ac_val=\$$ac_var 4249 case $ac_val in #( 4250 *${as_nl}*) 4251 case $ac_var in #( 4252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4254 esac 4255 case $ac_var in #( 4256 _ | IFS | as_nl) ;; #( 4257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4258 *) { eval $ac_var=; unset $ac_var;} ;; 4259 esac ;; 4260 esac 4261 done 4262 4263 (set) 2>&1 | 4264 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4265 *${as_nl}ac_space=\ *) 4266 # `set' does not quote correctly, so add quotes: double-quote 4267 # substitution turns \\\\ into \\, and sed turns \\ into \. 4268 sed -n \ 4269 "s/'/'\\\\''/g; 4270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4271 ;; #( 4272 *) 4273 # `set' quotes correctly as required by POSIX, so do not add quotes. 4274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4275 ;; 4276 esac | 4277 sort 4278) | 4279 sed ' 4280 /^ac_cv_env_/b end 4281 t clear 4282 :clear 4283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4284 t end 4285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4286 :end' >>confcache 4287if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4288 if test -w "$cache_file"; then 4289 if test "x$cache_file" != "x/dev/null"; then 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4291$as_echo "$as_me: updating cache $cache_file" >&6;} 4292 if test ! -f "$cache_file" || test -h "$cache_file"; then 4293 cat confcache >"$cache_file" 4294 else 4295 case $cache_file in #( 4296 */* | ?:*) 4297 mv -f confcache "$cache_file"$$ && 4298 mv -f "$cache_file"$$ "$cache_file" ;; #( 4299 *) 4300 mv -f confcache "$cache_file" ;; 4301 esac 4302 fi 4303 fi 4304 else 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4306$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4307 fi 4308fi 4309rm -f confcache 4310 4311test "x$prefix" = xNONE && prefix=$ac_default_prefix 4312# Let make expand exec_prefix. 4313test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4314 4315DEFS=-DHAVE_CONFIG_H 4316 4317ac_libobjs= 4318ac_ltlibobjs= 4319for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4320 # 1. Remove the extension, and $U if already installed. 4321 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4322 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4324 # will be set to the directory where LIBOBJS objects are built. 4325 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4326 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4327done 4328LIBOBJS=$ac_libobjs 4329 4330LTLIBOBJS=$ac_ltlibobjs 4331 4332 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 4334$as_echo_n "checking that generated files are newer than configure... " >&6; } 4335 if test -n "$am_sleep_pid"; then 4336 # Hide warnings about reused PIDs. 4337 wait $am_sleep_pid 2>/dev/null 4338 fi 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 4340$as_echo "done" >&6; } 4341 if test -n "$EXEEXT"; then 4342 am__EXEEXT_TRUE= 4343 am__EXEEXT_FALSE='#' 4344else 4345 am__EXEEXT_TRUE='#' 4346 am__EXEEXT_FALSE= 4347fi 4348 4349if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 4350 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 4351Usually this means the macro was only invoked conditionally." "$LINENO" 5 4352fi 4353if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 4354 as_fn_error $? "conditional \"AMDEP\" was never defined. 4355Usually this means the macro was only invoked conditionally." "$LINENO" 5 4356fi 4357if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 4358 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 4359Usually this means the macro was only invoked conditionally." "$LINENO" 5 4360fi 4361if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then 4362 as_fn_error $? "conditional \"HAVE_GTEST\" was never defined. 4363Usually this means the macro was only invoked conditionally." "$LINENO" 5 4364fi 4365 4366: "${CONFIG_STATUS=./config.status}" 4367ac_write_fail=0 4368ac_clean_files_save=$ac_clean_files 4369ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4371$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4372as_write_fail=0 4373cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4374#! $SHELL 4375# Generated by $as_me. 4376# Run this file to recreate the current configuration. 4377# Compiler output produced by configure, useful for debugging 4378# configure, is in config.log if it exists. 4379 4380debug=false 4381ac_cs_recheck=false 4382ac_cs_silent=false 4383 4384SHELL=\${CONFIG_SHELL-$SHELL} 4385export SHELL 4386_ASEOF 4387cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4388## -------------------- ## 4389## M4sh Initialization. ## 4390## -------------------- ## 4391 4392# Be more Bourne compatible 4393DUALCASE=1; export DUALCASE # for MKS sh 4394if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4395 emulate sh 4396 NULLCMD=: 4397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4398 # is contrary to our usage. Disable this feature. 4399 alias -g '${1+"$@"}'='"$@"' 4400 setopt NO_GLOB_SUBST 4401else 4402 case `(set -o) 2>/dev/null` in #( 4403 *posix*) : 4404 set -o posix ;; #( 4405 *) : 4406 ;; 4407esac 4408fi 4409 4410 4411as_nl=' 4412' 4413export as_nl 4414# Printing a long string crashes Solaris 7 /usr/bin/printf. 4415as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4416as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4417as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4418# Prefer a ksh shell builtin over an external printf program on Solaris, 4419# but without wasting forks for bash or zsh. 4420if test -z "$BASH_VERSION$ZSH_VERSION" \ 4421 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4422 as_echo='print -r --' 4423 as_echo_n='print -rn --' 4424elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4425 as_echo='printf %s\n' 4426 as_echo_n='printf %s' 4427else 4428 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4429 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4430 as_echo_n='/usr/ucb/echo -n' 4431 else 4432 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4433 as_echo_n_body='eval 4434 arg=$1; 4435 case $arg in #( 4436 *"$as_nl"*) 4437 expr "X$arg" : "X\\(.*\\)$as_nl"; 4438 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4439 esac; 4440 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4441 ' 4442 export as_echo_n_body 4443 as_echo_n='sh -c $as_echo_n_body as_echo' 4444 fi 4445 export as_echo_body 4446 as_echo='sh -c $as_echo_body as_echo' 4447fi 4448 4449# The user is always right. 4450if test "${PATH_SEPARATOR+set}" != set; then 4451 PATH_SEPARATOR=: 4452 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4453 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4454 PATH_SEPARATOR=';' 4455 } 4456fi 4457 4458 4459# IFS 4460# We need space, tab and new line, in precisely that order. Quoting is 4461# there to prevent editors from complaining about space-tab. 4462# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4463# splitting by setting IFS to empty value.) 4464IFS=" "" $as_nl" 4465 4466# Find who we are. Look in the path if we contain no directory separator. 4467as_myself= 4468case $0 in #(( 4469 *[\\/]* ) as_myself=$0 ;; 4470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4471for as_dir in $PATH 4472do 4473 IFS=$as_save_IFS 4474 test -z "$as_dir" && as_dir=. 4475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4476 done 4477IFS=$as_save_IFS 4478 4479 ;; 4480esac 4481# We did not find ourselves, most probably we were run as `sh COMMAND' 4482# in which case we are not to be found in the path. 4483if test "x$as_myself" = x; then 4484 as_myself=$0 4485fi 4486if test ! -f "$as_myself"; then 4487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4488 exit 1 4489fi 4490 4491# Unset variables that we do not need and which cause bugs (e.g. in 4492# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4493# suppresses any "Segmentation fault" message there. '((' could 4494# trigger a bug in pdksh 5.2.14. 4495for as_var in BASH_ENV ENV MAIL MAILPATH 4496do eval test x\${$as_var+set} = xset \ 4497 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4498done 4499PS1='$ ' 4500PS2='> ' 4501PS4='+ ' 4502 4503# NLS nuisances. 4504LC_ALL=C 4505export LC_ALL 4506LANGUAGE=C 4507export LANGUAGE 4508 4509# CDPATH. 4510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4511 4512 4513# as_fn_error STATUS ERROR [LINENO LOG_FD] 4514# ---------------------------------------- 4515# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4516# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4517# script with STATUS, using 1 if that was 0. 4518as_fn_error () 4519{ 4520 as_status=$1; test $as_status -eq 0 && as_status=1 4521 if test "$4"; then 4522 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4524 fi 4525 $as_echo "$as_me: error: $2" >&2 4526 as_fn_exit $as_status 4527} # as_fn_error 4528 4529 4530# as_fn_set_status STATUS 4531# ----------------------- 4532# Set $? to STATUS, without forking. 4533as_fn_set_status () 4534{ 4535 return $1 4536} # as_fn_set_status 4537 4538# as_fn_exit STATUS 4539# ----------------- 4540# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4541as_fn_exit () 4542{ 4543 set +e 4544 as_fn_set_status $1 4545 exit $1 4546} # as_fn_exit 4547 4548# as_fn_unset VAR 4549# --------------- 4550# Portably unset VAR. 4551as_fn_unset () 4552{ 4553 { eval $1=; unset $1;} 4554} 4555as_unset=as_fn_unset 4556# as_fn_append VAR VALUE 4557# ---------------------- 4558# Append the text in VALUE to the end of the definition contained in VAR. Take 4559# advantage of any shell optimizations that allow amortized linear growth over 4560# repeated appends, instead of the typical quadratic growth present in naive 4561# implementations. 4562if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 4563 eval 'as_fn_append () 4564 { 4565 eval $1+=\$2 4566 }' 4567else 4568 as_fn_append () 4569 { 4570 eval $1=\$$1\$2 4571 } 4572fi # as_fn_append 4573 4574# as_fn_arith ARG... 4575# ------------------ 4576# Perform arithmetic evaluation on the ARGs, and store the result in the 4577# global $as_val. Take advantage of shells that can avoid forks. The arguments 4578# must be portable across $(()) and expr. 4579if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 4580 eval 'as_fn_arith () 4581 { 4582 as_val=$(( $* )) 4583 }' 4584else 4585 as_fn_arith () 4586 { 4587 as_val=`expr "$@" || test $? -eq 1` 4588 } 4589fi # as_fn_arith 4590 4591 4592if expr a : '\(a\)' >/dev/null 2>&1 && 4593 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4594 as_expr=expr 4595else 4596 as_expr=false 4597fi 4598 4599if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4600 as_basename=basename 4601else 4602 as_basename=false 4603fi 4604 4605if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4606 as_dirname=dirname 4607else 4608 as_dirname=false 4609fi 4610 4611as_me=`$as_basename -- "$0" || 4612$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4613 X"$0" : 'X\(//\)$' \| \ 4614 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4615$as_echo X/"$0" | 4616 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4617 s//\1/ 4618 q 4619 } 4620 /^X\/\(\/\/\)$/{ 4621 s//\1/ 4622 q 4623 } 4624 /^X\/\(\/\).*/{ 4625 s//\1/ 4626 q 4627 } 4628 s/.*/./; q'` 4629 4630# Avoid depending upon Character Ranges. 4631as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4633as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4634as_cr_digits='0123456789' 4635as_cr_alnum=$as_cr_Letters$as_cr_digits 4636 4637ECHO_C= ECHO_N= ECHO_T= 4638case `echo -n x` in #((((( 4639-n*) 4640 case `echo 'xy\c'` in 4641 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4642 xy) ECHO_C='\c';; 4643 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4644 ECHO_T=' ';; 4645 esac;; 4646*) 4647 ECHO_N='-n';; 4648esac 4649 4650rm -f conf$$ conf$$.exe conf$$.file 4651if test -d conf$$.dir; then 4652 rm -f conf$$.dir/conf$$.file 4653else 4654 rm -f conf$$.dir 4655 mkdir conf$$.dir 2>/dev/null 4656fi 4657if (echo >conf$$.file) 2>/dev/null; then 4658 if ln -s conf$$.file conf$$ 2>/dev/null; then 4659 as_ln_s='ln -s' 4660 # ... but there are two gotchas: 4661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4663 # In both cases, we have to default to `cp -pR'. 4664 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4665 as_ln_s='cp -pR' 4666 elif ln conf$$.file conf$$ 2>/dev/null; then 4667 as_ln_s=ln 4668 else 4669 as_ln_s='cp -pR' 4670 fi 4671else 4672 as_ln_s='cp -pR' 4673fi 4674rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4675rmdir conf$$.dir 2>/dev/null 4676 4677 4678# as_fn_mkdir_p 4679# ------------- 4680# Create "$as_dir" as a directory, including parents if necessary. 4681as_fn_mkdir_p () 4682{ 4683 4684 case $as_dir in #( 4685 -*) as_dir=./$as_dir;; 4686 esac 4687 test -d "$as_dir" || eval $as_mkdir_p || { 4688 as_dirs= 4689 while :; do 4690 case $as_dir in #( 4691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4692 *) as_qdir=$as_dir;; 4693 esac 4694 as_dirs="'$as_qdir' $as_dirs" 4695 as_dir=`$as_dirname -- "$as_dir" || 4696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4697 X"$as_dir" : 'X\(//\)[^/]' \| \ 4698 X"$as_dir" : 'X\(//\)$' \| \ 4699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4700$as_echo X"$as_dir" | 4701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4702 s//\1/ 4703 q 4704 } 4705 /^X\(\/\/\)[^/].*/{ 4706 s//\1/ 4707 q 4708 } 4709 /^X\(\/\/\)$/{ 4710 s//\1/ 4711 q 4712 } 4713 /^X\(\/\).*/{ 4714 s//\1/ 4715 q 4716 } 4717 s/.*/./; q'` 4718 test -d "$as_dir" && break 4719 done 4720 test -z "$as_dirs" || eval "mkdir $as_dirs" 4721 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 4722 4723 4724} # as_fn_mkdir_p 4725if mkdir -p . 2>/dev/null; then 4726 as_mkdir_p='mkdir -p "$as_dir"' 4727else 4728 test -d ./-p && rmdir ./-p 4729 as_mkdir_p=false 4730fi 4731 4732 4733# as_fn_executable_p FILE 4734# ----------------------- 4735# Test if FILE is an executable regular file. 4736as_fn_executable_p () 4737{ 4738 test -f "$1" && test -x "$1" 4739} # as_fn_executable_p 4740as_test_x='test -x' 4741as_executable_p=as_fn_executable_p 4742 4743# Sed expression to map a string onto a valid CPP name. 4744as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4745 4746# Sed expression to map a string onto a valid variable name. 4747as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4748 4749 4750exec 6>&1 4751## ----------------------------------- ## 4752## Main body of $CONFIG_STATUS script. ## 4753## ----------------------------------- ## 4754_ASEOF 4755test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4756 4757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4758# Save the log message, to keep $0 and so on meaningful, and to 4759# report actual input values of CONFIG_FILES etc. instead of their 4760# values after options handling. 4761ac_log=" 4762This file was extended by stl_ext $as_me 1.0, which was 4763generated by GNU Autoconf 2.69. Invocation command line was 4764 4765 CONFIG_FILES = $CONFIG_FILES 4766 CONFIG_HEADERS = $CONFIG_HEADERS 4767 CONFIG_LINKS = $CONFIG_LINKS 4768 CONFIG_COMMANDS = $CONFIG_COMMANDS 4769 $ $0 $@ 4770 4771on `(hostname || uname -n) 2>/dev/null | sed 1q` 4772" 4773 4774_ACEOF 4775 4776case $ac_config_files in *" 4777"*) set x $ac_config_files; shift; ac_config_files=$*;; 4778esac 4779 4780case $ac_config_headers in *" 4781"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 4782esac 4783 4784 4785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4786# Files that config.status was made for. 4787config_files="$ac_config_files" 4788config_headers="$ac_config_headers" 4789config_commands="$ac_config_commands" 4790 4791_ACEOF 4792 4793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4794ac_cs_usage="\ 4795\`$as_me' instantiates files and other configuration actions 4796from templates according to the current configuration. Unless the files 4797and actions are specified as TAGs, all are instantiated by default. 4798 4799Usage: $0 [OPTION]... [TAG]... 4800 4801 -h, --help print this help, then exit 4802 -V, --version print version number and configuration settings, then exit 4803 --config print configuration, then exit 4804 -q, --quiet, --silent 4805 do not print progress messages 4806 -d, --debug don't remove temporary files 4807 --recheck update $as_me by reconfiguring in the same conditions 4808 --file=FILE[:TEMPLATE] 4809 instantiate the configuration file FILE 4810 --header=FILE[:TEMPLATE] 4811 instantiate the configuration header FILE 4812 4813Configuration files: 4814$config_files 4815 4816Configuration headers: 4817$config_headers 4818 4819Configuration commands: 4820$config_commands 4821 4822Report bugs to <dmatthews@utexas.edu>. 4823stl_ext home page: <http://www.github.com/devinamatthews/stl_ext>." 4824 4825_ACEOF 4826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4827ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4828ac_cs_version="\\ 4829stl_ext config.status 1.0 4830configured by $0, generated by GNU Autoconf 2.69, 4831 with options \\"\$ac_cs_config\\" 4832 4833Copyright (C) 2012 Free Software Foundation, Inc. 4834This config.status script is free software; the Free Software Foundation 4835gives unlimited permission to copy, distribute and modify it." 4836 4837ac_pwd='$ac_pwd' 4838srcdir='$srcdir' 4839INSTALL='$INSTALL' 4840MKDIR_P='$MKDIR_P' 4841AWK='$AWK' 4842test -n "\$AWK" || AWK=awk 4843_ACEOF 4844 4845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4846# The default lists apply if the user does not specify any file. 4847ac_need_defaults=: 4848while test $# != 0 4849do 4850 case $1 in 4851 --*=?*) 4852 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4854 ac_shift=: 4855 ;; 4856 --*=) 4857 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4858 ac_optarg= 4859 ac_shift=: 4860 ;; 4861 *) 4862 ac_option=$1 4863 ac_optarg=$2 4864 ac_shift=shift 4865 ;; 4866 esac 4867 4868 case $ac_option in 4869 # Handling of the options. 4870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4871 ac_cs_recheck=: ;; 4872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4873 $as_echo "$ac_cs_version"; exit ;; 4874 --config | --confi | --conf | --con | --co | --c ) 4875 $as_echo "$ac_cs_config"; exit ;; 4876 --debug | --debu | --deb | --de | --d | -d ) 4877 debug=: ;; 4878 --file | --fil | --fi | --f ) 4879 $ac_shift 4880 case $ac_optarg in 4881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4882 '') as_fn_error $? "missing file argument" ;; 4883 esac 4884 as_fn_append CONFIG_FILES " '$ac_optarg'" 4885 ac_need_defaults=false;; 4886 --header | --heade | --head | --hea ) 4887 $ac_shift 4888 case $ac_optarg in 4889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4890 esac 4891 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 4892 ac_need_defaults=false;; 4893 --he | --h) 4894 # Conflict between --help and --header 4895 as_fn_error $? "ambiguous option: \`$1' 4896Try \`$0 --help' for more information.";; 4897 --help | --hel | -h ) 4898 $as_echo "$ac_cs_usage"; exit ;; 4899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4900 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4901 ac_cs_silent=: ;; 4902 4903 # This is an error. 4904 -*) as_fn_error $? "unrecognized option: \`$1' 4905Try \`$0 --help' for more information." ;; 4906 4907 *) as_fn_append ac_config_targets " $1" 4908 ac_need_defaults=false ;; 4909 4910 esac 4911 shift 4912done 4913 4914ac_configure_extra_args= 4915 4916if $ac_cs_silent; then 4917 exec 6>/dev/null 4918 ac_configure_extra_args="$ac_configure_extra_args --silent" 4919fi 4920 4921_ACEOF 4922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4923if \$ac_cs_recheck; then 4924 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4925 shift 4926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4927 CONFIG_SHELL='$SHELL' 4928 export CONFIG_SHELL 4929 exec "\$@" 4930fi 4931 4932_ACEOF 4933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4934exec 5>>config.log 4935{ 4936 echo 4937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4938## Running $as_me. ## 4939_ASBOX 4940 $as_echo "$ac_log" 4941} >&5 4942 4943_ACEOF 4944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4945# 4946# INIT-COMMANDS 4947# 4948AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 4949 4950_ACEOF 4951 4952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4953 4954# Handling of arguments. 4955for ac_config_target in $ac_config_targets 4956do 4957 case $ac_config_target in 4958 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 4959 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 4960 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4961 4962 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4963 esac 4964done 4965 4966 4967# If the user did not use the arguments to specify the items to instantiate, 4968# then the envvar interface is used. Set only those that are not. 4969# We use the long form for the default assignment because of an extremely 4970# bizarre bug on SunOS 4.1.3. 4971if $ac_need_defaults; then 4972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 4975fi 4976 4977# Have a temporary directory for convenience. Make it in the build tree 4978# simply because there is no reason against having it here, and in addition, 4979# creating and moving files from /tmp can sometimes cause problems. 4980# Hook for its removal unless debugging. 4981# Note that there is a small window in which the directory will not be cleaned: 4982# after its creation but before its name has been assigned to `$tmp'. 4983$debug || 4984{ 4985 tmp= ac_tmp= 4986 trap 'exit_status=$? 4987 : "${ac_tmp:=$tmp}" 4988 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 4989' 0 4990 trap 'as_fn_exit 1' 1 2 13 15 4991} 4992# Create a (secure) tmp directory for tmp files. 4993 4994{ 4995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4996 test -d "$tmp" 4997} || 4998{ 4999 tmp=./conf$$-$RANDOM 5000 (umask 077 && mkdir "$tmp") 5001} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5002ac_tmp=$tmp 5003 5004# Set up the scripts for CONFIG_FILES section. 5005# No need to generate them if there are no CONFIG_FILES. 5006# This happens for instance with `./config.status config.h'. 5007if test -n "$CONFIG_FILES"; then 5008 5009 5010ac_cr=`echo X | tr X '\015'` 5011# On cygwin, bash can eat \r inside `` if the user requested igncr. 5012# But we know of no other shell where ac_cr would be empty at this 5013# point, so we can use a bashism as a fallback. 5014if test "x$ac_cr" = x; then 5015 eval ac_cr=\$\'\\r\' 5016fi 5017ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5018if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5019 ac_cs_awk_cr='\\r' 5020else 5021 ac_cs_awk_cr=$ac_cr 5022fi 5023 5024echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 5025_ACEOF 5026 5027 5028{ 5029 echo "cat >conf$$subs.awk <<_ACEOF" && 5030 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5031 echo "_ACEOF" 5032} >conf$$subs.sh || 5033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5034ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5035ac_delim='%!_!# ' 5036for ac_last_try in false false false false false :; do 5037 . ./conf$$subs.sh || 5038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5039 5040 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5041 if test $ac_delim_n = $ac_delim_num; then 5042 break 5043 elif $ac_last_try; then 5044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5045 else 5046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5047 fi 5048done 5049rm -f conf$$subs.sh 5050 5051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5052cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 5053_ACEOF 5054sed -n ' 5055h 5056s/^/S["/; s/!.*/"]=/ 5057p 5058g 5059s/^[^!]*!// 5060:repl 5061t repl 5062s/'"$ac_delim"'$// 5063t delim 5064:nl 5065h 5066s/\(.\{148\}\)..*/\1/ 5067t more1 5068s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5069p 5070n 5071b repl 5072:more1 5073s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5074p 5075g 5076s/.\{148\}// 5077t nl 5078:delim 5079h 5080s/\(.\{148\}\)..*/\1/ 5081t more2 5082s/["\\]/\\&/g; s/^/"/; s/$/"/ 5083p 5084b 5085:more2 5086s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5087p 5088g 5089s/.\{148\}// 5090t delim 5091' <conf$$subs.awk | sed ' 5092/^[^""]/{ 5093 N 5094 s/\n// 5095} 5096' >>$CONFIG_STATUS || ac_write_fail=1 5097rm -f conf$$subs.awk 5098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5099_ACAWK 5100cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5101 for (key in S) S_is_set[key] = 1 5102 FS = "" 5103 5104} 5105{ 5106 line = $ 0 5107 nfields = split(line, field, "@") 5108 substed = 0 5109 len = length(field[1]) 5110 for (i = 2; i < nfields; i++) { 5111 key = field[i] 5112 keylen = length(key) 5113 if (S_is_set[key]) { 5114 value = S[key] 5115 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5116 len += length(value) + length(field[++i]) 5117 substed = 1 5118 } else 5119 len += 1 + keylen 5120 } 5121 5122 print line 5123} 5124 5125_ACAWK 5126_ACEOF 5127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5128if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5130else 5131 cat 5132fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5133 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5134_ACEOF 5135 5136# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5137# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5138# trailing colons and then remove the whole line if VPATH becomes empty 5139# (actually we leave an empty line to preserve line numbers). 5140if test "x$srcdir" = x.; then 5141 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5142h 5143s/// 5144s/^/:/ 5145s/[ ]*$/:/ 5146s/:\$(srcdir):/:/g 5147s/:\${srcdir}:/:/g 5148s/:@srcdir@:/:/g 5149s/^:*// 5150s/:*$// 5151x 5152s/\(=[ ]*\).*/\1/ 5153G 5154s/\n// 5155s/^[^=]*=[ ]*$// 5156}' 5157fi 5158 5159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5160fi # test -n "$CONFIG_FILES" 5161 5162# Set up the scripts for CONFIG_HEADERS section. 5163# No need to generate them if there are no CONFIG_HEADERS. 5164# This happens for instance with `./config.status Makefile'. 5165if test -n "$CONFIG_HEADERS"; then 5166cat >"$ac_tmp/defines.awk" <<\_ACAWK || 5167BEGIN { 5168_ACEOF 5169 5170# Transform confdefs.h into an awk script `defines.awk', embedded as 5171# here-document in config.status, that substitutes the proper values into 5172# config.h.in to produce config.h. 5173 5174# Create a delimiter string that does not exist in confdefs.h, to ease 5175# handling of long lines. 5176ac_delim='%!_!# ' 5177for ac_last_try in false false :; do 5178 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 5179 if test -z "$ac_tt"; then 5180 break 5181 elif $ac_last_try; then 5182 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5183 else 5184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5185 fi 5186done 5187 5188# For the awk script, D is an array of macro values keyed by name, 5189# likewise P contains macro parameters if any. Preserve backslash 5190# newline sequences. 5191 5192ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5193sed -n ' 5194s/.\{148\}/&'"$ac_delim"'/g 5195t rset 5196:rset 5197s/^[ ]*#[ ]*define[ ][ ]*/ / 5198t def 5199d 5200:def 5201s/\\$// 5202t bsnl 5203s/["\\]/\\&/g 5204s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5205D["\1"]=" \3"/p 5206s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5207d 5208:bsnl 5209s/["\\]/\\&/g 5210s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5211D["\1"]=" \3\\\\\\n"\\/p 5212t cont 5213s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5214t cont 5215d 5216:cont 5217n 5218s/.\{148\}/&'"$ac_delim"'/g 5219t clear 5220:clear 5221s/\\$// 5222t bsnlc 5223s/["\\]/\\&/g; s/^/"/; s/$/"/p 5224d 5225:bsnlc 5226s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5227b cont 5228' <confdefs.h | sed ' 5229s/'"$ac_delim"'/"\\\ 5230"/g' >>$CONFIG_STATUS || ac_write_fail=1 5231 5232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5233 for (key in D) D_is_set[key] = 1 5234 FS = "" 5235} 5236/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5237 line = \$ 0 5238 split(line, arg, " ") 5239 if (arg[1] == "#") { 5240 defundef = arg[2] 5241 mac1 = arg[3] 5242 } else { 5243 defundef = substr(arg[1], 2) 5244 mac1 = arg[2] 5245 } 5246 split(mac1, mac2, "(") #) 5247 macro = mac2[1] 5248 prefix = substr(line, 1, index(line, defundef) - 1) 5249 if (D_is_set[macro]) { 5250 # Preserve the white space surrounding the "#". 5251 print prefix "define", macro P[macro] D[macro] 5252 next 5253 } else { 5254 # Replace #undef with comments. This is necessary, for example, 5255 # in the case of _POSIX_SOURCE, which is predefined and required 5256 # on some systems where configure will not decide to define it. 5257 if (defundef == "undef") { 5258 print "/*", prefix defundef, macro, "*/" 5259 next 5260 } 5261 } 5262} 5263{ print } 5264_ACAWK 5265_ACEOF 5266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5267 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5268fi # test -n "$CONFIG_HEADERS" 5269 5270 5271eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 5272shift 5273for ac_tag 5274do 5275 case $ac_tag in 5276 :[FHLC]) ac_mode=$ac_tag; continue;; 5277 esac 5278 case $ac_mode$ac_tag in 5279 :[FHL]*:*);; 5280 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 5281 :[FH]-) ac_tag=-:-;; 5282 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5283 esac 5284 ac_save_IFS=$IFS 5285 IFS=: 5286 set x $ac_tag 5287 IFS=$ac_save_IFS 5288 shift 5289 ac_file=$1 5290 shift 5291 5292 case $ac_mode in 5293 :L) ac_source=$1;; 5294 :[FH]) 5295 ac_file_inputs= 5296 for ac_f 5297 do 5298 case $ac_f in 5299 -) ac_f="$ac_tmp/stdin";; 5300 *) # Look for the file first in the build tree, then in the source tree 5301 # (if the path is not absolute). The absolute path cannot be DOS-style, 5302 # because $ac_f cannot contain `:'. 5303 test -f "$ac_f" || 5304 case $ac_f in 5305 [\\/$]*) false;; 5306 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5307 esac || 5308 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 5309 esac 5310 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5311 as_fn_append ac_file_inputs " '$ac_f'" 5312 done 5313 5314 # Let's still pretend it is `configure' which instantiates (i.e., don't 5315 # use $as_me), people would be surprised to read: 5316 # /* config.h. Generated by config.status. */ 5317 configure_input='Generated from '` 5318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5319 `' by configure.' 5320 if test x"$ac_file" != x-; then 5321 configure_input="$ac_file. $configure_input" 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5323$as_echo "$as_me: creating $ac_file" >&6;} 5324 fi 5325 # Neutralize special characters interpreted by sed in replacement strings. 5326 case $configure_input in #( 5327 *\&* | *\|* | *\\* ) 5328 ac_sed_conf_input=`$as_echo "$configure_input" | 5329 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5330 *) ac_sed_conf_input=$configure_input;; 5331 esac 5332 5333 case $ac_tag in 5334 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 5335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5336 esac 5337 ;; 5338 esac 5339 5340 ac_dir=`$as_dirname -- "$ac_file" || 5341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5342 X"$ac_file" : 'X\(//\)[^/]' \| \ 5343 X"$ac_file" : 'X\(//\)$' \| \ 5344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5345$as_echo X"$ac_file" | 5346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5347 s//\1/ 5348 q 5349 } 5350 /^X\(\/\/\)[^/].*/{ 5351 s//\1/ 5352 q 5353 } 5354 /^X\(\/\/\)$/{ 5355 s//\1/ 5356 q 5357 } 5358 /^X\(\/\).*/{ 5359 s//\1/ 5360 q 5361 } 5362 s/.*/./; q'` 5363 as_dir="$ac_dir"; as_fn_mkdir_p 5364 ac_builddir=. 5365 5366case "$ac_dir" in 5367.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5368*) 5369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5370 # A ".." for each directory in $ac_dir_suffix. 5371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5372 case $ac_top_builddir_sub in 5373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5375 esac ;; 5376esac 5377ac_abs_top_builddir=$ac_pwd 5378ac_abs_builddir=$ac_pwd$ac_dir_suffix 5379# for backward compatibility: 5380ac_top_builddir=$ac_top_build_prefix 5381 5382case $srcdir in 5383 .) # We are building in place. 5384 ac_srcdir=. 5385 ac_top_srcdir=$ac_top_builddir_sub 5386 ac_abs_top_srcdir=$ac_pwd ;; 5387 [\\/]* | ?:[\\/]* ) # Absolute name. 5388 ac_srcdir=$srcdir$ac_dir_suffix; 5389 ac_top_srcdir=$srcdir 5390 ac_abs_top_srcdir=$srcdir ;; 5391 *) # Relative name. 5392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5393 ac_top_srcdir=$ac_top_build_prefix$srcdir 5394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5395esac 5396ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5397 5398 5399 case $ac_mode in 5400 :F) 5401 # 5402 # CONFIG_FILE 5403 # 5404 5405 case $INSTALL in 5406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5407 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 5408 esac 5409 ac_MKDIR_P=$MKDIR_P 5410 case $MKDIR_P in 5411 [\\/$]* | ?:[\\/]* ) ;; 5412 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 5413 esac 5414_ACEOF 5415 5416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5417# If the template does not know about datarootdir, expand it. 5418# FIXME: This hack should be removed a few years after 2.60. 5419ac_datarootdir_hack=; ac_datarootdir_seen= 5420ac_sed_dataroot=' 5421/datarootdir/ { 5422 p 5423 q 5424} 5425/@datadir@/p 5426/@docdir@/p 5427/@infodir@/p 5428/@localedir@/p 5429/@mandir@/p' 5430case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5431*datarootdir*) ac_datarootdir_seen=yes;; 5432*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5434$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5435_ACEOF 5436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5437 ac_datarootdir_hack=' 5438 s&@datadir@&$datadir&g 5439 s&@docdir@&$docdir&g 5440 s&@infodir@&$infodir&g 5441 s&@localedir@&$localedir&g 5442 s&@mandir@&$mandir&g 5443 s&\\\${datarootdir}&$datarootdir&g' ;; 5444esac 5445_ACEOF 5446 5447# Neutralize VPATH when `$srcdir' = `.'. 5448# Shell code in configure.ac might set extrasub. 5449# FIXME: do we really want to maintain this feature? 5450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5451ac_sed_extra="$ac_vpsub 5452$extrasub 5453_ACEOF 5454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5455:t 5456/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5457s|@configure_input@|$ac_sed_conf_input|;t t 5458s&@top_builddir@&$ac_top_builddir_sub&;t t 5459s&@top_build_prefix@&$ac_top_build_prefix&;t t 5460s&@srcdir@&$ac_srcdir&;t t 5461s&@abs_srcdir@&$ac_abs_srcdir&;t t 5462s&@top_srcdir@&$ac_top_srcdir&;t t 5463s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5464s&@builddir@&$ac_builddir&;t t 5465s&@abs_builddir@&$ac_abs_builddir&;t t 5466s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5467s&@INSTALL@&$ac_INSTALL&;t t 5468s&@MKDIR_P@&$ac_MKDIR_P&;t t 5469$ac_datarootdir_hack 5470" 5471eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 5472 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5473 5474test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5475 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 5476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 5477 "$ac_tmp/out"`; test -z "$ac_out"; } && 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5479which seems to be undefined. Please make sure it is defined" >&5 5480$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5481which seems to be undefined. Please make sure it is defined" >&2;} 5482 5483 rm -f "$ac_tmp/stdin" 5484 case $ac_file in 5485 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 5486 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 5487 esac \ 5488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5489 ;; 5490 :H) 5491 # 5492 # CONFIG_HEADER 5493 # 5494 if test x"$ac_file" != x-; then 5495 { 5496 $as_echo "/* $configure_input */" \ 5497 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 5498 } >"$ac_tmp/config.h" \ 5499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5500 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5502$as_echo "$as_me: $ac_file is unchanged" >&6;} 5503 else 5504 rm -f "$ac_file" 5505 mv "$ac_tmp/config.h" "$ac_file" \ 5506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5507 fi 5508 else 5509 $as_echo "/* $configure_input */" \ 5510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 5511 || as_fn_error $? "could not create -" "$LINENO" 5 5512 fi 5513# Compute "$ac_file"'s index in $config_headers. 5514_am_arg="$ac_file" 5515_am_stamp_count=1 5516for _am_header in $config_headers :; do 5517 case $_am_header in 5518 $_am_arg | $_am_arg:* ) 5519 break ;; 5520 * ) 5521 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 5522 esac 5523done 5524echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 5525$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5526 X"$_am_arg" : 'X\(//\)[^/]' \| \ 5527 X"$_am_arg" : 'X\(//\)$' \| \ 5528 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 5529$as_echo X"$_am_arg" | 5530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5531 s//\1/ 5532 q 5533 } 5534 /^X\(\/\/\)[^/].*/{ 5535 s//\1/ 5536 q 5537 } 5538 /^X\(\/\/\)$/{ 5539 s//\1/ 5540 q 5541 } 5542 /^X\(\/\).*/{ 5543 s//\1/ 5544 q 5545 } 5546 s/.*/./; q'`/stamp-h$_am_stamp_count 5547 ;; 5548 5549 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 5550$as_echo "$as_me: executing $ac_file commands" >&6;} 5551 ;; 5552 esac 5553 5554 5555 case $ac_file$ac_mode in 5556 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 5557 # Older Autoconf quotes --file arguments for eval, but not when files 5558 # are listed without --file. Let's play safe and only enable the eval 5559 # if we detect the quoting. 5560 case $CONFIG_FILES in 5561 *\'*) eval set x "$CONFIG_FILES" ;; 5562 *) set x $CONFIG_FILES ;; 5563 esac 5564 shift 5565 for mf 5566 do 5567 # Strip MF so we end up with the name of the file. 5568 mf=`echo "$mf" | sed -e 's/:.*$//'` 5569 # Check whether this is an Automake generated Makefile or not. 5570 # We used to match only the files named 'Makefile.in', but 5571 # some people rename them; so instead we look at the file content. 5572 # Grep'ing the first line is not enough: some people post-process 5573 # each Makefile.in and add a new line on top of each file to say so. 5574 # Grep'ing the whole file is not good either: AIX grep has a line 5575 # limit of 2048, but all sed's we know have understand at least 4000. 5576 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 5577 dirpart=`$as_dirname -- "$mf" || 5578$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5579 X"$mf" : 'X\(//\)[^/]' \| \ 5580 X"$mf" : 'X\(//\)$' \| \ 5581 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 5582$as_echo X"$mf" | 5583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5584 s//\1/ 5585 q 5586 } 5587 /^X\(\/\/\)[^/].*/{ 5588 s//\1/ 5589 q 5590 } 5591 /^X\(\/\/\)$/{ 5592 s//\1/ 5593 q 5594 } 5595 /^X\(\/\).*/{ 5596 s//\1/ 5597 q 5598 } 5599 s/.*/./; q'` 5600 else 5601 continue 5602 fi 5603 # Extract the definition of DEPDIR, am__include, and am__quote 5604 # from the Makefile without running 'make'. 5605 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 5606 test -z "$DEPDIR" && continue 5607 am__include=`sed -n 's/^am__include = //p' < "$mf"` 5608 test -z "$am__include" && continue 5609 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 5610 # Find all dependency output files, they are included files with 5611 # $(DEPDIR) in their names. We invoke sed twice because it is the 5612 # simplest approach to changing $(DEPDIR) to its actual value in the 5613 # expansion. 5614 for file in `sed -n " 5615 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 5616 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 5617 # Make sure the directory exists. 5618 test -f "$dirpart/$file" && continue 5619 fdir=`$as_dirname -- "$file" || 5620$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5621 X"$file" : 'X\(//\)[^/]' \| \ 5622 X"$file" : 'X\(//\)$' \| \ 5623 X"$file" : 'X\(/\)' \| . 2>/dev/null || 5624$as_echo X"$file" | 5625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5626 s//\1/ 5627 q 5628 } 5629 /^X\(\/\/\)[^/].*/{ 5630 s//\1/ 5631 q 5632 } 5633 /^X\(\/\/\)$/{ 5634 s//\1/ 5635 q 5636 } 5637 /^X\(\/\).*/{ 5638 s//\1/ 5639 q 5640 } 5641 s/.*/./; q'` 5642 as_dir=$dirpart/$fdir; as_fn_mkdir_p 5643 # echo "creating $dirpart/$file" 5644 echo '# dummy' > "$dirpart/$file" 5645 done 5646 done 5647} 5648 ;; 5649 5650 esac 5651done # for ac_tag 5652 5653 5654as_fn_exit 0 5655_ACEOF 5656ac_clean_files=$ac_clean_files_save 5657 5658test $ac_write_fail = 0 || 5659 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5660 5661 5662# configure is writing to config.log, and then calls config.status. 5663# config.status does its own redirection, appending to config.log. 5664# Unfortunately, on DOS this fails, as config.log is still kept open 5665# by configure, so config.status won't be able to write to it; its 5666# output is simply discarded. So we exec the FD to /dev/null, 5667# effectively closing config.log, so it can be properly (re)opened and 5668# appended to by config.status. When coming back to configure, we 5669# need to make the FD available again. 5670if test "$no_create" != yes; then 5671 ac_cs_success=: 5672 ac_config_status_args= 5673 test "$silent" = yes && 5674 ac_config_status_args="$ac_config_status_args --quiet" 5675 exec 5>/dev/null 5676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5677 exec 5>>config.log 5678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5679 # would make configure fail if this is the last instruction. 5680 $ac_cs_success || as_fn_exit 1 5681fi 5682if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5684$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5685fi 5686 5687