1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for RcppArmadillo 0.10.7.5.0. 4# 5# Report bugs to <edd@debian.org>. 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" 201 if (eval "$as_required") 2>/dev/null; then : 202 as_have_required=yes 203else 204 as_have_required=no 205fi 206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 207 208else 209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 210as_found=false 211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 212do 213 IFS=$as_save_IFS 214 test -z "$as_dir" && as_dir=. 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir/$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 223 CONFIG_SHELL=$as_shell as_have_required=yes 224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 225 break 2 226fi 227fi 228 done;; 229 esac 230 as_found=false 231done 232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi; } 236IFS=$as_save_IFS 237 238 239 if test "x$CONFIG_SHELL" != x; then : 240 export CONFIG_SHELL 241 # We cannot yet assume a decent shell, so we have to provide a 242# neutralization value for shells without unset; and this also 243# works around shells that cannot unset nonexistent variables. 244# Preserve -v and -x to the replacement shell. 245BASH_ENV=/dev/null 246ENV=/dev/null 247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248case $- in # (((( 249 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v* ) as_opts=-v ;; 251 *x* ) as_opts=-x ;; 252 * ) as_opts= ;; 253esac 254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255# Admittedly, this is quite paranoid, since all the known shells bail 256# out after a failed `exec'. 257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 258exit 255 259fi 260 261 if test x$as_have_required = xno; then : 262 $as_echo "$0: This script requires a shell more modern than all" 263 $as_echo "$0: the shells that I found on your system." 264 if test x${ZSH_VERSION+set} = xset ; then 265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 267 else 268 $as_echo "$0: Please tell bug-autoconf@gnu.org and edd@debian.org 269$0: about your system, including any error possibly output 270$0: before this message. Then install a modern shell, or 271$0: manually run the script under such a shell if you do 272$0: have one." 273 fi 274 exit 1 275fi 276fi 277fi 278SHELL=${CONFIG_SHELL-/bin/sh} 279export SHELL 280# Unset more variables known to interfere with behavior of common tools. 281CLICOLOR_FORCE= GREP_OPTIONS= 282unset CLICOLOR_FORCE GREP_OPTIONS 283 284## --------------------- ## 285## M4sh Shell Functions. ## 286## --------------------- ## 287# as_fn_unset VAR 288# --------------- 289# Portably unset VAR. 290as_fn_unset () 291{ 292 { eval $1=; unset $1;} 293} 294as_unset=as_fn_unset 295 296# as_fn_set_status STATUS 297# ----------------------- 298# Set $? to STATUS, without forking. 299as_fn_set_status () 300{ 301 return $1 302} # as_fn_set_status 303 304# as_fn_exit STATUS 305# ----------------- 306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 307as_fn_exit () 308{ 309 set +e 310 as_fn_set_status $1 311 exit $1 312} # as_fn_exit 313 314# as_fn_mkdir_p 315# ------------- 316# Create "$as_dir" as a directory, including parents if necessary. 317as_fn_mkdir_p () 318{ 319 320 case $as_dir in #( 321 -*) as_dir=./$as_dir;; 322 esac 323 test -d "$as_dir" || eval $as_mkdir_p || { 324 as_dirs= 325 while :; do 326 case $as_dir in #( 327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 328 *) as_qdir=$as_dir;; 329 esac 330 as_dirs="'$as_qdir' $as_dirs" 331 as_dir=`$as_dirname -- "$as_dir" || 332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 333 X"$as_dir" : 'X\(//\)[^/]' \| \ 334 X"$as_dir" : 'X\(//\)$' \| \ 335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 336$as_echo X"$as_dir" | 337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 338 s//\1/ 339 q 340 } 341 /^X\(\/\/\)[^/].*/{ 342 s//\1/ 343 q 344 } 345 /^X\(\/\/\)$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\).*/{ 350 s//\1/ 351 q 352 } 353 s/.*/./; q'` 354 test -d "$as_dir" && break 355 done 356 test -z "$as_dirs" || eval "mkdir $as_dirs" 357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 358 359 360} # as_fn_mkdir_p 361 362# as_fn_executable_p FILE 363# ----------------------- 364# Test if FILE is an executable regular file. 365as_fn_executable_p () 366{ 367 test -f "$1" && test -x "$1" 368} # as_fn_executable_p 369# as_fn_append VAR VALUE 370# ---------------------- 371# Append the text in VALUE to the end of the definition contained in VAR. Take 372# advantage of any shell optimizations that allow amortized linear growth over 373# repeated appends, instead of the typical quadratic growth present in naive 374# implementations. 375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 376 eval 'as_fn_append () 377 { 378 eval $1+=\$2 379 }' 380else 381 as_fn_append () 382 { 383 eval $1=\$$1\$2 384 } 385fi # as_fn_append 386 387# as_fn_arith ARG... 388# ------------------ 389# Perform arithmetic evaluation on the ARGs, and store the result in the 390# global $as_val. Take advantage of shells that can avoid forks. The arguments 391# must be portable across $(()) and expr. 392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 393 eval 'as_fn_arith () 394 { 395 as_val=$(( $* )) 396 }' 397else 398 as_fn_arith () 399 { 400 as_val=`expr "$@" || test $? -eq 1` 401 } 402fi # as_fn_arith 403 404 405# as_fn_error STATUS ERROR [LINENO LOG_FD] 406# ---------------------------------------- 407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 409# script with STATUS, using 1 if that was 0. 410as_fn_error () 411{ 412 as_status=$1; test $as_status -eq 0 && as_status=1 413 if test "$4"; then 414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 416 fi 417 $as_echo "$as_me: error: $2" >&2 418 as_fn_exit $as_status 419} # as_fn_error 420 421if expr a : '\(a\)' >/dev/null 2>&1 && 422 test "X`expr 00001 : '.*\(...\)'`" = X001; then 423 as_expr=expr 424else 425 as_expr=false 426fi 427 428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 429 as_basename=basename 430else 431 as_basename=false 432fi 433 434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 435 as_dirname=dirname 436else 437 as_dirname=false 438fi 439 440as_me=`$as_basename -- "$0" || 441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 442 X"$0" : 'X\(//\)$' \| \ 443 X"$0" : 'X\(/\)' \| . 2>/dev/null || 444$as_echo X/"$0" | 445 sed '/^.*\/\([^/][^/]*\)\/*$/{ 446 s//\1/ 447 q 448 } 449 /^X\/\(\/\/\)$/{ 450 s//\1/ 451 q 452 } 453 /^X\/\(\/\).*/{ 454 s//\1/ 455 q 456 } 457 s/.*/./; q'` 458 459# Avoid depending upon Character Ranges. 460as_cr_letters='abcdefghijklmnopqrstuvwxyz' 461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 462as_cr_Letters=$as_cr_letters$as_cr_LETTERS 463as_cr_digits='0123456789' 464as_cr_alnum=$as_cr_Letters$as_cr_digits 465 466 467 as_lineno_1=$LINENO as_lineno_1a=$LINENO 468 as_lineno_2=$LINENO as_lineno_2a=$LINENO 469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 472 sed -n ' 473 p 474 /[$]LINENO/= 475 ' <$as_myself | 476 sed ' 477 s/[$]LINENO.*/&-/ 478 t lineno 479 b 480 :lineno 481 N 482 :loop 483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 484 t loop 485 s/-\n.*// 486 ' >$as_me.lineno && 487 chmod +x "$as_me.lineno" || 488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 489 490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 491 # already done that, so ensure we don't try to do so again and fall 492 # in an infinite loop. This has already happened in practice. 493 _as_can_reexec=no; export _as_can_reexec 494 # Don't try to exec as it changes $[0], causing all sort of problems 495 # (the dirname of $[0] is not the place where we might find the 496 # original and so on. Autoconf is especially sensitive to this). 497 . "./$as_me.lineno" 498 # Exit status is that of the last command. 499 exit 500} 501 502ECHO_C= ECHO_N= ECHO_T= 503case `echo -n x` in #((((( 504-n*) 505 case `echo 'xy\c'` in 506 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 507 xy) ECHO_C='\c';; 508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 509 ECHO_T=' ';; 510 esac;; 511*) 512 ECHO_N='-n';; 513esac 514 515rm -f conf$$ conf$$.exe conf$$.file 516if test -d conf$$.dir; then 517 rm -f conf$$.dir/conf$$.file 518else 519 rm -f conf$$.dir 520 mkdir conf$$.dir 2>/dev/null 521fi 522if (echo >conf$$.file) 2>/dev/null; then 523 if ln -s conf$$.file conf$$ 2>/dev/null; then 524 as_ln_s='ln -s' 525 # ... but there are two gotchas: 526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 528 # In both cases, we have to default to `cp -pR'. 529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 530 as_ln_s='cp -pR' 531 elif ln conf$$.file conf$$ 2>/dev/null; then 532 as_ln_s=ln 533 else 534 as_ln_s='cp -pR' 535 fi 536else 537 as_ln_s='cp -pR' 538fi 539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 540rmdir conf$$.dir 2>/dev/null 541 542if mkdir -p . 2>/dev/null; then 543 as_mkdir_p='mkdir -p "$as_dir"' 544else 545 test -d ./-p && rmdir ./-p 546 as_mkdir_p=false 547fi 548 549as_test_x='test -x' 550as_executable_p=as_fn_executable_p 551 552# Sed expression to map a string onto a valid CPP name. 553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 554 555# Sed expression to map a string onto a valid variable name. 556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 557 558 559test -n "$DJDIR" || exec 7<&0 </dev/null 560exec 6>&1 561 562# Name of the host. 563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 564# so uname gets run too. 565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 566 567# 568# Initializations. 569# 570ac_default_prefix=/usr/local 571ac_clean_files= 572ac_config_libobj_dir=. 573LIBOBJS= 574cross_compiling=no 575subdirs= 576MFLAGS= 577MAKEFLAGS= 578 579# Identity of this package. 580PACKAGE_NAME='RcppArmadillo' 581PACKAGE_TARNAME='rcpparmadillo' 582PACKAGE_VERSION='0.10.7.5.0' 583PACKAGE_STRING='RcppArmadillo 0.10.7.5.0' 584PACKAGE_BUGREPORT='edd@debian.org' 585PACKAGE_URL='' 586 587ac_subst_vars='LTLIBOBJS 588LIBOBJS 589OPENMP_FLAG 590ARMA_HAVE_OPENMP 591ARMA_LAPACK 592CXXCPP 593OBJEXT 594EXEEXT 595ac_ct_CXX 596CPPFLAGS 597LDFLAGS 598CXXFLAGS 599CXX 600target_alias 601host_alias 602build_alias 603LIBS 604ECHO_T 605ECHO_N 606ECHO_C 607DEFS 608mandir 609localedir 610libdir 611psdir 612pdfdir 613dvidir 614htmldir 615infodir 616docdir 617oldincludedir 618includedir 619runstatedir 620localstatedir 621sharedstatedir 622sysconfdir 623datadir 624datarootdir 625libexecdir 626sbindir 627bindir 628program_transform_name 629prefix 630exec_prefix 631PACKAGE_URL 632PACKAGE_BUGREPORT 633PACKAGE_STRING 634PACKAGE_VERSION 635PACKAGE_TARNAME 636PACKAGE_NAME 637PATH_SEPARATOR 638SHELL' 639ac_subst_files='' 640ac_user_opts=' 641enable_option_checking 642' 643 ac_precious_vars='build_alias 644host_alias 645target_alias 646CXX 647CXXFLAGS 648LDFLAGS 649LIBS 650CPPFLAGS 651CCC 652CXXCPP' 653 654 655# Initialize some variables set by options. 656ac_init_help= 657ac_init_version=false 658ac_unrecognized_opts= 659ac_unrecognized_sep= 660# The variables have the same names as the options, with 661# dashes changed to underlines. 662cache_file=/dev/null 663exec_prefix=NONE 664no_create= 665no_recursion= 666prefix=NONE 667program_prefix=NONE 668program_suffix=NONE 669program_transform_name=s,x,x, 670silent= 671site= 672srcdir= 673verbose= 674x_includes=NONE 675x_libraries=NONE 676 677# Installation directory options. 678# These are left unexpanded so users can "make install exec_prefix=/foo" 679# and all the variables that are supposed to be based on exec_prefix 680# by default will actually change. 681# Use braces instead of parens because sh, perl, etc. also accept them. 682# (The list follows the same order as the GNU Coding Standards.) 683bindir='${exec_prefix}/bin' 684sbindir='${exec_prefix}/sbin' 685libexecdir='${exec_prefix}/libexec' 686datarootdir='${prefix}/share' 687datadir='${datarootdir}' 688sysconfdir='${prefix}/etc' 689sharedstatedir='${prefix}/com' 690localstatedir='${prefix}/var' 691runstatedir='${localstatedir}/run' 692includedir='${prefix}/include' 693oldincludedir='/usr/include' 694docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 695infodir='${datarootdir}/info' 696htmldir='${docdir}' 697dvidir='${docdir}' 698pdfdir='${docdir}' 699psdir='${docdir}' 700libdir='${exec_prefix}/lib' 701localedir='${datarootdir}/locale' 702mandir='${datarootdir}/man' 703 704ac_prev= 705ac_dashdash= 706for ac_option 707do 708 # If the previous option needs an argument, assign it. 709 if test -n "$ac_prev"; then 710 eval $ac_prev=\$ac_option 711 ac_prev= 712 continue 713 fi 714 715 case $ac_option in 716 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 717 *=) ac_optarg= ;; 718 *) ac_optarg=yes ;; 719 esac 720 721 # Accept the important Cygnus configure options, so we can diagnose typos. 722 723 case $ac_dashdash$ac_option in 724 --) 725 ac_dashdash=yes ;; 726 727 -bindir | --bindir | --bindi | --bind | --bin | --bi) 728 ac_prev=bindir ;; 729 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 730 bindir=$ac_optarg ;; 731 732 -build | --build | --buil | --bui | --bu) 733 ac_prev=build_alias ;; 734 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 735 build_alias=$ac_optarg ;; 736 737 -cache-file | --cache-file | --cache-fil | --cache-fi \ 738 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 739 ac_prev=cache_file ;; 740 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 741 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 742 cache_file=$ac_optarg ;; 743 744 --config-cache | -C) 745 cache_file=config.cache ;; 746 747 -datadir | --datadir | --datadi | --datad) 748 ac_prev=datadir ;; 749 -datadir=* | --datadir=* | --datadi=* | --datad=*) 750 datadir=$ac_optarg ;; 751 752 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 753 | --dataroo | --dataro | --datar) 754 ac_prev=datarootdir ;; 755 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 756 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 757 datarootdir=$ac_optarg ;; 758 759 -disable-* | --disable-*) 760 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 761 # Reject names that are not valid shell variable names. 762 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 763 as_fn_error $? "invalid feature name: $ac_useropt" 764 ac_useropt_orig=$ac_useropt 765 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 766 case $ac_user_opts in 767 *" 768"enable_$ac_useropt" 769"*) ;; 770 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 771 ac_unrecognized_sep=', ';; 772 esac 773 eval enable_$ac_useropt=no ;; 774 775 -docdir | --docdir | --docdi | --doc | --do) 776 ac_prev=docdir ;; 777 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 778 docdir=$ac_optarg ;; 779 780 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 781 ac_prev=dvidir ;; 782 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 783 dvidir=$ac_optarg ;; 784 785 -enable-* | --enable-*) 786 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 789 as_fn_error $? "invalid feature name: $ac_useropt" 790 ac_useropt_orig=$ac_useropt 791 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 792 case $ac_user_opts in 793 *" 794"enable_$ac_useropt" 795"*) ;; 796 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 797 ac_unrecognized_sep=', ';; 798 esac 799 eval enable_$ac_useropt=\$ac_optarg ;; 800 801 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 802 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 803 | --exec | --exe | --ex) 804 ac_prev=exec_prefix ;; 805 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 806 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 807 | --exec=* | --exe=* | --ex=*) 808 exec_prefix=$ac_optarg ;; 809 810 -gas | --gas | --ga | --g) 811 # Obsolete; use --with-gas. 812 with_gas=yes ;; 813 814 -help | --help | --hel | --he | -h) 815 ac_init_help=long ;; 816 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 817 ac_init_help=recursive ;; 818 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 819 ac_init_help=short ;; 820 821 -host | --host | --hos | --ho) 822 ac_prev=host_alias ;; 823 -host=* | --host=* | --hos=* | --ho=*) 824 host_alias=$ac_optarg ;; 825 826 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 827 ac_prev=htmldir ;; 828 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 829 | --ht=*) 830 htmldir=$ac_optarg ;; 831 832 -includedir | --includedir | --includedi | --included | --include \ 833 | --includ | --inclu | --incl | --inc) 834 ac_prev=includedir ;; 835 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 836 | --includ=* | --inclu=* | --incl=* | --inc=*) 837 includedir=$ac_optarg ;; 838 839 -infodir | --infodir | --infodi | --infod | --info | --inf) 840 ac_prev=infodir ;; 841 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 842 infodir=$ac_optarg ;; 843 844 -libdir | --libdir | --libdi | --libd) 845 ac_prev=libdir ;; 846 -libdir=* | --libdir=* | --libdi=* | --libd=*) 847 libdir=$ac_optarg ;; 848 849 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 850 | --libexe | --libex | --libe) 851 ac_prev=libexecdir ;; 852 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 853 | --libexe=* | --libex=* | --libe=*) 854 libexecdir=$ac_optarg ;; 855 856 -localedir | --localedir | --localedi | --localed | --locale) 857 ac_prev=localedir ;; 858 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 859 localedir=$ac_optarg ;; 860 861 -localstatedir | --localstatedir | --localstatedi | --localstated \ 862 | --localstate | --localstat | --localsta | --localst | --locals) 863 ac_prev=localstatedir ;; 864 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 865 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 866 localstatedir=$ac_optarg ;; 867 868 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 869 ac_prev=mandir ;; 870 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 871 mandir=$ac_optarg ;; 872 873 -nfp | --nfp | --nf) 874 # Obsolete; use --without-fp. 875 with_fp=no ;; 876 877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 878 | --no-cr | --no-c | -n) 879 no_create=yes ;; 880 881 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 882 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 883 no_recursion=yes ;; 884 885 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 886 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 887 | --oldin | --oldi | --old | --ol | --o) 888 ac_prev=oldincludedir ;; 889 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 890 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 891 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 892 oldincludedir=$ac_optarg ;; 893 894 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 895 ac_prev=prefix ;; 896 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 897 prefix=$ac_optarg ;; 898 899 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 900 | --program-pre | --program-pr | --program-p) 901 ac_prev=program_prefix ;; 902 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 903 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 904 program_prefix=$ac_optarg ;; 905 906 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 907 | --program-suf | --program-su | --program-s) 908 ac_prev=program_suffix ;; 909 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 910 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 911 program_suffix=$ac_optarg ;; 912 913 -program-transform-name | --program-transform-name \ 914 | --program-transform-nam | --program-transform-na \ 915 | --program-transform-n | --program-transform- \ 916 | --program-transform | --program-transfor \ 917 | --program-transfo | --program-transf \ 918 | --program-trans | --program-tran \ 919 | --progr-tra | --program-tr | --program-t) 920 ac_prev=program_transform_name ;; 921 -program-transform-name=* | --program-transform-name=* \ 922 | --program-transform-nam=* | --program-transform-na=* \ 923 | --program-transform-n=* | --program-transform-=* \ 924 | --program-transform=* | --program-transfor=* \ 925 | --program-transfo=* | --program-transf=* \ 926 | --program-trans=* | --program-tran=* \ 927 | --progr-tra=* | --program-tr=* | --program-t=*) 928 program_transform_name=$ac_optarg ;; 929 930 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 931 ac_prev=pdfdir ;; 932 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 933 pdfdir=$ac_optarg ;; 934 935 -psdir | --psdir | --psdi | --psd | --ps) 936 ac_prev=psdir ;; 937 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 938 psdir=$ac_optarg ;; 939 940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 941 | -silent | --silent | --silen | --sile | --sil) 942 silent=yes ;; 943 944 -runstatedir | --runstatedir | --runstatedi | --runstated \ 945 | --runstate | --runstat | --runsta | --runst | --runs \ 946 | --run | --ru | --r) 947 ac_prev=runstatedir ;; 948 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 949 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 950 | --run=* | --ru=* | --r=*) 951 runstatedir=$ac_optarg ;; 952 953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 954 ac_prev=sbindir ;; 955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 956 | --sbi=* | --sb=*) 957 sbindir=$ac_optarg ;; 958 959 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 961 | --sharedst | --shareds | --shared | --share | --shar \ 962 | --sha | --sh) 963 ac_prev=sharedstatedir ;; 964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 967 | --sha=* | --sh=*) 968 sharedstatedir=$ac_optarg ;; 969 970 -site | --site | --sit) 971 ac_prev=site ;; 972 -site=* | --site=* | --sit=*) 973 site=$ac_optarg ;; 974 975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 976 ac_prev=srcdir ;; 977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 978 srcdir=$ac_optarg ;; 979 980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 981 | --syscon | --sysco | --sysc | --sys | --sy) 982 ac_prev=sysconfdir ;; 983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 985 sysconfdir=$ac_optarg ;; 986 987 -target | --target | --targe | --targ | --tar | --ta | --t) 988 ac_prev=target_alias ;; 989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 990 target_alias=$ac_optarg ;; 991 992 -v | -verbose | --verbose | --verbos | --verbo | --verb) 993 verbose=yes ;; 994 995 -version | --version | --versio | --versi | --vers | -V) 996 ac_init_version=: ;; 997 998 -with-* | --with-*) 999 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1000 # Reject names that are not valid shell variable names. 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1002 as_fn_error $? "invalid package name: $ac_useropt" 1003 ac_useropt_orig=$ac_useropt 1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1005 case $ac_user_opts in 1006 *" 1007"with_$ac_useropt" 1008"*) ;; 1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1010 ac_unrecognized_sep=', ';; 1011 esac 1012 eval with_$ac_useropt=\$ac_optarg ;; 1013 1014 -without-* | --without-*) 1015 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1016 # Reject names that are not valid shell variable names. 1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1018 as_fn_error $? "invalid package name: $ac_useropt" 1019 ac_useropt_orig=$ac_useropt 1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1021 case $ac_user_opts in 1022 *" 1023"with_$ac_useropt" 1024"*) ;; 1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1026 ac_unrecognized_sep=', ';; 1027 esac 1028 eval with_$ac_useropt=no ;; 1029 1030 --x) 1031 # Obsolete; use --with-x. 1032 with_x=yes ;; 1033 1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1035 | --x-incl | --x-inc | --x-in | --x-i) 1036 ac_prev=x_includes ;; 1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1039 x_includes=$ac_optarg ;; 1040 1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1043 ac_prev=x_libraries ;; 1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1046 x_libraries=$ac_optarg ;; 1047 1048 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1049Try \`$0 --help' for more information" 1050 ;; 1051 1052 *=*) 1053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1054 # Reject names that are not valid shell variable names. 1055 case $ac_envvar in #( 1056 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1057 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1058 esac 1059 eval $ac_envvar=\$ac_optarg 1060 export $ac_envvar ;; 1061 1062 *) 1063 # FIXME: should be removed in autoconf 3.0. 1064 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1066 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1067 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1068 ;; 1069 1070 esac 1071done 1072 1073if test -n "$ac_prev"; then 1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1075 as_fn_error $? "missing argument to $ac_option" 1076fi 1077 1078if test -n "$ac_unrecognized_opts"; then 1079 case $enable_option_checking in 1080 no) ;; 1081 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1082 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1083 esac 1084fi 1085 1086# Check all directory arguments for consistency. 1087for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1088 datadir sysconfdir sharedstatedir localstatedir includedir \ 1089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1090 libdir localedir mandir runstatedir 1091do 1092 eval ac_val=\$$ac_var 1093 # Remove trailing slashes. 1094 case $ac_val in 1095 */ ) 1096 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1097 eval $ac_var=\$ac_val;; 1098 esac 1099 # Be sure to have absolute directory names. 1100 case $ac_val in 1101 [\\/$]* | ?:[\\/]* ) continue;; 1102 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1103 esac 1104 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1105done 1106 1107# There might be people who depend on the old broken behavior: `$host' 1108# used to hold the argument of --host etc. 1109# FIXME: To remove some day. 1110build=$build_alias 1111host=$host_alias 1112target=$target_alias 1113 1114# FIXME: To remove some day. 1115if test "x$host_alias" != x; then 1116 if test "x$build_alias" = x; then 1117 cross_compiling=maybe 1118 elif test "x$build_alias" != "x$host_alias"; then 1119 cross_compiling=yes 1120 fi 1121fi 1122 1123ac_tool_prefix= 1124test -n "$host_alias" && ac_tool_prefix=$host_alias- 1125 1126test "$silent" = yes && exec 6>/dev/null 1127 1128 1129ac_pwd=`pwd` && test -n "$ac_pwd" && 1130ac_ls_di=`ls -di .` && 1131ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1132 as_fn_error $? "working directory cannot be determined" 1133test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1134 as_fn_error $? "pwd does not report name of working directory" 1135 1136 1137# Find the source files, if location was not specified. 1138if test -z "$srcdir"; then 1139 ac_srcdir_defaulted=yes 1140 # Try the directory containing this script, then the parent directory. 1141 ac_confdir=`$as_dirname -- "$as_myself" || 1142$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1143 X"$as_myself" : 'X\(//\)[^/]' \| \ 1144 X"$as_myself" : 'X\(//\)$' \| \ 1145 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1146$as_echo X"$as_myself" | 1147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1148 s//\1/ 1149 q 1150 } 1151 /^X\(\/\/\)[^/].*/{ 1152 s//\1/ 1153 q 1154 } 1155 /^X\(\/\/\)$/{ 1156 s//\1/ 1157 q 1158 } 1159 /^X\(\/\).*/{ 1160 s//\1/ 1161 q 1162 } 1163 s/.*/./; q'` 1164 srcdir=$ac_confdir 1165 if test ! -r "$srcdir/$ac_unique_file"; then 1166 srcdir=.. 1167 fi 1168else 1169 ac_srcdir_defaulted=no 1170fi 1171if test ! -r "$srcdir/$ac_unique_file"; then 1172 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1173 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1174fi 1175ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1176ac_abs_confdir=`( 1177 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1178 pwd)` 1179# When building in place, set srcdir=. 1180if test "$ac_abs_confdir" = "$ac_pwd"; then 1181 srcdir=. 1182fi 1183# Remove unnecessary trailing slashes from srcdir. 1184# Double slashes in file names in object file debugging info 1185# mess up M-x gdb in Emacs. 1186case $srcdir in 1187*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1188esac 1189for ac_var in $ac_precious_vars; do 1190 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1191 eval ac_env_${ac_var}_value=\$${ac_var} 1192 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1193 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1194done 1195 1196# 1197# Report the --help message. 1198# 1199if test "$ac_init_help" = "long"; then 1200 # Omit some internal or obsolete options to make the list less imposing. 1201 # This message is too long to be a string in the A/UX 3.1 sh. 1202 cat <<_ACEOF 1203\`configure' configures RcppArmadillo 0.10.7.5.0 to adapt to many kinds of systems. 1204 1205Usage: $0 [OPTION]... [VAR=VALUE]... 1206 1207To assign environment variables (e.g., CC, CFLAGS...), specify them as 1208VAR=VALUE. See below for descriptions of some of the useful variables. 1209 1210Defaults for the options are specified in brackets. 1211 1212Configuration: 1213 -h, --help display this help and exit 1214 --help=short display options specific to this package 1215 --help=recursive display the short help of all the included packages 1216 -V, --version display version information and exit 1217 -q, --quiet, --silent do not print \`checking ...' messages 1218 --cache-file=FILE cache test results in FILE [disabled] 1219 -C, --config-cache alias for \`--cache-file=config.cache' 1220 -n, --no-create do not create output files 1221 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1222 1223Installation directories: 1224 --prefix=PREFIX install architecture-independent files in PREFIX 1225 [$ac_default_prefix] 1226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1227 [PREFIX] 1228 1229By default, \`make install' will install all the files in 1230\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1231an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1232for instance \`--prefix=\$HOME'. 1233 1234For better control, use the options below. 1235 1236Fine tuning of the installation directories: 1237 --bindir=DIR user executables [EPREFIX/bin] 1238 --sbindir=DIR system admin executables [EPREFIX/sbin] 1239 --libexecdir=DIR program executables [EPREFIX/libexec] 1240 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1241 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1242 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1243 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1244 --libdir=DIR object code libraries [EPREFIX/lib] 1245 --includedir=DIR C header files [PREFIX/include] 1246 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1249 --infodir=DIR info documentation [DATAROOTDIR/info] 1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1251 --mandir=DIR man documentation [DATAROOTDIR/man] 1252 --docdir=DIR documentation root [DATAROOTDIR/doc/rcpparmadillo] 1253 --htmldir=DIR html documentation [DOCDIR] 1254 --dvidir=DIR dvi documentation [DOCDIR] 1255 --pdfdir=DIR pdf documentation [DOCDIR] 1256 --psdir=DIR ps documentation [DOCDIR] 1257_ACEOF 1258 1259 cat <<\_ACEOF 1260_ACEOF 1261fi 1262 1263if test -n "$ac_init_help"; then 1264 case $ac_init_help in 1265 short | recursive ) echo "Configuration of RcppArmadillo 0.10.7.5.0:";; 1266 esac 1267 cat <<\_ACEOF 1268 1269Some influential environment variables: 1270 CXX C++ compiler command 1271 CXXFLAGS C++ compiler flags 1272 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1273 nonstandard directory <lib dir> 1274 LIBS libraries to pass to the linker, e.g. -l<library> 1275 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1276 you have headers in a nonstandard directory <include dir> 1277 CXXCPP C++ preprocessor 1278 1279Use these variables to override the choices made by `configure' or to help 1280it to find libraries and programs with nonstandard names/locations. 1281 1282Report bugs to <edd@debian.org>. 1283_ACEOF 1284ac_status=$? 1285fi 1286 1287if test "$ac_init_help" = "recursive"; then 1288 # If there are subdirs, report their specific --help. 1289 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1290 test -d "$ac_dir" || 1291 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1292 continue 1293 ac_builddir=. 1294 1295case "$ac_dir" in 1296.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1297*) 1298 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1299 # A ".." for each directory in $ac_dir_suffix. 1300 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1301 case $ac_top_builddir_sub in 1302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1304 esac ;; 1305esac 1306ac_abs_top_builddir=$ac_pwd 1307ac_abs_builddir=$ac_pwd$ac_dir_suffix 1308# for backward compatibility: 1309ac_top_builddir=$ac_top_build_prefix 1310 1311case $srcdir in 1312 .) # We are building in place. 1313 ac_srcdir=. 1314 ac_top_srcdir=$ac_top_builddir_sub 1315 ac_abs_top_srcdir=$ac_pwd ;; 1316 [\\/]* | ?:[\\/]* ) # Absolute name. 1317 ac_srcdir=$srcdir$ac_dir_suffix; 1318 ac_top_srcdir=$srcdir 1319 ac_abs_top_srcdir=$srcdir ;; 1320 *) # Relative name. 1321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1322 ac_top_srcdir=$ac_top_build_prefix$srcdir 1323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1324esac 1325ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1326 1327 cd "$ac_dir" || { ac_status=$?; continue; } 1328 # Check for guested configure. 1329 if test -f "$ac_srcdir/configure.gnu"; then 1330 echo && 1331 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1332 elif test -f "$ac_srcdir/configure"; then 1333 echo && 1334 $SHELL "$ac_srcdir/configure" --help=recursive 1335 else 1336 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1337 fi || ac_status=$? 1338 cd "$ac_pwd" || { ac_status=$?; break; } 1339 done 1340fi 1341 1342test -n "$ac_init_help" && exit $ac_status 1343if $ac_init_version; then 1344 cat <<\_ACEOF 1345RcppArmadillo configure 0.10.7.5.0 1346generated by GNU Autoconf 2.69 1347 1348Copyright (C) 2012 Free Software Foundation, Inc. 1349This configure script is free software; the Free Software Foundation 1350gives unlimited permission to copy, distribute and modify it. 1351_ACEOF 1352 exit 1353fi 1354 1355## ------------------------ ## 1356## Autoconf initialization. ## 1357## ------------------------ ## 1358 1359# ac_fn_cxx_try_compile LINENO 1360# ---------------------------- 1361# Try to compile conftest.$ac_ext, and return whether this succeeded. 1362ac_fn_cxx_try_compile () 1363{ 1364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1365 rm -f conftest.$ac_objext 1366 if { { ac_try="$ac_compile" 1367case "(($ac_try" in 1368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1369 *) ac_try_echo=$ac_try;; 1370esac 1371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1372$as_echo "$ac_try_echo"; } >&5 1373 (eval "$ac_compile") 2>conftest.err 1374 ac_status=$? 1375 if test -s conftest.err; then 1376 grep -v '^ *+' conftest.err >conftest.er1 1377 cat conftest.er1 >&5 1378 mv -f conftest.er1 conftest.err 1379 fi 1380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1381 test $ac_status = 0; } && { 1382 test -z "$ac_cxx_werror_flag" || 1383 test ! -s conftest.err 1384 } && test -s conftest.$ac_objext; then : 1385 ac_retval=0 1386else 1387 $as_echo "$as_me: failed program was:" >&5 1388sed 's/^/| /' conftest.$ac_ext >&5 1389 1390 ac_retval=1 1391fi 1392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1393 as_fn_set_status $ac_retval 1394 1395} # ac_fn_cxx_try_compile 1396 1397# ac_fn_cxx_try_cpp LINENO 1398# ------------------------ 1399# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1400ac_fn_cxx_try_cpp () 1401{ 1402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1403 if { { ac_try="$ac_cpp conftest.$ac_ext" 1404case "(($ac_try" in 1405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1406 *) ac_try_echo=$ac_try;; 1407esac 1408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1409$as_echo "$ac_try_echo"; } >&5 1410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1411 ac_status=$? 1412 if test -s conftest.err; then 1413 grep -v '^ *+' conftest.err >conftest.er1 1414 cat conftest.er1 >&5 1415 mv -f conftest.er1 conftest.err 1416 fi 1417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1418 test $ac_status = 0; } > conftest.i && { 1419 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1420 test ! -s conftest.err 1421 }; then : 1422 ac_retval=0 1423else 1424 $as_echo "$as_me: failed program was:" >&5 1425sed 's/^/| /' conftest.$ac_ext >&5 1426 1427 ac_retval=1 1428fi 1429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1430 as_fn_set_status $ac_retval 1431 1432} # ac_fn_cxx_try_cpp 1433cat >config.log <<_ACEOF 1434This file contains any messages produced by compilers while 1435running configure, to aid debugging if configure makes a mistake. 1436 1437It was created by RcppArmadillo $as_me 0.10.7.5.0, which was 1438generated by GNU Autoconf 2.69. Invocation command line was 1439 1440 $ $0 $@ 1441 1442_ACEOF 1443exec 5>>config.log 1444{ 1445cat <<_ASUNAME 1446## --------- ## 1447## Platform. ## 1448## --------- ## 1449 1450hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1451uname -m = `(uname -m) 2>/dev/null || echo unknown` 1452uname -r = `(uname -r) 2>/dev/null || echo unknown` 1453uname -s = `(uname -s) 2>/dev/null || echo unknown` 1454uname -v = `(uname -v) 2>/dev/null || echo unknown` 1455 1456/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1457/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1458 1459/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1460/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1462/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1463/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1464/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1465/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1466 1467_ASUNAME 1468 1469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1470for as_dir in $PATH 1471do 1472 IFS=$as_save_IFS 1473 test -z "$as_dir" && as_dir=. 1474 $as_echo "PATH: $as_dir" 1475 done 1476IFS=$as_save_IFS 1477 1478} >&5 1479 1480cat >&5 <<_ACEOF 1481 1482 1483## ----------- ## 1484## Core tests. ## 1485## ----------- ## 1486 1487_ACEOF 1488 1489 1490# Keep a trace of the command line. 1491# Strip out --no-create and --no-recursion so they do not pile up. 1492# Strip out --silent because we don't want to record it for future runs. 1493# Also quote any args containing shell meta-characters. 1494# Make two passes to allow for proper duplicate-argument suppression. 1495ac_configure_args= 1496ac_configure_args0= 1497ac_configure_args1= 1498ac_must_keep_next=false 1499for ac_pass in 1 2 1500do 1501 for ac_arg 1502 do 1503 case $ac_arg in 1504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1506 | -silent | --silent | --silen | --sile | --sil) 1507 continue ;; 1508 *\'*) 1509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1510 esac 1511 case $ac_pass in 1512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1513 2) 1514 as_fn_append ac_configure_args1 " '$ac_arg'" 1515 if test $ac_must_keep_next = true; then 1516 ac_must_keep_next=false # Got value, back to normal. 1517 else 1518 case $ac_arg in 1519 *=* | --config-cache | -C | -disable-* | --disable-* \ 1520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1522 | -with-* | --with-* | -without-* | --without-* | --x) 1523 case "$ac_configure_args0 " in 1524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1525 esac 1526 ;; 1527 -* ) ac_must_keep_next=true ;; 1528 esac 1529 fi 1530 as_fn_append ac_configure_args " '$ac_arg'" 1531 ;; 1532 esac 1533 done 1534done 1535{ ac_configure_args0=; unset ac_configure_args0;} 1536{ ac_configure_args1=; unset ac_configure_args1;} 1537 1538# When interrupted or exit'd, cleanup temporary files, and complete 1539# config.log. We remove comments because anyway the quotes in there 1540# would cause problems or look ugly. 1541# WARNING: Use '\'' to represent an apostrophe within the trap. 1542# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1543trap 'exit_status=$? 1544 # Save into config.log some information that might help in debugging. 1545 { 1546 echo 1547 1548 $as_echo "## ---------------- ## 1549## Cache variables. ## 1550## ---------------- ##" 1551 echo 1552 # The following way of writing the cache mishandles newlines in values, 1553( 1554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1555 eval ac_val=\$$ac_var 1556 case $ac_val in #( 1557 *${as_nl}*) 1558 case $ac_var in #( 1559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1560$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1561 esac 1562 case $ac_var in #( 1563 _ | IFS | as_nl) ;; #( 1564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1565 *) { eval $ac_var=; unset $ac_var;} ;; 1566 esac ;; 1567 esac 1568 done 1569 (set) 2>&1 | 1570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1571 *${as_nl}ac_space=\ *) 1572 sed -n \ 1573 "s/'\''/'\''\\\\'\'''\''/g; 1574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1575 ;; #( 1576 *) 1577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1578 ;; 1579 esac | 1580 sort 1581) 1582 echo 1583 1584 $as_echo "## ----------------- ## 1585## Output variables. ## 1586## ----------------- ##" 1587 echo 1588 for ac_var in $ac_subst_vars 1589 do 1590 eval ac_val=\$$ac_var 1591 case $ac_val in 1592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1593 esac 1594 $as_echo "$ac_var='\''$ac_val'\''" 1595 done | sort 1596 echo 1597 1598 if test -n "$ac_subst_files"; then 1599 $as_echo "## ------------------- ## 1600## File substitutions. ## 1601## ------------------- ##" 1602 echo 1603 for ac_var in $ac_subst_files 1604 do 1605 eval ac_val=\$$ac_var 1606 case $ac_val in 1607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1608 esac 1609 $as_echo "$ac_var='\''$ac_val'\''" 1610 done | sort 1611 echo 1612 fi 1613 1614 if test -s confdefs.h; then 1615 $as_echo "## ----------- ## 1616## confdefs.h. ## 1617## ----------- ##" 1618 echo 1619 cat confdefs.h 1620 echo 1621 fi 1622 test "$ac_signal" != 0 && 1623 $as_echo "$as_me: caught signal $ac_signal" 1624 $as_echo "$as_me: exit $exit_status" 1625 } >&5 1626 rm -f core *.core core.conftest.* && 1627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1628 exit $exit_status 1629' 0 1630for ac_signal in 1 2 13 15; do 1631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1632done 1633ac_signal=0 1634 1635# confdefs.h avoids OS command line length limits that DEFS can exceed. 1636rm -f -r conftest* confdefs.h 1637 1638$as_echo "/* confdefs.h */" > confdefs.h 1639 1640# Predefined preprocessor variables. 1641 1642cat >>confdefs.h <<_ACEOF 1643#define PACKAGE_NAME "$PACKAGE_NAME" 1644_ACEOF 1645 1646cat >>confdefs.h <<_ACEOF 1647#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1648_ACEOF 1649 1650cat >>confdefs.h <<_ACEOF 1651#define PACKAGE_VERSION "$PACKAGE_VERSION" 1652_ACEOF 1653 1654cat >>confdefs.h <<_ACEOF 1655#define PACKAGE_STRING "$PACKAGE_STRING" 1656_ACEOF 1657 1658cat >>confdefs.h <<_ACEOF 1659#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1660_ACEOF 1661 1662cat >>confdefs.h <<_ACEOF 1663#define PACKAGE_URL "$PACKAGE_URL" 1664_ACEOF 1665 1666 1667# Let the site file select an alternate cache file if it wants to. 1668# Prefer an explicitly selected file to automatically selected ones. 1669ac_site_file1=NONE 1670ac_site_file2=NONE 1671if test -n "$CONFIG_SITE"; then 1672 # We do not want a PATH search for config.site. 1673 case $CONFIG_SITE in #(( 1674 -*) ac_site_file1=./$CONFIG_SITE;; 1675 */*) ac_site_file1=$CONFIG_SITE;; 1676 *) ac_site_file1=./$CONFIG_SITE;; 1677 esac 1678elif test "x$prefix" != xNONE; then 1679 ac_site_file1=$prefix/share/config.site 1680 ac_site_file2=$prefix/etc/config.site 1681else 1682 ac_site_file1=$ac_default_prefix/share/config.site 1683 ac_site_file2=$ac_default_prefix/etc/config.site 1684fi 1685for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1686do 1687 test "x$ac_site_file" = xNONE && continue 1688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1690$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1691 sed 's/^/| /' "$ac_site_file" >&5 1692 . "$ac_site_file" \ 1693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1695as_fn_error $? "failed to load site script $ac_site_file 1696See \`config.log' for more details" "$LINENO" 5; } 1697 fi 1698done 1699 1700if test -r "$cache_file"; then 1701 # Some versions of bash will fail to source /dev/null (special files 1702 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1705$as_echo "$as_me: loading cache $cache_file" >&6;} 1706 case $cache_file in 1707 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1708 *) . "./$cache_file";; 1709 esac 1710 fi 1711else 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1713$as_echo "$as_me: creating cache $cache_file" >&6;} 1714 >$cache_file 1715fi 1716 1717# Check that the precious variables saved in the cache have kept the same 1718# value. 1719ac_cache_corrupted=false 1720for ac_var in $ac_precious_vars; do 1721 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1722 eval ac_new_set=\$ac_env_${ac_var}_set 1723 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1724 eval ac_new_val=\$ac_env_${ac_var}_value 1725 case $ac_old_set,$ac_new_set in 1726 set,) 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1728$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1729 ac_cache_corrupted=: ;; 1730 ,set) 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1732$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1733 ac_cache_corrupted=: ;; 1734 ,);; 1735 *) 1736 if test "x$ac_old_val" != "x$ac_new_val"; then 1737 # differences in whitespace do not lead to failure. 1738 ac_old_val_w=`echo x $ac_old_val` 1739 ac_new_val_w=`echo x $ac_new_val` 1740 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1742$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1743 ac_cache_corrupted=: 1744 else 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1746$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1747 eval $ac_var=\$ac_old_val 1748 fi 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1750$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1752$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1753 fi;; 1754 esac 1755 # Pass precious variables to config.status. 1756 if test "$ac_new_set" = set; then 1757 case $ac_new_val in 1758 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1759 *) ac_arg=$ac_var=$ac_new_val ;; 1760 esac 1761 case " $ac_configure_args " in 1762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1763 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1764 esac 1765 fi 1766done 1767if $ac_cache_corrupted; then 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1771$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1772 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1773fi 1774## -------------------- ## 1775## Main body of script. ## 1776## -------------------- ## 1777 1778ac_ext=c 1779ac_cpp='$CPP $CPPFLAGS' 1780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1782ac_compiler_gnu=$ac_cv_c_compiler_gnu 1783 1784 1785 1786## Set R_HOME, respecting an environment variable if one is set 1787: ${R_HOME=$(R RHOME)} 1788if test -z "${R_HOME}"; then 1789 as_fn_error $? "Could not determine R_HOME." "$LINENO" 5 1790fi 1791 1792## Use R to set CXX and CXXFLAGS 1793CXX=$(${R_HOME}/bin/R CMD config CXX) 1794CXXFLAGS=$("${R_HOME}/bin/R" CMD config CXXFLAGS) 1795 1796## We are using C++ 1797ac_ext=cpp 1798ac_cpp='$CXXCPP $CPPFLAGS' 1799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1802 1803ac_ext=cpp 1804ac_cpp='$CXXCPP $CPPFLAGS' 1805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1808if test -z "$CXX"; then 1809 if test -n "$CCC"; then 1810 CXX=$CCC 1811 else 1812 if test -n "$ac_tool_prefix"; then 1813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 1814 do 1815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1818$as_echo_n "checking for $ac_word... " >&6; } 1819if ${ac_cv_prog_CXX+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 if test -n "$CXX"; then 1823 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1824else 1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1826for as_dir in $PATH 1827do 1828 IFS=$as_save_IFS 1829 test -z "$as_dir" && as_dir=. 1830 for ac_exec_ext in '' $ac_executable_extensions; do 1831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1834 break 2 1835 fi 1836done 1837 done 1838IFS=$as_save_IFS 1839 1840fi 1841fi 1842CXX=$ac_cv_prog_CXX 1843if test -n "$CXX"; then 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 1845$as_echo "$CXX" >&6; } 1846else 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1848$as_echo "no" >&6; } 1849fi 1850 1851 1852 test -n "$CXX" && break 1853 done 1854fi 1855if test -z "$CXX"; then 1856 ac_ct_CXX=$CXX 1857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 1858do 1859 # Extract the first word of "$ac_prog", so it can be a program name with args. 1860set dummy $ac_prog; ac_word=$2 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1862$as_echo_n "checking for $ac_word... " >&6; } 1863if ${ac_cv_prog_ac_ct_CXX+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 if test -n "$ac_ct_CXX"; then 1867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1868else 1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1870for as_dir in $PATH 1871do 1872 IFS=$as_save_IFS 1873 test -z "$as_dir" && as_dir=. 1874 for ac_exec_ext in '' $ac_executable_extensions; do 1875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1876 ac_cv_prog_ac_ct_CXX="$ac_prog" 1877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1878 break 2 1879 fi 1880done 1881 done 1882IFS=$as_save_IFS 1883 1884fi 1885fi 1886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1887if test -n "$ac_ct_CXX"; then 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 1889$as_echo "$ac_ct_CXX" >&6; } 1890else 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1892$as_echo "no" >&6; } 1893fi 1894 1895 1896 test -n "$ac_ct_CXX" && break 1897done 1898 1899 if test "x$ac_ct_CXX" = x; then 1900 CXX="g++" 1901 else 1902 case $cross_compiling:$ac_tool_warned in 1903yes:) 1904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 1905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 1906ac_tool_warned=yes ;; 1907esac 1908 CXX=$ac_ct_CXX 1909 fi 1910fi 1911 1912 fi 1913fi 1914# Provide some information about the compiler. 1915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 1916set X $ac_compile 1917ac_compiler=$2 1918for ac_option in --version -v -V -qversion; do 1919 { { ac_try="$ac_compiler $ac_option >&5" 1920case "(($ac_try" in 1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1922 *) ac_try_echo=$ac_try;; 1923esac 1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1925$as_echo "$ac_try_echo"; } >&5 1926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 1927 ac_status=$? 1928 if test -s conftest.err; then 1929 sed '10a\ 1930... rest of stderr output deleted ... 1931 10q' conftest.err >conftest.er1 1932 cat conftest.er1 >&5 1933 fi 1934 rm -f conftest.er1 conftest.err 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; } 1937done 1938 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941 1942int 1943main () 1944{ 1945 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950ac_clean_files_save=$ac_clean_files 1951ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 1952# Try to create an executable without -o first, disregard a.out. 1953# It will help us diagnose broken compilers, and finding out an intuition 1954# of exeext. 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 1956$as_echo_n "checking whether the C++ compiler works... " >&6; } 1957ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1958 1959# The possible output files: 1960ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 1961 1962ac_rmfiles= 1963for ac_file in $ac_files 1964do 1965 case $ac_file in 1966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 1967 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 1968 esac 1969done 1970rm -f $ac_rmfiles 1971 1972if { { ac_try="$ac_link_default" 1973case "(($ac_try" in 1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1975 *) ac_try_echo=$ac_try;; 1976esac 1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1978$as_echo "$ac_try_echo"; } >&5 1979 (eval "$ac_link_default") 2>&5 1980 ac_status=$? 1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1982 test $ac_status = 0; }; then : 1983 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 1984# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 1985# in a Makefile. We should not override ac_cv_exeext if it was cached, 1986# so that the user can short-circuit this test for compilers unknown to 1987# Autoconf. 1988for ac_file in $ac_files '' 1989do 1990 test -f "$ac_file" || continue 1991 case $ac_file in 1992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 1993 ;; 1994 [ab].out ) 1995 # We found the default executable, but exeext='' is most 1996 # certainly right. 1997 break;; 1998 *.* ) 1999 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2000 then :; else 2001 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2002 fi 2003 # We set ac_cv_exeext here because the later test for it is not 2004 # safe: cross compilers may not add the suffix if given an `-o' 2005 # argument, so we may need to know it at that point already. 2006 # Even if this section looks crufty: it has the advantage of 2007 # actually working. 2008 break;; 2009 * ) 2010 break;; 2011 esac 2012done 2013test "$ac_cv_exeext" = no && ac_cv_exeext= 2014 2015else 2016 ac_file='' 2017fi 2018if test -z "$ac_file"; then : 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2020$as_echo "no" >&6; } 2021$as_echo "$as_me: failed program was:" >&5 2022sed 's/^/| /' conftest.$ac_ext >&5 2023 2024{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2026as_fn_error 77 "C++ compiler cannot create executables 2027See \`config.log' for more details" "$LINENO" 5; } 2028else 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2030$as_echo "yes" >&6; } 2031fi 2032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2033$as_echo_n "checking for C++ compiler default output file name... " >&6; } 2034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2035$as_echo "$ac_file" >&6; } 2036ac_exeext=$ac_cv_exeext 2037 2038rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2039ac_clean_files=$ac_clean_files_save 2040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2041$as_echo_n "checking for suffix of executables... " >&6; } 2042if { { ac_try="$ac_link" 2043case "(($ac_try" in 2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2045 *) ac_try_echo=$ac_try;; 2046esac 2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2048$as_echo "$ac_try_echo"; } >&5 2049 (eval "$ac_link") 2>&5 2050 ac_status=$? 2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2052 test $ac_status = 0; }; then : 2053 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2054# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2055# work properly (i.e., refer to `conftest.exe'), while it won't with 2056# `rm'. 2057for ac_file in conftest.exe conftest conftest.*; do 2058 test -f "$ac_file" || continue 2059 case $ac_file in 2060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2062 break;; 2063 * ) break;; 2064 esac 2065done 2066else 2067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2069as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2070See \`config.log' for more details" "$LINENO" 5; } 2071fi 2072rm -f conftest conftest$ac_cv_exeext 2073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2074$as_echo "$ac_cv_exeext" >&6; } 2075 2076rm -f conftest.$ac_ext 2077EXEEXT=$ac_cv_exeext 2078ac_exeext=$EXEEXT 2079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080/* end confdefs.h. */ 2081#include <stdio.h> 2082int 2083main () 2084{ 2085FILE *f = fopen ("conftest.out", "w"); 2086 return ferror (f) || fclose (f) != 0; 2087 2088 ; 2089 return 0; 2090} 2091_ACEOF 2092ac_clean_files="$ac_clean_files conftest.out" 2093# Check that the compiler produces executables we can run. If not, either 2094# the compiler is broken, or we cross compile. 2095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2096$as_echo_n "checking whether we are cross compiling... " >&6; } 2097if test "$cross_compiling" != yes; then 2098 { { ac_try="$ac_link" 2099case "(($ac_try" in 2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2101 *) ac_try_echo=$ac_try;; 2102esac 2103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2104$as_echo "$ac_try_echo"; } >&5 2105 (eval "$ac_link") 2>&5 2106 ac_status=$? 2107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2108 test $ac_status = 0; } 2109 if { ac_try='./conftest$ac_cv_exeext' 2110 { { case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113esac 2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2115$as_echo "$ac_try_echo"; } >&5 2116 (eval "$ac_try") 2>&5 2117 ac_status=$? 2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2119 test $ac_status = 0; }; }; then 2120 cross_compiling=no 2121 else 2122 if test "$cross_compiling" = maybe; then 2123 cross_compiling=yes 2124 else 2125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2127as_fn_error $? "cannot run C++ compiled programs. 2128If you meant to cross compile, use \`--host'. 2129See \`config.log' for more details" "$LINENO" 5; } 2130 fi 2131 fi 2132fi 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2134$as_echo "$cross_compiling" >&6; } 2135 2136rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2137ac_clean_files=$ac_clean_files_save 2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2139$as_echo_n "checking for suffix of object files... " >&6; } 2140if ${ac_cv_objext+:} false; then : 2141 $as_echo_n "(cached) " >&6 2142else 2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144/* end confdefs.h. */ 2145 2146int 2147main () 2148{ 2149 2150 ; 2151 return 0; 2152} 2153_ACEOF 2154rm -f conftest.o conftest.obj 2155if { { ac_try="$ac_compile" 2156case "(($ac_try" in 2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2158 *) ac_try_echo=$ac_try;; 2159esac 2160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2161$as_echo "$ac_try_echo"; } >&5 2162 (eval "$ac_compile") 2>&5 2163 ac_status=$? 2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2165 test $ac_status = 0; }; then : 2166 for ac_file in conftest.o conftest.obj conftest.*; do 2167 test -f "$ac_file" || continue; 2168 case $ac_file in 2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2171 break;; 2172 esac 2173done 2174else 2175 $as_echo "$as_me: failed program was:" >&5 2176sed 's/^/| /' conftest.$ac_ext >&5 2177 2178{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2180as_fn_error $? "cannot compute suffix of object files: cannot compile 2181See \`config.log' for more details" "$LINENO" 5; } 2182fi 2183rm -f conftest.$ac_cv_objext conftest.$ac_ext 2184fi 2185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2186$as_echo "$ac_cv_objext" >&6; } 2187OBJEXT=$ac_cv_objext 2188ac_objext=$OBJEXT 2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 2190$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2191if ${ac_cv_cxx_compiler_gnu+:} false; then : 2192 $as_echo_n "(cached) " >&6 2193else 2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2195/* end confdefs.h. */ 2196 2197int 2198main () 2199{ 2200#ifndef __GNUC__ 2201 choke me 2202#endif 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_cxx_try_compile "$LINENO"; then : 2209 ac_compiler_gnu=yes 2210else 2211 ac_compiler_gnu=no 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2215 2216fi 2217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 2218$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 2219if test $ac_compiler_gnu = yes; then 2220 GXX=yes 2221else 2222 GXX= 2223fi 2224ac_test_CXXFLAGS=${CXXFLAGS+set} 2225ac_save_CXXFLAGS=$CXXFLAGS 2226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 2227$as_echo_n "checking whether $CXX accepts -g... " >&6; } 2228if ${ac_cv_prog_cxx_g+:} false; then : 2229 $as_echo_n "(cached) " >&6 2230else 2231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2232 ac_cxx_werror_flag=yes 2233 ac_cv_prog_cxx_g=no 2234 CXXFLAGS="-g" 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237 2238int 2239main () 2240{ 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246if ac_fn_cxx_try_compile "$LINENO"; then : 2247 ac_cv_prog_cxx_g=yes 2248else 2249 CXXFLAGS="" 2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2251/* end confdefs.h. */ 2252 2253int 2254main () 2255{ 2256 2257 ; 2258 return 0; 2259} 2260_ACEOF 2261if ac_fn_cxx_try_compile "$LINENO"; then : 2262 2263else 2264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2265 CXXFLAGS="-g" 2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2267/* end confdefs.h. */ 2268 2269int 2270main () 2271{ 2272 2273 ; 2274 return 0; 2275} 2276_ACEOF 2277if ac_fn_cxx_try_compile "$LINENO"; then : 2278 ac_cv_prog_cxx_g=yes 2279fi 2280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2281fi 2282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2283fi 2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2286fi 2287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 2288$as_echo "$ac_cv_prog_cxx_g" >&6; } 2289if test "$ac_test_CXXFLAGS" = set; then 2290 CXXFLAGS=$ac_save_CXXFLAGS 2291elif test $ac_cv_prog_cxx_g = yes; then 2292 if test "$GXX" = yes; then 2293 CXXFLAGS="-g -O2" 2294 else 2295 CXXFLAGS="-g" 2296 fi 2297else 2298 if test "$GXX" = yes; then 2299 CXXFLAGS="-O2" 2300 else 2301 CXXFLAGS= 2302 fi 2303fi 2304ac_ext=cpp 2305ac_cpp='$CXXCPP $CPPFLAGS' 2306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2309 2310 2311ac_ext=cpp 2312ac_cpp='$CXXCPP $CPPFLAGS' 2313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 2317$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 2318if test -z "$CXXCPP"; then 2319 if ${ac_cv_prog_CXXCPP+:} false; then : 2320 $as_echo_n "(cached) " >&6 2321else 2322 # Double quotes because CXXCPP needs to be expanded 2323 for CXXCPP in "$CXX -E" "/lib/cpp" 2324 do 2325 ac_preproc_ok=false 2326for ac_cxx_preproc_warn_flag in '' yes 2327do 2328 # Use a header file that comes with gcc, so configuring glibc 2329 # with a fresh cross-compiler works. 2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2331 # <limits.h> exists even on freestanding compilers. 2332 # On the NeXT, cc -E runs the code through the compiler's parser, 2333 # not just through cpp. "Syntax error" is here to catch this case. 2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2335/* end confdefs.h. */ 2336#ifdef __STDC__ 2337# include <limits.h> 2338#else 2339# include <assert.h> 2340#endif 2341 Syntax error 2342_ACEOF 2343if ac_fn_cxx_try_cpp "$LINENO"; then : 2344 2345else 2346 # Broken: fails on valid input. 2347continue 2348fi 2349rm -f conftest.err conftest.i conftest.$ac_ext 2350 2351 # OK, works on sane cases. Now check whether nonexistent headers 2352 # can be detected and how. 2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2354/* end confdefs.h. */ 2355#include <ac_nonexistent.h> 2356_ACEOF 2357if ac_fn_cxx_try_cpp "$LINENO"; then : 2358 # Broken: success on invalid input. 2359continue 2360else 2361 # Passes both tests. 2362ac_preproc_ok=: 2363break 2364fi 2365rm -f conftest.err conftest.i conftest.$ac_ext 2366 2367done 2368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2369rm -f conftest.i conftest.err conftest.$ac_ext 2370if $ac_preproc_ok; then : 2371 break 2372fi 2373 2374 done 2375 ac_cv_prog_CXXCPP=$CXXCPP 2376 2377fi 2378 CXXCPP=$ac_cv_prog_CXXCPP 2379else 2380 ac_cv_prog_CXXCPP=$CXXCPP 2381fi 2382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 2383$as_echo "$CXXCPP" >&6; } 2384ac_preproc_ok=false 2385for ac_cxx_preproc_warn_flag in '' yes 2386do 2387 # Use a header file that comes with gcc, so configuring glibc 2388 # with a fresh cross-compiler works. 2389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2390 # <limits.h> exists even on freestanding compilers. 2391 # On the NeXT, cc -E runs the code through the compiler's parser, 2392 # not just through cpp. "Syntax error" is here to catch this case. 2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2394/* end confdefs.h. */ 2395#ifdef __STDC__ 2396# include <limits.h> 2397#else 2398# include <assert.h> 2399#endif 2400 Syntax error 2401_ACEOF 2402if ac_fn_cxx_try_cpp "$LINENO"; then : 2403 2404else 2405 # Broken: fails on valid input. 2406continue 2407fi 2408rm -f conftest.err conftest.i conftest.$ac_ext 2409 2410 # OK, works on sane cases. Now check whether nonexistent headers 2411 # can be detected and how. 2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2413/* end confdefs.h. */ 2414#include <ac_nonexistent.h> 2415_ACEOF 2416if ac_fn_cxx_try_cpp "$LINENO"; then : 2417 # Broken: success on invalid input. 2418continue 2419else 2420 # Passes both tests. 2421ac_preproc_ok=: 2422break 2423fi 2424rm -f conftest.err conftest.i conftest.$ac_ext 2425 2426done 2427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2428rm -f conftest.i conftest.err conftest.$ac_ext 2429if $ac_preproc_ok; then : 2430 2431else 2432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2434as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 2435See \`config.log' for more details" "$LINENO" 5; } 2436fi 2437 2438ac_ext=cpp 2439ac_cpp='$CXXCPP $CPPFLAGS' 2440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2443 2444 2445 2446ac_ext=cpp 2447ac_cpp='$CXXCPP $CPPFLAGS' 2448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2451if test -z "$CXX"; then 2452 if test -n "$CCC"; then 2453 CXX=$CCC 2454 else 2455 if test -n "$ac_tool_prefix"; then 2456 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2457 do 2458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2459set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2461$as_echo_n "checking for $ac_word... " >&6; } 2462if ${ac_cv_prog_CXX+:} false; then : 2463 $as_echo_n "(cached) " >&6 2464else 2465 if test -n "$CXX"; then 2466 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480 done 2481IFS=$as_save_IFS 2482 2483fi 2484fi 2485CXX=$ac_cv_prog_CXX 2486if test -n "$CXX"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2488$as_echo "$CXX" >&6; } 2489else 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 2495 test -n "$CXX" && break 2496 done 2497fi 2498if test -z "$CXX"; then 2499 ac_ct_CXX=$CXX 2500 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2501do 2502 # Extract the first word of "$ac_prog", so it can be a program name with args. 2503set dummy $ac_prog; ac_word=$2 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2505$as_echo_n "checking for $ac_word... " >&6; } 2506if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 if test -n "$ac_ct_CXX"; then 2510 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2511else 2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 for ac_exec_ext in '' $ac_executable_extensions; do 2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2519 ac_cv_prog_ac_ct_CXX="$ac_prog" 2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2521 break 2 2522 fi 2523done 2524 done 2525IFS=$as_save_IFS 2526 2527fi 2528fi 2529ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2530if test -n "$ac_ct_CXX"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2532$as_echo "$ac_ct_CXX" >&6; } 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2535$as_echo "no" >&6; } 2536fi 2537 2538 2539 test -n "$ac_ct_CXX" && break 2540done 2541 2542 if test "x$ac_ct_CXX" = x; then 2543 CXX="g++" 2544 else 2545 case $cross_compiling:$ac_tool_warned in 2546yes:) 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2549ac_tool_warned=yes ;; 2550esac 2551 CXX=$ac_ct_CXX 2552 fi 2553fi 2554 2555 fi 2556fi 2557# Provide some information about the compiler. 2558$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2559set X $ac_compile 2560ac_compiler=$2 2561for ac_option in --version -v -V -qversion; do 2562 { { ac_try="$ac_compiler $ac_option >&5" 2563case "(($ac_try" in 2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2565 *) ac_try_echo=$ac_try;; 2566esac 2567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2568$as_echo "$ac_try_echo"; } >&5 2569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2570 ac_status=$? 2571 if test -s conftest.err; then 2572 sed '10a\ 2573... rest of stderr output deleted ... 2574 10q' conftest.err >conftest.er1 2575 cat conftest.er1 >&5 2576 fi 2577 rm -f conftest.er1 conftest.err 2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2579 test $ac_status = 0; } 2580done 2581 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 2583$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2584if ${ac_cv_cxx_compiler_gnu+:} false; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2588/* end confdefs.h. */ 2589 2590int 2591main () 2592{ 2593#ifndef __GNUC__ 2594 choke me 2595#endif 2596 2597 ; 2598 return 0; 2599} 2600_ACEOF 2601if ac_fn_cxx_try_compile "$LINENO"; then : 2602 ac_compiler_gnu=yes 2603else 2604 ac_compiler_gnu=no 2605fi 2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2607ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2608 2609fi 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 2611$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 2612if test $ac_compiler_gnu = yes; then 2613 GXX=yes 2614else 2615 GXX= 2616fi 2617ac_test_CXXFLAGS=${CXXFLAGS+set} 2618ac_save_CXXFLAGS=$CXXFLAGS 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 2620$as_echo_n "checking whether $CXX accepts -g... " >&6; } 2621if ${ac_cv_prog_cxx_g+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2625 ac_cxx_werror_flag=yes 2626 ac_cv_prog_cxx_g=no 2627 CXXFLAGS="-g" 2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2629/* end confdefs.h. */ 2630 2631int 2632main () 2633{ 2634 2635 ; 2636 return 0; 2637} 2638_ACEOF 2639if ac_fn_cxx_try_compile "$LINENO"; then : 2640 ac_cv_prog_cxx_g=yes 2641else 2642 CXXFLAGS="" 2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2644/* end confdefs.h. */ 2645 2646int 2647main () 2648{ 2649 2650 ; 2651 return 0; 2652} 2653_ACEOF 2654if ac_fn_cxx_try_compile "$LINENO"; then : 2655 2656else 2657 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2658 CXXFLAGS="-g" 2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2660/* end confdefs.h. */ 2661 2662int 2663main () 2664{ 2665 2666 ; 2667 return 0; 2668} 2669_ACEOF 2670if ac_fn_cxx_try_compile "$LINENO"; then : 2671 ac_cv_prog_cxx_g=yes 2672fi 2673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2674fi 2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2676fi 2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2678 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2679fi 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 2681$as_echo "$ac_cv_prog_cxx_g" >&6; } 2682if test "$ac_test_CXXFLAGS" = set; then 2683 CXXFLAGS=$ac_save_CXXFLAGS 2684elif test $ac_cv_prog_cxx_g = yes; then 2685 if test "$GXX" = yes; then 2686 CXXFLAGS="-g -O2" 2687 else 2688 CXXFLAGS="-g" 2689 fi 2690else 2691 if test "$GXX" = yes; then 2692 CXXFLAGS="-O2" 2693 else 2694 CXXFLAGS= 2695 fi 2696fi 2697ac_ext=cpp 2698ac_cpp='$CXXCPP $CPPFLAGS' 2699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2702 2703 2704## Is R already configured to compile things using OpenMP without 2705## any extra hand-holding? 2706openmp_already_works="no" 2707 2708## default to not even thinking about OpenMP as Armadillo wants a pragma 2709## variant available if and only if C++11 is used with g++ 5.4 or newer 2710can_use_openmp="no" 2711 2712## Ensure TMPDIR is set. 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a suitable tempdir" >&5 2714$as_echo_n "checking whether we have a suitable tempdir... " >&6; } 2715TMPDIR=$("${R_HOME}/bin/R" --vanilla --slave -e "cat(dirname(tempdir()))") 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TMPDIR}" >&5 2717$as_echo "${TMPDIR}" >&6; } 2718 2719## Check if R is configured to compile programs using OpenMP out-of-the-box. 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether R CMD SHLIB can already compile programs using OpenMP" >&5 2721$as_echo_n "checking whether R CMD SHLIB can already compile programs using OpenMP... " >&6; } 2722 2723## Create private directory in TMPDIR. 2724BUILDDIR="${TMPDIR}/rcpparmadillo-$$-$RANDOM" 2725mkdir -p "${BUILDDIR}" 2726 2727owd=$(pwd) 2728cd "${BUILDDIR}" 2729 2730cat <<EOF > test-omp.cpp 2731#include <omp.h> 2732int main() { 2733 return omp_get_num_threads(); 2734} 2735EOF 2736 2737## Execute R CMD SHLIB. 2738"${R_HOME}/bin/R" CMD SHLIB test-omp.cpp >/dev/null 2>&1 2739if test x"$?" = x"0"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2741$as_echo "yes" >&6; } 2742 openmp_already_works="yes" 2743else 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2745$as_echo "no" >&6; } 2746fi 2747 2748## Go back home. 2749cd "${owd}" 2750rm -rf "${BUILDDIR}" 2751 2752## If the above checks failed, then perform other heuristics 2753## based on the compiler version, etc. 2754if test x"${openmp_already_works}" = x"no"; then 2755 2756 ## Check the C++ compiler using the CXX value set 2757 2758 ## If it is g++, we have GXX set so let's examine it 2759 if test "${GXX}" = yes; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ version is sufficient" >&5 2761$as_echo_n "checking whether g++ version is sufficient... " >&6; } 2762 gxx_version=$(${CXX} -v 2>&1 | awk '/^.*g.. version/ {print $3}') 2763 case ${gxx_version} in 2764 1.*|2.*|3.*|4.0.*|4.1.*|4.2.*|4.3.*|4.4.*|4.5.*|4.6.*|4.7.0|4.7.1) 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2766$as_echo "no" >&6; } 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only g++ version 4.7.2 or greater can be used with RcppArmadillo." >&5 2768$as_echo "$as_me: WARNING: Only g++ version 4.7.2 or greater can be used with RcppArmadillo." >&2;} 2769 as_fn_error $? "Please use a different compiler." "$LINENO" 5 2770 ;; 2771 4.7.*|4.8.*|4.9.*|5.0*|5.1*|5.2*|5.3*) 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but without OpenMP as version ${gxx_version} (Armadillo constraint)" >&5 2773$as_echo "yes, but without OpenMP as version ${gxx_version} (Armadillo constraint)" >&6; } 2774 ## we know this one is bad 2775 can_use_openmp="no" 2776 ;; 2777 5.4*|5.5*|5.6*|5.7*|5.8*|5.9*|6.*|7.*|8.*|9.*|10.*|11.*|12.*) 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with OpenMP as version ${gxx_version}" >&5 2779$as_echo "yes, with OpenMP as version ${gxx_version}" >&6; } 2780 ## we know this one is good, yay 2781 can_use_openmp="yes" 2782 ;; 2783 *) 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: almost" >&5 2785$as_echo "almost" >&6; } 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler self-identifies as being compliant with GNUC extensions but is not g++." >&5 2787$as_echo "$as_me: WARNING: Compiler self-identifies as being compliant with GNUC extensions but is not g++." >&2;} 2788 ## we know nothing, so no 2789 can_use_openmp="no" 2790 ;; 2791 esac 2792 fi 2793 2794 ## Check for Apple LLVM 2795 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS" >&5 2797$as_echo_n "checking for macOS... " >&6; } 2798 RSysinfoName=$("${R_HOME}/bin/Rscript" --vanilla -e 'cat(Sys.info()["sysname"])') 2799 2800 if test x"${RSysinfoName}" = x"Darwin"; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2802$as_echo "found" >&6; } 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS Apple compiler" >&5 2804$as_echo_n "checking for macOS Apple compiler... " >&6; } 2805 2806 apple_compiler=$($CXX --version 2>&1 | grep -i -c -e 'apple llvm') 2807 2808 if test x"${apple_compiler}" = x"1"; then 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2810$as_echo "found" >&6; } 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP unavailable and turned off." >&5 2812$as_echo "$as_me: WARNING: OpenMP unavailable and turned off." >&2;} 2813 can_use_openmp="no" 2814 else 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 2816$as_echo "not found" >&6; } 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang compiler" >&5 2818$as_echo_n "checking for clang compiler... " >&6; } 2819 clang_compiler=$($CXX --version 2>&1 | grep -i -c -e 'clang ') 2820 2821 if test x"${clang_compiler}" = x"1"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2823$as_echo "found" >&6; } 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP compatible version of clang" >&5 2825$as_echo_n "checking for OpenMP compatible version of clang... " >&6; } 2826 clang_version=$(${CXX} -v 2>&1 | awk '/^.*clang version/ {print $3}') 2827 2828 case ${clang_version} in 2829 4.*|5.*|6.*|7.*|8.*|9.*|10.*|11.*) 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found and suitable" >&5 2831$as_echo "found and suitable" >&6; } 2832 can_use_openmp="yes" 2833 ;; 2834 *) 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 2836$as_echo "not found" >&6; } 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP unavailable and turned off." >&5 2838$as_echo "$as_me: WARNING: OpenMP unavailable and turned off." >&2;} 2839 can_use_openmp="no" 2840 ;; 2841 esac 2842 else 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 2844$as_echo "not found" >&6; } 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported macOS build detected; if anything breaks, you keep the pieces." >&5 2846$as_echo "$as_me: WARNING: unsupported macOS build detected; if anything breaks, you keep the pieces." >&2;} 2847 fi 2848 fi 2849 else 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851$as_echo "no" >&6; } 2852 fi 2853 2854fi # if test x"${openmp_already_works}" = x"no" 2855 2856## Check for suitable LAPACK_LIBS 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LAPACK_LIBS" >&5 2858$as_echo_n "checking LAPACK_LIBS... " >&6; } 2859 2860## external LAPACK has the required function 2861lapack=$(${R_HOME}/bin/R CMD config LAPACK_LIBS) 2862hasRlapack=$(echo ${lapack} | grep lRlapack) 2863 2864## in what follows below we substitute both side of the define/undef 2865## while this may seem a little unusual we do it to fully reproduce the 2866## previous bash-based implementation 2867 2868if test x"${hasRlapack}" = x""; then 2869 ## We are using a full Lapack and can use zgbsv -- so #undef remains 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system LAPACK found" >&5 2871$as_echo "system LAPACK found" >&6; } 2872 arma_lapack="#undef ARMA_CRIPPLED_LAPACK" 2873else 2874 ## We are using R's subset of Lapack and CANNOT use zgbsv etc, so we mark it 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: R-supplied partial LAPACK found" >&5 2876$as_echo "R-supplied partial LAPACK found" >&6; } 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some complex-valued LAPACK functions may not be available" >&5 2878$as_echo "$as_me: WARNING: Some complex-valued LAPACK functions may not be available" >&2;} 2879 arma_lapack="#define ARMA_CRIPPLED_LAPACK 1" 2880fi 2881 2882## Default the OpenMP flag to the empty string. 2883## If and only if OpenMP is found, expand to $(SHLIB_OPENMP_CXXFLAGS) 2884openmp_flag="" 2885 2886## Set the fallback, by default it is nope 2887arma_have_openmp="#define ARMA_DONT_USE_OPENMP 1" 2888 2889if test x"${openmp_already_works}" = x"yes"; then 2890 arma_have_openmp="#define ARMA_USE_OPENMP 1" 2891fi 2892 2893if test x"${can_use_openmp}" = x"yes"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5 2895$as_echo_n "checking for OpenMP... " >&6; } 2896 ## if R has -fopenmp we should be good 2897 allldflags=$(${R_HOME}/bin/R CMD config --ldflags) 2898 hasOpenMP=$(echo ${allldflags} | grep -- -fopenmp) 2899 if test x"${hasOpenMP}" = x""; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 2901$as_echo "missing" >&6; } 2902 arma_have_openmp="#define ARMA_DONT_USE_OPENMP 1" 2903 else 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found and suitable" >&5 2905$as_echo "found and suitable" >&6; } 2906 arma_have_openmp="#define ARMA_USE_OPENMP 1" 2907 openmp_flag='$(SHLIB_OPENMP_CXXFLAGS)' 2908 fi 2909fi 2910 2911 2912## now use all these 2913ARMA_LAPACK="${arma_lapack}" 2914 2915ARMA_HAVE_OPENMP="${arma_have_openmp}" 2916 2917OPENMP_FLAG="${openmp_flag}" 2918 2919ac_config_files="$ac_config_files inst/include/RcppArmadilloConfigGenerated.h src/Makevars" 2920 2921cat >confcache <<\_ACEOF 2922# This file is a shell script that caches the results of configure 2923# tests run on this system so they can be shared between configure 2924# scripts and configure runs, see configure's option --config-cache. 2925# It is not useful on other systems. If it contains results you don't 2926# want to keep, you may remove or edit it. 2927# 2928# config.status only pays attention to the cache file if you give it 2929# the --recheck option to rerun configure. 2930# 2931# `ac_cv_env_foo' variables (set or unset) will be overridden when 2932# loading this file, other *unset* `ac_cv_foo' will be assigned the 2933# following values. 2934 2935_ACEOF 2936 2937# The following way of writing the cache mishandles newlines in values, 2938# but we know of no workaround that is simple, portable, and efficient. 2939# So, we kill variables containing newlines. 2940# Ultrix sh set writes to stderr and can't be redirected directly, 2941# and sets the high bit in the cache file unless we assign to the vars. 2942( 2943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 2944 eval ac_val=\$$ac_var 2945 case $ac_val in #( 2946 *${as_nl}*) 2947 case $ac_var in #( 2948 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2950 esac 2951 case $ac_var in #( 2952 _ | IFS | as_nl) ;; #( 2953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2954 *) { eval $ac_var=; unset $ac_var;} ;; 2955 esac ;; 2956 esac 2957 done 2958 2959 (set) 2>&1 | 2960 case $as_nl`(ac_space=' '; set) 2>&1` in #( 2961 *${as_nl}ac_space=\ *) 2962 # `set' does not quote correctly, so add quotes: double-quote 2963 # substitution turns \\\\ into \\, and sed turns \\ into \. 2964 sed -n \ 2965 "s/'/'\\\\''/g; 2966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2967 ;; #( 2968 *) 2969 # `set' quotes correctly as required by POSIX, so do not add quotes. 2970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2971 ;; 2972 esac | 2973 sort 2974) | 2975 sed ' 2976 /^ac_cv_env_/b end 2977 t clear 2978 :clear 2979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2980 t end 2981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2982 :end' >>confcache 2983if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 2984 if test -w "$cache_file"; then 2985 if test "x$cache_file" != "x/dev/null"; then 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 2987$as_echo "$as_me: updating cache $cache_file" >&6;} 2988 if test ! -f "$cache_file" || test -h "$cache_file"; then 2989 cat confcache >"$cache_file" 2990 else 2991 case $cache_file in #( 2992 */* | ?:*) 2993 mv -f confcache "$cache_file"$$ && 2994 mv -f "$cache_file"$$ "$cache_file" ;; #( 2995 *) 2996 mv -f confcache "$cache_file" ;; 2997 esac 2998 fi 2999 fi 3000 else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 3002$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 3003 fi 3004fi 3005rm -f confcache 3006 3007test "x$prefix" = xNONE && prefix=$ac_default_prefix 3008# Let make expand exec_prefix. 3009test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3010 3011# Transform confdefs.h into DEFS. 3012# Protect against shell expansion while executing Makefile rules. 3013# Protect against Makefile macro expansion. 3014# 3015# If the first sed substitution is executed (which looks for macros that 3016# take arguments), then branch to the quote section. Otherwise, 3017# look for a macro that doesn't take arguments. 3018ac_script=' 3019:mline 3020/\\$/{ 3021 N 3022 s,\\\n,, 3023 b mline 3024} 3025t clear 3026:clear 3027s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 3028t quote 3029s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 3030t quote 3031b any 3032:quote 3033s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 3034s/\[/\\&/g 3035s/\]/\\&/g 3036s/\$/$$/g 3037H 3038:any 3039${ 3040 g 3041 s/^\n// 3042 s/\n/ /g 3043 p 3044} 3045' 3046DEFS=`sed -n "$ac_script" confdefs.h` 3047 3048 3049ac_libobjs= 3050ac_ltlibobjs= 3051U= 3052for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3053 # 1. Remove the extension, and $U if already installed. 3054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 3055 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 3056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 3057 # will be set to the directory where LIBOBJS objects are built. 3058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 3059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 3060done 3061LIBOBJS=$ac_libobjs 3062 3063LTLIBOBJS=$ac_ltlibobjs 3064 3065 3066 3067: "${CONFIG_STATUS=./config.status}" 3068ac_write_fail=0 3069ac_clean_files_save=$ac_clean_files 3070ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 3072$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 3073as_write_fail=0 3074cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 3075#! $SHELL 3076# Generated by $as_me. 3077# Run this file to recreate the current configuration. 3078# Compiler output produced by configure, useful for debugging 3079# configure, is in config.log if it exists. 3080 3081debug=false 3082ac_cs_recheck=false 3083ac_cs_silent=false 3084 3085SHELL=\${CONFIG_SHELL-$SHELL} 3086export SHELL 3087_ASEOF 3088cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 3089## -------------------- ## 3090## M4sh Initialization. ## 3091## -------------------- ## 3092 3093# Be more Bourne compatible 3094DUALCASE=1; export DUALCASE # for MKS sh 3095if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 3096 emulate sh 3097 NULLCMD=: 3098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 3099 # is contrary to our usage. Disable this feature. 3100 alias -g '${1+"$@"}'='"$@"' 3101 setopt NO_GLOB_SUBST 3102else 3103 case `(set -o) 2>/dev/null` in #( 3104 *posix*) : 3105 set -o posix ;; #( 3106 *) : 3107 ;; 3108esac 3109fi 3110 3111 3112as_nl=' 3113' 3114export as_nl 3115# Printing a long string crashes Solaris 7 /usr/bin/printf. 3116as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3117as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 3118as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 3119# Prefer a ksh shell builtin over an external printf program on Solaris, 3120# but without wasting forks for bash or zsh. 3121if test -z "$BASH_VERSION$ZSH_VERSION" \ 3122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 3123 as_echo='print -r --' 3124 as_echo_n='print -rn --' 3125elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 3126 as_echo='printf %s\n' 3127 as_echo_n='printf %s' 3128else 3129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 3130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 3131 as_echo_n='/usr/ucb/echo -n' 3132 else 3133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 3134 as_echo_n_body='eval 3135 arg=$1; 3136 case $arg in #( 3137 *"$as_nl"*) 3138 expr "X$arg" : "X\\(.*\\)$as_nl"; 3139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 3140 esac; 3141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 3142 ' 3143 export as_echo_n_body 3144 as_echo_n='sh -c $as_echo_n_body as_echo' 3145 fi 3146 export as_echo_body 3147 as_echo='sh -c $as_echo_body as_echo' 3148fi 3149 3150# The user is always right. 3151if test "${PATH_SEPARATOR+set}" != set; then 3152 PATH_SEPARATOR=: 3153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 3154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 3155 PATH_SEPARATOR=';' 3156 } 3157fi 3158 3159 3160# IFS 3161# We need space, tab and new line, in precisely that order. Quoting is 3162# there to prevent editors from complaining about space-tab. 3163# (If _AS_PATH_WALK were called with IFS unset, it would disable word 3164# splitting by setting IFS to empty value.) 3165IFS=" "" $as_nl" 3166 3167# Find who we are. Look in the path if we contain no directory separator. 3168as_myself= 3169case $0 in #(( 3170 *[\\/]* ) as_myself=$0 ;; 3171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172for as_dir in $PATH 3173do 3174 IFS=$as_save_IFS 3175 test -z "$as_dir" && as_dir=. 3176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3177 done 3178IFS=$as_save_IFS 3179 3180 ;; 3181esac 3182# We did not find ourselves, most probably we were run as `sh COMMAND' 3183# in which case we are not to be found in the path. 3184if test "x$as_myself" = x; then 3185 as_myself=$0 3186fi 3187if test ! -f "$as_myself"; then 3188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 3189 exit 1 3190fi 3191 3192# Unset variables that we do not need and which cause bugs (e.g. in 3193# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 3194# suppresses any "Segmentation fault" message there. '((' could 3195# trigger a bug in pdksh 5.2.14. 3196for as_var in BASH_ENV ENV MAIL MAILPATH 3197do eval test x\${$as_var+set} = xset \ 3198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 3199done 3200PS1='$ ' 3201PS2='> ' 3202PS4='+ ' 3203 3204# NLS nuisances. 3205LC_ALL=C 3206export LC_ALL 3207LANGUAGE=C 3208export LANGUAGE 3209 3210# CDPATH. 3211(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3212 3213 3214# as_fn_error STATUS ERROR [LINENO LOG_FD] 3215# ---------------------------------------- 3216# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3217# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3218# script with STATUS, using 1 if that was 0. 3219as_fn_error () 3220{ 3221 as_status=$1; test $as_status -eq 0 && as_status=1 3222 if test "$4"; then 3223 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3225 fi 3226 $as_echo "$as_me: error: $2" >&2 3227 as_fn_exit $as_status 3228} # as_fn_error 3229 3230 3231# as_fn_set_status STATUS 3232# ----------------------- 3233# Set $? to STATUS, without forking. 3234as_fn_set_status () 3235{ 3236 return $1 3237} # as_fn_set_status 3238 3239# as_fn_exit STATUS 3240# ----------------- 3241# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3242as_fn_exit () 3243{ 3244 set +e 3245 as_fn_set_status $1 3246 exit $1 3247} # as_fn_exit 3248 3249# as_fn_unset VAR 3250# --------------- 3251# Portably unset VAR. 3252as_fn_unset () 3253{ 3254 { eval $1=; unset $1;} 3255} 3256as_unset=as_fn_unset 3257# as_fn_append VAR VALUE 3258# ---------------------- 3259# Append the text in VALUE to the end of the definition contained in VAR. Take 3260# advantage of any shell optimizations that allow amortized linear growth over 3261# repeated appends, instead of the typical quadratic growth present in naive 3262# implementations. 3263if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3264 eval 'as_fn_append () 3265 { 3266 eval $1+=\$2 3267 }' 3268else 3269 as_fn_append () 3270 { 3271 eval $1=\$$1\$2 3272 } 3273fi # as_fn_append 3274 3275# as_fn_arith ARG... 3276# ------------------ 3277# Perform arithmetic evaluation on the ARGs, and store the result in the 3278# global $as_val. Take advantage of shells that can avoid forks. The arguments 3279# must be portable across $(()) and expr. 3280if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3281 eval 'as_fn_arith () 3282 { 3283 as_val=$(( $* )) 3284 }' 3285else 3286 as_fn_arith () 3287 { 3288 as_val=`expr "$@" || test $? -eq 1` 3289 } 3290fi # as_fn_arith 3291 3292 3293if expr a : '\(a\)' >/dev/null 2>&1 && 3294 test "X`expr 00001 : '.*\(...\)'`" = X001; then 3295 as_expr=expr 3296else 3297 as_expr=false 3298fi 3299 3300if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3301 as_basename=basename 3302else 3303 as_basename=false 3304fi 3305 3306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 3307 as_dirname=dirname 3308else 3309 as_dirname=false 3310fi 3311 3312as_me=`$as_basename -- "$0" || 3313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3314 X"$0" : 'X\(//\)$' \| \ 3315 X"$0" : 'X\(/\)' \| . 2>/dev/null || 3316$as_echo X/"$0" | 3317 sed '/^.*\/\([^/][^/]*\)\/*$/{ 3318 s//\1/ 3319 q 3320 } 3321 /^X\/\(\/\/\)$/{ 3322 s//\1/ 3323 q 3324 } 3325 /^X\/\(\/\).*/{ 3326 s//\1/ 3327 q 3328 } 3329 s/.*/./; q'` 3330 3331# Avoid depending upon Character Ranges. 3332as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3334as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3335as_cr_digits='0123456789' 3336as_cr_alnum=$as_cr_Letters$as_cr_digits 3337 3338ECHO_C= ECHO_N= ECHO_T= 3339case `echo -n x` in #((((( 3340-n*) 3341 case `echo 'xy\c'` in 3342 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 3343 xy) ECHO_C='\c';; 3344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 3345 ECHO_T=' ';; 3346 esac;; 3347*) 3348 ECHO_N='-n';; 3349esac 3350 3351rm -f conf$$ conf$$.exe conf$$.file 3352if test -d conf$$.dir; then 3353 rm -f conf$$.dir/conf$$.file 3354else 3355 rm -f conf$$.dir 3356 mkdir conf$$.dir 2>/dev/null 3357fi 3358if (echo >conf$$.file) 2>/dev/null; then 3359 if ln -s conf$$.file conf$$ 2>/dev/null; then 3360 as_ln_s='ln -s' 3361 # ... but there are two gotchas: 3362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 3363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 3364 # In both cases, we have to default to `cp -pR'. 3365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 3366 as_ln_s='cp -pR' 3367 elif ln conf$$.file conf$$ 2>/dev/null; then 3368 as_ln_s=ln 3369 else 3370 as_ln_s='cp -pR' 3371 fi 3372else 3373 as_ln_s='cp -pR' 3374fi 3375rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 3376rmdir conf$$.dir 2>/dev/null 3377 3378 3379# as_fn_mkdir_p 3380# ------------- 3381# Create "$as_dir" as a directory, including parents if necessary. 3382as_fn_mkdir_p () 3383{ 3384 3385 case $as_dir in #( 3386 -*) as_dir=./$as_dir;; 3387 esac 3388 test -d "$as_dir" || eval $as_mkdir_p || { 3389 as_dirs= 3390 while :; do 3391 case $as_dir in #( 3392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3393 *) as_qdir=$as_dir;; 3394 esac 3395 as_dirs="'$as_qdir' $as_dirs" 3396 as_dir=`$as_dirname -- "$as_dir" || 3397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3398 X"$as_dir" : 'X\(//\)[^/]' \| \ 3399 X"$as_dir" : 'X\(//\)$' \| \ 3400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3401$as_echo X"$as_dir" | 3402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3403 s//\1/ 3404 q 3405 } 3406 /^X\(\/\/\)[^/].*/{ 3407 s//\1/ 3408 q 3409 } 3410 /^X\(\/\/\)$/{ 3411 s//\1/ 3412 q 3413 } 3414 /^X\(\/\).*/{ 3415 s//\1/ 3416 q 3417 } 3418 s/.*/./; q'` 3419 test -d "$as_dir" && break 3420 done 3421 test -z "$as_dirs" || eval "mkdir $as_dirs" 3422 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3423 3424 3425} # as_fn_mkdir_p 3426if mkdir -p . 2>/dev/null; then 3427 as_mkdir_p='mkdir -p "$as_dir"' 3428else 3429 test -d ./-p && rmdir ./-p 3430 as_mkdir_p=false 3431fi 3432 3433 3434# as_fn_executable_p FILE 3435# ----------------------- 3436# Test if FILE is an executable regular file. 3437as_fn_executable_p () 3438{ 3439 test -f "$1" && test -x "$1" 3440} # as_fn_executable_p 3441as_test_x='test -x' 3442as_executable_p=as_fn_executable_p 3443 3444# Sed expression to map a string onto a valid CPP name. 3445as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3446 3447# Sed expression to map a string onto a valid variable name. 3448as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3449 3450 3451exec 6>&1 3452## ----------------------------------- ## 3453## Main body of $CONFIG_STATUS script. ## 3454## ----------------------------------- ## 3455_ASEOF 3456test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 3457 3458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3459# Save the log message, to keep $0 and so on meaningful, and to 3460# report actual input values of CONFIG_FILES etc. instead of their 3461# values after options handling. 3462ac_log=" 3463This file was extended by RcppArmadillo $as_me 0.10.7.5.0, which was 3464generated by GNU Autoconf 2.69. Invocation command line was 3465 3466 CONFIG_FILES = $CONFIG_FILES 3467 CONFIG_HEADERS = $CONFIG_HEADERS 3468 CONFIG_LINKS = $CONFIG_LINKS 3469 CONFIG_COMMANDS = $CONFIG_COMMANDS 3470 $ $0 $@ 3471 3472on `(hostname || uname -n) 2>/dev/null | sed 1q` 3473" 3474 3475_ACEOF 3476 3477case $ac_config_files in *" 3478"*) set x $ac_config_files; shift; ac_config_files=$*;; 3479esac 3480 3481 3482 3483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3484# Files that config.status was made for. 3485config_files="$ac_config_files" 3486 3487_ACEOF 3488 3489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3490ac_cs_usage="\ 3491\`$as_me' instantiates files and other configuration actions 3492from templates according to the current configuration. Unless the files 3493and actions are specified as TAGs, all are instantiated by default. 3494 3495Usage: $0 [OPTION]... [TAG]... 3496 3497 -h, --help print this help, then exit 3498 -V, --version print version number and configuration settings, then exit 3499 --config print configuration, then exit 3500 -q, --quiet, --silent 3501 do not print progress messages 3502 -d, --debug don't remove temporary files 3503 --recheck update $as_me by reconfiguring in the same conditions 3504 --file=FILE[:TEMPLATE] 3505 instantiate the configuration file FILE 3506 3507Configuration files: 3508$config_files 3509 3510Report bugs to <edd@debian.org>." 3511 3512_ACEOF 3513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3514ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 3515ac_cs_version="\\ 3516RcppArmadillo config.status 0.10.7.5.0 3517configured by $0, generated by GNU Autoconf 2.69, 3518 with options \\"\$ac_cs_config\\" 3519 3520Copyright (C) 2012 Free Software Foundation, Inc. 3521This config.status script is free software; the Free Software Foundation 3522gives unlimited permission to copy, distribute and modify it." 3523 3524ac_pwd='$ac_pwd' 3525srcdir='$srcdir' 3526test -n "\$AWK" || AWK=awk 3527_ACEOF 3528 3529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3530# The default lists apply if the user does not specify any file. 3531ac_need_defaults=: 3532while test $# != 0 3533do 3534 case $1 in 3535 --*=?*) 3536 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3538 ac_shift=: 3539 ;; 3540 --*=) 3541 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3542 ac_optarg= 3543 ac_shift=: 3544 ;; 3545 *) 3546 ac_option=$1 3547 ac_optarg=$2 3548 ac_shift=shift 3549 ;; 3550 esac 3551 3552 case $ac_option in 3553 # Handling of the options. 3554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3555 ac_cs_recheck=: ;; 3556 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 3557 $as_echo "$ac_cs_version"; exit ;; 3558 --config | --confi | --conf | --con | --co | --c ) 3559 $as_echo "$ac_cs_config"; exit ;; 3560 --debug | --debu | --deb | --de | --d | -d ) 3561 debug=: ;; 3562 --file | --fil | --fi | --f ) 3563 $ac_shift 3564 case $ac_optarg in 3565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 3566 '') as_fn_error $? "missing file argument" ;; 3567 esac 3568 as_fn_append CONFIG_FILES " '$ac_optarg'" 3569 ac_need_defaults=false;; 3570 --he | --h | --help | --hel | -h ) 3571 $as_echo "$ac_cs_usage"; exit ;; 3572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3573 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3574 ac_cs_silent=: ;; 3575 3576 # This is an error. 3577 -*) as_fn_error $? "unrecognized option: \`$1' 3578Try \`$0 --help' for more information." ;; 3579 3580 *) as_fn_append ac_config_targets " $1" 3581 ac_need_defaults=false ;; 3582 3583 esac 3584 shift 3585done 3586 3587ac_configure_extra_args= 3588 3589if $ac_cs_silent; then 3590 exec 6>/dev/null 3591 ac_configure_extra_args="$ac_configure_extra_args --silent" 3592fi 3593 3594_ACEOF 3595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3596if \$ac_cs_recheck; then 3597 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3598 shift 3599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 3600 CONFIG_SHELL='$SHELL' 3601 export CONFIG_SHELL 3602 exec "\$@" 3603fi 3604 3605_ACEOF 3606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3607exec 5>>config.log 3608{ 3609 echo 3610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3611## Running $as_me. ## 3612_ASBOX 3613 $as_echo "$ac_log" 3614} >&5 3615 3616_ACEOF 3617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3618_ACEOF 3619 3620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3621 3622# Handling of arguments. 3623for ac_config_target in $ac_config_targets 3624do 3625 case $ac_config_target in 3626 "inst/include/RcppArmadilloConfigGenerated.h") CONFIG_FILES="$CONFIG_FILES inst/include/RcppArmadilloConfigGenerated.h" ;; 3627 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;; 3628 3629 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 3630 esac 3631done 3632 3633 3634# If the user did not use the arguments to specify the items to instantiate, 3635# then the envvar interface is used. Set only those that are not. 3636# We use the long form for the default assignment because of an extremely 3637# bizarre bug on SunOS 4.1.3. 3638if $ac_need_defaults; then 3639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3640fi 3641 3642# Have a temporary directory for convenience. Make it in the build tree 3643# simply because there is no reason against having it here, and in addition, 3644# creating and moving files from /tmp can sometimes cause problems. 3645# Hook for its removal unless debugging. 3646# Note that there is a small window in which the directory will not be cleaned: 3647# after its creation but before its name has been assigned to `$tmp'. 3648$debug || 3649{ 3650 tmp= ac_tmp= 3651 trap 'exit_status=$? 3652 : "${ac_tmp:=$tmp}" 3653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 3654' 0 3655 trap 'as_fn_exit 1' 1 2 13 15 3656} 3657# Create a (secure) tmp directory for tmp files. 3658 3659{ 3660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 3661 test -d "$tmp" 3662} || 3663{ 3664 tmp=./conf$$-$RANDOM 3665 (umask 077 && mkdir "$tmp") 3666} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 3667ac_tmp=$tmp 3668 3669# Set up the scripts for CONFIG_FILES section. 3670# No need to generate them if there are no CONFIG_FILES. 3671# This happens for instance with `./config.status config.h'. 3672if test -n "$CONFIG_FILES"; then 3673 3674 3675ac_cr=`echo X | tr X '\015'` 3676# On cygwin, bash can eat \r inside `` if the user requested igncr. 3677# But we know of no other shell where ac_cr would be empty at this 3678# point, so we can use a bashism as a fallback. 3679if test "x$ac_cr" = x; then 3680 eval ac_cr=\$\'\\r\' 3681fi 3682ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 3683if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 3684 ac_cs_awk_cr='\\r' 3685else 3686 ac_cs_awk_cr=$ac_cr 3687fi 3688 3689echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 3690_ACEOF 3691 3692 3693{ 3694 echo "cat >conf$$subs.awk <<_ACEOF" && 3695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 3696 echo "_ACEOF" 3697} >conf$$subs.sh || 3698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3699ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 3700ac_delim='%!_!# ' 3701for ac_last_try in false false false false false :; do 3702 . ./conf$$subs.sh || 3703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3704 3705 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 3706 if test $ac_delim_n = $ac_delim_num; then 3707 break 3708 elif $ac_last_try; then 3709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3710 else 3711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 3712 fi 3713done 3714rm -f conf$$subs.sh 3715 3716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3717cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 3718_ACEOF 3719sed -n ' 3720h 3721s/^/S["/; s/!.*/"]=/ 3722p 3723g 3724s/^[^!]*!// 3725:repl 3726t repl 3727s/'"$ac_delim"'$// 3728t delim 3729:nl 3730h 3731s/\(.\{148\}\)..*/\1/ 3732t more1 3733s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 3734p 3735n 3736b repl 3737:more1 3738s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 3739p 3740g 3741s/.\{148\}// 3742t nl 3743:delim 3744h 3745s/\(.\{148\}\)..*/\1/ 3746t more2 3747s/["\\]/\\&/g; s/^/"/; s/$/"/ 3748p 3749b 3750:more2 3751s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 3752p 3753g 3754s/.\{148\}// 3755t delim 3756' <conf$$subs.awk | sed ' 3757/^[^""]/{ 3758 N 3759 s/\n// 3760} 3761' >>$CONFIG_STATUS || ac_write_fail=1 3762rm -f conf$$subs.awk 3763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3764_ACAWK 3765cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 3766 for (key in S) S_is_set[key] = 1 3767 FS = "" 3768 3769} 3770{ 3771 line = $ 0 3772 nfields = split(line, field, "@") 3773 substed = 0 3774 len = length(field[1]) 3775 for (i = 2; i < nfields; i++) { 3776 key = field[i] 3777 keylen = length(key) 3778 if (S_is_set[key]) { 3779 value = S[key] 3780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 3781 len += length(value) + length(field[++i]) 3782 substed = 1 3783 } else 3784 len += 1 + keylen 3785 } 3786 3787 print line 3788} 3789 3790_ACAWK 3791_ACEOF 3792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 3794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 3795else 3796 cat 3797fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 3798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 3799_ACEOF 3800 3801# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 3802# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 3803# trailing colons and then remove the whole line if VPATH becomes empty 3804# (actually we leave an empty line to preserve line numbers). 3805if test "x$srcdir" = x.; then 3806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 3807h 3808s/// 3809s/^/:/ 3810s/[ ]*$/:/ 3811s/:\$(srcdir):/:/g 3812s/:\${srcdir}:/:/g 3813s/:@srcdir@:/:/g 3814s/^:*// 3815s/:*$// 3816x 3817s/\(=[ ]*\).*/\1/ 3818G 3819s/\n// 3820s/^[^=]*=[ ]*$// 3821}' 3822fi 3823 3824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3825fi # test -n "$CONFIG_FILES" 3826 3827 3828eval set X " :F $CONFIG_FILES " 3829shift 3830for ac_tag 3831do 3832 case $ac_tag in 3833 :[FHLC]) ac_mode=$ac_tag; continue;; 3834 esac 3835 case $ac_mode$ac_tag in 3836 :[FHL]*:*);; 3837 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 3838 :[FH]-) ac_tag=-:-;; 3839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 3840 esac 3841 ac_save_IFS=$IFS 3842 IFS=: 3843 set x $ac_tag 3844 IFS=$ac_save_IFS 3845 shift 3846 ac_file=$1 3847 shift 3848 3849 case $ac_mode in 3850 :L) ac_source=$1;; 3851 :[FH]) 3852 ac_file_inputs= 3853 for ac_f 3854 do 3855 case $ac_f in 3856 -) ac_f="$ac_tmp/stdin";; 3857 *) # Look for the file first in the build tree, then in the source tree 3858 # (if the path is not absolute). The absolute path cannot be DOS-style, 3859 # because $ac_f cannot contain `:'. 3860 test -f "$ac_f" || 3861 case $ac_f in 3862 [\\/$]*) false;; 3863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 3864 esac || 3865 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 3866 esac 3867 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 3868 as_fn_append ac_file_inputs " '$ac_f'" 3869 done 3870 3871 # Let's still pretend it is `configure' which instantiates (i.e., don't 3872 # use $as_me), people would be surprised to read: 3873 # /* config.h. Generated by config.status. */ 3874 configure_input='Generated from '` 3875 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 3876 `' by configure.' 3877 if test x"$ac_file" != x-; then 3878 configure_input="$ac_file. $configure_input" 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 3880$as_echo "$as_me: creating $ac_file" >&6;} 3881 fi 3882 # Neutralize special characters interpreted by sed in replacement strings. 3883 case $configure_input in #( 3884 *\&* | *\|* | *\\* ) 3885 ac_sed_conf_input=`$as_echo "$configure_input" | 3886 sed 's/[\\\\&|]/\\\\&/g'`;; #( 3887 *) ac_sed_conf_input=$configure_input;; 3888 esac 3889 3890 case $ac_tag in 3891 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 3892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 3893 esac 3894 ;; 3895 esac 3896 3897 ac_dir=`$as_dirname -- "$ac_file" || 3898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3899 X"$ac_file" : 'X\(//\)[^/]' \| \ 3900 X"$ac_file" : 'X\(//\)$' \| \ 3901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 3902$as_echo X"$ac_file" | 3903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3904 s//\1/ 3905 q 3906 } 3907 /^X\(\/\/\)[^/].*/{ 3908 s//\1/ 3909 q 3910 } 3911 /^X\(\/\/\)$/{ 3912 s//\1/ 3913 q 3914 } 3915 /^X\(\/\).*/{ 3916 s//\1/ 3917 q 3918 } 3919 s/.*/./; q'` 3920 as_dir="$ac_dir"; as_fn_mkdir_p 3921 ac_builddir=. 3922 3923case "$ac_dir" in 3924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 3925*) 3926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 3927 # A ".." for each directory in $ac_dir_suffix. 3928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 3929 case $ac_top_builddir_sub in 3930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 3931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 3932 esac ;; 3933esac 3934ac_abs_top_builddir=$ac_pwd 3935ac_abs_builddir=$ac_pwd$ac_dir_suffix 3936# for backward compatibility: 3937ac_top_builddir=$ac_top_build_prefix 3938 3939case $srcdir in 3940 .) # We are building in place. 3941 ac_srcdir=. 3942 ac_top_srcdir=$ac_top_builddir_sub 3943 ac_abs_top_srcdir=$ac_pwd ;; 3944 [\\/]* | ?:[\\/]* ) # Absolute name. 3945 ac_srcdir=$srcdir$ac_dir_suffix; 3946 ac_top_srcdir=$srcdir 3947 ac_abs_top_srcdir=$srcdir ;; 3948 *) # Relative name. 3949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 3950 ac_top_srcdir=$ac_top_build_prefix$srcdir 3951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 3952esac 3953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 3954 3955 3956 case $ac_mode in 3957 :F) 3958 # 3959 # CONFIG_FILE 3960 # 3961 3962_ACEOF 3963 3964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3965# If the template does not know about datarootdir, expand it. 3966# FIXME: This hack should be removed a few years after 2.60. 3967ac_datarootdir_hack=; ac_datarootdir_seen= 3968ac_sed_dataroot=' 3969/datarootdir/ { 3970 p 3971 q 3972} 3973/@datadir@/p 3974/@docdir@/p 3975/@infodir@/p 3976/@localedir@/p 3977/@mandir@/p' 3978case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 3979*datarootdir*) ac_datarootdir_seen=yes;; 3980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 3982$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 3983_ACEOF 3984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3985 ac_datarootdir_hack=' 3986 s&@datadir@&$datadir&g 3987 s&@docdir@&$docdir&g 3988 s&@infodir@&$infodir&g 3989 s&@localedir@&$localedir&g 3990 s&@mandir@&$mandir&g 3991 s&\\\${datarootdir}&$datarootdir&g' ;; 3992esac 3993_ACEOF 3994 3995# Neutralize VPATH when `$srcdir' = `.'. 3996# Shell code in configure.ac might set extrasub. 3997# FIXME: do we really want to maintain this feature? 3998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3999ac_sed_extra="$ac_vpsub 4000$extrasub 4001_ACEOF 4002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4003:t 4004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4005s|@configure_input@|$ac_sed_conf_input|;t t 4006s&@top_builddir@&$ac_top_builddir_sub&;t t 4007s&@top_build_prefix@&$ac_top_build_prefix&;t t 4008s&@srcdir@&$ac_srcdir&;t t 4009s&@abs_srcdir@&$ac_abs_srcdir&;t t 4010s&@top_srcdir@&$ac_top_srcdir&;t t 4011s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4012s&@builddir@&$ac_builddir&;t t 4013s&@abs_builddir@&$ac_abs_builddir&;t t 4014s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 4015$ac_datarootdir_hack 4016" 4017eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 4018 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4019 4020test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4021 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 4022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 4023 "$ac_tmp/out"`; test -z "$ac_out"; } && 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4025which seems to be undefined. Please make sure it is defined" >&5 4026$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4027which seems to be undefined. Please make sure it is defined" >&2;} 4028 4029 rm -f "$ac_tmp/stdin" 4030 case $ac_file in 4031 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 4032 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 4033 esac \ 4034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4035 ;; 4036 4037 4038 4039 esac 4040 4041done # for ac_tag 4042 4043 4044as_fn_exit 0 4045_ACEOF 4046ac_clean_files=$ac_clean_files_save 4047 4048test $ac_write_fail = 0 || 4049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 4050 4051 4052# configure is writing to config.log, and then calls config.status. 4053# config.status does its own redirection, appending to config.log. 4054# Unfortunately, on DOS this fails, as config.log is still kept open 4055# by configure, so config.status won't be able to write to it; its 4056# output is simply discarded. So we exec the FD to /dev/null, 4057# effectively closing config.log, so it can be properly (re)opened and 4058# appended to by config.status. When coming back to configure, we 4059# need to make the FD available again. 4060if test "$no_create" != yes; then 4061 ac_cs_success=: 4062 ac_config_status_args= 4063 test "$silent" = yes && 4064 ac_config_status_args="$ac_config_status_args --quiet" 4065 exec 5>/dev/null 4066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4067 exec 5>>config.log 4068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4069 # would make configure fail if this is the last instruction. 4070 $ac_cs_success || as_fn_exit 1 4071fi 4072if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 4074$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 4075fi 4076 4077