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