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