1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Octopus 10.5. 4# 5# Report bugs to <octopus-devel@tddft.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: octopus-devel@tddft.org about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='Octopus' 582PACKAGE_TARNAME='octopus' 583PACKAGE_VERSION='10.5' 584PACKAGE_STRING='Octopus 10.5' 585PACKAGE_BUGREPORT='octopus-devel@tddft.org' 586PACKAGE_URL='' 587 588ac_unique_file="src/basic/global.F90" 589ac_default_prefix=/usr/local 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626enable_option_checking=no 627ac_subst_vars='am__EXEEXT_FALSE 628am__EXEEXT_TRUE 629LTLIBOBJS 630subdirs 631GIT_COMMIT 632FORTRAN_MODULE_DEPS 633FCEXTRALIBS 634LIBS_LIKWID 635FCFLAGS_LIKWID 636COMPILE_METIS_FALSE 637COMPILE_METIS_TRUE 638LIBS_PARMETIS 639PARMETIS_CFLAGS 640LIBS_METIS 641METIS_CFLAGS 642LIBS_POKE 643FCFLAGS_POKE 644LIBS_PSPIO 645FCFLAGS_PSPIO 646COMPILE_LIBYAML_FALSE 647COMPILE_LIBYAML_TRUE 648FCFLAGS_ISF 649LIBS_ISF 650FCFLAGS_PSOLVER 651LIBS_PSOLVER 652FCFLAGS_FUTILE 653LIBS_FUTILE 654CFLAGS_LIBYAML 655LIBS_LIBYAML 656FCFLAGS_LIBFM 657LIBS_LIBFM 658LIBS_ELPA 659FCFLAGS_ELPA 660LIBS_SCALAPACK 661LIBS_BLACS 662LIBS_NLOPT 663FCFLAGS_NLOPT 664LIBS_SPARSKIT 665LIBS_BERKELEYGW 666FCFLAGS_BERKELEYGW 667LIBS_ETSF_IO 668FCFLAGS_ETSF_IO 669fc_wrap 670fc_version 671fc_type 672LIBS_NETCDF 673FCFLAGS_NETCDF 674FCFLAGS_PNFFT 675LIBS_PNFFT 676LIBS_NFFT 677CFLAGS_NFFT 678FCFLAGS_PFFT 679LIBS_PFFT 680LIBS_FFTW 681CFLAGS_FFTW 682FCFLAGS_FFTW 683GD_LIBS 684GD_CFLAGS 685GDLIB_CONFIG 686GSL_LIBS 687GSL_CFLAGS 688GSL_CONFIG 689LIBS_LAPACK 690LIBS_BLAS 691LIBS_LIBVDWXC 692FCFLAGS_LIBVDWXC 693LIBS_LIBXC 694FCFLAGS_LIBXC 695UTILITY_PROGRAMS 696DEBUG 697OPENMP_FCFLAGS 698F90_MODULE_FLAG 699F90_ACCEPTS_LINE_NUMBERS 700LONG_LINES 701FCLIBS 702FCCPP 703FCFLAGS_f90 704ac_ct_FC 705FCFLAGS 706FC 707ENABLE_PERL_FALSE 708ENABLE_PERL_TRUE 709PERL 710LIBS_MPI 711COMPILE_OPENCL_FALSE 712COMPILE_OPENCL_TRUE 713LIBS_CLFFT 714CFLAGS_CLFFT 715LIBS_CLBLAS 716CFLAGS_CLBLAS 717CL_LIBS 718CL_CFLAGS 719SED 720LIBS_CUDA 721CFLAGS_CUDA 722LIBOBJS 723ALLOCA 724EGREP 725GREP 726CPP 727CXXLIBS 728HAVE_CXX11 729am__fastdepCXX_FALSE 730am__fastdepCXX_TRUE 731CXXDEPMODE 732ac_ct_CXX 733CXXFLAGS 734CXX 735am__fastdepCC_FALSE 736am__fastdepCC_TRUE 737CCDEPMODE 738am__nodep 739AMDEPBACKSLASH 740AMDEP_FALSE 741AMDEP_TRUE 742am__include 743DEPDIR 744OBJEXT 745EXEEXT 746ac_ct_CC 747CPPFLAGS 748LDFLAGS 749CFLAGS 750CC 751USE_MPI_FALSE 752USE_MPI_TRUE 753RANLIB 754LN_S 755host_os 756host_vendor 757host_cpu 758host 759build_os 760build_vendor 761build_cpu 762build 763AM_BACKSLASH 764AM_DEFAULT_VERBOSITY 765AM_DEFAULT_V 766AM_V 767am__untar 768am__tar 769AMTAR 770am__leading_dot 771SET_MAKE 772AWK 773mkdir_p 774MKDIR_P 775INSTALL_STRIP_PROGRAM 776STRIP 777install_sh 778MAKEINFO 779AUTOHEADER 780AUTOMAKE 781AUTOCONF 782ACLOCAL 783VERSION 784PACKAGE 785CYGPATH_W 786am__isrc 787INSTALL_DATA 788INSTALL_SCRIPT 789INSTALL_PROGRAM 790target_alias 791host_alias 792build_alias 793LIBS 794ECHO_T 795ECHO_N 796ECHO_C 797DEFS 798mandir 799localedir 800libdir 801psdir 802pdfdir 803dvidir 804htmldir 805infodir 806docdir 807oldincludedir 808includedir 809localstatedir 810sharedstatedir 811sysconfdir 812datadir 813datarootdir 814libexecdir 815sbindir 816bindir 817program_transform_name 818prefix 819exec_prefix 820PACKAGE_URL 821PACKAGE_BUGREPORT 822PACKAGE_STRING 823PACKAGE_VERSION 824PACKAGE_TARNAME 825PACKAGE_NAME 826PATH_SEPARATOR 827SHELL 828am__quote' 829ac_subst_files='' 830ac_user_opts=' 831enable_option_checking 832enable_silent_rules 833enable_mpi 834enable_dependency_tracking 835enable_vectors 836enable_sse2 837enable_fma3 838enable_fma4 839enable_avx 840enable_avx512 841enable_debug 842enable_openmp 843enable_opencl 844enable_nvtx 845enable_cuda 846with_cuda_prefix 847with_clblas_prefix 848with_clblas_include 849with_clfft_prefix 850with_clfft_include 851enable_perl 852with_max_dim 853with_libxc_prefix 854with_libxc_include 855with_libvdwxc_prefix 856with_blas 857enable_zdotc_test 858with_lapack 859with_gsl_prefix 860with_gsl_exec_prefix 861enable_gdlib 862with_fftw_prefix 863with_pfft_prefix 864with_pfft_include 865with_nfft 866with_pnfft_prefix 867with_pnfft_include 868with_netcdf_prefix 869with_netcdf_include 870with_etsf_io_prefix 871with_etsf_io_include 872with_berkeleygw_prefix 873with_sparskit 874with_nlopt_prefix 875enable_mpi_mod 876enable_mpi2 877with_blacs 878with_scalapack 879with_elpa_prefix 880with_libfm 881with_yaml_prefix 882with_futile_prefix 883with_futile_include 884with_psolver_prefix 885with_psolver_include 886with_isf_prefix 887with_isf_include 888with_pspio_prefix 889with_poke_prefix 890with_metis_prefix 891enable_metis 892with_parmetis_prefix 893with_likwid_prefix 894' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901LIBS 902CPPFLAGS 903CXX 904CXXFLAGS 905CCC 906CPP 907FC 908FCFLAGS 909FCCPP' 910ac_subdirs_all='' 911 912# Initialize some variables set by options. 913ac_init_help= 914ac_init_version=false 915ac_unrecognized_opts= 916ac_unrecognized_sep= 917# The variables have the same names as the options, with 918# dashes changed to underlines. 919cache_file=/dev/null 920exec_prefix=NONE 921no_create= 922no_recursion= 923prefix=NONE 924program_prefix=NONE 925program_suffix=NONE 926program_transform_name=s,x,x, 927silent= 928site= 929srcdir= 930verbose= 931x_includes=NONE 932x_libraries=NONE 933 934# Installation directory options. 935# These are left unexpanded so users can "make install exec_prefix=/foo" 936# and all the variables that are supposed to be based on exec_prefix 937# by default will actually change. 938# Use braces instead of parens because sh, perl, etc. also accept them. 939# (The list follows the same order as the GNU Coding Standards.) 940bindir='${exec_prefix}/bin' 941sbindir='${exec_prefix}/sbin' 942libexecdir='${exec_prefix}/libexec' 943datarootdir='${prefix}/share' 944datadir='${datarootdir}' 945sysconfdir='${prefix}/etc' 946sharedstatedir='${prefix}/com' 947localstatedir='${prefix}/var' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${datarootdir}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *=) ac_optarg= ;; 974 *) ac_optarg=yes ;; 975 esac 976 977 # Accept the important Cygnus configure options, so we can diagnose typos. 978 979 case $ac_dashdash$ac_option in 980 --) 981 ac_dashdash=yes ;; 982 983 -bindir | --bindir | --bindi | --bind | --bin | --bi) 984 ac_prev=bindir ;; 985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 986 bindir=$ac_optarg ;; 987 988 -build | --build | --buil | --bui | --bu) 989 ac_prev=build_alias ;; 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 991 build_alias=$ac_optarg ;; 992 993 -cache-file | --cache-file | --cache-fil | --cache-fi \ 994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 995 ac_prev=cache_file ;; 996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 998 cache_file=$ac_optarg ;; 999 1000 --config-cache | -C) 1001 cache_file=config.cache ;; 1002 1003 -datadir | --datadir | --datadi | --datad) 1004 ac_prev=datadir ;; 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1006 datadir=$ac_optarg ;; 1007 1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1009 | --dataroo | --dataro | --datar) 1010 ac_prev=datarootdir ;; 1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1013 datarootdir=$ac_optarg ;; 1014 1015 -disable-* | --disable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=no ;; 1030 1031 -docdir | --docdir | --docdi | --doc | --do) 1032 ac_prev=docdir ;; 1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1034 docdir=$ac_optarg ;; 1035 1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1037 ac_prev=dvidir ;; 1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1039 dvidir=$ac_optarg ;; 1040 1041 -enable-* | --enable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=\$ac_optarg ;; 1056 1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1059 | --exec | --exe | --ex) 1060 ac_prev=exec_prefix ;; 1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1063 | --exec=* | --exe=* | --ex=*) 1064 exec_prefix=$ac_optarg ;; 1065 1066 -gas | --gas | --ga | --g) 1067 # Obsolete; use --with-gas. 1068 with_gas=yes ;; 1069 1070 -help | --help | --hel | --he | -h) 1071 ac_init_help=long ;; 1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1073 ac_init_help=recursive ;; 1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1075 ac_init_help=short ;; 1076 1077 -host | --host | --hos | --ho) 1078 ac_prev=host_alias ;; 1079 -host=* | --host=* | --hos=* | --ho=*) 1080 host_alias=$ac_optarg ;; 1081 1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1083 ac_prev=htmldir ;; 1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1085 | --ht=*) 1086 htmldir=$ac_optarg ;; 1087 1088 -includedir | --includedir | --includedi | --included | --include \ 1089 | --includ | --inclu | --incl | --inc) 1090 ac_prev=includedir ;; 1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1092 | --includ=* | --inclu=* | --incl=* | --inc=*) 1093 includedir=$ac_optarg ;; 1094 1095 -infodir | --infodir | --infodi | --infod | --info | --inf) 1096 ac_prev=infodir ;; 1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1098 infodir=$ac_optarg ;; 1099 1100 -libdir | --libdir | --libdi | --libd) 1101 ac_prev=libdir ;; 1102 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1103 libdir=$ac_optarg ;; 1104 1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1106 | --libexe | --libex | --libe) 1107 ac_prev=libexecdir ;; 1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1109 | --libexe=* | --libex=* | --libe=*) 1110 libexecdir=$ac_optarg ;; 1111 1112 -localedir | --localedir | --localedi | --localed | --locale) 1113 ac_prev=localedir ;; 1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1115 localedir=$ac_optarg ;; 1116 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1118 | --localstate | --localstat | --localsta | --localst | --locals) 1119 ac_prev=localstatedir ;; 1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1122 localstatedir=$ac_optarg ;; 1123 1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1125 ac_prev=mandir ;; 1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1127 mandir=$ac_optarg ;; 1128 1129 -nfp | --nfp | --nf) 1130 # Obsolete; use --without-fp. 1131 with_fp=no ;; 1132 1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1134 | --no-cr | --no-c | -n) 1135 no_create=yes ;; 1136 1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1139 no_recursion=yes ;; 1140 1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1143 | --oldin | --oldi | --old | --ol | --o) 1144 ac_prev=oldincludedir ;; 1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1148 oldincludedir=$ac_optarg ;; 1149 1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1151 ac_prev=prefix ;; 1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1153 prefix=$ac_optarg ;; 1154 1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1156 | --program-pre | --program-pr | --program-p) 1157 ac_prev=program_prefix ;; 1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1160 program_prefix=$ac_optarg ;; 1161 1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1163 | --program-suf | --program-su | --program-s) 1164 ac_prev=program_suffix ;; 1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1167 program_suffix=$ac_optarg ;; 1168 1169 -program-transform-name | --program-transform-name \ 1170 | --program-transform-nam | --program-transform-na \ 1171 | --program-transform-n | --program-transform- \ 1172 | --program-transform | --program-transfor \ 1173 | --program-transfo | --program-transf \ 1174 | --program-trans | --program-tran \ 1175 | --progr-tra | --program-tr | --program-t) 1176 ac_prev=program_transform_name ;; 1177 -program-transform-name=* | --program-transform-name=* \ 1178 | --program-transform-nam=* | --program-transform-na=* \ 1179 | --program-transform-n=* | --program-transform-=* \ 1180 | --program-transform=* | --program-transfor=* \ 1181 | --program-transfo=* | --program-transf=* \ 1182 | --program-trans=* | --program-tran=* \ 1183 | --progr-tra=* | --program-tr=* | --program-t=*) 1184 program_transform_name=$ac_optarg ;; 1185 1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1187 ac_prev=pdfdir ;; 1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1189 pdfdir=$ac_optarg ;; 1190 1191 -psdir | --psdir | --psdi | --psd | --ps) 1192 ac_prev=psdir ;; 1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1194 psdir=$ac_optarg ;; 1195 1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1197 | -silent | --silent | --silen | --sile | --sil) 1198 silent=yes ;; 1199 1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1201 ac_prev=sbindir ;; 1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1203 | --sbi=* | --sb=*) 1204 sbindir=$ac_optarg ;; 1205 1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1208 | --sharedst | --shareds | --shared | --share | --shar \ 1209 | --sha | --sh) 1210 ac_prev=sharedstatedir ;; 1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1214 | --sha=* | --sh=*) 1215 sharedstatedir=$ac_optarg ;; 1216 1217 -site | --site | --sit) 1218 ac_prev=site ;; 1219 -site=* | --site=* | --sit=*) 1220 site=$ac_optarg ;; 1221 1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1223 ac_prev=srcdir ;; 1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1225 srcdir=$ac_optarg ;; 1226 1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1228 | --syscon | --sysco | --sysc | --sys | --sy) 1229 ac_prev=sysconfdir ;; 1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1232 sysconfdir=$ac_optarg ;; 1233 1234 -target | --target | --targe | --targ | --tar | --ta | --t) 1235 ac_prev=target_alias ;; 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1237 target_alias=$ac_optarg ;; 1238 1239 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1240 verbose=yes ;; 1241 1242 -version | --version | --versio | --versi | --vers | -V) 1243 ac_init_version=: ;; 1244 1245 -with-* | --with-*) 1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1249 as_fn_error $? "invalid package name: $ac_useropt" 1250 ac_useropt_orig=$ac_useropt 1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1252 case $ac_user_opts in 1253 *" 1254"with_$ac_useropt" 1255"*) ;; 1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1257 ac_unrecognized_sep=', ';; 1258 esac 1259 eval with_$ac_useropt=\$ac_optarg ;; 1260 1261 -without-* | --without-*) 1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1263 # Reject names that are not valid shell variable names. 1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1265 as_fn_error $? "invalid package name: $ac_useropt" 1266 ac_useropt_orig=$ac_useropt 1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1268 case $ac_user_opts in 1269 *" 1270"with_$ac_useropt" 1271"*) ;; 1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1273 ac_unrecognized_sep=', ';; 1274 esac 1275 eval with_$ac_useropt=no ;; 1276 1277 --x) 1278 # Obsolete; use --with-x. 1279 with_x=yes ;; 1280 1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1282 | --x-incl | --x-inc | --x-in | --x-i) 1283 ac_prev=x_includes ;; 1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1286 x_includes=$ac_optarg ;; 1287 1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1290 ac_prev=x_libraries ;; 1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1293 x_libraries=$ac_optarg ;; 1294 1295 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1296Try \`$0 --help' for more information" 1297 ;; 1298 1299 *=*) 1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1301 # Reject names that are not valid shell variable names. 1302 case $ac_envvar in #( 1303 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1305 esac 1306 eval $ac_envvar=\$ac_optarg 1307 export $ac_envvar ;; 1308 1309 *) 1310 # FIXME: should be removed in autoconf 3.0. 1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1315 ;; 1316 1317 esac 1318done 1319 1320if test -n "$ac_prev"; then 1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1322 as_fn_error $? "missing argument to $ac_option" 1323fi 1324 1325if test -n "$ac_unrecognized_opts"; then 1326 case $enable_option_checking in 1327 no) ;; 1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1330 esac 1331fi 1332 1333# Check all directory arguments for consistency. 1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1335 datadir sysconfdir sharedstatedir localstatedir includedir \ 1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1337 libdir localedir mandir 1338do 1339 eval ac_val=\$$ac_var 1340 # Remove trailing slashes. 1341 case $ac_val in 1342 */ ) 1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1344 eval $ac_var=\$ac_val;; 1345 esac 1346 # Be sure to have absolute directory names. 1347 case $ac_val in 1348 [\\/$]* | ?:[\\/]* ) continue;; 1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1350 esac 1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1352done 1353 1354# There might be people who depend on the old broken behavior: `$host' 1355# used to hold the argument of --host etc. 1356# FIXME: To remove some day. 1357build=$build_alias 1358host=$host_alias 1359target=$target_alias 1360 1361# FIXME: To remove some day. 1362if test "x$host_alias" != x; then 1363 if test "x$build_alias" = x; then 1364 cross_compiling=maybe 1365 elif test "x$build_alias" != "x$host_alias"; then 1366 cross_compiling=yes 1367 fi 1368fi 1369 1370ac_tool_prefix= 1371test -n "$host_alias" && ac_tool_prefix=$host_alias- 1372 1373test "$silent" = yes && exec 6>/dev/null 1374 1375 1376ac_pwd=`pwd` && test -n "$ac_pwd" && 1377ac_ls_di=`ls -di .` && 1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1379 as_fn_error $? "working directory cannot be determined" 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1381 as_fn_error $? "pwd does not report name of working directory" 1382 1383 1384# Find the source files, if location was not specified. 1385if test -z "$srcdir"; then 1386 ac_srcdir_defaulted=yes 1387 # Try the directory containing this script, then the parent directory. 1388 ac_confdir=`$as_dirname -- "$as_myself" || 1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1390 X"$as_myself" : 'X\(//\)[^/]' \| \ 1391 X"$as_myself" : 'X\(//\)$' \| \ 1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1393$as_echo X"$as_myself" | 1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)[^/].*/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\).*/{ 1407 s//\1/ 1408 q 1409 } 1410 s/.*/./; q'` 1411 srcdir=$ac_confdir 1412 if test ! -r "$srcdir/$ac_unique_file"; then 1413 srcdir=.. 1414 fi 1415else 1416 ac_srcdir_defaulted=no 1417fi 1418if test ! -r "$srcdir/$ac_unique_file"; then 1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1421fi 1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1423ac_abs_confdir=`( 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1425 pwd)` 1426# When building in place, set srcdir=. 1427if test "$ac_abs_confdir" = "$ac_pwd"; then 1428 srcdir=. 1429fi 1430# Remove unnecessary trailing slashes from srcdir. 1431# Double slashes in file names in object file debugging info 1432# mess up M-x gdb in Emacs. 1433case $srcdir in 1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1435esac 1436for ac_var in $ac_precious_vars; do 1437 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_env_${ac_var}_value=\$${ac_var} 1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1441done 1442 1443# 1444# Report the --help message. 1445# 1446if test "$ac_init_help" = "long"; then 1447 # Omit some internal or obsolete options to make the list less imposing. 1448 # This message is too long to be a string in the A/UX 3.1 sh. 1449 cat <<_ACEOF 1450\`configure' configures Octopus 10.5 to adapt to many kinds of systems. 1451 1452Usage: $0 [OPTION]... [VAR=VALUE]... 1453 1454To assign environment variables (e.g., CC, CFLAGS...), specify them as 1455VAR=VALUE. See below for descriptions of some of the useful variables. 1456 1457Defaults for the options are specified in brackets. 1458 1459Configuration: 1460 -h, --help display this help and exit 1461 --help=short display options specific to this package 1462 --help=recursive display the short help of all the included packages 1463 -V, --version display version information and exit 1464 -q, --quiet, --silent do not print \`checking ...' messages 1465 --cache-file=FILE cache test results in FILE [disabled] 1466 -C, --config-cache alias for \`--cache-file=config.cache' 1467 -n, --no-create do not create output files 1468 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1469 1470Installation directories: 1471 --prefix=PREFIX install architecture-independent files in PREFIX 1472 [$ac_default_prefix] 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1474 [PREFIX] 1475 1476By default, \`make install' will install all the files in 1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1478an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1479for instance \`--prefix=\$HOME'. 1480 1481For better control, use the options below. 1482 1483Fine tuning of the installation directories: 1484 --bindir=DIR user executables [EPREFIX/bin] 1485 --sbindir=DIR system admin executables [EPREFIX/sbin] 1486 --libexecdir=DIR program executables [EPREFIX/libexec] 1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/octopus] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507Program names: 1508 --program-prefix=PREFIX prepend PREFIX to installed program names 1509 --program-suffix=SUFFIX append SUFFIX to installed program names 1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1511 1512System types: 1513 --build=BUILD configure for building on BUILD [guessed] 1514 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1515_ACEOF 1516fi 1517 1518if test -n "$ac_init_help"; then 1519 case $ac_init_help in 1520 short | recursive ) echo "Configuration of Octopus 10.5:";; 1521 esac 1522 cat <<\_ACEOF 1523 1524Optional Features: 1525 --disable-option-checking ignore unrecognized --enable/--with options 1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1528 --enable-silent-rules less verbose build output (undo: "make V=1") 1529 --disable-silent-rules verbose build output (undo: "make V=0") 1530 --enable-mpi(=PATH) Parallel version. For ancient versions of MPI, you 1531 may need to specify PATH for MPI libs. 1532 --enable-dependency-tracking 1533 do not reject slow dependency extractors 1534 --disable-dependency-tracking 1535 speeds up one-time build 1536 --enable-vectors Enable the use of vectorial instructions 1537 --enable-sse2 Enable the use of SSE2 vectorial instructions 1538 --enable-fma3 Enable the use of FMA3 vectorial instructions 1539 (x86_64) 1540 --enable-fma4 Enable the use of FMA4 vectorial instructions 1541 (x86_64) 1542 --enable-avx Enable the use of AVX vectorial instructions 1543 (x86_64) 1544 --enable-avx512 Enable the use of AVX512 vectorial instructions 1545 (x86_64) 1546 --disable-debug debug mode 1547 --enable-openmp Multi-threaded parallel version using OpenMP from 1548 Fortran 1549 --enable-opencl OpenCL support (experimental) 1550 --enable-nvtx NVTX profiling support for Cuda version 1551 --enable-cuda Cuda support (experimental) 1552 --enable-cuda-mpi Cuda-aware MPI support (experimental) 1553 --disable-perl don't build/install Perl components 1554 --disable-zdotc-test Assume zdotc works and do not perform a test. 1555 --disable-gdlib Do not compile with GD image-processing library. 1556 --enable-mpi_mod Use mpi.mod instead of mpif.h. 1557 --disable-mpi2 Disable the usage of MPI 2 routines. 1558 --disable-metis Do not compile with internal METIS 1559 domain-partitioning library. 1560 1561Optional Packages: 1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1564 --with-cuda-prefix=DIR Directory where cuda was installed. 1565 --with-clblas-prefix=DIR 1566 Directory where clBLAS is installed. 1567 --with-clblas-include=DIR 1568 Directory where clblas headers are installed. 1569 --with-clfft-prefix=DIR Directory where clFFT is installed. 1570 --with-clfft-include=DIR 1571 Directory where clfft headers are installed. 1572 --with-max-dim=NDIM maximum number of dimensions Octopus can use; 1573 the default is 3 (other values are experimental), must be >= 3 1574 --with-libxc-prefix=DIR Directory where libxc was installed. 1575 --with-libxc-include=DIR 1576 Directory where libxc Fortran headers were 1577 installed. 1578 --with-libvdwxc-prefix=DIR 1579 Directory where libvdwxc is installed. 1580 --with-blas=<lib> use BLAS library <lib> 1581 --with-lapack=<lib> use LAPACK library <lib> 1582 --with-gsl-prefix=DIR Prefix where GSL is installed 1583 --with-gsl-exec-prefix=DIR 1584 Exec prefix where GSL is installed 1585 --with-fftw-prefix=DIR Directory where fftw was installed. 1586 --with-pfft-prefix=<lib> 1587 PFFT version 1.0.8 is required, linked with a 1588 patched version of FFTW3.3.3. Source and more 1589 information at 1590 http://www-user.tu-chemnitz.de/~mpip/software.php 1591 --with-pfft-include=DIR PFFT Fortran include files directory 1592 --with-nfft=DIR use NFFT library (optional) 1593 http://www-user.tu-chemnitz.de/~potts/nfft/index.php 1594 --with-pnfft-prefix=DIR http://www-user.tu-chemnitz.de/~mpip/software.php. 1595 It requires PFFT. 1596 --with-pnfft-include=DIR 1597 Directory where PNFFT Fortran include files were 1598 installed. 1599 --with-netcdf-prefix=DIR 1600 Directory where netcdf was installed. 1601 --with-netcdf-include=DIR 1602 Directory where netcdf Fortran headers were 1603 installed. 1604 --with-etsf-io-prefix=DIR 1605 Directory where etsf_io was installed. 1606 --with-etsf-io-include=DIR 1607 Directory where etsf_io Fortran headers were 1608 installed. 1609 --with-berkeleygw-prefix=DIR 1610 Directory where BerkeleyGW was installed. 1611 --with-sparskit=<lib> http://www-users.cs.umn.edu/~saad/software/ 1612 --with-nlopt-prefix=DIR Directory where NLOPT was installed. The NLOPT 1613 library can be downloaded at 1614 http://ab-initio.mit.edu/wiki/index.php/Main_Page 1615 --with-blacs=<lib> use BLACS library <lib> 1616 --with-scalapack=<lib> use SCALAPACK library <lib> 1617 --with-elpa-prefix=DIR Directory where elpa was installed. 1618 --with-libfm-prefix=<lib> 1619 use LIBFM library <lib> 1620 --with-yaml-prefix=DIR Directory where LibYAML was installed. 1621 --with-futile-prefix=DIR 1622 Directory where Futile was installed. 1623 --with-futile-include=DIR 1624 Directory where Futile Fortran headers were 1625 installed. 1626 --with-psolver-prefix=DIR 1627 Directory where PSolver was installed. 1628 --with-psolver-include=DIR 1629 Directory where PSolver Fortran headers were 1630 installed. 1631 --with-isf-prefix=DIR From version 1.7.6, it is possible to compile only 1632 the Poisson Solver in a separate library, by using 1633 --disable-libbigdft in conjunction with 1634 --disable-binaries. The compilation will then enter 1635 in the PSolver/ subdirectory, compile libPSolver-1.a 1636 and stop. More information: http://bigdft.org The 1637 exact line is ../configure FC=mpif90 FCFLAGS="-O2 1638 -fopenmp" --disable-libbigdft --disable-binaries 1639 --enable-dynamic-libraries 1640 --with-isf-include=DIR ISF Fortran include files directory 1641 --with-pspio-prefix=DIR Directory where pspio was installed. 1642 --with-poke-prefix=DIR Directory where poke was installed. 1643 --with-metis-prefix=DIR Directory where external METIS library was installed 1644 (must be single-precision) 1645 --with-parmetis-prefix=DIR 1646 Directory where ParMETIS library was installed 1647 --with-likwid-prefix=DIR 1648 Directory where likwid was installed. 1649 1650Some influential environment variables: 1651 CC C compiler command 1652 CFLAGS C compiler flags 1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1654 nonstandard directory <lib dir> 1655 LIBS libraries to pass to the linker, e.g. -l<library> 1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1657 you have headers in a nonstandard directory <include dir> 1658 CXX C++ compiler command 1659 CXXFLAGS C++ compiler flags 1660 CPP C preprocessor 1661 FC Fortran compiler command 1662 FCFLAGS Fortran compiler flags 1663 FCCPP Fortran preprocessor 1664 1665Use these variables to override the choices made by `configure' or to help 1666it to find libraries and programs with nonstandard names/locations. 1667 1668Report bugs to <octopus-devel@tddft.org>. 1669_ACEOF 1670ac_status=$? 1671fi 1672 1673if test "$ac_init_help" = "recursive"; then 1674 # If there are subdirs, report their specific --help. 1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1676 test -d "$ac_dir" || 1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1678 continue 1679 ac_builddir=. 1680 1681case "$ac_dir" in 1682.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1683*) 1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1685 # A ".." for each directory in $ac_dir_suffix. 1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1687 case $ac_top_builddir_sub in 1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1690 esac ;; 1691esac 1692ac_abs_top_builddir=$ac_pwd 1693ac_abs_builddir=$ac_pwd$ac_dir_suffix 1694# for backward compatibility: 1695ac_top_builddir=$ac_top_build_prefix 1696 1697case $srcdir in 1698 .) # We are building in place. 1699 ac_srcdir=. 1700 ac_top_srcdir=$ac_top_builddir_sub 1701 ac_abs_top_srcdir=$ac_pwd ;; 1702 [\\/]* | ?:[\\/]* ) # Absolute name. 1703 ac_srcdir=$srcdir$ac_dir_suffix; 1704 ac_top_srcdir=$srcdir 1705 ac_abs_top_srcdir=$srcdir ;; 1706 *) # Relative name. 1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1708 ac_top_srcdir=$ac_top_build_prefix$srcdir 1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1710esac 1711ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1712 1713 cd "$ac_dir" || { ac_status=$?; continue; } 1714 # Check for guested configure. 1715 if test -f "$ac_srcdir/configure.gnu"; then 1716 echo && 1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1718 elif test -f "$ac_srcdir/configure"; then 1719 echo && 1720 $SHELL "$ac_srcdir/configure" --help=recursive 1721 else 1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1723 fi || ac_status=$? 1724 cd "$ac_pwd" || { ac_status=$?; break; } 1725 done 1726fi 1727 1728test -n "$ac_init_help" && exit $ac_status 1729if $ac_init_version; then 1730 cat <<\_ACEOF 1731Octopus configure 10.5 1732generated by GNU Autoconf 2.69 1733 1734Copyright (C) 2012 Free Software Foundation, Inc. 1735This configure script is free software; the Free Software Foundation 1736gives unlimited permission to copy, distribute and modify it. 1737_ACEOF 1738 exit 1739fi 1740 1741## ------------------------ ## 1742## Autoconf initialization. ## 1743## ------------------------ ## 1744 1745# ac_fn_c_try_compile LINENO 1746# -------------------------- 1747# Try to compile conftest.$ac_ext, and return whether this succeeded. 1748ac_fn_c_try_compile () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 rm -f conftest.$ac_objext 1752 if { { ac_try="$ac_compile" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_compile") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { 1768 test -z "$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 } && test -s conftest.$ac_objext; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_compile 1782 1783# ac_fn_cxx_try_compile LINENO 1784# ---------------------------- 1785# Try to compile conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_cxx_try_compile () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext 1790 if { { ac_try="$ac_compile" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_compile") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_cxx_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest.$ac_objext; then : 1809 ac_retval=0 1810else 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=1 1815fi 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 as_fn_set_status $ac_retval 1818 1819} # ac_fn_cxx_try_compile 1820 1821# ac_fn_c_try_link LINENO 1822# ----------------------- 1823# Try to link conftest.$ac_ext, and return whether this succeeded. 1824ac_fn_c_try_link () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 rm -f conftest.$ac_objext conftest$ac_exeext 1828 if { { ac_try="$ac_link" 1829case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_link") 2>conftest.err 1836 ac_status=$? 1837 if test -s conftest.err; then 1838 grep -v '^ *+' conftest.err >conftest.er1 1839 cat conftest.er1 >&5 1840 mv -f conftest.er1 conftest.err 1841 fi 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { 1844 test -z "$ac_c_werror_flag" || 1845 test ! -s conftest.err 1846 } && test -s conftest$ac_exeext && { 1847 test "$cross_compiling" = yes || 1848 test -x conftest$ac_exeext 1849 }; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=1 1856fi 1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1859 # interfere with the next link command; also delete a directory that is 1860 # left behind by Apple's compiler. We do this before executing the actions. 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_link 1866 1867# ac_fn_c_try_cpp LINENO 1868# ---------------------- 1869# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1870ac_fn_c_try_cpp () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 if { { ac_try="$ac_cpp conftest.$ac_ext" 1874case "(($ac_try" in 1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1876 *) ac_try_echo=$ac_try;; 1877esac 1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1879$as_echo "$ac_try_echo"; } >&5 1880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1881 ac_status=$? 1882 if test -s conftest.err; then 1883 grep -v '^ *+' conftest.err >conftest.er1 1884 cat conftest.er1 >&5 1885 mv -f conftest.er1 conftest.err 1886 fi 1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1888 test $ac_status = 0; } > conftest.i && { 1889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1890 test ! -s conftest.err 1891 }; then : 1892 ac_retval=0 1893else 1894 $as_echo "$as_me: failed program was:" >&5 1895sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_retval=1 1898fi 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 as_fn_set_status $ac_retval 1901 1902} # ac_fn_c_try_cpp 1903 1904# ac_fn_c_try_run LINENO 1905# ---------------------- 1906# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1907# that executables *can* be run. 1908ac_fn_c_try_run () 1909{ 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 if { { ac_try="$ac_link" 1912case "(($ac_try" in 1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1914 *) ac_try_echo=$ac_try;; 1915esac 1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1917$as_echo "$ac_try_echo"; } >&5 1918 (eval "$ac_link") 2>&5 1919 ac_status=$? 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1922 { { case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_try") 2>&5 1929 ac_status=$? 1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1931 test $ac_status = 0; }; }; then : 1932 ac_retval=0 1933else 1934 $as_echo "$as_me: program exited with status $ac_status" >&5 1935 $as_echo "$as_me: failed program was:" >&5 1936sed 's/^/| /' conftest.$ac_ext >&5 1937 1938 ac_retval=$ac_status 1939fi 1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_c_try_run 1945 1946# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1947# ------------------------------------------------------- 1948# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1949# the include files in INCLUDES and setting the cache variable VAR 1950# accordingly. 1951ac_fn_c_check_header_mongrel () 1952{ 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 if eval \${$3+:} false; then : 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1956$as_echo_n "checking for $2... " >&6; } 1957if eval \${$3+:} false; then : 1958 $as_echo_n "(cached) " >&6 1959fi 1960eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962$as_echo "$ac_res" >&6; } 1963else 1964 # Is the header compilable? 1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1966$as_echo_n "checking $2 usability... " >&6; } 1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969$4 1970#include <$2> 1971_ACEOF 1972if ac_fn_c_try_compile "$LINENO"; then : 1973 ac_header_compiler=yes 1974else 1975 ac_header_compiler=no 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1979$as_echo "$ac_header_compiler" >&6; } 1980 1981# Is the header present? 1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1983$as_echo_n "checking $2 presence... " >&6; } 1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986#include <$2> 1987_ACEOF 1988if ac_fn_c_try_cpp "$LINENO"; then : 1989 ac_header_preproc=yes 1990else 1991 ac_header_preproc=no 1992fi 1993rm -f conftest.err conftest.i conftest.$ac_ext 1994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1995$as_echo "$ac_header_preproc" >&6; } 1996 1997# So? What about this header? 1998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1999 yes:no: ) 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2001$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2003$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2004 ;; 2005 no:yes:* ) 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2007$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2009$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2011$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2013$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2015$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2016( $as_echo "## -------------------------------------- ## 2017## Report this to octopus-devel@tddft.org ## 2018## -------------------------------------- ##" 2019 ) | sed "s/^/$as_me: WARNING: /" >&2 2020 ;; 2021esac 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2023$as_echo_n "checking for $2... " >&6; } 2024if eval \${$3+:} false; then : 2025 $as_echo_n "(cached) " >&6 2026else 2027 eval "$3=\$ac_header_compiler" 2028fi 2029eval ac_res=\$$3 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2031$as_echo "$ac_res" >&6; } 2032fi 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2034 2035} # ac_fn_c_check_header_mongrel 2036 2037# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2038# ------------------------------------------------------- 2039# Tests whether HEADER exists and can be compiled using the include files in 2040# INCLUDES, setting the cache variable VAR accordingly. 2041ac_fn_c_check_header_compile () 2042{ 2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2045$as_echo_n "checking for $2... " >&6; } 2046if eval \${$3+:} false; then : 2047 $as_echo_n "(cached) " >&6 2048else 2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050/* end confdefs.h. */ 2051$4 2052#include <$2> 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 eval "$3=yes" 2056else 2057 eval "$3=no" 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2060fi 2061eval ac_res=\$$3 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2063$as_echo "$ac_res" >&6; } 2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2065 2066} # ac_fn_c_check_header_compile 2067 2068# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2069# ------------------------------------------- 2070# Tests whether TYPE exists after having included INCLUDES, setting cache 2071# variable VAR accordingly. 2072ac_fn_c_check_type () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2076$as_echo_n "checking for $2... " >&6; } 2077if eval \${$3+:} false; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 eval "$3=no" 2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2082/* end confdefs.h. */ 2083$4 2084int 2085main () 2086{ 2087if (sizeof ($2)) 2088 return 0; 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096$4 2097int 2098main () 2099{ 2100if (sizeof (($2))) 2101 return 0; 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO"; then : 2107 2108else 2109 eval "$3=yes" 2110fi 2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2112fi 2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2114fi 2115eval ac_res=\$$3 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2117$as_echo "$ac_res" >&6; } 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2119 2120} # ac_fn_c_check_type 2121 2122# ac_fn_c_check_func LINENO FUNC VAR 2123# ---------------------------------- 2124# Tests whether FUNC exists, setting the cache variable VAR accordingly 2125ac_fn_c_check_func () 2126{ 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2129$as_echo_n "checking for $2... " >&6; } 2130if eval \${$3+:} false; then : 2131 $as_echo_n "(cached) " >&6 2132else 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2134/* end confdefs.h. */ 2135/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2136 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2137#define $2 innocuous_$2 2138 2139/* System header to define __stub macros and hopefully few prototypes, 2140 which can conflict with char $2 (); below. 2141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2142 <limits.h> exists even on freestanding compilers. */ 2143 2144#ifdef __STDC__ 2145# include <limits.h> 2146#else 2147# include <assert.h> 2148#endif 2149 2150#undef $2 2151 2152/* Override any GCC internal prototype to avoid an error. 2153 Use char because int might match the return type of a GCC 2154 builtin and then its argument prototype would still apply. */ 2155#ifdef __cplusplus 2156extern "C" 2157#endif 2158char $2 (); 2159/* The GNU C library defines this for functions which it implements 2160 to always fail with ENOSYS. Some functions are actually named 2161 something starting with __ and the normal name is an alias. */ 2162#if defined __stub_$2 || defined __stub___$2 2163choke me 2164#endif 2165 2166int 2167main () 2168{ 2169return $2 (); 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_link "$LINENO"; then : 2175 eval "$3=yes" 2176else 2177 eval "$3=no" 2178fi 2179rm -f core conftest.err conftest.$ac_objext \ 2180 conftest$ac_exeext conftest.$ac_ext 2181fi 2182eval ac_res=\$$3 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2184$as_echo "$ac_res" >&6; } 2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2186 2187} # ac_fn_c_check_func 2188 2189# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2190# -------------------------------------------- 2191# Tries to find the compile-time value of EXPR in a program that includes 2192# INCLUDES, setting VAR accordingly. Returns whether the value could be 2193# computed 2194ac_fn_c_compute_int () 2195{ 2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2197 if test "$cross_compiling" = yes; then 2198 # Depending upon the size, compute the lo and hi bounds. 2199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2200/* end confdefs.h. */ 2201$4 2202int 2203main () 2204{ 2205static int test_array [1 - 2 * !(($2) >= 0)]; 2206test_array [0] = 0; 2207return test_array [0]; 2208 2209 ; 2210 return 0; 2211} 2212_ACEOF 2213if ac_fn_c_try_compile "$LINENO"; then : 2214 ac_lo=0 ac_mid=0 2215 while :; do 2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2217/* end confdefs.h. */ 2218$4 2219int 2220main () 2221{ 2222static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2223test_array [0] = 0; 2224return test_array [0]; 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 ac_hi=$ac_mid; break 2232else 2233 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2234 if test $ac_lo -le $ac_mid; then 2235 ac_lo= ac_hi= 2236 break 2237 fi 2238 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2241 done 2242else 2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2244/* end confdefs.h. */ 2245$4 2246int 2247main () 2248{ 2249static int test_array [1 - 2 * !(($2) < 0)]; 2250test_array [0] = 0; 2251return test_array [0]; 2252 2253 ; 2254 return 0; 2255} 2256_ACEOF 2257if ac_fn_c_try_compile "$LINENO"; then : 2258 ac_hi=-1 ac_mid=-1 2259 while :; do 2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2261/* end confdefs.h. */ 2262$4 2263int 2264main () 2265{ 2266static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2267test_array [0] = 0; 2268return test_array [0]; 2269 2270 ; 2271 return 0; 2272} 2273_ACEOF 2274if ac_fn_c_try_compile "$LINENO"; then : 2275 ac_lo=$ac_mid; break 2276else 2277 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2278 if test $ac_mid -le $ac_hi; then 2279 ac_lo= ac_hi= 2280 break 2281 fi 2282 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2283fi 2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2285 done 2286else 2287 ac_lo= ac_hi= 2288fi 2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2290fi 2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2292# Binary search between lo and hi bounds. 2293while test "x$ac_lo" != "x$ac_hi"; do 2294 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296/* end confdefs.h. */ 2297$4 2298int 2299main () 2300{ 2301static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2302test_array [0] = 0; 2303return test_array [0]; 2304 2305 ; 2306 return 0; 2307} 2308_ACEOF 2309if ac_fn_c_try_compile "$LINENO"; then : 2310 ac_hi=$ac_mid 2311else 2312 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2313fi 2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2315done 2316case $ac_lo in #(( 2317?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2318'') ac_retval=1 ;; 2319esac 2320 else 2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2322/* end confdefs.h. */ 2323$4 2324static long int longval () { return $2; } 2325static unsigned long int ulongval () { return $2; } 2326#include <stdio.h> 2327#include <stdlib.h> 2328int 2329main () 2330{ 2331 2332 FILE *f = fopen ("conftest.val", "w"); 2333 if (! f) 2334 return 1; 2335 if (($2) < 0) 2336 { 2337 long int i = longval (); 2338 if (i != ($2)) 2339 return 1; 2340 fprintf (f, "%ld", i); 2341 } 2342 else 2343 { 2344 unsigned long int i = ulongval (); 2345 if (i != ($2)) 2346 return 1; 2347 fprintf (f, "%lu", i); 2348 } 2349 /* Do not output a trailing newline, as this causes \r\n confusion 2350 on some platforms. */ 2351 return ferror (f) || fclose (f) != 0; 2352 2353 ; 2354 return 0; 2355} 2356_ACEOF 2357if ac_fn_c_try_run "$LINENO"; then : 2358 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2359else 2360 ac_retval=1 2361fi 2362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2363 conftest.$ac_objext conftest.beam conftest.$ac_ext 2364rm -f conftest.val 2365 2366 fi 2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2368 as_fn_set_status $ac_retval 2369 2370} # ac_fn_c_compute_int 2371 2372# ac_fn_fc_try_compile LINENO 2373# --------------------------- 2374# Try to compile conftest.$ac_ext, and return whether this succeeded. 2375ac_fn_fc_try_compile () 2376{ 2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2378 rm -f conftest.$ac_objext 2379 if { { ac_try="$ac_compile" 2380case "(($ac_try" in 2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2382 *) ac_try_echo=$ac_try;; 2383esac 2384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2385$as_echo "$ac_try_echo"; } >&5 2386 (eval "$ac_compile") 2>conftest.err 2387 ac_status=$? 2388 if test -s conftest.err; then 2389 grep -v '^ *+' conftest.err >conftest.er1 2390 cat conftest.er1 >&5 2391 mv -f conftest.er1 conftest.err 2392 fi 2393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2394 test $ac_status = 0; } && { 2395 test -z "$ac_fc_werror_flag" || 2396 test ! -s conftest.err 2397 } && test -s conftest.$ac_objext; then : 2398 ac_retval=0 2399else 2400 $as_echo "$as_me: failed program was:" >&5 2401sed 's/^/| /' conftest.$ac_ext >&5 2402 2403 ac_retval=1 2404fi 2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2406 as_fn_set_status $ac_retval 2407 2408} # ac_fn_fc_try_compile 2409 2410# ac_fn_fc_try_run LINENO 2411# ----------------------- 2412# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2413# that executables *can* be run. 2414ac_fn_fc_try_run () 2415{ 2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2417 if { { ac_try="$ac_link" 2418case "(($ac_try" in 2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2420 *) ac_try_echo=$ac_try;; 2421esac 2422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2423$as_echo "$ac_try_echo"; } >&5 2424 (eval "$ac_link") 2>&5 2425 ac_status=$? 2426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2427 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2428 { { case "(($ac_try" in 2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2430 *) ac_try_echo=$ac_try;; 2431esac 2432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2433$as_echo "$ac_try_echo"; } >&5 2434 (eval "$ac_try") 2>&5 2435 ac_status=$? 2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2437 test $ac_status = 0; }; }; then : 2438 ac_retval=0 2439else 2440 $as_echo "$as_me: program exited with status $ac_status" >&5 2441 $as_echo "$as_me: failed program was:" >&5 2442sed 's/^/| /' conftest.$ac_ext >&5 2443 2444 ac_retval=$ac_status 2445fi 2446 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2448 as_fn_set_status $ac_retval 2449 2450} # ac_fn_fc_try_run 2451 2452# ac_fn_fc_try_link LINENO 2453# ------------------------ 2454# Try to link conftest.$ac_ext, and return whether this succeeded. 2455ac_fn_fc_try_link () 2456{ 2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2458 rm -f conftest.$ac_objext conftest$ac_exeext 2459 if { { ac_try="$ac_link" 2460case "(($ac_try" in 2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2462 *) ac_try_echo=$ac_try;; 2463esac 2464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2465$as_echo "$ac_try_echo"; } >&5 2466 (eval "$ac_link") 2>conftest.err 2467 ac_status=$? 2468 if test -s conftest.err; then 2469 grep -v '^ *+' conftest.err >conftest.er1 2470 cat conftest.er1 >&5 2471 mv -f conftest.er1 conftest.err 2472 fi 2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2474 test $ac_status = 0; } && { 2475 test -z "$ac_fc_werror_flag" || 2476 test ! -s conftest.err 2477 } && test -s conftest$ac_exeext && { 2478 test "$cross_compiling" = yes || 2479 test -x conftest$ac_exeext 2480 }; then : 2481 ac_retval=0 2482else 2483 $as_echo "$as_me: failed program was:" >&5 2484sed 's/^/| /' conftest.$ac_ext >&5 2485 2486 ac_retval=1 2487fi 2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2490 # interfere with the next link command; also delete a directory that is 2491 # left behind by Apple's compiler. We do this before executing the actions. 2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2494 as_fn_set_status $ac_retval 2495 2496} # ac_fn_fc_try_link 2497 2498# ac_fn_fc_check_func LINENO FUNC VAR 2499# ----------------------------------- 2500# Tests whether FUNC exists, setting the cache variable VAR accordingly 2501ac_fn_fc_check_func () 2502{ 2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2505$as_echo_n "checking for $2... " >&6; } 2506if eval \${$3+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 cat > conftest.$ac_ext <<_ACEOF 2510 program main 2511call $2 2512 end 2513_ACEOF 2514if ac_fn_fc_try_link "$LINENO"; then : 2515 eval "$3=yes" 2516else 2517 eval "$3=no" 2518fi 2519rm -f core conftest.err conftest.$ac_objext \ 2520 conftest$ac_exeext conftest.$ac_ext 2521fi 2522eval ac_res=\$$3 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2524$as_echo "$ac_res" >&6; } 2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2526 2527} # ac_fn_fc_check_func 2528cat >config.log <<_ACEOF 2529This file contains any messages produced by compilers while 2530running configure, to aid debugging if configure makes a mistake. 2531 2532It was created by Octopus $as_me 10.5, which was 2533generated by GNU Autoconf 2.69. Invocation command line was 2534 2535 $ $0 $@ 2536 2537_ACEOF 2538exec 5>>config.log 2539{ 2540cat <<_ASUNAME 2541## --------- ## 2542## Platform. ## 2543## --------- ## 2544 2545hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2546uname -m = `(uname -m) 2>/dev/null || echo unknown` 2547uname -r = `(uname -r) 2>/dev/null || echo unknown` 2548uname -s = `(uname -s) 2>/dev/null || echo unknown` 2549uname -v = `(uname -v) 2>/dev/null || echo unknown` 2550 2551/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2552/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2553 2554/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2555/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2556/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2557/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2558/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2559/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2560/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2561 2562_ASUNAME 2563 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 $as_echo "PATH: $as_dir" 2570 done 2571IFS=$as_save_IFS 2572 2573} >&5 2574 2575cat >&5 <<_ACEOF 2576 2577 2578## ----------- ## 2579## Core tests. ## 2580## ----------- ## 2581 2582_ACEOF 2583 2584 2585# Keep a trace of the command line. 2586# Strip out --no-create and --no-recursion so they do not pile up. 2587# Strip out --silent because we don't want to record it for future runs. 2588# Also quote any args containing shell meta-characters. 2589# Make two passes to allow for proper duplicate-argument suppression. 2590ac_configure_args= 2591ac_configure_args0= 2592ac_configure_args1= 2593ac_must_keep_next=false 2594for ac_pass in 1 2 2595do 2596 for ac_arg 2597 do 2598 case $ac_arg in 2599 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2601 | -silent | --silent | --silen | --sile | --sil) 2602 continue ;; 2603 *\'*) 2604 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 esac 2606 case $ac_pass in 2607 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2608 2) 2609 as_fn_append ac_configure_args1 " '$ac_arg'" 2610 if test $ac_must_keep_next = true; then 2611 ac_must_keep_next=false # Got value, back to normal. 2612 else 2613 case $ac_arg in 2614 *=* | --config-cache | -C | -disable-* | --disable-* \ 2615 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2616 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2617 | -with-* | --with-* | -without-* | --without-* | --x) 2618 case "$ac_configure_args0 " in 2619 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2620 esac 2621 ;; 2622 -* ) ac_must_keep_next=true ;; 2623 esac 2624 fi 2625 as_fn_append ac_configure_args " '$ac_arg'" 2626 ;; 2627 esac 2628 done 2629done 2630{ ac_configure_args0=; unset ac_configure_args0;} 2631{ ac_configure_args1=; unset ac_configure_args1;} 2632 2633# When interrupted or exit'd, cleanup temporary files, and complete 2634# config.log. We remove comments because anyway the quotes in there 2635# would cause problems or look ugly. 2636# WARNING: Use '\'' to represent an apostrophe within the trap. 2637# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2638trap 'exit_status=$? 2639 # Save into config.log some information that might help in debugging. 2640 { 2641 echo 2642 2643 $as_echo "## ---------------- ## 2644## Cache variables. ## 2645## ---------------- ##" 2646 echo 2647 # The following way of writing the cache mishandles newlines in values, 2648( 2649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2650 eval ac_val=\$$ac_var 2651 case $ac_val in #( 2652 *${as_nl}*) 2653 case $ac_var in #( 2654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2655$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2656 esac 2657 case $ac_var in #( 2658 _ | IFS | as_nl) ;; #( 2659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2660 *) { eval $ac_var=; unset $ac_var;} ;; 2661 esac ;; 2662 esac 2663 done 2664 (set) 2>&1 | 2665 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2666 *${as_nl}ac_space=\ *) 2667 sed -n \ 2668 "s/'\''/'\''\\\\'\'''\''/g; 2669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2670 ;; #( 2671 *) 2672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2673 ;; 2674 esac | 2675 sort 2676) 2677 echo 2678 2679 $as_echo "## ----------------- ## 2680## Output variables. ## 2681## ----------------- ##" 2682 echo 2683 for ac_var in $ac_subst_vars 2684 do 2685 eval ac_val=\$$ac_var 2686 case $ac_val in 2687 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2688 esac 2689 $as_echo "$ac_var='\''$ac_val'\''" 2690 done | sort 2691 echo 2692 2693 if test -n "$ac_subst_files"; then 2694 $as_echo "## ------------------- ## 2695## File substitutions. ## 2696## ------------------- ##" 2697 echo 2698 for ac_var in $ac_subst_files 2699 do 2700 eval ac_val=\$$ac_var 2701 case $ac_val in 2702 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2703 esac 2704 $as_echo "$ac_var='\''$ac_val'\''" 2705 done | sort 2706 echo 2707 fi 2708 2709 if test -s confdefs.h; then 2710 $as_echo "## ----------- ## 2711## confdefs.h. ## 2712## ----------- ##" 2713 echo 2714 cat confdefs.h 2715 echo 2716 fi 2717 test "$ac_signal" != 0 && 2718 $as_echo "$as_me: caught signal $ac_signal" 2719 $as_echo "$as_me: exit $exit_status" 2720 } >&5 2721 rm -f core *.core core.conftest.* && 2722 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2723 exit $exit_status 2724' 0 2725for ac_signal in 1 2 13 15; do 2726 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2727done 2728ac_signal=0 2729 2730# confdefs.h avoids OS command line length limits that DEFS can exceed. 2731rm -f -r conftest* confdefs.h 2732 2733$as_echo "/* confdefs.h */" > confdefs.h 2734 2735# Predefined preprocessor variables. 2736 2737cat >>confdefs.h <<_ACEOF 2738#define PACKAGE_NAME "$PACKAGE_NAME" 2739_ACEOF 2740 2741cat >>confdefs.h <<_ACEOF 2742#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2743_ACEOF 2744 2745cat >>confdefs.h <<_ACEOF 2746#define PACKAGE_VERSION "$PACKAGE_VERSION" 2747_ACEOF 2748 2749cat >>confdefs.h <<_ACEOF 2750#define PACKAGE_STRING "$PACKAGE_STRING" 2751_ACEOF 2752 2753cat >>confdefs.h <<_ACEOF 2754#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2755_ACEOF 2756 2757cat >>confdefs.h <<_ACEOF 2758#define PACKAGE_URL "$PACKAGE_URL" 2759_ACEOF 2760 2761 2762# Let the site file select an alternate cache file if it wants to. 2763# Prefer an explicitly selected file to automatically selected ones. 2764ac_site_file1=NONE 2765ac_site_file2=NONE 2766if test -n "$CONFIG_SITE"; then 2767 # We do not want a PATH search for config.site. 2768 case $CONFIG_SITE in #(( 2769 -*) ac_site_file1=./$CONFIG_SITE;; 2770 */*) ac_site_file1=$CONFIG_SITE;; 2771 *) ac_site_file1=./$CONFIG_SITE;; 2772 esac 2773elif test "x$prefix" != xNONE; then 2774 ac_site_file1=$prefix/share/config.site 2775 ac_site_file2=$prefix/etc/config.site 2776else 2777 ac_site_file1=$ac_default_prefix/share/config.site 2778 ac_site_file2=$ac_default_prefix/etc/config.site 2779fi 2780for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2781do 2782 test "x$ac_site_file" = xNONE && continue 2783 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2785$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2786 sed 's/^/| /' "$ac_site_file" >&5 2787 . "$ac_site_file" \ 2788 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2790as_fn_error $? "failed to load site script $ac_site_file 2791See \`config.log' for more details" "$LINENO" 5; } 2792 fi 2793done 2794 2795if test -r "$cache_file"; then 2796 # Some versions of bash will fail to source /dev/null (special files 2797 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2798 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2800$as_echo "$as_me: loading cache $cache_file" >&6;} 2801 case $cache_file in 2802 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2803 *) . "./$cache_file";; 2804 esac 2805 fi 2806else 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2808$as_echo "$as_me: creating cache $cache_file" >&6;} 2809 >$cache_file 2810fi 2811 2812# Check that the precious variables saved in the cache have kept the same 2813# value. 2814ac_cache_corrupted=false 2815for ac_var in $ac_precious_vars; do 2816 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2817 eval ac_new_set=\$ac_env_${ac_var}_set 2818 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2819 eval ac_new_val=\$ac_env_${ac_var}_value 2820 case $ac_old_set,$ac_new_set in 2821 set,) 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2823$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2824 ac_cache_corrupted=: ;; 2825 ,set) 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2827$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2828 ac_cache_corrupted=: ;; 2829 ,);; 2830 *) 2831 if test "x$ac_old_val" != "x$ac_new_val"; then 2832 # differences in whitespace do not lead to failure. 2833 ac_old_val_w=`echo x $ac_old_val` 2834 ac_new_val_w=`echo x $ac_new_val` 2835 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2837$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2838 ac_cache_corrupted=: 2839 else 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2841$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2842 eval $ac_var=\$ac_old_val 2843 fi 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2845$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2847$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2848 fi;; 2849 esac 2850 # Pass precious variables to config.status. 2851 if test "$ac_new_set" = set; then 2852 case $ac_new_val in 2853 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2854 *) ac_arg=$ac_var=$ac_new_val ;; 2855 esac 2856 case " $ac_configure_args " in 2857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2858 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2859 esac 2860 fi 2861done 2862if $ac_cache_corrupted; then 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2866$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2867 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2868fi 2869## -------------------- ## 2870## Main body of script. ## 2871## -------------------- ## 2872 2873ac_ext=c 2874ac_cpp='$CPP $CPPFLAGS' 2875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2877ac_compiler_gnu=$ac_cv_c_compiler_gnu 2878 2879 2880 2881ac_aux_dir= 2882for ac_dir in build-aux "$srcdir"/build-aux; do 2883 if test -f "$ac_dir/install-sh"; then 2884 ac_aux_dir=$ac_dir 2885 ac_install_sh="$ac_aux_dir/install-sh -c" 2886 break 2887 elif test -f "$ac_dir/install.sh"; then 2888 ac_aux_dir=$ac_dir 2889 ac_install_sh="$ac_aux_dir/install.sh -c" 2890 break 2891 elif test -f "$ac_dir/shtool"; then 2892 ac_aux_dir=$ac_dir 2893 ac_install_sh="$ac_aux_dir/shtool install -c" 2894 break 2895 fi 2896done 2897if test -z "$ac_aux_dir"; then 2898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2899fi 2900 2901# These three variables are undocumented and unsupported, 2902# and are intended to be withdrawn in a future Autoconf release. 2903# They can cause serious problems if a builder's source tree is in a directory 2904# whose full name contains unusual characters. 2905ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2906ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2907ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2908 2909 2910am__api_version='1.16' 2911 2912# Find a good install program. We prefer a C program (faster), 2913# so one script is as good as another. But avoid the broken or 2914# incompatible versions: 2915# SysV /etc/install, /usr/sbin/install 2916# SunOS /usr/etc/install 2917# IRIX /sbin/install 2918# AIX /bin/install 2919# AmigaOS /C/install, which installs bootblocks on floppy discs 2920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2921# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2923# OS/2's system install, which has a completely different semantic 2924# ./install, which can be erroneously created by make from ./install.sh. 2925# Reject install programs that cannot install multiple files. 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2927$as_echo_n "checking for a BSD-compatible install... " >&6; } 2928if test -z "$INSTALL"; then 2929if ${ac_cv_path_install+:} false; then : 2930 $as_echo_n "(cached) " >&6 2931else 2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 test -z "$as_dir" && as_dir=. 2937 # Account for people who put trailing slashes in PATH elements. 2938case $as_dir/ in #(( 2939 ./ | .// | /[cC]/* | \ 2940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2942 /usr/ucb/* ) ;; 2943 *) 2944 # OSF1 and SCO ODT 3.0 have their own names for install. 2945 # Don't use installbsd from OSF since it installs stuff as root 2946 # by default. 2947 for ac_prog in ginstall scoinst install; do 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2950 if test $ac_prog = install && 2951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2952 # AIX install. It has an incompatible calling convention. 2953 : 2954 elif test $ac_prog = install && 2955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2956 # program-specific install script used by HP pwplus--don't use. 2957 : 2958 else 2959 rm -rf conftest.one conftest.two conftest.dir 2960 echo one > conftest.one 2961 echo two > conftest.two 2962 mkdir conftest.dir 2963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2964 test -s conftest.one && test -s conftest.two && 2965 test -s conftest.dir/conftest.one && 2966 test -s conftest.dir/conftest.two 2967 then 2968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2969 break 3 2970 fi 2971 fi 2972 fi 2973 done 2974 done 2975 ;; 2976esac 2977 2978 done 2979IFS=$as_save_IFS 2980 2981rm -rf conftest.one conftest.two conftest.dir 2982 2983fi 2984 if test "${ac_cv_path_install+set}" = set; then 2985 INSTALL=$ac_cv_path_install 2986 else 2987 # As a last resort, use the slow shell script. Don't cache a 2988 # value for INSTALL within a source directory, because that will 2989 # break other packages using the cache if that directory is 2990 # removed, or if the value is a relative name. 2991 INSTALL=$ac_install_sh 2992 fi 2993fi 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2995$as_echo "$INSTALL" >&6; } 2996 2997# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2998# It thinks the first close brace ends the variable substitution. 2999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3000 3001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3002 3003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3004 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3006$as_echo_n "checking whether build environment is sane... " >&6; } 3007# Reject unsafe characters in $srcdir or the absolute working directory 3008# name. Accept space and tab only in the latter. 3009am_lf=' 3010' 3011case `pwd` in 3012 *[\\\"\#\$\&\'\`$am_lf]*) 3013 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3014esac 3015case $srcdir in 3016 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3017 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3018esac 3019 3020# Do 'set' in a subshell so we don't clobber the current shell's 3021# arguments. Must try -L first in case configure is actually a 3022# symlink; some systems play weird games with the mod time of symlinks 3023# (eg FreeBSD returns the mod time of the symlink's containing 3024# directory). 3025if ( 3026 am_has_slept=no 3027 for am_try in 1 2; do 3028 echo "timestamp, slept: $am_has_slept" > conftest.file 3029 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3030 if test "$*" = "X"; then 3031 # -L didn't work. 3032 set X `ls -t "$srcdir/configure" conftest.file` 3033 fi 3034 if test "$*" != "X $srcdir/configure conftest.file" \ 3035 && test "$*" != "X conftest.file $srcdir/configure"; then 3036 3037 # If neither matched, then we have a broken ls. This can happen 3038 # if, for instance, CONFIG_SHELL is bash and it inherits a 3039 # broken ls alias from the environment. This has actually 3040 # happened. Such a system could not be considered "sane". 3041 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3042 alias in your environment" "$LINENO" 5 3043 fi 3044 if test "$2" = conftest.file || test $am_try -eq 2; then 3045 break 3046 fi 3047 # Just in case. 3048 sleep 1 3049 am_has_slept=yes 3050 done 3051 test "$2" = conftest.file 3052 ) 3053then 3054 # Ok. 3055 : 3056else 3057 as_fn_error $? "newly created file is older than distributed files! 3058Check your system clock" "$LINENO" 5 3059fi 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3061$as_echo "yes" >&6; } 3062# If we didn't sleep, we still need to ensure time stamps of config.status and 3063# generated files are strictly newer. 3064am_sleep_pid= 3065if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3066 ( sleep 1 ) & 3067 am_sleep_pid=$! 3068fi 3069 3070rm -f conftest.file 3071 3072test "$program_prefix" != NONE && 3073 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3074# Use a double $ so make ignores it. 3075test "$program_suffix" != NONE && 3076 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3077# Double any \ or $. 3078# By default was `s,x,x', remove it if useless. 3079ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3080program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3081 3082# Expand $ac_aux_dir to an absolute path. 3083am_aux_dir=`cd "$ac_aux_dir" && pwd` 3084 3085if test x"${MISSING+set}" != xset; then 3086 case $am_aux_dir in 3087 *\ * | *\ *) 3088 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3089 *) 3090 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3091 esac 3092fi 3093# Use eval to expand $SHELL 3094if eval "$MISSING --is-lightweight"; then 3095 am_missing_run="$MISSING " 3096else 3097 am_missing_run= 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3099$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3100fi 3101 3102if test x"${install_sh+set}" != xset; then 3103 case $am_aux_dir in 3104 *\ * | *\ *) 3105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3106 *) 3107 install_sh="\${SHELL} $am_aux_dir/install-sh" 3108 esac 3109fi 3110 3111# Installed binaries are usually stripped using 'strip' when the user 3112# run "make install-strip". However 'strip' might not be the right 3113# tool to use in cross-compilation environments, therefore Automake 3114# will honor the 'STRIP' environment variable to overrule this program. 3115if test "$cross_compiling" != no; then 3116 if test -n "$ac_tool_prefix"; then 3117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3118set dummy ${ac_tool_prefix}strip; ac_word=$2 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120$as_echo_n "checking for $ac_word... " >&6; } 3121if ${ac_cv_prog_STRIP+:} false; then : 3122 $as_echo_n "(cached) " >&6 3123else 3124 if test -n "$STRIP"; then 3125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3126else 3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3128for as_dir in $PATH 3129do 3130 IFS=$as_save_IFS 3131 test -z "$as_dir" && as_dir=. 3132 for ac_exec_ext in '' $ac_executable_extensions; do 3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3134 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3136 break 2 3137 fi 3138done 3139 done 3140IFS=$as_save_IFS 3141 3142fi 3143fi 3144STRIP=$ac_cv_prog_STRIP 3145if test -n "$STRIP"; then 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3147$as_echo "$STRIP" >&6; } 3148else 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150$as_echo "no" >&6; } 3151fi 3152 3153 3154fi 3155if test -z "$ac_cv_prog_STRIP"; then 3156 ac_ct_STRIP=$STRIP 3157 # Extract the first word of "strip", so it can be a program name with args. 3158set dummy strip; ac_word=$2 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160$as_echo_n "checking for $ac_word... " >&6; } 3161if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 if test -n "$ac_ct_STRIP"; then 3165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3166else 3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168for as_dir in $PATH 3169do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_exec_ext in '' $ac_executable_extensions; do 3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3174 ac_cv_prog_ac_ct_STRIP="strip" 3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3176 break 2 3177 fi 3178done 3179 done 3180IFS=$as_save_IFS 3181 3182fi 3183fi 3184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3185if test -n "$ac_ct_STRIP"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3187$as_echo "$ac_ct_STRIP" >&6; } 3188else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191fi 3192 3193 if test "x$ac_ct_STRIP" = x; then 3194 STRIP=":" 3195 else 3196 case $cross_compiling:$ac_tool_warned in 3197yes:) 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3200ac_tool_warned=yes ;; 3201esac 3202 STRIP=$ac_ct_STRIP 3203 fi 3204else 3205 STRIP="$ac_cv_prog_STRIP" 3206fi 3207 3208fi 3209INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3210 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3212$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3213if test -z "$MKDIR_P"; then 3214 if ${ac_cv_path_mkdir+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3219do 3220 IFS=$as_save_IFS 3221 test -z "$as_dir" && as_dir=. 3222 for ac_prog in mkdir gmkdir; do 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3226 'mkdir (GNU coreutils) '* | \ 3227 'mkdir (coreutils) '* | \ 3228 'mkdir (fileutils) '4.1*) 3229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3230 break 3;; 3231 esac 3232 done 3233 done 3234 done 3235IFS=$as_save_IFS 3236 3237fi 3238 3239 test -d ./--version && rmdir ./--version 3240 if test "${ac_cv_path_mkdir+set}" = set; then 3241 MKDIR_P="$ac_cv_path_mkdir -p" 3242 else 3243 # As a last resort, use the slow shell script. Don't cache a 3244 # value for MKDIR_P within a source directory, because that will 3245 # break other packages using the cache if that directory is 3246 # removed, or if the value is a relative name. 3247 MKDIR_P="$ac_install_sh -d" 3248 fi 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3251$as_echo "$MKDIR_P" >&6; } 3252 3253for ac_prog in gawk mawk nawk awk 3254do 3255 # Extract the first word of "$ac_prog", so it can be a program name with args. 3256set dummy $ac_prog; ac_word=$2 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258$as_echo_n "checking for $ac_word... " >&6; } 3259if ${ac_cv_prog_AWK+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if test -n "$AWK"; then 3263 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3272 ac_cv_prog_AWK="$ac_prog" 3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 break 2 3275 fi 3276done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281fi 3282AWK=$ac_cv_prog_AWK 3283if test -n "$AWK"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3285$as_echo "$AWK" >&6; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289fi 3290 3291 3292 test -n "$AWK" && break 3293done 3294 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3296$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3297set x ${MAKE-make} 3298ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3299if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3300 $as_echo_n "(cached) " >&6 3301else 3302 cat >conftest.make <<\_ACEOF 3303SHELL = /bin/sh 3304all: 3305 @echo '@@@%%%=$(MAKE)=@@@%%%' 3306_ACEOF 3307# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3308case `${MAKE-make} -f conftest.make 2>/dev/null` in 3309 *@@@%%%=?*=@@@%%%*) 3310 eval ac_cv_prog_make_${ac_make}_set=yes;; 3311 *) 3312 eval ac_cv_prog_make_${ac_make}_set=no;; 3313esac 3314rm -f conftest.make 3315fi 3316if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3318$as_echo "yes" >&6; } 3319 SET_MAKE= 3320else 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3322$as_echo "no" >&6; } 3323 SET_MAKE="MAKE=${MAKE-make}" 3324fi 3325 3326rm -rf .tst 2>/dev/null 3327mkdir .tst 2>/dev/null 3328if test -d .tst; then 3329 am__leading_dot=. 3330else 3331 am__leading_dot=_ 3332fi 3333rmdir .tst 2>/dev/null 3334 3335# Check whether --enable-silent-rules was given. 3336if test "${enable_silent_rules+set}" = set; then : 3337 enableval=$enable_silent_rules; 3338fi 3339 3340case $enable_silent_rules in # ((( 3341 yes) AM_DEFAULT_VERBOSITY=0;; 3342 no) AM_DEFAULT_VERBOSITY=1;; 3343 *) AM_DEFAULT_VERBOSITY=1;; 3344esac 3345am_make=${MAKE-make} 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3347$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3348if ${am_cv_make_support_nested_variables+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if $as_echo 'TRUE=$(BAR$(V)) 3352BAR0=false 3353BAR1=true 3354V=1 3355am__doit: 3356 @$(TRUE) 3357.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3358 am_cv_make_support_nested_variables=yes 3359else 3360 am_cv_make_support_nested_variables=no 3361fi 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3364$as_echo "$am_cv_make_support_nested_variables" >&6; } 3365if test $am_cv_make_support_nested_variables = yes; then 3366 AM_V='$(V)' 3367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3368else 3369 AM_V=$AM_DEFAULT_VERBOSITY 3370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3371fi 3372AM_BACKSLASH='\' 3373 3374if test "`cd $srcdir && pwd`" != "`pwd`"; then 3375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3376 # is not polluted with repeated "-I." 3377 am__isrc=' -I$(srcdir)' 3378 # test to see if srcdir already configured 3379 if test -f $srcdir/config.status; then 3380 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3381 fi 3382fi 3383 3384# test whether we have cygpath 3385if test -z "$CYGPATH_W"; then 3386 if (cygpath --version) >/dev/null 2>/dev/null; then 3387 CYGPATH_W='cygpath -w' 3388 else 3389 CYGPATH_W=echo 3390 fi 3391fi 3392 3393 3394# Define the identity of the package. 3395 PACKAGE='octopus' 3396 VERSION='10.5' 3397 3398 3399cat >>confdefs.h <<_ACEOF 3400#define PACKAGE "$PACKAGE" 3401_ACEOF 3402 3403 3404cat >>confdefs.h <<_ACEOF 3405#define VERSION "$VERSION" 3406_ACEOF 3407 3408# Some tools Automake needs. 3409 3410ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3411 3412 3413AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3414 3415 3416AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3417 3418 3419AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3420 3421 3422MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3423 3424# For better backward compatibility. To be removed once Automake 1.9.x 3425# dies out for good. For more background, see: 3426# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3427# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3428mkdir_p='$(MKDIR_P)' 3429 3430# We need awk for the "check" target (and possibly the TAP driver). The 3431# system "awk" is bad on some platforms. 3432# Always define AMTAR for backward compatibility. Yes, it's still used 3433# in the wild :-( We should find a proper way to deprecate it ... 3434AMTAR='$${TAR-tar}' 3435 3436 3437# We'll loop over all known methods to create a tar archive until one works. 3438_am_tools='gnutar pax cpio none' 3439 3440am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3441 3442 3443 3444 3445 3446 3447# POSIX will say in a future version that running "rm -f" with no argument 3448# is OK; and we want to be able to make that assumption in our Makefile 3449# recipes. So use an aggressive probe to check that the usage we want is 3450# actually supported "in the wild" to an acceptable degree. 3451# See automake bug#10828. 3452# To make any issue more visible, cause the running configure to be aborted 3453# by default if the 'rm' program in use doesn't match our expectations; the 3454# user can still override this though. 3455if rm -f && rm -fr && rm -rf; then : OK; else 3456 cat >&2 <<'END' 3457Oops! 3458 3459Your 'rm' program seems unable to run without file operands specified 3460on the command line, even when the '-f' option is present. This is contrary 3461to the behaviour of most rm programs out there, and not conforming with 3462the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3463 3464Please tell bug-automake@gnu.org about your system, including the value 3465of your $PATH and any error possibly output before this message. This 3466can help us improve future automake versions. 3467 3468END 3469 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3470 echo 'Configuration will proceed anyway, since you have set the' >&2 3471 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3472 echo >&2 3473 else 3474 cat >&2 <<'END' 3475Aborting the configuration process, to ensure you take notice of the issue. 3476 3477You can download and install GNU coreutils to get an 'rm' implementation 3478that behaves properly: <https://www.gnu.org/software/coreutils/>. 3479 3480If you want to complete the configuration process using your problematic 3481'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3482to "yes", and re-run configure. 3483 3484END 3485 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3486 fi 3487fi 3488 3489 3490ac_config_headers="$ac_config_headers config.h" 3491 3492 3493# Installation prefix by default 3494 3495 3496# who am i 3497# Make sure we can run config.sub. 3498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3500 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3502$as_echo_n "checking build system type... " >&6; } 3503if ${ac_cv_build+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 ac_build_alias=$build_alias 3507test "x$ac_build_alias" = x && 3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3509test "x$ac_build_alias" = x && 3510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3513 3514fi 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3516$as_echo "$ac_cv_build" >&6; } 3517case $ac_cv_build in 3518*-*-*) ;; 3519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3520esac 3521build=$ac_cv_build 3522ac_save_IFS=$IFS; IFS='-' 3523set x $ac_cv_build 3524shift 3525build_cpu=$1 3526build_vendor=$2 3527shift; shift 3528# Remember, the first character of IFS is used to create $*, 3529# except with old shells: 3530build_os=$* 3531IFS=$ac_save_IFS 3532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3533 3534 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3536$as_echo_n "checking host system type... " >&6; } 3537if ${ac_cv_host+:} false; then : 3538 $as_echo_n "(cached) " >&6 3539else 3540 if test "x$host_alias" = x; then 3541 ac_cv_host=$ac_cv_build 3542else 3543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3545fi 3546 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3549$as_echo "$ac_cv_host" >&6; } 3550case $ac_cv_host in 3551*-*-*) ;; 3552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3553esac 3554host=$ac_cv_host 3555ac_save_IFS=$IFS; IFS='-' 3556set x $ac_cv_host 3557shift 3558host_cpu=$1 3559host_vendor=$2 3560shift; shift 3561# Remember, the first character of IFS is used to create $*, 3562# except with old shells: 3563host_os=$* 3564IFS=$ac_save_IFS 3565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3566 3567 3568 3569# Checks for programs. 3570 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3572$as_echo_n "checking whether ln -s works... " >&6; } 3573LN_S=$as_ln_s 3574if test "$LN_S" = "ln -s"; then 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3576$as_echo "yes" >&6; } 3577else 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3579$as_echo "no, using $LN_S" >&6; } 3580fi 3581 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3583$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3584set x ${MAKE-make} 3585ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3586if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 cat >conftest.make <<\_ACEOF 3590SHELL = /bin/sh 3591all: 3592 @echo '@@@%%%=$(MAKE)=@@@%%%' 3593_ACEOF 3594# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3595case `${MAKE-make} -f conftest.make 2>/dev/null` in 3596 *@@@%%%=?*=@@@%%%*) 3597 eval ac_cv_prog_make_${ac_make}_set=yes;; 3598 *) 3599 eval ac_cv_prog_make_${ac_make}_set=no;; 3600esac 3601rm -f conftest.make 3602fi 3603if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3605$as_echo "yes" >&6; } 3606 SET_MAKE= 3607else 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609$as_echo "no" >&6; } 3610 SET_MAKE="MAKE=${MAKE-make}" 3611fi 3612 3613if test -n "$ac_tool_prefix"; then 3614 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3615set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3617$as_echo_n "checking for $ac_word... " >&6; } 3618if ${ac_cv_prog_RANLIB+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 if test -n "$RANLIB"; then 3622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3623else 3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3625for as_dir in $PATH 3626do 3627 IFS=$as_save_IFS 3628 test -z "$as_dir" && as_dir=. 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3631 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3633 break 2 3634 fi 3635done 3636 done 3637IFS=$as_save_IFS 3638 3639fi 3640fi 3641RANLIB=$ac_cv_prog_RANLIB 3642if test -n "$RANLIB"; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3644$as_echo "$RANLIB" >&6; } 3645else 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648fi 3649 3650 3651fi 3652if test -z "$ac_cv_prog_RANLIB"; then 3653 ac_ct_RANLIB=$RANLIB 3654 # Extract the first word of "ranlib", so it can be a program name with args. 3655set dummy ranlib; ac_word=$2 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657$as_echo_n "checking for $ac_word... " >&6; } 3658if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 if test -n "$ac_ct_RANLIB"; then 3662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3663else 3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3665for as_dir in $PATH 3666do 3667 IFS=$as_save_IFS 3668 test -z "$as_dir" && as_dir=. 3669 for ac_exec_ext in '' $ac_executable_extensions; do 3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3671 ac_cv_prog_ac_ct_RANLIB="ranlib" 3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3673 break 2 3674 fi 3675done 3676 done 3677IFS=$as_save_IFS 3678 3679fi 3680fi 3681ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3682if test -n "$ac_ct_RANLIB"; then 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3684$as_echo "$ac_ct_RANLIB" >&6; } 3685else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687$as_echo "no" >&6; } 3688fi 3689 3690 if test "x$ac_ct_RANLIB" = x; then 3691 RANLIB=":" 3692 else 3693 case $cross_compiling:$ac_tool_warned in 3694yes:) 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3697ac_tool_warned=yes ;; 3698esac 3699 RANLIB=$ac_ct_RANLIB 3700 fi 3701else 3702 RANLIB="$ac_cv_prog_RANLIB" 3703fi 3704 3705 3706 3707# Check whether --enable-mpi was given. 3708if test "${enable_mpi+set}" = set; then : 3709 enableval=$enable_mpi; 3710fi 3711 3712case $enable_mpi in 3713 yes) ;; 3714 no | "") enable_mpi=no ;; 3715 -* | */* | *.a | *.so | *.so.* | *.o) 3716 LIBS_MPI="$enable_mpi" 3717 enable_mpi=yes 3718 ;; 3719 *) 3720 LIBS_MPI="-l$enable_mpi" 3721 enable_mpi=yes 3722 ;; 3723esac 3724 if test "$enable_mpi" = "yes"; then 3725 USE_MPI_TRUE= 3726 USE_MPI_FALSE='#' 3727else 3728 USE_MPI_TRUE='#' 3729 USE_MPI_FALSE= 3730fi 3731 3732 3733if test x"$enable_mpi" == x"yes"; then 3734 octopus_default_cc=mpicc 3735else 3736 octopus_default_cc=gcc 3737fi 3738 3739ac_ext=c 3740ac_cpp='$CPP $CPPFLAGS' 3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3743ac_compiler_gnu=$ac_cv_c_compiler_gnu 3744if test -n "$ac_tool_prefix"; then 3745 for ac_prog in $octopus_default_cc 3746 do 3747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3748set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3750$as_echo_n "checking for $ac_word... " >&6; } 3751if ${ac_cv_prog_CC+:} false; then : 3752 $as_echo_n "(cached) " >&6 3753else 3754 if test -n "$CC"; then 3755 ac_cv_prog_CC="$CC" # Let the user override the test. 3756else 3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3758for as_dir in $PATH 3759do 3760 IFS=$as_save_IFS 3761 test -z "$as_dir" && as_dir=. 3762 for ac_exec_ext in '' $ac_executable_extensions; do 3763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3766 break 2 3767 fi 3768done 3769 done 3770IFS=$as_save_IFS 3771 3772fi 3773fi 3774CC=$ac_cv_prog_CC 3775if test -n "$CC"; then 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3777$as_echo "$CC" >&6; } 3778else 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3780$as_echo "no" >&6; } 3781fi 3782 3783 3784 test -n "$CC" && break 3785 done 3786fi 3787if test -z "$CC"; then 3788 ac_ct_CC=$CC 3789 for ac_prog in $octopus_default_cc 3790do 3791 # Extract the first word of "$ac_prog", so it can be a program name with args. 3792set dummy $ac_prog; ac_word=$2 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3794$as_echo_n "checking for $ac_word... " >&6; } 3795if ${ac_cv_prog_ac_ct_CC+:} false; then : 3796 $as_echo_n "(cached) " >&6 3797else 3798 if test -n "$ac_ct_CC"; then 3799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3800else 3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3802for as_dir in $PATH 3803do 3804 IFS=$as_save_IFS 3805 test -z "$as_dir" && as_dir=. 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3808 ac_cv_prog_ac_ct_CC="$ac_prog" 3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3810 break 2 3811 fi 3812done 3813 done 3814IFS=$as_save_IFS 3815 3816fi 3817fi 3818ac_ct_CC=$ac_cv_prog_ac_ct_CC 3819if test -n "$ac_ct_CC"; then 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3821$as_echo "$ac_ct_CC" >&6; } 3822else 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3824$as_echo "no" >&6; } 3825fi 3826 3827 3828 test -n "$ac_ct_CC" && break 3829done 3830 3831 if test "x$ac_ct_CC" = x; then 3832 CC="" 3833 else 3834 case $cross_compiling:$ac_tool_warned in 3835yes:) 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3838ac_tool_warned=yes ;; 3839esac 3840 CC=$ac_ct_CC 3841 fi 3842fi 3843 3844 3845test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3847as_fn_error $? "no acceptable C compiler found in \$PATH 3848See \`config.log' for more details" "$LINENO" 5; } 3849 3850# Provide some information about the compiler. 3851$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3852set X $ac_compile 3853ac_compiler=$2 3854for ac_option in --version -v -V -qversion; do 3855 { { ac_try="$ac_compiler $ac_option >&5" 3856case "(($ac_try" in 3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3858 *) ac_try_echo=$ac_try;; 3859esac 3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3861$as_echo "$ac_try_echo"; } >&5 3862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3863 ac_status=$? 3864 if test -s conftest.err; then 3865 sed '10a\ 3866... rest of stderr output deleted ... 3867 10q' conftest.err >conftest.er1 3868 cat conftest.er1 >&5 3869 fi 3870 rm -f conftest.er1 conftest.err 3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3872 test $ac_status = 0; } 3873done 3874 3875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877 3878int 3879main () 3880{ 3881 3882 ; 3883 return 0; 3884} 3885_ACEOF 3886ac_clean_files_save=$ac_clean_files 3887ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3888# Try to create an executable without -o first, disregard a.out. 3889# It will help us diagnose broken compilers, and finding out an intuition 3890# of exeext. 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3892$as_echo_n "checking whether the C compiler works... " >&6; } 3893ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3894 3895# The possible output files: 3896ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3897 3898ac_rmfiles= 3899for ac_file in $ac_files 3900do 3901 case $ac_file in 3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3903 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3904 esac 3905done 3906rm -f $ac_rmfiles 3907 3908if { { ac_try="$ac_link_default" 3909case "(($ac_try" in 3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3911 *) ac_try_echo=$ac_try;; 3912esac 3913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3914$as_echo "$ac_try_echo"; } >&5 3915 (eval "$ac_link_default") 2>&5 3916 ac_status=$? 3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3918 test $ac_status = 0; }; then : 3919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3920# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3921# in a Makefile. We should not override ac_cv_exeext if it was cached, 3922# so that the user can short-circuit this test for compilers unknown to 3923# Autoconf. 3924for ac_file in $ac_files '' 3925do 3926 test -f "$ac_file" || continue 3927 case $ac_file in 3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3929 ;; 3930 [ab].out ) 3931 # We found the default executable, but exeext='' is most 3932 # certainly right. 3933 break;; 3934 *.* ) 3935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3936 then :; else 3937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3938 fi 3939 # We set ac_cv_exeext here because the later test for it is not 3940 # safe: cross compilers may not add the suffix if given an `-o' 3941 # argument, so we may need to know it at that point already. 3942 # Even if this section looks crufty: it has the advantage of 3943 # actually working. 3944 break;; 3945 * ) 3946 break;; 3947 esac 3948done 3949test "$ac_cv_exeext" = no && ac_cv_exeext= 3950 3951else 3952 ac_file='' 3953fi 3954if test -z "$ac_file"; then : 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3956$as_echo "no" >&6; } 3957$as_echo "$as_me: failed program was:" >&5 3958sed 's/^/| /' conftest.$ac_ext >&5 3959 3960{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3962as_fn_error 77 "C compiler cannot create executables 3963See \`config.log' for more details" "$LINENO" 5; } 3964else 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3966$as_echo "yes" >&6; } 3967fi 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3969$as_echo_n "checking for C compiler default output file name... " >&6; } 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3971$as_echo "$ac_file" >&6; } 3972ac_exeext=$ac_cv_exeext 3973 3974rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3975ac_clean_files=$ac_clean_files_save 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3977$as_echo_n "checking for suffix of executables... " >&6; } 3978if { { ac_try="$ac_link" 3979case "(($ac_try" in 3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3981 *) ac_try_echo=$ac_try;; 3982esac 3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3984$as_echo "$ac_try_echo"; } >&5 3985 (eval "$ac_link") 2>&5 3986 ac_status=$? 3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3988 test $ac_status = 0; }; then : 3989 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3990# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3991# work properly (i.e., refer to `conftest.exe'), while it won't with 3992# `rm'. 3993for ac_file in conftest.exe conftest conftest.*; do 3994 test -f "$ac_file" || continue 3995 case $ac_file in 3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3998 break;; 3999 * ) break;; 4000 esac 4001done 4002else 4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4005as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4006See \`config.log' for more details" "$LINENO" 5; } 4007fi 4008rm -f conftest conftest$ac_cv_exeext 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4010$as_echo "$ac_cv_exeext" >&6; } 4011 4012rm -f conftest.$ac_ext 4013EXEEXT=$ac_cv_exeext 4014ac_exeext=$EXEEXT 4015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#include <stdio.h> 4018int 4019main () 4020{ 4021FILE *f = fopen ("conftest.out", "w"); 4022 return ferror (f) || fclose (f) != 0; 4023 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028ac_clean_files="$ac_clean_files conftest.out" 4029# Check that the compiler produces executables we can run. If not, either 4030# the compiler is broken, or we cross compile. 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4032$as_echo_n "checking whether we are cross compiling... " >&6; } 4033if test "$cross_compiling" != yes; then 4034 { { ac_try="$ac_link" 4035case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038esac 4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4040$as_echo "$ac_try_echo"; } >&5 4041 (eval "$ac_link") 2>&5 4042 ac_status=$? 4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4044 test $ac_status = 0; } 4045 if { ac_try='./conftest$ac_cv_exeext' 4046 { { case "(($ac_try" in 4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4048 *) ac_try_echo=$ac_try;; 4049esac 4050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4051$as_echo "$ac_try_echo"; } >&5 4052 (eval "$ac_try") 2>&5 4053 ac_status=$? 4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4055 test $ac_status = 0; }; }; then 4056 cross_compiling=no 4057 else 4058 if test "$cross_compiling" = maybe; then 4059 cross_compiling=yes 4060 else 4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4063as_fn_error $? "cannot run C compiled programs. 4064If you meant to cross compile, use \`--host'. 4065See \`config.log' for more details" "$LINENO" 5; } 4066 fi 4067 fi 4068fi 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4070$as_echo "$cross_compiling" >&6; } 4071 4072rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4073ac_clean_files=$ac_clean_files_save 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4075$as_echo_n "checking for suffix of object files... " >&6; } 4076if ${ac_cv_objext+:} false; then : 4077 $as_echo_n "(cached) " >&6 4078else 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4080/* end confdefs.h. */ 4081 4082int 4083main () 4084{ 4085 4086 ; 4087 return 0; 4088} 4089_ACEOF 4090rm -f conftest.o conftest.obj 4091if { { ac_try="$ac_compile" 4092case "(($ac_try" in 4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4094 *) ac_try_echo=$ac_try;; 4095esac 4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4097$as_echo "$ac_try_echo"; } >&5 4098 (eval "$ac_compile") 2>&5 4099 ac_status=$? 4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4101 test $ac_status = 0; }; then : 4102 for ac_file in conftest.o conftest.obj conftest.*; do 4103 test -f "$ac_file" || continue; 4104 case $ac_file in 4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4107 break;; 4108 esac 4109done 4110else 4111 $as_echo "$as_me: failed program was:" >&5 4112sed 's/^/| /' conftest.$ac_ext >&5 4113 4114{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4116as_fn_error $? "cannot compute suffix of object files: cannot compile 4117See \`config.log' for more details" "$LINENO" 5; } 4118fi 4119rm -f conftest.$ac_cv_objext conftest.$ac_ext 4120fi 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4122$as_echo "$ac_cv_objext" >&6; } 4123OBJEXT=$ac_cv_objext 4124ac_objext=$OBJEXT 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4126$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4127if ${ac_cv_c_compiler_gnu+:} false; then : 4128 $as_echo_n "(cached) " >&6 4129else 4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132 4133int 4134main () 4135{ 4136#ifndef __GNUC__ 4137 choke me 4138#endif 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144if ac_fn_c_try_compile "$LINENO"; then : 4145 ac_compiler_gnu=yes 4146else 4147 ac_compiler_gnu=no 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150ac_cv_c_compiler_gnu=$ac_compiler_gnu 4151 4152fi 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4154$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4155if test $ac_compiler_gnu = yes; then 4156 GCC=yes 4157else 4158 GCC= 4159fi 4160ac_test_CFLAGS=${CFLAGS+set} 4161ac_save_CFLAGS=$CFLAGS 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4163$as_echo_n "checking whether $CC accepts -g... " >&6; } 4164if ${ac_cv_prog_cc_g+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 ac_save_c_werror_flag=$ac_c_werror_flag 4168 ac_c_werror_flag=yes 4169 ac_cv_prog_cc_g=no 4170 CFLAGS="-g" 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173 4174int 4175main () 4176{ 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182if ac_fn_c_try_compile "$LINENO"; then : 4183 ac_cv_prog_cc_g=yes 4184else 4185 CFLAGS="" 4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4187/* end confdefs.h. */ 4188 4189int 4190main () 4191{ 4192 4193 ; 4194 return 0; 4195} 4196_ACEOF 4197if ac_fn_c_try_compile "$LINENO"; then : 4198 4199else 4200 ac_c_werror_flag=$ac_save_c_werror_flag 4201 CFLAGS="-g" 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204 4205int 4206main () 4207{ 4208 4209 ; 4210 return 0; 4211} 4212_ACEOF 4213if ac_fn_c_try_compile "$LINENO"; then : 4214 ac_cv_prog_cc_g=yes 4215fi 4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4219fi 4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4221 ac_c_werror_flag=$ac_save_c_werror_flag 4222fi 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4224$as_echo "$ac_cv_prog_cc_g" >&6; } 4225if test "$ac_test_CFLAGS" = set; then 4226 CFLAGS=$ac_save_CFLAGS 4227elif test $ac_cv_prog_cc_g = yes; then 4228 if test "$GCC" = yes; then 4229 CFLAGS="-g -O2" 4230 else 4231 CFLAGS="-g" 4232 fi 4233else 4234 if test "$GCC" = yes; then 4235 CFLAGS="-O2" 4236 else 4237 CFLAGS= 4238 fi 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4241$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4242if ${ac_cv_prog_cc_c89+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 ac_cv_prog_cc_c89=no 4246ac_save_CC=$CC 4247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249#include <stdarg.h> 4250#include <stdio.h> 4251struct stat; 4252/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4253struct buf { int x; }; 4254FILE * (*rcsopen) (struct buf *, struct stat *, int); 4255static char *e (p, i) 4256 char **p; 4257 int i; 4258{ 4259 return p[i]; 4260} 4261static char *f (char * (*g) (char **, int), char **p, ...) 4262{ 4263 char *s; 4264 va_list v; 4265 va_start (v,p); 4266 s = g (p, va_arg (v,int)); 4267 va_end (v); 4268 return s; 4269} 4270 4271/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4272 function prototypes and stuff, but not '\xHH' hex character constants. 4273 These don't provoke an error unfortunately, instead are silently treated 4274 as 'x'. The following induces an error, until -std is added to get 4275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4276 array size at least. It's necessary to write '\x00'==0 to get something 4277 that's true only with -std. */ 4278int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4279 4280/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4281 inside strings and character constants. */ 4282#define FOO(x) 'x' 4283int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4284 4285int test (int i, double x); 4286struct s1 {int (*f) (int a);}; 4287struct s2 {int (*f) (double a);}; 4288int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4289int argc; 4290char **argv; 4291int 4292main () 4293{ 4294return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4301do 4302 CC="$ac_save_CC $ac_arg" 4303 if ac_fn_c_try_compile "$LINENO"; then : 4304 ac_cv_prog_cc_c89=$ac_arg 4305fi 4306rm -f core conftest.err conftest.$ac_objext 4307 test "x$ac_cv_prog_cc_c89" != "xno" && break 4308done 4309rm -f conftest.$ac_ext 4310CC=$ac_save_CC 4311 4312fi 4313# AC_CACHE_VAL 4314case "x$ac_cv_prog_cc_c89" in 4315 x) 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4317$as_echo "none needed" >&6; } ;; 4318 xno) 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4320$as_echo "unsupported" >&6; } ;; 4321 *) 4322 CC="$CC $ac_cv_prog_cc_c89" 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4324$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4325esac 4326if test "x$ac_cv_prog_cc_c89" != xno; then : 4327 4328fi 4329 4330ac_ext=c 4331ac_cpp='$CPP $CPPFLAGS' 4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4334ac_compiler_gnu=$ac_cv_c_compiler_gnu 4335 4336ac_ext=c 4337ac_cpp='$CPP $CPPFLAGS' 4338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4340ac_compiler_gnu=$ac_cv_c_compiler_gnu 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4342$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4343if ${am_cv_prog_cc_c_o+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347/* end confdefs.h. */ 4348 4349int 4350main () 4351{ 4352 4353 ; 4354 return 0; 4355} 4356_ACEOF 4357 # Make sure it works both with $CC and with simple cc. 4358 # Following AC_PROG_CC_C_O, we do the test twice because some 4359 # compilers refuse to overwrite an existing .o file with -o, 4360 # though they will create one. 4361 am_cv_prog_cc_c_o=yes 4362 for am_i in 1 2; do 4363 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4364 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); } \ 4368 && test -f conftest2.$ac_objext; then 4369 : OK 4370 else 4371 am_cv_prog_cc_c_o=no 4372 break 4373 fi 4374 done 4375 rm -f core conftest* 4376 unset am_i 4377fi 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4379$as_echo "$am_cv_prog_cc_c_o" >&6; } 4380if test "$am_cv_prog_cc_c_o" != yes; then 4381 # Losing compiler, so override with the script. 4382 # FIXME: It is wrong to rewrite CC. 4383 # But if we don't then we get into trouble of one sort or another. 4384 # A longer-term fix would be to have automake use am__CC in this case, 4385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4386 CC="$am_aux_dir/compile $CC" 4387fi 4388ac_ext=c 4389ac_cpp='$CPP $CPPFLAGS' 4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4392ac_compiler_gnu=$ac_cv_c_compiler_gnu 4393 4394DEPDIR="${am__leading_dot}deps" 4395 4396ac_config_commands="$ac_config_commands depfiles" 4397 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4399$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4400cat > confinc.mk << 'END' 4401am__doit: 4402 @echo this is the am__doit target >confinc.out 4403.PHONY: am__doit 4404END 4405am__include="#" 4406am__quote= 4407# BSD make does it like this. 4408echo '.include "confinc.mk" # ignored' > confmf.BSD 4409# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4410echo 'include confinc.mk # ignored' > confmf.GNU 4411_am_result=no 4412for s in GNU BSD; do 4413 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4414 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4415 ac_status=$? 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } 4418 case $?:`cat confinc.out 2>/dev/null` in #( 4419 '0:this is the am__doit target') : 4420 case $s in #( 4421 BSD) : 4422 am__include='.include' am__quote='"' ;; #( 4423 *) : 4424 am__include='include' am__quote='' ;; 4425esac ;; #( 4426 *) : 4427 ;; 4428esac 4429 if test "$am__include" != "#"; then 4430 _am_result="yes ($s style)" 4431 break 4432 fi 4433done 4434rm -f confinc.* confmf.* 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4436$as_echo "${_am_result}" >&6; } 4437 4438# Check whether --enable-dependency-tracking was given. 4439if test "${enable_dependency_tracking+set}" = set; then : 4440 enableval=$enable_dependency_tracking; 4441fi 4442 4443if test "x$enable_dependency_tracking" != xno; then 4444 am_depcomp="$ac_aux_dir/depcomp" 4445 AMDEPBACKSLASH='\' 4446 am__nodep='_no' 4447fi 4448 if test "x$enable_dependency_tracking" != xno; then 4449 AMDEP_TRUE= 4450 AMDEP_FALSE='#' 4451else 4452 AMDEP_TRUE='#' 4453 AMDEP_FALSE= 4454fi 4455 4456 4457 4458depcc="$CC" am_compiler_list= 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4461$as_echo_n "checking dependency style of $depcc... " >&6; } 4462if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4466 # We make a subdir and do the tests there. Otherwise we can end up 4467 # making bogus files that we don't know about and never remove. For 4468 # instance it was reported that on HP-UX the gcc test will end up 4469 # making a dummy file named 'D' -- because '-MD' means "put the output 4470 # in D". 4471 rm -rf conftest.dir 4472 mkdir conftest.dir 4473 # Copy depcomp to subdir because otherwise we won't find it if we're 4474 # using a relative directory. 4475 cp "$am_depcomp" conftest.dir 4476 cd conftest.dir 4477 # We will build objects and dependencies in a subdirectory because 4478 # it helps to detect inapplicable dependency modes. For instance 4479 # both Tru64's cc and ICC support -MD to output dependencies as a 4480 # side effect of compilation, but ICC will put the dependencies in 4481 # the current directory while Tru64 will put them in the object 4482 # directory. 4483 mkdir sub 4484 4485 am_cv_CC_dependencies_compiler_type=none 4486 if test "$am_compiler_list" = ""; then 4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4488 fi 4489 am__universal=false 4490 case " $depcc " in #( 4491 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4492 esac 4493 4494 for depmode in $am_compiler_list; do 4495 # Setup a source with many dependencies, because some compilers 4496 # like to wrap large dependency lists on column 80 (with \), and 4497 # we should not choose a depcomp mode which is confused by this. 4498 # 4499 # We need to recreate these files for each test, as the compiler may 4500 # overwrite some of them when testing with obscure command lines. 4501 # This happens at least with the AIX C compiler. 4502 : > sub/conftest.c 4503 for i in 1 2 3 4 5 6; do 4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4506 # Solaris 10 /bin/sh. 4507 echo '/* dummy */' > sub/conftst$i.h 4508 done 4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4510 4511 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4512 # mode. It turns out that the SunPro C++ compiler does not properly 4513 # handle '-M -o', and we need to detect this. Also, some Intel 4514 # versions had trouble with output in subdirs. 4515 am__obj=sub/conftest.${OBJEXT-o} 4516 am__minus_obj="-o $am__obj" 4517 case $depmode in 4518 gcc) 4519 # This depmode causes a compiler race in universal mode. 4520 test "$am__universal" = false || continue 4521 ;; 4522 nosideeffect) 4523 # After this tag, mechanisms are not by side-effect, so they'll 4524 # only be used when explicitly requested. 4525 if test "x$enable_dependency_tracking" = xyes; then 4526 continue 4527 else 4528 break 4529 fi 4530 ;; 4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4532 # This compiler won't grok '-c -o', but also, the minuso test has 4533 # not run yet. These depmodes are late enough in the game, and 4534 # so weak that their functioning should not be impacted. 4535 am__obj=conftest.${OBJEXT-o} 4536 am__minus_obj= 4537 ;; 4538 none) break ;; 4539 esac 4540 if depmode=$depmode \ 4541 source=sub/conftest.c object=$am__obj \ 4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4544 >/dev/null 2>conftest.err && 4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4549 # icc doesn't choke on unknown options, it will just issue warnings 4550 # or remarks (even with -Werror). So we grep stderr for any message 4551 # that says an option was ignored or not supported. 4552 # When given -MP, icc 7.0 and 7.1 complain thusly: 4553 # icc: Command line warning: ignoring option '-M'; no argument required 4554 # The diagnosis changed in icc 8.0: 4555 # icc: Command line remark: option '-MP' not supported 4556 if (grep 'ignoring option' conftest.err || 4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4558 am_cv_CC_dependencies_compiler_type=$depmode 4559 break 4560 fi 4561 fi 4562 done 4563 4564 cd .. 4565 rm -rf conftest.dir 4566else 4567 am_cv_CC_dependencies_compiler_type=none 4568fi 4569 4570fi 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4572$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4574 4575 if 4576 test "x$enable_dependency_tracking" != xno \ 4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4578 am__fastdepCC_TRUE= 4579 am__fastdepCC_FALSE='#' 4580else 4581 am__fastdepCC_TRUE='#' 4582 am__fastdepCC_FALSE= 4583fi 4584 4585 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4587$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4588if ${ac_cv_prog_cc_c99+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 ac_cv_prog_cc_c99=no 4592ac_save_CC=$CC 4593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4594/* end confdefs.h. */ 4595#include <stdarg.h> 4596#include <stdbool.h> 4597#include <stdlib.h> 4598#include <wchar.h> 4599#include <stdio.h> 4600 4601// Check varargs macros. These examples are taken from C99 6.10.3.5. 4602#define debug(...) fprintf (stderr, __VA_ARGS__) 4603#define showlist(...) puts (#__VA_ARGS__) 4604#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4605static void 4606test_varargs_macros (void) 4607{ 4608 int x = 1234; 4609 int y = 5678; 4610 debug ("Flag"); 4611 debug ("X = %d\n", x); 4612 showlist (The first, second, and third items.); 4613 report (x>y, "x is %d but y is %d", x, y); 4614} 4615 4616// Check long long types. 4617#define BIG64 18446744073709551615ull 4618#define BIG32 4294967295ul 4619#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4620#if !BIG_OK 4621 your preprocessor is broken; 4622#endif 4623#if BIG_OK 4624#else 4625 your preprocessor is broken; 4626#endif 4627static long long int bignum = -9223372036854775807LL; 4628static unsigned long long int ubignum = BIG64; 4629 4630struct incomplete_array 4631{ 4632 int datasize; 4633 double data[]; 4634}; 4635 4636struct named_init { 4637 int number; 4638 const wchar_t *name; 4639 double average; 4640}; 4641 4642typedef const char *ccp; 4643 4644static inline int 4645test_restrict (ccp restrict text) 4646{ 4647 // See if C++-style comments work. 4648 // Iterate through items via the restricted pointer. 4649 // Also check for declarations in for loops. 4650 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4651 continue; 4652 return 0; 4653} 4654 4655// Check varargs and va_copy. 4656static void 4657test_varargs (const char *format, ...) 4658{ 4659 va_list args; 4660 va_start (args, format); 4661 va_list args_copy; 4662 va_copy (args_copy, args); 4663 4664 const char *str; 4665 int number; 4666 float fnumber; 4667 4668 while (*format) 4669 { 4670 switch (*format++) 4671 { 4672 case 's': // string 4673 str = va_arg (args_copy, const char *); 4674 break; 4675 case 'd': // int 4676 number = va_arg (args_copy, int); 4677 break; 4678 case 'f': // float 4679 fnumber = va_arg (args_copy, double); 4680 break; 4681 default: 4682 break; 4683 } 4684 } 4685 va_end (args_copy); 4686 va_end (args); 4687} 4688 4689int 4690main () 4691{ 4692 4693 // Check bool. 4694 _Bool success = false; 4695 4696 // Check restrict. 4697 if (test_restrict ("String literal") == 0) 4698 success = true; 4699 char *restrict newvar = "Another string"; 4700 4701 // Check varargs. 4702 test_varargs ("s, d' f .", "string", 65, 34.234); 4703 test_varargs_macros (); 4704 4705 // Check flexible array members. 4706 struct incomplete_array *ia = 4707 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4708 ia->datasize = 10; 4709 for (int i = 0; i < ia->datasize; ++i) 4710 ia->data[i] = i * 1.234; 4711 4712 // Check named initializers. 4713 struct named_init ni = { 4714 .number = 34, 4715 .name = L"Test wide string", 4716 .average = 543.34343, 4717 }; 4718 4719 ni.number = 58; 4720 4721 int dynamic_array[ni.number]; 4722 dynamic_array[ni.number - 1] = 543; 4723 4724 // work around unused variable warnings 4725 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4726 || dynamic_array[ni.number - 1] != 543); 4727 4728 ; 4729 return 0; 4730} 4731_ACEOF 4732for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4733do 4734 CC="$ac_save_CC $ac_arg" 4735 if ac_fn_c_try_compile "$LINENO"; then : 4736 ac_cv_prog_cc_c99=$ac_arg 4737fi 4738rm -f core conftest.err conftest.$ac_objext 4739 test "x$ac_cv_prog_cc_c99" != "xno" && break 4740done 4741rm -f conftest.$ac_ext 4742CC=$ac_save_CC 4743 4744fi 4745# AC_CACHE_VAL 4746case "x$ac_cv_prog_cc_c99" in 4747 x) 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4749$as_echo "none needed" >&6; } ;; 4750 xno) 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4752$as_echo "unsupported" >&6; } ;; 4753 *) 4754 CC="$CC $ac_cv_prog_cc_c99" 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4756$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4757esac 4758if test "x$ac_cv_prog_cc_c99" != xno; then : 4759 4760fi 4761 4762 4763 4764 4765ac_ext=cpp 4766ac_cpp='$CXXCPP $CPPFLAGS' 4767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4770if test -z "$CXX"; then 4771 if test -n "$CCC"; then 4772 CXX=$CCC 4773 else 4774 if test -n "$ac_tool_prefix"; then 4775 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4776 do 4777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4778set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4780$as_echo_n "checking for $ac_word... " >&6; } 4781if ${ac_cv_prog_CXX+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 if test -n "$CXX"; then 4785 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4786else 4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788for as_dir in $PATH 4789do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4796 break 2 4797 fi 4798done 4799 done 4800IFS=$as_save_IFS 4801 4802fi 4803fi 4804CXX=$ac_cv_prog_CXX 4805if test -n "$CXX"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4807$as_echo "$CXX" >&6; } 4808else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810$as_echo "no" >&6; } 4811fi 4812 4813 4814 test -n "$CXX" && break 4815 done 4816fi 4817if test -z "$CXX"; then 4818 ac_ct_CXX=$CXX 4819 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4820do 4821 # Extract the first word of "$ac_prog", so it can be a program name with args. 4822set dummy $ac_prog; ac_word=$2 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4824$as_echo_n "checking for $ac_word... " >&6; } 4825if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 if test -n "$ac_ct_CXX"; then 4829 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4830else 4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832for as_dir in $PATH 4833do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4838 ac_cv_prog_ac_ct_CXX="$ac_prog" 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842done 4843 done 4844IFS=$as_save_IFS 4845 4846fi 4847fi 4848ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4849if test -n "$ac_ct_CXX"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4851$as_echo "$ac_ct_CXX" >&6; } 4852else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855fi 4856 4857 4858 test -n "$ac_ct_CXX" && break 4859done 4860 4861 if test "x$ac_ct_CXX" = x; then 4862 CXX="g++" 4863 else 4864 case $cross_compiling:$ac_tool_warned in 4865yes:) 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4868ac_tool_warned=yes ;; 4869esac 4870 CXX=$ac_ct_CXX 4871 fi 4872fi 4873 4874 fi 4875fi 4876# Provide some information about the compiler. 4877$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4878set X $ac_compile 4879ac_compiler=$2 4880for ac_option in --version -v -V -qversion; do 4881 { { ac_try="$ac_compiler $ac_option >&5" 4882case "(($ac_try" in 4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4884 *) ac_try_echo=$ac_try;; 4885esac 4886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4887$as_echo "$ac_try_echo"; } >&5 4888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4889 ac_status=$? 4890 if test -s conftest.err; then 4891 sed '10a\ 4892... rest of stderr output deleted ... 4893 10q' conftest.err >conftest.er1 4894 cat conftest.er1 >&5 4895 fi 4896 rm -f conftest.er1 conftest.err 4897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4898 test $ac_status = 0; } 4899done 4900 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4902$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4903if ${ac_cv_cxx_compiler_gnu+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908 4909int 4910main () 4911{ 4912#ifndef __GNUC__ 4913 choke me 4914#endif 4915 4916 ; 4917 return 0; 4918} 4919_ACEOF 4920if ac_fn_cxx_try_compile "$LINENO"; then : 4921 ac_compiler_gnu=yes 4922else 4923 ac_compiler_gnu=no 4924fi 4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4926ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4927 4928fi 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4930$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4931if test $ac_compiler_gnu = yes; then 4932 GXX=yes 4933else 4934 GXX= 4935fi 4936ac_test_CXXFLAGS=${CXXFLAGS+set} 4937ac_save_CXXFLAGS=$CXXFLAGS 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4939$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4940if ${ac_cv_prog_cxx_g+:} false; then : 4941 $as_echo_n "(cached) " >&6 4942else 4943 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4944 ac_cxx_werror_flag=yes 4945 ac_cv_prog_cxx_g=no 4946 CXXFLAGS="-g" 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949 4950int 4951main () 4952{ 4953 4954 ; 4955 return 0; 4956} 4957_ACEOF 4958if ac_fn_cxx_try_compile "$LINENO"; then : 4959 ac_cv_prog_cxx_g=yes 4960else 4961 CXXFLAGS="" 4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963/* end confdefs.h. */ 4964 4965int 4966main () 4967{ 4968 4969 ; 4970 return 0; 4971} 4972_ACEOF 4973if ac_fn_cxx_try_compile "$LINENO"; then : 4974 4975else 4976 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4977 CXXFLAGS="-g" 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979/* end confdefs.h. */ 4980 4981int 4982main () 4983{ 4984 4985 ; 4986 return 0; 4987} 4988_ACEOF 4989if ac_fn_cxx_try_compile "$LINENO"; then : 4990 ac_cv_prog_cxx_g=yes 4991fi 4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4993fi 4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4995fi 4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4997 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4998fi 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5000$as_echo "$ac_cv_prog_cxx_g" >&6; } 5001if test "$ac_test_CXXFLAGS" = set; then 5002 CXXFLAGS=$ac_save_CXXFLAGS 5003elif test $ac_cv_prog_cxx_g = yes; then 5004 if test "$GXX" = yes; then 5005 CXXFLAGS="-g -O2" 5006 else 5007 CXXFLAGS="-g" 5008 fi 5009else 5010 if test "$GXX" = yes; then 5011 CXXFLAGS="-O2" 5012 else 5013 CXXFLAGS= 5014 fi 5015fi 5016ac_ext=c 5017ac_cpp='$CPP $CPPFLAGS' 5018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5020ac_compiler_gnu=$ac_cv_c_compiler_gnu 5021 5022depcc="$CXX" am_compiler_list= 5023 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5025$as_echo_n "checking dependency style of $depcc... " >&6; } 5026if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5027 $as_echo_n "(cached) " >&6 5028else 5029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5030 # We make a subdir and do the tests there. Otherwise we can end up 5031 # making bogus files that we don't know about and never remove. For 5032 # instance it was reported that on HP-UX the gcc test will end up 5033 # making a dummy file named 'D' -- because '-MD' means "put the output 5034 # in D". 5035 rm -rf conftest.dir 5036 mkdir conftest.dir 5037 # Copy depcomp to subdir because otherwise we won't find it if we're 5038 # using a relative directory. 5039 cp "$am_depcomp" conftest.dir 5040 cd conftest.dir 5041 # We will build objects and dependencies in a subdirectory because 5042 # it helps to detect inapplicable dependency modes. For instance 5043 # both Tru64's cc and ICC support -MD to output dependencies as a 5044 # side effect of compilation, but ICC will put the dependencies in 5045 # the current directory while Tru64 will put them in the object 5046 # directory. 5047 mkdir sub 5048 5049 am_cv_CXX_dependencies_compiler_type=none 5050 if test "$am_compiler_list" = ""; then 5051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5052 fi 5053 am__universal=false 5054 case " $depcc " in #( 5055 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5056 esac 5057 5058 for depmode in $am_compiler_list; do 5059 # Setup a source with many dependencies, because some compilers 5060 # like to wrap large dependency lists on column 80 (with \), and 5061 # we should not choose a depcomp mode which is confused by this. 5062 # 5063 # We need to recreate these files for each test, as the compiler may 5064 # overwrite some of them when testing with obscure command lines. 5065 # This happens at least with the AIX C compiler. 5066 : > sub/conftest.c 5067 for i in 1 2 3 4 5 6; do 5068 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5069 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5070 # Solaris 10 /bin/sh. 5071 echo '/* dummy */' > sub/conftst$i.h 5072 done 5073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5074 5075 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5076 # mode. It turns out that the SunPro C++ compiler does not properly 5077 # handle '-M -o', and we need to detect this. Also, some Intel 5078 # versions had trouble with output in subdirs. 5079 am__obj=sub/conftest.${OBJEXT-o} 5080 am__minus_obj="-o $am__obj" 5081 case $depmode in 5082 gcc) 5083 # This depmode causes a compiler race in universal mode. 5084 test "$am__universal" = false || continue 5085 ;; 5086 nosideeffect) 5087 # After this tag, mechanisms are not by side-effect, so they'll 5088 # only be used when explicitly requested. 5089 if test "x$enable_dependency_tracking" = xyes; then 5090 continue 5091 else 5092 break 5093 fi 5094 ;; 5095 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5096 # This compiler won't grok '-c -o', but also, the minuso test has 5097 # not run yet. These depmodes are late enough in the game, and 5098 # so weak that their functioning should not be impacted. 5099 am__obj=conftest.${OBJEXT-o} 5100 am__minus_obj= 5101 ;; 5102 none) break ;; 5103 esac 5104 if depmode=$depmode \ 5105 source=sub/conftest.c object=$am__obj \ 5106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5108 >/dev/null 2>conftest.err && 5109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5113 # icc doesn't choke on unknown options, it will just issue warnings 5114 # or remarks (even with -Werror). So we grep stderr for any message 5115 # that says an option was ignored or not supported. 5116 # When given -MP, icc 7.0 and 7.1 complain thusly: 5117 # icc: Command line warning: ignoring option '-M'; no argument required 5118 # The diagnosis changed in icc 8.0: 5119 # icc: Command line remark: option '-MP' not supported 5120 if (grep 'ignoring option' conftest.err || 5121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5122 am_cv_CXX_dependencies_compiler_type=$depmode 5123 break 5124 fi 5125 fi 5126 done 5127 5128 cd .. 5129 rm -rf conftest.dir 5130else 5131 am_cv_CXX_dependencies_compiler_type=none 5132fi 5133 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5136$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5137CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5138 5139 if 5140 test "x$enable_dependency_tracking" != xno \ 5141 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5142 am__fastdepCXX_TRUE= 5143 am__fastdepCXX_FALSE='#' 5144else 5145 am__fastdepCXX_TRUE='#' 5146 am__fastdepCXX_FALSE= 5147fi 5148 5149 5150 5151 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 5152 ac_ext=cpp 5153ac_cpp='$CXXCPP $CPPFLAGS' 5154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5157 ac_success=no 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 5159$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 5160if ${ax_cv_cxx_compile_cxx11+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165 5166 5167// If the compiler admits that it is not ready for C++11, why torture it? 5168// Hopefully, this will speed up the test. 5169 5170#ifndef __cplusplus 5171 5172#error "This is not a C++ compiler" 5173 5174#else 5175 5176namespace cxx11 5177{ 5178 5179 namespace test_enum_class 5180 { 5181 enum class Dimensions { one, energy, length, time, velocity }; 5182 Dimensions dimensions() {return Dimensions::one;} 5183 } 5184 5185#if 0 5186//Disabled because they are not supported by BG/Q XLF 5187 5188 namespace test_static_assert 5189 { 5190 5191 template <typename T> 5192 struct check 5193 { 5194 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5195 }; 5196 5197 } 5198 5199 namespace test_final_override 5200 { 5201 5202 struct Base 5203 { 5204 virtual void f() {} 5205 }; 5206 5207 struct Derived : public Base 5208 { 5209 virtual void f() override {} 5210 }; 5211 5212 } 5213 5214 namespace test_double_right_angle_brackets 5215 { 5216 5217 template < typename T > 5218 struct check {}; 5219 5220 typedef check<void> single_type; 5221 typedef check<check<void>> double_type; 5222 typedef check<check<check<void>>> triple_type; 5223 typedef check<check<check<check<void>>>> quadruple_type; 5224 5225 } 5226 5227 namespace test_decltype 5228 { 5229 5230 int 5231 f() 5232 { 5233 int a = 1; 5234 decltype(a) b = 2; 5235 return a + b; 5236 } 5237 5238 } 5239 5240 namespace test_type_deduction 5241 { 5242 5243 template < typename T1, typename T2 > 5244 struct is_same 5245 { 5246 static const bool value = false; 5247 }; 5248 5249 template < typename T > 5250 struct is_same<T, T> 5251 { 5252 static const bool value = true; 5253 }; 5254 5255 template < typename T1, typename T2 > 5256 auto 5257 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5258 { 5259 return a1 + a2; 5260 } 5261 5262 int 5263 test(const int c, volatile int v) 5264 { 5265 static_assert(is_same<int, decltype(0)>::value == true, ""); 5266 static_assert(is_same<int, decltype(c)>::value == false, ""); 5267 static_assert(is_same<int, decltype(v)>::value == false, ""); 5268 auto ac = c; 5269 auto av = v; 5270 auto sumi = ac + av + 'x'; 5271 auto sumf = ac + av + 1.0; 5272 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5273 static_assert(is_same<int, decltype(av)>::value == true, ""); 5274 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5275 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5276 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5277 return (sumf > 0.0) ? sumi : add(c, v); 5278 } 5279 5280 } 5281 5282 namespace test_noexcept 5283 { 5284 5285 int f() { return 0; } 5286 int g() noexcept { return 0; } 5287 5288 static_assert(noexcept(f()) == false, ""); 5289 static_assert(noexcept(g()) == true, ""); 5290 5291 } 5292 5293 namespace test_constexpr 5294 { 5295 5296 template < typename CharT > 5297 unsigned long constexpr 5298 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5299 { 5300 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5301 } 5302 5303 template < typename CharT > 5304 unsigned long constexpr 5305 strlen_c(const CharT *const s) noexcept 5306 { 5307 return strlen_c_r(s, 0UL); 5308 } 5309 5310 static_assert(strlen_c("") == 0UL, ""); 5311 static_assert(strlen_c("1") == 1UL, ""); 5312 static_assert(strlen_c("example") == 7UL, ""); 5313 static_assert(strlen_c("another\0example") == 7UL, ""); 5314 5315 } 5316 5317 namespace test_rvalue_references 5318 { 5319 5320 template < int N > 5321 struct answer 5322 { 5323 static constexpr int value = N; 5324 }; 5325 5326 answer<1> f(int&) { return answer<1>(); } 5327 answer<2> f(const int&) { return answer<2>(); } 5328 answer<3> f(int&&) { return answer<3>(); } 5329 5330 void 5331 test() 5332 { 5333 int i = 0; 5334 const int c = 0; 5335 static_assert(decltype(f(i))::value == 1, ""); 5336 static_assert(decltype(f(c))::value == 2, ""); 5337 static_assert(decltype(f(0))::value == 3, ""); 5338 } 5339 5340 } 5341 5342 namespace test_uniform_initialization 5343 { 5344 5345 struct test 5346 { 5347 static const int zero {}; 5348 static const int one {1}; 5349 }; 5350 5351 static_assert(test::zero == 0, ""); 5352 static_assert(test::one == 1, ""); 5353 5354 } 5355 5356 namespace test_lambdas 5357 { 5358 5359 void 5360 test1() 5361 { 5362 auto lambda1 = [](){}; 5363 auto lambda2 = lambda1; 5364 lambda1(); 5365 lambda2(); 5366 } 5367 5368 int 5369 test2() 5370 { 5371 auto a = [](int i, int j){ return i + j; }(1, 2); 5372 auto b = []() -> int { return '0'; }(); 5373 auto c = [=](){ return a + b; }(); 5374 auto d = [&](){ return c; }(); 5375 auto e = [a, &b](int x) mutable { 5376 const auto identity = [](int y){ return y; }; 5377 for (auto i = 0; i < a; ++i) 5378 a += b--; 5379 return x + identity(a + b); 5380 }(0); 5381 return a + b + c + d + e; 5382 } 5383 5384 int 5385 test3() 5386 { 5387 const auto nullary = [](){ return 0; }; 5388 const auto unary = [](int x){ return x; }; 5389 using nullary_t = decltype(nullary); 5390 using unary_t = decltype(unary); 5391 const auto higher1st = [](nullary_t f){ return f(); }; 5392 const auto higher2nd = [unary](nullary_t f1){ 5393 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5394 }; 5395 return higher1st(nullary) + higher2nd(nullary)(unary); 5396 } 5397 5398 } 5399 5400 namespace test_variadic_templates 5401 { 5402 5403 template <int...> 5404 struct sum; 5405 5406 template <int N0, int... N1toN> 5407 struct sum<N0, N1toN...> 5408 { 5409 static constexpr auto value = N0 + sum<N1toN...>::value; 5410 }; 5411 5412 template <> 5413 struct sum<> 5414 { 5415 static constexpr auto value = 0; 5416 }; 5417 5418 static_assert(sum<>::value == 0, ""); 5419 static_assert(sum<1>::value == 1, ""); 5420 static_assert(sum<23>::value == 23, ""); 5421 static_assert(sum<1, 2>::value == 3, ""); 5422 static_assert(sum<5, 5, 11>::value == 21, ""); 5423 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5424 5425 } 5426 5427 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5428 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5429 // because of this. 5430 namespace test_template_alias_sfinae 5431 { 5432 5433 struct foo {}; 5434 5435 template<typename T> 5436 using member = typename T::member_type; 5437 5438 template<typename T> 5439 void func(...) {} 5440 5441 template<typename T> 5442 void func(member<T>*) {} 5443 5444 void test(); 5445 5446 void test() { func<foo>(0); } 5447 5448 } 5449 5450#endif 5451 5452} // namespace cxx11 5453 5454#endif // __cplusplus >= 201103L 5455 5456 5457 5458_ACEOF 5459if ac_fn_cxx_try_compile "$LINENO"; then : 5460 ax_cv_cxx_compile_cxx11=yes 5461else 5462 ax_cv_cxx_compile_cxx11=no 5463fi 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5465fi 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 5467$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 5468 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 5469 ac_success=yes 5470 fi 5471 5472 5473 5474 if test x$ac_success = xno; then 5475 for alternative in ${ax_cxx_compile_alternatives}; do 5476 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" "-qlanglvl=extended${alternative}"; do 5477 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5479$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5480if eval \${$cachevar+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 ac_save_CXX="$CXX" 5484 CXX="$CXX $switch" 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487 5488 5489// If the compiler admits that it is not ready for C++11, why torture it? 5490// Hopefully, this will speed up the test. 5491 5492#ifndef __cplusplus 5493 5494#error "This is not a C++ compiler" 5495 5496#else 5497 5498namespace cxx11 5499{ 5500 5501 namespace test_enum_class 5502 { 5503 enum class Dimensions { one, energy, length, time, velocity }; 5504 Dimensions dimensions() {return Dimensions::one;} 5505 } 5506 5507#if 0 5508//Disabled because they are not supported by BG/Q XLF 5509 5510 namespace test_static_assert 5511 { 5512 5513 template <typename T> 5514 struct check 5515 { 5516 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5517 }; 5518 5519 } 5520 5521 namespace test_final_override 5522 { 5523 5524 struct Base 5525 { 5526 virtual void f() {} 5527 }; 5528 5529 struct Derived : public Base 5530 { 5531 virtual void f() override {} 5532 }; 5533 5534 } 5535 5536 namespace test_double_right_angle_brackets 5537 { 5538 5539 template < typename T > 5540 struct check {}; 5541 5542 typedef check<void> single_type; 5543 typedef check<check<void>> double_type; 5544 typedef check<check<check<void>>> triple_type; 5545 typedef check<check<check<check<void>>>> quadruple_type; 5546 5547 } 5548 5549 namespace test_decltype 5550 { 5551 5552 int 5553 f() 5554 { 5555 int a = 1; 5556 decltype(a) b = 2; 5557 return a + b; 5558 } 5559 5560 } 5561 5562 namespace test_type_deduction 5563 { 5564 5565 template < typename T1, typename T2 > 5566 struct is_same 5567 { 5568 static const bool value = false; 5569 }; 5570 5571 template < typename T > 5572 struct is_same<T, T> 5573 { 5574 static const bool value = true; 5575 }; 5576 5577 template < typename T1, typename T2 > 5578 auto 5579 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5580 { 5581 return a1 + a2; 5582 } 5583 5584 int 5585 test(const int c, volatile int v) 5586 { 5587 static_assert(is_same<int, decltype(0)>::value == true, ""); 5588 static_assert(is_same<int, decltype(c)>::value == false, ""); 5589 static_assert(is_same<int, decltype(v)>::value == false, ""); 5590 auto ac = c; 5591 auto av = v; 5592 auto sumi = ac + av + 'x'; 5593 auto sumf = ac + av + 1.0; 5594 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5595 static_assert(is_same<int, decltype(av)>::value == true, ""); 5596 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5597 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5598 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5599 return (sumf > 0.0) ? sumi : add(c, v); 5600 } 5601 5602 } 5603 5604 namespace test_noexcept 5605 { 5606 5607 int f() { return 0; } 5608 int g() noexcept { return 0; } 5609 5610 static_assert(noexcept(f()) == false, ""); 5611 static_assert(noexcept(g()) == true, ""); 5612 5613 } 5614 5615 namespace test_constexpr 5616 { 5617 5618 template < typename CharT > 5619 unsigned long constexpr 5620 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5621 { 5622 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5623 } 5624 5625 template < typename CharT > 5626 unsigned long constexpr 5627 strlen_c(const CharT *const s) noexcept 5628 { 5629 return strlen_c_r(s, 0UL); 5630 } 5631 5632 static_assert(strlen_c("") == 0UL, ""); 5633 static_assert(strlen_c("1") == 1UL, ""); 5634 static_assert(strlen_c("example") == 7UL, ""); 5635 static_assert(strlen_c("another\0example") == 7UL, ""); 5636 5637 } 5638 5639 namespace test_rvalue_references 5640 { 5641 5642 template < int N > 5643 struct answer 5644 { 5645 static constexpr int value = N; 5646 }; 5647 5648 answer<1> f(int&) { return answer<1>(); } 5649 answer<2> f(const int&) { return answer<2>(); } 5650 answer<3> f(int&&) { return answer<3>(); } 5651 5652 void 5653 test() 5654 { 5655 int i = 0; 5656 const int c = 0; 5657 static_assert(decltype(f(i))::value == 1, ""); 5658 static_assert(decltype(f(c))::value == 2, ""); 5659 static_assert(decltype(f(0))::value == 3, ""); 5660 } 5661 5662 } 5663 5664 namespace test_uniform_initialization 5665 { 5666 5667 struct test 5668 { 5669 static const int zero {}; 5670 static const int one {1}; 5671 }; 5672 5673 static_assert(test::zero == 0, ""); 5674 static_assert(test::one == 1, ""); 5675 5676 } 5677 5678 namespace test_lambdas 5679 { 5680 5681 void 5682 test1() 5683 { 5684 auto lambda1 = [](){}; 5685 auto lambda2 = lambda1; 5686 lambda1(); 5687 lambda2(); 5688 } 5689 5690 int 5691 test2() 5692 { 5693 auto a = [](int i, int j){ return i + j; }(1, 2); 5694 auto b = []() -> int { return '0'; }(); 5695 auto c = [=](){ return a + b; }(); 5696 auto d = [&](){ return c; }(); 5697 auto e = [a, &b](int x) mutable { 5698 const auto identity = [](int y){ return y; }; 5699 for (auto i = 0; i < a; ++i) 5700 a += b--; 5701 return x + identity(a + b); 5702 }(0); 5703 return a + b + c + d + e; 5704 } 5705 5706 int 5707 test3() 5708 { 5709 const auto nullary = [](){ return 0; }; 5710 const auto unary = [](int x){ return x; }; 5711 using nullary_t = decltype(nullary); 5712 using unary_t = decltype(unary); 5713 const auto higher1st = [](nullary_t f){ return f(); }; 5714 const auto higher2nd = [unary](nullary_t f1){ 5715 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5716 }; 5717 return higher1st(nullary) + higher2nd(nullary)(unary); 5718 } 5719 5720 } 5721 5722 namespace test_variadic_templates 5723 { 5724 5725 template <int...> 5726 struct sum; 5727 5728 template <int N0, int... N1toN> 5729 struct sum<N0, N1toN...> 5730 { 5731 static constexpr auto value = N0 + sum<N1toN...>::value; 5732 }; 5733 5734 template <> 5735 struct sum<> 5736 { 5737 static constexpr auto value = 0; 5738 }; 5739 5740 static_assert(sum<>::value == 0, ""); 5741 static_assert(sum<1>::value == 1, ""); 5742 static_assert(sum<23>::value == 23, ""); 5743 static_assert(sum<1, 2>::value == 3, ""); 5744 static_assert(sum<5, 5, 11>::value == 21, ""); 5745 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5746 5747 } 5748 5749 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5750 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5751 // because of this. 5752 namespace test_template_alias_sfinae 5753 { 5754 5755 struct foo {}; 5756 5757 template<typename T> 5758 using member = typename T::member_type; 5759 5760 template<typename T> 5761 void func(...) {} 5762 5763 template<typename T> 5764 void func(member<T>*) {} 5765 5766 void test(); 5767 5768 void test() { func<foo>(0); } 5769 5770 } 5771 5772#endif 5773 5774} // namespace cxx11 5775 5776#endif // __cplusplus >= 201103L 5777 5778 5779 5780_ACEOF 5781if ac_fn_cxx_try_compile "$LINENO"; then : 5782 eval $cachevar=yes 5783else 5784 eval $cachevar=no 5785fi 5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5787 CXX="$ac_save_CXX" 5788fi 5789eval ac_res=\$$cachevar 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5791$as_echo "$ac_res" >&6; } 5792 if eval test x\$$cachevar = xyes; then 5793 CXX="$CXX $switch" 5794 if test -n "$CXXCPP" ; then 5795 CXXCPP="$CXXCPP $switch" 5796 fi 5797 ac_success=yes 5798 break 5799 fi 5800 done 5801 if test x$ac_success = xyes; then 5802 break 5803 fi 5804 done 5805 fi 5806 ac_ext=c 5807ac_cpp='$CPP $CPPFLAGS' 5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_c_compiler_gnu 5811 5812 if test x$ax_cxx_compile_cxx11_required = xtrue; then 5813 if test x$ac_success = xno; then 5814 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 5815 fi 5816 fi 5817 if test x$ac_success = xno; then 5818 HAVE_CXX11=0 5819 as_fn_error $? "no compiler with C++11 support was found" "$LINENO" 5 5820 else 5821 HAVE_CXX11=1 5822 fi 5823 5824 5825 5826ac_ext=cpp 5827ac_cpp='$CXXCPP $CPPFLAGS' 5828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $CXX" >&5 5832$as_echo_n "checking how to get verbose linking output from $CXX... " >&6; } 5833if ${ac_cv_prog_cxx_v+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 5837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838/* end confdefs.h. */ 5839 5840int 5841main () 5842{ 5843 5844 ; 5845 return 0; 5846} 5847_ACEOF 5848if ac_fn_cxx_try_compile "$LINENO"; then : 5849 ac_cv_prog_cxx_v= 5850# Try some options frequently used verbose output 5851for ac_verb in -v -verbose --verbose -V -\#\#\#; do 5852 ac_ext=cpp 5853ac_cpp='$CXXCPP $CPPFLAGS' 5854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5858/* end confdefs.h. */ 5859 5860int 5861main () 5862{ 5863 5864 ; 5865 return 0; 5866} 5867_ACEOF 5868ac_save_CXXFLAGS=$CXXFLAGS 5869CXXFLAGS="$CXXFLAGS $ac_verb" 5870(eval echo $as_me:5870: \"$ac_link\") >&5 5871ac_cxx_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 5872echo "$ac_cxx_v_output" >&5 5873CXXFLAGS=$ac_save_CXXFLAGS 5874 5875rm -rf conftest* 5876ac_ext=cpp 5877ac_cpp='$CXXCPP $CPPFLAGS' 5878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5881# If we are using xlf then replace all the commas with spaces. 5882if echo $ac_cxx_v_output | grep xlfentry >/dev/null 2>&1; then 5883 ac_cxx_v_output=`echo $ac_cxx_v_output | sed 's/,/ /g'` 5884fi 5885# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 5886# /foo, /bar, and /baz are search directories for the Fortran linker. 5887# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 5888ac_cxx_v_output="`echo $ac_cxx_v_output | 5889 grep 'LPATH is:' | 5890 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_cxx_v_output" 5891 5892# Fix for xlc++ (in vulcan/sequoia), we need to remove some lines 5893ac_cxx_v_output="`echo $ac_cxx_v_output | grep -v \ failed`" 5894 5895 5896 # look for -l* and *.a constructs in the output 5897 for ac_arg in $ac_cxx_v_output; do 5898 case $ac_arg in 5899 [\\/]*.a | ?:[\\/]*.a | -[lLu]*) 5900 ac_cv_prog_cxx_v=$ac_verb 5901 break 2 ;; 5902 esac 5903 done 5904done 5905if test -z "$ac_cv_prog_cxx_v"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $CXX" >&5 5907$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $CXX" >&2;} 5908fi 5909else 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 5911$as_echo "$as_me: WARNING: compilation failed" >&2;} 5912fi 5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5914 5915fi 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_v" >&5 5917$as_echo "$ac_cv_prog_cxx_v" >&6; } 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ libraries" >&5 5919$as_echo_n "checking for C++ libraries... " >&6; } 5920if ${ac_cv_cxxlibs+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 if test "x$CXXLIBS" != "x"; then 5924 ac_cv_cxxlibs="$CXXLIBS" # Let the user override the test. 5925else 5926 5927ac_ext=cpp 5928ac_cpp='$CXXCPP $CPPFLAGS' 5929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934 5935int 5936main () 5937{ 5938 5939 ; 5940 return 0; 5941} 5942_ACEOF 5943ac_save_CXXFLAGS=$CXXFLAGS 5944CXXFLAGS="$CXXFLAGS $ac_cv_prog_cxx_v" 5945(eval echo $as_me:5945: \"$ac_link\") >&5 5946ac_cxx_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 5947echo "$ac_cxx_v_output" >&5 5948CXXFLAGS=$ac_save_CXXFLAGS 5949 5950rm -rf conftest* 5951ac_ext=cpp 5952ac_cpp='$CXXCPP $CPPFLAGS' 5953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5956# If we are using xlf then replace all the commas with spaces. 5957if echo $ac_cxx_v_output | grep xlfentry >/dev/null 2>&1; then 5958 ac_cxx_v_output=`echo $ac_cxx_v_output | sed 's/,/ /g'` 5959fi 5960# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 5961# /foo, /bar, and /baz are search directories for the Fortran linker. 5962# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 5963ac_cxx_v_output="`echo $ac_cxx_v_output | 5964 grep 'LPATH is:' | 5965 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_cxx_v_output" 5966 5967# Fix for xlc++ (in vulcan/sequoia), we need to remove some lines 5968ac_cxx_v_output="`echo $ac_cxx_v_output | grep -v \ failed`" 5969 5970 5971 5972ac_cv_cxxlibs= 5973 5974# Save positional arguments (if any) 5975ac_save_positional="$@" 5976 5977set X $ac_cxx_v_output 5978while test $# != 1; do 5979 shift 5980 ac_arg=`echo $1 | sed -e 's/\"//g' -e 's/\x27//g'` #remove single and double quote 5981 case $ac_arg in 5982 [\\/]*.a | ?:[\\/]*.a) 5983 ac_exists=false 5984 for ac_i in $ac_cv_cxxlibs; do 5985 if test x"$ac_arg" = x"$ac_i"; then 5986 ac_exists=true 5987 break 5988 fi 5989 done 5990 5991 if test x"$ac_exists" = xtrue; then : 5992 5993else 5994 ac_cv_cxxlibs="$ac_cv_cxxlibs $ac_arg" 5995fi 5996 ;; 5997 -bI:*) 5998 ac_exists=false 5999 for ac_i in $ac_cv_cxxlibs; do 6000 if test x"$ac_arg" = x"$ac_i"; then 6001 ac_exists=true 6002 break 6003 fi 6004 done 6005 6006 if test x"$ac_exists" = xtrue; then : 6007 6008else 6009 if test "$ac_compiler_gnu" = yes; then 6010 for ac_link_opt in $ac_arg; do 6011 ac_cv_cxxlibs="$ac_cv_cxxlibs -Xlinker $ac_link_opt" 6012 done 6013else 6014 ac_cv_cxxlibs="$ac_cv_cxxlibs $ac_arg" 6015fi 6016fi 6017 ;; 6018 # Ignore these flags. 6019 -lang* | -lcrt0.o | -lc | -lgcc | -libmil | -LANG:=*) 6020 ;; 6021 -lcrt1.o | -lcrt1.10.[1-7].o | -lcrt2.o |-lcrtbegin.o ) 6022 ;; 6023 -lkernel32) 6024 test x"$CYGWIN" != xyes && ac_cv_cxxlibs="$ac_cv_cxxlibs $ac_arg" 6025 ;; 6026 -[LuY]) 6027 # These flags, when seen by themselves, take an argument. 6028 # We remove the space between option and argument and re-iterate 6029 # unless we find an empty arg or a new option (starting with -) 6030 case $2 in 6031 "" | -*);; 6032 *) 6033 ac_arg="$ac_arg$2" 6034 shift; shift 6035 set X $ac_arg "$@" 6036 ;; 6037 esac 6038 ;; 6039 -YP,*) 6040 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 6041 ac_exists=false 6042 for ac_i in $ac_cv_cxxlibs; do 6043 if test x"$ac_j" = x"$ac_i"; then 6044 ac_exists=true 6045 break 6046 fi 6047 done 6048 6049 if test x"$ac_exists" = xtrue; then : 6050 6051else 6052 ac_arg="$ac_arg $ac_j" 6053 ac_cv_cxxlibs="$ac_cv_cxxlibs $ac_j" 6054fi 6055 done 6056 ;; 6057 -[lL]*) 6058 ac_exists=false 6059 for ac_i in $ac_cv_cxxlibs; do 6060 if test x"$ac_arg" = x"$ac_i"; then 6061 ac_exists=true 6062 break 6063 fi 6064 done 6065 6066 if test x"$ac_exists" = xtrue; then : 6067 6068else 6069 ac_cv_cxxlibs="$ac_cv_cxxlibs $ac_arg" 6070fi 6071 ;; 6072 # Ignore everything else. 6073 esac 6074done 6075# restore positional arguments 6076set X $ac_save_positional; shift 6077 6078# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 6079# then we insist that the "run path" must be an absolute path (i.e. it 6080# must begin with a "/"). 6081case `(uname -sr) 2>/dev/null` in 6082 "SunOS 5"*) 6083 ac_ld_run_path=`echo $ac_cxx_v_output | 6084 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 6085 test "x$ac_ld_run_path" != x && 6086 if test "$ac_compiler_gnu" = yes; then 6087 for ac_link_opt in $ac_ld_run_path; do 6088 ac_cv_cxxlibs="$ac_cv_cxxlibs -Xlinker $ac_link_opt" 6089 done 6090else 6091 ac_cv_cxxlibs="$ac_cv_cxxlibs $ac_ld_run_path" 6092fi 6093 ;; 6094esac 6095fi # test "x$CXXLIBS" = "x" 6096 6097fi 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxlibs" >&5 6099$as_echo "$ac_cv_cxxlibs" >&6; } 6100CXXLIBS="$ac_cv_cxxlibs" 6101 6102ac_ext=c 6103ac_cpp='$CPP $CPPFLAGS' 6104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6106ac_compiler_gnu=$ac_cv_c_compiler_gnu 6107 6108 6109# optimizations extensions supported by the compiler 6110 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6112$as_echo_n "checking for inline... " >&6; } 6113if ${ac_cv_c_inline+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 ac_cv_c_inline=no 6117for ac_kw in inline __inline__ __inline; do 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120#ifndef __cplusplus 6121typedef int foo_t; 6122static $ac_kw foo_t static_foo () {return 0; } 6123$ac_kw foo_t foo () {return 0; } 6124#endif 6125 6126_ACEOF 6127if ac_fn_c_try_compile "$LINENO"; then : 6128 ac_cv_c_inline=$ac_kw 6129fi 6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6131 test "$ac_cv_c_inline" != no && break 6132done 6133 6134fi 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6136$as_echo "$ac_cv_c_inline" >&6; } 6137 6138case $ac_cv_c_inline in 6139 inline | yes) ;; 6140 *) 6141 case $ac_cv_c_inline in 6142 no) ac_val=;; 6143 *) ac_val=$ac_cv_c_inline;; 6144 esac 6145 cat >>confdefs.h <<_ACEOF 6146#ifndef __cplusplus 6147#define inline $ac_val 6148#endif 6149_ACEOF 6150 ;; 6151esac 6152 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 6154$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 6155if ${ac_cv_c_restrict+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 ac_cv_c_restrict=no 6159 # The order here caters to the fact that C++ does not require restrict. 6160 for ac_kw in __restrict __restrict__ _Restrict restrict; do 6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162/* end confdefs.h. */ 6163typedef int * int_ptr; 6164 int foo (int_ptr $ac_kw ip) { 6165 return ip[0]; 6166 } 6167int 6168main () 6169{ 6170int s[1]; 6171 int * $ac_kw t = s; 6172 t[0] = 0; 6173 return foo(t) 6174 ; 6175 return 0; 6176} 6177_ACEOF 6178if ac_fn_c_try_compile "$LINENO"; then : 6179 ac_cv_c_restrict=$ac_kw 6180fi 6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6182 test "$ac_cv_c_restrict" != no && break 6183 done 6184 6185fi 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 6187$as_echo "$ac_cv_c_restrict" >&6; } 6188 6189 case $ac_cv_c_restrict in 6190 restrict) ;; 6191 no) $as_echo "#define restrict /**/" >>confdefs.h 6192 ;; 6193 *) cat >>confdefs.h <<_ACEOF 6194#define restrict $ac_cv_c_restrict 6195_ACEOF 6196 ;; 6197 esac 6198 6199 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_prefetch" >&5 6201$as_echo_n "checking for __builtin_prefetch... " >&6; } 6202 ac_ext=c 6203ac_cpp='$CPP $CPPFLAGS' 6204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6206ac_compiler_gnu=$ac_cv_c_compiler_gnu 6207 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210 6211 int * f; 6212 6213int 6214main () 6215{ 6216 6217 __builtin_prefetch(f, 0, 3); 6218 6219 ; 6220 return 0; 6221} 6222_ACEOF 6223if ac_fn_c_try_link "$LINENO"; then : 6224 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6226$as_echo "yes" >&6; } 6227 6228$as_echo "#define HAVE_BUILTIN_PREFETCH 1" >>confdefs.h 6229 6230 6231else 6232 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6234$as_echo "no" >&6; } 6235 6236fi 6237rm -f core conftest.err conftest.$ac_objext \ 6238 conftest$ac_exeext conftest.$ac_ext 6239 6240 6241# Checks for header files. 6242ac_header_dirent=no 6243for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6244 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 6246$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 6247if eval \${$as_ac_Header+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6251/* end confdefs.h. */ 6252#include <sys/types.h> 6253#include <$ac_hdr> 6254 6255int 6256main () 6257{ 6258if ((DIR *) 0) 6259return 0; 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264if ac_fn_c_try_compile "$LINENO"; then : 6265 eval "$as_ac_Header=yes" 6266else 6267 eval "$as_ac_Header=no" 6268fi 6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6270fi 6271eval ac_res=\$$as_ac_Header 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6273$as_echo "$ac_res" >&6; } 6274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6275 cat >>confdefs.h <<_ACEOF 6276#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6277_ACEOF 6278 6279ac_header_dirent=$ac_hdr; break 6280fi 6281 6282done 6283# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6284if test $ac_header_dirent = dirent.h; then 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6286$as_echo_n "checking for library containing opendir... " >&6; } 6287if ${ac_cv_search_opendir+:} false; then : 6288 $as_echo_n "(cached) " >&6 6289else 6290 ac_func_search_save_LIBS=$LIBS 6291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293 6294/* Override any GCC internal prototype to avoid an error. 6295 Use char because int might match the return type of a GCC 6296 builtin and then its argument prototype would still apply. */ 6297#ifdef __cplusplus 6298extern "C" 6299#endif 6300char opendir (); 6301int 6302main () 6303{ 6304return opendir (); 6305 ; 6306 return 0; 6307} 6308_ACEOF 6309for ac_lib in '' dir; do 6310 if test -z "$ac_lib"; then 6311 ac_res="none required" 6312 else 6313 ac_res=-l$ac_lib 6314 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6315 fi 6316 if ac_fn_c_try_link "$LINENO"; then : 6317 ac_cv_search_opendir=$ac_res 6318fi 6319rm -f core conftest.err conftest.$ac_objext \ 6320 conftest$ac_exeext 6321 if ${ac_cv_search_opendir+:} false; then : 6322 break 6323fi 6324done 6325if ${ac_cv_search_opendir+:} false; then : 6326 6327else 6328 ac_cv_search_opendir=no 6329fi 6330rm conftest.$ac_ext 6331LIBS=$ac_func_search_save_LIBS 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6334$as_echo "$ac_cv_search_opendir" >&6; } 6335ac_res=$ac_cv_search_opendir 6336if test "$ac_res" != no; then : 6337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6338 6339fi 6340 6341else 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6343$as_echo_n "checking for library containing opendir... " >&6; } 6344if ${ac_cv_search_opendir+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 ac_func_search_save_LIBS=$LIBS 6348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349/* end confdefs.h. */ 6350 6351/* Override any GCC internal prototype to avoid an error. 6352 Use char because int might match the return type of a GCC 6353 builtin and then its argument prototype would still apply. */ 6354#ifdef __cplusplus 6355extern "C" 6356#endif 6357char opendir (); 6358int 6359main () 6360{ 6361return opendir (); 6362 ; 6363 return 0; 6364} 6365_ACEOF 6366for ac_lib in '' x; do 6367 if test -z "$ac_lib"; then 6368 ac_res="none required" 6369 else 6370 ac_res=-l$ac_lib 6371 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6372 fi 6373 if ac_fn_c_try_link "$LINENO"; then : 6374 ac_cv_search_opendir=$ac_res 6375fi 6376rm -f core conftest.err conftest.$ac_objext \ 6377 conftest$ac_exeext 6378 if ${ac_cv_search_opendir+:} false; then : 6379 break 6380fi 6381done 6382if ${ac_cv_search_opendir+:} false; then : 6383 6384else 6385 ac_cv_search_opendir=no 6386fi 6387rm conftest.$ac_ext 6388LIBS=$ac_func_search_save_LIBS 6389fi 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6391$as_echo "$ac_cv_search_opendir" >&6; } 6392ac_res=$ac_cv_search_opendir 6393if test "$ac_res" != no; then : 6394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6395 6396fi 6397 6398fi 6399 6400ac_ext=c 6401ac_cpp='$CPP $CPPFLAGS' 6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6404ac_compiler_gnu=$ac_cv_c_compiler_gnu 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6406$as_echo_n "checking how to run the C preprocessor... " >&6; } 6407# On Suns, sometimes $CPP names a directory. 6408if test -n "$CPP" && test -d "$CPP"; then 6409 CPP= 6410fi 6411if test -z "$CPP"; then 6412 if ${ac_cv_prog_CPP+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 # Double quotes because CPP needs to be expanded 6416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6417 do 6418 ac_preproc_ok=false 6419for ac_c_preproc_warn_flag in '' yes 6420do 6421 # Use a header file that comes with gcc, so configuring glibc 6422 # with a fresh cross-compiler works. 6423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6424 # <limits.h> exists even on freestanding compilers. 6425 # On the NeXT, cc -E runs the code through the compiler's parser, 6426 # not just through cpp. "Syntax error" is here to catch this case. 6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6428/* end confdefs.h. */ 6429#ifdef __STDC__ 6430# include <limits.h> 6431#else 6432# include <assert.h> 6433#endif 6434 Syntax error 6435_ACEOF 6436if ac_fn_c_try_cpp "$LINENO"; then : 6437 6438else 6439 # Broken: fails on valid input. 6440continue 6441fi 6442rm -f conftest.err conftest.i conftest.$ac_ext 6443 6444 # OK, works on sane cases. Now check whether nonexistent headers 6445 # can be detected and how. 6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6447/* end confdefs.h. */ 6448#include <ac_nonexistent.h> 6449_ACEOF 6450if ac_fn_c_try_cpp "$LINENO"; then : 6451 # Broken: success on invalid input. 6452continue 6453else 6454 # Passes both tests. 6455ac_preproc_ok=: 6456break 6457fi 6458rm -f conftest.err conftest.i conftest.$ac_ext 6459 6460done 6461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6462rm -f conftest.i conftest.err conftest.$ac_ext 6463if $ac_preproc_ok; then : 6464 break 6465fi 6466 6467 done 6468 ac_cv_prog_CPP=$CPP 6469 6470fi 6471 CPP=$ac_cv_prog_CPP 6472else 6473 ac_cv_prog_CPP=$CPP 6474fi 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6476$as_echo "$CPP" >&6; } 6477ac_preproc_ok=false 6478for ac_c_preproc_warn_flag in '' yes 6479do 6480 # Use a header file that comes with gcc, so configuring glibc 6481 # with a fresh cross-compiler works. 6482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6483 # <limits.h> exists even on freestanding compilers. 6484 # On the NeXT, cc -E runs the code through the compiler's parser, 6485 # not just through cpp. "Syntax error" is here to catch this case. 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488#ifdef __STDC__ 6489# include <limits.h> 6490#else 6491# include <assert.h> 6492#endif 6493 Syntax error 6494_ACEOF 6495if ac_fn_c_try_cpp "$LINENO"; then : 6496 6497else 6498 # Broken: fails on valid input. 6499continue 6500fi 6501rm -f conftest.err conftest.i conftest.$ac_ext 6502 6503 # OK, works on sane cases. Now check whether nonexistent headers 6504 # can be detected and how. 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507#include <ac_nonexistent.h> 6508_ACEOF 6509if ac_fn_c_try_cpp "$LINENO"; then : 6510 # Broken: success on invalid input. 6511continue 6512else 6513 # Passes both tests. 6514ac_preproc_ok=: 6515break 6516fi 6517rm -f conftest.err conftest.i conftest.$ac_ext 6518 6519done 6520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6521rm -f conftest.i conftest.err conftest.$ac_ext 6522if $ac_preproc_ok; then : 6523 6524else 6525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6527as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6528See \`config.log' for more details" "$LINENO" 5; } 6529fi 6530 6531ac_ext=c 6532ac_cpp='$CPP $CPPFLAGS' 6533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6535ac_compiler_gnu=$ac_cv_c_compiler_gnu 6536 6537 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6539$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6540if ${ac_cv_path_GREP+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 if test -z "$GREP"; then 6544 ac_path_GREP_found=false 6545 # Loop through the user's path and test for each of PROGNAME-LIST 6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_prog in grep ggrep; do 6552 for ac_exec_ext in '' $ac_executable_extensions; do 6553 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6554 as_fn_executable_p "$ac_path_GREP" || continue 6555# Check for GNU ac_path_GREP and select it if it is found. 6556 # Check for GNU $ac_path_GREP 6557case `"$ac_path_GREP" --version 2>&1` in 6558*GNU*) 6559 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6560*) 6561 ac_count=0 6562 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6563 while : 6564 do 6565 cat "conftest.in" "conftest.in" >"conftest.tmp" 6566 mv "conftest.tmp" "conftest.in" 6567 cp "conftest.in" "conftest.nl" 6568 echo 'GREP' >> "conftest.nl" 6569 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6571 ac_count=`expr $ac_count + 1` 6572 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6573 # Best one so far, save it but keep looking for a better one 6574 ac_cv_path_GREP="$ac_path_GREP" 6575 ac_path_GREP_max=$ac_count 6576 fi 6577 # 10*(2^10) chars as input seems more than enough 6578 test $ac_count -gt 10 && break 6579 done 6580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6581esac 6582 6583 6584 $ac_path_GREP_found && break 3 6585 done 6586 done 6587 done 6588IFS=$as_save_IFS 6589 if test -z "$ac_cv_path_GREP"; then 6590 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6591 fi 6592else 6593 ac_cv_path_GREP=$GREP 6594fi 6595 6596fi 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6598$as_echo "$ac_cv_path_GREP" >&6; } 6599 GREP="$ac_cv_path_GREP" 6600 6601 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6603$as_echo_n "checking for egrep... " >&6; } 6604if ${ac_cv_path_EGREP+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6608 then ac_cv_path_EGREP="$GREP -E" 6609 else 6610 if test -z "$EGREP"; then 6611 ac_path_EGREP_found=false 6612 # Loop through the user's path and test for each of PROGNAME-LIST 6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_prog in egrep; do 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6621 as_fn_executable_p "$ac_path_EGREP" || continue 6622# Check for GNU ac_path_EGREP and select it if it is found. 6623 # Check for GNU $ac_path_EGREP 6624case `"$ac_path_EGREP" --version 2>&1` in 6625*GNU*) 6626 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6627*) 6628 ac_count=0 6629 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6630 while : 6631 do 6632 cat "conftest.in" "conftest.in" >"conftest.tmp" 6633 mv "conftest.tmp" "conftest.in" 6634 cp "conftest.in" "conftest.nl" 6635 echo 'EGREP' >> "conftest.nl" 6636 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6638 ac_count=`expr $ac_count + 1` 6639 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6640 # Best one so far, save it but keep looking for a better one 6641 ac_cv_path_EGREP="$ac_path_EGREP" 6642 ac_path_EGREP_max=$ac_count 6643 fi 6644 # 10*(2^10) chars as input seems more than enough 6645 test $ac_count -gt 10 && break 6646 done 6647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6648esac 6649 6650 6651 $ac_path_EGREP_found && break 3 6652 done 6653 done 6654 done 6655IFS=$as_save_IFS 6656 if test -z "$ac_cv_path_EGREP"; then 6657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6658 fi 6659else 6660 ac_cv_path_EGREP=$EGREP 6661fi 6662 6663 fi 6664fi 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6666$as_echo "$ac_cv_path_EGREP" >&6; } 6667 EGREP="$ac_cv_path_EGREP" 6668 6669 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6671$as_echo_n "checking for ANSI C header files... " >&6; } 6672if ${ac_cv_header_stdc+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677#include <stdlib.h> 6678#include <stdarg.h> 6679#include <string.h> 6680#include <float.h> 6681 6682int 6683main () 6684{ 6685 6686 ; 6687 return 0; 6688} 6689_ACEOF 6690if ac_fn_c_try_compile "$LINENO"; then : 6691 ac_cv_header_stdc=yes 6692else 6693 ac_cv_header_stdc=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6696 6697if test $ac_cv_header_stdc = yes; then 6698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700/* end confdefs.h. */ 6701#include <string.h> 6702 6703_ACEOF 6704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6705 $EGREP "memchr" >/dev/null 2>&1; then : 6706 6707else 6708 ac_cv_header_stdc=no 6709fi 6710rm -f conftest* 6711 6712fi 6713 6714if test $ac_cv_header_stdc = yes; then 6715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718#include <stdlib.h> 6719 6720_ACEOF 6721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6722 $EGREP "free" >/dev/null 2>&1; then : 6723 6724else 6725 ac_cv_header_stdc=no 6726fi 6727rm -f conftest* 6728 6729fi 6730 6731if test $ac_cv_header_stdc = yes; then 6732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6733 if test "$cross_compiling" = yes; then : 6734 : 6735else 6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6737/* end confdefs.h. */ 6738#include <ctype.h> 6739#include <stdlib.h> 6740#if ((' ' & 0x0FF) == 0x020) 6741# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6742# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6743#else 6744# define ISLOWER(c) \ 6745 (('a' <= (c) && (c) <= 'i') \ 6746 || ('j' <= (c) && (c) <= 'r') \ 6747 || ('s' <= (c) && (c) <= 'z')) 6748# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6749#endif 6750 6751#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6752int 6753main () 6754{ 6755 int i; 6756 for (i = 0; i < 256; i++) 6757 if (XOR (islower (i), ISLOWER (i)) 6758 || toupper (i) != TOUPPER (i)) 6759 return 2; 6760 return 0; 6761} 6762_ACEOF 6763if ac_fn_c_try_run "$LINENO"; then : 6764 6765else 6766 ac_cv_header_stdc=no 6767fi 6768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6769 conftest.$ac_objext conftest.beam conftest.$ac_ext 6770fi 6771 6772fi 6773fi 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6775$as_echo "$ac_cv_header_stdc" >&6; } 6776if test $ac_cv_header_stdc = yes; then 6777 6778$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6779 6780fi 6781 6782# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6783for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6784 inttypes.h stdint.h unistd.h 6785do : 6786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6787ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6788" 6789if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6790 cat >>confdefs.h <<_ACEOF 6791#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6792_ACEOF 6793 6794fi 6795 6796done 6797 6798 6799for ac_header in signal.h errno.h 6800do : 6801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6802ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6803if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6804 cat >>confdefs.h <<_ACEOF 6805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6806_ACEOF 6807 6808fi 6809 6810done 6811 6812ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6813if test "x$ac_cv_type_size_t" = xyes; then : 6814 6815else 6816 6817cat >>confdefs.h <<_ACEOF 6818#define size_t unsigned int 6819_ACEOF 6820 6821fi 6822 6823# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6824# for constant arguments. Useless! 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 6826$as_echo_n "checking for working alloca.h... " >&6; } 6827if ${ac_cv_working_alloca_h+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829else 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832#include <alloca.h> 6833int 6834main () 6835{ 6836char *p = (char *) alloca (2 * sizeof (int)); 6837 if (p) return 0; 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_link "$LINENO"; then : 6843 ac_cv_working_alloca_h=yes 6844else 6845 ac_cv_working_alloca_h=no 6846fi 6847rm -f core conftest.err conftest.$ac_objext \ 6848 conftest$ac_exeext conftest.$ac_ext 6849fi 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6851$as_echo "$ac_cv_working_alloca_h" >&6; } 6852if test $ac_cv_working_alloca_h = yes; then 6853 6854$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6855 6856fi 6857 6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6859$as_echo_n "checking for alloca... " >&6; } 6860if ${ac_cv_func_alloca_works+:} false; then : 6861 $as_echo_n "(cached) " >&6 6862else 6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864/* end confdefs.h. */ 6865#ifdef __GNUC__ 6866# define alloca __builtin_alloca 6867#else 6868# ifdef _MSC_VER 6869# include <malloc.h> 6870# define alloca _alloca 6871# else 6872# ifdef HAVE_ALLOCA_H 6873# include <alloca.h> 6874# else 6875# ifdef _AIX 6876 #pragma alloca 6877# else 6878# ifndef alloca /* predefined by HP cc +Olibcalls */ 6879void *alloca (size_t); 6880# endif 6881# endif 6882# endif 6883# endif 6884#endif 6885 6886int 6887main () 6888{ 6889char *p = (char *) alloca (1); 6890 if (p) return 0; 6891 ; 6892 return 0; 6893} 6894_ACEOF 6895if ac_fn_c_try_link "$LINENO"; then : 6896 ac_cv_func_alloca_works=yes 6897else 6898 ac_cv_func_alloca_works=no 6899fi 6900rm -f core conftest.err conftest.$ac_objext \ 6901 conftest$ac_exeext conftest.$ac_ext 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 6904$as_echo "$ac_cv_func_alloca_works" >&6; } 6905 6906if test $ac_cv_func_alloca_works = yes; then 6907 6908$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 6909 6910else 6911 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6912# that cause trouble. Some versions do not even contain alloca or 6913# contain a buggy version. If you still want to use their alloca, 6914# use ar to extract alloca.o from them instead of compiling alloca.c. 6915 6916ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6917 6918$as_echo "#define C_ALLOCA 1" >>confdefs.h 6919 6920 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 6922$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 6923if ${ac_cv_os_cray+:} false; then : 6924 $as_echo_n "(cached) " >&6 6925else 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928#if defined CRAY && ! defined CRAY2 6929webecray 6930#else 6931wenotbecray 6932#endif 6933 6934_ACEOF 6935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6936 $EGREP "webecray" >/dev/null 2>&1; then : 6937 ac_cv_os_cray=yes 6938else 6939 ac_cv_os_cray=no 6940fi 6941rm -f conftest* 6942 6943fi 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 6945$as_echo "$ac_cv_os_cray" >&6; } 6946if test $ac_cv_os_cray = yes; then 6947 for ac_func in _getb67 GETB67 getb67; do 6948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6950if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6951 6952cat >>confdefs.h <<_ACEOF 6953#define CRAY_STACKSEG_END $ac_func 6954_ACEOF 6955 6956 break 6957fi 6958 6959 done 6960fi 6961 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 6963$as_echo_n "checking stack direction for C alloca... " >&6; } 6964if ${ac_cv_c_stack_direction+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test "$cross_compiling" = yes; then : 6968 ac_cv_c_stack_direction=0 6969else 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971/* end confdefs.h. */ 6972$ac_includes_default 6973int 6974find_stack_direction (int *addr, int depth) 6975{ 6976 int dir, dummy = 0; 6977 if (! addr) 6978 addr = &dummy; 6979 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 6980 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 6981 return dir + dummy; 6982} 6983 6984int 6985main (int argc, char **argv) 6986{ 6987 return find_stack_direction (0, argc + !argv + 20) < 0; 6988} 6989_ACEOF 6990if ac_fn_c_try_run "$LINENO"; then : 6991 ac_cv_c_stack_direction=1 6992else 6993 ac_cv_c_stack_direction=-1 6994fi 6995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6996 conftest.$ac_objext conftest.beam conftest.$ac_ext 6997fi 6998 6999fi 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7001$as_echo "$ac_cv_c_stack_direction" >&6; } 7002cat >>confdefs.h <<_ACEOF 7003#define STACK_DIRECTION $ac_cv_c_stack_direction 7004_ACEOF 7005 7006 7007fi 7008 7009 7010# Checks for typedefs, structures, and compiler characteristics. 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7012$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7013if ${ac_cv_c_const+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017/* end confdefs.h. */ 7018 7019int 7020main () 7021{ 7022 7023#ifndef __cplusplus 7024 /* Ultrix mips cc rejects this sort of thing. */ 7025 typedef int charset[2]; 7026 const charset cs = { 0, 0 }; 7027 /* SunOS 4.1.1 cc rejects this. */ 7028 char const *const *pcpcc; 7029 char **ppc; 7030 /* NEC SVR4.0.2 mips cc rejects this. */ 7031 struct point {int x, y;}; 7032 static struct point const zero = {0,0}; 7033 /* AIX XL C 1.02.0.0 rejects this. 7034 It does not let you subtract one const X* pointer from another in 7035 an arm of an if-expression whose if-part is not a constant 7036 expression */ 7037 const char *g = "string"; 7038 pcpcc = &g + (g ? g-g : 0); 7039 /* HPUX 7.0 cc rejects these. */ 7040 ++pcpcc; 7041 ppc = (char**) pcpcc; 7042 pcpcc = (char const *const *) ppc; 7043 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7044 char tx; 7045 char *t = &tx; 7046 char const *s = 0 ? (char *) 0 : (char const *) 0; 7047 7048 *t++ = 0; 7049 if (s) return 0; 7050 } 7051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7052 int x[] = {25, 17}; 7053 const int *foo = &x[0]; 7054 ++foo; 7055 } 7056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7057 typedef const int *iptr; 7058 iptr p = 0; 7059 ++p; 7060 } 7061 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7063 struct s { int j; const int *ap[3]; } bx; 7064 struct s *b = &bx; b->j = 5; 7065 } 7066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7067 const int foo = 10; 7068 if (!foo) return 0; 7069 } 7070 return !cs[0] && !zero.x; 7071#endif 7072 7073 ; 7074 return 0; 7075} 7076_ACEOF 7077if ac_fn_c_try_compile "$LINENO"; then : 7078 ac_cv_c_const=yes 7079else 7080 ac_cv_c_const=no 7081fi 7082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7083fi 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7085$as_echo "$ac_cv_c_const" >&6; } 7086if test $ac_cv_c_const = no; then 7087 7088$as_echo "#define const /**/" >>confdefs.h 7089 7090fi 7091 7092ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7093if test "x$ac_cv_type_pid_t" = xyes; then : 7094 7095else 7096 7097cat >>confdefs.h <<_ACEOF 7098#define pid_t int 7099_ACEOF 7100 7101fi 7102 7103ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7104if test "x$ac_cv_type_size_t" = xyes; then : 7105 7106else 7107 7108cat >>confdefs.h <<_ACEOF 7109#define size_t unsigned int 7110_ACEOF 7111 7112fi 7113 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7115$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7116if ${ac_cv_header_time+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121#include <sys/types.h> 7122#include <sys/time.h> 7123#include <time.h> 7124 7125int 7126main () 7127{ 7128if ((struct tm *) 0) 7129return 0; 7130 ; 7131 return 0; 7132} 7133_ACEOF 7134if ac_fn_c_try_compile "$LINENO"; then : 7135 ac_cv_header_time=yes 7136else 7137 ac_cv_header_time=no 7138fi 7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7140fi 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7142$as_echo "$ac_cv_header_time" >&6; } 7143if test $ac_cv_header_time = yes; then 7144 7145$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7146 7147fi 7148 7149# The cast to long int works around a bug in the HP C Compiler 7150# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7151# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7152# This bug is HP SR number 8606223364. 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 7154$as_echo_n "checking size of void*... " >&6; } 7155if ${ac_cv_sizeof_voidp+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 7159 7160else 7161 if test "$ac_cv_type_voidp" = yes; then 7162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7164as_fn_error 77 "cannot compute sizeof (void*) 7165See \`config.log' for more details" "$LINENO" 5; } 7166 else 7167 ac_cv_sizeof_voidp=0 7168 fi 7169fi 7170 7171fi 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 7173$as_echo "$ac_cv_sizeof_voidp" >&6; } 7174 7175 7176 7177cat >>confdefs.h <<_ACEOF 7178#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 7179_ACEOF 7180 7181 7182# The cast to long int works around a bug in the HP C Compiler 7183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7185# This bug is HP SR number 8606223364. 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 7187$as_echo_n "checking size of size_t... " >&6; } 7188if ${ac_cv_sizeof_size_t+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 7192 7193else 7194 if test "$ac_cv_type_size_t" = yes; then 7195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7197as_fn_error 77 "cannot compute sizeof (size_t) 7198See \`config.log' for more details" "$LINENO" 5; } 7199 else 7200 ac_cv_sizeof_size_t=0 7201 fi 7202fi 7203 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 7206$as_echo "$ac_cv_sizeof_size_t" >&6; } 7207 7208 7209 7210cat >>confdefs.h <<_ACEOF 7211#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 7212_ACEOF 7213 7214 7215ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 7216if test "x$ac_cv_type_uint32_t" = xyes; then : 7217 7218cat >>confdefs.h <<_ACEOF 7219#define HAVE_UINT32_T 1 7220_ACEOF 7221 7222 7223fi 7224ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 7225if test "x$ac_cv_type_uint64_t" = xyes; then : 7226 7227cat >>confdefs.h <<_ACEOF 7228#define HAVE_UINT64_T 1 7229_ACEOF 7230 7231 7232fi 7233 7234# The cast to long int works around a bug in the HP C Compiler 7235# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7236# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7237# This bug is HP SR number 8606223364. 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 7239$as_echo_n "checking size of unsigned int... " >&6; } 7240if ${ac_cv_sizeof_unsigned_int+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 7244 7245else 7246 if test "$ac_cv_type_unsigned_int" = yes; then 7247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7249as_fn_error 77 "cannot compute sizeof (unsigned int) 7250See \`config.log' for more details" "$LINENO" 5; } 7251 else 7252 ac_cv_sizeof_unsigned_int=0 7253 fi 7254fi 7255 7256fi 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 7258$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 7259 7260 7261 7262cat >>confdefs.h <<_ACEOF 7263#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 7264_ACEOF 7265 7266 7267# The cast to long int works around a bug in the HP C Compiler 7268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7270# This bug is HP SR number 8606223364. 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 7272$as_echo_n "checking size of unsigned long... " >&6; } 7273if ${ac_cv_sizeof_unsigned_long+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 7277 7278else 7279 if test "$ac_cv_type_unsigned_long" = yes; then 7280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7282as_fn_error 77 "cannot compute sizeof (unsigned long) 7283See \`config.log' for more details" "$LINENO" 5; } 7284 else 7285 ac_cv_sizeof_unsigned_long=0 7286 fi 7287fi 7288 7289fi 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 7291$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 7292 7293 7294 7295cat >>confdefs.h <<_ACEOF 7296#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 7297_ACEOF 7298 7299 7300# The cast to long int works around a bug in the HP C Compiler 7301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7303# This bug is HP SR number 8606223364. 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 7305$as_echo_n "checking size of unsigned long long... " >&6; } 7306if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 7310 7311else 7312 if test "$ac_cv_type_unsigned_long_long" = yes; then 7313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7315as_fn_error 77 "cannot compute sizeof (unsigned long long) 7316See \`config.log' for more details" "$LINENO" 5; } 7317 else 7318 ac_cv_sizeof_unsigned_long_long=0 7319 fi 7320fi 7321 7322fi 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 7324$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 7325 7326 7327 7328cat >>confdefs.h <<_ACEOF 7329#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 7330_ACEOF 7331 7332 7333 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage specifier" >&5 7335$as_echo_n "checking for thread local storage specifier... " >&6; } 7336 if ${ac_cv_tls+:} false; then : 7337 $as_echo_n "(cached) " >&6 7338else 7339 7340 ax_tls_keywords="__thread __declspec(thread) none" 7341 for ax_tls_keyword in $ax_tls_keywords; do 7342 case $ax_tls_keyword in 7343 none) ac_cv_tls=none ; break ;; 7344 *) 7345 # MPICH modification: This was an AC_TRY_COMPILE before, but 7346 # Darwin with non-standard compilers will accept __thread at 7347 # compile time but fail to link due to an undefined 7348 # "__emutls_get_address" symbol unless -lgcc_eh is added to the 7349 # link line. 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352$ax_tls_keyword int bar = 5; 7353int 7354main () 7355{ 7356++bar; 7357 ; 7358 return 0; 7359} 7360_ACEOF 7361if ac_fn_c_try_link "$LINENO"; then : 7362 ac_cv_tls=$ax_tls_keyword ; break 7363else 7364 ac_cv_tls=none 7365fi 7366rm -f core conftest.err conftest.$ac_objext \ 7367 conftest$ac_exeext conftest.$ac_ext 7368 esac 7369 done 7370 7371fi 7372 7373 7374 if test "$ac_cv_tls" != "none"; then 7375 # MPICH modification: this was "TLS" before instead of 7376 # "TLS_SPECIFIER", but TLS had a reasonably high chance of conflicting 7377 # with a system library. 7378 7379cat >>confdefs.h <<_ACEOF 7380#define TLS_SPECIFIER $ac_cv_tls 7381_ACEOF 7382 7383 else 7384 7385cat >>confdefs.h <<_ACEOF 7386#define TLS_SPECIFIER /**/ 7387_ACEOF 7388 7389 fi 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 7391$as_echo "$ac_cv_tls" >&6; } 7392 7393 7394# Checks for library functions. 7395if test $ac_cv_c_compiler_gnu = yes; then 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 7397$as_echo_n "checking whether $CC needs -traditional... " >&6; } 7398if ${ac_cv_prog_gcc_traditional+:} false; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 ac_pattern="Autoconf.*'x'" 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404#include <sgtty.h> 7405Autoconf TIOCGETP 7406_ACEOF 7407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7408 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7409 ac_cv_prog_gcc_traditional=yes 7410else 7411 ac_cv_prog_gcc_traditional=no 7412fi 7413rm -f conftest* 7414 7415 7416 if test $ac_cv_prog_gcc_traditional = no; then 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419#include <termio.h> 7420Autoconf TCGETA 7421_ACEOF 7422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7423 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7424 ac_cv_prog_gcc_traditional=yes 7425fi 7426rm -f conftest* 7427 7428 fi 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 7431$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 7432 if test $ac_cv_prog_gcc_traditional = yes; then 7433 CC="$CC -traditional" 7434 fi 7435fi 7436 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 7438$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 7439if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 rm -f conftest.sym conftest.file 7443echo >conftest.file 7444if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 7445 if test "$cross_compiling" = yes; then : 7446 ac_cv_func_lstat_dereferences_slashed_symlink=no 7447else 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450$ac_includes_default 7451int 7452main () 7453{ 7454struct stat sbuf; 7455 /* Linux will dereference the symlink and fail, as required by POSIX. 7456 That is better in the sense that it means we will not 7457 have to compile and use the lstat wrapper. */ 7458 return lstat ("conftest.sym/", &sbuf) == 0; 7459 ; 7460 return 0; 7461} 7462_ACEOF 7463if ac_fn_c_try_run "$LINENO"; then : 7464 ac_cv_func_lstat_dereferences_slashed_symlink=yes 7465else 7466 ac_cv_func_lstat_dereferences_slashed_symlink=no 7467fi 7468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7469 conftest.$ac_objext conftest.beam conftest.$ac_ext 7470fi 7471 7472else 7473 # If the `ln -s' command failed, then we probably don't even 7474 # have an lstat function. 7475 ac_cv_func_lstat_dereferences_slashed_symlink=no 7476fi 7477rm -f conftest.sym conftest.file 7478 7479fi 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 7481$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 7482 7483test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 7484 7485cat >>confdefs.h <<_ACEOF 7486#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 7487_ACEOF 7488 7489 7490if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 7491 case " $LIBOBJS " in 7492 *" lstat.$ac_objext "* ) ;; 7493 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 7494 ;; 7495esac 7496 7497fi 7498 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 7500$as_echo_n "checking whether stat accepts an empty string... " >&6; } 7501if ${ac_cv_func_stat_empty_string_bug+:} false; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 if test "$cross_compiling" = yes; then : 7505 ac_cv_func_stat_empty_string_bug=yes 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509$ac_includes_default 7510int 7511main () 7512{ 7513struct stat sbuf; 7514 return stat ("", &sbuf) == 0; 7515 ; 7516 return 0; 7517} 7518_ACEOF 7519if ac_fn_c_try_run "$LINENO"; then : 7520 ac_cv_func_stat_empty_string_bug=no 7521else 7522 ac_cv_func_stat_empty_string_bug=yes 7523fi 7524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7525 conftest.$ac_objext conftest.beam conftest.$ac_ext 7526fi 7527 7528fi 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 7530$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 7531if test $ac_cv_func_stat_empty_string_bug = yes; then 7532 case " $LIBOBJS " in 7533 *" stat.$ac_objext "* ) ;; 7534 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 7535 ;; 7536esac 7537 7538 7539cat >>confdefs.h <<_ACEOF 7540#define HAVE_STAT_EMPTY_STRING_BUG 1 7541_ACEOF 7542 7543fi 7544 7545for ac_func in gettimeofday nanosleep sysconf getpid \ 7546strndup tcgetpgrp scandir alphasort \ 7547sigaction readdir closedir strchr strtod \ 7548perror strcasestr sbrk getopt_long uname ioctl strsignal 7549do : 7550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7551ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7552if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7553 cat >>confdefs.h <<_ACEOF 7554#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7555_ACEOF 7556 7557fi 7558done 7559 7560 7561 7562 7563 7564blue_gene=no 7565vector_type="" 7566 7567ac_enable_vectors=yes 7568# Check whether --enable-vectors was given. 7569if test "${enable_vectors+set}" = set; then : 7570 enableval=$enable_vectors; ac_enable_vectors=${enableval} 7571fi 7572 7573 7574if test x"${ac_enable_vectors}" = x"no"; then 7575 vector=disabled 7576else 7577 vector=yes 7578fi 7579 7580case "${host}" in 7581########################################## 7582x86_64*|*apple-darwin*) #workaround for a bug in autoconf/OS X 7583oct_arch=x86_64 7584;; 7585########################################## 7586i?86*) 7587oct_arch=x86 7588;; 7589########################################## 7590ia64*) 7591oct_arch=ia64 7592# Itanium 7593;; 7594########################################## 7595sparc*) 7596oct_arch=sparc 7597;; 7598########################################## 7599alphaev*) 7600oct_arch=alpha 7601;; 7602########################################## 7603mips*) 7604oct_arch=mips 7605;; 7606########################################## 7607powerpc*) 7608oct_arch=powerpc 7609;; 7610########################################## 7611*) 7612oct_arch=unknown 7613;; 7614esac 7615 7616if test x"${vector}" != x"disabled"; then 7617case "${oct_arch}" in 7618########################################## 7619x86_64) 7620 7621#SSE2 7622# Check whether --enable-sse2 was given. 7623if test "${enable_sse2+set}" = set; then : 7624 enableval=$enable_sse2; ac_enable_sse2=${enableval} 7625fi 7626 7627if test "x$vector" = "xno" ; then 7628 ac_enable_sse2=no 7629fi 7630if test "x$ac_enable_sse2" = "x" ; then 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts the __m128d type" >&5 7632$as_echo_n "checking whether the compiler accepts the __m128d type... " >&6; } 7633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635 7636#include <emmintrin.h> 7637 7638int 7639main () 7640{ 7641 7642__m128d a __attribute__((aligned(16))); 7643 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648if ac_fn_c_try_link "$LINENO"; then : 7649 acx_m128d=yes 7650else 7651 acx_m128d=no 7652fi 7653rm -f core conftest.err conftest.$ac_objext \ 7654 conftest$ac_exeext conftest.$ac_ext 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_m128d" >&5 7656$as_echo "$acx_m128d" >&6; } 7657 if test "x$acx_m128d" = "xyes" ; then 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSE2 instructions can be used" >&5 7659$as_echo_n "checking whether SSE2 instructions can be used... " >&6; } 7660acx_save_CFLAGS="$CFLAGS" 7661CFLAGS="$CFLAGS" 7662if test "$cross_compiling" = yes; then : 7663 acx_m128d=yes;echo -n "cross-compiling; assuming... " 7664else 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667 7668#include <emmintrin.h> 7669#include <stdio.h> 7670 7671int 7672main () 7673{ 7674 7675 7676__m128d a __attribute__((aligned(16))); 7677__m128d b __attribute__((aligned(16))); 7678__m128d c __attribute__((aligned(16))); 7679double d[4]; 7680 7681a = _mm_add_pd(b, c); 7682_mm_storeu_pd(d, a); 7683printf("", *d); 7684 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_run "$LINENO"; then : 7691 acx_m128d=yes 7692else 7693 acx_m128d=no 7694fi 7695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7696 conftest.$ac_objext conftest.beam conftest.$ac_ext 7697fi 7698 7699# assume yes (rather than no as for FMA4 and AVX) since SSE2 is very common, especially when the compiler has m128d 7700CFLAGS="$acx_save_CFLAGS" 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_m128d" >&5 7702$as_echo "$acx_m128d" >&6; } 7703 fi 7704elif test "x$ac_enable_sse2" = "xyes" ; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: SSE2 instruction support enabled" >&5 7706$as_echo "$as_me: SSE2 instruction support enabled" >&6;} 7707 acx_m128d=yes 7708else # no 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: SSE2 instruction support disabled" >&5 7710$as_echo "$as_me: SSE2 instruction support disabled" >&6;} 7711 acx_m128d=no 7712fi 7713if test "x$acx_m128d" = "xyes" ; then 7714 7715$as_echo "#define HAVE_M128D 1" >>confdefs.h 7716 7717 vector=$acx_m128d 7718 vector_type="(sse2)" 7719fi 7720 7721#FMA3 7722# Check whether --enable-fma3 was given. 7723if test "${enable_fma3+set}" = set; then : 7724 enableval=$enable_fma3; ac_enable_fma3=${enableval} 7725fi 7726 7727if test "x$vector" = "xno" ; then 7728 ac_enable_fma3=no 7729fi 7730if test "x$ac_enable_fma3" = "x" ; then 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FMA3 instructions can be used" >&5 7732$as_echo_n "checking whether FMA3 instructions can be used... " >&6; } 7733acx_save_CFLAGS="$CFLAGS" 7734CFLAGS="$CFLAGS" 7735if test "$cross_compiling" = yes; then : 7736 acx_fma3=no;echo -n "cross-compiling; assuming... " 7737else 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740 7741#include <x86intrin.h> 7742#include <stdio.h> 7743 7744int 7745main () 7746{ 7747 7748 7749__m256d a __attribute__((aligned(32))); 7750__m256d b __attribute__((aligned(32))); 7751__m256d c __attribute__((aligned(32))); 7752__m256d d __attribute__((aligned(32))); 7753double e[4]; 7754d = (__m256d) _mm256_fmadd_pd(a, b, c); 7755_mm256_storeu_pd(e, d); 7756printf("", *e); 7757 7758 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763if ac_fn_c_try_run "$LINENO"; then : 7764 acx_fma3=yes 7765else 7766 acx_fma3=no 7767fi 7768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7769 conftest.$ac_objext conftest.beam conftest.$ac_ext 7770fi 7771 7772CFLAGS="$acx_save_CFLAGS" 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fma3" >&5 7774$as_echo "$acx_fma3" >&6; } 7775elif test "x$ac_enable_fma3" = "xyes" ; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: FMA3 instruction support enabled" >&5 7777$as_echo "$as_me: FMA3 instruction support enabled" >&6;} 7778 acx_fma3=yes 7779else # no 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: FMA3 instruction support disabled" >&5 7781$as_echo "$as_me: FMA3 instruction support disabled" >&6;} 7782 acx_fma3=no 7783fi 7784if test "x$acx_fma3" = "xyes" ; then 7785 7786$as_echo "#define HAVE_FMA3 1" >>confdefs.h 7787 7788fi 7789 7790#FMA4 7791# Check whether --enable-fma4 was given. 7792if test "${enable_fma4+set}" = set; then : 7793 enableval=$enable_fma4; ac_enable_fma4=${enableval} 7794fi 7795 7796if test "x$vector" = "xno" ; then 7797 ac_enable_fma4=no 7798fi 7799if test "x$ac_enable_fma4" = "x" ; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FMA4 instructions can be used" >&5 7801$as_echo_n "checking whether FMA4 instructions can be used... " >&6; } 7802acx_save_CFLAGS="$CFLAGS" 7803CFLAGS="$CFLAGS" 7804if test "$cross_compiling" = yes; then : 7805 acx_fma4=no;echo -n "cross-compiling; assuming... " 7806else 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809 7810#include <x86intrin.h> 7811 7812int 7813main () 7814{ 7815 7816__m128d a __attribute__((aligned(16))); 7817__m128d b __attribute__((aligned(16))); 7818__m128d c __attribute__((aligned(16))); 7819__m128d d __attribute__((aligned(16))); 7820d = (__m128d) _mm_macc_pd(a, b, c); 7821 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826if ac_fn_c_try_run "$LINENO"; then : 7827 acx_fma4=yes 7828else 7829 acx_fma4=no 7830fi 7831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7832 conftest.$ac_objext conftest.beam conftest.$ac_ext 7833fi 7834 7835CFLAGS="$acx_save_CFLAGS" 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fma4" >&5 7837$as_echo "$acx_fma4" >&6; } 7838elif test "x$ac_enable_fma4" = "xyes" ; then 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: FMA4 instruction support enabled" >&5 7840$as_echo "$as_me: FMA4 instruction support enabled" >&6;} 7841 acx_fma4=yes 7842else # no 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: FMA4 instruction support disabled" >&5 7844$as_echo "$as_me: FMA4 instruction support disabled" >&6;} 7845 acx_fma4=no 7846fi 7847if test "x$acx_fma4" = "xyes" ; then 7848 7849$as_echo "#define HAVE_FMA4 1" >>confdefs.h 7850 7851fi 7852 7853#AVX 7854# Check whether --enable-avx was given. 7855if test "${enable_avx+set}" = set; then : 7856 enableval=$enable_avx; ac_enable_avx=${enableval} 7857fi 7858 7859if test "x$vector" = "xno" ; then 7860 ac_enable_avx=no 7861fi 7862if test "x$ac_enable_avx" = "x" ; then 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts the __m256d type" >&5 7864$as_echo_n "checking whether the compiler accepts the __m256d type... " >&6; } 7865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867 7868#include <immintrin.h> 7869 7870int 7871main () 7872{ 7873 7874__m256d a __attribute__((aligned(32))); 7875 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880if ac_fn_c_try_link "$LINENO"; then : 7881 acx_m256d=yes 7882else 7883 acx_m256d=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext \ 7886 conftest$ac_exeext conftest.$ac_ext 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_m256d" >&5 7888$as_echo "$acx_m256d" >&6; } 7889 if test "x$acx_m256d" = "xyes" ; then 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AVX instructions can be used" >&5 7891$as_echo_n "checking whether AVX instructions can be used... " >&6; } 7892acx_save_CFLAGS="$CFLAGS" 7893CFLAGS="$CFLAGS" 7894if test "$cross_compiling" = yes; then : 7895 acx_m256d=no;echo -n "cross-compiling; assuming... " 7896else 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899 7900#include <immintrin.h> 7901#include <stdio.h> 7902 7903int 7904main () 7905{ 7906 7907 7908__m256d a __attribute__((aligned(32))); 7909__m256d b __attribute__((aligned(32))); 7910__m256d c __attribute__((aligned(32))); 7911double d[4]; 7912 7913a = _mm256_add_pd(b, c); 7914_mm256_storeu_pd(d, a); 7915printf("", *d); 7916 7917 7918 ; 7919 return 0; 7920} 7921_ACEOF 7922if ac_fn_c_try_run "$LINENO"; then : 7923 acx_m256d=yes 7924else 7925 acx_m256d=no 7926fi 7927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7928 conftest.$ac_objext conftest.beam conftest.$ac_ext 7929fi 7930 7931CFLAGS="$acx_save_CFLAGS" 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_m256d" >&5 7933$as_echo "$acx_m256d" >&6; } 7934 fi 7935elif test "x$ac_enable_avx" = "xyes" ; then 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: AVX instruction support enabled" >&5 7937$as_echo "$as_me: AVX instruction support enabled" >&6;} 7938 acx_m256d=yes 7939else # no 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: AVX instruction support disabled" >&5 7941$as_echo "$as_me: AVX instruction support disabled" >&6;} 7942 acx_m256d=no 7943fi 7944if test "x$acx_m256d" = "xyes" ; then 7945 7946$as_echo "#define HAVE_M256D 1" >>confdefs.h 7947 7948 vector=$acx_m256d 7949 vector_type="(avx)" 7950fi 7951 7952#AVX512 7953# Check whether --enable-avx512 was given. 7954if test "${enable_avx512+set}" = set; then : 7955 enableval=$enable_avx512; ac_enable_avx512=${enableval} 7956fi 7957 7958if test "x$vector" = "xno" ; then 7959 ac_enable_avx512=no 7960fi 7961if test "x$ac_enable_avx512" = "x" ; then 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AVX512 instructions can be used" >&5 7963$as_echo_n "checking whether AVX512 instructions can be used... " >&6; } 7964acx_save_CFLAGS="$CFLAGS" 7965CFLAGS="$CFLAGS" 7966if test "$cross_compiling" = yes; then : 7967 acx_avx512=no;echo -n "cross-compiling; assuming... " 7968else 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971 7972#include <stdio.h> 7973#include <immintrin.h> 7974 7975int 7976main () 7977{ 7978 7979 7980__m512d a __attribute__((aligned(64))); 7981__m512d b __attribute__((aligned(64))); 7982__m512d c __attribute__((aligned(64))); 7983__m512d d __attribute__((aligned(64))); 7984double e[8]; 7985d = (__m512d) _mm512_fmadd_pd(a, b, c); 7986_mm512_storeu_pd(e, d); 7987printf("", *e); 7988 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_run "$LINENO"; then : 7995 acx_avx512=yes 7996else 7997 acx_avx512=no 7998fi 7999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8000 conftest.$ac_objext conftest.beam conftest.$ac_ext 8001fi 8002 8003CFLAGS="$acx_save_CFLAGS" 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_avx512" >&5 8005$as_echo "$acx_avx512" >&6; } 8006elif test "x$ac_enable_avx512" = "xyes" ; then 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: AVX instruction support enabled" >&5 8008$as_echo "$as_me: AVX instruction support enabled" >&6;} 8009 acx_avx512=yes 8010else # no 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: AVX instruction support disabled" >&5 8012$as_echo "$as_me: AVX instruction support disabled" >&6;} 8013 acx_avx512=no 8014fi 8015if test "x$acx_avx512" = "xyes" ; then 8016 8017$as_echo "#define HAVE_M512D 1" >>confdefs.h 8018 8019 vector=$acx_avx512 8020 vector_type="(avx512)" 8021fi 8022;; 8023########################################## 8024x86) 8025# Check whether --enable-sse2 was given. 8026if test "${enable_sse2+set}" = set; then : 8027 enableval=$enable_sse2; ac_enable_sse2=${enableval} 8028fi 8029 8030if test "x$vector" = "xno" ; then 8031 ac_enable_sse2=no 8032fi 8033if test "x$ac_enable_sse2" = "x" ; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts the __m128d type" >&5 8035$as_echo_n "checking whether the compiler accepts the __m128d type... " >&6; } 8036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038 8039#include <emmintrin.h> 8040 8041int 8042main () 8043{ 8044 8045__m128d a __attribute__((aligned(16))); 8046 8047 ; 8048 return 0; 8049} 8050_ACEOF 8051if ac_fn_c_try_link "$LINENO"; then : 8052 acx_m128d=yes 8053else 8054 acx_m128d=no 8055fi 8056rm -f core conftest.err conftest.$ac_objext \ 8057 conftest$ac_exeext conftest.$ac_ext 8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_m128d" >&5 8059$as_echo "$acx_m128d" >&6; } 8060 if test "x$acx_m128d" = "xyes" ; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSE2 instructions can be used" >&5 8062$as_echo_n "checking whether SSE2 instructions can be used... " >&6; } 8063acx_save_CFLAGS="$CFLAGS" 8064CFLAGS="$CFLAGS" 8065if test "$cross_compiling" = yes; then : 8066 acx_m128d=yes;echo -n "cross-compiling; assuming... " 8067else 8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070 8071#include <emmintrin.h> 8072#include <stdio.h> 8073 8074int 8075main () 8076{ 8077 8078 8079__m128d a __attribute__((aligned(16))); 8080__m128d b __attribute__((aligned(16))); 8081__m128d c __attribute__((aligned(16))); 8082double d[4]; 8083 8084a = _mm_add_pd(b, c); 8085_mm_storeu_pd(d, a); 8086printf("", *d); 8087 8088 8089 ; 8090 return 0; 8091} 8092_ACEOF 8093if ac_fn_c_try_run "$LINENO"; then : 8094 acx_m128d=yes 8095else 8096 acx_m128d=no 8097fi 8098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8099 conftest.$ac_objext conftest.beam conftest.$ac_ext 8100fi 8101 8102# assume yes (rather than no as for FMA4 and AVX) since SSE2 is very common, especially when the compiler has m128d 8103CFLAGS="$acx_save_CFLAGS" 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_m128d" >&5 8105$as_echo "$acx_m128d" >&6; } 8106 fi 8107elif test "x$ac_enable_sse2" = "xyes" ; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: SSE2 instruction support enabled" >&5 8109$as_echo "$as_me: SSE2 instruction support enabled" >&6;} 8110 acx_m128d=yes 8111else # no 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: SSE2 instruction support disabled" >&5 8113$as_echo "$as_me: SSE2 instruction support disabled" >&6;} 8114 acx_m128d=no 8115fi 8116if test "x$acx_m128d" = "xyes" ; then 8117 8118$as_echo "#define HAVE_M128D 1" >>confdefs.h 8119 8120 vector=$acx_m128d 8121 vector_type="(sse2)" 8122fi 8123;; 8124########################################## 8125powerpc) 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blue Gene intrinsics" >&5 8127$as_echo_n "checking for Blue Gene intrinsics... " >&6; } 8128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130 8131 8132int 8133main () 8134{ 8135 8136 double aa, bb; 8137 double _Complex cc; 8138 8139 cc = __cmplx(aa, bb); 8140 cc = __fpneg(cc); 8141 8142 ; 8143 return 0; 8144} 8145_ACEOF 8146if ac_fn_c_try_link "$LINENO"; then : 8147 8148$as_echo "#define HAVE_BLUE_GENE 1" >>confdefs.h 8149 acx_blue_gene=yes 8150else 8151 acx_blue_gene=no 8152fi 8153rm -f core conftest.err conftest.$ac_objext \ 8154 conftest$ac_exeext conftest.$ac_ext 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blue_gene" >&5 8156$as_echo "$acx_blue_gene" >&6; } 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blue Gene Q intrinsics" >&5 8158$as_echo_n "checking for Blue Gene Q intrinsics... " >&6; } 8159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8160/* end confdefs.h. */ 8161 8162 8163int 8164main () 8165{ 8166 8167 vector4double aa, bb, cc; 8168 8169 cc = vec_madd(aa, bb, cc); 8170 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO"; then : 8176 8177$as_echo "#define HAVE_BLUE_GENE_Q 1" >>confdefs.h 8178 acx_blue_gene_q=yes 8179else 8180 acx_blue_gene_q=no 8181fi 8182rm -f core conftest.err conftest.$ac_objext \ 8183 conftest$ac_exeext conftest.$ac_ext 8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blue_gene_q" >&5 8185$as_echo "$acx_blue_gene_q" >&6; } 8186if test x$acx_blue_gene_q = x"yes"; then 8187 blue_gene=$acx_blue_gene_q 8188 vector=$acx_blue_gene_q 8189 vector_type="(blue gene/q)" 8190else 8191 blue_gene=$acx_blue_gene 8192 vector=$acx_blue_gene 8193 vector_type="(blue gene/p)" 8194fi 8195;; 8196esac 8197fi 8198 8199 8200cat >>confdefs.h <<_ACEOF 8201#define OCT_ARCH $oct_arch 8202_ACEOF 8203 8204 8205if test "x$vector" = "xyes" ; then 8206 8207$as_echo "#define HAVE_VEC 1" >>confdefs.h 8208 8209fi 8210 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: Architecture-specific code: 8212*************************** 8213This is a $oct_arch processor: 8214vectorial code: $vector $vector_type 8215***************************" >&5 8216$as_echo "$as_me: Architecture-specific code: 8217*************************** 8218This is a $oct_arch processor: 8219vectorial code: $vector $vector_type 8220***************************" >&6;} 8221 8222 8223 8224# Check whether --enable-debug was given. 8225if test "${enable_debug+set}" = set; then : 8226 enableval=$enable_debug; DEBUG=${enableval} 8227fi 8228 8229# Check whether --enable-openmp was given. 8230if test "${enable_openmp+set}" = set; then : 8231 enableval=$enable_openmp; 8232fi 8233 8234# Check whether --enable-opencl was given. 8235if test "${enable_opencl+set}" = set; then : 8236 enableval=$enable_opencl; 8237fi 8238 8239 8240if test -n "${enable_openmp}" -a x"${enable_openmp}" != x"no"; then 8241 HAVE_OPENMP=1 8242fi 8243 8244 8245 8246# Check whether --enable-nvtx was given. 8247if test "${enable_nvtx+set}" = set; then : 8248 enableval=$enable_nvtx; 8249fi 8250 8251if test x"${enable_nvtx}" == x"yes" ; then 8252 8253$as_echo "#define HAVE_NVTX 1" >>confdefs.h 8254 8255fi 8256 8257# Check whether --enable-cuda was given. 8258if test "${enable_cuda+set}" = set; then : 8259 enableval=$enable_cuda; 8260fi 8261 8262 8263if test x"${enable_cuda}" == x"yes" ; then 8264 8265$as_echo "#define HAVE_CUDA 1" >>confdefs.h 8266 8267 8268 8269 acx_cuda_ok=yes 8270 8271 acx_cuda_save_LIBS="$LIBS" 8272 acx_cuda_save_LDFLAGS="$LDFLAGS" 8273 acx_cuda_save_CFLAGS="$CFLAGS" 8274 8275 8276# Check whether --with-cuda-prefix was given. 8277if test "${with_cuda_prefix+set}" = set; then : 8278 withval=$with_cuda_prefix; 8279fi 8280 8281 8282 # Set CFLAGS_CUDA only if not set from environment 8283 if test x"$CFLAGS_CUDA" = x; then 8284 case $with_cuda_prefix in 8285 "") CFLAGS_CUDA="-I/usr/include" ;; 8286 *) CFLAGS_CUDA="-I$with_cuda_prefix/include" 8287 if test x"${enable_nvtx}" == x"yes" ; then 8288 CFLAGS_CUDA="-I$with_cuda_prefix/include/nvtx3 $CFLAGS_CUDA" 8289 fi 8290 ;; 8291 esac 8292 fi 8293 8294 CFLAGS="$CFLAGS_CUDA $acx_cuda_save_CFLAGS" 8295 8296 if test ! -z "$with_cuda_prefix"; then 8297 LDFLAGS="-L$with_cuda_prefix/lib64" 8298 else 8299 LDFLAGS="" 8300 fi 8301 8302 LIBS="-lcudart" 8303 8304 if test x"${enable_nvtx}" == x"yes" ; then 8305 LIBS="$LIBS -lnvToolsExt -ldl" 8306 fi 8307 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5 8309$as_echo_n "checking for cuInit in -lcuda... " >&6; } 8310if ${ac_cv_lib_cuda_cuInit+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 ac_check_lib_save_LIBS=$LIBS 8314LIBS="-lcuda $acx_cuda_save_LIBS $LIBS" 8315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317 8318/* Override any GCC internal prototype to avoid an error. 8319 Use char because int might match the return type of a GCC 8320 builtin and then its argument prototype would still apply. */ 8321#ifdef __cplusplus 8322extern "C" 8323#endif 8324char cuInit (); 8325int 8326main () 8327{ 8328return cuInit (); 8329 ; 8330 return 0; 8331} 8332_ACEOF 8333if ac_fn_c_try_link "$LINENO"; then : 8334 ac_cv_lib_cuda_cuInit=yes 8335else 8336 ac_cv_lib_cuda_cuInit=no 8337fi 8338rm -f core conftest.err conftest.$ac_objext \ 8339 conftest$ac_exeext conftest.$ac_ext 8340LIBS=$ac_check_lib_save_LIBS 8341fi 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5 8343$as_echo "$ac_cv_lib_cuda_cuInit" >&6; } 8344if test "x$ac_cv_lib_cuda_cuInit" = xyes; then : 8345 cat >>confdefs.h <<_ACEOF 8346#define HAVE_LIBCUDA 1 8347_ACEOF 8348 8349 LIBS="-lcuda $LIBS" 8350 8351else 8352 acx_cuda_ok=no 8353fi 8354 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvrtcCreateProgram in -lnvrtc" >&5 8356$as_echo_n "checking for nvrtcCreateProgram in -lnvrtc... " >&6; } 8357if ${ac_cv_lib_nvrtc_nvrtcCreateProgram+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 ac_check_lib_save_LIBS=$LIBS 8361LIBS="-lnvrtc $acx_cuda_save_LIBS $LIBS" 8362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364 8365/* Override any GCC internal prototype to avoid an error. 8366 Use char because int might match the return type of a GCC 8367 builtin and then its argument prototype would still apply. */ 8368#ifdef __cplusplus 8369extern "C" 8370#endif 8371char nvrtcCreateProgram (); 8372int 8373main () 8374{ 8375return nvrtcCreateProgram (); 8376 ; 8377 return 0; 8378} 8379_ACEOF 8380if ac_fn_c_try_link "$LINENO"; then : 8381 ac_cv_lib_nvrtc_nvrtcCreateProgram=yes 8382else 8383 ac_cv_lib_nvrtc_nvrtcCreateProgram=no 8384fi 8385rm -f core conftest.err conftest.$ac_objext \ 8386 conftest$ac_exeext conftest.$ac_ext 8387LIBS=$ac_check_lib_save_LIBS 8388fi 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvrtc_nvrtcCreateProgram" >&5 8390$as_echo "$ac_cv_lib_nvrtc_nvrtcCreateProgram" >&6; } 8391if test "x$ac_cv_lib_nvrtc_nvrtcCreateProgram" = xyes; then : 8392 cat >>confdefs.h <<_ACEOF 8393#define HAVE_LIBNVRTC 1 8394_ACEOF 8395 8396 LIBS="-lnvrtc $LIBS" 8397 8398else 8399 acx_cuda_ok=no 8400fi 8401 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cublasCreate_v2 in -lcublas" >&5 8403$as_echo_n "checking for cublasCreate_v2 in -lcublas... " >&6; } 8404if ${ac_cv_lib_cublas_cublasCreate_v2+:} false; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 ac_check_lib_save_LIBS=$LIBS 8408LIBS="-lcublas $acx_cuda_save_LIBS $LIBS" 8409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411 8412/* Override any GCC internal prototype to avoid an error. 8413 Use char because int might match the return type of a GCC 8414 builtin and then its argument prototype would still apply. */ 8415#ifdef __cplusplus 8416extern "C" 8417#endif 8418char cublasCreate_v2 (); 8419int 8420main () 8421{ 8422return cublasCreate_v2 (); 8423 ; 8424 return 0; 8425} 8426_ACEOF 8427if ac_fn_c_try_link "$LINENO"; then : 8428 ac_cv_lib_cublas_cublasCreate_v2=yes 8429else 8430 ac_cv_lib_cublas_cublasCreate_v2=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext \ 8433 conftest$ac_exeext conftest.$ac_ext 8434LIBS=$ac_check_lib_save_LIBS 8435fi 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cublas_cublasCreate_v2" >&5 8437$as_echo "$ac_cv_lib_cublas_cublasCreate_v2" >&6; } 8438if test "x$ac_cv_lib_cublas_cublasCreate_v2" = xyes; then : 8439 cat >>confdefs.h <<_ACEOF 8440#define HAVE_LIBCUBLAS 1 8441_ACEOF 8442 8443 LIBS="-lcublas $LIBS" 8444 8445else 8446 acx_cuda_ok=no 8447fi 8448 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cufftPlan3d in -lcufft" >&5 8450$as_echo_n "checking for cufftPlan3d in -lcufft... " >&6; } 8451if ${ac_cv_lib_cufft_cufftPlan3d+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 ac_check_lib_save_LIBS=$LIBS 8455LIBS="-lcufft $acx_cuda_save_LIBS $LIBS" 8456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457/* end confdefs.h. */ 8458 8459/* Override any GCC internal prototype to avoid an error. 8460 Use char because int might match the return type of a GCC 8461 builtin and then its argument prototype would still apply. */ 8462#ifdef __cplusplus 8463extern "C" 8464#endif 8465char cufftPlan3d (); 8466int 8467main () 8468{ 8469return cufftPlan3d (); 8470 ; 8471 return 0; 8472} 8473_ACEOF 8474if ac_fn_c_try_link "$LINENO"; then : 8475 ac_cv_lib_cufft_cufftPlan3d=yes 8476else 8477 ac_cv_lib_cufft_cufftPlan3d=no 8478fi 8479rm -f core conftest.err conftest.$ac_objext \ 8480 conftest$ac_exeext conftest.$ac_ext 8481LIBS=$ac_check_lib_save_LIBS 8482fi 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cufft_cufftPlan3d" >&5 8484$as_echo "$ac_cv_lib_cufft_cufftPlan3d" >&6; } 8485if test "x$ac_cv_lib_cufft_cufftPlan3d" = xyes; then : 8486 cat >>confdefs.h <<_ACEOF 8487#define HAVE_LIBCUFFT 1 8488_ACEOF 8489 8490 LIBS="-lcufft $LIBS" 8491 8492else 8493 acx_cuda_ok=no 8494fi 8495 8496 8497 LIBS_CUDA="$LDFLAGS $LIBS" 8498 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether we have all the required cuda libraries" >&5 8500$as_echo_n "checking for whether we have all the required cuda libraries... " >&6; } 8501 8502 if test x$acx_cuda_ok != xyes; then 8503 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8505$as_echo "no" >&6; } 8506 as_fn_error $? "Could not find the cuda library" "$LINENO" 5 8507 8508 else 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($CFLAGS_CUDA $LIBS_CUDA)" >&5 8510$as_echo "yes ($CFLAGS_CUDA $LIBS_CUDA)" >&6; } 8511 fi 8512 8513 # Check whether --enable-cuda was given. 8514if test "${enable_cuda+set}" = set; then : 8515 enableval=$enable_cuda; 8516fi 8517 8518 8519 if test x"${enable_cuda_mpi}" == x"yes" ; then 8520 8521$as_echo "#define HAVE_CUDA_MPI 1" >>confdefs.h 8522 8523 else 8524 if test x"$enable_mpi" == x"yes"; then 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA-aware MPI" >&5 8526$as_echo_n "checking for CUDA-aware MPI... " >&6; } 8527 8528 ac_ext=c 8529ac_cpp='$CPP $CPPFLAGS' 8530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8532ac_compiler_gnu=$ac_cv_c_compiler_gnu 8533 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536 8537 #include "mpi.h" 8538 #include "mpi-ext.h" 8539 #if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT) 8540 # error No CUDA support. 8541 #endif 8542 8543_ACEOF 8544if ac_fn_c_try_compile "$LINENO"; then : 8545 acx_cudampi="yes" 8546else 8547 acx_cudampi="no" 8548fi 8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8550 ac_ext=c 8551ac_cpp='$CPP $CPPFLAGS' 8552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8554ac_compiler_gnu=$ac_cv_c_compiler_gnu 8555 8556 8557 if test x"${acx_cudampi}" == x"yes" ; then 8558 8559$as_echo "#define HAVE_CUDA_MPI 1" >>confdefs.h 8560 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8562$as_echo "yes" >&6; } 8563 else 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8565$as_echo "no" >&6; } 8566 fi 8567 fi 8568 fi 8569 8570 8571 8572 8573 CFLAGS="$acx_cuda_save_CFLAGS" 8574 LDFLAGS="$acx_cuda_save_LDFLAGS" 8575 LIBS="$acx_cuda_save_LIBS" 8576 8577 8578fi 8579 8580if test x"${enable_opencl}" == x"yes" ; then 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8582 8583 Experimental OpenCL support enabled. 8584 " >&5 8585$as_echo "$as_me: WARNING: 8586 8587 Experimental OpenCL support enabled. 8588 " >&2;} 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8590$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8591if ${ac_cv_path_SED+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8595 for ac_i in 1 2 3 4 5 6 7; do 8596 ac_script="$ac_script$as_nl$ac_script" 8597 done 8598 echo "$ac_script" | sed 99q >conftest.sed 8599 $as_unset ac_script || ac_script= 8600 # Extract the first word of "sed gsed" to use in msg output 8601if test -z "$SED"; then 8602set dummy sed gsed; ac_prog_name=$2 8603if ${ac_cv_path_SED+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 ac_path_SED_found=false 8607# Loop through the user's path and test for each of PROGNAME-LIST 8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8609for as_dir in $PATH 8610do 8611 IFS=$as_save_IFS 8612 test -z "$as_dir" && as_dir=. 8613 for ac_prog in sed gsed; do 8614 for ac_exec_ext in '' $ac_executable_extensions; do 8615 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8616 as_fn_executable_p "$ac_path_SED" || continue 8617 # Check for GNU ac_path_SED and select it if it is found. 8618 # Check for GNU $ac_path_SED 8619case `"$ac_path_SED" --version 2>&1` in 8620*GNU*) 8621 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8622*) 8623 ac_count=0 8624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 8625 while : 8626 do 8627 cat "conftest.in" "conftest.in" >"conftest.tmp" 8628 mv "conftest.tmp" "conftest.in" 8629 cp "conftest.in" "conftest.nl" 8630 echo '' >> "conftest.nl" 8631 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8633 ac_count=`expr $ac_count + 1` 8634 if test $ac_count -gt ${ac_path_SED_max-0}; then 8635 # Best one so far, save it but keep looking for a better one 8636 ac_cv_path_SED="$ac_path_SED" 8637 ac_path_SED_max=$ac_count 8638 fi 8639 # 10*(2^10) chars as input seems more than enough 8640 test $ac_count -gt 10 && break 8641 done 8642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8643esac 8644 8645 8646 $ac_path_SED_found && break 3 8647 done 8648done 8649 8650 done 8651IFS=$as_save_IFS 8652 8653 8654fi 8655 8656SED="$ac_cv_path_SED" 8657if test -z "$SED"; then 8658 as_fn_error $? "no acceptable $ac_prog_name could be found in \$PATH" "$LINENO" 5 8659fi 8660 8661else 8662 ac_cv_path_SED=$SED 8663fi 8664 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8667$as_echo "$ac_cv_path_SED" >&6; } 8668 SED="$ac_cv_path_SED" 8669 rm -f conftest.sed 8670 8671 8672ac_ext=c 8673ac_cpp='$CPP $CPPFLAGS' 8674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8676ac_compiler_gnu=$ac_cv_c_compiler_gnu 8677 8678 8679ax_save_CPPFLAGS=$CPPFLAGS 8680CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 8681for ac_header in CL/cl.h OpenCL/cl.h 8682do : 8683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8684ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8686 cat >>confdefs.h <<_ACEOF 8687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8688_ACEOF 8689 8690fi 8691 8692done 8693 8694CPPFLAGS=$ax_save_CPPFLAGS 8695 8696for ac_header in windows.h 8697do : 8698 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 8699if test "x$ac_cv_header_windows_h" = xyes; then : 8700 cat >>confdefs.h <<_ACEOF 8701#define HAVE_WINDOWS_H 1 8702_ACEOF 8703 8704fi 8705 8706done 8707 8708 8709 8710 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 8712$as_echo_n "checking for OpenCL library... " >&6; } 8713if ${ax_cv_check_cl_libcl+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 ax_cv_check_cl_libcl=no 8717case $host_cpu in 8718 x86_64) ax_check_cl_libdir=lib64 ;; 8719 *) ax_check_cl_libdir=lib ;; 8720esac 8721ax_save_CPPFLAGS=$CPPFLAGS 8722CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 8723ax_save_LIBS=$LIBS 8724LIBS="" 8725ax_check_libs="-lOpenCL -lCL" 8726for ax_lib in $ax_check_libs; do 8727 if test X$ax_compiler_ms = Xyes; then : 8728 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 8729else 8730 ax_try_lib=$ax_lib 8731fi 8732 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 8733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735 8736# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 8737# include <windows.h> 8738# endif 8739# ifdef HAVE_CL_CL_H 8740# include <CL/cl.h> 8741# elif defined(HAVE_OPENCL_CL_H) 8742# include <OpenCL/cl.h> 8743# else 8744# error no cl.h 8745# endif 8746int 8747main () 8748{ 8749clFinish(0) 8750 ; 8751 return 0; 8752} 8753_ACEOF 8754if ac_fn_c_try_link "$LINENO"; then : 8755 ax_cv_check_cl_libcl=$ax_try_lib; break 8756else 8757 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" 8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8759/* end confdefs.h. */ 8760 8761# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 8762# include <windows.h> 8763# endif 8764# ifdef HAVE_CL_CL_H 8765# include <CL/cl.h> 8766# elif defined(HAVE_OPENCL_CL_H) 8767# include <OpenCL/cl.h> 8768# else 8769# error no cl.h 8770# endif 8771int 8772main () 8773{ 8774clFinish(0) 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779if ac_fn_c_try_link "$LINENO"; then : 8780 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 8781else 8782 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" 8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8784/* end confdefs.h. */ 8785 8786# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 8787# include <windows.h> 8788# endif 8789# ifdef HAVE_CL_CL_H 8790# include <CL/cl.h> 8791# elif defined(HAVE_OPENCL_CL_H) 8792# include <OpenCL/cl.h> 8793# else 8794# error no cl.h 8795# endif 8796int 8797main () 8798{ 8799clFinish(0) 8800 ; 8801 return 0; 8802} 8803_ACEOF 8804if ac_fn_c_try_link "$LINENO"; then : 8805 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 8806fi 8807rm -f core conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809fi 8810rm -f core conftest.err conftest.$ac_objext \ 8811 conftest$ac_exeext conftest.$ac_ext 8812fi 8813rm -f core conftest.err conftest.$ac_objext \ 8814 conftest$ac_exeext conftest.$ac_ext 8815done 8816 8817if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x != Xno; then : 8818 LIBS='-framework OpenCL' 8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820/* end confdefs.h. */ 8821 8822# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 8823# include <windows.h> 8824# endif 8825# ifdef HAVE_CL_CL_H 8826# include <CL/cl.h> 8827# elif defined(HAVE_OPENCL_CL_H) 8828# include <OpenCL/cl.h> 8829# else 8830# error no cl.h 8831# endif 8832int 8833main () 8834{ 8835clFinish(0) 8836 ; 8837 return 0; 8838} 8839_ACEOF 8840if ac_fn_c_try_link "$LINENO"; then : 8841 ax_cv_check_cl_libcl=$LIBS 8842fi 8843rm -f core conftest.err conftest.$ac_objext \ 8844 conftest$ac_exeext conftest.$ac_ext 8845fi 8846 8847LIBS=$ax_save_LIBS 8848CPPFLAGS=$ax_save_CPPFLAGS 8849fi 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 8851$as_echo "$ax_cv_check_cl_libcl" >&6; } 8852 8853if test "X$ax_cv_check_cl_libcl" = Xno; then : 8854 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 8855else 8856 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS" 8857fi 8858ac_ext=c 8859ac_cpp='$CPP $CPPFLAGS' 8860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8862ac_compiler_gnu=$ac_cv_c_compiler_gnu 8863 8864 8865 8866 8867 8868 if test "X$no_cl" == "Xyes"; then 8869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8871as_fn_error $? "Cannot find the OpenCL library. 8872See \`config.log' for more details" "$LINENO" 5; } 8873 fi 8874 8875$as_echo "#define HAVE_OPENCL 1" >>confdefs.h 8876 8877 8878acx_clblas_ok=no 8879 8880acx_clblas_save_LIBS="$LIBS" 8881acx_clblas_save_CFLAGS="$CFLAGS" 8882 8883 8884# Check whether --with-clblas-prefix was given. 8885if test "${with_clblas_prefix+set}" = set; then : 8886 withval=$with_clblas_prefix; 8887fi 8888 8889 8890# Set CFLAGS_CLBLAS only if not set from environment 8891if test x"$CFLAGS_CLBLAS" = x; then 8892 case $with_clblas_prefix in 8893 "") CFLAGS_CLBLAS="-I/usr/include" ;; 8894 *) CFLAGS_CLBLAS="-I$with_clblas_prefix/include" ;; 8895 esac 8896fi 8897 8898 8899# Check whether --with-clblas-include was given. 8900if test "${with_clblas_include+set}" = set; then : 8901 withval=$with_clblas_include; 8902fi 8903 8904case $with_clblas_include in 8905 "") ;; 8906 *) CFLAGS_CLBLAS="-I$with_clblas_include" ;; 8907esac 8908 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clblas" >&5 8910$as_echo_n "checking for clblas... " >&6; } 8911 8912CFLAGS="$CFLAGS_CLBLAS $CL_CFLAGS $acx_clblas_save_CFLAGS" 8913 8914if test ! -z "$LIBS_CLBLAS"; then 8915 LIBS="$LIBS_CLBLAS $acx_clblas_save_LIBS" 8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917/* end confdefs.h. */ 8918#include <clBLAS.h> 8919int 8920main () 8921{ 8922 8923 cl_uint cl_major, cl_minor, cl_patch; 8924 clblasGetVersion(&cl_major, &cl_minor, &cl_patch); 8925 ; 8926 return 0; 8927} 8928_ACEOF 8929if ac_fn_c_try_link "$LINENO"; then : 8930 acx_clblas_ok=yes 8931fi 8932rm -f core conftest.err conftest.$ac_objext \ 8933 conftest$ac_exeext conftest.$ac_ext 8934fi 8935 8936if test ! -z "$with_clblas_prefix"; then 8937 if test x"$acx_clblas_ok" = xno; then 8938 LIBS_CLBLAS="-L$with_clblas_prefix/lib64/ -lclBLAS" 8939 LIBS="$LIBS_CLBLAS $CL_LIBS $acx_clblas_save_LIBS" 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942#include <clBLAS.h> 8943int 8944main () 8945{ 8946 8947 cl_uint cl_major, cl_minor, cl_patch; 8948 clblasGetVersion(&cl_major, &cl_minor, &cl_patch); 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953if ac_fn_c_try_link "$LINENO"; then : 8954 acx_clblas_ok=yes 8955fi 8956rm -f core conftest.err conftest.$ac_objext \ 8957 conftest$ac_exeext conftest.$ac_ext 8958 fi 8959 8960 if test x"$acx_clblas_ok" = xno; then 8961 LIBS_CLBLAS="-L$with_clblas_prefix/lib/ -lclBLAS" 8962 LIBS="$LIBS_CLBLAS $CL_LIBS $acx_clblas_save_LIBS" 8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965#include <clBLAS.h> 8966int 8967main () 8968{ 8969 8970 cl_uint cl_major, cl_minor, cl_patch; 8971 clblasGetVersion(&cl_major, &cl_minor, &cl_patch); 8972 ; 8973 return 0; 8974} 8975_ACEOF 8976if ac_fn_c_try_link "$LINENO"; then : 8977 acx_clblas_ok=yes 8978fi 8979rm -f core conftest.err conftest.$ac_objext \ 8980 conftest$ac_exeext conftest.$ac_ext 8981 fi 8982 8983fi 8984 8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_clblas_ok ($CFLAGS_CLBLAS $LIBS_CLBLAS)" >&5 8986$as_echo "$acx_clblas_ok ($CFLAGS_CLBLAS $LIBS_CLBLAS)" >&6; } 8987 8988if test x"$acx_clblas_ok" = xyes; then 8989 8990$as_echo "#define HAVE_CLBLAS 1" >>confdefs.h 8991 8992else 8993 as_fn_error $? "Could not find the required clblas library." "$LINENO" 5 8994fi 8995 8996 8997 8998CFLAGS="$acx_clblas_save_CFLAGS" 8999LIBS="$acx_clblas_save_LIBS" 9000 9001 9002acx_clfft_ok=no 9003 9004acx_clfft_save_LIBS="$LIBS" 9005acx_clfft_save_CFLAGS="$CFLAGS" 9006 9007 9008# Check whether --with-clfft-prefix was given. 9009if test "${with_clfft_prefix+set}" = set; then : 9010 withval=$with_clfft_prefix; 9011fi 9012 9013 9014# Set CFLAGS_CLFFT only if not set from environment 9015if test x"$CFLAGS_CLFFT" = x; then 9016 case $with_clfft_prefix in 9017 "") CFLAGS_CLFFT="-I/usr/include" ;; 9018 *) CFLAGS_CLFFT="-I$with_clfft_prefix/include" ;; 9019 esac 9020fi 9021 9022 9023# Check whether --with-clfft-include was given. 9024if test "${with_clfft_include+set}" = set; then : 9025 withval=$with_clfft_include; 9026fi 9027 9028case $with_clfft_include in 9029 "") ;; 9030 *) CFLAGS_CLFFT="-I$with_clfft_include" ;; 9031esac 9032 9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clfft" >&5 9034$as_echo_n "checking for clfft... " >&6; } 9035 9036CFLAGS="$CFLAGS_CLFFT $CL_CFLAGS $acx_clfft_save_CFLAGS" 9037 9038if test ! -z "$LIBS_CLFFT"; then 9039 LIBS="$LIBS_CLFFT $CL_LIBS $acx_clfft_save_LIBS" 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042#include <clFFT.h> 9043int 9044main () 9045{ 9046 9047 cl_uint cl_major, cl_minor, cl_patch; 9048 clfftGetVersion(&cl_major, &cl_minor, &cl_patch); 9049 ; 9050 return 0; 9051} 9052_ACEOF 9053if ac_fn_c_try_link "$LINENO"; then : 9054 acx_clfft_ok=yes 9055fi 9056rm -f core conftest.err conftest.$ac_objext \ 9057 conftest$ac_exeext conftest.$ac_ext 9058fi 9059 9060if test ! -z "$with_clfft_prefix"; then 9061 if test x"$acx_clfft_ok" = xno; then 9062 LIBS_CLFFT="-L$with_clfft_prefix/lib64/ -lclFFT" 9063 LIBS="$LIBS_CLFFT $CL_LIBS $acx_clfft_save_LIBS" 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9065/* end confdefs.h. */ 9066#include <clFFT.h> 9067int 9068main () 9069{ 9070 9071 cl_uint cl_major, cl_minor, cl_patch; 9072 clfftGetVersion(&cl_major, &cl_minor, &cl_patch); 9073 ; 9074 return 0; 9075} 9076_ACEOF 9077if ac_fn_c_try_link "$LINENO"; then : 9078 acx_clfft_ok=yes 9079fi 9080rm -f core conftest.err conftest.$ac_objext \ 9081 conftest$ac_exeext conftest.$ac_ext 9082 fi 9083 9084 if test x"$acx_clfft_ok" = xno; then 9085 LIBS_CLFFT="-L$with_clfft_prefix/lib/ -lclFFT" 9086 LIBS="$LIBS_CLFFT $CL_LIBS $acx_clfft_save_LIBS" 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089#include <clFFT.h> 9090int 9091main () 9092{ 9093 9094 cl_uint cl_major, cl_minor, cl_patch; 9095 clfftGetVersion(&cl_major, &cl_minor, &cl_patch); 9096 ; 9097 return 0; 9098} 9099_ACEOF 9100if ac_fn_c_try_link "$LINENO"; then : 9101 acx_clfft_ok=yes 9102fi 9103rm -f core conftest.err conftest.$ac_objext \ 9104 conftest$ac_exeext conftest.$ac_ext 9105 fi 9106 9107fi 9108 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_clfft_ok ($CFLAGS_CLFFT $LIBS_CLFFT)" >&5 9110$as_echo "$acx_clfft_ok ($CFLAGS_CLFFT $LIBS_CLFFT)" >&6; } 9111 9112if test x"$acx_clfft_ok" = xyes; then 9113 9114$as_echo "#define HAVE_CLFFT 1" >>confdefs.h 9115 9116else 9117 as_fn_error $? "Could not find the required clfft library." "$LINENO" 5 9118fi 9119 9120 9121 9122CFLAGS="$acx_clfft_save_CFLAGS" 9123LIBS="$acx_clfft_save_LIBS" 9124 9125fi 9126 9127 if test x"${enable_opencl}" == x"yes"; then 9128 COMPILE_OPENCL_TRUE= 9129 COMPILE_OPENCL_FALSE='#' 9130else 9131 COMPILE_OPENCL_TRUE='#' 9132 COMPILE_OPENCL_FALSE= 9133fi 9134 9135 9136if test x"$enable_mpi" == x"yes"; then 9137 ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default" 9138if test "x$ac_cv_header_mpi_h" = xyes; then : 9139 9140else 9141 as_fn_error $? "cannot find mpi.h" "$LINENO" 5 9142fi 9143 9144 9145 9146acx_mpi_ok=no 9147 9148acx_mpi_save_LIBS="$LIBS" 9149LIBS="$LIBS_MPI $LIBS $FLIBS" 9150 9151if test $acx_mpi_ok = no; then 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_init in $LIBS_MPI" >&5 9153$as_echo_n "checking for MPI_init in $LIBS_MPI... " >&6; } 9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155/* end confdefs.h. */ 9156 9157/* Override any GCC internal prototype to avoid an error. 9158 Use char because int might match the return type of a GCC 9159 builtin and then its argument prototype would still apply. */ 9160#ifdef __cplusplus 9161extern "C" 9162#endif 9163char MPI_Init (); 9164int 9165main () 9166{ 9167return MPI_Init (); 9168 ; 9169 return 0; 9170} 9171_ACEOF 9172if ac_fn_c_try_link "$LINENO"; then : 9173 acx_mpi_ok=yes 9174fi 9175rm -f core conftest.err conftest.$ac_objext \ 9176 conftest$ac_exeext conftest.$ac_ext 9177 if test $acx_mpi_ok = no; then 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_mpi_ok" >&5 9179$as_echo "$acx_mpi_ok" >&6; } 9180 else 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_mpi_ok ($LIBS_MPI)" >&5 9182$as_echo "$acx_mpi_ok ($LIBS_MPI)" >&6; } 9183 fi 9184fi 9185 9186if test $acx_mpi_ok = no; then 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 9188$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } 9189if ${ac_cv_lib_mpi_MPI_Init+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 ac_check_lib_save_LIBS=$LIBS 9193LIBS="-lmpi $LIBS" 9194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196 9197/* Override any GCC internal prototype to avoid an error. 9198 Use char because int might match the return type of a GCC 9199 builtin and then its argument prototype would still apply. */ 9200#ifdef __cplusplus 9201extern "C" 9202#endif 9203char MPI_Init (); 9204int 9205main () 9206{ 9207return MPI_Init (); 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212if ac_fn_c_try_link "$LINENO"; then : 9213 ac_cv_lib_mpi_MPI_Init=yes 9214else 9215 ac_cv_lib_mpi_MPI_Init=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext \ 9218 conftest$ac_exeext conftest.$ac_ext 9219LIBS=$ac_check_lib_save_LIBS 9220fi 9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 9222$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } 9223if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : 9224 acx_mpi_ok=yes; LIBS_MPI="$LIBS_MPI -lmpi" 9225fi 9226 9227fi 9228 9229 9230LIBS="$acx_mpi_save_LIBS" 9231 9232if test x"$acx_mpi_ok" = xyes; then 9233 9234$as_echo "#define HAVE_MPI 1" >>confdefs.h 9235 9236 9237else 9238 as_fn_error $? "cannot call MPI from C" "$LINENO" 5 9239fi 9240 9241fi 9242 9243# Check whether --enable-perl was given. 9244if test "${enable_perl+set}" = set; then : 9245 enableval=$enable_perl; ac_cv_build_perl=$enableval 9246else 9247 ac_cv_build_perl=yes 9248fi 9249 9250if test "x$ac_cv_build_perl" = "xyes"; then 9251 # Extract the first word of "perl", so it can be a program name with args. 9252set dummy perl; ac_word=$2 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9254$as_echo_n "checking for $ac_word... " >&6; } 9255if ${ac_cv_path_PERL+:} false; then : 9256 $as_echo_n "(cached) " >&6 9257else 9258 case $PERL in 9259 [\\/]* | ?:[\\/]*) 9260 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 9261 ;; 9262 *) 9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9264for as_dir in $PATH 9265do 9266 IFS=$as_save_IFS 9267 test -z "$as_dir" && as_dir=. 9268 for ac_exec_ext in '' $ac_executable_extensions; do 9269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9270 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9272 break 2 9273 fi 9274done 9275 done 9276IFS=$as_save_IFS 9277 9278 ;; 9279esac 9280fi 9281PERL=$ac_cv_path_PERL 9282if test -n "$PERL"; then 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 9284$as_echo "$PERL" >&6; } 9285else 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9287$as_echo "no" >&6; } 9288fi 9289 9290 9291 if test -z "$PERL" ; then 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found. Disabling Perl parts" >&5 9293$as_echo "$as_me: WARNING: perl not found. Disabling Perl parts" >&2;} 9294 ac_cv_build_perl="no" 9295 fi 9296fi 9297 if test x"$ac_cv_build_perl" = x"yes"; then 9298 ENABLE_PERL_TRUE= 9299 ENABLE_PERL_FALSE='#' 9300else 9301 ENABLE_PERL_TRUE='#' 9302 ENABLE_PERL_FALSE= 9303fi 9304 9305 9306 9307acx_save_fcflags="${FCFLAGS}" 9308if test x"$enable_mpi" = x"yes"; then 9309 ac_ext=${ac_fc_srcext-f} 9310ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 9311ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 9312ac_compiler_gnu=$ac_cv_fc_compiler_gnu 9313if test -n "$ac_tool_prefix"; then 9314 for ac_prog in mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r 9315 do 9316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9317set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9319$as_echo_n "checking for $ac_word... " >&6; } 9320if ${ac_cv_prog_FC+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 if test -n "$FC"; then 9324 ac_cv_prog_FC="$FC" # Let the user override the test. 9325else 9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9327for as_dir in $PATH 9328do 9329 IFS=$as_save_IFS 9330 test -z "$as_dir" && as_dir=. 9331 for ac_exec_ext in '' $ac_executable_extensions; do 9332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9333 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9335 break 2 9336 fi 9337done 9338 done 9339IFS=$as_save_IFS 9340 9341fi 9342fi 9343FC=$ac_cv_prog_FC 9344if test -n "$FC"; then 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 9346$as_echo "$FC" >&6; } 9347else 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9349$as_echo "no" >&6; } 9350fi 9351 9352 9353 test -n "$FC" && break 9354 done 9355fi 9356if test -z "$FC"; then 9357 ac_ct_FC=$FC 9358 for ac_prog in mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r 9359do 9360 # Extract the first word of "$ac_prog", so it can be a program name with args. 9361set dummy $ac_prog; ac_word=$2 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9363$as_echo_n "checking for $ac_word... " >&6; } 9364if ${ac_cv_prog_ac_ct_FC+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 if test -n "$ac_ct_FC"; then 9368 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 9369else 9370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9371for as_dir in $PATH 9372do 9373 IFS=$as_save_IFS 9374 test -z "$as_dir" && as_dir=. 9375 for ac_exec_ext in '' $ac_executable_extensions; do 9376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9377 ac_cv_prog_ac_ct_FC="$ac_prog" 9378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9379 break 2 9380 fi 9381done 9382 done 9383IFS=$as_save_IFS 9384 9385fi 9386fi 9387ac_ct_FC=$ac_cv_prog_ac_ct_FC 9388if test -n "$ac_ct_FC"; then 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 9390$as_echo "$ac_ct_FC" >&6; } 9391else 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9393$as_echo "no" >&6; } 9394fi 9395 9396 9397 test -n "$ac_ct_FC" && break 9398done 9399 9400 if test "x$ac_ct_FC" = x; then 9401 FC="" 9402 else 9403 case $cross_compiling:$ac_tool_warned in 9404yes:) 9405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9407ac_tool_warned=yes ;; 9408esac 9409 FC=$ac_ct_FC 9410 fi 9411fi 9412 9413 9414# Provide some information about the compiler. 9415$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 9416set X $ac_compile 9417ac_compiler=$2 9418for ac_option in --version -v -V -qversion; do 9419 { { ac_try="$ac_compiler $ac_option >&5" 9420case "(($ac_try" in 9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9422 *) ac_try_echo=$ac_try;; 9423esac 9424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9425$as_echo "$ac_try_echo"; } >&5 9426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 9427 ac_status=$? 9428 if test -s conftest.err; then 9429 sed '10a\ 9430... rest of stderr output deleted ... 9431 10q' conftest.err >conftest.er1 9432 cat conftest.er1 >&5 9433 fi 9434 rm -f conftest.er1 conftest.err 9435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9436 test $ac_status = 0; } 9437done 9438rm -f a.out 9439 9440# If we don't use `.F' as extension, the preprocessor is not run on the 9441# input file. (Note that this only needs to work for GNU compilers.) 9442ac_save_ext=$ac_ext 9443ac_ext=F 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 9445$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 9446if ${ac_cv_fc_compiler_gnu+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448else 9449 cat > conftest.$ac_ext <<_ACEOF 9450 program main 9451#ifndef __GNUC__ 9452 choke me 9453#endif 9454 9455 end 9456_ACEOF 9457if ac_fn_fc_try_compile "$LINENO"; then : 9458 ac_compiler_gnu=yes 9459else 9460 ac_compiler_gnu=no 9461fi 9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9463ac_cv_fc_compiler_gnu=$ac_compiler_gnu 9464 9465fi 9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 9467$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 9468ac_ext=$ac_save_ext 9469ac_test_FCFLAGS=${FCFLAGS+set} 9470ac_save_FCFLAGS=$FCFLAGS 9471FCFLAGS= 9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 9473$as_echo_n "checking whether $FC accepts -g... " >&6; } 9474if ${ac_cv_prog_fc_g+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476else 9477 FCFLAGS=-g 9478cat > conftest.$ac_ext <<_ACEOF 9479 program main 9480 9481 end 9482_ACEOF 9483if ac_fn_fc_try_compile "$LINENO"; then : 9484 ac_cv_prog_fc_g=yes 9485else 9486 ac_cv_prog_fc_g=no 9487fi 9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9489 9490fi 9491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 9492$as_echo "$ac_cv_prog_fc_g" >&6; } 9493if test "$ac_test_FCFLAGS" = set; then 9494 FCFLAGS=$ac_save_FCFLAGS 9495elif test $ac_cv_prog_fc_g = yes; then 9496 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 9497 FCFLAGS="-g -O2" 9498 else 9499 FCFLAGS="-g" 9500 fi 9501else 9502 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 9503 FCFLAGS="-O2" 9504 else 9505 FCFLAGS= 9506 fi 9507fi 9508 9509if test $ac_compiler_gnu = yes; then 9510 GFC=yes 9511else 9512 GFC= 9513fi 9514ac_ext=c 9515ac_cpp='$CPP $CPPFLAGS' 9516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9518ac_compiler_gnu=$ac_cv_c_compiler_gnu 9519 9520else 9521 ac_ext=${ac_fc_srcext-f} 9522ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 9523ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 9524ac_compiler_gnu=$ac_cv_fc_compiler_gnu 9525if test -n "$ac_tool_prefix"; then 9526 for ac_prog in xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 9527 do 9528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9529set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9531$as_echo_n "checking for $ac_word... " >&6; } 9532if ${ac_cv_prog_FC+:} false; then : 9533 $as_echo_n "(cached) " >&6 9534else 9535 if test -n "$FC"; then 9536 ac_cv_prog_FC="$FC" # Let the user override the test. 9537else 9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9539for as_dir in $PATH 9540do 9541 IFS=$as_save_IFS 9542 test -z "$as_dir" && as_dir=. 9543 for ac_exec_ext in '' $ac_executable_extensions; do 9544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9545 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9547 break 2 9548 fi 9549done 9550 done 9551IFS=$as_save_IFS 9552 9553fi 9554fi 9555FC=$ac_cv_prog_FC 9556if test -n "$FC"; then 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 9558$as_echo "$FC" >&6; } 9559else 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9561$as_echo "no" >&6; } 9562fi 9563 9564 9565 test -n "$FC" && break 9566 done 9567fi 9568if test -z "$FC"; then 9569 ac_ct_FC=$FC 9570 for ac_prog in xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 9571do 9572 # Extract the first word of "$ac_prog", so it can be a program name with args. 9573set dummy $ac_prog; ac_word=$2 9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9575$as_echo_n "checking for $ac_word... " >&6; } 9576if ${ac_cv_prog_ac_ct_FC+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578else 9579 if test -n "$ac_ct_FC"; then 9580 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 9581else 9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9583for as_dir in $PATH 9584do 9585 IFS=$as_save_IFS 9586 test -z "$as_dir" && as_dir=. 9587 for ac_exec_ext in '' $ac_executable_extensions; do 9588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9589 ac_cv_prog_ac_ct_FC="$ac_prog" 9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9591 break 2 9592 fi 9593done 9594 done 9595IFS=$as_save_IFS 9596 9597fi 9598fi 9599ac_ct_FC=$ac_cv_prog_ac_ct_FC 9600if test -n "$ac_ct_FC"; then 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 9602$as_echo "$ac_ct_FC" >&6; } 9603else 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9605$as_echo "no" >&6; } 9606fi 9607 9608 9609 test -n "$ac_ct_FC" && break 9610done 9611 9612 if test "x$ac_ct_FC" = x; then 9613 FC="" 9614 else 9615 case $cross_compiling:$ac_tool_warned in 9616yes:) 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9619ac_tool_warned=yes ;; 9620esac 9621 FC=$ac_ct_FC 9622 fi 9623fi 9624 9625 9626# Provide some information about the compiler. 9627$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 9628set X $ac_compile 9629ac_compiler=$2 9630for ac_option in --version -v -V -qversion; do 9631 { { ac_try="$ac_compiler $ac_option >&5" 9632case "(($ac_try" in 9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9634 *) ac_try_echo=$ac_try;; 9635esac 9636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9637$as_echo "$ac_try_echo"; } >&5 9638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 9639 ac_status=$? 9640 if test -s conftest.err; then 9641 sed '10a\ 9642... rest of stderr output deleted ... 9643 10q' conftest.err >conftest.er1 9644 cat conftest.er1 >&5 9645 fi 9646 rm -f conftest.er1 conftest.err 9647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9648 test $ac_status = 0; } 9649done 9650rm -f a.out 9651 9652# If we don't use `.F' as extension, the preprocessor is not run on the 9653# input file. (Note that this only needs to work for GNU compilers.) 9654ac_save_ext=$ac_ext 9655ac_ext=F 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 9657$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 9658if ${ac_cv_fc_compiler_gnu+:} false; then : 9659 $as_echo_n "(cached) " >&6 9660else 9661 cat > conftest.$ac_ext <<_ACEOF 9662 program main 9663#ifndef __GNUC__ 9664 choke me 9665#endif 9666 9667 end 9668_ACEOF 9669if ac_fn_fc_try_compile "$LINENO"; then : 9670 ac_compiler_gnu=yes 9671else 9672 ac_compiler_gnu=no 9673fi 9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9675ac_cv_fc_compiler_gnu=$ac_compiler_gnu 9676 9677fi 9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 9679$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 9680ac_ext=$ac_save_ext 9681ac_test_FCFLAGS=${FCFLAGS+set} 9682ac_save_FCFLAGS=$FCFLAGS 9683FCFLAGS= 9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 9685$as_echo_n "checking whether $FC accepts -g... " >&6; } 9686if ${ac_cv_prog_fc_g+:} false; then : 9687 $as_echo_n "(cached) " >&6 9688else 9689 FCFLAGS=-g 9690cat > conftest.$ac_ext <<_ACEOF 9691 program main 9692 9693 end 9694_ACEOF 9695if ac_fn_fc_try_compile "$LINENO"; then : 9696 ac_cv_prog_fc_g=yes 9697else 9698 ac_cv_prog_fc_g=no 9699fi 9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9701 9702fi 9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 9704$as_echo "$ac_cv_prog_fc_g" >&6; } 9705if test "$ac_test_FCFLAGS" = set; then 9706 FCFLAGS=$ac_save_FCFLAGS 9707elif test $ac_cv_prog_fc_g = yes; then 9708 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 9709 FCFLAGS="-g -O2" 9710 else 9711 FCFLAGS="-g" 9712 fi 9713else 9714 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 9715 FCFLAGS="-O2" 9716 else 9717 FCFLAGS= 9718 fi 9719fi 9720 9721if test $ac_compiler_gnu = yes; then 9722 GFC=yes 9723else 9724 GFC= 9725fi 9726ac_ext=c 9727ac_cpp='$CPP $CPPFLAGS' 9728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9730ac_compiler_gnu=$ac_cv_c_compiler_gnu 9731 9732fi 9733if test x"$FC" = x; then 9734 as_fn_error $? "could not find Fortran 90 compiler" "$LINENO" 5 9735fi 9736ac_ext=${ac_fc_srcext-f} 9737ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 9738ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 9739ac_compiler_gnu=$ac_cv_fc_compiler_gnu 9740 9741 9742ac_ext=${ac_fc_srcext-f} 9743ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 9744ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 9745ac_compiler_gnu=$ac_cv_fc_compiler_gnu 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 9747$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } 9748if ${ac_cv_fc_srcext_f90+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 ac_ext=f90 9752ac_fcflags_srcext_save=$ac_fcflags_srcext 9753ac_fcflags_srcext= 9754ac_cv_fc_srcext_f90=unknown 9755case $ac_ext in #( 9756 [fF]77) ac_try=f77;; #( 9757 *) ac_try=f95;; 9758esac 9759for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do 9760 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" 9761 cat > conftest.$ac_ext <<_ACEOF 9762 program main 9763 9764 end 9765_ACEOF 9766if ac_fn_fc_try_compile "$LINENO"; then : 9767 ac_cv_fc_srcext_f90=$ac_flag; break 9768fi 9769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9770done 9771rm -f conftest.$ac_objext conftest.f90 9772ac_fcflags_srcext=$ac_fcflags_srcext_save 9773 9774fi 9775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 9776$as_echo "$ac_cv_fc_srcext_f90" >&6; } 9777if test "x$ac_cv_fc_srcext_f90" = xunknown; then 9778 as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 9779else 9780 ac_fc_srcext=f90 9781 if test "x$ac_cv_fc_srcext_f90" = xnone; then 9782 ac_fcflags_srcext="" 9783 FCFLAGS_f90="" 9784 else 9785 ac_fcflags_srcext=$ac_cv_fc_srcext_f90 9786 FCFLAGS_f90=$ac_cv_fc_srcext_f90 9787 fi 9788 9789 9790fi 9791ac_ext=${ac_fc_srcext-f} 9792ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 9793ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 9794ac_compiler_gnu=$ac_cv_fc_compiler_gnu 9795 9796FCFLAGS="${acx_save_fcflags}" 9797 9798 9799 9800 9801if test -z "${FCFLAGS}"; then 9802 case "${FC}" in 9803 gfortran*) 9804 FCFLAGS="-pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none" 9805 ;; 9806 openf9*) 9807 FCFLAGS="-O3 -funroll-loops -ffast-math" 9808 ;; 9809 g95*) 9810 FCFLAGS="-pipe -O3 -funroll-loops -ffast-math" 9811 ;; 9812 efc*|ifc*|ifort*) 9813 case "${host}" in 9814 x86_64*) 9815 FCFLAGS="-u -fpp1 -nbs -pc80 -pad -align -unroll -O3 -ip -no-fp-port -mno-ieee-fp -vec-report0 -no-prec-div" 9816 ;; 9817 i?86*linux*) 9818 FCFLAGS="-u -fpp1 -nbs -pc80 -pad -align -unroll -O3 -ip -no-fp-port -mno-ieee-fp -vec-report0 -no-prec-div" 9819 a=`echo $host | sed "s/^i//" | sed "s/86.*//"` 9820 if test "$a" -gt 5 ; then 9821 FCFLAGS="$FCFLAGS -tpp7 -xW" 9822 fi 9823 ;; 9824 ia64*) 9825 FCFLAGS="-O3 -ip -IPF_fp_relaxed -ftz -fpp -u -align all -pad" 9826 ;; 9827 esac 9828 ;; 9829 sun*) 9830 case "${host}" in 9831 i?86*linux*|x86_64*) 9832 FCFLAGS="-fast -xprefetch -xvector=simd" 9833 ;; 9834 sparc*) 9835 FCFLAGS="-fast" 9836 ;; 9837 esac 9838 ;; 9839 pathf9*) 9840 FCFLAGS="-O3 -march=auto -mcpu=auto -OPT:Ofast -fno-math-errno -LNO:simd=2 -OPT:align_unsafe=ON" 9841 ;; 9842 pgf90*) 9843 FCFLAGS="-O4 -fast -Munroll -Mnoframe -Mdalign" 9844 ;; 9845 abf90*) 9846 FCFLAGS="-O3 -YEXT_NAMES=LCS -YEXT_SFX=_" 9847 ;; 9848 xlf*) 9849 FCFLAGS="-O3 -qarch=auto -qtune=auto -qcache=auto -qxlf90=autodealloc" 9850 ;; 9851 f9*) 9852 case "${host}" in 9853 alphaev*) 9854 FCFLAGS="-align dcommons -fast -tune host -arch host -noautomatic" 9855 ;; 9856 mips*) 9857 FCFLAGS="-Ofast -O3" 9858 ;; 9859 sparc*) 9860 FCFLAGS="-fast" 9861 ;; 9862 *) 9863 FCFLAGS="-O3" 9864 ;; 9865 esac 9866 ;; 9867 *) 9868 FCFLAGS="-O3" 9869 ;; 9870 esac 9871fi 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: Using FCFLAGS=\"$FCFLAGS\"" >&5 9873$as_echo "$as_me: Using FCFLAGS=\"$FCFLAGS\"" >&6;} 9874 9875 9876 9877 # "gcc -E -x c" means treat the file as if it were C. For some reason, when gcc identifies the source 9878 # as Fortran, it will not concatenate tokens in preprocessing, so we must trick it. 9879 for FCCPP_base in "$FCCPP" "/lib/cpp" "$CPP" "$CPP -x c" "`which cpp`"; do 9880 # cycle if blank 9881 if test -z "$FCCPP_base"; then 9882 continue 9883 fi 9884 9885 for FCCPP in "$FCCPP_base" "$FCCPP_base -ansi" "$FCCPP_base -C -ffreestanding"; do 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FCCPP is usable for Fortran preprocessing" >&5 9887$as_echo_n "checking whether $FCCPP is usable for Fortran preprocessing... " >&6; } 9888 acx_fpp_ok=yes 9889 9890 9891 9892 9893 echo " program main 9894anything 9895 end" > conftest.F90 9896 9897 # see if the attempt to preprocess raises an error 9898 if ! $FCCPP conftest.F90 > /dev/null 2>&5 ; then 9899 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: preprocessor cannot be run" >&5 9900$as_echo "preprocessor cannot be run" >&6; }; break 9901 fi 9902 9903 if (eval "$FCCPP conftest.F90" 2>&5) | 9904 grep -q "anything" 2>&5; then : 9905 9906 else 9907 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: preprocessor cannot be run" >&5 9908$as_echo "preprocessor cannot be run" >&6; }; break 9909 fi 9910 rm -f conftest* 9911 9912 # very unlikely that adding -ansi will allow it to be run at all 9913 9914 9915 9916 9917 echo " program main 9918 9919#define ADD_I(x) x ## i 9920ADD_I(h) 9921 end" > conftest.F90 9922 9923 # see if the attempt to preprocess raises an error 9924 if ! $FCCPP conftest.F90 > /dev/null 2>&5 ; then 9925 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: preprocessor does not concatenate tokens" >&5 9926$as_echo "preprocessor does not concatenate tokens" >&6; } 9927 fi 9928 9929 if (eval "$FCCPP conftest.F90" 2>&5) | 9930 grep -q "hi" 2>&5; then : 9931 9932 else 9933 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: preprocessor does not concatenate tokens" >&5 9934$as_echo "preprocessor does not concatenate tokens" >&6; } 9935 fi 9936 rm -f conftest* 9937 9938 9939 # in Fortran this is string concatenation, must not be stripped 9940 # some cpp's (e.g. icc -E -ansi) might actually insert a space between // too which is not acceptable 9941 9942 9943 9944 echo " program main 9945 9946rout // ine 9947 end" > conftest.F90 9948 9949 # see if the attempt to preprocess raises an error 9950 if ! $FCCPP conftest.F90 > /dev/null 2>&5 ; then 9951 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: preprocessor mangles C++ style comment" >&5 9952$as_echo "preprocessor mangles C++ style comment" >&6; } 9953 fi 9954 9955 if (eval "$FCCPP conftest.F90" 2>&5) | 9956 grep -q "rout // ine" 2>&5; then : 9957 9958 else 9959 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: preprocessor mangles C++ style comment" >&5 9960$as_echo "preprocessor mangles C++ style comment" >&6; } 9961 fi 9962 rm -f conftest* 9963 9964 9965 if test x"$acx_fpp_ok" = xyes; then 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9967$as_echo "yes" >&6; } 9968 break 9969 fi 9970 done 9971 9972 if test x"$acx_fpp_ok" = xyes; then 9973 for PPC_WORKAROUND in "" " -Dvector=vector"; do 9974 acx_fpp_ok=yes 9975 FCCPP="$FCCPP$PPC_WORKAROUND" 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FCCPP treats vector as a predefined macro" >&5 9977$as_echo_n "checking whether $FCCPP treats vector as a predefined macro... " >&6; } 9978 9979 9980 9981 9982 echo " program main 9983 9984vector int 9985 end" > conftest.F90 9986 9987 # see if the attempt to preprocess raises an error 9988 if ! $FCCPP conftest.F90 > /dev/null 2>&5 ; then 9989 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9990$as_echo "yes" >&6; } 9991 fi 9992 9993 if (eval "$FCCPP conftest.F90" 2>&5) | 9994 grep -q "vector int" 2>&5; then : 9995 9996 else 9997 acx_fpp_ok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9998$as_echo "yes" >&6; } 9999 fi 10000 rm -f conftest* 10001 10002 if test x"$acx_fpp_ok" = xyes; then 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10004$as_echo "no" >&6; } 10005 break 10006 fi 10007 done 10008 fi 10009 10010 if test x"$acx_fpp_ok" = xyes; then 10011 break 10012 fi 10013 done 10014 10015 if test x"$acx_fpp_ok" = xno; then 10016 as_fn_error $? "Could not find preprocessor usable for Fortran." "$LINENO" 5 10017 fi 10018 10019 10020 10021 10022ac_ext=${ac_fc_srcext-f} 10023ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10024ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10025ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 10027$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } 10028if ${ac_cv_prog_fc_v+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 cat > conftest.$ac_ext <<_ACEOF 10032 program main 10033 10034 end 10035_ACEOF 10036if ac_fn_fc_try_compile "$LINENO"; then : 10037 ac_cv_prog_fc_v= 10038# Try some options frequently used verbose output 10039for ac_verb in -v -verbose --verbose -V -\#\#\#; do 10040 cat > conftest.$ac_ext <<_ACEOF 10041 program main 10042 10043 end 10044_ACEOF 10045 10046# Compile and link our simple test program by passing a flag (argument 10047# 1 to this macro) to the Fortran compiler in order to get 10048# "verbose" output that we can then parse for the Fortran linker 10049# flags. 10050ac_save_FCFLAGS=$FCFLAGS 10051FCFLAGS="$FCFLAGS $ac_verb" 10052eval "set x $ac_link" 10053shift 10054$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 10055# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 10056# LIBRARY_PATH; skip all such settings. 10057ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | 10058 sed '/^Driving:/d; /^Configured with:/d; 10059 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 10060$as_echo "$ac_fc_v_output" >&5 10061FCFLAGS=$ac_save_FCFLAGS 10062 10063rm -rf conftest* 10064 10065# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 10066# /foo, /bar, and /baz are search directories for the Fortran linker. 10067# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 10068ac_fc_v_output="`echo $ac_fc_v_output | 10069 grep 'LPATH is:' | 10070 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" 10071 10072# FIXME: we keep getting bitten by quoted arguments; a more general fix 10073# that detects unbalanced quotes in FLIBS should be implemented 10074# and (ugh) tested at some point. 10075case $ac_fc_v_output in 10076 # With xlf replace commas with spaces, 10077 # and remove "-link" and closing parenthesis. 10078 *xlfentry*) 10079 ac_fc_v_output=`echo $ac_fc_v_output | 10080 sed ' 10081 s/,/ /g 10082 s/ -link / /g 10083 s/) *$// 10084 ' 10085 ` ;; 10086 10087 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 10088 # $LIBS confuse us, and the libraries appear later in the output anyway). 10089 *mGLOB_options_string*) 10090 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 10091 10092 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 10093 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 10094 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 10095 *-cmdline\ * | *-ignore\ * | *-def\ *) 10096 ac_fc_v_output=`echo $ac_fc_v_output | sed "\ 10097 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 10098 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 10099 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 10100 10101 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 10102 *fort77*f2c*gcc*) 10103 ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' 10104 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 10105 /"-c"/d 10106 /[.]c"*/d 10107 s/^.*"gcc"/"gcc"/ 10108 s/"//gp 10109 }'` ;; 10110 10111 # If we are using Cray Fortran then delete quotes. 10112 *cft90*) 10113 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; 10114esac 10115 10116 10117 # look for -l* and *.a constructs in the output 10118 for ac_arg in $ac_fc_v_output; do 10119 case $ac_arg in 10120 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 10121 ac_cv_prog_fc_v=$ac_verb 10122 break 2 ;; 10123 esac 10124 done 10125done 10126if test -z "$ac_cv_prog_fc_v"; then 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 10128$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} 10129fi 10130else 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 10132$as_echo "$as_me: WARNING: compilation failed" >&2;} 10133fi 10134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10135 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 10138$as_echo "$ac_cv_prog_fc_v" >&6; } 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 10140$as_echo_n "checking for Fortran libraries of $FC... " >&6; } 10141if ${ac_cv_fc_libs+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 if test "x$FCLIBS" != "x"; then 10145 ac_cv_fc_libs="$FCLIBS" # Let the user override the test. 10146else 10147 10148cat > conftest.$ac_ext <<_ACEOF 10149 program main 10150 10151 end 10152_ACEOF 10153 10154# Compile and link our simple test program by passing a flag (argument 10155# 1 to this macro) to the Fortran compiler in order to get 10156# "verbose" output that we can then parse for the Fortran linker 10157# flags. 10158ac_save_FCFLAGS=$FCFLAGS 10159FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" 10160eval "set x $ac_link" 10161shift 10162$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 10163# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 10164# LIBRARY_PATH; skip all such settings. 10165ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | 10166 sed '/^Driving:/d; /^Configured with:/d; 10167 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 10168$as_echo "$ac_fc_v_output" >&5 10169FCFLAGS=$ac_save_FCFLAGS 10170 10171rm -rf conftest* 10172 10173# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 10174# /foo, /bar, and /baz are search directories for the Fortran linker. 10175# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 10176ac_fc_v_output="`echo $ac_fc_v_output | 10177 grep 'LPATH is:' | 10178 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" 10179 10180# FIXME: we keep getting bitten by quoted arguments; a more general fix 10181# that detects unbalanced quotes in FLIBS should be implemented 10182# and (ugh) tested at some point. 10183case $ac_fc_v_output in 10184 # With xlf replace commas with spaces, 10185 # and remove "-link" and closing parenthesis. 10186 *xlfentry*) 10187 ac_fc_v_output=`echo $ac_fc_v_output | 10188 sed ' 10189 s/,/ /g 10190 s/ -link / /g 10191 s/) *$// 10192 ' 10193 ` ;; 10194 10195 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 10196 # $LIBS confuse us, and the libraries appear later in the output anyway). 10197 *mGLOB_options_string*) 10198 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 10199 10200 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 10201 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 10202 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 10203 *-cmdline\ * | *-ignore\ * | *-def\ *) 10204 ac_fc_v_output=`echo $ac_fc_v_output | sed "\ 10205 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 10206 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 10207 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 10208 10209 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 10210 *fort77*f2c*gcc*) 10211 ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' 10212 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 10213 /"-c"/d 10214 /[.]c"*/d 10215 s/^.*"gcc"/"gcc"/ 10216 s/"//gp 10217 }'` ;; 10218 10219 # If we are using Cray Fortran then delete quotes. 10220 *cft90*) 10221 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; 10222esac 10223 10224 10225 10226ac_cv_fc_libs= 10227 10228# Save positional arguments (if any) 10229ac_save_positional="$@" 10230 10231set X $ac_fc_v_output 10232while test $# != 1; do 10233 shift 10234 ac_arg=$1 10235 case $ac_arg in 10236 [\\/]*.a | ?:[\\/]*.a) 10237 ac_exists=false 10238 for ac_i in $ac_cv_fc_libs; do 10239 if test x"$ac_arg" = x"$ac_i"; then 10240 ac_exists=true 10241 break 10242 fi 10243 done 10244 10245 if test x"$ac_exists" = xtrue; then : 10246 10247else 10248 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 10249fi 10250 ;; 10251 -bI:*) 10252 ac_exists=false 10253 for ac_i in $ac_cv_fc_libs; do 10254 if test x"$ac_arg" = x"$ac_i"; then 10255 ac_exists=true 10256 break 10257 fi 10258 done 10259 10260 if test x"$ac_exists" = xtrue; then : 10261 10262else 10263 if test "$ac_compiler_gnu" = yes; then 10264 for ac_link_opt in $ac_arg; do 10265 ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" 10266 done 10267else 10268 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 10269fi 10270fi 10271 ;; 10272 # Ignore these flags. 10273 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 10274 |-LANG:=* | -LIST:* | -LNO:* | -link) 10275 ;; 10276 -lkernel32) 10277 case $host_os in 10278 *cygwin*) ;; 10279 *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 10280 ;; 10281 esac 10282 ;; 10283 -[LRuYz]) 10284 # These flags, when seen by themselves, take an argument. 10285 # We remove the space between option and argument and re-iterate 10286 # unless we find an empty arg or a new option (starting with -) 10287 case $2 in 10288 "" | -*);; 10289 *) 10290 ac_arg="$ac_arg$2" 10291 shift; shift 10292 set X $ac_arg "$@" 10293 ;; 10294 esac 10295 ;; 10296 -YP,*) 10297 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 10298 ac_exists=false 10299 for ac_i in $ac_cv_fc_libs; do 10300 if test x"$ac_j" = x"$ac_i"; then 10301 ac_exists=true 10302 break 10303 fi 10304 done 10305 10306 if test x"$ac_exists" = xtrue; then : 10307 10308else 10309 ac_arg="$ac_arg $ac_j" 10310 ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" 10311fi 10312 done 10313 ;; 10314 -[lLR]*) 10315 ac_exists=false 10316 for ac_i in $ac_cv_fc_libs; do 10317 if test x"$ac_arg" = x"$ac_i"; then 10318 ac_exists=true 10319 break 10320 fi 10321 done 10322 10323 if test x"$ac_exists" = xtrue; then : 10324 10325else 10326 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 10327fi 10328 ;; 10329 -zallextract*| -zdefaultextract) 10330 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 10331 ;; 10332 # Ignore everything else. 10333 esac 10334done 10335# restore positional arguments 10336set X $ac_save_positional; shift 10337 10338# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 10339# then we insist that the "run path" must be an absolute path (i.e. it 10340# must begin with a "/"). 10341case `(uname -sr) 2>/dev/null` in 10342 "SunOS 5"*) 10343 ac_ld_run_path=`$as_echo "$ac_fc_v_output" | 10344 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 10345 test "x$ac_ld_run_path" != x && 10346 if test "$ac_compiler_gnu" = yes; then 10347 for ac_link_opt in $ac_ld_run_path; do 10348 ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" 10349 done 10350else 10351 ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" 10352fi 10353 ;; 10354esac 10355fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 10356 10357fi 10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 10359$as_echo "$ac_cv_fc_libs" >&6; } 10360FCLIBS="$ac_cv_fc_libs" 10361 10362 10363ac_ext=${ac_fc_srcext-f} 10364ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10365ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10366ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10367 10368 10369ac_ext=${ac_fc_srcext-f} 10370ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10371ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10372ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10373 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 10375$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } 10376if ${ac_cv_fc_dummy_main+:} false; then : 10377 $as_echo_n "(cached) " >&6 10378else 10379 ac_fc_dm_save_LIBS=$LIBS 10380 LIBS="$LIBS $FCLIBS" 10381 ac_fortran_dm_var=FC_DUMMY_MAIN 10382 ac_ext=c 10383ac_cpp='$CPP $CPPFLAGS' 10384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10386ac_compiler_gnu=$ac_cv_c_compiler_gnu 10387 10388 # First, try linking without a dummy main: 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391 10392#ifdef FC_DUMMY_MAIN 10393#ifndef FC_DUMMY_MAIN_EQ_F77 10394# ifdef __cplusplus 10395 extern "C" 10396# endif 10397 int FC_DUMMY_MAIN() { return 1; } 10398#endif 10399#endif 10400int 10401main () 10402{ 10403 10404 ; 10405 return 0; 10406} 10407_ACEOF 10408if ac_fn_c_try_link "$LINENO"; then : 10409 ac_cv_fortran_dummy_main=none 10410else 10411 ac_cv_fortran_dummy_main=unknown 10412fi 10413rm -f core conftest.err conftest.$ac_objext \ 10414 conftest$ac_exeext conftest.$ac_ext 10415 10416 if test $ac_cv_fortran_dummy_main = unknown; then 10417 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420#define $ac_fortran_dm_var $ac_func 10421#ifdef FC_DUMMY_MAIN 10422#ifndef FC_DUMMY_MAIN_EQ_F77 10423# ifdef __cplusplus 10424 extern "C" 10425# endif 10426 int FC_DUMMY_MAIN() { return 1; } 10427#endif 10428#endif 10429int 10430main () 10431{ 10432 10433 ; 10434 return 0; 10435} 10436_ACEOF 10437if ac_fn_c_try_link "$LINENO"; then : 10438 ac_cv_fortran_dummy_main=$ac_func; break 10439fi 10440rm -f core conftest.err conftest.$ac_objext \ 10441 conftest$ac_exeext conftest.$ac_ext 10442 done 10443 fi 10444 ac_ext=${ac_fc_srcext-f} 10445ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10446ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10447ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10448 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main 10449 rm -rf conftest* 10450 LIBS=$ac_fc_dm_save_LIBS 10451 10452fi 10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 10454$as_echo "$ac_cv_fc_dummy_main" >&6; } 10455FC_DUMMY_MAIN=$ac_cv_fc_dummy_main 10456if test "$FC_DUMMY_MAIN" != unknown; then : 10457 if test $FC_DUMMY_MAIN != none; then 10458 10459cat >>confdefs.h <<_ACEOF 10460#define FC_DUMMY_MAIN $FC_DUMMY_MAIN 10461_ACEOF 10462 10463 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 10464 10465$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h 10466 10467 fi 10468fi 10469else 10470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10472as_fn_error $? "linking to Fortran libraries from C fails 10473See \`config.log' for more details" "$LINENO" 5; } 10474fi 10475 10476ac_ext=${ac_fc_srcext-f} 10477ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10478ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10479ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10480 10481ac_ext=${ac_fc_srcext-f} 10482ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10483ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10484ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 10486$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } 10487if ${ac_cv_fc_mangling+:} false; then : 10488 $as_echo_n "(cached) " >&6 10489else 10490 cat > conftest.$ac_ext <<_ACEOF 10491 subroutine foobar() 10492 return 10493 end 10494 subroutine foo_bar() 10495 return 10496 end 10497_ACEOF 10498if ac_fn_fc_try_compile "$LINENO"; then : 10499 mv conftest.$ac_objext cfortran_test.$ac_objext 10500 10501 ac_save_LIBS=$LIBS 10502 LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" 10503 10504 ac_ext=c 10505ac_cpp='$CPP $CPPFLAGS' 10506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10508ac_compiler_gnu=$ac_cv_c_compiler_gnu 10509 ac_success=no 10510 for ac_foobar in foobar FOOBAR; do 10511 for ac_underscore in "" "_"; do 10512 ac_func="$ac_foobar$ac_underscore" 10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514/* end confdefs.h. */ 10515 10516/* Override any GCC internal prototype to avoid an error. 10517 Use char because int might match the return type of a GCC 10518 builtin and then its argument prototype would still apply. */ 10519#ifdef __cplusplus 10520extern "C" 10521#endif 10522char $ac_func (); 10523#ifdef FC_DUMMY_MAIN 10524#ifndef FC_DUMMY_MAIN_EQ_F77 10525# ifdef __cplusplus 10526 extern "C" 10527# endif 10528 int FC_DUMMY_MAIN() { return 1; } 10529#endif 10530#endif 10531int 10532main () 10533{ 10534return $ac_func (); 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539if ac_fn_c_try_link "$LINENO"; then : 10540 ac_success=yes; break 2 10541fi 10542rm -f core conftest.err conftest.$ac_objext \ 10543 conftest$ac_exeext conftest.$ac_ext 10544 done 10545 done 10546 ac_ext=${ac_fc_srcext-f} 10547ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10548ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10549ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10550 10551 if test "$ac_success" = "yes"; then 10552 case $ac_foobar in 10553 foobar) 10554 ac_case=lower 10555 ac_foo_bar=foo_bar 10556 ;; 10557 FOOBAR) 10558 ac_case=upper 10559 ac_foo_bar=FOO_BAR 10560 ;; 10561 esac 10562 10563 ac_ext=c 10564ac_cpp='$CPP $CPPFLAGS' 10565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10567ac_compiler_gnu=$ac_cv_c_compiler_gnu 10568 ac_success_extra=no 10569 for ac_extra in "" "_"; do 10570 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573 10574/* Override any GCC internal prototype to avoid an error. 10575 Use char because int might match the return type of a GCC 10576 builtin and then its argument prototype would still apply. */ 10577#ifdef __cplusplus 10578extern "C" 10579#endif 10580char $ac_func (); 10581#ifdef FC_DUMMY_MAIN 10582#ifndef FC_DUMMY_MAIN_EQ_F77 10583# ifdef __cplusplus 10584 extern "C" 10585# endif 10586 int FC_DUMMY_MAIN() { return 1; } 10587#endif 10588#endif 10589int 10590main () 10591{ 10592return $ac_func (); 10593 ; 10594 return 0; 10595} 10596_ACEOF 10597if ac_fn_c_try_link "$LINENO"; then : 10598 ac_success_extra=yes; break 10599fi 10600rm -f core conftest.err conftest.$ac_objext \ 10601 conftest$ac_exeext conftest.$ac_ext 10602 done 10603 ac_ext=${ac_fc_srcext-f} 10604ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10605ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10606ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10607 10608 if test "$ac_success_extra" = "yes"; then 10609 ac_cv_fc_mangling="$ac_case case" 10610 if test -z "$ac_underscore"; then 10611 ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" 10612 else 10613 ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" 10614 fi 10615 if test -z "$ac_extra"; then 10616 ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" 10617 else 10618 ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" 10619 fi 10620 else 10621 ac_cv_fc_mangling="unknown" 10622 fi 10623 else 10624 ac_cv_fc_mangling="unknown" 10625 fi 10626 10627 LIBS=$ac_save_LIBS 10628 rm -rf conftest* 10629 rm -f cfortran_test* 10630else 10631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10633as_fn_error $? "cannot compile a simple Fortran program 10634See \`config.log' for more details" "$LINENO" 5; } 10635fi 10636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10637 10638fi 10639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 10640$as_echo "$ac_cv_fc_mangling" >&6; } 10641 10642ac_ext=${ac_fc_srcext-f} 10643ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10644ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10645ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10646 10647ac_ext=${ac_fc_srcext-f} 10648ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10649ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10650ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10651case $ac_cv_fc_mangling in 10652 "lower case, no underscore, no extra underscore") 10653 $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h 10654 10655 $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h 10656 ;; 10657 "lower case, no underscore, extra underscore") 10658 $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h 10659 10660 $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h 10661 ;; 10662 "lower case, underscore, no extra underscore") 10663 $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h 10664 10665 $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h 10666 ;; 10667 "lower case, underscore, extra underscore") 10668 $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h 10669 10670 $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h 10671 ;; 10672 "upper case, no underscore, no extra underscore") 10673 $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h 10674 10675 $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h 10676 ;; 10677 "upper case, no underscore, extra underscore") 10678 $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h 10679 10680 $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h 10681 ;; 10682 "upper case, underscore, no extra underscore") 10683 $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h 10684 10685 $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h 10686 ;; 10687 "upper case, underscore, extra underscore") 10688 $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h 10689 10690 $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h 10691 ;; 10692 *) 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 10694$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 10695 ;; 10696esac 10697 10698ac_ext=${ac_fc_srcext-f} 10699ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10700ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10701ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10702 10703 10704 10705 10706 10707 if test -z "$FC_INTEGER_SIZE"; then 10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of a Fortran integer" >&5 10709$as_echo_n "checking for the size of a Fortran integer... " >&6; } 10710 if test "$cross_compiling" = yes; then : 10711 ac_fcintegersize=4; echo -n "cross-compiling; assuming... " 10712else 10713 cat > conftest.$ac_ext <<_ACEOF 10714 program main 10715 10716 integer :: i 10717 integer(8) :: i8 10718 10719 i8 = huge(i) 10720 10721 select case(i8) 10722 case(127_8); i = 1 10723 case(32767_8); i = 2 10724 case(2147483647_8); i = 4 10725 case(9223372036854775807_8); i = 8 10726 case default; write(*,'(a,i20)') "unrecognized size ", i8; stop 999 10727 end select 10728 10729 open(1, file='conftest.out') 10730 write(1,'(i1)') i 10731 10732 end 10733_ACEOF 10734if ac_fn_fc_try_run "$LINENO"; then : 10735 ac_fcintegersize=`cat conftest.out` 10736else 10737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10739as_fn_error $? "f90 program to find the size of a Fortran integer failed 10740See \`config.log' for more details" "$LINENO" 5; } 10741fi 10742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10743 conftest.$ac_objext conftest.beam conftest.$ac_ext 10744fi 10745 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_fcintegersize} bytes" >&5 10747$as_echo "${ac_fcintegersize} bytes" >&6; } 10748 else 10749 ac_fcintegersize=$FC_INTEGER_SIZE 10750 fi 10751 10752cat >>confdefs.h <<_ACEOF 10753#define FC_INTEGER_SIZE ${ac_fcintegersize} 10754_ACEOF 10755 10756 10757 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which C type corresponds to Fortran integer" >&5 10759$as_echo_n "checking for which C type corresponds to Fortran integer... " >&6; } 10760 10761 10762 if test -z "$CC_FORTRAN_INT"; then 10763 ac_ext=c 10764ac_cpp='$CPP $CPPFLAGS' 10765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10767ac_compiler_gnu=$ac_cv_c_compiler_gnu 10768 10769 if test "$cross_compiling" = yes; then : 10770 ac_ccfortranint="int"; echo -n "cross-compiling; assuming... " 10771else 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774 10775#include <stdio.h> 10776 10777#ifdef FC_DUMMY_MAIN 10778#ifndef FC_DUMMY_MAIN_EQ_F77 10779# ifdef __cplusplus 10780 extern "C" 10781# endif 10782 int FC_DUMMY_MAIN() { return 1; } 10783#endif 10784#endif 10785int 10786main () 10787{ 10788 10789 FILE* fp; 10790 fp = fopen("conftest.out", "w"); 10791 if(${ac_fcintegersize} == sizeof(char)) 10792 fprintf(fp, "char"); 10793 else if(${ac_fcintegersize} == sizeof(short)) 10794 fprintf(fp, "short"); 10795 else if(${ac_fcintegersize} == sizeof(int)) 10796 fprintf(fp, "int"); 10797 else if(${ac_fcintegersize} == sizeof(long)) 10798 fprintf(fp, "long"); 10799 else 10800 return 1; 10801 10802 ; 10803 return 0; 10804} 10805_ACEOF 10806if ac_fn_c_try_run "$LINENO"; then : 10807 ac_ccfortranint=`cat conftest.out` 10808else 10809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10811as_fn_error $? "C program failed to find the C type of a Fortran integer 10812See \`config.log' for more details" "$LINENO" 5; } 10813fi 10814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10815 conftest.$ac_objext conftest.beam conftest.$ac_ext 10816fi 10817 10818 ac_ext=${ac_fc_srcext-f} 10819ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10820ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10821ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10822 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_ccfortranint}" >&5 10824$as_echo "${ac_ccfortranint}" >&6; } 10825 else 10826 ac_ccfortranint=$CC_FORTRAN_INT 10827 fi 10828 10829cat >>confdefs.h <<_ACEOF 10830#define CC_FORTRAN_INT ${ac_ccfortranint} 10831_ACEOF 10832 10833 10834 10835 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flush" >&5 10837$as_echo_n "checking for flush... " >&6; } 10838ac_ext=${ac_fc_srcext-f} 10839ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10840ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10841ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10842cat > conftest.$ac_ext <<_ACEOF 10843 program main 10844 call flush 10845 end 10846_ACEOF 10847if ac_fn_fc_try_link "$LINENO"; then : 10848 10849acx_fortran_check_func=yes 10850 10851cat >>confdefs.h <<_ACEOF 10852#define HAVE_FLUSH 1 10853_ACEOF 10854 10855else 10856 10857acx_fortran_check_func=no 10858 10859fi 10860rm -f core conftest.err conftest.$ac_objext \ 10861 conftest$ac_exeext conftest.$ac_extac_ext=${ac_fc_srcext-f} 10862ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 10863ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 10864ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fortran_check_func" >&5 10866$as_echo "$acx_fortran_check_func" >&6; } 10867 10868 10869 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran sizeof intrinsic" >&5 10871$as_echo_n "checking for Fortran sizeof intrinsic... " >&6; } 10872 10873cat > conftest.$ac_ext <<_ACEOF 10874 program main 10875 10876 implicit none 10877 integer s 10878 integer array(10) 10879 real, allocatable :: alc(:) 10880 character(len=10) C 10881 type dtype 10882 integer :: array(10) 10883 integer, pointer :: p(:) 10884 end type 10885 type (dtype) dobj 10886 s = sizeof(array) 10887 s = sizeof(array(3)) 10888 s = sizeof(alc) 10889 s = sizeof(c(2:5)) 10890 s = sizeof(c) 10891 s = sizeof(dobj) 10892 s = sizeof(dobj%array) 10893 10894 end 10895_ACEOF 10896if ac_fn_fc_try_link "$LINENO"; then : 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10898$as_echo "yes" >&6; } 10899 10900$as_echo "#define HAVE_FC_SIZEOF 1" >>confdefs.h 10901 10902else 10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10904$as_echo "no" >&6; } 10905 10906fi 10907rm -f core conftest.err conftest.$ac_objext \ 10908 conftest$ac_exeext conftest.$ac_ext 10909 10910 10911 10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for loc" >&5 10913$as_echo_n "checking for loc... " >&6; } 10914 cat > conftest.$ac_ext <<_ACEOF 10915 10916 program main 10917 10918 implicit none 10919 10920 integer :: ii, jj 10921 10922 ii = loc(jj) 10923 10924 end 10925 10926_ACEOF 10927if ac_fn_fc_try_link "$LINENO"; then : 10928 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10930$as_echo "yes" >&6; } 10931 10932$as_echo "#define HAVE_FORTRAN_LOC 1" >>confdefs.h 10933 10934 10935else 10936 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10938$as_echo "no" >&6; } 10939 10940fi 10941rm -f core conftest.err conftest.$ac_objext \ 10942 conftest$ac_exeext conftest.$ac_ext 10943 10944 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts very long lines" >&5 10946$as_echo_n "checking whether the compiler accepts very long lines... " >&6; } 10947cat > conftest.$ac_ext <<_ACEOF 10948 program main 10949 10950write(*, *) '456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678904567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789001234567890123456789045678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890' 10951 10952 end 10953_ACEOF 10954if ac_fn_fc_try_compile "$LINENO"; then : 10955 acx_long_lines_ok=yes; 10956$as_echo "#define LONG_LINES 1" >>confdefs.h 10957 10958else 10959 acx_long_lines_ok=no 10960fi 10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10962LONG_LINES=$acx_long_lines_ok 10963 10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_long_lines_ok" >&5 10965$as_echo "$acx_long_lines_ok" >&6; } 10966 10967 10968 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler_version intrinsic" >&5 10970$as_echo_n "checking for Fortran compiler_version intrinsic... " >&6; } 10971 10972cat > conftest.$ac_ext <<_ACEOF 10973 program main 10974 10975 use iso_fortran_env 10976 implicit none 10977 print *, trim (compiler_version()) 10978 10979 end 10980_ACEOF 10981if ac_fn_fc_try_link "$LINENO"; then : 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10983$as_echo "yes" >&6; } 10984 10985$as_echo "#define HAVE_FC_COMPILER_VERSION 1" >>confdefs.h 10986 10987else 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10989$as_echo "no" >&6; } 10990 10991fi 10992rm -f core conftest.err conftest.$ac_objext \ 10993 conftest$ac_exeext conftest.$ac_ext 10994 10995 10996 10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts \"line-number\" lines cast by the preprocessor" >&5 10998$as_echo_n "checking whether the compiler accepts \"line-number\" lines cast by the preprocessor... " >&6; } 10999cat > conftest.$ac_ext <<_ACEOF 11000 program main 11001# 1 11002 end 11003_ACEOF 11004if ac_fn_fc_try_compile "$LINENO"; then : 11005 acx_f90_accepts_line_numbers_ok=yes 11006 11007$as_echo "#define F90_ACCEPTS_LINE_NUMBERS 1" >>confdefs.h 11008 11009else 11010 acx_f90_accepts_line_numbers_ok=no 11011fi 11012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11013F90_ACCEPTS_LINE_NUMBERS=$acx_f90_accepts_line_numbers_ok 11014 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_f90_accepts_line_numbers_ok" >&5 11016$as_echo "$acx_f90_accepts_line_numbers_ok" >&6; } 11017 11018 11019 11020 11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access command line arguments" >&5 11022$as_echo_n "checking how to access command line arguments... " >&6; } 11023 11024#try Fortran 2003 API first 11025 11026cat > conftest.$ac_ext <<_ACEOF 11027 program main 11028 11029 implicit none 11030 integer :: i 11031 character(len=32) :: arg 11032 i = command_argument_count() 11033 call get_command_argument(0, arg) 11034 11035 end 11036_ACEOF 11037if ac_fn_fc_try_link "$LINENO"; then : 11038 acx_command_line_arguments="Fortran 2003" 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Fortran 2003" >&5 11040$as_echo "Fortran 2003" >&6; } 11041 11042$as_echo "#define FC_COMMAND_LINE_ARGUMENTS 2003" >>confdefs.h 11043 11044else 11045 acx_command_line_arguments=none 11046fi 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049 11050if test "$acx_command_line_arguments" == "none" ; then 11051 11052#Fortran 77 11053 11054#some compilers require a module or include 11055# NAS NAG DEC? PGI 11056acx_command_line_sources="intrinsic nas_system f90_unix_env dfport lib3f.h" 11057 11058for acx_command_line_source in $acx_command_line_sources 11059do 11060 11061acx_cl_usemodule="" 11062acx_cl_includeheader="" 11063 11064case $acx_command_line_source in 11065 intrinsic) ;; 11066 lib3f.h) acx_cl_includeheader="include 'lib3f.h'" ;; 11067 *) acx_cl_usemodule="use "$acx_command_line_source ;; 11068esac 11069 11070cat > conftest.$ac_ext <<_ACEOF 11071 program main 11072 11073 $acx_cl_usemodule 11074 implicit none 11075 $acx_cl_includeheader 11076 11077 integer :: i 11078 character(len=32) :: arg 11079 i = iargc() 11080 call getarg(0, arg) 11081 11082 end 11083_ACEOF 11084if ac_fn_fc_try_link "$LINENO"; then : 11085 11086 11087$as_echo "#define FC_COMMAND_LINE_ARGUMENTS 77" >>confdefs.h 11088 11089 acx_command_line_arguments=$acx_command_line_source 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fortran 77 $acx_command_line_arguments" >&5 11091$as_echo "fortran 77 $acx_command_line_arguments" >&6; } 11092 break 11093 11094fi 11095rm -f core conftest.err conftest.$ac_objext \ 11096 conftest$ac_exeext conftest.$ac_ext 11097done 11098 11099case $acx_command_line_arguments in 11100 none) ;; 11101 intrinsic) 11102 11103$as_echo "#define FC_COMMAND_LINE_INTRINSIC 1" >>confdefs.h 11104;; 11105 lib3f.h) 11106 11107cat >>confdefs.h <<_ACEOF 11108#define FC_COMMAND_LINE_INCLUDE '$acx_command_line_arguments' 11109_ACEOF 11110;; 11111 *) 11112 11113cat >>confdefs.h <<_ACEOF 11114#define FC_COMMAND_LINE_MODULE $acx_command_line_arguments 11115_ACEOF 11116;; 11117esac 11118 11119fi 11120 11121if test "$acx_command_line_arguments" == "none" ; then 11122 11123#last resource, implicit 11124cat > conftest.$ac_ext <<_ACEOF 11125 program main 11126 11127 11128 implicit none 11129 11130 interface iargc 11131 integer function iargc() 11132 end function iargc 11133 end interface 11134 11135 interface getarg 11136 subroutine getarg(c, a) 11137 integer :: c 11138 character(len=*) :: a 11139 end subroutine getarg 11140 end interface 11141 11142 integer :: i 11143 character(len=32) :: arg 11144 i = iargc() 11145 call getarg(0, arg) 11146 11147 end 11148_ACEOF 11149if ac_fn_fc_try_link "$LINENO"; then : 11150 11151 acx_command_line_arguments=implicit 11152 11153$as_echo "#define FC_COMMAND_LINE_IMPLICIT 1" >>confdefs.h 11154 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fortran 77 $acx_command_line_arguments" >&5 11156$as_echo "fortran 77 $acx_command_line_arguments" >&6; } 11157 11158 11159fi 11160rm -f core conftest.err conftest.$ac_objext \ 11161 conftest$ac_exeext conftest.$ac_ext 11162fi 11163 11164if test "$acx_command_line_arguments" == "none" ; then 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find how to access command line from Fortran. 11166 *** Some utilities will not work." >&5 11167$as_echo "$as_me: WARNING: Could not find how to access command line from Fortran. 11168 *** Some utilities will not work." >&2;} 11169fi 11170 11171 11172 11173 11174 11175 11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 2003 iso_c_binding" >&5 11177$as_echo_n "checking for Fortran 2003 iso_c_binding... " >&6; } 11178 11179testprog=" program main 11180 11181 use iso_c_binding 11182 implicit none 11183 type(c_ptr) :: ptr 11184 ptr = c_null_ptr 11185 if (c_associated(ptr)) stop 3 11186 end" 11187 11188acx_iso_c_binding_ok=no 11189cat > conftest.$ac_ext <<_ACEOF 11190$testprog 11191_ACEOF 11192if ac_fn_fc_try_link "$LINENO"; then : 11193 acx_iso_c_binding_ok=yes 11194fi 11195rm -f core conftest.err conftest.$ac_objext \ 11196 conftest$ac_exeext conftest.$ac_ext 11197 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_iso_c_binding_ok" >&5 11199$as_echo "$acx_iso_c_binding_ok" >&6; } 11200if test x"$acx_iso_c_binding_ok" = xyes; then 11201 11202$as_echo "#define ISO_C_BINDING 1" >>confdefs.h 11203 11204 11205else 11206 as_fn_error $? "could not find required Fortran 2003 iso_c_binding" "$LINENO" 5 11207fi 11208 11209 11210 11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 11212$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } 11213if ${ax_cv_f90_modflag+:} false; then : 11214 $as_echo_n "(cached) " >&6 11215else 11216 ac_ext=${ac_fc_srcext-f} 11217ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11218ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11219ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11220 11221i=0 11222while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do 11223 i=`expr $i + 1` 11224done 11225mkdir tmpdir_$i 11226cd tmpdir_$i 11227cat > conftest.$ac_ext <<_ACEOF 11228module conftest_module 11229 contains 11230 subroutine conftest_routine 11231 write(*,'(a)') 'gotcha!' 11232 end subroutine conftest_routine 11233 end module conftest_module 11234 11235_ACEOF 11236if ac_fn_fc_try_compile "$LINENO"; then : 11237 11238fi 11239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11240cd .. 11241ax_cv_f90_modflag="not found" 11242for ax_flag in "-I " "-I" "-M" "-p"; do 11243 if test "$ax_cv_f90_modflag" = "not found" ; then 11244 ax_save_FCFLAGS="$FCFLAGS" 11245 FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i" 11246 cat > conftest.$ac_ext <<_ACEOF 11247program conftest_program 11248 use conftest_module 11249 call conftest_routine 11250 end program conftest_program 11251 11252_ACEOF 11253if ac_fn_fc_try_compile "$LINENO"; then : 11254 ax_cv_f90_modflag="$ax_flag" 11255fi 11256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11257 FCFLAGS="$ax_save_FCFLAGS" 11258 fi 11259done 11260rm -fr tmpdir_$i 11261if test "$ax_flag" = "not found" ; then 11262 as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5 11263fi 11264ac_ext=${ac_fc_srcext-f} 11265ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11266ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11267ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11268 11269 11270fi 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 11272$as_echo "$ax_cv_f90_modflag" >&6; } 11273F90_MODULE_FLAG=$ax_cv_f90_modflag 11274 11275 11276if test "${HAVE_OPENMP}"; then 11277 11278 11279 OPENMP_FCFLAGS= 11280 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC option to support OpenMP" >&5 11282$as_echo_n "checking for $FC option to support OpenMP... " >&6; } 11283if ${ac_cv_prog_fc_openmp+:} false; then : 11284 $as_echo_n "(cached) " >&6 11285else 11286 cat > conftest.$ac_ext <<_ACEOF 11287 11288 program main 11289 implicit none 11290!$ integer tid 11291 tid = 42 11292 call omp_set_num_threads(2) 11293 end 11294 11295_ACEOF 11296if ac_fn_fc_try_link "$LINENO"; then : 11297 ac_cv_prog_fc_openmp='none needed' 11298else 11299 ac_cv_prog_fc_openmp='unsupported' 11300 for ac_option in -fopenmp -qopenmp -openmp -mp -omp -qsmp=omp -homp \ 11301 -Popenmp --openmp -xopenmp; do 11302 ac_save_FCFLAGS=$FCFLAGS 11303 FCFLAGS="$FCFLAGS $ac_option" 11304 cat > conftest.$ac_ext <<_ACEOF 11305 11306 program main 11307 implicit none 11308!$ integer tid 11309 tid = 42 11310 call omp_set_num_threads(2) 11311 end 11312 11313_ACEOF 11314if ac_fn_fc_try_link "$LINENO"; then : 11315 ac_cv_prog_fc_openmp=$ac_option 11316fi 11317rm -f core conftest.err conftest.$ac_objext \ 11318 conftest$ac_exeext conftest.$ac_ext 11319 FCFLAGS=$ac_save_FCFLAGS 11320 if test "$ac_cv_prog_fc_openmp" != unsupported; then 11321 break 11322 fi 11323 done 11324fi 11325rm -f core conftest.err conftest.$ac_objext \ 11326 conftest$ac_exeext conftest.$ac_ext 11327fi 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_openmp" >&5 11329$as_echo "$ac_cv_prog_fc_openmp" >&6; } 11330 case $ac_cv_prog_fc_openmp in #( 11331 unsupported) 11332 ;; #( 11333 "none needed" ) 11334 11335$as_echo "#define HAVE_OPENMP 1" >>confdefs.h 11336 ;; #( 11337 *) 11338 OPENMP_FCFLAGS=$ac_cv_prog_fc_openmp 11339 11340$as_echo "#define HAVE_OPENMP 1" >>confdefs.h 11341 ;; 11342 esac 11343 11344 11345 11346 FCFLAGS="$FCFLAGS $OPENMP_FCFLAGS" 11347fi 11348 11349 11350if test x"${DEBUG}" = x"no" ; then 11351 11352$as_echo "#define NDEBUG yes" >>confdefs.h 11353 11354fi 11355 11356 11357UTILITY_PROGRAMS='$(EXTRA_PROGRAMS)' 11358 11359 11360 11361# Check whether --with-max-dim was given. 11362if test "${with_max_dim+set}" = set; then : 11363 withval=$with_max_dim; maxdim=$withval 11364else 11365 maxdim=3 11366fi 11367 11368 11369if test $maxdim -lt 3; then 11370 as_fn_error $? "max-dim must be at least 3" "$LINENO" 5 11371fi 11372 11373 11374cat >>confdefs.h <<_ACEOF 11375#define MAX_DIM $maxdim 11376_ACEOF 11377 11378 11379 11380 11381acx_libxc_ok=no 11382acx_libxc_v3=no 11383acx_libxc_v4=no 11384acx_libxc_v5=no 11385 11386 11387# Check whether --with-libxc-prefix was given. 11388if test "${with_libxc_prefix+set}" = set; then : 11389 withval=$with_libxc_prefix; 11390fi 11391 11392 11393# Set FCFLAGS_LIBXC only if not set from environment 11394if test x"$FCFLAGS_LIBXC" = x; then 11395 case $with_libxc_prefix in 11396 "") FCFLAGS_LIBXC="$ax_cv_f90_modflag/usr/include" ;; 11397 *) FCFLAGS_LIBXC="$ax_cv_f90_modflag$with_libxc_prefix/include" ;; 11398 esac 11399fi 11400 11401 11402# Check whether --with-libxc-include was given. 11403if test "${with_libxc_include+set}" = set; then : 11404 withval=$with_libxc_include; 11405fi 11406 11407case $with_libxc_include in 11408 "") ;; 11409 *) FCFLAGS_LIBXC="$ax_cv_f90_modflag$with_libxc_include" ;; 11410esac 11411 11412acx_libxc_save_LIBS="$LIBS" 11413acx_libxc_save_FCFLAGS="$FCFLAGS" 11414 11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 11416$as_echo_n "checking for libxc... " >&6; } 11417 11418testprog3=" program main 11419 11420 use xc_f03_lib_m 11421 implicit none 11422 integer :: major 11423 integer :: minor 11424 integer :: micro 11425 call xc_f03_version(major, minor, micro) 11426 end" 11427 11428testprog4=" program main 11429 11430 use xc_f03_lib_m 11431 implicit none 11432 integer :: major 11433 integer :: minor 11434 integer :: micro 11435 integer :: flags = XC_FLAGS_NEEDS_LAPLACIAN 11436 call xc_f03_version(major, minor, micro) 11437 write(*,*) flags 11438 end" 11439 11440testprog5=" program main 11441 11442 use xc_f90_lib_m 11443 implicit none 11444 integer :: major 11445 integer :: minor 11446 integer :: micro 11447 integer :: flags = XC_FLAGS_HAVE_ALL 11448 call xc_f90_version(major, minor, micro) 11449 write(*,*) flags 11450 end" 11451 11452FCFLAGS="$FCFLAGS_LIBXC $acx_libxc_save_FCFLAGS" 11453 11454# set from environment variable, if not blank 11455if test ! -z "$LIBS_LIBXC"; then 11456 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11457 cat > conftest.$ac_ext <<_ACEOF 11458$testprog3 11459_ACEOF 11460if ac_fn_fc_try_link "$LINENO"; then : 11461 acx_libxc_ok=yes 11462fi 11463rm -f core conftest.err conftest.$ac_objext \ 11464 conftest$ac_exeext conftest.$ac_ext 11465fi 11466 11467if test ! -z "$with_libxc_prefix"; then 11468 # static linkage, version 5 11469 if test x"$acx_libxc_ok" = xno; then 11470 LIBS_LIBXC="$with_libxc_prefix/lib/libxcf90.a $with_libxc_prefix/lib/libxc.a" 11471 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11472 cat > conftest.$ac_ext <<_ACEOF 11473$testprog5 11474_ACEOF 11475if ac_fn_fc_try_link "$LINENO"; then : 11476 acx_libxc_ok=yes; acx_libxc_v5=yes 11477fi 11478rm -f core conftest.err conftest.$ac_objext \ 11479 conftest$ac_exeext conftest.$ac_ext 11480 fi 11481 11482 # static linkage, version 4 11483 if test x"$acx_libxc_ok" = xno; then 11484 LIBS_LIBXC="$with_libxc_prefix/lib/libxcf03.a $with_libxc_prefix/lib/libxc.a" 11485 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11486 cat > conftest.$ac_ext <<_ACEOF 11487$testprog4 11488_ACEOF 11489if ac_fn_fc_try_link "$LINENO"; then : 11490 acx_libxc_ok=yes; acx_libxc_v4=yes 11491fi 11492rm -f core conftest.err conftest.$ac_objext \ 11493 conftest$ac_exeext conftest.$ac_ext 11494 fi 11495 11496 # static linkage, version 3 11497 if test x"$acx_libxc_ok" = xno; then 11498 LIBS_LIBXC="$with_libxc_prefix/lib/libxcf03.a $with_libxc_prefix/lib/libxc.a" 11499 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11500 cat > conftest.$ac_ext <<_ACEOF 11501$testprog3 11502_ACEOF 11503if ac_fn_fc_try_link "$LINENO"; then : 11504 acx_libxc_ok=yes; acx_libxc_v3=yes 11505fi 11506rm -f core conftest.err conftest.$ac_objext \ 11507 conftest$ac_exeext conftest.$ac_ext 11508 fi 11509fi 11510 11511# dynamic linkage, version 5 11512if test x"$acx_libxc_ok" = xno; then 11513 if test ! -z "$with_libxc_prefix"; then 11514 LIBS_LIBXC="-L$with_libxc_prefix/lib" 11515 else 11516 LIBS_LIBXC="" 11517 fi 11518 LIBS_LIBXC="$LIBS_LIBXC -lxcf90 -lxc" 11519 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11520 cat > conftest.$ac_ext <<_ACEOF 11521$testprog5 11522_ACEOF 11523if ac_fn_fc_try_link "$LINENO"; then : 11524 acx_libxc_ok=yes; acx_libxc_v5=yes 11525fi 11526rm -f core conftest.err conftest.$ac_objext \ 11527 conftest$ac_exeext conftest.$ac_ext 11528fi 11529 11530# dynamic linkage, version 4 11531if test x"$acx_libxc_ok" = xno; then 11532 if test ! -z "$with_libxc_prefix"; then 11533 LIBS_LIBXC="-L$with_libxc_prefix/lib" 11534 else 11535 LIBS_LIBXC="" 11536 fi 11537 LIBS_LIBXC="$LIBS_LIBXC -lxcf03 -lxc" 11538 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11539 cat > conftest.$ac_ext <<_ACEOF 11540$testprog4 11541_ACEOF 11542if ac_fn_fc_try_link "$LINENO"; then : 11543 acx_libxc_ok=yes; acx_libxc_v4=yes 11544fi 11545rm -f core conftest.err conftest.$ac_objext \ 11546 conftest$ac_exeext conftest.$ac_ext 11547fi 11548 11549# dynamic linkage, version 3 11550if test x"$acx_libxc_ok" = xno; then 11551 if test ! -z "$with_libxc_prefix"; then 11552 LIBS_LIBXC="-L$with_libxc_prefix/lib" 11553 else 11554 LIBS_LIBXC="" 11555 fi 11556 LIBS_LIBXC="$LIBS_LIBXC -lxcf03 -lxc" 11557 LIBS="$LIBS_LIBXC $acx_libxc_save_LIBS" 11558 cat > conftest.$ac_ext <<_ACEOF 11559$testprog3 11560_ACEOF 11561if ac_fn_fc_try_link "$LINENO"; then : 11562 acx_libxc_ok=yes; acx_libxc_v3=yes 11563fi 11564rm -f core conftest.err conftest.$ac_objext \ 11565 conftest$ac_exeext conftest.$ac_ext 11566fi 11567 11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libxc_ok ($FCFLAGS_LIBXC $LIBS_LIBXC)" >&5 11569$as_echo "$acx_libxc_ok ($FCFLAGS_LIBXC $LIBS_LIBXC)" >&6; } 11570 11571if test x"$acx_libxc_ok" = xyes; then 11572 11573$as_echo "#define HAVE_LIBXC 1" >>confdefs.h 11574 11575else 11576 as_fn_error $? "Could not find required libxc library ( >= v 3.0.0)." "$LINENO" 5 11577fi 11578 11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxc version is 3.0" >&5 11580$as_echo_n "checking whether libxc version is 3.0... " >&6; } 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libxc_v3" >&5 11582$as_echo "$acx_libxc_v3" >&6; } 11583 11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxc version is 4" >&5 11585$as_echo_n "checking whether libxc version is 4... " >&6; } 11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libxc_v4" >&5 11587$as_echo "$acx_libxc_v4" >&6; } 11588 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxc version is 5" >&5 11590$as_echo_n "checking whether libxc version is 5... " >&6; } 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libxc_v5" >&5 11592$as_echo "$acx_libxc_v5" >&6; } 11593 11594if test x"$acx_libxc_v3" = xyes; then 11595 11596$as_echo "#define HAVE_LIBXC3 1" >>confdefs.h 11597 11598fi 11599 11600if test x"$acx_libxc_v4" = xyes; then 11601 11602$as_echo "#define HAVE_LIBXC4 1" >>confdefs.h 11603 11604fi 11605 11606if test x"$acx_libxc_v5" = xyes; then 11607 11608$as_echo "#define HAVE_LIBXC5 1" >>confdefs.h 11609 11610fi 11611 11612 11613 11614FCFLAGS="$acx_libxc_save_FCFLAGS" 11615LIBS="$acx_libxc_save_LIBS" 11616 11617 11618 11619 acx_libvdwxc_ok=no 11620 acx_libvdwxc_mpi_ok=no 11621 11622 acx_libvdwxc_save_LIBS="$LIBS" 11623 acx_libvdwxc_save_FCFLAGS="$FCFLAGS" 11624 11625 11626# Check whether --with-libvdwxc-prefix was given. 11627if test "${with_libvdwxc_prefix+set}" = set; then : 11628 withval=$with_libvdwxc_prefix; 11629fi 11630 11631 11632 if test x"$FCFLAGS_LIBVDWXC" = x; then 11633 case $with_libvdwxc_prefix in 11634 "") FCFLAGS_LIBVDWXC="-I/usr/include" ;; 11635 *) FCFLAGS_LIBVDWXC="-I$with_libvdwxc_prefix/include" ;; 11636 esac 11637 fi 11638 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvdwxc" >&5 11640$as_echo_n "checking for libvdwxc... " >&6; } 11641 11642 libvdwxc_program_serial=" program main 11643 11644 implicit none 11645 11646 include 'vdwxcfort.f90' 11647 11648 integer, pointer :: vdw 11649 11650 call vdwxc_new(1, vdw) 11651 call vdwxc_print(vdw) 11652 call vdwxc_init_serial(vdw) 11653 call vdwxc_finalize(vdw) 11654 11655 end" 11656 11657 libvdwxc_program_mpi=" program main 11658 11659 implicit none 11660 11661 include 'vdwxcfort.f90' 11662 11663 integer, pointer :: vdw 11664 integer :: has_mpi 11665 11666 call vdwxc_new(1, vdw) 11667 ! We are supposed to pass a communicator like MPI_COMM_WORLD below, 11668 ! but I do not know how to get that here. We pass 42 instead. 11669 ! The build system is happy as long as it compiles. 11670 call vdwxc_init_mpi(vdw, 42) 11671 call vdwxc_finalize(vdw) 11672 11673 end" 11674 11675 FCFLAGS="$FCFLAGS_LIBVDWXC $acx_libvdwxc_save_FCFLAGS" 11676 11677 if test ! -z "$with_libvdwxc_prefix"; then 11678 LIBS_LIBVDWXC="-L$with_libvdwxc_prefix/lib -lvdwxcfort" 11679 else 11680 LIBS_LIBVDWXC="-lvdwxcfort" 11681 fi 11682 11683 LIBS="$LIBS_LIBVDWXC $acx_libvdwxc_save_LIBS" 11684 cat > conftest.$ac_ext <<_ACEOF 11685$libvdwxc_program_serial 11686_ACEOF 11687if ac_fn_fc_try_link "$LINENO"; then : 11688 acx_libvdwxc_ok=yes 11689else 11690 acx_libvdwxc_ok=no 11691fi 11692rm -f core conftest.err conftest.$ac_objext \ 11693 conftest$ac_exeext conftest.$ac_ext 11694 cat > conftest.$ac_ext <<_ACEOF 11695$libvdwxc_program_mpi 11696_ACEOF 11697if ac_fn_fc_try_link "$LINENO"; then : 11698 acx_libvdwxc_mpi_ok=yes 11699else 11700 acx_libvdwxc_mpi_ok=no 11701fi 11702rm -f core conftest.err conftest.$ac_objext \ 11703 conftest$ac_exeext conftest.$ac_ext 11704 11705 11706 if test x"$acx_libvdwxc_ok" = xyes; then 11707 11708$as_echo "#define HAVE_LIBVDWXC 1" >>confdefs.h 11709 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libvdwxc_ok ($FCFLAGS_LIBVDWXC $LIBS_LIBVDWXC)" >&5 11711$as_echo "$acx_libvdwxc_ok ($FCFLAGS_LIBVDWXC $LIBS_LIBVDWXC)" >&6; } 11712 if test x"$acx_libvdwxc_mpi_ok" = xyes; then 11713 11714$as_echo "#define HAVE_LIBVDWXC_MPI 1" >>confdefs.h 11715 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libvdwxc_mpi_ok" >&5 11717$as_echo "$acx_libvdwxc_mpi_ok" >&6; } 11718 else 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libvdwxc not compiled with MPI, cannot be used with domain decomposition" >&5 11720$as_echo "$as_me: WARNING: libvdwxc not compiled with MPI, cannot be used with domain decomposition" >&2;} 11721 fi 11722 else 11723 LIBS_LIBVDWXC="" 11724 FCFLAGS_LIBVDWXC="" 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libvdwxc_ok" >&5 11726$as_echo "$acx_libvdwxc_ok" >&6; } 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libvdwxc library. 11728 *** Will compile without libvdwxc support" >&5 11729$as_echo "$as_me: WARNING: Could not find libvdwxc library. 11730 *** Will compile without libvdwxc support" >&2;} 11731 fi 11732 11733 11734 11735 11736 FCFLAGS="$acx_libvdwxc_save_FCFLAGS" 11737 LIBS="$acx_libvdwxc_save_LIBS" 11738 11739 11740 11741 11742 11743ac_ext=${ac_fc_srcext-f} 11744ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11745ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11746ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11747 11748acx_blas_ok=no 11749 11750 11751sgemm=sgemm 11752dgemm=dgemm 11753 11754 11755 11756# Check whether --with-blas was given. 11757if test "${with_blas+set}" = set; then : 11758 withval=$with_blas; 11759fi 11760 11761case $with_blas in 11762 yes | "") ;; 11763 no) acx_blas_ok=disable ;; 11764 -* | */* | *.a | *.so | *.so.* | *.o) LIBS_BLAS="$with_blas" ;; 11765 *) LIBS_BLAS="-l$with_blas" ;; 11766esac 11767 11768acx_blas_save_LIBS="$LIBS" 11769LIBS="$LIBS_BLAS $LIBS $FLIBS" 11770 11771if test $acx_blas_ok = no; then 11772 if test "x$LIBS_BLAS" != x; then 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $LIBS_BLAS" >&5 11774$as_echo_n "checking for $sgemm in $LIBS_BLAS... " >&6; } 11775 cat > conftest.$ac_ext <<_ACEOF 11776 program main 11777 call $sgemm 11778 end 11779_ACEOF 11780if ac_fn_fc_try_link "$LINENO"; then : 11781 acx_blas_ok=yes 11782fi 11783rm -f core conftest.err conftest.$ac_objext \ 11784 conftest$ac_exeext conftest.$ac_ext 11785 if test $acx_blas_ok = no; then 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 11787$as_echo "$acx_blas_ok" >&6; } 11788 else 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok ($LIBS_BLAS)" >&5 11790$as_echo "$acx_blas_ok ($LIBS_BLAS)" >&6; } 11791 fi 11792 fi 11793fi 11794 11795if test $acx_blas_ok = no; then 11796 as_ac_var=`$as_echo "ac_cv_func_$sgemm" | $as_tr_sh` 11797ac_fn_fc_check_func "$LINENO" "$sgemm" "$as_ac_var" 11798if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11799 acx_blas_ok=yes 11800fi 11801 11802fi 11803 11804if test $acx_blas_ok = no; then 11805 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 11807$as_echo_n "checking for $sgemm in -lblas... " >&6; } 11808if eval \${$as_ac_Lib+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 ac_check_lib_save_LIBS=$LIBS 11812LIBS="-lblas $LIBS" 11813cat > conftest.$ac_ext <<_ACEOF 11814 program main 11815 call $sgemm 11816 end 11817_ACEOF 11818if ac_fn_fc_try_link "$LINENO"; then : 11819 eval "$as_ac_Lib=yes" 11820else 11821 eval "$as_ac_Lib=no" 11822fi 11823rm -f core conftest.err conftest.$ac_objext \ 11824 conftest$ac_exeext conftest.$ac_ext 11825LIBS=$ac_check_lib_save_LIBS 11826fi 11827eval ac_res=\$$as_ac_Lib 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11829$as_echo "$ac_res" >&6; } 11830if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11831 acx_blas_ok=yes; LIBS_BLAS="-lblas" 11832fi 11833 11834fi 11835 11836if test $acx_blas_ok = no; then 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 11838$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } 11839if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 ac_check_lib_save_LIBS=$LIBS 11843LIBS="-latlas $LIBS" 11844cat > conftest.$ac_ext <<_ACEOF 11845 program main 11846 call ATL_xerbla 11847 end 11848_ACEOF 11849if ac_fn_fc_try_link "$LINENO"; then : 11850 ac_cv_lib_atlas_ATL_xerbla=yes 11851else 11852 ac_cv_lib_atlas_ATL_xerbla=no 11853fi 11854rm -f core conftest.err conftest.$ac_objext \ 11855 conftest$ac_exeext conftest.$ac_ext 11856LIBS=$ac_check_lib_save_LIBS 11857fi 11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 11859$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } 11860if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then : 11861 as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5 11863$as_echo_n "checking for $sgemm in -lf77blas... " >&6; } 11864if eval \${$as_ac_Lib+:} false; then : 11865 $as_echo_n "(cached) " >&6 11866else 11867 ac_check_lib_save_LIBS=$LIBS 11868LIBS="-lf77blas -latlas $LIBS" 11869cat > conftest.$ac_ext <<_ACEOF 11870 program main 11871 call $sgemm 11872 end 11873_ACEOF 11874if ac_fn_fc_try_link "$LINENO"; then : 11875 eval "$as_ac_Lib=yes" 11876else 11877 eval "$as_ac_Lib=no" 11878fi 11879rm -f core conftest.err conftest.$ac_objext \ 11880 conftest$ac_exeext conftest.$ac_ext 11881LIBS=$ac_check_lib_save_LIBS 11882fi 11883eval ac_res=\$$as_ac_Lib 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11885$as_echo "$ac_res" >&6; } 11886if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5 11888$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; } 11889if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then : 11890 $as_echo_n "(cached) " >&6 11891else 11892 ac_check_lib_save_LIBS=$LIBS 11893LIBS="-lcblas -lf77blas -latlas $LIBS" 11894cat > conftest.$ac_ext <<_ACEOF 11895 program main 11896 call cblas_dgemm 11897 end 11898_ACEOF 11899if ac_fn_fc_try_link "$LINENO"; then : 11900 ac_cv_lib_cblas_cblas_dgemm=yes 11901else 11902 ac_cv_lib_cblas_cblas_dgemm=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext \ 11905 conftest$ac_exeext conftest.$ac_ext 11906LIBS=$ac_check_lib_save_LIBS 11907fi 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 11909$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; } 11910if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then : 11911 acx_blas_ok=yes LIBS_BLAS="$LIBS_BLAS -lcblas -lf77blas -latlas" 11912fi 11913 11914fi 11915 11916 11917fi 11918 11919fi 11920 11921if test $acx_blas_ok = no; then 11922 as_ac_Lib=`$as_echo "ac_cv_lib_atlas_$sgemm" | $as_tr_sh` 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -latlas" >&5 11924$as_echo_n "checking for $sgemm in -latlas... " >&6; } 11925if eval \${$as_ac_Lib+:} false; then : 11926 $as_echo_n "(cached) " >&6 11927else 11928 ac_check_lib_save_LIBS=$LIBS 11929LIBS="-latlas -L/usr/lib/atlas/ -lblas $LIBS" 11930cat > conftest.$ac_ext <<_ACEOF 11931 program main 11932 call $sgemm 11933 end 11934_ACEOF 11935if ac_fn_fc_try_link "$LINENO"; then : 11936 eval "$as_ac_Lib=yes" 11937else 11938 eval "$as_ac_Lib=no" 11939fi 11940rm -f core conftest.err conftest.$ac_objext \ 11941 conftest$ac_exeext conftest.$ac_ext 11942LIBS=$ac_check_lib_save_LIBS 11943fi 11944eval ac_res=\$$as_ac_Lib 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11946$as_echo "$ac_res" >&6; } 11947if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11948 acx_blas_ok=yes; LIBS_BLAS="-L/usr/lib/atlas/ -lblas -latlas" 11949fi 11950 11951fi 11952 11953if test $acx_blas_ok = no; then 11954 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_ia32_$sgemm" | $as_tr_sh` 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_ia32" >&5 11956$as_echo_n "checking for $sgemm in -lmkl_ia32... " >&6; } 11957if eval \${$as_ac_Lib+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 ac_check_lib_save_LIBS=$LIBS 11961LIBS="-lmkl_ia32 -lguide -lpthread $LIBS" 11962cat > conftest.$ac_ext <<_ACEOF 11963 program main 11964 call $sgemm 11965 end 11966_ACEOF 11967if ac_fn_fc_try_link "$LINENO"; then : 11968 eval "$as_ac_Lib=yes" 11969else 11970 eval "$as_ac_Lib=no" 11971fi 11972rm -f core conftest.err conftest.$ac_objext \ 11973 conftest$ac_exeext conftest.$ac_ext 11974LIBS=$ac_check_lib_save_LIBS 11975fi 11976eval ac_res=\$$as_ac_Lib 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11978$as_echo "$ac_res" >&6; } 11979if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11980 acx_blas_ok=yes; LIBS_BLAS="$LIBS_BLAS -lmkl_ia32 -lguide -lpthread" 11981fi 11982 11983fi 11984 11985if test $acx_blas_ok = no; then 11986 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_def_$sgemm" | $as_tr_sh` 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl_def" >&5 11988$as_echo_n "checking for $sgemm in -lmkl_def... " >&6; } 11989if eval \${$as_ac_Lib+:} false; then : 11990 $as_echo_n "(cached) " >&6 11991else 11992 ac_check_lib_save_LIBS=$LIBS 11993LIBS="-lmkl_def -lguide -lpthread $LIBS" 11994cat > conftest.$ac_ext <<_ACEOF 11995 program main 11996 call $sgemm 11997 end 11998_ACEOF 11999if ac_fn_fc_try_link "$LINENO"; then : 12000 eval "$as_ac_Lib=yes" 12001else 12002 eval "$as_ac_Lib=no" 12003fi 12004rm -f core conftest.err conftest.$ac_objext \ 12005 conftest$ac_exeext conftest.$ac_ext 12006LIBS=$ac_check_lib_save_LIBS 12007fi 12008eval ac_res=\$$as_ac_Lib 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12010$as_echo "$ac_res" >&6; } 12011if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12012 acx_blas_ok=yes; LIBS_BLAS="$LIBS_BLAS -lmkl_def -lguide -lpthread" 12013fi 12014 12015fi 12016 12017if test $acx_blas_ok = no; then 12018 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 12020$as_echo_n "checking for $sgemm in -lblas... " >&6; } 12021if eval \${$as_ac_Lib+:} false; then : 12022 $as_echo_n "(cached) " >&6 12023else 12024 ac_check_lib_save_LIBS=$LIBS 12025LIBS="-lblas $LIBS" 12026cat > conftest.$ac_ext <<_ACEOF 12027 program main 12028 call $sgemm 12029 end 12030_ACEOF 12031if ac_fn_fc_try_link "$LINENO"; then : 12032 eval "$as_ac_Lib=yes" 12033else 12034 eval "$as_ac_Lib=no" 12035fi 12036rm -f core conftest.err conftest.$ac_objext \ 12037 conftest$ac_exeext conftest.$ac_ext 12038LIBS=$ac_check_lib_save_LIBS 12039fi 12040eval ac_res=\$$as_ac_Lib 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12042$as_echo "$ac_res" >&6; } 12043if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12044 as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5 12046$as_echo_n "checking for $dgemm in -ldgemm... " >&6; } 12047if eval \${$as_ac_Lib+:} false; then : 12048 $as_echo_n "(cached) " >&6 12049else 12050 ac_check_lib_save_LIBS=$LIBS 12051LIBS="-ldgemm -lblas $LIBS" 12052cat > conftest.$ac_ext <<_ACEOF 12053 program main 12054 call $dgemm 12055 end 12056_ACEOF 12057if ac_fn_fc_try_link "$LINENO"; then : 12058 eval "$as_ac_Lib=yes" 12059else 12060 eval "$as_ac_Lib=no" 12061fi 12062rm -f core conftest.err conftest.$ac_objext \ 12063 conftest$ac_exeext conftest.$ac_ext 12064LIBS=$ac_check_lib_save_LIBS 12065fi 12066eval ac_res=\$$as_ac_Lib 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12068$as_echo "$ac_res" >&6; } 12069if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12070 as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5 12072$as_echo_n "checking for $sgemm in -lsgemm... " >&6; } 12073if eval \${$as_ac_Lib+:} false; then : 12074 $as_echo_n "(cached) " >&6 12075else 12076 ac_check_lib_save_LIBS=$LIBS 12077LIBS="-lsgemm -lblas $LIBS" 12078cat > conftest.$ac_ext <<_ACEOF 12079 program main 12080 call $sgemm 12081 end 12082_ACEOF 12083if ac_fn_fc_try_link "$LINENO"; then : 12084 eval "$as_ac_Lib=yes" 12085else 12086 eval "$as_ac_Lib=no" 12087fi 12088rm -f core conftest.err conftest.$ac_objext \ 12089 conftest$ac_exeext conftest.$ac_ext 12090LIBS=$ac_check_lib_save_LIBS 12091fi 12092eval ac_res=\$$as_ac_Lib 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12094$as_echo "$ac_res" >&6; } 12095if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12096 acx_blas_ok=yes; LIBS_BLAS="$LIBS_BLAS -lsgemm -ldgemm -lblas" 12097fi 12098 12099fi 12100 12101 12102fi 12103 12104fi 12105 12106if test $acx_blas_ok = no; then 12107 if test "x$GCC" != xyes; then # only works with Sun CC 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 12109$as_echo_n "checking for acosp in -lsunmath... " >&6; } 12110if ${ac_cv_lib_sunmath_acosp+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112else 12113 ac_check_lib_save_LIBS=$LIBS 12114LIBS="-lsunmath $LIBS" 12115cat > conftest.$ac_ext <<_ACEOF 12116 program main 12117 call acosp 12118 end 12119_ACEOF 12120if ac_fn_fc_try_link "$LINENO"; then : 12121 ac_cv_lib_sunmath_acosp=yes 12122else 12123 ac_cv_lib_sunmath_acosp=no 12124fi 12125rm -f core conftest.err conftest.$ac_objext \ 12126 conftest$ac_exeext conftest.$ac_ext 12127LIBS=$ac_check_lib_save_LIBS 12128fi 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5 12130$as_echo "$ac_cv_lib_sunmath_acosp" >&6; } 12131if test "x$ac_cv_lib_sunmath_acosp" = xyes; then : 12132 as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh` 12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5 12134$as_echo_n "checking for $sgemm in -lsunperf... " >&6; } 12135if eval \${$as_ac_Lib+:} false; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 ac_check_lib_save_LIBS=$LIBS 12139LIBS="-lsunperf -lsunmath $LIBS" 12140cat > conftest.$ac_ext <<_ACEOF 12141 program main 12142 call $sgemm 12143 end 12144_ACEOF 12145if ac_fn_fc_try_link "$LINENO"; then : 12146 eval "$as_ac_Lib=yes" 12147else 12148 eval "$as_ac_Lib=no" 12149fi 12150rm -f core conftest.err conftest.$ac_objext \ 12151 conftest$ac_exeext conftest.$ac_ext 12152LIBS=$ac_check_lib_save_LIBS 12153fi 12154eval ac_res=\$$as_ac_Lib 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12156$as_echo "$ac_res" >&6; } 12157if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12158 LIBS_BLAS="$LIBS_BLAS -xlic_lib=sunperf -lsunmath" acx_blas_ok=yes 12159fi 12160 12161fi 12162 12163 fi 12164fi 12165 12166if test $acx_blas_ok = no; then 12167 unset ac_cv_lib_blas_$sgemm 12168 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 12170$as_echo_n "checking for $sgemm in -lblas... " >&6; } 12171if eval \${$as_ac_Lib+:} false; then : 12172 $as_echo_n "(cached) " >&6 12173else 12174 ac_check_lib_save_LIBS=$LIBS 12175LIBS="-lblas $LIBS" 12176cat > conftest.$ac_ext <<_ACEOF 12177 program main 12178 call $sgemm 12179 end 12180_ACEOF 12181if ac_fn_fc_try_link "$LINENO"; then : 12182 eval "$as_ac_Lib=yes" 12183else 12184 eval "$as_ac_Lib=no" 12185fi 12186rm -f core conftest.err conftest.$ac_objext \ 12187 conftest$ac_exeext conftest.$ac_ext 12188LIBS=$ac_check_lib_save_LIBS 12189fi 12190eval ac_res=\$$as_ac_Lib 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12192$as_echo "$ac_res" >&6; } 12193if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12194 as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh` 12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5 12196$as_echo_n "checking for $sgemm in -lessl... " >&6; } 12197if eval \${$as_ac_Lib+:} false; then : 12198 $as_echo_n "(cached) " >&6 12199else 12200 ac_check_lib_save_LIBS=$LIBS 12201LIBS="-lessl -lblas $LIBS" 12202cat > conftest.$ac_ext <<_ACEOF 12203 program main 12204 call $sgemm 12205 end 12206_ACEOF 12207if ac_fn_fc_try_link "$LINENO"; then : 12208 eval "$as_ac_Lib=yes" 12209else 12210 eval "$as_ac_Lib=no" 12211fi 12212rm -f core conftest.err conftest.$ac_objext \ 12213 conftest$ac_exeext conftest.$ac_ext 12214LIBS=$ac_check_lib_save_LIBS 12215fi 12216eval ac_res=\$$as_ac_Lib 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12218$as_echo "$ac_res" >&6; } 12219if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12220 acx_blas_ok=yes; LIBS_BLAS="$LIBS_BLAS -lessl -lblas" 12221fi 12222 12223fi 12224 12225fi 12226 12227for blas in acml goto mkl cxml dxml scs complib.sgimath blas; do 12228 if test $acx_blas_ok = no; then 12229 unset ac_cv_lib_$blas_$sgemm 12230 as_ac_Lib=`$as_echo "ac_cv_lib_$blas''_$sgemm" | $as_tr_sh` 12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -l$blas" >&5 12232$as_echo_n "checking for $sgemm in -l$blas... " >&6; } 12233if eval \${$as_ac_Lib+:} false; then : 12234 $as_echo_n "(cached) " >&6 12235else 12236 ac_check_lib_save_LIBS=$LIBS 12237LIBS="-l$blas $LIBS" 12238cat > conftest.$ac_ext <<_ACEOF 12239 program main 12240 call $sgemm 12241 end 12242_ACEOF 12243if ac_fn_fc_try_link "$LINENO"; then : 12244 eval "$as_ac_Lib=yes" 12245else 12246 eval "$as_ac_Lib=no" 12247fi 12248rm -f core conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext conftest.$ac_ext 12250LIBS=$ac_check_lib_save_LIBS 12251fi 12252eval ac_res=\$$as_ac_Lib 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12254$as_echo "$ac_res" >&6; } 12255if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12256 acx_blas_ok=yes; LIBS_BLAS="$LIBS_BLAS -l$blas" 12257fi 12258 12259 fi 12260done 12261 12262if test $acx_blas_ok = no; then 12263 unset ac_cv_lib_blas_$sgemm 12264 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 12266$as_echo_n "checking for $sgemm in -lblas... " >&6; } 12267if eval \${$as_ac_Lib+:} false; then : 12268 $as_echo_n "(cached) " >&6 12269else 12270 ac_check_lib_save_LIBS=$LIBS 12271LIBS="-lblas -lg2c $LIBS" 12272cat > conftest.$ac_ext <<_ACEOF 12273 program main 12274 call $sgemm 12275 end 12276_ACEOF 12277if ac_fn_fc_try_link "$LINENO"; then : 12278 eval "$as_ac_Lib=yes" 12279else 12280 eval "$as_ac_Lib=no" 12281fi 12282rm -f core conftest.err conftest.$ac_objext \ 12283 conftest$ac_exeext conftest.$ac_ext 12284LIBS=$ac_check_lib_save_LIBS 12285fi 12286eval ac_res=\$$as_ac_Lib 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12288$as_echo "$ac_res" >&6; } 12289if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12290 acx_blas_ok=yes; LIBS_BLAS="$LIBS_BLAS -lblas -lg2c" 12291fi 12292 12293fi 12294 12295 12296LIBS="$acx_blas_save_LIBS" 12297 12298if test x"$acx_blas_ok" = xyes; then 12299 12300$as_echo "#define HAVE_BLAS 1" >>confdefs.h 12301 12302 12303else 12304 as_fn_error $? "could not find required BLAS library" "$LINENO" 5 12305fi 12306 12307 12308 12309 12310 acx_enable_zdotc_test=yes 12311 # Check whether --enable-zdotc-test was given. 12312if test "${enable_zdotc_test+set}" = set; then : 12313 enableval=$enable_zdotc_test; acx_enable_zdotc_test=${enableval} 12314fi 12315 12316 12317 if test "x$acx_enable_zdotc_test" = "xyes"; then 12318 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zdotc works" >&5 12320$as_echo_n "checking whether zdotc works... " >&6; } 12321 12322 12323 acx_blas_save_LIBS="$LIBS" 12324 LIBS="$LIBS $LIBS_BLAS" 12325 12326 acx_zdotc_ok=yes 12327 12328 if test "$cross_compiling" = yes; then : 12329 acx_zdotc_ok=yes;echo -n "cross-compiling; assuming... " 12330else 12331 cat > conftest.$ac_ext <<_ACEOF 12332 program main 12333 12334complex(8), allocatable :: f1(:), f2(:) 12335complex(8) :: result1, result2 12336complex(8), external :: zdotc 12337integer :: nn, ii 12338 12339nn=100 12340 12341allocate(f1(nn), f2(nn)) 12342 12343result1 = cmplx(0.0d0,0.0d0,8) 12344do ii=1, nn 12345 f1(ii) = cmplx(exp(dble(ii)/dble(nn)), 0.0d0, 8) 12346 f2(ii) = cmplx(cos(dble(ii)/dble(nn)), 0.0d0, 8) 12347 result1 = result1 + exp(dble(ii)/dble(nn))*cos(dble(ii)/dble(nn)) 12348end do 12349 12350result2 = cmplx(0.0d0,0.0d0,8) 12351result2 = zdotc(nn,f1,1,f2,1) 12352 12353open(1, file='conftest.out') 12354if(abs(result1-result2) .lt. 1d-6) then 12355 write(1, '(a)') 'success' 12356endif 12357 12358deallocate(f1,f2) 12359 12360 end 12361_ACEOF 12362if ac_fn_fc_try_run "$LINENO"; then : 12363 12364 if test "x$acx_zdotc_ok" = "xyes"; then 12365 if test "x`cat conftest.out`" != "xsuccess"; then 12366 acx_zdotc_ok=no 12367 # program didn't crash, but gave wrong answer 12368 fi 12369 fi 12370 12371else 12372 acx_zdotc_ok=no 12373fi 12374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12375 conftest.$ac_objext conftest.beam conftest.$ac_ext 12376fi 12377 12378 12379 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_zdotc_ok" >&5 12381$as_echo "$acx_zdotc_ok" >&6; } 12382 LIBS="$acx_blas_save_LIBS" 12383 12384 if test "x$acx_zdotc_ok" = "xno"; then 12385 as_fn_error $? " 12386 12387 Blas was found, but the zdotc subroutine does not work 12388 properly. This probably means that your Blas implementation is 12389 incompatible with your Fortran compiler. 12390 12391 " "$LINENO" 5 12392 fi 12393 12394 fi 12395 12396 12397 12398 12399acx_lapack_ok=no 12400 12401if test "x$acx_blas_ok" != xyes; then 12402 acx_lapack_ok=noblas 12403fi 12404 12405cheev=cheev 12406 12407if test $acx_lapack_ok = no; then 12408 12409# Check whether --with-lapack was given. 12410if test "${with_lapack+set}" = set; then : 12411 withval=$with_lapack; 12412fi 12413 12414 case $with_lapack in 12415 yes | "") ;; 12416 no) acx_lapack_ok=disable ;; 12417 -* | */* | *.a | *.so | *.so.* | *.o) LIBS_LAPACK="$with_lapack" ;; 12418 *) LIBS_LAPACK="-l$with_lapack" ;; 12419 esac 12420fi 12421 12422acx_lapack_save_LIBS="$LIBS" 12423LIBS="$LIBS_LAPACK $LIBS_BLAS $LIBS $FLIBS" 12424 12425if test $acx_lapack_ok = no; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LIBS_LAPACK" >&5 12427$as_echo_n "checking for $cheev in $LIBS_LAPACK... " >&6; } 12428 cat > conftest.$ac_ext <<_ACEOF 12429 program main 12430 call $cheev 12431 end 12432_ACEOF 12433if ac_fn_fc_try_link "$LINENO"; then : 12434 acx_lapack_ok=yes 12435fi 12436rm -f core conftest.err conftest.$ac_objext \ 12437 conftest$ac_exeext conftest.$ac_ext 12438 if test $acx_lapack_ok = no; then 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 12440$as_echo "$acx_lapack_ok" >&6; } 12441 else 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok ($LIBS_LAPACK)" >&5 12443$as_echo "$acx_lapack_ok ($LIBS_LAPACK)" >&6; } 12444 fi 12445fi 12446 12447for lapack in mkl_lapack lapack lapack_rs6k acml; do 12448 if test $acx_lapack_ok = no; then 12449 as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 12451$as_echo_n "checking for $cheev in -l$lapack... " >&6; } 12452if eval \${$as_ac_Lib+:} false; then : 12453 $as_echo_n "(cached) " >&6 12454else 12455 ac_check_lib_save_LIBS=$LIBS 12456LIBS="-l$lapack $FLIBS $LIBS" 12457cat > conftest.$ac_ext <<_ACEOF 12458 program main 12459 call $cheev 12460 end 12461_ACEOF 12462if ac_fn_fc_try_link "$LINENO"; then : 12463 eval "$as_ac_Lib=yes" 12464else 12465 eval "$as_ac_Lib=no" 12466fi 12467rm -f core conftest.err conftest.$ac_objext \ 12468 conftest$ac_exeext conftest.$ac_ext 12469LIBS=$ac_check_lib_save_LIBS 12470fi 12471eval ac_res=\$$as_ac_Lib 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12473$as_echo "$ac_res" >&6; } 12474if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12475 acx_lapack_ok=yes; LIBS_LAPACK="$LIBS_LAPACK -l$lapack" 12476fi 12477 12478 fi 12479done 12480 12481 12482LIBS="$acx_lapack_save_LIBS" 12483 12484if test x"$acx_lapack_ok" = xyes; then 12485 12486$as_echo "#define HAVE_LAPACK 1" >>confdefs.h 12487 12488 12489else 12490 as_fn_error $? "could not find required LAPACK library" "$LINENO" 5 12491fi 12492 12493 12494ac_ext=c 12495ac_cpp='$CPP $CPPFLAGS' 12496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12498ac_compiler_gnu=$ac_cv_c_compiler_gnu 12499 12500 12501 12502# Check whether --with-gsl-prefix was given. 12503if test "${with_gsl_prefix+set}" = set; then : 12504 withval=$with_gsl_prefix; gsl_prefix="$withval" 12505else 12506 gsl_prefix="" 12507fi 12508 12509 12510# Check whether --with-gsl-exec-prefix was given. 12511if test "${with_gsl_exec_prefix+set}" = set; then : 12512 withval=$with_gsl_exec_prefix; gsl_exec_prefix="$withval" 12513else 12514 gsl_exec_prefix="" 12515fi 12516 12517 12518 if test "x${GSL_CONFIG+set}" != xset ; then 12519 if test "x$gsl_prefix" != x ; then 12520 GSL_CONFIG="$gsl_prefix/bin/gsl-config" 12521 fi 12522 if test "x$gsl_exec_prefix" != x ; then 12523 GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config" 12524 fi 12525 fi 12526 12527 # Extract the first word of "gsl-config", so it can be a program name with args. 12528set dummy gsl-config; ac_word=$2 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12530$as_echo_n "checking for $ac_word... " >&6; } 12531if ${ac_cv_path_GSL_CONFIG+:} false; then : 12532 $as_echo_n "(cached) " >&6 12533else 12534 case $GSL_CONFIG in 12535 [\\/]* | ?:[\\/]*) 12536 ac_cv_path_GSL_CONFIG="$GSL_CONFIG" # Let the user override the test with a path. 12537 ;; 12538 *) 12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12540for as_dir in $PATH 12541do 12542 IFS=$as_save_IFS 12543 test -z "$as_dir" && as_dir=. 12544 for ac_exec_ext in '' $ac_executable_extensions; do 12545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12546 ac_cv_path_GSL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12548 break 2 12549 fi 12550done 12551 done 12552IFS=$as_save_IFS 12553 12554 test -z "$ac_cv_path_GSL_CONFIG" && ac_cv_path_GSL_CONFIG="no" 12555 ;; 12556esac 12557fi 12558GSL_CONFIG=$ac_cv_path_GSL_CONFIG 12559if test -n "$GSL_CONFIG"; then 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSL_CONFIG" >&5 12561$as_echo "$GSL_CONFIG" >&6; } 12562else 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12564$as_echo "no" >&6; } 12565fi 12566 12567 12568 min_gsl_major_version=1 12569 min_gsl_minor_version=9 12570 12571 if test "$GSL_CONFIG" = "no" ; then 12572 no_gsl=yes 12573 as_fn_error $? "The gsl-config script installed by GSL could not be found. 12574 If GSL was installed in PREFIX, make sure PREFIX/bin is in 12575 your path, or set the GSL_CONFIG environment variable to the 12576 full path to gsl-config." "$LINENO" 5 12577 else 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL - version >= $min_gsl_major_version.$min_gsl_minor_version" >&5 12579$as_echo_n "checking for GSL - version >= $min_gsl_major_version.$min_gsl_minor_version... " >&6; } 12580 no_gsl="" 12581 GSL_CFLAGS=`$GSL_CONFIG --cflags` 12582 GSL_LIBS=`$GSL_CONFIG --libs` 12583 12584 gsl_major_version=`$GSL_CONFIG --version | \ 12585 sed 's/^\([0-9]*\).*/\1/'` 12586 if test "x${gsl_major_version}" = "x" ; then 12587 gsl_major_version=0 12588 fi 12589 12590 gsl_minor_version=`$GSL_CONFIG --version | \ 12591 sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\2/'` 12592 if test "x${gsl_minor_version}" = "x" ; then 12593 gsl_minor_version=0 12594 fi 12595 12596 gsl_micro_version=`$GSL_CONFIG --version | \ 12597 sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\3/'` 12598 if test "x${gsl_micro_version}" = "x" ; then 12599 gsl_micro_version=0 12600 fi 12601 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gsl_major_version.$gsl_minor_version.$gsl_micro_version" >&5 12603$as_echo "$gsl_major_version.$gsl_minor_version.$gsl_micro_version" >&6; } 12604 if test $gsl_major_version -lt $min_gsl_major_version -o \ 12605 $gsl_major_version -eq $min_gsl_major_version -a $gsl_minor_version -lt $min_gsl_minor_version; then 12606 as_fn_error $? "A newer version of GSL is required." "$LINENO" 5 12607 fi 12608 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSL can be linked" >&5 12610$as_echo_n "checking whether GSL can be linked... " >&6; } 12611 ac_save_CFLAGS="$CFLAGS" 12612 ac_save_LIBS="$LIBS" 12613 CFLAGS="$CFLAGS $GSL_CFLAGS" 12614 LIBS="$LIBS $GSL_LIBS" 12615 12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12617/* end confdefs.h. */ 12618 12619#include <gsl/gsl_math.h> 12620#include <gsl/gsl_spline.h> 12621 12622#ifdef FC_DUMMY_MAIN 12623#ifndef FC_DUMMY_MAIN_EQ_F77 12624# ifdef __cplusplus 12625 extern "C" 12626# endif 12627 int FC_DUMMY_MAIN() { return 1; } 12628#endif 12629#endif 12630int 12631main () 12632{ 12633 12634 double *a, *b; 12635 gsl_spline *x; 12636 gsl_asinh(1.0); 12637 gsl_spline_init (x, a, b, 3); 12638 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643if ac_fn_c_try_link "$LINENO"; then : 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12645$as_echo "yes" >&6; } 12646else 12647 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12649$as_echo "no" >&6; } 12650 no_gsl=yes 12651 as_fn_error $? "The test program failed to link. See the file config.log for the 12652 exact error that occured. This usually means GSL was incorrectly installed 12653 or that you have moved GSL since it was installed. In the latter case, you 12654 can edit the gsl-config script: $GSL_CONFIG." "$LINENO" 5 12655fi 12656rm -f core conftest.err conftest.$ac_objext \ 12657 conftest$ac_exeext conftest.$ac_ext 12658 fi 12659 12660 CFLAGS="$ac_save_CFLAGS" 12661 LIBS="$ac_save_LIBS" 12662 12663 12664 12665 12666 12667 12668 # We disable GD support only if the user is requesting this explicitly 12669 # Check whether --enable-gdlib was given. 12670if test "${enable_gdlib+set}" = set; then : 12671 enableval=$enable_gdlib; acx_gdlib_ok=$enableval 12672else 12673 acx_gdlib_ok=yes 12674fi 12675 12676 # GD library is enabled by default 12677 12678 if test x"$acx_gdlib_ok" = xyes; then 12679 # Extract the first word of "gdlib-config", so it can be a program name with args. 12680set dummy gdlib-config; ac_word=$2 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12682$as_echo_n "checking for $ac_word... " >&6; } 12683if ${ac_cv_path_GDLIB_CONFIG+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685else 12686 case $GDLIB_CONFIG in 12687 [\\/]* | ?:[\\/]*) 12688 ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path. 12689 ;; 12690 *) 12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12692for as_dir in $PATH 12693do 12694 IFS=$as_save_IFS 12695 test -z "$as_dir" && as_dir=. 12696 for ac_exec_ext in '' $ac_executable_extensions; do 12697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12698 ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12700 break 2 12701 fi 12702done 12703 done 12704IFS=$as_save_IFS 12705 12706 ;; 12707esac 12708fi 12709GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG 12710if test -n "$GDLIB_CONFIG"; then 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5 12712$as_echo "$GDLIB_CONFIG" >&6; } 12713else 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12715$as_echo "no" >&6; } 12716fi 12717 12718 12719 12720 if test -n "$GDLIB_CONFIG"; then 12721 if test "x$GD_CFLAGS" = x; then 12722 GD_CFLAGS=`$GDLIB_CONFIG --cflags` 12723 fi 12724 if test "x$GD_LIBS" = x; then 12725 GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --ldflags` `$GDLIB_CONFIG --libs | awk '{if($NF=="@LIBICONV@"){$NF=""} print}'`" 12726 # Sometimes GD installation strangely leaves this token @LIBICONV@ in --libs, which must be removed 12727 fi 12728 else 12729 acx_gdlib_ok="no" 12730 fi 12731 fi 12732 12733 if test x"$acx_gdlib_ok" = xyes; then 12734 acx_save_LIBS="$LIBS" 12735 LIBS="$LIBS $GD_LIBS" 12736 acx_save_CFLAGS="$CFLAGS" 12737 CFLAGS="$CFLAGS $GD_CFLAGS" 12738 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdlib can be linked" >&5 12740$as_echo_n "checking whether gdlib can be linked... " >&6; } 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743#include <gd.h> 12744#ifdef FC_DUMMY_MAIN 12745#ifndef FC_DUMMY_MAIN_EQ_F77 12746# ifdef __cplusplus 12747 extern "C" 12748# endif 12749 int FC_DUMMY_MAIN() { return 1; } 12750#endif 12751#endif 12752int 12753main () 12754{ 12755gdImagePtr im; 12756 12757 ; 12758 return 0; 12759} 12760_ACEOF 12761if ac_fn_c_try_link "$LINENO"; then : 12762 12763else 12764 acx_gdlib_ok=no 12765fi 12766rm -f core conftest.err conftest.$ac_objext \ 12767 conftest$ac_exeext conftest.$ac_ext 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_gdlib_ok" >&5 12769$as_echo "$acx_gdlib_ok" >&6; } 12770 12771 if test x"$acx_gdlib_ok" = xno; then 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD library support has been disabled. 12773 *** Some esoteric parts of octopus will not work." >&5 12774$as_echo "$as_me: WARNING: GD library support has been disabled. 12775 *** Some esoteric parts of octopus will not work." >&2;} 12776 GD_CFLAGS="" 12777 GD_LIBS="" 12778 else 12779 12780cat >>confdefs.h <<_ACEOF 12781#define HAVE_GDLIB 1 12782_ACEOF 12783 12784 12785 12786 12787 GD_MAJORVERSION=`$GDLIB_CONFIG --majorversion` 12788 GD_MINORVERSION=`$GDLIB_CONFIG --minorversion` 12789 GD_REVISION=`$GDLIB_CONFIG --revision` 12790 # we only use PNG, JPEG, GIF 12791 for f in `$GDLIB_CONFIG --features` ; do 12792 case $f in 12793 GD_XPM ) 12794 12795cat >>confdefs.h <<_ACEOF 12796#define HAVE_GD_XPM 1 12797_ACEOF 12798 12799 ;; 12800 GD_JPEG ) 12801 12802cat >>confdefs.h <<_ACEOF 12803#define HAVE_GD_JPEG 1 12804_ACEOF 12805 12806 ;; 12807 GD_FONTCONFIG ) 12808 12809cat >>confdefs.h <<_ACEOF 12810#define HAVE_GD_FONTCONFIG 1 12811_ACEOF 12812 12813 ;; 12814 GD_FREETYPE ) 12815 12816cat >>confdefs.h <<_ACEOF 12817#define HAVE_GD_FREETYPE 1 12818_ACEOF 12819 12820 ;; 12821 GD_PNG ) 12822 12823cat >>confdefs.h <<_ACEOF 12824#define HAVE_GD_PNG 1 12825_ACEOF 12826 12827 ;; 12828 GD_GIF ) 12829 12830cat >>confdefs.h <<_ACEOF 12831#define HAVE_GD_GIF 1 12832_ACEOF 12833 12834 ;; 12835 esac 12836 done 12837 fi 12838 12839 LIBS="$acx_save_LIBS" 12840 CFLAGS="$acx_save_CFLAGS" 12841 fi 12842 12843 12844ac_ext=${ac_fc_srcext-f} 12845ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 12846ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 12847ac_compiler_gnu=$ac_cv_fc_compiler_gnu 12848 12849 12850 12851 12852acx_fftw_ok=no 12853 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw" >&5 12855$as_echo_n "checking for fftw... " >&6; } 12856 12857 12858# Check whether --with-fftw-prefix was given. 12859if test "${with_fftw_prefix+set}" = set; then : 12860 withval=$with_fftw_prefix; 12861fi 12862 12863 12864 12865fftw_program=" program main 12866 12867 use, intrinsic :: iso_c_binding 12868 implicit none 12869 12870 include 'fftw3.f03' 12871 12872 type(C_PTR) :: plan 12873 integer(C_INT) :: n0 12874 COMPLEX(C_DOUBLE_COMPLEX) :: in(10),out(10) 12875 integer(C_INT) :: sign=FFTW_FORWARD 12876 INTEGER(C_INT) :: flags 12877 12878 plan = fftw_plan_dft_1d(n0, in, out, sign, flags) 12879 12880 end" 12881 12882fftw_threads_program=" program main 12883 12884 use, intrinsic :: iso_c_binding 12885 implicit none 12886 12887 include 'fftw3.f03' 12888 12889 INTEGER(kind=C_INT) :: iret 12890 12891 iret = fftw_init_threads() 12892 12893 end" 12894 12895fftw_mpi_program=" program main 12896 12897 use, intrinsic :: iso_c_binding 12898 implicit none 12899 12900 include 'fftw3-mpi.f03' 12901 12902 call MPI_Init 12903 call fftw_mpi_init 12904 call MPI_Finalize 12905 12906 end" 12907 12908acx_fftw_save_LIBS="$LIBS" 12909acx_fftw_save_FCFLAGS="$FCFLAGS" 12910LIBS="$LIBS_LAPACK $LIBS_BLAS $LIBS $FLIBS" 12911if test x"$FCFLAGS_FFTW" = x; then 12912 if test x$with_fftw_prefix != x; then 12913 FCFLAGS="-I$with_fftw_prefix/include $acx_fftw_save_FCFLAGS" 12914 cat > conftest.$ac_ext <<_ACEOF 12915$fftw_program 12916_ACEOF 12917if ac_fn_fc_try_link "$LINENO"; then : 12918 acx_fftw_ok=yes 12919else 12920 acx_fftw_ok=no 12921fi 12922rm -f core conftest.err conftest.$ac_objext \ 12923 conftest$ac_exeext conftest.$ac_ext 12924 cat > conftest.$ac_ext <<_ACEOF 12925$fftw_threads_program 12926_ACEOF 12927if ac_fn_fc_try_link "$LINENO"; then : 12928 acx_fftw_threads_ok=yes 12929else 12930 acx_fftw_threads_ok=no 12931fi 12932rm -f core conftest.err conftest.$ac_objext \ 12933 conftest$ac_exeext conftest.$ac_ext 12934 if test x$acx_mpi_ok = xyes; then 12935 cat > conftest.$ac_ext <<_ACEOF 12936$fftw_mpi_program 12937_ACEOF 12938if ac_fn_fc_try_link "$LINENO"; then : 12939 acx_fftw_mpi_ok=yes 12940else 12941 acx_fftw_mpi_ok=no 12942fi 12943rm -f core conftest.err conftest.$ac_objext \ 12944 conftest$ac_exeext conftest.$ac_ext 12945 fi 12946 if test x"$acx_fftw_ok" = xyes; then 12947 as_fn_error $? "--with-fftw-prefix given, but linking with BLAS/LAPACK successful! The specified FFTW would not be used. Please specify only the header location in FCFLAGS_FFTW." "$LINENO" 5 12948 fi 12949 FCFLAGS="$acx_fftw_save_FCFLAGS" 12950 fi 12951else 12952 FCFLAGS="$FCFLAGS_FFTW $acx_fftw_save_FCFLAGS" 12953 cat > conftest.$ac_ext <<_ACEOF 12954$fftw_program 12955_ACEOF 12956if ac_fn_fc_try_link "$LINENO"; then : 12957 acx_fftw_ok=yes 12958else 12959 acx_fftw_ok=no 12960fi 12961rm -f core conftest.err conftest.$ac_objext \ 12962 conftest$ac_exeext conftest.$ac_ext 12963 cat > conftest.$ac_ext <<_ACEOF 12964$fftw_threads_program 12965_ACEOF 12966if ac_fn_fc_try_link "$LINENO"; then : 12967 acx_fftw_threads_ok=yes 12968else 12969 acx_fftw_threads_ok=no 12970fi 12971rm -f core conftest.err conftest.$ac_objext \ 12972 conftest$ac_exeext conftest.$ac_ext 12973 if test x$acx_mpi_ok = xyes; then 12974 cat > conftest.$ac_ext <<_ACEOF 12975$fftw_mpi_program 12976_ACEOF 12977if ac_fn_fc_try_link "$LINENO"; then : 12978 acx_fftw_mpi_ok=yes 12979else 12980 acx_fftw_mpi_ok=no 12981fi 12982rm -f core conftest.err conftest.$ac_objext \ 12983 conftest$ac_exeext conftest.$ac_ext 12984 fi 12985 if test x"$acx_fftw_ok" = xyes; then 12986 if test x"$LIBS_FFTW" != x; then 12987 as_fn_error $? "LIBS_FFTW given, but linking with BLAS/LAPACK successful! The specified FFTW would not be used. Please specify only the header location in FCFLAGS_FFTW." "$LINENO" 5 12988 fi 12989 else 12990 LIBS="$LIBS_FFTW" 12991 cat > conftest.$ac_ext <<_ACEOF 12992$fftw_program 12993_ACEOF 12994if ac_fn_fc_try_link "$LINENO"; then : 12995 acx_fftw_ok=yes 12996else 12997 acx_fftw_ok=no 12998fi 12999rm -f core conftest.err conftest.$ac_objext \ 13000 conftest$ac_exeext conftest.$ac_ext 13001 cat > conftest.$ac_ext <<_ACEOF 13002$fftw_threads_program 13003_ACEOF 13004if ac_fn_fc_try_link "$LINENO"; then : 13005 acx_fftw_threads_ok=yes 13006else 13007 acx_fftw_threads_ok=no 13008fi 13009rm -f core conftest.err conftest.$ac_objext \ 13010 conftest$ac_exeext conftest.$ac_ext 13011 if test x$acx_mpi_ok = xyes; then 13012 cat > conftest.$ac_ext <<_ACEOF 13013$fftw_mpi_program 13014_ACEOF 13015if ac_fn_fc_try_link "$LINENO"; then : 13016 acx_fftw_mpi_ok=yes 13017else 13018 acx_fftw_mpi_ok=no 13019fi 13020rm -f core conftest.err conftest.$ac_objext \ 13021 conftest$ac_exeext conftest.$ac_ext 13022 fi 13023 fi 13024fi 13025 13026LIBS="$acx_fftw_save_LIBS" 13027FCFLAGS="$acx_fftw_save_FCFLAGS" 13028 13029 13030if test x"$acx_fftw_ok" = xyes; then 13031 13032 CFLAGS_FFTW="$FCFLAGS_FFTW" 13033 13034 13035 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fftw_ok (no extra flags needed, provided by other library, e.g. MKL, or environment variables (FCFLAGS_FFTW and/or LIBS_FFTW))" >&5 13037$as_echo "$acx_fftw_ok (no extra flags needed, provided by other library, e.g. MKL, or environment variables (FCFLAGS_FFTW and/or LIBS_FFTW))" >&6; } 13038 13039$as_echo "#define HAVE_FFTW3 1" >>confdefs.h 13040 13041 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw multithread support" >&5 13043$as_echo_n "checking for fftw multithread support... " >&6; } 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fftw_threads_ok" >&5 13045$as_echo "$acx_fftw_threads_ok" >&6; } 13046 if test x"$acx_fftw_threads_ok" != xno; then 13047 13048$as_echo "#define HAVE_FFTW3_THREADS 1" >>confdefs.h 13049 13050 fi 13051 13052 if test x$acx_mpi_ok = xyes; then 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fftw has MPI support" >&5 13054$as_echo_n "checking whether fftw has MPI support... " >&6; } 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fftw_mpi_ok" >&5 13056$as_echo "$acx_fftw_mpi_ok" >&6; } 13057 if test x"$acx_fftw_mpi_ok" = xyes; then 13058 13059$as_echo "#define HAVE_FFTW3_MPI 1" >>confdefs.h 13060 13061 fi 13062 fi 13063 13064else 13065 acx_fftw_save_LIBS="$LIBS" 13066 acx_fftw_save_FCFLAGS="$FCFLAGS" 13067 13068 # Set FCFLAGS_FFTW only if not set from environment 13069 if test x"$FCFLAGS_FFTW" = x; then 13070 case $with_fftw_prefix in 13071 "") FCFLAGS_FFTW="-I/usr/include" ;; 13072 *) FCFLAGS_FFTW="-I$with_fftw_prefix/include" ;; 13073 esac 13074 fi 13075 13076 FCFLAGS="$FCFLAGS_FFTW $acx_fftw_save_FCFLAGS" 13077 13078 if test ! -z "$with_fftw_prefix"; then 13079 LIBS_FFTW="-L$with_fftw_prefix/lib" 13080 else 13081 LIBS_FFTW="" 13082 fi 13083 13084 LIBS="$LIBS_FFTW -lfftw3 $acx_fftw_save_LIBS" 13085 cat > conftest.$ac_ext <<_ACEOF 13086$fftw_program 13087_ACEOF 13088if ac_fn_fc_try_link "$LINENO"; then : 13089 acx_fftw_ok=yes 13090else 13091 acx_fftw_ok=no 13092fi 13093rm -f core conftest.err conftest.$ac_objext \ 13094 conftest$ac_exeext conftest.$ac_ext 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fftw_ok ($FCFLAGS_FFTW $LIBS_FFTW -lfftw3)" >&5 13096$as_echo "$acx_fftw_ok ($FCFLAGS_FFTW $LIBS_FFTW -lfftw3)" >&6; } 13097 13098 if test x$acx_fftw_ok != xyes; then 13099 as_fn_error $? "Could not find required fftw library" "$LINENO" 5 13100 fi 13101 13102 13103$as_echo "#define HAVE_FFTW3 1" >>confdefs.h 13104 13105 13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw multithread support" >&5 13107$as_echo_n "checking for fftw multithread support... " >&6; } 13108 LIBS="$LIBS_FFTW -lfftw3_omp -lfftw3 $acx_fftw_save_LIBS" 13109 cat > conftest.$ac_ext <<_ACEOF 13110$fftw_threads_program 13111_ACEOF 13112if ac_fn_fc_try_link "$LINENO"; then : 13113 acx_fftw_threads_ok=fftw3_omp 13114else 13115 acx_fftw_threads_ok=no 13116fi 13117rm -f core conftest.err conftest.$ac_objext \ 13118 conftest$ac_exeext conftest.$ac_ext 13119 13120 if test x"$acx_fftw_threads_ok" == xfftw3_omp; then 13121 LIBS_FFTW="$LIBS_FFTW -lfftw3_omp" 13122 fi 13123 13124 if test x"$acx_fftw_threads_ok" == xno; then 13125 LIBS="$LIBS_FFTW -lfftw3_threads -lfftw3 $acx_fftw_save_LIBS" 13126 cat > conftest.$ac_ext <<_ACEOF 13127$fftw_threads_program 13128_ACEOF 13129if ac_fn_fc_try_link "$LINENO"; then : 13130 acx_fftw_threads_ok=fftw3_threads 13131else 13132 acx_fftw_threads_ok=no 13133fi 13134rm -f core conftest.err conftest.$ac_objext \ 13135 conftest$ac_exeext conftest.$ac_ext 13136 fi 13137 13138 if test x"$acx_fftw_threads_ok" == xfftw3_threads; then 13139 LIBS_FFTW="$LIBS_FFTW -lfftw3_threads" 13140 fi 13141 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fftw_threads_ok" >&5 13143$as_echo "$acx_fftw_threads_ok" >&6; } 13144 if test x"$acx_fftw_threads_ok" != xno; then 13145 13146$as_echo "#define HAVE_FFTW3_THREADS 1" >>confdefs.h 13147 13148 fi 13149 13150 if test x$acx_mpi_ok = xyes; then 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fftw has MPI support" >&5 13152$as_echo_n "checking whether fftw has MPI support... " >&6; } 13153 LIBS="$LIBS_FFTW -lfftw3_mpi -lfftw3 $acx_fftw_save_LIBS" 13154 cat > conftest.$ac_ext <<_ACEOF 13155$fftw_mpi_program 13156_ACEOF 13157if ac_fn_fc_try_link "$LINENO"; then : 13158 acx_fftw_mpi_ok=yes 13159else 13160 acx_fftw_mpi_ok=no 13161fi 13162rm -f core conftest.err conftest.$ac_objext \ 13163 conftest$ac_exeext conftest.$ac_ext 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_fftw_mpi_ok" >&5 13165$as_echo "$acx_fftw_mpi_ok" >&6; } 13166 13167 if test x"$acx_fftw_mpi_ok" = xyes; then 13168 LIBS_FFTW="$LIBS_FFTW -lfftw3_mpi" 13169 13170$as_echo "#define HAVE_FFTW3_MPI 1" >>confdefs.h 13171 13172 fi 13173 fi 13174 13175 LIBS_FFTW="$LIBS_FFTW -lfftw3" 13176 13177 CFLAGS_FFTW="$FCFLAGS_FFTW" 13178 13179 13180 13181 13182 FCFLAGS="$acx_fftw_save_FCFLAGS" 13183 LIBS="$acx_fftw_save_LIBS" 13184fi 13185 13186 13187 13188 13189 13190acx_pfft_ok=no 13191 13192 13193# Check whether --with-pfft-prefix was given. 13194if test "${with_pfft_prefix+set}" = set; then : 13195 withval=$with_pfft_prefix; 13196fi 13197 13198 13199case $with_pfft_prefix in 13200 yes | "") ;; 13201 no) acx_pfft_ok=disable ;; 13202 *.a | *.so | *.so.* | *.o) LIBS_PFFT=$with_pfft_prefix ; 13203 xpath=${with_pfft_prefix%/lib/*} 13204 FCFLAGS_PFFT="$ax_cv_f90_modflag$xpath/include";; 13205 *) LIBS_PFFT="-L$with_pfft_prefix/lib -lpfft"; 13206 FCFLAGS_PFFT="$ax_cv_f90_modflag$with_pfft_prefix/include" ;; 13207esac 13208 13209 13210# Check whether --with-pfft-include was given. 13211if test "${with_pfft_include+set}" = set; then : 13212 withval=$with_pfft_include; 13213fi 13214 13215case $with_pfft_include in 13216 "") if test "x$FCFLAGS_PFFT" == x; then 13217 FCFLAGS_PFFT="$ax_cv_f90_modflag/usr/include" 13218 fi 13219 ;; 13220 *) FCFLAGS_PFFT="$ax_cv_f90_modflag$with_pfft_include" ;; 13221esac 13222 13223 13224if test "x$acx_mpi_ok" != xyes; then 13225 acx_pfft_ok=nompi 13226fi 13227 13228# no explicit mpifftw prefix was given 13229if test "x$acx_fftw_mpi_ok" != xyes; then 13230 acx_pfft_ok=nofftw3_mpi 13231fi 13232 13233acx_pfft_save_LIBS="$LIBS" 13234acx_pfft_save_FCFLAGS="$FCFLAGS" 13235 13236FCFLAGS_PFFT="$FCFLAGS_PFFT $FCFLAGS_FFTW" 13237FCFLAGS="$FCFLAGS_PFFT $acx_pfft_save_FCFLAGS" 13238 13239# some symbols below will not be defined for versions older than 1.0.8, making sure 13240# we have a version that is able to work in our code 13241testprogram=" program main 13242 13243 use,intrinsic :: iso_c_binding 13244 implicit none 13245 13246 include 'fftw3-mpi.f03' 13247 include 'pfft.f03' 13248 13249 integer(C_INT32_t) :: comm_cart_2d 13250 integer(C_INTPTR_T) :: n(3) 13251 type(C_PTR) :: fftplan 13252 complex(C_DOUBLE_COMPLEX), allocatable :: data_in(:) 13253 complex(C_DOUBLE_COMPLEX), allocatable :: data_out(:) 13254 13255 fftplan = pfft_plan_dft_3d( n, data_in, data_out, comm_cart_2d, & 13256 & PFFT_FORWARD, PFFT_TRANSPOSED_OUT + PFFT_MEASURE + PFFT_DESTROY_INPUT + PFFT_PADDED_R2C) 13257 13258 13259 end" 13260 13261if test $acx_pfft_ok = no; then 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfft library" >&5 13263$as_echo_n "checking for pfft library... " >&6; } 13264 LIBS="$LIBS_PFFT $LIBS_FFTW $acx_pfft_save_LIB" 13265 cat > conftest.$ac_ext <<_ACEOF 13266$testprogram 13267_ACEOF 13268if ac_fn_fc_try_link "$LINENO"; then : 13269 acx_pfft_ok=yes; LIBS_PFFT="$LIBS" 13270fi 13271rm -f core conftest.err conftest.$ac_objext \ 13272 conftest$ac_exeext conftest.$ac_ext 13273 13274 if test $acx_pfft_ok = no; then 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pfft_ok" >&5 13276$as_echo "$acx_pfft_ok" >&6; } 13277 else 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pfft_ok ($LIBS_PFFT)" >&5 13279$as_echo "$acx_pfft_ok ($LIBS_PFFT)" >&6; } 13280 fi 13281fi 13282 13283if test x"$acx_pfft_ok" = xyes; then 13284 13285$as_echo "#define HAVE_PFFT 1" >>confdefs.h 13286 13287else 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find PFFT library. 13289 *** Will compile without PFFT support" >&5 13290$as_echo "$as_me: WARNING: Could not find PFFT library. 13291 *** Will compile without PFFT support" >&2;} 13292 LIBS_PFFT="" 13293 FCFLAGS_PFFT="" 13294fi 13295 13296 13297 13298LIBS="$acx_pfft_save_LIBS" 13299FCFLAGS="$acx_pfft_save_FCFLAGS" 13300 13301 13302 13303ac_ext=c 13304ac_cpp='$CPP $CPPFLAGS' 13305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13307ac_compiler_gnu=$ac_cv_c_compiler_gnu 13308 13309 13310 13311acx_nfft_ok=no 13312 13313nfft_func="nfft_init_1d" 13314nfft_libs="-lnfft3" 13315 13316 13317# Check whether --with-nfft was given. 13318if test "${with_nfft+set}" = set; then : 13319 withval=$with_nfft; 13320else 13321 with_nfft=no 13322fi 13323 13324case $with_nfft in 13325 no ) acx_nfft_ok=disable ;; 13326 *) LIBS_NFFT="-L$with_nfft/lib $nfft_libs" 13327 CFLAGS_NFFT="-I$with_nfft/include" ;; 13328esac 13329 13330acx_nfft_save_LIBS="$LIBS" 13331acx_nfft_save_CFLAGS="$CFLAGS" 13332 13333if test $acx_nfft_ok = no; then 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfft" >&5 13335$as_echo_n "checking for nfft... " >&6; } 13336 # If LIBS_NFFT has been passed with --with-nfft just test this 13337 if test "$LIBS_NFFT"; then 13338 nfft_cflags="$CFLAGS_NFFT" 13339 nfft_libs="$LIBS_NFFT" 13340 CFLAGS="$nfft_cflags $CFLAGS_FFTW" 13341 LIBS="$nfft_libs $LIBS_FFT" 13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13343/* end confdefs.h. */ 13344 13345#include "nfft3util.h" 13346#include "nfft3.h" 13347 int main(void) 13348 { 13349 nfft_plan p; 13350 nfft_init_1d(&p,2,3); 13351 nfft_finalize(&p); 13352 return 1; 13353 } 13354 13355_ACEOF 13356if ac_fn_c_try_link "$LINENO"; then : 13357 acx_nfft_ok=yes; CFLAGS_NFFT="$nfft_cflags"; LIBS_NFFT="$nfft_libs" 13358fi 13359rm -f core conftest.err conftest.$ac_objext \ 13360 conftest$ac_exeext conftest.$ac_ext 13361 fi 13362 13363 if test $acx_nfft_ok = no ; then 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_nfft_ok" >&5 13365$as_echo "$acx_nfft_ok" >&6; } 13366 else 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_nfft_ok ($LIBS_NFFT)" >&5 13368$as_echo "$acx_nfft_ok ($LIBS_NFFT)" >&6; } 13369 fi 13370fi 13371 13372 13373 13374CFLAGS="$acx_nfft_save_CFLAGS" 13375LIBS="$acx_nfft_save_LIBS" 13376 13377if test x"$acx_nfft_ok" = xyes; then 13378 13379$as_echo "#define HAVE_NFFT 1" >>confdefs.h 13380 13381else 13382 if test $acx_nfft_ok != disable; then 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find NFFT library. 13384 *** Will compile without NFFT support" >&5 13385$as_echo "$as_me: WARNING: Could not find NFFT library. 13386 *** Will compile without NFFT support" >&2;} 13387 fi 13388fi 13389 13390ac_ext=${ac_fc_srcext-f} 13391ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13392ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13393ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13394 13395 13396 13397 13398 13399acx_pnfft_ok=no 13400 13401 13402# Check whether --with-pnfft-prefix was given. 13403if test "${with_pnfft_prefix+set}" = set; then : 13404 withval=$with_pnfft_prefix; 13405fi 13406 13407case $with_pnfft_prefix in 13408 yes | "") ;; 13409 no) acx_pnfft_ok=disable ;; 13410 *.a | *.so | *.so.* | *.o) LIBS_PFFT="-L$with_pfft_prefix" ;; 13411 *) LIBS_PNFFT="-L$with_pnfft_prefix/lib"; 13412 FCFLAGS_PNFFT="$ax_cv_f90_modflag$with_pnfft_prefix/include" ;; 13413esac 13414 13415 13416# Check whether --with-pnfft-include was given. 13417if test "${with_pnfft_include+set}" = set; then : 13418 withval=$with_pnfft_include; 13419fi 13420 13421case $with_pnfft_include in 13422 "") if test "x$FCFLAGS_PNFFT" == x; then 13423 FCFLAGS_PNFFT="$ax_cv_f90_modflag /usr/include" 13424 fi;; 13425 *) FCFLAGS_PNFFT="$ax_cv_f90_modflag$with_pnfft_include" ;; 13426esac 13427 13428 13429if test "x$acx_pfft_ok" != xyes; then 13430 acx_pnfft_ok=nopfft 13431fi 13432 13433acx_pnfft_save_LIBS="$LIBS" 13434acx_pnfft_save_FCFLAGS="$FCFLAGS" 13435 13436FCFLAGS_PNFFT="$FCFLAGS_PNFFT $FCFLAGS_PFFT" 13437FCFLAGS="$FCFLAGS_PNFFT $acx_pnfft_save_FCFLAGS" 13438 13439 13440testprogram=" program main 13441 13442 use, intrinsic :: iso_c_binding 13443 include 'fftw3-mpi.f03' 13444 include 'pfft.f03' 13445 include 'pnfft.f03' 13446 13447 call pnfft_init() 13448 13449 end" 13450 13451 13452if test x"$acx_pnfft_ok" = xno; then 13453 LIBS="$LIBS_PNFFT $LIBS_PFFT $LIBS" 13454 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pnfft library" >&5 13456$as_echo_n "checking for pnfft library... " >&6; } 13457 cat > conftest.$ac_ext <<_ACEOF 13458$testprogram 13459_ACEOF 13460if ac_fn_fc_try_link "$LINENO"; then : 13461 acx_pnfft_ok=yes; LIBS_PNFFT="$LIBS_PNFFT $LIBS_PFFT" 13462fi 13463rm -f core conftest.err conftest.$ac_objext \ 13464 conftest$ac_exeext conftest.$ac_ext 13465 13466 if test $acx_pnfft_ok = no; then 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pnfft_ok" >&5 13468$as_echo "$acx_pnfft_ok" >&6; } 13469 else 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pnfft_ok ($LIBS_PNFFT)" >&5 13471$as_echo "$acx_pnfft_ok ($LIBS_PNFFT)" >&6; } 13472 fi 13473fi 13474 13475 13476if test $acx_pnfft_ok = no; then 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pnfft library with -lpnfft" >&5 13478$as_echo_n "checking for pnfft library with -lpnfft... " >&6; } 13479 if test "$LIBS_PNFFT" = ""; then 13480 LIBS="-lpnfft $LIBS_PFFT $LIBS" 13481 cat > conftest.$ac_ext <<_ACEOF 13482$testprogram 13483_ACEOF 13484if ac_fn_fc_try_link "$LINENO"; then : 13485 acx_pnfft_ok=yes; LIBS_PNFFT=" -lpnfft $LIBS_PFFT" 13486fi 13487rm -f core conftest.err conftest.$ac_objext \ 13488 conftest$ac_exeext conftest.$ac_ext 13489 else 13490 LIBS="$LIBS_PNFFT -lpnfft $LIBS_PFFT $LIBS" 13491 cat > conftest.$ac_ext <<_ACEOF 13492$testprogram 13493_ACEOF 13494if ac_fn_fc_try_link "$LINENO"; then : 13495 acx_pnfft_ok=yes; LIBS_PNFFT="$LIBS_PNFFT -lpnfft $LIBS_PFFT" 13496fi 13497rm -f core conftest.err conftest.$ac_objext \ 13498 conftest$ac_exeext conftest.$ac_ext 13499 fi 13500 if test $acx_pnfft_ok = no; then 13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pnfft_ok" >&5 13502$as_echo "$acx_pnfft_ok" >&6; } 13503 else 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pnfft_ok ($LIBS_PNFFT)" >&5 13505$as_echo "$acx_pnfft_ok ($LIBS_PNFFT)" >&6; } 13506 fi 13507fi 13508 13509 13510if test x"$acx_pnfft_ok" = xyes; then 13511 13512$as_echo "#define HAVE_PNFFT 1" >>confdefs.h 13513 13514else 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find PNFFT library. 13516 *** Will compile without PNFFT support" >&5 13517$as_echo "$as_me: WARNING: Could not find PNFFT library. 13518 *** Will compile without PNFFT support" >&2;} 13519 LIBS_PNFFT="" 13520 FCFLAGS_PNFFT="" 13521fi 13522 13523 13524 13525LIBS="$acx_pnfft_save_LIBS" 13526FCFLAGS="$acx_pnfft_save_FCFLAGS" 13527 13528 13529 13530 13531acx_netcdf_ok=no 13532 13533 13534# Check whether --with-netcdf-prefix was given. 13535if test "${with_netcdf_prefix+set}" = set; then : 13536 withval=$with_netcdf_prefix; 13537fi 13538 13539case $with_netcdf_prefix in 13540 no ) acx_netcdf_ok=disabled ;; 13541 "") if test "x$FCFLAGS_NETCDF" == x; then 13542 FCFLAGS_NETCDF="$ax_cv_f90_modflag/usr/include" 13543 fi;; 13544 *) LIBS_NETCDF="-L$with_netcdf_prefix/lib"; FCFLAGS_NETCDF="$ax_cv_f90_modflag$with_netcdf_prefix/include" ;; 13545esac 13546 13547 13548# Check whether --with-netcdf-include was given. 13549if test "${with_netcdf_include+set}" = set; then : 13550 withval=$with_netcdf_include; 13551fi 13552 13553case $with_netcdf_include in 13554 "") ;; 13555 *) FCFLAGS_NETCDF="$ax_cv_f90_modflag$with_netcdf_include" ;; 13556esac 13557 13558acx_netcdf_save_LIBS="$LIBS" 13559acx_netcdf_save_FCFLAGS="$FCFLAGS" 13560 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netcdf" >&5 13562$as_echo_n "checking for netcdf... " >&6; } 13563if test "$acx_netcdf_ok" != disabled; then 13564 netcdf_fcflags="$FCFLAGS_NETCDF" 13565 FCFLAGS="$netcdf_fcflags $acx_netcdf_save_FCFLAGS" 13566 for netcdf_libsl in "" -lnetcdf "-lnetcdff -lnetcdf"; do 13567 netcdf_libs="$LIBS_NETCDF $netcdf_libsl" 13568 LIBS="$netcdf_libs $acx_netcdf_save_LIBS" 13569 cat > conftest.$ac_ext <<_ACEOF 13570 program main 13571 13572 use netcdf 13573 integer :: ncid 13574 integer :: status 13575 status = nf90_close(ncid) 13576 13577 end 13578_ACEOF 13579if ac_fn_fc_try_link "$LINENO"; then : 13580 acx_netcdf_ok=yes; FCFLAGS_NETCDF="$netcdf_fcflags"; LIBS_NETCDF="$netcdf_libs" 13581fi 13582rm -f core conftest.err conftest.$ac_objext \ 13583 conftest$ac_exeext conftest.$ac_ext 13584 if test "$acx_netcdf_ok" == yes; then 13585 LIBS_NETCDF=$netcdf_libs 13586 break 13587 fi 13588 done 13589fi 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_netcdf_ok ($FCFLAGS_NETCDF $LIBS_NETCDF)" >&5 13591$as_echo "$acx_netcdf_ok ($FCFLAGS_NETCDF $LIBS_NETCDF)" >&6; } 13592 13593if test x"$acx_netcdf_ok" = xyes; then 13594 13595$as_echo "#define HAVE_NETCDF 1" >>confdefs.h 13596 13597else 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find NetCDF library. 13599 *** Will compile without NetCDF and ETSF I/O support" >&5 13600$as_echo "$as_me: WARNING: Could not find NetCDF library. 13601 *** Will compile without NetCDF and ETSF I/O support" >&2;} 13602 FCFLAGS_NETCDF="" 13603 LIBS_NETCDF="" 13604fi 13605 13606 13607 13608FCFLAGS="$acx_netcdf_save_FCFLAGS" 13609LIBS="$acx_netcdf_save_LIBS" 13610 13611 13612 13613 13614acx_etsf_io_ok=no 13615 13616 13617# Check whether --with-etsf-io-prefix was given. 13618if test "${with_etsf_io_prefix+set}" = set; then : 13619 withval=$with_etsf_io_prefix; 13620fi 13621 13622case $with_etsf_io_prefix in 13623 no ) acx_etsf_io_ok=disabled ;; 13624 "") if test "x$FCFLAGS_ETSF_IO" = x; then 13625 FCFLAGS_ETSF_IO="$ax_cv_f90_modflag /usr/include" 13626 fi;; 13627 *) LIBS_ETSF_IO="-L$with_etsf_io_prefix/lib"; 13628 FCFLAGS_ETSF_IO="$ax_cv_f90_modflag$with_etsf_io_prefix/include" ;; 13629esac 13630 13631 13632# Check whether --with-etsf-io-include was given. 13633if test "${with_etsf_io_include+set}" = set; then : 13634 withval=$with_etsf_io_include; 13635fi 13636 13637case $with_etsf_io_include in 13638 "") ;; 13639 *) FCFLAGS_ETSF_IO="$ax_cv_f90_modflag$with_etsf_io_include" ;; 13640esac 13641 13642if test "x$acx_netcdf_ok" != xyes; then 13643 acx_etsf_io_ok=disabled 13644fi 13645 13646acx_etsf_io_save_LIBS="$LIBS" 13647acx_etsf_io_save_FCFLAGS="$FCFLAGS" 13648 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etsf_io" >&5 13650$as_echo_n "checking for etsf_io... " >&6; } 13651if test "$acx_etsf_io_ok" != disabled; then 13652 etsf_io_libs="$LIBS_ETSF_IO -letsf_io_utils -letsf_io" 13653 if test "${fc_type}" = ""; then 13654 fc_type="UNKNOWN" 13655 fi 13656 if test "${fc_version}" = ""; then 13657 fc_version="UNKNOWN" 13658 fi 13659 fc_wrap="no" 13660 13661 13662 if test "${fc_type}" = "UNKNOWN"; then 13663 13664 fc_info_string=`${FC} --version 2>&1` 13665 abi_result=`echo "${fc_info_string}" | grep '^G95'` 13666 if test "${abi_result}" = ""; then 13667 abi_result="no" 13668 fc_info_string="" 13669 fc_type="UNKNOWN" 13670 fc_version="UNKNOWN" 13671 else 13672 fc_type="g95" 13673 fc_version=`echo ${abi_result} | sed -e 's/.*GCC //; s/ .*//'` 13674 if test "${fc_version}" = "${abi_result}"; then 13675 fc_version="UNKNOWN" 13676 fi 13677 abi_result="yes" 13678 fi 13679 13680 fi 13681 if test "${fc_type}" = "UNKNOWN"; then 13682 13683 fc_info_string=`${FC} --version 2>&1` 13684 abi_result=`echo "${fc_info_string}" | grep '^GNU Fortran'` 13685 if test "${abi_result}" = ""; then 13686 abi_result="no" 13687 fc_info_string="" 13688 fc_type="UNKNOWN" 13689 fc_version="UNKNOWN" 13690 else 13691 fc_type="gcc" 13692 fc_version=`echo ${abi_result} | sed -e 's/.*(GCC) //; s/.*GCC //; s/ .*//'` 13693 abi_result="yes" 13694 fi 13695 13696 fi 13697 if test "${fc_type}" = "UNKNOWN"; then 13698 13699 fc_info_string=`${FC} -v -V 2>&1 | sed -e '/^ifc: warning/d'` 13700 abi_result=`echo "${fc_info_string}" | grep '^Intel(R) Fortran'` 13701 if test "${abi_result}" = ""; then 13702 abi_result="no" 13703 fc_info_string="" 13704 fc_type="UNKNOWN" 13705 fc_version="UNKNOWN" 13706 else 13707 fc_type="intel" 13708 fc_version=`echo "${fc_info_string}" | grep '^Version' | sed -e 's/Version //;s/ .*//;s/ //g' | head -n 1` 13709 if test "${fc_version}" = ""; then 13710 fc_version="UNKNOWN" 13711 fi 13712 abi_result="yes" 13713 fi 13714 13715 fi 13716 if test "${fc_type}" = "UNKNOWN"; then 13717 13718 fc_info_string=`${FC} -version 2>&1` 13719 abi_result=`echo "${fc_info_string}" | grep '^PathScale'` 13720 if test "${abi_result}" = ""; then 13721 abi_result="no" 13722 fc_info_string="" 13723 fc_type="UNKNOWN" 13724 fc_version="UNKNOWN" 13725 else 13726 fc_type="pathscale" 13727 fc_version=`echo "${abi_result}" | sed -e 's/.* Version //; s/ .*//'` 13728 if test "${fc_version}" = "${abi_result}"; then 13729 fc_version="UNKNOWN" 13730 fi 13731 abi_result="yes" 13732 fi 13733 13734 fi 13735 if test "${fc_type}" = "UNKNOWN"; then 13736 13737 fc_info_string=`${FC} -V 2>&1 | sed -e '/^$/d'` 13738 abi_result=`echo "${fc_info_string}" | grep '^pgf9[05]' | grep -v 'No files to process'` 13739 if test "${abi_result}" = ""; then 13740 abi_result="no" 13741 fc_info_string="" 13742 fc_type="UNKNOWN" 13743 fc_version="UNKNOWN" 13744 else 13745 fc_type="pgi" 13746 fc_version=`echo "${abi_result}" | sed -e 's/^pgf9[05] //' | sed -e 's/-.*//'` 13747 if test "${fc_version}" = "${abi_result}"; then 13748 fc_version="UNKNOWN" 13749 fi 13750 abi_result="yes" 13751 fi 13752 13753 fi 13754 if test "${fc_type}" = "UNKNOWN"; then 13755 13756 fc_info_string=`${FC} -version 2>&1 | sed -e 's/^ //' | grep '^Compaq Fortran Compiler'` 13757 abi_result="${fc_info_string}" 13758 if test "${abi_result}" = ""; then 13759 fc_info_string=`${FC} -version 2>&1 | sed -e 's/^ //' | grep '^HP Fortran Compiler'` 13760 abi_result="${fc_info_string}" 13761 fi 13762 if test "${abi_result}" = ""; then 13763 abi_result="no" 13764 fc_info_string="" 13765 fc_type="UNKNOWN" 13766 fc_version="UNKNOWN" 13767 else 13768 fc_type="compaq" 13769 fc_version=`echo "${abi_result}" | sed -e 's/.* V//;s/-.*//'` 13770 if test "${fc_version}" = "${abi_result}"; then 13771 fc_version="UNKNOWN" 13772 fi 13773 abi_result="yes" 13774 fi 13775 13776 fi 13777 if test "${fc_type}" = "UNKNOWN"; then 13778 13779 fc_info_string=`${FC} -V 2> /dev/null` 13780 abi_result=`echo "${fc_info_string}" | grep '^Pro Fortran'` 13781 if test "${abi_result}" = ""; then 13782 abi_result="no" 13783 fc_info_string="" 13784 fc_type="UNKNOWN" 13785 fc_version="UNKNOWN" 13786 else 13787 fc_type="absoft" 13788 fc_version=`echo "${abi_result}" | sed -e 's/Pro Fortran //'` 13789 if test "${fc_version}" = "${abi_result}"; then 13790 fc_version="UNKNOWN" 13791 fi 13792 abi_result="yes" 13793 fi 13794 13795 fi 13796 if test "${fc_type}" = "UNKNOWN"; then 13797 13798 fc_info_string=`${FC} -version 2>&1 | sed -e '/^$/d'` 13799 abi_result=`echo "${fc_info_string}" | grep '^MIPSpro'` 13800 if test "${abi_result}" = ""; then 13801 abi_result="no" 13802 fc_info_string="" 13803 fc_type="UNKNOWN" 13804 fc_version="UNKNOWN" 13805 else 13806 fc_type="mipspro" 13807 fc_version=`echo "${abi_result}" | sed -e 's/.*Version //'` 13808 if test "${fc_version}" = "${abi_result}"; then 13809 fc_version="UNKNOWN" 13810 fi 13811 abi_result="yes" 13812 fi 13813 13814 fi 13815 if test "${fc_type}" = "UNKNOWN"; then 13816 13817 fc_info_string=`${FC} --version 2>&1` 13818 abi_result=`echo "${fc_info_string}" | grep '^Open64'` 13819 if test "${abi_result}" = ""; then 13820 abi_result="no" 13821 fc_info_string="" 13822 fc_type="UNKNOWN" 13823 fc_version="UNKNOWN" 13824 else 13825 fc_type="open64" 13826 fc_version=`echo "${abi_result}" | sed -e 's/.* Version //; s/ .*//'` 13827 if test "${fc_version}" = "${abi_result}"; then 13828 fc_version="UNKNOWN" 13829 fi 13830 abi_result="yes" 13831 fi 13832 13833 fi 13834 if test "${fc_type}" = "UNKNOWN"; then 13835 13836 fc_info_string=`${FC} -V 2> /dev/null` 13837 abi_result=`echo "${fc_info_string}" | grep '^Fujitsu Fortran'` 13838 if test "${abi_result}" = ""; then 13839 abi_result="no" 13840 fc_info_string="" 13841 fc_type="UNKNOWN" 13842 fc_version="UNKNOWN" 13843 else 13844 fc_type="fujitsu" 13845 fc_version=`echo "${abi_result}" | sed -e 's/.*Driver //;s/ .*//'` 13846 if test "${fc_version}" = "${abi_result}"; then 13847 fc_version="UNKNOWN" 13848 fi 13849 abi_result="yes" 13850 fi 13851 13852 fi 13853 if test "${fc_type}" = "UNKNOWN"; then 13854 13855 fc_info_string=`${FC} -V 2>&1 | head -n 1` 13856 abi_result=`echo "${fc_info_string}" | grep 'Sun' | grep 'Fortran 95'` 13857 if test "${abi_result}" = ""; then 13858 abi_result="no" 13859 fc_info_string="" 13860 fc_type="UNKNOWN" 13861 fc_version="UNKNOWN" 13862 else 13863 fc_type="sun" 13864 fc_version=`echo "${abi_result}" | sed -e 's/.* Fortran 95 //;s/ .*//'` 13865 if test "${fc_version}" = "${abi_result}" -o "${fc_version}" = ""; then 13866 fc_version="UNKNOWN" 13867 fi 13868 abi_result="yes" 13869 fi 13870 13871 fi 13872 if test "${fc_type}" = "UNKNOWN"; then 13873 13874 fc_info_string=`${FC} -V 2> /dev/null` 13875 abi_result=`echo "${fc_info_string}" | grep '^Hitachi Fortran'` 13876 if test "${abi_result}" = ""; then 13877 abi_result="no" 13878 fc_info_string="" 13879 fc_type="UNKNOWN" 13880 fc_version="UNKNOWN" 13881 else 13882 fc_type="hitachi" 13883 fc_version=`echo "${abi_result}" | sed -e 's/.*Driver //;s/ .*//'` 13884 if test "${fc_version}" = "${abi_result}"; then 13885 fc_version="UNKNOWN" 13886 fi 13887 abi_result="yes" 13888 fi 13889 13890 fi 13891 if test "${fc_type}" = "UNKNOWN"; then 13892 13893 fc_info_string=`${FC} -qversion 2>&1` 13894 fc_garbage=`${FC} -qversion 2>&1 | wc -l | sed -e 's/ //g'` 13895 abi_result=`echo "${fc_info_string}" | grep 'IBM(R) XL Fortran'` 13896 if test "${abi_result}" = ""; then 13897 abi_result=`echo "${fc_info_string}" | grep 'IBM XL Fortran'` 13898 fi 13899 if test "${abi_result}" = ""; then 13900 abi_result="no" 13901 fc_info_string="" 13902 fc_type="UNKNOWN" 13903 fc_version="UNKNOWN" 13904 if test "${fc_garbage}" -gt 50; then 13905 fc_type="ibm" 13906 fc_version="UNKNOWN" 13907 abi_result="yes" 13908 fi 13909 else 13910 fc_type="ibm" 13911 fc_version=`echo "${abi_result}" | sed -e 's/.* V\([0-9\.]*\) .*/\1/'` 13912 if test "${fc_version}" = "${abi_result}"; then 13913 fc_version="UNKNOWN" 13914 fi 13915 abi_result="yes" 13916 fi 13917 13918 fi 13919 13920 if test "${fc_type}" = "UNKNOWN"; then 13921 fc_type="generic" 13922 fc_version="0.0" 13923 fi 13924 13925 fc_version=`echo ${fc_version} | cut -d. -f1-2` 13926 13927 13928 13929 13930 13931 13932 13933 for etsf_io_fcflags in "$FCFLAGS_ETSF_IO" "$FCFLAGS_ETSF_IO"/$fc_type ; do 13934 FCFLAGS="$etsf_io_fcflags $acx_etsf_io_save_FCFLAGS $FCFLAGS_NETCDF" 13935 LIBS="$etsf_io_libs $acx_etsf_io_save_LIBS $LIBS_NETCDF" 13936 cat > conftest.$ac_ext <<_ACEOF 13937 program main 13938 13939 use etsf_io 13940 type(etsf_vars) :: vars 13941 call etsf_io_vars_free(vars) 13942 13943 end 13944_ACEOF 13945if ac_fn_fc_try_link "$LINENO"; then : 13946 acx_etsf_io_ok=yes; FCFLAGS_ETSF_IO="$etsf_io_fcflags"; LIBS_ETSF_IO="$etsf_io_libs" 13947fi 13948rm -f core conftest.err conftest.$ac_objext \ 13949 conftest$ac_exeext conftest.$ac_ext 13950 if test x"$acx_etsf_io_ok" == xyes; then 13951 break 13952 fi 13953 done 13954fi 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_etsf_io_ok ($FCFLAGS_ETSF_IO $LIBS_ETSF_IO)" >&5 13956$as_echo "$acx_etsf_io_ok ($FCFLAGS_ETSF_IO $LIBS_ETSF_IO)" >&6; } 13957 13958if test x"$acx_etsf_io_ok" = xyes; then 13959 13960$as_echo "#define HAVE_ETSF_IO 1" >>confdefs.h 13961 13962else 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find etsf_io library. 13964 *** Will compile without ETSF I/O support" >&5 13965$as_echo "$as_me: WARNING: Could not find etsf_io library. 13966 *** Will compile without ETSF I/O support" >&2;} 13967 FCFLAGS_ETSF_IO="" 13968 LIBS_ETSF_IO="" 13969fi 13970 13971 13972 13973FCFLAGS="$acx_etsf_io_save_FCFLAGS" 13974LIBS="$acx_etsf_io_save_LIBS" 13975 13976 13977 13978acx_berkeleygw_ok=no 13979 13980 13981# Check whether --with-berkeleygw-prefix was given. 13982if test "${with_berkeleygw_prefix+set}" = set; then : 13983 withval=$with_berkeleygw_prefix; 13984fi 13985 13986if test "x$with_berkeleygw_prefix" = xno; then 13987 acx_berkeleygw_ok=disabled 13988fi 13989 13990acx_berkeleygw_save_LIBS="$LIBS" 13991acx_berkeleygw_save_FCFLAGS="$FCFLAGS" 13992 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BerkeleyGW" >&5 13994$as_echo_n "checking for BerkeleyGW... " >&6; } 13995if test "$acx_berkeleygw_ok" != disabled; then 13996 for location in "source" "install"; do 13997 if test "$location" = "source"; then 13998 LIBS_BERKELEYGW="-L$with_berkeleygw_prefix/library -lBGW_wfn"; 13999 FCFLAGS_BERKELEYGW="$ax_cv_f90_modflag$with_berkeleygw_prefix/library"; 14000 else 14001 LIBS_BERKELEYGW="-L$with_berkeleygw_prefix/lib -lBGW_wfn"; 14002 FCFLAGS_BERKELEYGW="$ax_cv_f90_modflag$with_berkeleygw_prefix/include"; 14003 fi 14004 14005 FCFLAGS="$FCFLAGS_BERKELEYGW $acx_berkeleygw_save_FCFLAGS" 14006 LIBS="$LIBS_BERKELEYGW $acx_berkeleygw_save_LIBS" 14007 cat > conftest.$ac_ext <<_ACEOF 14008 program main 14009 14010 use wfn_rho_vxc_io_m 14011 call bgw_conf_test() 14012 14013 end 14014_ACEOF 14015if ac_fn_fc_try_link "$LINENO"; then : 14016 acx_berkeleygw_ok=yes; break 14017fi 14018rm -f core conftest.err conftest.$ac_objext \ 14019 conftest$ac_exeext conftest.$ac_ext 14020 done 14021fi 14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_berkeleygw_ok ($FCFLAGS_BERKELEYGW $LIBS_BERKELEYGW)" >&5 14023$as_echo "$acx_berkeleygw_ok ($FCFLAGS_BERKELEYGW $LIBS_BERKELEYGW)" >&6; } 14024 14025if test x"$acx_berkeleygw_ok" = xyes; then 14026 14027$as_echo "#define HAVE_BERKELEYGW 1" >>confdefs.h 14028 14029else 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find BerkeleyGW library. 14031 *** Will compile without BerkeleyGW support" >&5 14032$as_echo "$as_me: WARNING: Could not find BerkeleyGW library. 14033 *** Will compile without BerkeleyGW support" >&2;} 14034 FCFLAGS_BERKELEYGW="" 14035 LIBS_BERKELEYGW="" 14036fi 14037 14038 14039 14040 14041FCFLAGS="$acx_berkeleygw_save_FCFLAGS" 14042LIBS="$acx_berkeleygw_save_LIBS" 14043 14044 14045 14046acx_sparskit_ok=no 14047 14048 14049# Check whether --with-sparskit was given. 14050if test "${with_sparskit+set}" = set; then : 14051 withval=$with_sparskit; 14052fi 14053 14054case $with_sparskit in 14055 yes | "") ;; 14056 no ) acx_sparskit_ok=disable ;; 14057 -* | */* | *.a | *.so | *.so.* | *.o) LIBS_SPARSKIT="$with_sparskit" ;; 14058 *) LIBS_SPARSKIT="-l$with_sparskit" ;; 14059esac 14060 14061acx_sparskit_save_LIBS="$LIBS" 14062 14063testprog=" 14064 subroutine distdot 14065 end subroutine distdot 14066 program main 14067 call bcgstab 14068 end program main" 14069 14070if test $acx_sparskit_ok = no; then 14071 LIBS="$LIBS_SPARSKIT $LIBS_LAPACK $LIBS_BLAS $acx_sparskit_save_LIBS $FLIBS" 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPARSKIT library" >&5 14073$as_echo_n "checking for SPARSKIT library... " >&6; } 14074 cat > conftest.$ac_ext <<_ACEOF 14075$testprog 14076_ACEOF 14077if ac_fn_fc_try_link "$LINENO"; then : 14078 acx_sparskit_ok=yes 14079fi 14080rm -f core conftest.err conftest.$ac_objext \ 14081 conftest$ac_exeext conftest.$ac_ext 14082 if test $acx_sparskit_ok = no; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_sparskit_ok" >&5 14084$as_echo "$acx_sparskit_ok" >&6; } 14085 else 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_sparskit_ok ($LIBS_SPARSKIT)" >&5 14087$as_echo "$acx_sparskit_ok ($LIBS_SPARSKIT)" >&6; } 14088 fi 14089fi 14090 14091if test $acx_sparskit_ok = no; then 14092 LIBS="$LIBS_SPARSKIT -lskit $LIBS_LAPACK $LIBS_BLAS $acx_sparskit_save_LIBS $FLIBS" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPARSKIT library with -lskit" >&5 14094$as_echo_n "checking for SPARSKIT library with -lskit... " >&6; } 14095 cat > conftest.$ac_ext <<_ACEOF 14096$testprog 14097_ACEOF 14098if ac_fn_fc_try_link "$LINENO"; then : 14099 acx_sparskit_ok=yes; LIBS_SPARSKIT="$LIBS_SPARSKIT -lskit" 14100fi 14101rm -f core conftest.err conftest.$ac_objext \ 14102 conftest$ac_exeext conftest.$ac_ext 14103 if test $acx_sparskit_ok = no; then 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_sparskit_ok" >&5 14105$as_echo "$acx_sparskit_ok" >&6; } 14106 LIBS_SPARSKIT="" 14107 else 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_sparskit_ok ($LIBS_SPARSKIT)" >&5 14109$as_echo "$acx_sparskit_ok ($LIBS_SPARSKIT)" >&6; } 14110 fi 14111fi 14112 14113 14114 14115LIBS="$acx_sparskit_save_LIBS" 14116 14117 14118if test x"$acx_sparskit_ok" = xyes; then 14119 14120$as_echo "#define HAVE_SPARSKIT 1" >>confdefs.h 14121 14122else 14123 if test $acx_sparskit_ok != disable; then 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find SPARSKIT library. 14125 *** Will compile without SPARSKIT support" >&5 14126$as_echo "$as_me: WARNING: Could not find SPARSKIT library. 14127 *** Will compile without SPARSKIT support" >&2;} 14128 fi 14129fi 14130 14131 14132 14133 14134acx_nlopt_ok=no 14135 14136 14137# Check whether --with-nlopt-prefix was given. 14138if test "${with_nlopt_prefix+set}" = set; then : 14139 withval=$with_nlopt_prefix; 14140fi 14141 14142if test "x$with_nlopt_prefix" = xno; then 14143 acx_nlopt_ok=disabled 14144fi 14145 14146acx_nlopt_save_LIBS="$LIBS" 14147acx_nlopt_save_FCFLAGS="$FCFLAGS" 14148 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLOPT" >&5 14150$as_echo_n "checking for NLOPT... " >&6; } 14151if test "$acx_nlopt_ok" != disabled; then 14152 for libdir in "lib" "lib64"; do 14153 if test "$libdir" = "lib"; then 14154 LIBS_NLOPT="-L$with_nlopt_prefix/lib -lnlopt"; 14155 FCFLAGS_NLOPT="$ax_cv_f90_modflag$with_nlopt_prefix/include"; 14156 else 14157 LIBS_NLOPT="-L$with_nlopt_prefix/lib64 -lnlopt"; 14158 FCFLAGS_NLOPT="$ax_cv_f90_modflag$with_nlopt_prefix/include"; 14159 fi 14160 14161 FCFLAGS="$FCFLAGS_NLOPT $acx_nlopt_save_FCFLAGS" 14162 LIBS="$LIBS_NLOPT $acx_nlopt_save_LIBS" 14163 cat > conftest.$ac_ext <<_ACEOF 14164 program main 14165 14166 integer(8) :: nlopt 14167 integer :: nparams 14168 include 'nlopt.f' 14169 call nlo_create(opt, NLOPT_LD_LBFGS, nparams) 14170 14171 end 14172_ACEOF 14173if ac_fn_fc_try_link "$LINENO"; then : 14174 acx_nlopt_ok=yes; break 14175fi 14176rm -f core conftest.err conftest.$ac_objext \ 14177 conftest$ac_exeext conftest.$ac_ext 14178 done 14179fi 14180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_nlopt_ok ($FCFLAGS_NLOPT $LIBS_NLOPT)" >&5 14181$as_echo "$acx_nlopt_ok ($FCFLAGS_NLOPT $LIBS_NLOPT)" >&6; } 14182 14183if test x"$acx_nlopt_ok" = xyes; then 14184 14185$as_echo "#define HAVE_NLOPT 1" >>confdefs.h 14186 14187else 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find NLOPT library. 14189 *** Will compile without NLOPT support" >&5 14190$as_echo "$as_me: WARNING: Could not find NLOPT library. 14191 *** Will compile without NLOPT support" >&2;} 14192 FCFLAGS_NLOPT="" 14193 LIBS_NLOPT="" 14194fi 14195 14196 14197 14198 14199FCFLAGS="$acx_nlopt_save_FCFLAGS" 14200LIBS="$acx_nlopt_save_LIBS" 14201 14202 14203if test x"$enable_mpi" != x"no"; then 14204 14205acx_mpi_ok=no 14206 14207acx_mpi_save_LIBS="$LIBS" 14208LIBS="$LIBS_MPI $LIBS $FLIBS" 14209 14210if test $acx_mpi_ok = no; then 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_init in $LIBS_MPI" >&5 14212$as_echo_n "checking for MPI_init in $LIBS_MPI... " >&6; } 14213 cat > conftest.$ac_ext <<_ACEOF 14214 program main 14215 call MPI_Init 14216 end 14217_ACEOF 14218if ac_fn_fc_try_link "$LINENO"; then : 14219 acx_mpi_ok=yes 14220fi 14221rm -f core conftest.err conftest.$ac_objext \ 14222 conftest$ac_exeext conftest.$ac_ext 14223 if test $acx_mpi_ok = no; then 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_mpi_ok" >&5 14225$as_echo "$acx_mpi_ok" >&6; } 14226 else 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_mpi_ok ($LIBS_MPI)" >&5 14228$as_echo "$acx_mpi_ok ($LIBS_MPI)" >&6; } 14229 fi 14230fi 14231 14232if test $acx_mpi_ok = no; then 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 14234$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } 14235if ${ac_cv_lib_mpi_MPI_Init+:} false; then : 14236 $as_echo_n "(cached) " >&6 14237else 14238 ac_check_lib_save_LIBS=$LIBS 14239LIBS="-lmpi $LIBS" 14240cat > conftest.$ac_ext <<_ACEOF 14241 program main 14242 call MPI_Init 14243 end 14244_ACEOF 14245if ac_fn_fc_try_link "$LINENO"; then : 14246 ac_cv_lib_mpi_MPI_Init=yes 14247else 14248 ac_cv_lib_mpi_MPI_Init=no 14249fi 14250rm -f core conftest.err conftest.$ac_objext \ 14251 conftest$ac_exeext conftest.$ac_ext 14252LIBS=$ac_check_lib_save_LIBS 14253fi 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 14255$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } 14256if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : 14257 acx_mpi_ok=yes; LIBS_MPI="$LIBS_MPI -lmpi" 14258fi 14259 14260fi 14261 14262 14263LIBS="$acx_mpi_save_LIBS" 14264 14265if test x"$acx_mpi_ok" = xyes; then 14266 14267$as_echo "#define HAVE_MPI 1" >>confdefs.h 14268 14269 14270else 14271 as_fn_error $? "could not compile an MPI test program" "$LINENO" 5 14272fi 14273 14274 14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI Fortran headers" >&5 14276$as_echo_n "checking for MPI Fortran headers... " >&6; } 14277save_ldflags="$LDFLAGS" 14278if test "$LIB_MPI"; then : 14279 LDFLAGS="${LDFLAGS} -L${LIB_MPI}" 14280fi 14281 14282acx_enable_mpi_mod=no 14283# Check whether --enable-mpi_mod was given. 14284if test "${enable_mpi_mod+set}" = set; then : 14285 enableval=$enable_mpi_mod; acx_enable_mpi_mod=${enableval} 14286fi 14287 14288 14289if test x"$acx_enable_mpi_mod" = x"no"; then 14290 cat > conftest.$ac_ext <<_ACEOF 14291 program main 14292 14293include 'mpif.h' 14294integer :: ierr 14295call MPI_Init(ierr) 14296 14297 end 14298_ACEOF 14299if ac_fn_fc_try_compile "$LINENO"; then : 14300 HAVE_MPIF_H=1 14301else 14302 HAVE_MPIF_H=0 14303fi 14304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14305 14306 if test "$HAVE_MPIF_H" = 1; then 14307 14308$as_echo "#define MPI_H 1" >>confdefs.h 14309 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpif.h" >&5 14311$as_echo "mpif.h" >&6; } 14312 fi 14313else 14314 cat > conftest.$ac_ext <<_ACEOF 14315 program main 14316 14317 use mpi 14318 integer :: ierr 14319 call MPI_Init(ierr) 14320 14321 end 14322_ACEOF 14323if ac_fn_fc_try_compile "$LINENO"; then : 14324 HAVE_MPI_MOD=1 14325else 14326 HAVE_MPI_MOD=0 14327fi 14328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14329 14330 if test "$HAVE_MPI_MOD" = 1; then 14331 14332$as_echo "#define MPI_MOD 1" >>confdefs.h 14333 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpi module" >&5 14335$as_echo "mpi module" >&6; } 14336 else 14337 as_fn_error $? "Could not find the mpi module." "$LINENO" 5 14338 fi 14339fi 14340 14341 14342acx_mpi2_ok=no 14343 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI 2" >&5 14345$as_echo_n "checking for MPI 2... " >&6; } 14346 14347# Check whether --enable-mpi2 was given. 14348if test "${enable_mpi2+set}" = set; then : 14349 enableval=$enable_mpi2; 14350fi 14351 14352 14353if test x"$enable_mpi2" != x"no"; then 14354 14355if test "$HAVE_MPIF_H" = 1; then 14356cat > conftest.$ac_ext <<_ACEOF 14357 program main 14358 14359implicit none 14360include 'mpif.h' 14361integer :: aa, ierr 14362call MPI_Allreduce(MPI_IN_PLACE, aa, 1, MPI_INTEGER, MPI_SUM, MPI_COMM_WORLD, ierr) 14363 14364 end 14365_ACEOF 14366if ac_fn_fc_try_compile "$LINENO"; then : 14367 acx_mpi2_ok=yes 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14370else 14371cat > conftest.$ac_ext <<_ACEOF 14372 program main 14373 14374use mpi 14375implicit none 14376integer :: aa, ierr 14377call MPI_Allreduce(MPI_IN_PLACE, aa, 1, MPI_INTEGER, MPI_SUM, MPI_COMM_WORLD, ierr) 14378 14379 end 14380_ACEOF 14381if ac_fn_fc_try_compile "$LINENO"; then : 14382 acx_mpi2_ok=yes 14383fi 14384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14385 14386fi 14387 14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_mpi2_ok" >&5 14389$as_echo "$acx_mpi2_ok" >&6; } 14390 14391if test $acx_mpi2_ok = yes; then 14392 14393$as_echo "#define HAVE_MPI2 1" >>confdefs.h 14394 14395else 14396 as_fn_error $? " 14397 14398 ****************************************************************** 14399 14400 ERROR: Octopus requires an MPI implementation with MPI-2 support. 14401 14402 ****************************************************************** 14403" "$LINENO" 5 14404fi 14405 14406else 14407 14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14409$as_echo "disabled" >&6; } 14410 14411fi 14412 14413 14414fi 14415 14416 14417acx_blacs_ok=no 14418 14419if test "x$acx_mpi_ok" != xyes; then 14420 acx_blacs_ok=nompi 14421else 14422 14423blacs_pinfo=blacs_pinfo 14424 14425if test $acx_blacs_ok = no; then 14426 14427# Check whether --with-blacs was given. 14428if test "${with_blacs+set}" = set; then : 14429 withval=$with_blacs; 14430fi 14431 14432 case $with_blacs in 14433 yes | "") ;; 14434 no) acx_blacs_ok=disable ;; 14435 -* | */* | *.a | *.so | *.so.* | *.o) LIBS_BLACS="$with_blacs" ;; 14436 *) LIBS_BLACS="-l$with_blacs" ;; 14437 esac 14438fi 14439 14440acx_blacs_save_LIBS="$LIBS" 14441LIBS="$LIBS_BLACS $LIBS_LAPACK $LIBS_BLAS $LIBS $FLIBS" 14442 14443if test $acx_blacs_ok = no; then 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $blacs_pinfo in $LIBS_BLACS" >&5 14445$as_echo_n "checking for $blacs_pinfo in $LIBS_BLACS... " >&6; } 14446 cat > conftest.$ac_ext <<_ACEOF 14447 program main 14448 call $blacs_pinfo 14449 end 14450_ACEOF 14451if ac_fn_fc_try_link "$LINENO"; then : 14452 acx_blacs_ok=yes 14453fi 14454rm -f core conftest.err conftest.$ac_objext \ 14455 conftest$ac_exeext conftest.$ac_ext 14456 if test $acx_blacs_ok = no; then 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blacs_ok ($LIBS_BLACS)" >&5 14458$as_echo "$acx_blacs_ok ($LIBS_BLACS)" >&6; } 14459 else 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blacs_ok ($LIBS_BLACS)" >&5 14461$as_echo "$acx_blacs_ok ($LIBS_BLACS)" >&6; } 14462 fi 14463fi 14464 14465for blacs in blacs blacs-openmpi; do 14466 if test x"$blacs" = xblacs-openmpi; then 14467 blacsinit="blacsF77init-openmpi" 14468 else 14469 blacsinit="blacsF77init" 14470 fi 14471 if test $acx_blacs_ok = no; then 14472 as_ac_Lib=`$as_echo "ac_cv_lib_$blacs -l$blacsinit -l$blacs''_$blacs_pinfo" | $as_tr_sh` 14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $blacs_pinfo in -l$blacs -l$blacsinit -l$blacs" >&5 14474$as_echo_n "checking for $blacs_pinfo in -l$blacs -l$blacsinit -l$blacs... " >&6; } 14475if eval \${$as_ac_Lib+:} false; then : 14476 $as_echo_n "(cached) " >&6 14477else 14478 ac_check_lib_save_LIBS=$LIBS 14479LIBS="-l$blacs -l$blacsinit -l$blacs $FLIBS $LIBS" 14480cat > conftest.$ac_ext <<_ACEOF 14481 program main 14482 call $blacs_pinfo 14483 end 14484_ACEOF 14485if ac_fn_fc_try_link "$LINENO"; then : 14486 eval "$as_ac_Lib=yes" 14487else 14488 eval "$as_ac_Lib=no" 14489fi 14490rm -f core conftest.err conftest.$ac_objext \ 14491 conftest$ac_exeext conftest.$ac_ext 14492LIBS=$ac_check_lib_save_LIBS 14493fi 14494eval ac_res=\$$as_ac_Lib 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14496$as_echo "$ac_res" >&6; } 14497if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14498 acx_blacs_ok=yes; LIBS_BLACS="$LIBS_BLACS -l$blacs -l$blacsinit -l$blacs" 14499fi 14500 14501 fi 14502done 14503 14504if test x"$acx_blacs_ok" = xyes; then 14505 14506$as_echo "#define HAVE_BLACS 1" >>confdefs.h 14507 14508else 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find BLACS library (required for ScaLAPACK). 14510 *** Will compile without ScaLAPACK support" >&5 14511$as_echo "$as_me: WARNING: Could not find BLACS library (required for ScaLAPACK). 14512 *** Will compile without ScaLAPACK support" >&2;} 14513 LIBS_BLACS="" 14514fi 14515 14516 14517LIBS="$acx_blacs_save_LIBS" 14518 14519fi 14520 14521 14522 14523acx_scalapack_ok=no 14524 14525 if test "x$acx_blacs_ok" != xyes; then 14526 acx_scalapack_ok=noblacs 14527 fi 14528 14529pcheev=pcheev 14530 14531if test $acx_scalapack_ok = no; then 14532 14533# Check whether --with-scalapack was given. 14534if test "${with_scalapack+set}" = set; then : 14535 withval=$with_scalapack; 14536fi 14537 14538 case $with_scalapack in 14539 yes | "") ;; 14540 no) acx_scalapack_ok=disable ;; 14541 -* | */* | *.a | *.so | *.so.* | *.o) LIBS_SCALAPACK="$with_scalapack" ;; 14542 *) LIBS_SCALAPACK="-l$with_scalapack" ;; 14543 esac 14544fi 14545 14546acx_scalapack_save_LIBS="$LIBS" 14547LIBS="$LIBS_SCALAPACK $LIBS_BLACS $LIBS_LAPACK $LIBS_BLAS $LIBS $FLIBS" 14548 14549if test $acx_scalapack_ok = no; then 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pcheev in $LIBS_SCALAPACK" >&5 14551$as_echo_n "checking for $pcheev in $LIBS_SCALAPACK... " >&6; } 14552 cat > conftest.$ac_ext <<_ACEOF 14553 program main 14554 call $pcheev 14555 end 14556_ACEOF 14557if ac_fn_fc_try_link "$LINENO"; then : 14558 acx_scalapack_ok=yes 14559fi 14560rm -f core conftest.err conftest.$ac_objext \ 14561 conftest$ac_exeext conftest.$ac_ext 14562 if test $acx_scalapack_ok = no; then 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_scalapack_ok ($LIBS_SCALAPACK)" >&5 14564$as_echo "$acx_scalapack_ok ($LIBS_SCALAPACK)" >&6; } 14565 else 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_scalapack_ok ($LIBS_SCALAPACK)" >&5 14567$as_echo "$acx_scalapack_ok ($LIBS_SCALAPACK)" >&6; } 14568 fi 14569fi 14570 14571for scalapack in scalapack scalapack-openmpi; do 14572 if test $acx_scalapack_ok = no; then 14573 as_ac_Lib=`$as_echo "ac_cv_lib_$scalapack''_$pcheev" | $as_tr_sh` 14574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pcheev in -l$scalapack" >&5 14575$as_echo_n "checking for $pcheev in -l$scalapack... " >&6; } 14576if eval \${$as_ac_Lib+:} false; then : 14577 $as_echo_n "(cached) " >&6 14578else 14579 ac_check_lib_save_LIBS=$LIBS 14580LIBS="-l$scalapack $FLIBS $LIBS" 14581cat > conftest.$ac_ext <<_ACEOF 14582 program main 14583 call $pcheev 14584 end 14585_ACEOF 14586if ac_fn_fc_try_link "$LINENO"; then : 14587 eval "$as_ac_Lib=yes" 14588else 14589 eval "$as_ac_Lib=no" 14590fi 14591rm -f core conftest.err conftest.$ac_objext \ 14592 conftest$ac_exeext conftest.$ac_ext 14593LIBS=$ac_check_lib_save_LIBS 14594fi 14595eval ac_res=\$$as_ac_Lib 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14597$as_echo "$ac_res" >&6; } 14598if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14599 acx_scalapack_ok=yes; LIBS_SCALAPACK="$LIBS_SCALAPACK -l$scalapack" 14600fi 14601 14602 fi 14603done 14604 14605 14606LIBS="$acx_scalapack_save_LIBS" 14607 14608if test x"$acx_scalapack_ok" = xyes; then 14609 14610$as_echo "#define HAVE_SCALAPACK 1" >>confdefs.h 14611 14612else 14613 if test "x$acx_blacs_ok" == xyes; then 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Scalapack library. 14615 *** Will compile without Scalapack support" >&5 14616$as_echo "$as_me: WARNING: Could not find Scalapack library. 14617 *** Will compile without Scalapack support" >&2;} 14618 fi 14619fi 14620 14621 14622 14623 acx_elpa_ok=no 14624 acx_elpa_old_ok=no 14625 14626 acx_elpa_save_LIBS="$LIBS" 14627 acx_elpa_save_FCFLAGS="$FCFLAGS" 14628 14629 14630# Check whether --with-elpa-prefix was given. 14631if test "${with_elpa_prefix+set}" = set; then : 14632 withval=$with_elpa_prefix; 14633fi 14634 14635 14636 # Set FCFLAGS_ELPA only if not set from environment 14637 if test x"$FCFLAGS_ELPA" = x; then 14638 case $with_elpa_prefix in 14639 "") FCFLAGS_ELPA="-I/usr/include" ;; 14640 *) FCFLAGS_ELPA="-I$with_elpa_prefix/include" ;; 14641 esac 14642 fi 14643 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elpa" >&5 14645$as_echo_n "checking for elpa... " >&6; } 14646 14647 elpa_program_old=" program main 14648 14649 use :: elpa1 14650 implicit none 14651 14652 integer :: c1, c2, c3, err 14653 err = get_elpa_communicators(c1, 0, 0, c2, c3) 14654 14655 14656 end" 14657 14658 elpa_program=" program main 14659 14660 use :: elpa 14661 implicit none 14662 class(elpa_t), pointer :: e 14663 integer :: status 14664 14665 status = elpa_init(20170403) 14666 e => elpa_allocate() 14667 14668 14669 end" 14670 14671 FCFLAGS="$FCFLAGS_ELPA $acx_elpa_save_FCFLAGS" 14672 14673 if test x"$LIBS_ELPA" = x; then 14674 if test ! -z "$with_elpa_prefix"; then 14675 LIBS_ELPA="-L$with_elpa_prefix/lib -lelpa" 14676 else 14677 LIBS_ELPA="-lelpa" 14678 fi 14679 fi 14680 14681 LIBS="$LIBS_ELPA $acx_elpa_save_LIBS $LIBS_LAPACK $LIBS_BLAS" 14682 cat > conftest.$ac_ext <<_ACEOF 14683$elpa_program 14684_ACEOF 14685if ac_fn_fc_try_link "$LINENO"; then : 14686 acx_elpa_ok=yes 14687else 14688 acx_elpa_ok=no 14689fi 14690rm -f core conftest.err conftest.$ac_objext \ 14691 conftest$ac_exeext conftest.$ac_ext 14692 cat > conftest.$ac_ext <<_ACEOF 14693$elpa_program_old 14694_ACEOF 14695if ac_fn_fc_try_link "$LINENO"; then : 14696 acx_elpa_old_ok=yes 14697else 14698 acx_elpa_old_ok=no 14699fi 14700rm -f core conftest.err conftest.$ac_objext \ 14701 conftest$ac_exeext conftest.$ac_ext 14702 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_elpa_ok ($FCFLAGS_ELPA $LIBS_ELPA)" >&5 14704$as_echo "$acx_elpa_ok ($FCFLAGS_ELPA $LIBS_ELPA)" >&6; } 14705 14706 if test x$acx_elpa_ok != xyes; then 14707 14708 if test x$acx_elpa_old_ok != xyes; then 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the elpa library" >&5 14710$as_echo "$as_me: WARNING: Could not find the elpa library" >&2;} 14711 else 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could only find an old version of the elpa library, compiling without elpa support" >&5 14713$as_echo "$as_me: WARNING: Could only find an old version of the elpa library, compiling without elpa support" >&2;} 14714 fi 14715 14716 FCFLAGS_ELPA="" 14717 LIBS_ELPA="" 14718 14719 else 14720 14721 14722$as_echo "#define HAVE_ELPA 1" >>confdefs.h 14723 14724 14725 fi 14726 14727 14728 14729 14730 FCFLAGS="$acx_elpa_save_FCFLAGS" 14731 LIBS="$acx_elpa_save_LIBS" 14732 14733 14734 14735 14736acx_libfm_ok=no 14737 14738if test "x$acx_mpi_ok" != xyes; then 14739 acx_libfm_ok=nompi 14740fi 14741 14742fmm_func=fcs_init 14743 14744if test $acx_libfm_ok = no; then 14745 14746# Check whether --with-libfm was given. 14747if test "${with_libfm+set}" = set; then : 14748 withval=$with_libfm; 14749fi 14750 14751 case $with_libfm_prefix in 14752 yes | "") ;; 14753 no) acx_libfm_ok=disable ;; 14754 *) FCFLAGS_LIBFM="-I $with_libfm_prefix/include" LIBS_LIBFM="-L $with_libfm_prefix/lib -lfcs -lfcs_fmm -lfcs_common -lfcs_direct -lfcs_near -lfcs_gridsort -lfcs4fortran" ;; 14755 esac 14756fi 14757 14758acx_libfm_save_LIBS="$LIBS" 14759LIBS="$FLIBS $LIBS_LIBFM $LIBS" 14760 14761if test $acx_libfm_ok = no; then 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fmm_func in $LIBS_LIBFM" >&5 14763$as_echo_n "checking for $fmm_func in $LIBS_LIBFM... " >&6; } 14764 cat > conftest.$ac_ext <<_ACEOF 14765 program main 14766 14767 include "fcs_fconfig.h" 14768 use fcs_module 14769 use iso_fortran_env 14770 use iso_c_binding 14771 implicit none 14772 type(c_ptr) :: handle 14773 type(c_ptr) :: ret 14774 character(len = 8) :: method 14775 integer :: communicator 14776 ret = fcs_init(handle, trim(adjustl(method)) // c_null_char, communicator) 14777 14778 end 14779_ACEOF 14780if ac_fn_fc_try_link "$LINENO"; then : 14781 acx_libfm_ok=yes 14782fi 14783rm -f core conftest.err conftest.$ac_objext \ 14784 conftest$ac_exeext conftest.$ac_ext 14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_libfm_ok" >&5 14786$as_echo "$acx_libfm_ok" >&6; } 14787fi 14788 14789 14790 14791LIBS="$acx_libfm_save_LIBS" 14792 14793if test x"$acx_libfm_ok" = xyes; then 14794 14795$as_echo "#define HAVE_LIBFM 1" >>confdefs.h 14796 14797else 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Libfm library. 14799 *** Will compile without Libfm support" >&5 14800$as_echo "$as_me: WARNING: Could not find Libfm library. 14801 *** Will compile without Libfm support" >&2;} 14802fi 14803 14804 14805ac_ext=c 14806ac_cpp='$CPP $CPPFLAGS' 14807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14809ac_compiler_gnu=$ac_cv_c_compiler_gnu 14810 14811 14812acx_libyaml_ok=no 14813 14814 14815# Check whether --with-yaml-prefix was given. 14816if test "${with_yaml_prefix+set}" = set; then : 14817 withval=$with_yaml_prefix; 14818fi 14819 14820 14821# Set CFLAGS_LIBYAML only if not set from environment 14822if test x"$CFLAGS_LIBYAML" = x; then 14823 case $with_yaml_prefix in 14824 "") CFLAGS_LIBYAML="-I/usr/include" ;; 14825 *) CFLAGS_LIBYAML="-I$with_yaml_prefix/include" ;; 14826 esac 14827fi 14828 14829acx_libyaml_save_LIBS="$LIBS" 14830acx_libyaml_save_CFLAGS="$CFLAGS" 14831 14832if test -z "$LIBS_LIBYAML"; then 14833 case $with_yaml_prefix in 14834 "") LIBS_LIBYAML="" ;; 14835 *) LIBS_LIBYAML="-L$with_yaml_prefix/lib" ;; 14836 esac 14837fi 14838 14839LIBS="$LIBS_LIBYAML $acx_libyaml_save_LIBS" 14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_parse in -lyaml" >&5 14841$as_echo_n "checking for yaml_parser_parse in -lyaml... " >&6; } 14842if ${ac_cv_lib_yaml_yaml_parser_parse+:} false; then : 14843 $as_echo_n "(cached) " >&6 14844else 14845 ac_check_lib_save_LIBS=$LIBS 14846LIBS="-lyaml $LIBS" 14847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14848/* end confdefs.h. */ 14849 14850/* Override any GCC internal prototype to avoid an error. 14851 Use char because int might match the return type of a GCC 14852 builtin and then its argument prototype would still apply. */ 14853#ifdef __cplusplus 14854extern "C" 14855#endif 14856char yaml_parser_parse (); 14857#ifdef FC_DUMMY_MAIN 14858#ifndef FC_DUMMY_MAIN_EQ_F77 14859# ifdef __cplusplus 14860 extern "C" 14861# endif 14862 int FC_DUMMY_MAIN() { return 1; } 14863#endif 14864#endif 14865int 14866main () 14867{ 14868return yaml_parser_parse (); 14869 ; 14870 return 0; 14871} 14872_ACEOF 14873if ac_fn_c_try_link "$LINENO"; then : 14874 ac_cv_lib_yaml_yaml_parser_parse=yes 14875else 14876 ac_cv_lib_yaml_yaml_parser_parse=no 14877fi 14878rm -f core conftest.err conftest.$ac_objext \ 14879 conftest$ac_exeext conftest.$ac_ext 14880LIBS=$ac_check_lib_save_LIBS 14881fi 14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_parse" >&5 14883$as_echo "$ac_cv_lib_yaml_yaml_parser_parse" >&6; } 14884if test "x$ac_cv_lib_yaml_yaml_parser_parse" = xyes; then : 14885 acx_libyaml_ok=yes 14886else 14887 acx_libyaml_ok=no 14888fi 14889 14890 14891if test x"$acx_libyaml_ok" = xyes; then 14892 LIBS_LIBYAML="$LIBS_YAML -lyaml" 14893 14894$as_echo "#define HAVE_YAML 1" >>confdefs.h 14895 14896 14897else 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find LibYAML library." >&5 14899$as_echo "$as_me: WARNING: Could not find LibYAML library." >&2;} 14900 LIBS_LIBYAML="" 14901 CFLAGS_LIBYAML="" 14902fi 14903 14904 14905 14906LIBS="$acx_libyaml_save_LIBS" 14907CFLAGS="$acx_libyaml_save_CFLAGS" 14908 14909 14910ac_ext=${ac_fc_srcext-f} 14911ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 14912ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 14913ac_compiler_gnu=$ac_cv_fc_compiler_gnu 14914 14915 14916 14917 14918acx_futile_ok=no 14919 14920 14921# Check whether --with-futile-prefix was given. 14922if test "${with_futile_prefix+set}" = set; then : 14923 withval=$with_futile_prefix; 14924fi 14925 14926 14927# Set FCFLAGS_FUTILE only if not set from environment 14928if test x"$FCFLAGS_FUTILE" = x; then 14929 case $with_futile_prefix in 14930 "") FCFLAGS_FUTILE="$ax_cv_f90_modflag/usr/include" ;; 14931 *) FCFLAGS_FUTILE="$ax_cv_f90_modflag$with_futile_prefix/include" ;; 14932 esac 14933fi 14934 14935 14936# Check whether --with-futile-include was given. 14937if test "${with_futile_include+set}" = set; then : 14938 withval=$with_futile_include; 14939fi 14940 14941case $with_futile_include in 14942 "") ;; 14943 *) FCFLAGS_FUTILE="$ax_cv_f90_modflag$with_futile_include" ;; 14944esac 14945 14946acx_futile_save_LIBS="$LIBS" 14947acx_futile_save_FCFLAGS="$FCFLAGS" 14948 14949 14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Futile" >&5 14951$as_echo_n "checking for Futile... " >&6; } 14952 14953testprogram=" program main 14954 14955 use yaml_parse 14956 use yaml_output 14957 use f_utils 14958 use dynamic_memory 14959 use dictionaries 14960 14961 call yaml_mapping_open('Test') 14962 call yaml_map('foo',1) 14963 call yaml_mapping_close() 14964 14965 14966 end" 14967 14968 14969FCFLAGS="$FCFLAGS_FUTILE $acx_futile_save_FCFLAGS" 14970 14971if test -z "$LIBS_FUTILE"; then 14972 if test ! -z "$with_futile_prefix"; then 14973 LIBS_FUTILE="-L$with_futile_prefix/lib" 14974 else 14975 LIBS_FUTILE="" 14976 fi 14977 LIBS_FUTILE="$LIBS_FUTILE -lfutile-1" 14978fi 14979 14980LIBS="$LIBS_FUTILE $LIBS_LIBYAML $LIBS_BLAS $acx_futile_save_LIBS" 14981 14982cat > conftest.$ac_ext <<_ACEOF 14983$testprogram 14984_ACEOF 14985if ac_fn_fc_try_link "$LINENO"; then : 14986 acx_futile_ok=yes 14987fi 14988rm -f core conftest.err conftest.$ac_objext \ 14989 conftest$ac_exeext conftest.$ac_ext 14990 14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_futile_ok ($FCFLAGS_FUTILE $LIBS_FUTILE)" >&5 14992$as_echo "$acx_futile_ok ($FCFLAGS_FUTILE $LIBS_FUTILE)" >&6; } 14993 14994 14995if test x"$acx_futile_ok" = xyes; then 14996 14997$as_echo "#define HAVE_FUTILE 1" >>confdefs.h 14998 14999else 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Futile library." >&5 15001$as_echo "$as_me: WARNING: Could not find Futile library." >&2;} 15002 LIBS_FUTILE="" 15003 FCFLAGS_FUTILE="" 15004fi 15005 15006 15007 15008LIBS="$acx_futile_save_LIBS" 15009FCFLAGS="$acx_futile_save_FCFLAGS" 15010 15011 15012 15013 15014 15015 15016acx_psolver_ok=no 15017 15018 15019# Check whether --with-psolver-prefix was given. 15020if test "${with_psolver_prefix+set}" = set; then : 15021 withval=$with_psolver_prefix; 15022fi 15023 15024 15025# Set FCFLAGS_PSOLVER only if not set from environment 15026if test x"$FCFLAGS_PSOLVER" = x; then 15027 case $with_psolver_prefix in 15028 "") FCFLAGS_PSOLVER="$ax_cv_f90_modflag/usr/include" ;; 15029 *) FCFLAGS_PSOLVER="$ax_cv_f90_modflag$with_psolver_prefix/include" ;; 15030 esac 15031fi 15032 15033 15034# Check whether --with-psolver-include was given. 15035if test "${with_psolver_include+set}" = set; then : 15036 withval=$with_psolver_include; 15037fi 15038 15039case $with_psolver_include in 15040 "") ;; 15041 *) FCFLAGS_PSOLVER="$ax_cv_f90_modflag$with_psolver_include" ;; 15042esac 15043 15044acx_psolver_save_LIBS="$LIBS" 15045acx_psolver_save_FCFLAGS="$FCFLAGS" 15046 15047 15048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSolver" >&5 15049$as_echo_n "checking for PSolver... " >&6; } 15050 15051testprogram=" program main 15052 15053 use Poisson_Solver 15054 15055 implicit none 15056 type(coulomb_operator) :: pkernel 15057 real(dp) :: eps(1,1,1) 15058 15059 call pkernel_set(pkernel,eps=eps) 15060 15061 call pkernel_free(pkernel) 15062 15063 end" 15064 15065 15066FCFLAGS="$FCFLAGS_PSOLVER $acx_psolver_save_FCFLAGS" 15067 15068if test -z "$LIBS_PSOLVER"; then 15069 if test ! -z "$with_psolver_prefix"; then 15070 LIBS_PSOLVER="-L$with_psolver_prefix/lib" 15071 else 15072 LIBS_PSOLVER="" 15073 fi 15074 LIBS_PSOLVER="$LIBS_PSOLVER -lPSolver-1" 15075fi 15076 15077LIBS="$LIBS_PSOLVER $LIBS_FUTILE $LIBS_LIBYAML $LIBS_BLAS $acx_psolver_save_LIBS" 15078 15079cat > conftest.$ac_ext <<_ACEOF 15080$testprogram 15081_ACEOF 15082if ac_fn_fc_try_link "$LINENO"; then : 15083 acx_psolver_ok=yes 15084fi 15085rm -f core conftest.err conftest.$ac_objext \ 15086 conftest$ac_exeext conftest.$ac_ext 15087 15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_psolver_ok ($FCFLAGS_PSOLVER $LIBS_PSOLVER)" >&5 15089$as_echo "$acx_psolver_ok ($FCFLAGS_PSOLVER $LIBS_PSOLVER)" >&6; } 15090 15091 15092if test x"$acx_psolver_ok" = xyes; then 15093 15094$as_echo "#define HAVE_PSOLVER 1" >>confdefs.h 15095 15096else 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find PSolver library." >&5 15098$as_echo "$as_me: WARNING: Could not find PSolver library." >&2;} 15099 LIBS_PSOLVER="" 15100 FCFLAGS_PSOLVER="" 15101fi 15102 15103 15104 15105LIBS="$acx_psolver_save_LIBS" 15106FCFLAGS="$acx_psolver_save_FCFLAGS" 15107 15108 15109 15110if test "x$acx_psolver_ok" = "xno"; then 15111 15112 15113acx_isf_ok=no 15114 15115 15116# Check whether --with-isf-prefix was given. 15117if test "${with_isf_prefix+set}" = set; then : 15118 withval=$with_isf_prefix; 15119fi 15120 15121case $with_isf_prefix in 15122 yes | "") ;; 15123 no) acx_isf_ok=disable ;; 15124 *.a | *.so | *.so.* | *.o) LIBS_ISF=$with_isf_prefix ; 15125 xpath=${with_isf_prefix%/lib/*} 15126 FCFLAGS_ISF="$ax_cv_f90_modflag$xpath/include";; 15127 *) LIBS_ISF="-L$with_isf_prefix/lib"; 15128 FCFLAGS_ISF="$ax_cv_f90_modflag$with_isf_prefix/include" ;; 15129esac 15130 15131 15132# Check whether --with-isf-include was given. 15133if test "${with_isf_include+set}" = set; then : 15134 withval=$with_isf_include; 15135fi 15136 15137case $with_isf_include in 15138 "") if test "x$FCFLAGS_ISF" == x; then 15139 FCFLAGS_ISF="$ax_cv_f90_modflag/usr/include" 15140 fi;; 15141 *) FCFLAGS_ISF="$ax_cv_f90_modflag$with_isf_include" ;; 15142esac 15143 15144if test "x$acx_mpi_ok" != xyes; then 15145 acx_isf_ok=nompi 15146fi 15147 15148acx_isf_save_LIBS="$LIBS" 15149acx_isf_save_FCFLAGS="$FCFLAGS" 15150 15151FCFLAGS_ISF="$FCFLAGS_ISF" 15152FCFLAGS="$FCFLAGS_ISF $acx_isf_save_FCFLAGS" 15153 15154# some symbols below will not be defined for version 1.0.4, making sure 15155# we have a version that is able to work in our code 15156testprogram=" program main 15157 15158 use Poisson_Solver 15159 15160 implicit none 15161 type(coulomb_operator) :: pkernel 15162 call pkernel_set(pkernel,.true.) 15163 15164 call pkernel_free(pkernel) 15165 15166 end" 15167 15168 15169if test x"$acx_isf_ok" = xno; then 15170 LIBS="$LIBS_ISF $LIBS_LAPACK $LIBS_BLAS $acx_isf_save_LIB" 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isf library" >&5 15172$as_echo_n "checking for isf library... " >&6; } 15173 cat > conftest.$ac_ext <<_ACEOF 15174$testprogram 15175_ACEOF 15176if ac_fn_fc_try_link "$LINENO"; then : 15177 acx_isf_ok=yes; LIBS_ISF="$LIBS_ISF " 15178fi 15179rm -f core conftest.err conftest.$ac_objext \ 15180 conftest$ac_exeext conftest.$ac_ext 15181 if test $acx_isf_ok = no; then 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_isf_ok" >&5 15183$as_echo "$acx_isf_ok" >&6; } 15184 else 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_isf_ok ($LIBS_ISF)" >&5 15186$as_echo "$acx_isf_ok ($LIBS_ISF)" >&6; } 15187 fi 15188fi 15189 15190 15191if test $acx_isf_ok = no; then 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isf library with -lPSolver-1" >&5 15193$as_echo_n "checking for isf library with -lPSolver-1... " >&6; } 15194 if test "$LIBS_ISF" = ""; then 15195 LIBS="-lPSolver-1 -lwrappers -lflib -lyaml -lrt $LIBS_LAPACK $LIBS_BLAS $LIBS $acx_isf_save_LIB" 15196 cat > conftest.$ac_ext <<_ACEOF 15197$testprogram 15198_ACEOF 15199if ac_fn_fc_try_link "$LINENO"; then : 15200 acx_isf_ok=yes; LIBS_ISF="-lPSolver-1 -lwrappers -lflib -lyaml -lrt" 15201fi 15202rm -f core conftest.err conftest.$ac_objext \ 15203 conftest$ac_exeext conftest.$ac_ext 15204 else 15205 LIBS="$LIBS_ISF -lPSolver-1 -lwrappers -lflib -lyaml -lrt $LIBS_LAPACK $LIBS_BLAS $acx_isf_save_LIB" 15206 cat > conftest.$ac_ext <<_ACEOF 15207$testprogram 15208_ACEOF 15209if ac_fn_fc_try_link "$LINENO"; then : 15210 acx_isf_ok=yes; 15211 LIBS_ISF="$LIBS_ISF -lPSolver-1 -lwrappers -lflib -lyaml -lrt " 15212fi 15213rm -f core conftest.err conftest.$ac_objext \ 15214 conftest$ac_exeext conftest.$ac_ext 15215 fi 15216 if test $acx_isf_ok = no; then 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_isf_ok" >&5 15218$as_echo "$acx_isf_ok" >&6; } 15219 else 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_isf_ok ($LIBS_ISF)" >&5 15221$as_echo "$acx_isf_ok ($LIBS_ISF)" >&6; } 15222 fi 15223fi 15224 15225 15226if test x"$acx_isf_ok" = xyes; then 15227 15228$as_echo "#define HAVE_LIBISF 1" >>confdefs.h 15229 15230 15231else 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find ISF library. 15233 *** Will compile internal ISF taken from BigDFT 1.7.6" >&5 15234$as_echo "$as_me: WARNING: Could not find ISF library. 15235 *** Will compile internal ISF taken from BigDFT 1.7.6" >&2;} 15236 LIBS_ISF="" 15237 FCFLAGS_ISF="" 15238 HAVE_COMP_ISF=1 15239 15240$as_echo "#define HAVE_COMP_ISF 1" >>confdefs.h 15241 15242fi 15243 15244 15245 15246LIBS="$acx_isf_save_LIBS" 15247FCFLAGS="$acx_isf_save_FCFLAGS" 15248 15249 15250fi 15251 if test "x${HAVE_ISF}" == "x1"; then 15252 COMPILE_LIBYAML_TRUE= 15253 COMPILE_LIBYAML_FALSE='#' 15254else 15255 COMPILE_LIBYAML_TRUE='#' 15256 COMPILE_LIBYAML_FALSE= 15257fi 15258 15259 15260 15261acx_pspio_ok=no 15262 15263acx_pspio_save_LIBS="$LIBS" 15264acx_pspio_save_FCFLAGS="$FCFLAGS" 15265 15266if test "$PKGCONFIG" != ""; then 15267 PSPIO_PREFIX=`$PKGCONFIG --variable=prefix pspio` 15268else 15269 PSPIO_PREFIX=/usr 15270fi 15271 15272# Check whether --with-pspio-prefix was given. 15273if test "${with_pspio_prefix+set}" = set; then : 15274 withval=$with_pspio_prefix; 15275else 15276 with_pspio_prefix=$PSPIO_PREFIX 15277fi 15278 15279case $with_pspio_prefix in 15280 no ) acx_pspio_ok=disable ;; 15281 *) LIBS_PSPIO="-L$with_pspio_prefix/lib -lfpspio -lpspio"; FCFLAGS_PSPIO="$ax_cv_f90_modflag$with_pspio_prefix/include" ;; 15282esac 15283 15284testprog=" program main 15285 15286 use fpspio_m 15287 15288 type(fpspio_pspdata_t) :: pspdata 15289 call fpspio_pspdata_free(pspdata) 15290 end" 15291 15292if test "$acx_pspio_ok" = no; then 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pspio" >&5 15294$as_echo_n "checking for pspio... " >&6; } 15295 # If the location has been passed with --with-pspio-prefix just test this 15296 if test "$LIBS_PSPIO"; then 15297 pspio_fcflags="$FCFLAGS_PSPIO"; pspio_libs="$LIBS_PSPIO" 15298 FCFLAGS="$pspio_fcflags $acx_pspio_save_FCFLAGS $GSL_CFLAGS" 15299 LIBS="$pspio_libs $acx_pspio_save_LIBS $GSL_LIBS" 15300 cat > conftest.$ac_ext <<_ACEOF 15301$testprog 15302_ACEOF 15303if ac_fn_fc_try_link "$LINENO"; then : 15304 acx_pspio_ok=yes; FCFLAGS_PSPIO="$pspio_fcflags"; LIBS_PSPIO="$pspio_libs" 15305fi 15306rm -f core conftest.err conftest.$ac_objext \ 15307 conftest$ac_exeext conftest.$ac_ext 15308 else 15309 pspio_libs="-lpspio_fortran -lpspio" 15310 FCFLAGS="$pspio_fcflags $acx_pspio_save_FCFLAGS $GSL_CFLAGS" 15311 LIBS=" $acx_pspio_save_LIBS $pspio_libs $GSL_LIBS" 15312 cat > conftest.$ac_ext <<_ACEOF 15313$testprog 15314_ACEOF 15315if ac_fn_fc_try_link "$LINENO"; then : 15316 acx_pspio_ok=yes; FCFLAGS_PSPIO="$pspio_fcflags"; LIBS_PSPIO="$pspio_libs" 15317fi 15318rm -f core conftest.err conftest.$ac_objext \ 15319 conftest$ac_exeext conftest.$ac_ext 15320 fi 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pspio_ok ($FCFLAGS_PSPIO $LIBS_PSPIO)" >&5 15322$as_echo "$acx_pspio_ok ($FCFLAGS_PSPIO $LIBS_PSPIO)" >&6; } 15323fi 15324 15325 15326 15327FCFLAGS="$acx_pspio_save_FCFLAGS" 15328LIBS="$acx_pspio_save_LIBS" 15329 15330if test x"$acx_pspio_ok" = xyes; then 15331 15332$as_echo "#define HAVE_PSPIO 1" >>confdefs.h 15333 15334else 15335 LIBS_PSPIO="" 15336 FCFLAGS_PSPIO="" 15337fi 15338 15339 15340 15341 15342 acx_poke_ok=no 15343 15344 acx_poke_save_LIBS="$LIBS" 15345 acx_poke_save_FCFLAGS="$FCFLAGS" 15346 15347 15348# Check whether --with-poke-prefix was given. 15349if test "${with_poke_prefix+set}" = set; then : 15350 withval=$with_poke_prefix; 15351fi 15352 15353 15354 # Set FCFLAGS_POKE only if not set from environment 15355 if test x"$FCFLAGS_POKE" = x; then 15356 case $with_poke_prefix in 15357 "") FCFLAGS_POKE="-I/usr/include" ;; 15358 *) FCFLAGS_POKE="-I$with_poke_prefix/include" ;; 15359 esac 15360 fi 15361 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poke" >&5 15363$as_echo_n "checking for poke... " >&6; } 15364 15365 poke_program=" program main 15366 15367 use :: poke 15368 implicit none 15369 15370 type(PokeGrid) :: grid 15371 15372 grid = PokeGrid((/1.0_8, 1.0_8, 1.0_8/), (/10, 10, 10/)) 15373 15374 15375 end" 15376 15377 FCFLAGS="$FCFLAGS_POKE $acx_poke_save_FCFLAGS" 15378 15379 if test ! -z "$with_poke_prefix"; then 15380 LIBS_POKE="-L$with_poke_prefix/lib -lpoke" 15381 else 15382 LIBS_POKE="-lpoke" 15383 fi 15384 15385 LIBS="$LIBS_POKE $acx_poke_save_LIBS $LIBS_FFTW" 15386 cat > conftest.$ac_ext <<_ACEOF 15387$poke_program 15388_ACEOF 15389if ac_fn_fc_try_link "$LINENO"; then : 15390 acx_poke_ok=yes 15391else 15392 acx_poke_ok=no 15393fi 15394rm -f core conftest.err conftest.$ac_objext \ 15395 conftest$ac_exeext conftest.$ac_ext 15396 15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_poke_ok ($FCFLAGS_POKE $LIBS_POKE)" >&5 15398$as_echo "$acx_poke_ok ($FCFLAGS_POKE $LIBS_POKE)" >&6; } 15399 15400 if test x$acx_poke_ok != xyes; then 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the poke library" >&5 15403$as_echo "$as_me: WARNING: Could not find the poke library" >&2;} 15404 15405 FCFLAGS_POKE="" 15406 LIBS_POKE="" 15407 15408 else 15409 15410 15411$as_echo "#define HAVE_POKE 1" >>confdefs.h 15412 15413 15414 fi 15415 15416 15417 15418 15419 FCFLAGS="$acx_poke_save_FCFLAGS" 15420 LIBS="$acx_poke_save_LIBS" 15421 15422 15423 15424ac_ext=c 15425ac_cpp='$CPP $CPPFLAGS' 15426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15428ac_compiler_gnu=$ac_cv_c_compiler_gnu 15429 15430 15431 15432acx_external_metis=no 15433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external METIS library" >&5 15434$as_echo_n "checking for external METIS library... " >&6; } 15435 15436# METIS is only useful in parallel. 15437if test x"$acx_mpi_ok" != xyes; then 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used without MPI" >&5 15439$as_echo "not used without MPI" >&6; } 15440else 15441 acx_external_metis=no 15442 15443 15444 15445# Check whether --with-metis-prefix was given. 15446if test "${with_metis_prefix+set}" = set; then : 15447 withval=$with_metis_prefix; 15448fi 15449 15450 15451 case $with_metis_prefix in 15452 yes | "") ;; 15453 no ) acx_external_metis=disabled ;; 15454 *) LIBS_METIS="-L$with_metis_prefix/lib -lmetis"; 15455 METIS_CFLAGS="-I$with_metis_prefix/include" 15456 esac 15457 15458 if test x"$acx_external_metis" != xdisabled; then 15459 15460 acx_metis_save_CFLAGS="$CFLAGS" 15461 acx_metis_save_LIBS="$LIBS" 15462 15463 if test "x${LIBS_METIS+set}" != xset ; then 15464 LIBS_METIS="-lmetis" 15465 fi 15466 15467 CFLAGS="$CFLAGS $METIS_CFLAGS" 15468 LIBS="$LIBS $LIBS_METIS" 15469 15470 15471 ac_ext=c 15472ac_cpp='$CPP $CPPFLAGS' 15473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15475ac_compiler_gnu=$ac_cv_c_compiler_gnu 15476 15477 15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15479/* end confdefs.h. */ 15480 15481#include <metis.h> 15482#if defined(METIS_USE_DOUBLEPRECISION) || REALTYPEWIDTH == 64 15483 #error METIS must be compiled in single precision for Octopus. 15484#endif 15485 15486#ifdef FC_DUMMY_MAIN 15487#ifndef FC_DUMMY_MAIN_EQ_F77 15488# ifdef __cplusplus 15489 extern "C" 15490# endif 15491 int FC_DUMMY_MAIN() { return 1; } 15492#endif 15493#endif 15494int 15495main () 15496{ 15497 15498idx_t *options; 15499METIS_SetDefaultOptions(options); 15500 15501 ; 15502 return 0; 15503} 15504_ACEOF 15505if ac_fn_c_try_link "$LINENO"; then : 15506 acx_external_metis=yes 15507fi 15508rm -f core conftest.err conftest.$ac_objext \ 15509 conftest$ac_exeext conftest.$ac_ext 15510 15511 ac_ext=c 15512ac_cpp='$CPP $CPPFLAGS' 15513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15515ac_compiler_gnu=$ac_cv_c_compiler_gnu 15516 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_external_metis ($METIS_CFLAGS $LIBS_METIS)" >&5 15518$as_echo "$acx_external_metis ($METIS_CFLAGS $LIBS_METIS)" >&6; } 15519 15520 CFLAGS="$acx_metis_save_CFLAGS" 15521 LIBS="$acx_metis_save_LIBS" 15522 else 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15524$as_echo "disabled" >&6; } 15525 acx_external_metis=no 15526 fi 15527 15528 if test x"$acx_external_metis" = xno ; then 15529 15530 # Check whether --enable-metis was given. 15531if test "${enable_metis+set}" = set; then : 15532 enableval=$enable_metis; acx_internal_metis=$enableval 15533else 15534 acx_internal_metis=yes 15535fi 15536 15537 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether METIS included in Octopus is enabled" >&5 15539$as_echo_n "checking whether METIS included in Octopus is enabled... " >&6; } 15540 15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_internal_metis" >&5 15542$as_echo "$acx_internal_metis" >&6; } 15543 15544 if test x"$acx_internal_metis" = xyes; then 15545 HAVE_METIS=1 15546 HAVE_COMP_METIS=1 15547 15548$as_echo "#define HAVE_METIS 1" >>confdefs.h 15549 15550 15551$as_echo "#define HAVE_COMP_METIS 1" >>confdefs.h 15552 15553 else 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octopus will be compiled without METIS support" >&5 15555$as_echo "$as_me: WARNING: Octopus will be compiled without METIS support" >&2;} 15556 fi 15557 else 15558 acx_internal_metis=no 15559 15560$as_echo "#define HAVE_METIS 1" >>confdefs.h 15561 15562 fi 15563fi 15564 15565if test x"$acx_external_metis" = xno; then 15566 METIS_CFLAGS="" 15567 LIBS_METIS="" 15568fi 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578acx_parmetis_ok=yes 15579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ParMETIS library" >&5 15580$as_echo_n "checking for ParMETIS library... " >&6; } 15581 15582if test x"$acx_mpi_ok" != xyes; then 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: requires MPI" >&5 15584$as_echo "requires MPI" >&6; } 15585 acx_parmetis_ok=no 15586else 15587 if test x"$acx_external_metis" != xyes; then 15588 # To compile ParMETIS, you needed external METIS. So, no point in depending on internal METIS here. 15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: requires external METIS" >&5 15590$as_echo "requires external METIS" >&6; } 15591 acx_parmetis_ok=no 15592 fi 15593fi 15594 15595if test x"$acx_parmetis_ok" != xno; then 15596 15597# Check whether --with-parmetis-prefix was given. 15598if test "${with_parmetis_prefix+set}" = set; then : 15599 withval=$with_parmetis_prefix; 15600fi 15601 15602 15603 case $with_parmetis_prefix in 15604 yes | "") ;; 15605 no ) acx_parmetis_ok=disabled ;; 15606 *) LIBS_PARMETIS="-L$with_parmetis_prefix/lib -lparmetis" 15607 PARMETIS_CFLAGS="-I$with_parmetis_prefix/include" 15608 esac 15609 15610 if test x"$acx_parmetis_ok" != xdisabled; then 15611 15612 acx_parmetis_save_CFLAGS="$CFLAGS" 15613 acx_parmetis_save_LIBS="$LIBS" 15614 15615 if test "x${LIBS_PARMETIS+set}" != xset ; then 15616 LIBS_PARMETIS="-lparmetis" 15617 fi 15618 15619 CFLAGS="$CFLAGS $PARMETIS_CFLAGS $METIS_CFLAGS" 15620 LIBS="$LIBS $LIBS_PARMETIS $LIBS_METIS" 15621 15622 15623 ac_ext=c 15624ac_cpp='$CPP $CPPFLAGS' 15625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15627ac_compiler_gnu=$ac_cv_c_compiler_gnu 15628 15629 15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15631/* end confdefs.h. */ 15632 15633#include <parmetis.h> 15634#include <stdlib.h> 15635 15636#ifdef FC_DUMMY_MAIN 15637#ifndef FC_DUMMY_MAIN_EQ_F77 15638# ifdef __cplusplus 15639 extern "C" 15640# endif 15641 int FC_DUMMY_MAIN() { return 1; } 15642#endif 15643#endif 15644int 15645main () 15646{ 15647 15648idx_t *idx; 15649real_t *real; 15650MPI_Fint *fcomm; 15651ParMETIS_V3_PartKway(idx, idx, idx, NULL, NULL, idx, idx, idx, idx, real, real, idx, idx, idx, fcomm); 15652 15653 ; 15654 return 0; 15655} 15656_ACEOF 15657if ac_fn_c_try_link "$LINENO"; then : 15658 acx_parmetis_ok=yes 15659else 15660 acx_parmetis_ok=no 15661fi 15662rm -f core conftest.err conftest.$ac_objext \ 15663 conftest$ac_exeext conftest.$ac_ext 15664 15665 ac_ext=c 15666ac_cpp='$CPP $CPPFLAGS' 15667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15669ac_compiler_gnu=$ac_cv_c_compiler_gnu 15670 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_parmetis_ok ($PARMETIS_CFLAGS $LIBS_PARMETIS)" >&5 15672$as_echo "$acx_parmetis_ok ($PARMETIS_CFLAGS $LIBS_PARMETIS)" >&6; } 15673 15674 CFLAGS="$acx_parmetis_save_CFLAGS" 15675 LIBS="$acx_parmetis_save_LIBS" 15676 else 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15678$as_echo "no" >&6; } 15679 fi 15680fi 15681 15682if test x"$acx_parmetis_ok" = xyes; then 15683 HAVE_PARMETIS=1 15684 15685$as_echo "#define HAVE_PARMETIS 1" >>confdefs.h 15686 15687else 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octopus will be compiled without PARMETIS support" >&5 15689$as_echo "$as_me: WARNING: Octopus will be compiled without PARMETIS support" >&2;} 15690 PARMETIS_CFLAGS="" 15691 LIBS_PARMETIS="" 15692fi 15693 15694 15695 15696 15697ac_ext=${ac_fc_srcext-f} 15698ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 15699ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 15700ac_compiler_gnu=$ac_cv_fc_compiler_gnu 15701 15702 if test x${HAVE_COMP_METIS} = x1; then 15703 COMPILE_METIS_TRUE= 15704 COMPILE_METIS_FALSE='#' 15705else 15706 COMPILE_METIS_TRUE='#' 15707 COMPILE_METIS_FALSE= 15708fi 15709 15710 15711 15712 15713 acx_likwid_ok=no 15714 15715 acx_likwid_save_LIBS="$LIBS" 15716 acx_likwid_save_FCFLAGS="$FCFLAGS" 15717 15718 15719# Check whether --with-likwid-prefix was given. 15720if test "${with_likwid_prefix+set}" = set; then : 15721 withval=$with_likwid_prefix; 15722fi 15723 15724 15725 # Set FCFLAGS_LIKWID only if not set from environment 15726 if test x"$FCFLAGS_LIKWID" = x; then 15727 case $with_likwid_prefix in 15728 "") FCFLAGS_LIKWID="-I/usr/include" ;; 15729 *) FCFLAGS_LIKWID="-I$with_likwid_prefix/include" ;; 15730 esac 15731 fi 15732 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for likwid" >&5 15734$as_echo_n "checking for likwid... " >&6; } 15735 15736 likwid_program=" program main 15737 15738 use :: likwid 15739 implicit none 15740 15741 call likwid_markerInit() 15742 15743 end" 15744 15745 FCFLAGS="$FCFLAGS_LIKWID $acx_likwid_save_FCFLAGS" 15746 15747 if test ! -z "$with_likwid_prefix"; then 15748 LIBS_LIKWID="-L$with_likwid_prefix/lib -llikwid" 15749 else 15750 LIBS_LIKWID="-llikwid" 15751 fi 15752 15753 LIBS="$LIBS_LIKWID $acx_likwid_save_LIBS $LIBS_LAPACK $LIBS_BLAS" 15754 cat > conftest.$ac_ext <<_ACEOF 15755$likwid_program 15756_ACEOF 15757if ac_fn_fc_try_link "$LINENO"; then : 15758 acx_likwid_ok=yes 15759else 15760 acx_likwid_ok=no 15761fi 15762rm -f core conftest.err conftest.$ac_objext \ 15763 conftest$ac_exeext conftest.$ac_ext 15764 15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_likwid_ok ($FCFLAGS_LIKWID $LIBS_LIKWID)" >&5 15766$as_echo "$acx_likwid_ok ($FCFLAGS_LIKWID $LIBS_LIKWID)" >&6; } 15767 15768 if test x$acx_likwid_ok != xyes; then 15769 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the likwid library" >&5 15771$as_echo "$as_me: WARNING: Could not find the likwid library" >&2;} 15772 15773 FCFLAGS_LIKWID="" 15774 LIBS_LIKWID="" 15775 15776 else 15777 15778 15779$as_echo "#define HAVE_LIKWID 1" >>confdefs.h 15780 15781 15782 fi 15783 15784 15785 15786 15787 FCFLAGS="$acx_likwid_save_FCFLAGS" 15788 LIBS="$acx_likwid_save_LIBS" 15789 15790 15791 15792 15793 15794 15795 15796 15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 15798$as_echo_n "checking for GNU make... " >&6; } 15799for a in "$MAKE" make gmake gnumake ; do 15800 if test -z "$a" ; then continue ; fi ; 15801 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 15802 _fdep_gnu_make_command=$a ; 15803 break; 15804 fi 15805done ; 15806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_fdep_gnu_make_command" >&5 15807$as_echo "$_fdep_gnu_make_command" >&6; } 15808if test x$_fdep_gnu_make_command = x ; then 15809 as_fn_error $? "Need GNU Make" "$LINENO" 5 15810fi 15811FORTRAN_MODULE_DEPS=" 15812CLEANFILES += 15813include \$(top_srcdir)/src/fdep/fortran_dependencies.mk 15814" 15815 15816 15817 15818 15819 15820{ $as_echo "$as_me:${as_lineno-$LINENO}: collecting compilation info..." >&5 15821$as_echo "$as_me: collecting compilation info..." >&6;} 15822 15823folder=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 15824hash=$($folder/build/git_commit_hash.sh 2> /dev/null) 15825date=`date` 15826truecc=$($folder/build/true_compiler.sh $CC 2> /dev/null) 15827truecxx=$($folder/build/true_compiler.sh $CXX 2> /dev/null) 15828truefc=$($folder/build/true_compiler.sh $FC 2> /dev/null) 15829 15830 15831cat >>confdefs.h <<_ACEOF 15832#define GIT_COMMIT "$hash" 15833_ACEOF 15834 15835 15836cat >>confdefs.h <<_ACEOF 15837#define BUILD_TIME "$date" 15838_ACEOF 15839 15840 15841cat >>confdefs.h <<_ACEOF 15842#define CC "$CC $truecc" 15843_ACEOF 15844 15845 15846cat >>confdefs.h <<_ACEOF 15847#define CXX "$CXX $truecxx" 15848_ACEOF 15849 15850 15851cat >>confdefs.h <<_ACEOF 15852#define FC "$FC $truefc" 15853_ACEOF 15854 15855# 132 characters is max in std fortran, and two are for the quotes 15856 15857cat >>confdefs.h <<_ACEOF 15858#define CFLAGS "${CFLAGS:0:130}" 15859_ACEOF 15860 15861 15862cat >>confdefs.h <<_ACEOF 15863#define CXXFLAGS "${CXXFLAGS:0:130}" 15864_ACEOF 15865 15866 15867cat >>confdefs.h <<_ACEOF 15868#define FCFLAGS "${FCFLAGS:0:130}" 15869_ACEOF 15870 15871 15872GIT_COMMIT=$hash 15873 15874 15875 15876 15877# external_libs/isf/Makefile 15878# external_libs/isf/src/Makefile 15879# external_libs/isf/flib/Makefile 15880# external_libs/isf/wrappers/Makefile 15881 15882ac_config_files="$ac_config_files Makefile external_libs/Makefile external_libs/dftd3/Makefile external_libs/metis-5.1/Makefile external_libs/metis-5.1/include/Makefile external_libs/metis-5.1/GKlib/Makefile external_libs/metis-5.1/libmetis/Makefile external_libs/qshep/Makefile external_libs/fortrancl/Makefile external_libs/bpdn/Makefile external_libs/yaml-0.1.4/Makefile external_libs/yaml-0.1.4/include/Makefile external_libs/yaml-0.1.4/src/Makefile external_libs/rapidxml/Makefile liboct_parser/Makefile src/Makefile scripts/Makefile doc/Makefile doc/html/Makefile doc/html/icons/Makefile doc/html/js/Makefile doc/html/vars/Makefile share/Makefile share/pseudopotentials/Makefile share/pseudopotentials/PSF/Makefile share/pseudopotentials/HGH/Makefile share/pseudopotentials/HGH/lda/Makefile share/pseudopotentials/HGH/lda_sc/Makefile share/pseudopotentials/quantum-simulation.org/Makefile share/pseudopotentials/quantum-simulation.org/hscv/Makefile share/pseudopotentials/quantum-simulation.org/hscv/lda/Makefile share/pseudopotentials/quantum-simulation.org/hscv/pbe/Makefile share/pseudopotentials/quantum-simulation.org/sg15/Makefile share/pseudopotentials/pseudo-dojo.org/Makefile share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbe_standard/Makefile share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbe_stringent/Makefile share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbesol_standard/Makefile share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbesol_stringent/Makefile share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pw_standard/Makefile share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pw_stringent/Makefile share/recipes/Makefile share/recipes/da/Makefile share/recipes/de/Makefile share/recipes/en/Makefile share/recipes/es/Makefile share/recipes/it/Makefile share/recipes/eu/Makefile share/util/Makefile share/opencl/Makefile share/quadrature/Makefile build/Makefile build/octopus.spec testsuite/Makefile testsuite/performance/Makefile testsuite/performance/tests/Makefile testsuite/components/Makefile testsuite/finite_systems_1d/Makefile testsuite/finite_systems_2d/Makefile testsuite/finite_systems_3d/Makefile testsuite/functionals/Makefile testsuite/real_time/Makefile testsuite/lda_u/Makefile testsuite/linear_response/Makefile testsuite/maxwell/Makefile testsuite/multisystem/Makefile testsuite/optimal_control/Makefile testsuite/periodic_systems/Makefile testsuite/photo_electron/Makefile testsuite/pseudopotentials/Makefile testsuite/tutorials/Makefile testsuite/symmetries/Makefile" 15883 15884ac_config_files="$ac_config_files testsuite/oct-run_testsuite.sh" 15885 15886ac_config_files="$ac_config_files testsuite/performance/oct-run_performance_testsuite.sh" 15887 15888ac_config_files="$ac_config_files doc/html/varsRightFrame.html" 15889 15890 15891 15892 15893subdirs="$subdirs external_libs/spglib-1.9.9" 15894 15895 15896 15897cat >confcache <<\_ACEOF 15898# This file is a shell script that caches the results of configure 15899# tests run on this system so they can be shared between configure 15900# scripts and configure runs, see configure's option --config-cache. 15901# It is not useful on other systems. If it contains results you don't 15902# want to keep, you may remove or edit it. 15903# 15904# config.status only pays attention to the cache file if you give it 15905# the --recheck option to rerun configure. 15906# 15907# `ac_cv_env_foo' variables (set or unset) will be overridden when 15908# loading this file, other *unset* `ac_cv_foo' will be assigned the 15909# following values. 15910 15911_ACEOF 15912 15913# The following way of writing the cache mishandles newlines in values, 15914# but we know of no workaround that is simple, portable, and efficient. 15915# So, we kill variables containing newlines. 15916# Ultrix sh set writes to stderr and can't be redirected directly, 15917# and sets the high bit in the cache file unless we assign to the vars. 15918( 15919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15920 eval ac_val=\$$ac_var 15921 case $ac_val in #( 15922 *${as_nl}*) 15923 case $ac_var in #( 15924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15926 esac 15927 case $ac_var in #( 15928 _ | IFS | as_nl) ;; #( 15929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15930 *) { eval $ac_var=; unset $ac_var;} ;; 15931 esac ;; 15932 esac 15933 done 15934 15935 (set) 2>&1 | 15936 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15937 *${as_nl}ac_space=\ *) 15938 # `set' does not quote correctly, so add quotes: double-quote 15939 # substitution turns \\\\ into \\, and sed turns \\ into \. 15940 sed -n \ 15941 "s/'/'\\\\''/g; 15942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15943 ;; #( 15944 *) 15945 # `set' quotes correctly as required by POSIX, so do not add quotes. 15946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15947 ;; 15948 esac | 15949 sort 15950) | 15951 sed ' 15952 /^ac_cv_env_/b end 15953 t clear 15954 :clear 15955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15956 t end 15957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15958 :end' >>confcache 15959if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15960 if test -w "$cache_file"; then 15961 if test "x$cache_file" != "x/dev/null"; then 15962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15963$as_echo "$as_me: updating cache $cache_file" >&6;} 15964 if test ! -f "$cache_file" || test -h "$cache_file"; then 15965 cat confcache >"$cache_file" 15966 else 15967 case $cache_file in #( 15968 */* | ?:*) 15969 mv -f confcache "$cache_file"$$ && 15970 mv -f "$cache_file"$$ "$cache_file" ;; #( 15971 *) 15972 mv -f confcache "$cache_file" ;; 15973 esac 15974 fi 15975 fi 15976 else 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15978$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15979 fi 15980fi 15981rm -f confcache 15982 15983test "x$prefix" = xNONE && prefix=$ac_default_prefix 15984# Let make expand exec_prefix. 15985test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15986 15987DEFS=-DHAVE_CONFIG_H 15988 15989ac_libobjs= 15990ac_ltlibobjs= 15991U= 15992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15993 # 1. Remove the extension, and $U if already installed. 15994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15997 # will be set to the directory where LIBOBJS objects are built. 15998 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15999 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16000done 16001LIBOBJS=$ac_libobjs 16002 16003LTLIBOBJS=$ac_ltlibobjs 16004 16005 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16007$as_echo_n "checking that generated files are newer than configure... " >&6; } 16008 if test -n "$am_sleep_pid"; then 16009 # Hide warnings about reused PIDs. 16010 wait $am_sleep_pid 2>/dev/null 16011 fi 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16013$as_echo "done" >&6; } 16014 if test -n "$EXEEXT"; then 16015 am__EXEEXT_TRUE= 16016 am__EXEEXT_FALSE='#' 16017else 16018 am__EXEEXT_TRUE='#' 16019 am__EXEEXT_FALSE= 16020fi 16021 16022if test -z "${USE_MPI_TRUE}" && test -z "${USE_MPI_FALSE}"; then 16023 as_fn_error $? "conditional \"USE_MPI\" was never defined. 16024Usually this means the macro was only invoked conditionally." "$LINENO" 5 16025fi 16026if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16027 as_fn_error $? "conditional \"AMDEP\" was never defined. 16028Usually this means the macro was only invoked conditionally." "$LINENO" 5 16029fi 16030if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16032Usually this means the macro was only invoked conditionally." "$LINENO" 5 16033fi 16034if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16035 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16036Usually this means the macro was only invoked conditionally." "$LINENO" 5 16037fi 16038if test -z "${COMPILE_OPENCL_TRUE}" && test -z "${COMPILE_OPENCL_FALSE}"; then 16039 as_fn_error $? "conditional \"COMPILE_OPENCL\" was never defined. 16040Usually this means the macro was only invoked conditionally." "$LINENO" 5 16041fi 16042if test -z "${ENABLE_PERL_TRUE}" && test -z "${ENABLE_PERL_FALSE}"; then 16043 as_fn_error $? "conditional \"ENABLE_PERL\" was never defined. 16044Usually this means the macro was only invoked conditionally." "$LINENO" 5 16045fi 16046if test -z "${COMPILE_LIBYAML_TRUE}" && test -z "${COMPILE_LIBYAML_FALSE}"; then 16047 as_fn_error $? "conditional \"COMPILE_LIBYAML\" was never defined. 16048Usually this means the macro was only invoked conditionally." "$LINENO" 5 16049fi 16050if test -z "${COMPILE_METIS_TRUE}" && test -z "${COMPILE_METIS_FALSE}"; then 16051 as_fn_error $? "conditional \"COMPILE_METIS\" was never defined. 16052Usually this means the macro was only invoked conditionally." "$LINENO" 5 16053fi 16054 16055: "${CONFIG_STATUS=./config.status}" 16056ac_write_fail=0 16057ac_clean_files_save=$ac_clean_files 16058ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16059{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16060$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16061as_write_fail=0 16062cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16063#! $SHELL 16064# Generated by $as_me. 16065# Run this file to recreate the current configuration. 16066# Compiler output produced by configure, useful for debugging 16067# configure, is in config.log if it exists. 16068 16069debug=false 16070ac_cs_recheck=false 16071ac_cs_silent=false 16072 16073SHELL=\${CONFIG_SHELL-$SHELL} 16074export SHELL 16075_ASEOF 16076cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16077## -------------------- ## 16078## M4sh Initialization. ## 16079## -------------------- ## 16080 16081# Be more Bourne compatible 16082DUALCASE=1; export DUALCASE # for MKS sh 16083if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16084 emulate sh 16085 NULLCMD=: 16086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16087 # is contrary to our usage. Disable this feature. 16088 alias -g '${1+"$@"}'='"$@"' 16089 setopt NO_GLOB_SUBST 16090else 16091 case `(set -o) 2>/dev/null` in #( 16092 *posix*) : 16093 set -o posix ;; #( 16094 *) : 16095 ;; 16096esac 16097fi 16098 16099 16100as_nl=' 16101' 16102export as_nl 16103# Printing a long string crashes Solaris 7 /usr/bin/printf. 16104as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16105as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16107# Prefer a ksh shell builtin over an external printf program on Solaris, 16108# but without wasting forks for bash or zsh. 16109if test -z "$BASH_VERSION$ZSH_VERSION" \ 16110 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16111 as_echo='print -r --' 16112 as_echo_n='print -rn --' 16113elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16114 as_echo='printf %s\n' 16115 as_echo_n='printf %s' 16116else 16117 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16118 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16119 as_echo_n='/usr/ucb/echo -n' 16120 else 16121 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16122 as_echo_n_body='eval 16123 arg=$1; 16124 case $arg in #( 16125 *"$as_nl"*) 16126 expr "X$arg" : "X\\(.*\\)$as_nl"; 16127 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16128 esac; 16129 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16130 ' 16131 export as_echo_n_body 16132 as_echo_n='sh -c $as_echo_n_body as_echo' 16133 fi 16134 export as_echo_body 16135 as_echo='sh -c $as_echo_body as_echo' 16136fi 16137 16138# The user is always right. 16139if test "${PATH_SEPARATOR+set}" != set; then 16140 PATH_SEPARATOR=: 16141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16143 PATH_SEPARATOR=';' 16144 } 16145fi 16146 16147 16148# IFS 16149# We need space, tab and new line, in precisely that order. Quoting is 16150# there to prevent editors from complaining about space-tab. 16151# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16152# splitting by setting IFS to empty value.) 16153IFS=" "" $as_nl" 16154 16155# Find who we are. Look in the path if we contain no directory separator. 16156as_myself= 16157case $0 in #(( 16158 *[\\/]* ) as_myself=$0 ;; 16159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16160for as_dir in $PATH 16161do 16162 IFS=$as_save_IFS 16163 test -z "$as_dir" && as_dir=. 16164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16165 done 16166IFS=$as_save_IFS 16167 16168 ;; 16169esac 16170# We did not find ourselves, most probably we were run as `sh COMMAND' 16171# in which case we are not to be found in the path. 16172if test "x$as_myself" = x; then 16173 as_myself=$0 16174fi 16175if test ! -f "$as_myself"; then 16176 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16177 exit 1 16178fi 16179 16180# Unset variables that we do not need and which cause bugs (e.g. in 16181# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16182# suppresses any "Segmentation fault" message there. '((' could 16183# trigger a bug in pdksh 5.2.14. 16184for as_var in BASH_ENV ENV MAIL MAILPATH 16185do eval test x\${$as_var+set} = xset \ 16186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16187done 16188PS1='$ ' 16189PS2='> ' 16190PS4='+ ' 16191 16192# NLS nuisances. 16193LC_ALL=C 16194export LC_ALL 16195LANGUAGE=C 16196export LANGUAGE 16197 16198# CDPATH. 16199(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16200 16201 16202# as_fn_error STATUS ERROR [LINENO LOG_FD] 16203# ---------------------------------------- 16204# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16205# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16206# script with STATUS, using 1 if that was 0. 16207as_fn_error () 16208{ 16209 as_status=$1; test $as_status -eq 0 && as_status=1 16210 if test "$4"; then 16211 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16212 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16213 fi 16214 $as_echo "$as_me: error: $2" >&2 16215 as_fn_exit $as_status 16216} # as_fn_error 16217 16218 16219# as_fn_set_status STATUS 16220# ----------------------- 16221# Set $? to STATUS, without forking. 16222as_fn_set_status () 16223{ 16224 return $1 16225} # as_fn_set_status 16226 16227# as_fn_exit STATUS 16228# ----------------- 16229# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16230as_fn_exit () 16231{ 16232 set +e 16233 as_fn_set_status $1 16234 exit $1 16235} # as_fn_exit 16236 16237# as_fn_unset VAR 16238# --------------- 16239# Portably unset VAR. 16240as_fn_unset () 16241{ 16242 { eval $1=; unset $1;} 16243} 16244as_unset=as_fn_unset 16245# as_fn_append VAR VALUE 16246# ---------------------- 16247# Append the text in VALUE to the end of the definition contained in VAR. Take 16248# advantage of any shell optimizations that allow amortized linear growth over 16249# repeated appends, instead of the typical quadratic growth present in naive 16250# implementations. 16251if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16252 eval 'as_fn_append () 16253 { 16254 eval $1+=\$2 16255 }' 16256else 16257 as_fn_append () 16258 { 16259 eval $1=\$$1\$2 16260 } 16261fi # as_fn_append 16262 16263# as_fn_arith ARG... 16264# ------------------ 16265# Perform arithmetic evaluation on the ARGs, and store the result in the 16266# global $as_val. Take advantage of shells that can avoid forks. The arguments 16267# must be portable across $(()) and expr. 16268if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16269 eval 'as_fn_arith () 16270 { 16271 as_val=$(( $* )) 16272 }' 16273else 16274 as_fn_arith () 16275 { 16276 as_val=`expr "$@" || test $? -eq 1` 16277 } 16278fi # as_fn_arith 16279 16280 16281if expr a : '\(a\)' >/dev/null 2>&1 && 16282 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16283 as_expr=expr 16284else 16285 as_expr=false 16286fi 16287 16288if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16289 as_basename=basename 16290else 16291 as_basename=false 16292fi 16293 16294if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16295 as_dirname=dirname 16296else 16297 as_dirname=false 16298fi 16299 16300as_me=`$as_basename -- "$0" || 16301$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16302 X"$0" : 'X\(//\)$' \| \ 16303 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16304$as_echo X/"$0" | 16305 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16306 s//\1/ 16307 q 16308 } 16309 /^X\/\(\/\/\)$/{ 16310 s//\1/ 16311 q 16312 } 16313 /^X\/\(\/\).*/{ 16314 s//\1/ 16315 q 16316 } 16317 s/.*/./; q'` 16318 16319# Avoid depending upon Character Ranges. 16320as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16321as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16322as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16323as_cr_digits='0123456789' 16324as_cr_alnum=$as_cr_Letters$as_cr_digits 16325 16326ECHO_C= ECHO_N= ECHO_T= 16327case `echo -n x` in #((((( 16328-n*) 16329 case `echo 'xy\c'` in 16330 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16331 xy) ECHO_C='\c';; 16332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16333 ECHO_T=' ';; 16334 esac;; 16335*) 16336 ECHO_N='-n';; 16337esac 16338 16339rm -f conf$$ conf$$.exe conf$$.file 16340if test -d conf$$.dir; then 16341 rm -f conf$$.dir/conf$$.file 16342else 16343 rm -f conf$$.dir 16344 mkdir conf$$.dir 2>/dev/null 16345fi 16346if (echo >conf$$.file) 2>/dev/null; then 16347 if ln -s conf$$.file conf$$ 2>/dev/null; then 16348 as_ln_s='ln -s' 16349 # ... but there are two gotchas: 16350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16352 # In both cases, we have to default to `cp -pR'. 16353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16354 as_ln_s='cp -pR' 16355 elif ln conf$$.file conf$$ 2>/dev/null; then 16356 as_ln_s=ln 16357 else 16358 as_ln_s='cp -pR' 16359 fi 16360else 16361 as_ln_s='cp -pR' 16362fi 16363rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16364rmdir conf$$.dir 2>/dev/null 16365 16366 16367# as_fn_mkdir_p 16368# ------------- 16369# Create "$as_dir" as a directory, including parents if necessary. 16370as_fn_mkdir_p () 16371{ 16372 16373 case $as_dir in #( 16374 -*) as_dir=./$as_dir;; 16375 esac 16376 test -d "$as_dir" || eval $as_mkdir_p || { 16377 as_dirs= 16378 while :; do 16379 case $as_dir in #( 16380 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16381 *) as_qdir=$as_dir;; 16382 esac 16383 as_dirs="'$as_qdir' $as_dirs" 16384 as_dir=`$as_dirname -- "$as_dir" || 16385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16386 X"$as_dir" : 'X\(//\)[^/]' \| \ 16387 X"$as_dir" : 'X\(//\)$' \| \ 16388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16389$as_echo X"$as_dir" | 16390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16391 s//\1/ 16392 q 16393 } 16394 /^X\(\/\/\)[^/].*/{ 16395 s//\1/ 16396 q 16397 } 16398 /^X\(\/\/\)$/{ 16399 s//\1/ 16400 q 16401 } 16402 /^X\(\/\).*/{ 16403 s//\1/ 16404 q 16405 } 16406 s/.*/./; q'` 16407 test -d "$as_dir" && break 16408 done 16409 test -z "$as_dirs" || eval "mkdir $as_dirs" 16410 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16411 16412 16413} # as_fn_mkdir_p 16414if mkdir -p . 2>/dev/null; then 16415 as_mkdir_p='mkdir -p "$as_dir"' 16416else 16417 test -d ./-p && rmdir ./-p 16418 as_mkdir_p=false 16419fi 16420 16421 16422# as_fn_executable_p FILE 16423# ----------------------- 16424# Test if FILE is an executable regular file. 16425as_fn_executable_p () 16426{ 16427 test -f "$1" && test -x "$1" 16428} # as_fn_executable_p 16429as_test_x='test -x' 16430as_executable_p=as_fn_executable_p 16431 16432# Sed expression to map a string onto a valid CPP name. 16433as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16434 16435# Sed expression to map a string onto a valid variable name. 16436as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16437 16438 16439exec 6>&1 16440## ----------------------------------- ## 16441## Main body of $CONFIG_STATUS script. ## 16442## ----------------------------------- ## 16443_ASEOF 16444test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16445 16446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16447# Save the log message, to keep $0 and so on meaningful, and to 16448# report actual input values of CONFIG_FILES etc. instead of their 16449# values after options handling. 16450ac_log=" 16451This file was extended by Octopus $as_me 10.5, which was 16452generated by GNU Autoconf 2.69. Invocation command line was 16453 16454 CONFIG_FILES = $CONFIG_FILES 16455 CONFIG_HEADERS = $CONFIG_HEADERS 16456 CONFIG_LINKS = $CONFIG_LINKS 16457 CONFIG_COMMANDS = $CONFIG_COMMANDS 16458 $ $0 $@ 16459 16460on `(hostname || uname -n) 2>/dev/null | sed 1q` 16461" 16462 16463_ACEOF 16464 16465case $ac_config_files in *" 16466"*) set x $ac_config_files; shift; ac_config_files=$*;; 16467esac 16468 16469case $ac_config_headers in *" 16470"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16471esac 16472 16473 16474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16475# Files that config.status was made for. 16476config_files="$ac_config_files" 16477config_headers="$ac_config_headers" 16478config_commands="$ac_config_commands" 16479 16480_ACEOF 16481 16482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16483ac_cs_usage="\ 16484\`$as_me' instantiates files and other configuration actions 16485from templates according to the current configuration. Unless the files 16486and actions are specified as TAGs, all are instantiated by default. 16487 16488Usage: $0 [OPTION]... [TAG]... 16489 16490 -h, --help print this help, then exit 16491 -V, --version print version number and configuration settings, then exit 16492 --config print configuration, then exit 16493 -q, --quiet, --silent 16494 do not print progress messages 16495 -d, --debug don't remove temporary files 16496 --recheck update $as_me by reconfiguring in the same conditions 16497 --file=FILE[:TEMPLATE] 16498 instantiate the configuration file FILE 16499 --header=FILE[:TEMPLATE] 16500 instantiate the configuration header FILE 16501 16502Configuration files: 16503$config_files 16504 16505Configuration headers: 16506$config_headers 16507 16508Configuration commands: 16509$config_commands 16510 16511Report bugs to <octopus-devel@tddft.org>." 16512 16513_ACEOF 16514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16515ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16516ac_cs_version="\\ 16517Octopus config.status 10.5 16518configured by $0, generated by GNU Autoconf 2.69, 16519 with options \\"\$ac_cs_config\\" 16520 16521Copyright (C) 2012 Free Software Foundation, Inc. 16522This config.status script is free software; the Free Software Foundation 16523gives unlimited permission to copy, distribute and modify it." 16524 16525ac_pwd='$ac_pwd' 16526srcdir='$srcdir' 16527INSTALL='$INSTALL' 16528MKDIR_P='$MKDIR_P' 16529AWK='$AWK' 16530test -n "\$AWK" || AWK=awk 16531_ACEOF 16532 16533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16534# The default lists apply if the user does not specify any file. 16535ac_need_defaults=: 16536while test $# != 0 16537do 16538 case $1 in 16539 --*=?*) 16540 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16542 ac_shift=: 16543 ;; 16544 --*=) 16545 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16546 ac_optarg= 16547 ac_shift=: 16548 ;; 16549 *) 16550 ac_option=$1 16551 ac_optarg=$2 16552 ac_shift=shift 16553 ;; 16554 esac 16555 16556 case $ac_option in 16557 # Handling of the options. 16558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16559 ac_cs_recheck=: ;; 16560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16561 $as_echo "$ac_cs_version"; exit ;; 16562 --config | --confi | --conf | --con | --co | --c ) 16563 $as_echo "$ac_cs_config"; exit ;; 16564 --debug | --debu | --deb | --de | --d | -d ) 16565 debug=: ;; 16566 --file | --fil | --fi | --f ) 16567 $ac_shift 16568 case $ac_optarg in 16569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16570 '') as_fn_error $? "missing file argument" ;; 16571 esac 16572 as_fn_append CONFIG_FILES " '$ac_optarg'" 16573 ac_need_defaults=false;; 16574 --header | --heade | --head | --hea ) 16575 $ac_shift 16576 case $ac_optarg in 16577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16578 esac 16579 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16580 ac_need_defaults=false;; 16581 --he | --h) 16582 # Conflict between --help and --header 16583 as_fn_error $? "ambiguous option: \`$1' 16584Try \`$0 --help' for more information.";; 16585 --help | --hel | -h ) 16586 $as_echo "$ac_cs_usage"; exit ;; 16587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16588 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16589 ac_cs_silent=: ;; 16590 16591 # This is an error. 16592 -*) as_fn_error $? "unrecognized option: \`$1' 16593Try \`$0 --help' for more information." ;; 16594 16595 *) as_fn_append ac_config_targets " $1" 16596 ac_need_defaults=false ;; 16597 16598 esac 16599 shift 16600done 16601 16602ac_configure_extra_args= 16603 16604if $ac_cs_silent; then 16605 exec 6>/dev/null 16606 ac_configure_extra_args="$ac_configure_extra_args --silent" 16607fi 16608 16609_ACEOF 16610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16611if \$ac_cs_recheck; then 16612 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16613 shift 16614 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16615 CONFIG_SHELL='$SHELL' 16616 export CONFIG_SHELL 16617 exec "\$@" 16618fi 16619 16620_ACEOF 16621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16622exec 5>>config.log 16623{ 16624 echo 16625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16626## Running $as_me. ## 16627_ASBOX 16628 $as_echo "$ac_log" 16629} >&5 16630 16631_ACEOF 16632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16633# 16634# INIT-COMMANDS 16635# 16636AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16637 16638_ACEOF 16639 16640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16641 16642# Handling of arguments. 16643for ac_config_target in $ac_config_targets 16644do 16645 case $ac_config_target in 16646 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16648 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16649 "external_libs/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/Makefile" ;; 16650 "external_libs/dftd3/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/dftd3/Makefile" ;; 16651 "external_libs/metis-5.1/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/metis-5.1/Makefile" ;; 16652 "external_libs/metis-5.1/include/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/metis-5.1/include/Makefile" ;; 16653 "external_libs/metis-5.1/GKlib/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/metis-5.1/GKlib/Makefile" ;; 16654 "external_libs/metis-5.1/libmetis/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/metis-5.1/libmetis/Makefile" ;; 16655 "external_libs/qshep/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/qshep/Makefile" ;; 16656 "external_libs/fortrancl/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/fortrancl/Makefile" ;; 16657 "external_libs/bpdn/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/bpdn/Makefile" ;; 16658 "external_libs/yaml-0.1.4/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/yaml-0.1.4/Makefile" ;; 16659 "external_libs/yaml-0.1.4/include/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/yaml-0.1.4/include/Makefile" ;; 16660 "external_libs/yaml-0.1.4/src/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/yaml-0.1.4/src/Makefile" ;; 16661 "external_libs/rapidxml/Makefile") CONFIG_FILES="$CONFIG_FILES external_libs/rapidxml/Makefile" ;; 16662 "liboct_parser/Makefile") CONFIG_FILES="$CONFIG_FILES liboct_parser/Makefile" ;; 16663 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16664 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 16665 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16666 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 16667 "doc/html/icons/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/icons/Makefile" ;; 16668 "doc/html/js/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/js/Makefile" ;; 16669 "doc/html/vars/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/vars/Makefile" ;; 16670 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;; 16671 "share/pseudopotentials/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/Makefile" ;; 16672 "share/pseudopotentials/PSF/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/PSF/Makefile" ;; 16673 "share/pseudopotentials/HGH/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/HGH/Makefile" ;; 16674 "share/pseudopotentials/HGH/lda/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/HGH/lda/Makefile" ;; 16675 "share/pseudopotentials/HGH/lda_sc/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/HGH/lda_sc/Makefile" ;; 16676 "share/pseudopotentials/quantum-simulation.org/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/quantum-simulation.org/Makefile" ;; 16677 "share/pseudopotentials/quantum-simulation.org/hscv/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/quantum-simulation.org/hscv/Makefile" ;; 16678 "share/pseudopotentials/quantum-simulation.org/hscv/lda/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/quantum-simulation.org/hscv/lda/Makefile" ;; 16679 "share/pseudopotentials/quantum-simulation.org/hscv/pbe/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/quantum-simulation.org/hscv/pbe/Makefile" ;; 16680 "share/pseudopotentials/quantum-simulation.org/sg15/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/quantum-simulation.org/sg15/Makefile" ;; 16681 "share/pseudopotentials/pseudo-dojo.org/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/Makefile" ;; 16682 "share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbe_standard/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbe_standard/Makefile" ;; 16683 "share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbe_stringent/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbe_stringent/Makefile" ;; 16684 "share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbesol_standard/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbesol_standard/Makefile" ;; 16685 "share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbesol_stringent/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pbesol_stringent/Makefile" ;; 16686 "share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pw_standard/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pw_standard/Makefile" ;; 16687 "share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pw_stringent/Makefile") CONFIG_FILES="$CONFIG_FILES share/pseudopotentials/pseudo-dojo.org/nc-sr-04_pw_stringent/Makefile" ;; 16688 "share/recipes/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/Makefile" ;; 16689 "share/recipes/da/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/da/Makefile" ;; 16690 "share/recipes/de/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/de/Makefile" ;; 16691 "share/recipes/en/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/en/Makefile" ;; 16692 "share/recipes/es/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/es/Makefile" ;; 16693 "share/recipes/it/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/it/Makefile" ;; 16694 "share/recipes/eu/Makefile") CONFIG_FILES="$CONFIG_FILES share/recipes/eu/Makefile" ;; 16695 "share/util/Makefile") CONFIG_FILES="$CONFIG_FILES share/util/Makefile" ;; 16696 "share/opencl/Makefile") CONFIG_FILES="$CONFIG_FILES share/opencl/Makefile" ;; 16697 "share/quadrature/Makefile") CONFIG_FILES="$CONFIG_FILES share/quadrature/Makefile" ;; 16698 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 16699 "build/octopus.spec") CONFIG_FILES="$CONFIG_FILES build/octopus.spec" ;; 16700 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 16701 "testsuite/performance/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/performance/Makefile" ;; 16702 "testsuite/performance/tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/performance/tests/Makefile" ;; 16703 "testsuite/components/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/components/Makefile" ;; 16704 "testsuite/finite_systems_1d/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/finite_systems_1d/Makefile" ;; 16705 "testsuite/finite_systems_2d/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/finite_systems_2d/Makefile" ;; 16706 "testsuite/finite_systems_3d/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/finite_systems_3d/Makefile" ;; 16707 "testsuite/functionals/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/functionals/Makefile" ;; 16708 "testsuite/real_time/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/real_time/Makefile" ;; 16709 "testsuite/lda_u/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lda_u/Makefile" ;; 16710 "testsuite/linear_response/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/linear_response/Makefile" ;; 16711 "testsuite/maxwell/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/maxwell/Makefile" ;; 16712 "testsuite/multisystem/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/multisystem/Makefile" ;; 16713 "testsuite/optimal_control/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/optimal_control/Makefile" ;; 16714 "testsuite/periodic_systems/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/periodic_systems/Makefile" ;; 16715 "testsuite/photo_electron/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/photo_electron/Makefile" ;; 16716 "testsuite/pseudopotentials/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/pseudopotentials/Makefile" ;; 16717 "testsuite/tutorials/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/tutorials/Makefile" ;; 16718 "testsuite/symmetries/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/symmetries/Makefile" ;; 16719 "testsuite/oct-run_testsuite.sh") CONFIG_FILES="$CONFIG_FILES testsuite/oct-run_testsuite.sh" ;; 16720 "testsuite/performance/oct-run_performance_testsuite.sh") CONFIG_FILES="$CONFIG_FILES testsuite/performance/oct-run_performance_testsuite.sh" ;; 16721 "doc/html/varsRightFrame.html") CONFIG_FILES="$CONFIG_FILES doc/html/varsRightFrame.html" ;; 16722 16723 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16724 esac 16725done 16726 16727 16728# If the user did not use the arguments to specify the items to instantiate, 16729# then the envvar interface is used. Set only those that are not. 16730# We use the long form for the default assignment because of an extremely 16731# bizarre bug on SunOS 4.1.3. 16732if $ac_need_defaults; then 16733 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16734 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16735 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16736fi 16737 16738# Have a temporary directory for convenience. Make it in the build tree 16739# simply because there is no reason against having it here, and in addition, 16740# creating and moving files from /tmp can sometimes cause problems. 16741# Hook for its removal unless debugging. 16742# Note that there is a small window in which the directory will not be cleaned: 16743# after its creation but before its name has been assigned to `$tmp'. 16744$debug || 16745{ 16746 tmp= ac_tmp= 16747 trap 'exit_status=$? 16748 : "${ac_tmp:=$tmp}" 16749 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16750' 0 16751 trap 'as_fn_exit 1' 1 2 13 15 16752} 16753# Create a (secure) tmp directory for tmp files. 16754 16755{ 16756 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16757 test -d "$tmp" 16758} || 16759{ 16760 tmp=./conf$$-$RANDOM 16761 (umask 077 && mkdir "$tmp") 16762} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16763ac_tmp=$tmp 16764 16765# Set up the scripts for CONFIG_FILES section. 16766# No need to generate them if there are no CONFIG_FILES. 16767# This happens for instance with `./config.status config.h'. 16768if test -n "$CONFIG_FILES"; then 16769 16770 16771ac_cr=`echo X | tr X '\015'` 16772# On cygwin, bash can eat \r inside `` if the user requested igncr. 16773# But we know of no other shell where ac_cr would be empty at this 16774# point, so we can use a bashism as a fallback. 16775if test "x$ac_cr" = x; then 16776 eval ac_cr=\$\'\\r\' 16777fi 16778ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16779if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16780 ac_cs_awk_cr='\\r' 16781else 16782 ac_cs_awk_cr=$ac_cr 16783fi 16784 16785echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16786_ACEOF 16787 16788 16789{ 16790 echo "cat >conf$$subs.awk <<_ACEOF" && 16791 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16792 echo "_ACEOF" 16793} >conf$$subs.sh || 16794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16795ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16796ac_delim='%!_!# ' 16797for ac_last_try in false false false false false :; do 16798 . ./conf$$subs.sh || 16799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16800 16801 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16802 if test $ac_delim_n = $ac_delim_num; then 16803 break 16804 elif $ac_last_try; then 16805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16806 else 16807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16808 fi 16809done 16810rm -f conf$$subs.sh 16811 16812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16813cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16814_ACEOF 16815sed -n ' 16816h 16817s/^/S["/; s/!.*/"]=/ 16818p 16819g 16820s/^[^!]*!// 16821:repl 16822t repl 16823s/'"$ac_delim"'$// 16824t delim 16825:nl 16826h 16827s/\(.\{148\}\)..*/\1/ 16828t more1 16829s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16830p 16831n 16832b repl 16833:more1 16834s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16835p 16836g 16837s/.\{148\}// 16838t nl 16839:delim 16840h 16841s/\(.\{148\}\)..*/\1/ 16842t more2 16843s/["\\]/\\&/g; s/^/"/; s/$/"/ 16844p 16845b 16846:more2 16847s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16848p 16849g 16850s/.\{148\}// 16851t delim 16852' <conf$$subs.awk | sed ' 16853/^[^""]/{ 16854 N 16855 s/\n// 16856} 16857' >>$CONFIG_STATUS || ac_write_fail=1 16858rm -f conf$$subs.awk 16859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16860_ACAWK 16861cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16862 for (key in S) S_is_set[key] = 1 16863 FS = "" 16864 16865} 16866{ 16867 line = $ 0 16868 nfields = split(line, field, "@") 16869 substed = 0 16870 len = length(field[1]) 16871 for (i = 2; i < nfields; i++) { 16872 key = field[i] 16873 keylen = length(key) 16874 if (S_is_set[key]) { 16875 value = S[key] 16876 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16877 len += length(value) + length(field[++i]) 16878 substed = 1 16879 } else 16880 len += 1 + keylen 16881 } 16882 16883 print line 16884} 16885 16886_ACAWK 16887_ACEOF 16888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16889if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16890 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16891else 16892 cat 16893fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16894 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16895_ACEOF 16896 16897# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16898# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16899# trailing colons and then remove the whole line if VPATH becomes empty 16900# (actually we leave an empty line to preserve line numbers). 16901if test "x$srcdir" = x.; then 16902 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16903h 16904s/// 16905s/^/:/ 16906s/[ ]*$/:/ 16907s/:\$(srcdir):/:/g 16908s/:\${srcdir}:/:/g 16909s/:@srcdir@:/:/g 16910s/^:*// 16911s/:*$// 16912x 16913s/\(=[ ]*\).*/\1/ 16914G 16915s/\n// 16916s/^[^=]*=[ ]*$// 16917}' 16918fi 16919 16920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16921fi # test -n "$CONFIG_FILES" 16922 16923# Set up the scripts for CONFIG_HEADERS section. 16924# No need to generate them if there are no CONFIG_HEADERS. 16925# This happens for instance with `./config.status Makefile'. 16926if test -n "$CONFIG_HEADERS"; then 16927cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16928BEGIN { 16929_ACEOF 16930 16931# Transform confdefs.h into an awk script `defines.awk', embedded as 16932# here-document in config.status, that substitutes the proper values into 16933# config.h.in to produce config.h. 16934 16935# Create a delimiter string that does not exist in confdefs.h, to ease 16936# handling of long lines. 16937ac_delim='%!_!# ' 16938for ac_last_try in false false :; do 16939 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16940 if test -z "$ac_tt"; then 16941 break 16942 elif $ac_last_try; then 16943 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16944 else 16945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16946 fi 16947done 16948 16949# For the awk script, D is an array of macro values keyed by name, 16950# likewise P contains macro parameters if any. Preserve backslash 16951# newline sequences. 16952 16953ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16954sed -n ' 16955s/.\{148\}/&'"$ac_delim"'/g 16956t rset 16957:rset 16958s/^[ ]*#[ ]*define[ ][ ]*/ / 16959t def 16960d 16961:def 16962s/\\$// 16963t bsnl 16964s/["\\]/\\&/g 16965s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16966D["\1"]=" \3"/p 16967s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16968d 16969:bsnl 16970s/["\\]/\\&/g 16971s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16972D["\1"]=" \3\\\\\\n"\\/p 16973t cont 16974s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16975t cont 16976d 16977:cont 16978n 16979s/.\{148\}/&'"$ac_delim"'/g 16980t clear 16981:clear 16982s/\\$// 16983t bsnlc 16984s/["\\]/\\&/g; s/^/"/; s/$/"/p 16985d 16986:bsnlc 16987s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16988b cont 16989' <confdefs.h | sed ' 16990s/'"$ac_delim"'/"\\\ 16991"/g' >>$CONFIG_STATUS || ac_write_fail=1 16992 16993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16994 for (key in D) D_is_set[key] = 1 16995 FS = "" 16996} 16997/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16998 line = \$ 0 16999 split(line, arg, " ") 17000 if (arg[1] == "#") { 17001 defundef = arg[2] 17002 mac1 = arg[3] 17003 } else { 17004 defundef = substr(arg[1], 2) 17005 mac1 = arg[2] 17006 } 17007 split(mac1, mac2, "(") #) 17008 macro = mac2[1] 17009 prefix = substr(line, 1, index(line, defundef) - 1) 17010 if (D_is_set[macro]) { 17011 # Preserve the white space surrounding the "#". 17012 print prefix "define", macro P[macro] D[macro] 17013 next 17014 } else { 17015 # Replace #undef with comments. This is necessary, for example, 17016 # in the case of _POSIX_SOURCE, which is predefined and required 17017 # on some systems where configure will not decide to define it. 17018 if (defundef == "undef") { 17019 print "/*", prefix defundef, macro, "*/" 17020 next 17021 } 17022 } 17023} 17024{ print } 17025_ACAWK 17026_ACEOF 17027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17028 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17029fi # test -n "$CONFIG_HEADERS" 17030 17031 17032eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17033shift 17034for ac_tag 17035do 17036 case $ac_tag in 17037 :[FHLC]) ac_mode=$ac_tag; continue;; 17038 esac 17039 case $ac_mode$ac_tag in 17040 :[FHL]*:*);; 17041 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17042 :[FH]-) ac_tag=-:-;; 17043 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17044 esac 17045 ac_save_IFS=$IFS 17046 IFS=: 17047 set x $ac_tag 17048 IFS=$ac_save_IFS 17049 shift 17050 ac_file=$1 17051 shift 17052 17053 case $ac_mode in 17054 :L) ac_source=$1;; 17055 :[FH]) 17056 ac_file_inputs= 17057 for ac_f 17058 do 17059 case $ac_f in 17060 -) ac_f="$ac_tmp/stdin";; 17061 *) # Look for the file first in the build tree, then in the source tree 17062 # (if the path is not absolute). The absolute path cannot be DOS-style, 17063 # because $ac_f cannot contain `:'. 17064 test -f "$ac_f" || 17065 case $ac_f in 17066 [\\/$]*) false;; 17067 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17068 esac || 17069 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17070 esac 17071 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17072 as_fn_append ac_file_inputs " '$ac_f'" 17073 done 17074 17075 # Let's still pretend it is `configure' which instantiates (i.e., don't 17076 # use $as_me), people would be surprised to read: 17077 # /* config.h. Generated by config.status. */ 17078 configure_input='Generated from '` 17079 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17080 `' by configure.' 17081 if test x"$ac_file" != x-; then 17082 configure_input="$ac_file. $configure_input" 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17084$as_echo "$as_me: creating $ac_file" >&6;} 17085 fi 17086 # Neutralize special characters interpreted by sed in replacement strings. 17087 case $configure_input in #( 17088 *\&* | *\|* | *\\* ) 17089 ac_sed_conf_input=`$as_echo "$configure_input" | 17090 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17091 *) ac_sed_conf_input=$configure_input;; 17092 esac 17093 17094 case $ac_tag in 17095 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17097 esac 17098 ;; 17099 esac 17100 17101 ac_dir=`$as_dirname -- "$ac_file" || 17102$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17103 X"$ac_file" : 'X\(//\)[^/]' \| \ 17104 X"$ac_file" : 'X\(//\)$' \| \ 17105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17106$as_echo X"$ac_file" | 17107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17108 s//\1/ 17109 q 17110 } 17111 /^X\(\/\/\)[^/].*/{ 17112 s//\1/ 17113 q 17114 } 17115 /^X\(\/\/\)$/{ 17116 s//\1/ 17117 q 17118 } 17119 /^X\(\/\).*/{ 17120 s//\1/ 17121 q 17122 } 17123 s/.*/./; q'` 17124 as_dir="$ac_dir"; as_fn_mkdir_p 17125 ac_builddir=. 17126 17127case "$ac_dir" in 17128.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17129*) 17130 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17131 # A ".." for each directory in $ac_dir_suffix. 17132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17133 case $ac_top_builddir_sub in 17134 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17135 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17136 esac ;; 17137esac 17138ac_abs_top_builddir=$ac_pwd 17139ac_abs_builddir=$ac_pwd$ac_dir_suffix 17140# for backward compatibility: 17141ac_top_builddir=$ac_top_build_prefix 17142 17143case $srcdir in 17144 .) # We are building in place. 17145 ac_srcdir=. 17146 ac_top_srcdir=$ac_top_builddir_sub 17147 ac_abs_top_srcdir=$ac_pwd ;; 17148 [\\/]* | ?:[\\/]* ) # Absolute name. 17149 ac_srcdir=$srcdir$ac_dir_suffix; 17150 ac_top_srcdir=$srcdir 17151 ac_abs_top_srcdir=$srcdir ;; 17152 *) # Relative name. 17153 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17154 ac_top_srcdir=$ac_top_build_prefix$srcdir 17155 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17156esac 17157ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17158 17159 17160 case $ac_mode in 17161 :F) 17162 # 17163 # CONFIG_FILE 17164 # 17165 17166 case $INSTALL in 17167 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17168 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17169 esac 17170 ac_MKDIR_P=$MKDIR_P 17171 case $MKDIR_P in 17172 [\\/$]* | ?:[\\/]* ) ;; 17173 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17174 esac 17175_ACEOF 17176 17177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17178# If the template does not know about datarootdir, expand it. 17179# FIXME: This hack should be removed a few years after 2.60. 17180ac_datarootdir_hack=; ac_datarootdir_seen= 17181ac_sed_dataroot=' 17182/datarootdir/ { 17183 p 17184 q 17185} 17186/@datadir@/p 17187/@docdir@/p 17188/@infodir@/p 17189/@localedir@/p 17190/@mandir@/p' 17191case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17192*datarootdir*) ac_datarootdir_seen=yes;; 17193*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17195$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17196_ACEOF 17197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17198 ac_datarootdir_hack=' 17199 s&@datadir@&$datadir&g 17200 s&@docdir@&$docdir&g 17201 s&@infodir@&$infodir&g 17202 s&@localedir@&$localedir&g 17203 s&@mandir@&$mandir&g 17204 s&\\\${datarootdir}&$datarootdir&g' ;; 17205esac 17206_ACEOF 17207 17208# Neutralize VPATH when `$srcdir' = `.'. 17209# Shell code in configure.ac might set extrasub. 17210# FIXME: do we really want to maintain this feature? 17211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17212ac_sed_extra="$ac_vpsub 17213$extrasub 17214_ACEOF 17215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17216:t 17217/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17218s|@configure_input@|$ac_sed_conf_input|;t t 17219s&@top_builddir@&$ac_top_builddir_sub&;t t 17220s&@top_build_prefix@&$ac_top_build_prefix&;t t 17221s&@srcdir@&$ac_srcdir&;t t 17222s&@abs_srcdir@&$ac_abs_srcdir&;t t 17223s&@top_srcdir@&$ac_top_srcdir&;t t 17224s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17225s&@builddir@&$ac_builddir&;t t 17226s&@abs_builddir@&$ac_abs_builddir&;t t 17227s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17228s&@INSTALL@&$ac_INSTALL&;t t 17229s&@MKDIR_P@&$ac_MKDIR_P&;t t 17230$ac_datarootdir_hack 17231" 17232eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17233 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17234 17235test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17236 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17238 "$ac_tmp/out"`; test -z "$ac_out"; } && 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17240which seems to be undefined. Please make sure it is defined" >&5 17241$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17242which seems to be undefined. Please make sure it is defined" >&2;} 17243 17244 rm -f "$ac_tmp/stdin" 17245 case $ac_file in 17246 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17247 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17248 esac \ 17249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17250 ;; 17251 :H) 17252 # 17253 # CONFIG_HEADER 17254 # 17255 if test x"$ac_file" != x-; then 17256 { 17257 $as_echo "/* $configure_input */" \ 17258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17259 } >"$ac_tmp/config.h" \ 17260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17261 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17263$as_echo "$as_me: $ac_file is unchanged" >&6;} 17264 else 17265 rm -f "$ac_file" 17266 mv "$ac_tmp/config.h" "$ac_file" \ 17267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17268 fi 17269 else 17270 $as_echo "/* $configure_input */" \ 17271 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17272 || as_fn_error $? "could not create -" "$LINENO" 5 17273 fi 17274# Compute "$ac_file"'s index in $config_headers. 17275_am_arg="$ac_file" 17276_am_stamp_count=1 17277for _am_header in $config_headers :; do 17278 case $_am_header in 17279 $_am_arg | $_am_arg:* ) 17280 break ;; 17281 * ) 17282 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17283 esac 17284done 17285echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17286$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17287 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17288 X"$_am_arg" : 'X\(//\)$' \| \ 17289 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17290$as_echo X"$_am_arg" | 17291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17292 s//\1/ 17293 q 17294 } 17295 /^X\(\/\/\)[^/].*/{ 17296 s//\1/ 17297 q 17298 } 17299 /^X\(\/\/\)$/{ 17300 s//\1/ 17301 q 17302 } 17303 /^X\(\/\).*/{ 17304 s//\1/ 17305 q 17306 } 17307 s/.*/./; q'`/stamp-h$_am_stamp_count 17308 ;; 17309 17310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17311$as_echo "$as_me: executing $ac_file commands" >&6;} 17312 ;; 17313 esac 17314 17315 17316 case $ac_file$ac_mode in 17317 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17318 # Older Autoconf quotes --file arguments for eval, but not when files 17319 # are listed without --file. Let's play safe and only enable the eval 17320 # if we detect the quoting. 17321 # TODO: see whether this extra hack can be removed once we start 17322 # requiring Autoconf 2.70 or later. 17323 case $CONFIG_FILES in #( 17324 *\'*) : 17325 eval set x "$CONFIG_FILES" ;; #( 17326 *) : 17327 set x $CONFIG_FILES ;; #( 17328 *) : 17329 ;; 17330esac 17331 shift 17332 # Used to flag and report bootstrapping failures. 17333 am_rc=0 17334 for am_mf 17335 do 17336 # Strip MF so we end up with the name of the file. 17337 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17338 # Check whether this is an Automake generated Makefile which includes 17339 # dependency-tracking related rules and includes. 17340 # Grep'ing the whole file directly is not great: AIX grep has a line 17341 # limit of 2048, but all sed's we know have understand at least 4000. 17342 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17343 || continue 17344 am_dirpart=`$as_dirname -- "$am_mf" || 17345$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17346 X"$am_mf" : 'X\(//\)[^/]' \| \ 17347 X"$am_mf" : 'X\(//\)$' \| \ 17348 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17349$as_echo X"$am_mf" | 17350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17351 s//\1/ 17352 q 17353 } 17354 /^X\(\/\/\)[^/].*/{ 17355 s//\1/ 17356 q 17357 } 17358 /^X\(\/\/\)$/{ 17359 s//\1/ 17360 q 17361 } 17362 /^X\(\/\).*/{ 17363 s//\1/ 17364 q 17365 } 17366 s/.*/./; q'` 17367 am_filepart=`$as_basename -- "$am_mf" || 17368$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17369 X"$am_mf" : 'X\(//\)$' \| \ 17370 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17371$as_echo X/"$am_mf" | 17372 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17373 s//\1/ 17374 q 17375 } 17376 /^X\/\(\/\/\)$/{ 17377 s//\1/ 17378 q 17379 } 17380 /^X\/\(\/\).*/{ 17381 s//\1/ 17382 q 17383 } 17384 s/.*/./; q'` 17385 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17386 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17387 | $MAKE -f - am--depfiles" >&5 17388 (cd "$am_dirpart" \ 17389 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17390 | $MAKE -f - am--depfiles) >&5 2>&5 17391 ac_status=$? 17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17393 (exit $ac_status); } || am_rc=$? 17394 done 17395 if test $am_rc -ne 0; then 17396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17398as_fn_error $? "Something went wrong bootstrapping makefile fragments 17399 for automatic dependency tracking. Try re-running configure with the 17400 '--disable-dependency-tracking' option to at least be able to build 17401 the package (albeit without support for automatic dependency tracking). 17402See \`config.log' for more details" "$LINENO" 5; } 17403 fi 17404 { am_dirpart=; unset am_dirpart;} 17405 { am_filepart=; unset am_filepart;} 17406 { am_mf=; unset am_mf;} 17407 { am_rc=; unset am_rc;} 17408 rm -f conftest-deps.mk 17409} 17410 ;; 17411 "testsuite/oct-run_testsuite.sh":F) chmod +x testsuite/oct-run_testsuite.sh ;; 17412 "testsuite/performance/oct-run_performance_testsuite.sh":F) chmod +x testsuite/performance/oct-run_performance_testsuite.sh ;; 17413 17414 esac 17415done # for ac_tag 17416 17417 17418as_fn_exit 0 17419_ACEOF 17420ac_clean_files=$ac_clean_files_save 17421 17422test $ac_write_fail = 0 || 17423 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17424 17425 17426# configure is writing to config.log, and then calls config.status. 17427# config.status does its own redirection, appending to config.log. 17428# Unfortunately, on DOS this fails, as config.log is still kept open 17429# by configure, so config.status won't be able to write to it; its 17430# output is simply discarded. So we exec the FD to /dev/null, 17431# effectively closing config.log, so it can be properly (re)opened and 17432# appended to by config.status. When coming back to configure, we 17433# need to make the FD available again. 17434if test "$no_create" != yes; then 17435 ac_cs_success=: 17436 ac_config_status_args= 17437 test "$silent" = yes && 17438 ac_config_status_args="$ac_config_status_args --quiet" 17439 exec 5>/dev/null 17440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17441 exec 5>>config.log 17442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17443 # would make configure fail if this is the last instruction. 17444 $ac_cs_success || as_fn_exit 1 17445fi 17446 17447# 17448# CONFIG_SUBDIRS section. 17449# 17450if test "$no_recursion" != yes; then 17451 17452 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 17453 # so they do not pile up. 17454 ac_sub_configure_args= 17455 ac_prev= 17456 eval "set x $ac_configure_args" 17457 shift 17458 for ac_arg 17459 do 17460 if test -n "$ac_prev"; then 17461 ac_prev= 17462 continue 17463 fi 17464 case $ac_arg in 17465 -cache-file | --cache-file | --cache-fil | --cache-fi \ 17466 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 17467 ac_prev=cache_file ;; 17468 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 17469 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 17470 | --c=*) 17471 ;; 17472 --config-cache | -C) 17473 ;; 17474 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 17475 ac_prev=srcdir ;; 17476 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 17477 ;; 17478 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 17479 ac_prev=prefix ;; 17480 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 17481 ;; 17482 --disable-option-checking) 17483 ;; 17484 *) 17485 case $ac_arg in 17486 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17487 esac 17488 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 17489 esac 17490 done 17491 17492 # Always prepend --prefix to ensure using the same prefix 17493 # in subdir configurations. 17494 ac_arg="--prefix=$prefix" 17495 case $ac_arg in 17496 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17497 esac 17498 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 17499 17500 # Pass --silent 17501 if test "$silent" = yes; then 17502 ac_sub_configure_args="--silent $ac_sub_configure_args" 17503 fi 17504 17505 # Always prepend --disable-option-checking to silence warnings, since 17506 # different subdirs can have different --enable and --with options. 17507 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 17508 17509 ac_popdir=`pwd` 17510 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 17511 17512 # Do not complain, so a configure script can configure whichever 17513 # parts of a large source tree are present. 17514 test -d "$srcdir/$ac_dir" || continue 17515 17516 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 17517 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 17518 $as_echo "$ac_msg" >&6 17519 as_dir="$ac_dir"; as_fn_mkdir_p 17520 ac_builddir=. 17521 17522case "$ac_dir" in 17523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17524*) 17525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17526 # A ".." for each directory in $ac_dir_suffix. 17527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17528 case $ac_top_builddir_sub in 17529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17531 esac ;; 17532esac 17533ac_abs_top_builddir=$ac_pwd 17534ac_abs_builddir=$ac_pwd$ac_dir_suffix 17535# for backward compatibility: 17536ac_top_builddir=$ac_top_build_prefix 17537 17538case $srcdir in 17539 .) # We are building in place. 17540 ac_srcdir=. 17541 ac_top_srcdir=$ac_top_builddir_sub 17542 ac_abs_top_srcdir=$ac_pwd ;; 17543 [\\/]* | ?:[\\/]* ) # Absolute name. 17544 ac_srcdir=$srcdir$ac_dir_suffix; 17545 ac_top_srcdir=$srcdir 17546 ac_abs_top_srcdir=$srcdir ;; 17547 *) # Relative name. 17548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17549 ac_top_srcdir=$ac_top_build_prefix$srcdir 17550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17551esac 17552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17553 17554 17555 cd "$ac_dir" 17556 17557 # Check for guested configure; otherwise get Cygnus style configure. 17558 if test -f "$ac_srcdir/configure.gnu"; then 17559 ac_sub_configure=$ac_srcdir/configure.gnu 17560 elif test -f "$ac_srcdir/configure"; then 17561 ac_sub_configure=$ac_srcdir/configure 17562 elif test -f "$ac_srcdir/configure.in"; then 17563 # This should be Cygnus configure. 17564 ac_sub_configure=$ac_aux_dir/configure 17565 else 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 17567$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 17568 ac_sub_configure= 17569 fi 17570 17571 # The recursion is here. 17572 if test -n "$ac_sub_configure"; then 17573 # Make the cache file name correct relative to the subdirectory. 17574 case $cache_file in 17575 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 17576 *) # Relative name. 17577 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 17578 esac 17579 17580 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 17581$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 17582 # The eval makes quoting arguments work. 17583 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 17584 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 17585 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 17586 fi 17587 17588 cd "$ac_popdir" 17589 done 17590fi 17591if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17593$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17594fi 17595 17596