1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pmix 3.2.3. 4# 5# Report bugs to <https://github.com/pmix/pmix/issues>. 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 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://github.com/pmix/pmix/issues about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='pmix' 592PACKAGE_TARNAME='pmix' 593PACKAGE_VERSION='3.2.3' 594PACKAGE_STRING='pmix 3.2.3' 595PACKAGE_BUGREPORT='https://github.com/pmix/pmix/issues' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638libmca_common_dstore_so_version 639libpmi2_so_version 640libpmi_so_version 641libpmix_so_version 642CONFIGURE_DEPENDENCIES 643PC_PRIVATE_LIBS 644PC_REQUIRES 645CC_FOR_BUILD 646NEED_LIBPMIX_FALSE 647NEED_LIBPMIX_TRUE 648WANT_PMI_BACKWARD_FALSE 649WANT_PMI_BACKWARD_TRUE 650WANT_PRIMARY_HEADERS_FALSE 651WANT_PRIMARY_HEADERS_TRUE 652WANT_DSTORE_FALSE 653WANT_DSTORE_TRUE 654PMIX_WANT_SASL_FALSE 655PMIX_WANT_SASL_TRUE 656PMIX_WANT_MUNGE_FALSE 657PMIX_WANT_MUNGE_TRUE 658PMIX_COMPILE_TIMING_FALSE 659PMIX_COMPILE_TIMING_TRUE 660PMIX_TESTS_EXAMPLES_FALSE 661PMIX_TESTS_EXAMPLES_TRUE 662PMIX_EMBEDDED_MODE_FALSE 663PMIX_EMBEDDED_MODE_TRUE 664PMIX_EMBEDDED_CPPFLAGS 665PMIX_EMBEDDED_LDFLAGS 666PMIX_EMBEDDED_LIBS 667PMIX_COMPONENT_LIBRARY_PATHS 668PMIX_BUILT_TEST_PREFIX 669pmixincludedir 670pmixlibdir 671pmixdatadir 672MCA_PROJECT_SUBDIRS 673MCA_pmix_FRAMEWORK_LIBS 674MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS 675MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS 676MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS 677MCA_pmix_FRAMEWORKS_SUBDIRS 678MCA_pmix_FRAMEWORKS 679MCA_pmix_ptl_DSO_SUBDIRS 680MCA_pmix_ptl_STATIC_SUBDIRS 681MCA_pmix_ptl_ALL_SUBDIRS 682MCA_pmix_ptl_STATIC_LTLIBS 683MCA_pmix_ptl_DSO_COMPONENTS 684MCA_pmix_ptl_STATIC_COMPONENTS 685MCA_pmix_ptl_ALL_COMPONENTS 686MCA_BUILD_pmix_ptl_usock_DSO_FALSE 687MCA_BUILD_pmix_ptl_usock_DSO_TRUE 688MCA_BUILD_pmix_ptl_tcp_DSO_FALSE 689MCA_BUILD_pmix_ptl_tcp_DSO_TRUE 690MCA_pmix_psquash_DSO_SUBDIRS 691MCA_pmix_psquash_STATIC_SUBDIRS 692MCA_pmix_psquash_ALL_SUBDIRS 693MCA_pmix_psquash_STATIC_LTLIBS 694MCA_pmix_psquash_DSO_COMPONENTS 695MCA_pmix_psquash_STATIC_COMPONENTS 696MCA_pmix_psquash_ALL_COMPONENTS 697MCA_BUILD_pmix_psquash_native_DSO_FALSE 698MCA_BUILD_pmix_psquash_native_DSO_TRUE 699MCA_BUILD_pmix_psquash_flex128_DSO_FALSE 700MCA_BUILD_pmix_psquash_flex128_DSO_TRUE 701MCA_pmix_pshmem_DSO_SUBDIRS 702MCA_pmix_pshmem_STATIC_SUBDIRS 703MCA_pmix_pshmem_ALL_SUBDIRS 704MCA_pmix_pshmem_STATIC_LTLIBS 705MCA_pmix_pshmem_DSO_COMPONENTS 706MCA_pmix_pshmem_STATIC_COMPONENTS 707MCA_pmix_pshmem_ALL_COMPONENTS 708MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE 709MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE 710MCA_pmix_psensor_DSO_SUBDIRS 711MCA_pmix_psensor_STATIC_SUBDIRS 712MCA_pmix_psensor_ALL_SUBDIRS 713MCA_pmix_psensor_STATIC_LTLIBS 714MCA_pmix_psensor_DSO_COMPONENTS 715MCA_pmix_psensor_STATIC_COMPONENTS 716MCA_pmix_psensor_ALL_COMPONENTS 717MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE 718MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE 719MCA_BUILD_pmix_psensor_file_DSO_FALSE 720MCA_BUILD_pmix_psensor_file_DSO_TRUE 721MCA_pmix_psec_DSO_SUBDIRS 722MCA_pmix_psec_STATIC_SUBDIRS 723MCA_pmix_psec_ALL_SUBDIRS 724MCA_pmix_psec_STATIC_LTLIBS 725MCA_pmix_psec_DSO_COMPONENTS 726MCA_pmix_psec_STATIC_COMPONENTS 727MCA_pmix_psec_ALL_COMPONENTS 728MCA_BUILD_pmix_psec_munge_DSO_FALSE 729MCA_BUILD_pmix_psec_munge_DSO_TRUE 730psec_munge_LIBS 731psec_munge_LDFLAGS 732psec_munge_CPPFLAGS 733MCA_BUILD_pmix_psec_none_DSO_FALSE 734MCA_BUILD_pmix_psec_none_DSO_TRUE 735MCA_BUILD_pmix_psec_native_DSO_FALSE 736MCA_BUILD_pmix_psec_native_DSO_TRUE 737MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE 738MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE 739MCA_pmix_preg_DSO_SUBDIRS 740MCA_pmix_preg_STATIC_SUBDIRS 741MCA_pmix_preg_ALL_SUBDIRS 742MCA_pmix_preg_STATIC_LTLIBS 743MCA_pmix_preg_DSO_COMPONENTS 744MCA_pmix_preg_STATIC_COMPONENTS 745MCA_pmix_preg_ALL_COMPONENTS 746MCA_BUILD_pmix_preg_native_DSO_FALSE 747MCA_BUILD_pmix_preg_native_DSO_TRUE 748MCA_BUILD_pmix_preg_compress_DSO_FALSE 749MCA_BUILD_pmix_preg_compress_DSO_TRUE 750MCA_pmix_pnet_DSO_SUBDIRS 751MCA_pmix_pnet_STATIC_SUBDIRS 752MCA_pmix_pnet_ALL_SUBDIRS 753MCA_pmix_pnet_STATIC_LTLIBS 754MCA_pmix_pnet_DSO_COMPONENTS 755MCA_pmix_pnet_STATIC_COMPONENTS 756MCA_pmix_pnet_ALL_COMPONENTS 757MCA_pmix_plog_DSO_SUBDIRS 758MCA_pmix_plog_STATIC_SUBDIRS 759MCA_pmix_plog_ALL_SUBDIRS 760MCA_pmix_plog_STATIC_LTLIBS 761MCA_pmix_plog_DSO_COMPONENTS 762MCA_pmix_plog_STATIC_COMPONENTS 763MCA_pmix_plog_ALL_COMPONENTS 764MCA_BUILD_pmix_plog_syslog_DSO_FALSE 765MCA_BUILD_pmix_plog_syslog_DSO_TRUE 766MCA_BUILD_pmix_plog_stdfd_DSO_FALSE 767MCA_BUILD_pmix_plog_stdfd_DSO_TRUE 768MCA_BUILD_pmix_plog_default_DSO_FALSE 769MCA_BUILD_pmix_plog_default_DSO_TRUE 770MCA_pmix_pinstalldirs_DSO_SUBDIRS 771MCA_pmix_pinstalldirs_STATIC_SUBDIRS 772MCA_pmix_pinstalldirs_ALL_SUBDIRS 773MCA_pmix_pinstalldirs_STATIC_LTLIBS 774MCA_pmix_pinstalldirs_DSO_COMPONENTS 775MCA_pmix_pinstalldirs_STATIC_COMPONENTS 776MCA_pmix_pinstalldirs_ALL_COMPONENTS 777MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE 778MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE 779MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE 780MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE 781MCA_pmix_pif_DSO_SUBDIRS 782MCA_pmix_pif_STATIC_SUBDIRS 783MCA_pmix_pif_ALL_SUBDIRS 784MCA_pmix_pif_STATIC_LTLIBS 785MCA_pmix_pif_DSO_COMPONENTS 786MCA_pmix_pif_STATIC_COMPONENTS 787MCA_pmix_pif_ALL_COMPONENTS 788MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE 789MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE 790MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE 791MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE 792MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE 793MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE 794MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE 795MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE 796MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE 797MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE 798MCA_pmix_pdl_DSO_SUBDIRS 799MCA_pmix_pdl_STATIC_SUBDIRS 800MCA_pmix_pdl_ALL_SUBDIRS 801MCA_pmix_pdl_STATIC_LTLIBS 802MCA_pmix_pdl_DSO_COMPONENTS 803MCA_pmix_pdl_STATIC_COMPONENTS 804MCA_pmix_pdl_ALL_COMPONENTS 805MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE 806MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE 807pmix_pdl_plibltdl_LIBS 808pmix_pdl_plibltdl_LDFLAGS 809pmix_pdl_plibltdl_CPPFLAGS 810MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE 811MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE 812pmix_pdl_pdlopen_LIBS 813MCA_pmix_pcompress_DSO_SUBDIRS 814MCA_pmix_pcompress_STATIC_SUBDIRS 815MCA_pmix_pcompress_ALL_SUBDIRS 816MCA_pmix_pcompress_STATIC_LTLIBS 817MCA_pmix_pcompress_DSO_COMPONENTS 818MCA_pmix_pcompress_STATIC_COMPONENTS 819MCA_pmix_pcompress_ALL_COMPONENTS 820MCA_BUILD_pmix_pcompress_zlib_DSO_FALSE 821MCA_BUILD_pmix_pcompress_zlib_DSO_TRUE 822pcompress_zlib_LIBS 823pcompress_zlib_LDFLAGS 824pcompress_zlib_CPPFLAGS 825pcompress_zlib_CFLAGS 826MCA_pmix_gds_DSO_SUBDIRS 827MCA_pmix_gds_STATIC_SUBDIRS 828MCA_pmix_gds_ALL_SUBDIRS 829MCA_pmix_gds_STATIC_LTLIBS 830MCA_pmix_gds_DSO_COMPONENTS 831MCA_pmix_gds_STATIC_COMPONENTS 832MCA_pmix_gds_ALL_COMPONENTS 833MCA_BUILD_pmix_gds_ds21_DSO_FALSE 834MCA_BUILD_pmix_gds_ds21_DSO_TRUE 835MCA_BUILD_pmix_gds_ds12_DSO_FALSE 836MCA_BUILD_pmix_gds_ds12_DSO_TRUE 837MCA_BUILD_pmix_gds_hash_DSO_FALSE 838MCA_BUILD_pmix_gds_hash_DSO_TRUE 839MCA_pmix_bfrops_DSO_SUBDIRS 840MCA_pmix_bfrops_STATIC_SUBDIRS 841MCA_pmix_bfrops_ALL_SUBDIRS 842MCA_pmix_bfrops_STATIC_LTLIBS 843MCA_pmix_bfrops_DSO_COMPONENTS 844MCA_pmix_bfrops_STATIC_COMPONENTS 845MCA_pmix_bfrops_ALL_COMPONENTS 846MCA_BUILD_pmix_bfrops_v3_DSO_FALSE 847MCA_BUILD_pmix_bfrops_v3_DSO_TRUE 848MCA_BUILD_pmix_bfrops_v21_DSO_FALSE 849MCA_BUILD_pmix_bfrops_v21_DSO_TRUE 850MCA_BUILD_pmix_bfrops_v20_DSO_FALSE 851MCA_BUILD_pmix_bfrops_v20_DSO_TRUE 852MCA_BUILD_pmix_bfrops_v12_DSO_FALSE 853MCA_BUILD_pmix_bfrops_v12_DSO_TRUE 854MCA_pmix_common_DSO_SUBDIRS 855MCA_pmix_common_STATIC_SUBDIRS 856MCA_pmix_common_ALL_SUBDIRS 857MCA_pmix_common_STATIC_LTLIBS 858MCA_pmix_common_DSO_COMPONENTS 859MCA_pmix_common_STATIC_COMPONENTS 860MCA_pmix_common_ALL_COMPONENTS 861MCA_BUILD_pmix_common_dstore_DSO_FALSE 862MCA_BUILD_pmix_common_dstore_DSO_TRUE 863HAVE_DSTORE_FCNTL_LOCK_FALSE 864HAVE_DSTORE_FCNTL_LOCK_TRUE 865HAVE_DSTORE_PTHREAD_LOCK_FALSE 866HAVE_DSTORE_PTHREAD_LOCK_TRUE 867WANT_HIDDEN_FALSE 868WANT_HIDDEN_TRUE 869PMIX_DESTRUCTOR_USE_FINI_FALSE 870PMIX_DESTRUCTOR_USE_FINI_TRUE 871PMIX_ASSEMBLY_BUILTIN 872PMIX_ASSEMBLY_ARCH 873PMIX_ASSEMBLY_FORMAT 874PMIX_ASM_SUPPORT_64BIT 875PMIX_ASM_TYPE 876PMIX_ASM_LSYM 877PMIX_ASM_GSYM 878PMIX_AS_LABEL_SUFFIX 879PMIX_AS_GLOBAL 880PMIX_ASM_TEXT 881PERL 882am__fastdepCCAS_FALSE 883am__fastdepCCAS_TRUE 884CCASDEPMODE 885CCASFLAGS 886CCAS 887WRAPPER_CC 888PMIX_EXTRA_LTLIB 889PMIX_EXTRA_LIB 890PMIX_REPO_REV 891PMIX_GREEK_VERSION 892pmixnumeric 893pmixrelease 894pmixminor 895pmixmajor 896PMIX_RELEASE_VERSION 897PMIX_MINOR_VERSION 898PMIX_MAJOR_VERSION 899PMIX_RELEASE_DATE 900PMIX_VERSION 901PMIX_top_srcdir 902PMIX_top_builddir 903PMIX_CC_ABSOLUTE 904LT_SYS_LIBRARY_PATH 905OTOOL64 906OTOOL 907LIPO 908NMEDIT 909DSYMUTIL 910MANIFEST_TOOL 911RANLIB 912DLLTOOL 913OBJDUMP 914LN_S 915NM 916ac_ct_DUMPBIN 917DUMPBIN 918LD 919FGREP 920SED 921LIBTOOL 922ac_prefix_program 923CLEANFILES 924MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE 925MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE 926PMIX_INSTALL_BINARIES_FALSE 927PMIX_INSTALL_BINARIES_TRUE 928WANT_INSTALL_HEADERS_FALSE 929WANT_INSTALL_HEADERS_TRUE 930LEXLIB 931LEX_OUTPUT_ROOT 932LEX 933ac_ct_AR 934AR 935EGREP 936GREP 937CPP 938am__fastdepCC_FALSE 939am__fastdepCC_TRUE 940CCDEPMODE 941am__nodep 942AMDEPBACKSLASH 943AMDEP_FALSE 944AMDEP_TRUE 945am__quote 946am__include 947DEPDIR 948OBJEXT 949EXEEXT 950ac_ct_CC 951CPPFLAGS 952LDFLAGS 953CFLAGS 954CC 955AM_BACKSLASH 956AM_DEFAULT_VERBOSITY 957AM_DEFAULT_V 958AM_V 959am__untar 960am__tar 961AMTAR 962am__leading_dot 963SET_MAKE 964AWK 965mkdir_p 966MKDIR_P 967INSTALL_STRIP_PROGRAM 968STRIP 969install_sh 970MAKEINFO 971AUTOHEADER 972AUTOMAKE 973AUTOCONF 974ACLOCAL 975VERSION 976PACKAGE 977CYGPATH_W 978am__isrc 979INSTALL_DATA 980INSTALL_SCRIPT 981INSTALL_PROGRAM 982target_os 983target_vendor 984target_cpu 985target 986host_os 987host_vendor 988host_cpu 989host 990build_os 991build_vendor 992build_cpu 993build 994PMIX_CONFIGURE_DATE 995PMIX_CONFIGURE_HOST 996PMIX_CONFIGURE_USER 997SOURCE_DATE_EPOCH_SET_FALSE 998SOURCE_DATE_EPOCH_SET_TRUE 999SOURCE_DATE_EPOCH 1000PMIX_TOP_SRCDIR 1001PMIX_TOP_BUILDDIR 1002PMIX_PARAM_FROM_PLATFORM 1003PMIX_DEFAULT_MCA_PARAM_CONF 1004PMIX_CONFIGURE_CLI 1005target_alias 1006host_alias 1007build_alias 1008LIBS 1009ECHO_T 1010ECHO_N 1011ECHO_C 1012DEFS 1013mandir 1014localedir 1015libdir 1016psdir 1017pdfdir 1018dvidir 1019htmldir 1020infodir 1021docdir 1022oldincludedir 1023includedir 1024localstatedir 1025sharedstatedir 1026sysconfdir 1027datadir 1028datarootdir 1029libexecdir 1030sbindir 1031bindir 1032program_transform_name 1033prefix 1034exec_prefix 1035PACKAGE_URL 1036PACKAGE_BUGREPORT 1037PACKAGE_STRING 1038PACKAGE_VERSION 1039PACKAGE_TARNAME 1040PACKAGE_NAME 1041PATH_SEPARATOR 1042SHELL' 1043ac_subst_files='' 1044ac_user_opts=' 1045enable_option_checking 1046with_platform_patches_dir 1047with_platform 1048enable_silent_rules 1049enable_dependency_tracking 1050enable_shared 1051enable_static 1052enable_dlopen 1053enable_embedded_mode 1054enable_picky 1055enable_debug 1056enable_debug_symbols 1057with_devel_headers 1058with_tests_examples 1059enable_per_user_config_files 1060enable_pretty_print_stacktrace 1061enable_dstore_pthlck 1062with_ident_string 1063enable_pmix_timing 1064enable_pmi_backward_compatibility 1065enable_pmix_binaries 1066enable_nonglobal_dlopen 1067enable_pty_support 1068enable_dummy_handshake 1069with_pic 1070enable_fast_install 1071with_aix_soname 1072with_gnu_ld 1073with_sysroot 1074enable_libtool_lock 1075with_pmix_extra_lib 1076with_pmix_extra_ltlib 1077with_pmix_package_string 1078enable_c11_atomics 1079enable_builtin_atomics 1080with_broken_qsort 1081enable_visibility 1082with_libev 1083with_libev_libdir 1084with_libevent_header 1085with_libevent 1086with_libevent_libdir 1087with_hwloc_header 1088with_hwloc 1089with_hwloc_libdir 1090with_zlib 1091with_zlib_libdir 1092enable_show_load_errors_by_default 1093enable_mca_no_build 1094enable_mca_dso 1095enable_mca_static 1096enable_mca_direct 1097enable_dl_dlopen 1098with_plibltdl 1099with_libltdl_libdir 1100with_munge 1101with_munge_libdir 1102enable_werror 1103' 1104 ac_precious_vars='build_alias 1105host_alias 1106target_alias 1107CC 1108CFLAGS 1109LDFLAGS 1110LIBS 1111CPPFLAGS 1112CPP 1113LT_SYS_LIBRARY_PATH 1114CCAS 1115CCASFLAGS 1116CC_FOR_BUILD' 1117 1118 1119# Initialize some variables set by options. 1120ac_init_help= 1121ac_init_version=false 1122ac_unrecognized_opts= 1123ac_unrecognized_sep= 1124# The variables have the same names as the options, with 1125# dashes changed to underlines. 1126cache_file=/dev/null 1127exec_prefix=NONE 1128no_create= 1129no_recursion= 1130prefix=NONE 1131program_prefix=NONE 1132program_suffix=NONE 1133program_transform_name=s,x,x, 1134silent= 1135site= 1136srcdir= 1137verbose= 1138x_includes=NONE 1139x_libraries=NONE 1140 1141# Installation directory options. 1142# These are left unexpanded so users can "make install exec_prefix=/foo" 1143# and all the variables that are supposed to be based on exec_prefix 1144# by default will actually change. 1145# Use braces instead of parens because sh, perl, etc. also accept them. 1146# (The list follows the same order as the GNU Coding Standards.) 1147bindir='${exec_prefix}/bin' 1148sbindir='${exec_prefix}/sbin' 1149libexecdir='${exec_prefix}/libexec' 1150datarootdir='${prefix}/share' 1151datadir='${datarootdir}' 1152sysconfdir='${prefix}/etc' 1153sharedstatedir='${prefix}/com' 1154localstatedir='${prefix}/var' 1155includedir='${prefix}/include' 1156oldincludedir='/usr/include' 1157docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1158infodir='${datarootdir}/info' 1159htmldir='${docdir}' 1160dvidir='${docdir}' 1161pdfdir='${docdir}' 1162psdir='${docdir}' 1163libdir='${exec_prefix}/lib' 1164localedir='${datarootdir}/locale' 1165mandir='${datarootdir}/man' 1166 1167ac_prev= 1168ac_dashdash= 1169for ac_option 1170do 1171 # If the previous option needs an argument, assign it. 1172 if test -n "$ac_prev"; then 1173 eval $ac_prev=\$ac_option 1174 ac_prev= 1175 continue 1176 fi 1177 1178 case $ac_option in 1179 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1180 *=) ac_optarg= ;; 1181 *) ac_optarg=yes ;; 1182 esac 1183 1184 # Accept the important Cygnus configure options, so we can diagnose typos. 1185 1186 case $ac_dashdash$ac_option in 1187 --) 1188 ac_dashdash=yes ;; 1189 1190 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1191 ac_prev=bindir ;; 1192 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1193 bindir=$ac_optarg ;; 1194 1195 -build | --build | --buil | --bui | --bu) 1196 ac_prev=build_alias ;; 1197 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1198 build_alias=$ac_optarg ;; 1199 1200 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1201 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1202 ac_prev=cache_file ;; 1203 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1204 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1205 cache_file=$ac_optarg ;; 1206 1207 --config-cache | -C) 1208 cache_file=config.cache ;; 1209 1210 -datadir | --datadir | --datadi | --datad) 1211 ac_prev=datadir ;; 1212 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1213 datadir=$ac_optarg ;; 1214 1215 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1216 | --dataroo | --dataro | --datar) 1217 ac_prev=datarootdir ;; 1218 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1219 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1220 datarootdir=$ac_optarg ;; 1221 1222 -disable-* | --disable-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid feature name: $ac_useropt" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"enable_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval enable_$ac_useropt=no ;; 1237 1238 -docdir | --docdir | --docdi | --doc | --do) 1239 ac_prev=docdir ;; 1240 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1241 docdir=$ac_optarg ;; 1242 1243 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1244 ac_prev=dvidir ;; 1245 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1246 dvidir=$ac_optarg ;; 1247 1248 -enable-* | --enable-*) 1249 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1252 as_fn_error $? "invalid feature name: $ac_useropt" 1253 ac_useropt_orig=$ac_useropt 1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1255 case $ac_user_opts in 1256 *" 1257"enable_$ac_useropt" 1258"*) ;; 1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1260 ac_unrecognized_sep=', ';; 1261 esac 1262 eval enable_$ac_useropt=\$ac_optarg ;; 1263 1264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1266 | --exec | --exe | --ex) 1267 ac_prev=exec_prefix ;; 1268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1270 | --exec=* | --exe=* | --ex=*) 1271 exec_prefix=$ac_optarg ;; 1272 1273 -gas | --gas | --ga | --g) 1274 # Obsolete; use --with-gas. 1275 with_gas=yes ;; 1276 1277 -help | --help | --hel | --he | -h) 1278 ac_init_help=long ;; 1279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1280 ac_init_help=recursive ;; 1281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1282 ac_init_help=short ;; 1283 1284 -host | --host | --hos | --ho) 1285 ac_prev=host_alias ;; 1286 -host=* | --host=* | --hos=* | --ho=*) 1287 host_alias=$ac_optarg ;; 1288 1289 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1290 ac_prev=htmldir ;; 1291 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1292 | --ht=*) 1293 htmldir=$ac_optarg ;; 1294 1295 -includedir | --includedir | --includedi | --included | --include \ 1296 | --includ | --inclu | --incl | --inc) 1297 ac_prev=includedir ;; 1298 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1299 | --includ=* | --inclu=* | --incl=* | --inc=*) 1300 includedir=$ac_optarg ;; 1301 1302 -infodir | --infodir | --infodi | --infod | --info | --inf) 1303 ac_prev=infodir ;; 1304 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1305 infodir=$ac_optarg ;; 1306 1307 -libdir | --libdir | --libdi | --libd) 1308 ac_prev=libdir ;; 1309 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1310 libdir=$ac_optarg ;; 1311 1312 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1313 | --libexe | --libex | --libe) 1314 ac_prev=libexecdir ;; 1315 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1316 | --libexe=* | --libex=* | --libe=*) 1317 libexecdir=$ac_optarg ;; 1318 1319 -localedir | --localedir | --localedi | --localed | --locale) 1320 ac_prev=localedir ;; 1321 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1322 localedir=$ac_optarg ;; 1323 1324 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1325 | --localstate | --localstat | --localsta | --localst | --locals) 1326 ac_prev=localstatedir ;; 1327 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1328 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1329 localstatedir=$ac_optarg ;; 1330 1331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1332 ac_prev=mandir ;; 1333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1334 mandir=$ac_optarg ;; 1335 1336 -nfp | --nfp | --nf) 1337 # Obsolete; use --without-fp. 1338 with_fp=no ;; 1339 1340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1341 | --no-cr | --no-c | -n) 1342 no_create=yes ;; 1343 1344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1346 no_recursion=yes ;; 1347 1348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1350 | --oldin | --oldi | --old | --ol | --o) 1351 ac_prev=oldincludedir ;; 1352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1355 oldincludedir=$ac_optarg ;; 1356 1357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1358 ac_prev=prefix ;; 1359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1360 prefix=$ac_optarg ;; 1361 1362 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1363 | --program-pre | --program-pr | --program-p) 1364 ac_prev=program_prefix ;; 1365 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1367 program_prefix=$ac_optarg ;; 1368 1369 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1370 | --program-suf | --program-su | --program-s) 1371 ac_prev=program_suffix ;; 1372 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1374 program_suffix=$ac_optarg ;; 1375 1376 -program-transform-name | --program-transform-name \ 1377 | --program-transform-nam | --program-transform-na \ 1378 | --program-transform-n | --program-transform- \ 1379 | --program-transform | --program-transfor \ 1380 | --program-transfo | --program-transf \ 1381 | --program-trans | --program-tran \ 1382 | --progr-tra | --program-tr | --program-t) 1383 ac_prev=program_transform_name ;; 1384 -program-transform-name=* | --program-transform-name=* \ 1385 | --program-transform-nam=* | --program-transform-na=* \ 1386 | --program-transform-n=* | --program-transform-=* \ 1387 | --program-transform=* | --program-transfor=* \ 1388 | --program-transfo=* | --program-transf=* \ 1389 | --program-trans=* | --program-tran=* \ 1390 | --progr-tra=* | --program-tr=* | --program-t=*) 1391 program_transform_name=$ac_optarg ;; 1392 1393 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1394 ac_prev=pdfdir ;; 1395 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1396 pdfdir=$ac_optarg ;; 1397 1398 -psdir | --psdir | --psdi | --psd | --ps) 1399 ac_prev=psdir ;; 1400 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1401 psdir=$ac_optarg ;; 1402 1403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1404 | -silent | --silent | --silen | --sile | --sil) 1405 silent=yes ;; 1406 1407 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1408 ac_prev=sbindir ;; 1409 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1410 | --sbi=* | --sb=*) 1411 sbindir=$ac_optarg ;; 1412 1413 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1414 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1415 | --sharedst | --shareds | --shared | --share | --shar \ 1416 | --sha | --sh) 1417 ac_prev=sharedstatedir ;; 1418 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1419 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1420 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1421 | --sha=* | --sh=*) 1422 sharedstatedir=$ac_optarg ;; 1423 1424 -site | --site | --sit) 1425 ac_prev=site ;; 1426 -site=* | --site=* | --sit=*) 1427 site=$ac_optarg ;; 1428 1429 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1430 ac_prev=srcdir ;; 1431 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1432 srcdir=$ac_optarg ;; 1433 1434 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1435 | --syscon | --sysco | --sysc | --sys | --sy) 1436 ac_prev=sysconfdir ;; 1437 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1438 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1439 sysconfdir=$ac_optarg ;; 1440 1441 -target | --target | --targe | --targ | --tar | --ta | --t) 1442 ac_prev=target_alias ;; 1443 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1444 target_alias=$ac_optarg ;; 1445 1446 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1447 verbose=yes ;; 1448 1449 -version | --version | --versio | --versi | --vers | -V) 1450 ac_init_version=: ;; 1451 1452 -with-* | --with-*) 1453 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1454 # Reject names that are not valid shell variable names. 1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1456 as_fn_error $? "invalid package name: $ac_useropt" 1457 ac_useropt_orig=$ac_useropt 1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1459 case $ac_user_opts in 1460 *" 1461"with_$ac_useropt" 1462"*) ;; 1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1464 ac_unrecognized_sep=', ';; 1465 esac 1466 eval with_$ac_useropt=\$ac_optarg ;; 1467 1468 -without-* | --without-*) 1469 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1470 # Reject names that are not valid shell variable names. 1471 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1472 as_fn_error $? "invalid package name: $ac_useropt" 1473 ac_useropt_orig=$ac_useropt 1474 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1475 case $ac_user_opts in 1476 *" 1477"with_$ac_useropt" 1478"*) ;; 1479 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1480 ac_unrecognized_sep=', ';; 1481 esac 1482 eval with_$ac_useropt=no ;; 1483 1484 --x) 1485 # Obsolete; use --with-x. 1486 with_x=yes ;; 1487 1488 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1489 | --x-incl | --x-inc | --x-in | --x-i) 1490 ac_prev=x_includes ;; 1491 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1492 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1493 x_includes=$ac_optarg ;; 1494 1495 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1496 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1497 ac_prev=x_libraries ;; 1498 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1499 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1500 x_libraries=$ac_optarg ;; 1501 1502 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1503Try \`$0 --help' for more information" 1504 ;; 1505 1506 *=*) 1507 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1508 # Reject names that are not valid shell variable names. 1509 case $ac_envvar in #( 1510 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1511 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1512 esac 1513 eval $ac_envvar=\$ac_optarg 1514 export $ac_envvar ;; 1515 1516 *) 1517 # FIXME: should be removed in autoconf 3.0. 1518 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1519 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1520 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1521 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1522 ;; 1523 1524 esac 1525done 1526 1527if test -n "$ac_prev"; then 1528 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1529 as_fn_error $? "missing argument to $ac_option" 1530fi 1531 1532if test -n "$ac_unrecognized_opts"; then 1533 case $enable_option_checking in 1534 no) ;; 1535 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1536 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1537 esac 1538fi 1539 1540# Check all directory arguments for consistency. 1541for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1542 datadir sysconfdir sharedstatedir localstatedir includedir \ 1543 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1544 libdir localedir mandir 1545do 1546 eval ac_val=\$$ac_var 1547 # Remove trailing slashes. 1548 case $ac_val in 1549 */ ) 1550 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1551 eval $ac_var=\$ac_val;; 1552 esac 1553 # Be sure to have absolute directory names. 1554 case $ac_val in 1555 [\\/$]* | ?:[\\/]* ) continue;; 1556 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1557 esac 1558 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1559done 1560 1561# There might be people who depend on the old broken behavior: `$host' 1562# used to hold the argument of --host etc. 1563# FIXME: To remove some day. 1564build=$build_alias 1565host=$host_alias 1566target=$target_alias 1567 1568# FIXME: To remove some day. 1569if test "x$host_alias" != x; then 1570 if test "x$build_alias" = x; then 1571 cross_compiling=maybe 1572 elif test "x$build_alias" != "x$host_alias"; then 1573 cross_compiling=yes 1574 fi 1575fi 1576 1577ac_tool_prefix= 1578test -n "$host_alias" && ac_tool_prefix=$host_alias- 1579 1580test "$silent" = yes && exec 6>/dev/null 1581 1582 1583ac_pwd=`pwd` && test -n "$ac_pwd" && 1584ac_ls_di=`ls -di .` && 1585ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1586 as_fn_error $? "working directory cannot be determined" 1587test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1588 as_fn_error $? "pwd does not report name of working directory" 1589 1590 1591# Find the source files, if location was not specified. 1592if test -z "$srcdir"; then 1593 ac_srcdir_defaulted=yes 1594 # Try the directory containing this script, then the parent directory. 1595 ac_confdir=`$as_dirname -- "$as_myself" || 1596$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1597 X"$as_myself" : 'X\(//\)[^/]' \| \ 1598 X"$as_myself" : 'X\(//\)$' \| \ 1599 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1600$as_echo X"$as_myself" | 1601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1602 s//\1/ 1603 q 1604 } 1605 /^X\(\/\/\)[^/].*/{ 1606 s//\1/ 1607 q 1608 } 1609 /^X\(\/\/\)$/{ 1610 s//\1/ 1611 q 1612 } 1613 /^X\(\/\).*/{ 1614 s//\1/ 1615 q 1616 } 1617 s/.*/./; q'` 1618 srcdir=$ac_confdir 1619 if test ! -r "$srcdir/$ac_unique_file"; then 1620 srcdir=.. 1621 fi 1622else 1623 ac_srcdir_defaulted=no 1624fi 1625if test ! -r "$srcdir/$ac_unique_file"; then 1626 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1627 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1628fi 1629ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1630ac_abs_confdir=`( 1631 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1632 pwd)` 1633# When building in place, set srcdir=. 1634if test "$ac_abs_confdir" = "$ac_pwd"; then 1635 srcdir=. 1636fi 1637# Remove unnecessary trailing slashes from srcdir. 1638# Double slashes in file names in object file debugging info 1639# mess up M-x gdb in Emacs. 1640case $srcdir in 1641*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1642esac 1643for ac_var in $ac_precious_vars; do 1644 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1645 eval ac_env_${ac_var}_value=\$${ac_var} 1646 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1647 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1648done 1649 1650# 1651# Report the --help message. 1652# 1653if test "$ac_init_help" = "long"; then 1654 # Omit some internal or obsolete options to make the list less imposing. 1655 # This message is too long to be a string in the A/UX 3.1 sh. 1656 cat <<_ACEOF 1657\`configure' configures pmix 3.2.3 to adapt to many kinds of systems. 1658 1659Usage: $0 [OPTION]... [VAR=VALUE]... 1660 1661To assign environment variables (e.g., CC, CFLAGS...), specify them as 1662VAR=VALUE. See below for descriptions of some of the useful variables. 1663 1664Defaults for the options are specified in brackets. 1665 1666Configuration: 1667 -h, --help display this help and exit 1668 --help=short display options specific to this package 1669 --help=recursive display the short help of all the included packages 1670 -V, --version display version information and exit 1671 -q, --quiet, --silent do not print \`checking ...' messages 1672 --cache-file=FILE cache test results in FILE [disabled] 1673 -C, --config-cache alias for \`--cache-file=config.cache' 1674 -n, --no-create do not create output files 1675 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1676 1677Installation directories: 1678 --prefix=PREFIX install architecture-independent files in PREFIX 1679 [$ac_default_prefix] 1680 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1681 [PREFIX] 1682 1683By default, \`make install' will install all the files in 1684\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1685an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1686for instance \`--prefix=\$HOME'. 1687 1688For better control, use the options below. 1689 1690Fine tuning of the installation directories: 1691 --bindir=DIR user executables [EPREFIX/bin] 1692 --sbindir=DIR system admin executables [EPREFIX/sbin] 1693 --libexecdir=DIR program executables [EPREFIX/libexec] 1694 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1695 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1696 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1697 --libdir=DIR object code libraries [EPREFIX/lib] 1698 --includedir=DIR C header files [PREFIX/include] 1699 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1700 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1701 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1702 --infodir=DIR info documentation [DATAROOTDIR/info] 1703 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1704 --mandir=DIR man documentation [DATAROOTDIR/man] 1705 --docdir=DIR documentation root [DATAROOTDIR/doc/pmix] 1706 --htmldir=DIR html documentation [DOCDIR] 1707 --dvidir=DIR dvi documentation [DOCDIR] 1708 --pdfdir=DIR pdf documentation [DOCDIR] 1709 --psdir=DIR ps documentation [DOCDIR] 1710_ACEOF 1711 1712 cat <<\_ACEOF 1713 1714Program names: 1715 --program-prefix=PREFIX prepend PREFIX to installed program names 1716 --program-suffix=SUFFIX append SUFFIX to installed program names 1717 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1718 1719System types: 1720 --build=BUILD configure for building on BUILD [guessed] 1721 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1722 --target=TARGET configure for building compilers for TARGET [HOST] 1723_ACEOF 1724fi 1725 1726if test -n "$ac_init_help"; then 1727 case $ac_init_help in 1728 short | recursive ) echo "Configuration of pmix 3.2.3:";; 1729 esac 1730 cat <<\_ACEOF 1731 1732Optional Features: 1733 --disable-option-checking ignore unrecognized --enable/--with options 1734 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1735 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1736 --enable-silent-rules less verbose build output (undo: "make V=1") 1737 --disable-silent-rules verbose build output (undo: "make V=0") 1738 --enable-dependency-tracking 1739 do not reject slow dependency extractors 1740 --disable-dependency-tracking 1741 speeds up one-time build 1742 --enable-shared[=PKGS] build shared libraries [default=yes] 1743 --enable-static[=PKGS] build static libraries [default=no] 1744 --enable-dlopen Whether build should attempt to use dlopen (or 1745 similar) to dynamically load components. (default: 1746 enabled) 1747 --enable-embedded-mode Using --enable-embedded-mode causes PMIx to skip a 1748 few configure checks and install nothing. It should 1749 only be used when building PMIx within the scope of 1750 a larger package. 1751 --enable-picky enable developer-level compiler pickyness when 1752 building PMIx (default: disabled) 1753 --enable-debug enable developer-level debugging code (not for 1754 general PMIx users!) (default: disabled) 1755 --disable-debug-symbols Disable adding compiler flags to enable debugging 1756 symbols if --enable-debug is specified. For 1757 non-debugging builds, this flag has no effect. 1758 --enable-per-user-config-files 1759 Disable per-user configuration files, to save disk 1760 accesses during job start-up. This is likely 1761 desirable for large jobs. Note that this can also be 1762 acheived by environment variables at run-time. 1763 (default: enabled) 1764 --enable-pretty-print-stacktrace 1765 Pretty print stacktrace on process signal (default: 1766 enabled) 1767 --disable-dstore-pthlck Disable pthread-based locking in dstor (default: 1768 enabled) 1769 --enable-pmix-timing enable PMIx developer-level timing code (default: 1770 disabled) 1771 --enable-pmi-backward-compatibility 1772 enable PMIx support for PMI-1 and PMI-2 (default: 1773 enabled) 1774 --enable-pmix-binaries enable PMIx tools 1775 --enable-nonglobal-dlopen 1776 enable non-global dlopen (default: enabled) 1777 --enable-pty-support Enable/disable PTY support for STDIO forwarding. 1778 (default: enabled) 1779 --enable-dummy-handshake 1780 Enables psec dummy component intended to check the 1781 PTL handshake scenario (default: disabled) 1782 --enable-fast-install[=PKGS] 1783 optimize for fast installation [default=yes] 1784 --disable-libtool-lock avoid locking (might break parallel builds) 1785 --enable-c11-atomics Enable use of C11 atomics if available (default: 1786 enabled) 1787 --enable-builtin-atomics 1788 Enable use of GCC built-in atomics (default: 1789 autodetect) 1790 --enable-visibility enable visibility feature of certain 1791 compilers/linkers (default: enabled) 1792 --enable-show-load-errors-by-default 1793 Set the default value for the MCA parameter 1794 mca_base_component_show_load_errors (but can be 1795 overridden at run time by the usual 1796 MCA-variable-setting mechansism). This MCA variable 1797 controls whether warnings are displayed when an MCA 1798 component fails to load at run time due to an error. 1799 (default: enabled in --enable-debug builds, meaning 1800 that mca_base_component_show_load_errors is enabled 1801 by default when configured with --enable-debug 1802 --enable-mca-no-build=LIST 1803 Comma-separated list of <type>-<component> pairs 1804 that will not be built. Example: 1805 "--enable-mca-no-build=maffinity,btl-portals" will 1806 disable building all maffinity components and the 1807 "portals" btl components. 1808 --enable-mca-dso=LIST Comma-separated list of types and/or type-component 1809 pairs that will be built as run-time loadable 1810 components (as opposed to statically linked in), if 1811 supported on this platform. The default is to build 1812 all components as DSOs. 1813 --enable-mca-static=LIST 1814 Comma-separated list of types and/or type-component 1815 pairs that will be built statically linked into the 1816 library. The default (if DSOs are supported) is to 1817 build all components as DSOs. Enabling a component 1818 as static disables it building as a DSO. 1819 --enable-mca-direct=LIST 1820 Comma-separated list of type-component pairs that 1821 will be hard coded as the one component to use for a 1822 given component type, saving the (small) overhead of 1823 the component architecture. LIST must not be empty 1824 and implies given component pairs are build as 1825 static components. 1826 --disable-dl-dlopen Disable the "dlopen" PDL component (and probably 1827 force the use of the "libltdl" PDL component). 1828 1829 --enable-werror Treat compiler warnings as errors 1830 1831Optional Packages: 1832 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1833 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1834 --with-platform-patches-dir=DIR 1835 Location of the platform patches directory. If you 1836 use this option, you must also use --with-platform. 1837 --with-platform=FILE Load options for build from FILE. Options on the 1838 command line not in FILE are used. Options on the 1839 command line and in FILE are replaced by what is in 1840 FILE. 1841 --with-devel-headers normal PMIx users/applications do not need this 1842 (pmix.h and friends are ALWAYS installed). Developer 1843 headers are only necessary for authors doing deeper 1844 integration (default: disabled). 1845 --with-tests-examples Whether or not to install the tests and example 1846 programs. 1847 --with-ident-string=STRING 1848 Embed an ident string into PMIx object files 1849 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1850 both] 1851 --with-aix-soname=aix|svr4|both 1852 shared library versioning (aka "SONAME") variant to 1853 provide on AIX, [default=aix]. 1854 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1855 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1856 compiler's sysroot if not specified). 1857 --with-pmix-extra-lib=LIB 1858 Link the output PMIx library to this extra lib (used 1859 in embedded mode) 1860 --with-pmix-extra-ltlib=LIB 1861 Link any embedded components/tools that require it 1862 to the provided libtool lib (used in embedded mode) 1863 --with-pmix-package-string=STRING 1864 Use a branding string throughout PMIx 1865 --with-broken-qsort Build with FreeBSD qsort instead of native qsort 1866 (default: no) 1867 --with-libev=DIR Search for libev headers and libraries in DIR 1868 --with-libev-libdir=DIR Search for libev libraries in DIR 1869 --with-libevent-header=HEADER 1870 The value that should be included in C files to 1871 include event.h 1872 --with-libevent=DIR Search for libevent headers and libraries in DIR 1873 --with-libevent-libdir=DIR 1874 Search for libevent libraries in DIR 1875 --with-hwloc-header=HEADER 1876 The value that should be included in C files to 1877 include hwloc.h 1878 --with-hwloc=DIR Search for hwloc headers and libraries in DIR 1879 --with-hwloc-libdir=DIR Search for hwloc libraries in DIR 1880 --with-zlib=DIR Search for zlib headers and libraries in DIR 1881 --with-zlib-libdir=DIR Search for zlib libraries in DIR 1882 --with-libltdl(=DIR) Build libltdl support, optionally adding 1883 DIR/include, DIR/lib, and DIR/lib64 to the search 1884 path for headers and libraries 1885 --with-libltdl-libdir=DIR 1886 Search for libltdl libraries in DIR 1887 --with-munge=DIR Search for munge headers and libraries in DIR 1888 --with-munge-libdir=DIR Search for munge libraries in DIR 1889 1890Some influential environment variables: 1891 CC C compiler command 1892 CFLAGS C compiler flags 1893 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1894 nonstandard directory <lib dir> 1895 LIBS libraries to pass to the linker, e.g. -l<library> 1896 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1897 you have headers in a nonstandard directory <include dir> 1898 CPP C preprocessor 1899 LT_SYS_LIBRARY_PATH 1900 User-defined run-time library search path. 1901 CCAS assembler compiler command (defaults to CC) 1902 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1903 CC_FOR_BUILD 1904 build system C compiler 1905 1906Use these variables to override the choices made by `configure' or to help 1907it to find libraries and programs with nonstandard names/locations. 1908 1909Report bugs to <https://github.com/pmix/pmix/issues>. 1910_ACEOF 1911ac_status=$? 1912fi 1913 1914if test "$ac_init_help" = "recursive"; then 1915 # If there are subdirs, report their specific --help. 1916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1917 test -d "$ac_dir" || 1918 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1919 continue 1920 ac_builddir=. 1921 1922case "$ac_dir" in 1923.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1924*) 1925 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1926 # A ".." for each directory in $ac_dir_suffix. 1927 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1928 case $ac_top_builddir_sub in 1929 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1930 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1931 esac ;; 1932esac 1933ac_abs_top_builddir=$ac_pwd 1934ac_abs_builddir=$ac_pwd$ac_dir_suffix 1935# for backward compatibility: 1936ac_top_builddir=$ac_top_build_prefix 1937 1938case $srcdir in 1939 .) # We are building in place. 1940 ac_srcdir=. 1941 ac_top_srcdir=$ac_top_builddir_sub 1942 ac_abs_top_srcdir=$ac_pwd ;; 1943 [\\/]* | ?:[\\/]* ) # Absolute name. 1944 ac_srcdir=$srcdir$ac_dir_suffix; 1945 ac_top_srcdir=$srcdir 1946 ac_abs_top_srcdir=$srcdir ;; 1947 *) # Relative name. 1948 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1949 ac_top_srcdir=$ac_top_build_prefix$srcdir 1950 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1951esac 1952ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1953 1954 cd "$ac_dir" || { ac_status=$?; continue; } 1955 # Check for guested configure. 1956 if test -f "$ac_srcdir/configure.gnu"; then 1957 echo && 1958 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1959 elif test -f "$ac_srcdir/configure"; then 1960 echo && 1961 $SHELL "$ac_srcdir/configure" --help=recursive 1962 else 1963 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1964 fi || ac_status=$? 1965 cd "$ac_pwd" || { ac_status=$?; break; } 1966 done 1967fi 1968 1969test -n "$ac_init_help" && exit $ac_status 1970if $ac_init_version; then 1971 cat <<\_ACEOF 1972pmix configure 3.2.3 1973generated by GNU Autoconf 2.69 1974 1975Copyright (C) 2012 Free Software Foundation, Inc. 1976This configure script is free software; the Free Software Foundation 1977gives unlimited permission to copy, distribute and modify it. 1978_ACEOF 1979 exit 1980fi 1981 1982## ------------------------ ## 1983## Autoconf initialization. ## 1984## ------------------------ ## 1985 1986# ac_fn_c_try_compile LINENO 1987# -------------------------- 1988# Try to compile conftest.$ac_ext, and return whether this succeeded. 1989ac_fn_c_try_compile () 1990{ 1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1992 rm -f conftest.$ac_objext 1993 if { { ac_try="$ac_compile" 1994case "(($ac_try" in 1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1996 *) ac_try_echo=$ac_try;; 1997esac 1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1999$as_echo "$ac_try_echo"; } >&5 2000 (eval "$ac_compile") 2>conftest.err 2001 ac_status=$? 2002 if test -s conftest.err; then 2003 grep -v '^ *+' conftest.err >conftest.er1 2004 cat conftest.er1 >&5 2005 mv -f conftest.er1 conftest.err 2006 fi 2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2008 test $ac_status = 0; } && { 2009 test -z "$ac_c_werror_flag" || 2010 test ! -s conftest.err 2011 } && test -s conftest.$ac_objext; then : 2012 ac_retval=0 2013else 2014 $as_echo "$as_me: failed program was:" >&5 2015sed 's/^/| /' conftest.$ac_ext >&5 2016 2017 ac_retval=1 2018fi 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2020 as_fn_set_status $ac_retval 2021 2022} # ac_fn_c_try_compile 2023 2024# ac_fn_c_try_cpp LINENO 2025# ---------------------- 2026# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2027ac_fn_c_try_cpp () 2028{ 2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2030 if { { ac_try="$ac_cpp conftest.$ac_ext" 2031case "(($ac_try" in 2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2033 *) ac_try_echo=$ac_try;; 2034esac 2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2036$as_echo "$ac_try_echo"; } >&5 2037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2038 ac_status=$? 2039 if test -s conftest.err; then 2040 grep -v '^ *+' conftest.err >conftest.er1 2041 cat conftest.er1 >&5 2042 mv -f conftest.er1 conftest.err 2043 fi 2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2045 test $ac_status = 0; } > conftest.i && { 2046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2047 test ! -s conftest.err 2048 }; then : 2049 ac_retval=0 2050else 2051 $as_echo "$as_me: failed program was:" >&5 2052sed 's/^/| /' conftest.$ac_ext >&5 2053 2054 ac_retval=1 2055fi 2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2057 as_fn_set_status $ac_retval 2058 2059} # ac_fn_c_try_cpp 2060 2061# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2062# ------------------------------------------------------- 2063# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2064# the include files in INCLUDES and setting the cache variable VAR 2065# accordingly. 2066ac_fn_c_check_header_mongrel () 2067{ 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2069 if eval \${$3+:} false; then : 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2071$as_echo_n "checking for $2... " >&6; } 2072if eval \${$3+:} false; then : 2073 $as_echo_n "(cached) " >&6 2074fi 2075eval ac_res=\$$3 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2077$as_echo "$ac_res" >&6; } 2078else 2079 # Is the header compilable? 2080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2081$as_echo_n "checking $2 usability... " >&6; } 2082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2083/* end confdefs.h. */ 2084$4 2085#include <$2> 2086_ACEOF 2087if ac_fn_c_try_compile "$LINENO"; then : 2088 ac_header_compiler=yes 2089else 2090 ac_header_compiler=no 2091fi 2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2094$as_echo "$ac_header_compiler" >&6; } 2095 2096# Is the header present? 2097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2098$as_echo_n "checking $2 presence... " >&6; } 2099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101#include <$2> 2102_ACEOF 2103if ac_fn_c_try_cpp "$LINENO"; then : 2104 ac_header_preproc=yes 2105else 2106 ac_header_preproc=no 2107fi 2108rm -f conftest.err conftest.i conftest.$ac_ext 2109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2110$as_echo "$ac_header_preproc" >&6; } 2111 2112# So? What about this header? 2113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2114 yes:no: ) 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2116$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2119 ;; 2120 no:yes:* ) 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2122$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2124$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2126$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2128$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2130$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2131( $as_echo "## -------------------------------------------------- ## 2132## Report this to https://github.com/pmix/pmix/issues ## 2133## -------------------------------------------------- ##" 2134 ) | sed "s/^/$as_me: WARNING: /" >&2 2135 ;; 2136esac 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2138$as_echo_n "checking for $2... " >&6; } 2139if eval \${$3+:} false; then : 2140 $as_echo_n "(cached) " >&6 2141else 2142 eval "$3=\$ac_header_compiler" 2143fi 2144eval ac_res=\$$3 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2146$as_echo "$ac_res" >&6; } 2147fi 2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2149 2150} # ac_fn_c_check_header_mongrel 2151 2152# ac_fn_c_try_run LINENO 2153# ---------------------- 2154# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2155# that executables *can* be run. 2156ac_fn_c_try_run () 2157{ 2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2159 if { { ac_try="$ac_link" 2160case "(($ac_try" in 2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2162 *) ac_try_echo=$ac_try;; 2163esac 2164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2165$as_echo "$ac_try_echo"; } >&5 2166 (eval "$ac_link") 2>&5 2167 ac_status=$? 2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2169 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2170 { { case "(($ac_try" in 2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2172 *) ac_try_echo=$ac_try;; 2173esac 2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2175$as_echo "$ac_try_echo"; } >&5 2176 (eval "$ac_try") 2>&5 2177 ac_status=$? 2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2179 test $ac_status = 0; }; }; then : 2180 ac_retval=0 2181else 2182 $as_echo "$as_me: program exited with status $ac_status" >&5 2183 $as_echo "$as_me: failed program was:" >&5 2184sed 's/^/| /' conftest.$ac_ext >&5 2185 2186 ac_retval=$ac_status 2187fi 2188 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2190 as_fn_set_status $ac_retval 2191 2192} # ac_fn_c_try_run 2193 2194# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2195# ------------------------------------------------------- 2196# Tests whether HEADER exists and can be compiled using the include files in 2197# INCLUDES, setting the cache variable VAR accordingly. 2198ac_fn_c_check_header_compile () 2199{ 2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2202$as_echo_n "checking for $2... " >&6; } 2203if eval \${$3+:} false; then : 2204 $as_echo_n "(cached) " >&6 2205else 2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2207/* end confdefs.h. */ 2208$4 2209#include <$2> 2210_ACEOF 2211if ac_fn_c_try_compile "$LINENO"; then : 2212 eval "$3=yes" 2213else 2214 eval "$3=no" 2215fi 2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2217fi 2218eval ac_res=\$$3 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2220$as_echo "$ac_res" >&6; } 2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2222 2223} # ac_fn_c_check_header_compile 2224 2225# ac_fn_c_try_link LINENO 2226# ----------------------- 2227# Try to link conftest.$ac_ext, and return whether this succeeded. 2228ac_fn_c_try_link () 2229{ 2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2231 rm -f conftest.$ac_objext conftest$ac_exeext 2232 if { { ac_try="$ac_link" 2233case "(($ac_try" in 2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2235 *) ac_try_echo=$ac_try;; 2236esac 2237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2238$as_echo "$ac_try_echo"; } >&5 2239 (eval "$ac_link") 2>conftest.err 2240 ac_status=$? 2241 if test -s conftest.err; then 2242 grep -v '^ *+' conftest.err >conftest.er1 2243 cat conftest.er1 >&5 2244 mv -f conftest.er1 conftest.err 2245 fi 2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2247 test $ac_status = 0; } && { 2248 test -z "$ac_c_werror_flag" || 2249 test ! -s conftest.err 2250 } && test -s conftest$ac_exeext && { 2251 test "$cross_compiling" = yes || 2252 test -x conftest$ac_exeext 2253 }; then : 2254 ac_retval=0 2255else 2256 $as_echo "$as_me: failed program was:" >&5 2257sed 's/^/| /' conftest.$ac_ext >&5 2258 2259 ac_retval=1 2260fi 2261 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2262 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2263 # interfere with the next link command; also delete a directory that is 2264 # left behind by Apple's compiler. We do this before executing the actions. 2265 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2267 as_fn_set_status $ac_retval 2268 2269} # ac_fn_c_try_link 2270 2271# ac_fn_c_check_func LINENO FUNC VAR 2272# ---------------------------------- 2273# Tests whether FUNC exists, setting the cache variable VAR accordingly 2274ac_fn_c_check_func () 2275{ 2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2278$as_echo_n "checking for $2... " >&6; } 2279if eval \${$3+:} false; then : 2280 $as_echo_n "(cached) " >&6 2281else 2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2283/* end confdefs.h. */ 2284/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2285 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2286#define $2 innocuous_$2 2287 2288/* System header to define __stub macros and hopefully few prototypes, 2289 which can conflict with char $2 (); below. 2290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2291 <limits.h> exists even on freestanding compilers. */ 2292 2293#ifdef __STDC__ 2294# include <limits.h> 2295#else 2296# include <assert.h> 2297#endif 2298 2299#undef $2 2300 2301/* Override any GCC internal prototype to avoid an error. 2302 Use char because int might match the return type of a GCC 2303 builtin and then its argument prototype would still apply. */ 2304#ifdef __cplusplus 2305extern "C" 2306#endif 2307char $2 (); 2308/* The GNU C library defines this for functions which it implements 2309 to always fail with ENOSYS. Some functions are actually named 2310 something starting with __ and the normal name is an alias. */ 2311#if defined __stub_$2 || defined __stub___$2 2312choke me 2313#endif 2314 2315int 2316main () 2317{ 2318return $2 (); 2319 ; 2320 return 0; 2321} 2322_ACEOF 2323if ac_fn_c_try_link "$LINENO"; then : 2324 eval "$3=yes" 2325else 2326 eval "$3=no" 2327fi 2328rm -f core conftest.err conftest.$ac_objext \ 2329 conftest$ac_exeext conftest.$ac_ext 2330fi 2331eval ac_res=\$$3 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2333$as_echo "$ac_res" >&6; } 2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2335 2336} # ac_fn_c_check_func 2337 2338# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2339# ------------------------------------------- 2340# Tests whether TYPE exists after having included INCLUDES, setting cache 2341# variable VAR accordingly. 2342ac_fn_c_check_type () 2343{ 2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2346$as_echo_n "checking for $2... " >&6; } 2347if eval \${$3+:} false; then : 2348 $as_echo_n "(cached) " >&6 2349else 2350 eval "$3=no" 2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2352/* end confdefs.h. */ 2353$4 2354int 2355main () 2356{ 2357if (sizeof ($2)) 2358 return 0; 2359 ; 2360 return 0; 2361} 2362_ACEOF 2363if ac_fn_c_try_compile "$LINENO"; then : 2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2365/* end confdefs.h. */ 2366$4 2367int 2368main () 2369{ 2370if (sizeof (($2))) 2371 return 0; 2372 ; 2373 return 0; 2374} 2375_ACEOF 2376if ac_fn_c_try_compile "$LINENO"; then : 2377 2378else 2379 eval "$3=yes" 2380fi 2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2382fi 2383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2384fi 2385eval ac_res=\$$3 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2387$as_echo "$ac_res" >&6; } 2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2389 2390} # ac_fn_c_check_type 2391 2392# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2393# -------------------------------------------- 2394# Tries to find the compile-time value of EXPR in a program that includes 2395# INCLUDES, setting VAR accordingly. Returns whether the value could be 2396# computed 2397ac_fn_c_compute_int () 2398{ 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2400 if test "$cross_compiling" = yes; then 2401 # Depending upon the size, compute the lo and hi bounds. 2402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2403/* end confdefs.h. */ 2404$4 2405int 2406main () 2407{ 2408static int test_array [1 - 2 * !(($2) >= 0)]; 2409test_array [0] = 0; 2410return test_array [0]; 2411 2412 ; 2413 return 0; 2414} 2415_ACEOF 2416if ac_fn_c_try_compile "$LINENO"; then : 2417 ac_lo=0 ac_mid=0 2418 while :; do 2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2420/* end confdefs.h. */ 2421$4 2422int 2423main () 2424{ 2425static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2426test_array [0] = 0; 2427return test_array [0]; 2428 2429 ; 2430 return 0; 2431} 2432_ACEOF 2433if ac_fn_c_try_compile "$LINENO"; then : 2434 ac_hi=$ac_mid; break 2435else 2436 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2437 if test $ac_lo -le $ac_mid; then 2438 ac_lo= ac_hi= 2439 break 2440 fi 2441 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2442fi 2443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2444 done 2445else 2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2447/* end confdefs.h. */ 2448$4 2449int 2450main () 2451{ 2452static int test_array [1 - 2 * !(($2) < 0)]; 2453test_array [0] = 0; 2454return test_array [0]; 2455 2456 ; 2457 return 0; 2458} 2459_ACEOF 2460if ac_fn_c_try_compile "$LINENO"; then : 2461 ac_hi=-1 ac_mid=-1 2462 while :; do 2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2464/* end confdefs.h. */ 2465$4 2466int 2467main () 2468{ 2469static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2470test_array [0] = 0; 2471return test_array [0]; 2472 2473 ; 2474 return 0; 2475} 2476_ACEOF 2477if ac_fn_c_try_compile "$LINENO"; then : 2478 ac_lo=$ac_mid; break 2479else 2480 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2481 if test $ac_mid -le $ac_hi; then 2482 ac_lo= ac_hi= 2483 break 2484 fi 2485 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2486fi 2487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2488 done 2489else 2490 ac_lo= ac_hi= 2491fi 2492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2493fi 2494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2495# Binary search between lo and hi bounds. 2496while test "x$ac_lo" != "x$ac_hi"; do 2497 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2499/* end confdefs.h. */ 2500$4 2501int 2502main () 2503{ 2504static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2505test_array [0] = 0; 2506return test_array [0]; 2507 2508 ; 2509 return 0; 2510} 2511_ACEOF 2512if ac_fn_c_try_compile "$LINENO"; then : 2513 ac_hi=$ac_mid 2514else 2515 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2516fi 2517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2518done 2519case $ac_lo in #(( 2520?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2521'') ac_retval=1 ;; 2522esac 2523 else 2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2525/* end confdefs.h. */ 2526$4 2527static long int longval () { return $2; } 2528static unsigned long int ulongval () { return $2; } 2529#include <stdio.h> 2530#include <stdlib.h> 2531int 2532main () 2533{ 2534 2535 FILE *f = fopen ("conftest.val", "w"); 2536 if (! f) 2537 return 1; 2538 if (($2) < 0) 2539 { 2540 long int i = longval (); 2541 if (i != ($2)) 2542 return 1; 2543 fprintf (f, "%ld", i); 2544 } 2545 else 2546 { 2547 unsigned long int i = ulongval (); 2548 if (i != ($2)) 2549 return 1; 2550 fprintf (f, "%lu", i); 2551 } 2552 /* Do not output a trailing newline, as this causes \r\n confusion 2553 on some platforms. */ 2554 return ferror (f) || fclose (f) != 0; 2555 2556 ; 2557 return 0; 2558} 2559_ACEOF 2560if ac_fn_c_try_run "$LINENO"; then : 2561 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2562else 2563 ac_retval=1 2564fi 2565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2566 conftest.$ac_objext conftest.beam conftest.$ac_ext 2567rm -f conftest.val 2568 2569 fi 2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2571 as_fn_set_status $ac_retval 2572 2573} # ac_fn_c_compute_int 2574 2575# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2576# --------------------------------------------- 2577# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2578# accordingly. 2579ac_fn_c_check_decl () 2580{ 2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2582 as_decl_name=`echo $2|sed 's/ *(.*//'` 2583 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2585$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2586if eval \${$3+:} false; then : 2587 $as_echo_n "(cached) " >&6 2588else 2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2590/* end confdefs.h. */ 2591$4 2592int 2593main () 2594{ 2595#ifndef $as_decl_name 2596#ifdef __cplusplus 2597 (void) $as_decl_use; 2598#else 2599 (void) $as_decl_name; 2600#endif 2601#endif 2602 2603 ; 2604 return 0; 2605} 2606_ACEOF 2607if ac_fn_c_try_compile "$LINENO"; then : 2608 eval "$3=yes" 2609else 2610 eval "$3=no" 2611fi 2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2613fi 2614eval ac_res=\$$3 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2616$as_echo "$ac_res" >&6; } 2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2618 2619} # ac_fn_c_check_decl 2620 2621# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2622# ---------------------------------------------------- 2623# Tries to find if the field MEMBER exists in type AGGR, after including 2624# INCLUDES, setting cache variable VAR accordingly. 2625ac_fn_c_check_member () 2626{ 2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2629$as_echo_n "checking for $2.$3... " >&6; } 2630if eval \${$4+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632else 2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2634/* end confdefs.h. */ 2635$5 2636int 2637main () 2638{ 2639static $2 ac_aggr; 2640if (ac_aggr.$3) 2641return 0; 2642 ; 2643 return 0; 2644} 2645_ACEOF 2646if ac_fn_c_try_compile "$LINENO"; then : 2647 eval "$4=yes" 2648else 2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2650/* end confdefs.h. */ 2651$5 2652int 2653main () 2654{ 2655static $2 ac_aggr; 2656if (sizeof ac_aggr.$3) 2657return 0; 2658 ; 2659 return 0; 2660} 2661_ACEOF 2662if ac_fn_c_try_compile "$LINENO"; then : 2663 eval "$4=yes" 2664else 2665 eval "$4=no" 2666fi 2667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2668fi 2669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2670fi 2671eval ac_res=\$$4 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2673$as_echo "$ac_res" >&6; } 2674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2675 2676} # ac_fn_c_check_member 2677cat >config.log <<_ACEOF 2678This file contains any messages produced by compilers while 2679running configure, to aid debugging if configure makes a mistake. 2680 2681It was created by pmix $as_me 3.2.3, which was 2682generated by GNU Autoconf 2.69. Invocation command line was 2683 2684 $ $0 $@ 2685 2686_ACEOF 2687exec 5>>config.log 2688{ 2689cat <<_ASUNAME 2690## --------- ## 2691## Platform. ## 2692## --------- ## 2693 2694hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2695uname -m = `(uname -m) 2>/dev/null || echo unknown` 2696uname -r = `(uname -r) 2>/dev/null || echo unknown` 2697uname -s = `(uname -s) 2>/dev/null || echo unknown` 2698uname -v = `(uname -v) 2>/dev/null || echo unknown` 2699 2700/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2701/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2702 2703/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2704/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2705/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2706/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2707/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2708/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2709/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2710 2711_ASUNAME 2712 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 2717 test -z "$as_dir" && as_dir=. 2718 $as_echo "PATH: $as_dir" 2719 done 2720IFS=$as_save_IFS 2721 2722} >&5 2723 2724cat >&5 <<_ACEOF 2725 2726 2727## ----------- ## 2728## Core tests. ## 2729## ----------- ## 2730 2731_ACEOF 2732 2733 2734# Keep a trace of the command line. 2735# Strip out --no-create and --no-recursion so they do not pile up. 2736# Strip out --silent because we don't want to record it for future runs. 2737# Also quote any args containing shell meta-characters. 2738# Make two passes to allow for proper duplicate-argument suppression. 2739ac_configure_args= 2740ac_configure_args0= 2741ac_configure_args1= 2742ac_must_keep_next=false 2743for ac_pass in 1 2 2744do 2745 for ac_arg 2746 do 2747 case $ac_arg in 2748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2750 | -silent | --silent | --silen | --sile | --sil) 2751 continue ;; 2752 *\'*) 2753 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2754 esac 2755 case $ac_pass in 2756 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2757 2) 2758 as_fn_append ac_configure_args1 " '$ac_arg'" 2759 if test $ac_must_keep_next = true; then 2760 ac_must_keep_next=false # Got value, back to normal. 2761 else 2762 case $ac_arg in 2763 *=* | --config-cache | -C | -disable-* | --disable-* \ 2764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2766 | -with-* | --with-* | -without-* | --without-* | --x) 2767 case "$ac_configure_args0 " in 2768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2769 esac 2770 ;; 2771 -* ) ac_must_keep_next=true ;; 2772 esac 2773 fi 2774 as_fn_append ac_configure_args " '$ac_arg'" 2775 ;; 2776 esac 2777 done 2778done 2779{ ac_configure_args0=; unset ac_configure_args0;} 2780{ ac_configure_args1=; unset ac_configure_args1;} 2781 2782# When interrupted or exit'd, cleanup temporary files, and complete 2783# config.log. We remove comments because anyway the quotes in there 2784# would cause problems or look ugly. 2785# WARNING: Use '\'' to represent an apostrophe within the trap. 2786# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2787trap 'exit_status=$? 2788 # Save into config.log some information that might help in debugging. 2789 { 2790 echo 2791 2792 $as_echo "## ---------------- ## 2793## Cache variables. ## 2794## ---------------- ##" 2795 echo 2796 # The following way of writing the cache mishandles newlines in values, 2797( 2798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2799 eval ac_val=\$$ac_var 2800 case $ac_val in #( 2801 *${as_nl}*) 2802 case $ac_var in #( 2803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2805 esac 2806 case $ac_var in #( 2807 _ | IFS | as_nl) ;; #( 2808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2809 *) { eval $ac_var=; unset $ac_var;} ;; 2810 esac ;; 2811 esac 2812 done 2813 (set) 2>&1 | 2814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2815 *${as_nl}ac_space=\ *) 2816 sed -n \ 2817 "s/'\''/'\''\\\\'\'''\''/g; 2818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2819 ;; #( 2820 *) 2821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2822 ;; 2823 esac | 2824 sort 2825) 2826 echo 2827 2828 $as_echo "## ----------------- ## 2829## Output variables. ## 2830## ----------------- ##" 2831 echo 2832 for ac_var in $ac_subst_vars 2833 do 2834 eval ac_val=\$$ac_var 2835 case $ac_val in 2836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2837 esac 2838 $as_echo "$ac_var='\''$ac_val'\''" 2839 done | sort 2840 echo 2841 2842 if test -n "$ac_subst_files"; then 2843 $as_echo "## ------------------- ## 2844## File substitutions. ## 2845## ------------------- ##" 2846 echo 2847 for ac_var in $ac_subst_files 2848 do 2849 eval ac_val=\$$ac_var 2850 case $ac_val in 2851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2852 esac 2853 $as_echo "$ac_var='\''$ac_val'\''" 2854 done | sort 2855 echo 2856 fi 2857 2858 if test -s confdefs.h; then 2859 $as_echo "## ----------- ## 2860## confdefs.h. ## 2861## ----------- ##" 2862 echo 2863 cat confdefs.h 2864 echo 2865 fi 2866 test "$ac_signal" != 0 && 2867 $as_echo "$as_me: caught signal $ac_signal" 2868 $as_echo "$as_me: exit $exit_status" 2869 } >&5 2870 rm -f core *.core core.conftest.* && 2871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2872 exit $exit_status 2873' 0 2874for ac_signal in 1 2 13 15; do 2875 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2876done 2877ac_signal=0 2878 2879# confdefs.h avoids OS command line length limits that DEFS can exceed. 2880rm -f -r conftest* confdefs.h 2881 2882$as_echo "/* confdefs.h */" > confdefs.h 2883 2884# Predefined preprocessor variables. 2885 2886cat >>confdefs.h <<_ACEOF 2887#define PACKAGE_NAME "$PACKAGE_NAME" 2888_ACEOF 2889 2890cat >>confdefs.h <<_ACEOF 2891#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2892_ACEOF 2893 2894cat >>confdefs.h <<_ACEOF 2895#define PACKAGE_VERSION "$PACKAGE_VERSION" 2896_ACEOF 2897 2898cat >>confdefs.h <<_ACEOF 2899#define PACKAGE_STRING "$PACKAGE_STRING" 2900_ACEOF 2901 2902cat >>confdefs.h <<_ACEOF 2903#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2904_ACEOF 2905 2906cat >>confdefs.h <<_ACEOF 2907#define PACKAGE_URL "$PACKAGE_URL" 2908_ACEOF 2909 2910 2911# Let the site file select an alternate cache file if it wants to. 2912# Prefer an explicitly selected file to automatically selected ones. 2913ac_site_file1=NONE 2914ac_site_file2=NONE 2915if test -n "$CONFIG_SITE"; then 2916 # We do not want a PATH search for config.site. 2917 case $CONFIG_SITE in #(( 2918 -*) ac_site_file1=./$CONFIG_SITE;; 2919 */*) ac_site_file1=$CONFIG_SITE;; 2920 *) ac_site_file1=./$CONFIG_SITE;; 2921 esac 2922elif test "x$prefix" != xNONE; then 2923 ac_site_file1=$prefix/share/config.site 2924 ac_site_file2=$prefix/etc/config.site 2925else 2926 ac_site_file1=$ac_default_prefix/share/config.site 2927 ac_site_file2=$ac_default_prefix/etc/config.site 2928fi 2929for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2930do 2931 test "x$ac_site_file" = xNONE && continue 2932 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2934$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2935 sed 's/^/| /' "$ac_site_file" >&5 2936 . "$ac_site_file" \ 2937 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2939as_fn_error $? "failed to load site script $ac_site_file 2940See \`config.log' for more details" "$LINENO" 5; } 2941 fi 2942done 2943 2944if test -r "$cache_file"; then 2945 # Some versions of bash will fail to source /dev/null (special files 2946 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2947 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2949$as_echo "$as_me: loading cache $cache_file" >&6;} 2950 case $cache_file in 2951 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2952 *) . "./$cache_file";; 2953 esac 2954 fi 2955else 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2957$as_echo "$as_me: creating cache $cache_file" >&6;} 2958 >$cache_file 2959fi 2960 2961# Check that the precious variables saved in the cache have kept the same 2962# value. 2963ac_cache_corrupted=false 2964for ac_var in $ac_precious_vars; do 2965 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2966 eval ac_new_set=\$ac_env_${ac_var}_set 2967 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2968 eval ac_new_val=\$ac_env_${ac_var}_value 2969 case $ac_old_set,$ac_new_set in 2970 set,) 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2972$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2973 ac_cache_corrupted=: ;; 2974 ,set) 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2976$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2977 ac_cache_corrupted=: ;; 2978 ,);; 2979 *) 2980 if test "x$ac_old_val" != "x$ac_new_val"; then 2981 # differences in whitespace do not lead to failure. 2982 ac_old_val_w=`echo x $ac_old_val` 2983 ac_new_val_w=`echo x $ac_new_val` 2984 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2986$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2987 ac_cache_corrupted=: 2988 else 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2990$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2991 eval $ac_var=\$ac_old_val 2992 fi 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2994$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2996$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2997 fi;; 2998 esac 2999 # Pass precious variables to config.status. 3000 if test "$ac_new_set" = set; then 3001 case $ac_new_val in 3002 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3003 *) ac_arg=$ac_var=$ac_new_val ;; 3004 esac 3005 case " $ac_configure_args " in 3006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3007 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3008 esac 3009 fi 3010done 3011if $ac_cache_corrupted; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3015$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3016 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3017fi 3018## -------------------- ## 3019## Main body of script. ## 3020## -------------------- ## 3021 3022ac_ext=c 3023ac_cpp='$CPP $CPPFLAGS' 3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3026ac_compiler_gnu=$ac_cv_c_compiler_gnu 3027 3028 3029 3030ac_aux_dir= 3031for ac_dir in ./config "$srcdir"/./config; do 3032 if test -f "$ac_dir/install-sh"; then 3033 ac_aux_dir=$ac_dir 3034 ac_install_sh="$ac_aux_dir/install-sh -c" 3035 break 3036 elif test -f "$ac_dir/install.sh"; then 3037 ac_aux_dir=$ac_dir 3038 ac_install_sh="$ac_aux_dir/install.sh -c" 3039 break 3040 elif test -f "$ac_dir/shtool"; then 3041 ac_aux_dir=$ac_dir 3042 ac_install_sh="$ac_aux_dir/shtool install -c" 3043 break 3044 fi 3045done 3046if test -z "$ac_aux_dir"; then 3047 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./config \"$srcdir\"/./config" "$LINENO" 5 3048fi 3049 3050# These three variables are undocumented and unsupported, 3051# and are intended to be withdrawn in a future Autoconf release. 3052# They can cause serious problems if a builder's source tree is in a directory 3053# whose full name contains unusual characters. 3054ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3055ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3056ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3057 3058 3059# Note that this directory must *exactly* match what was specified via 3060# -I in ACLOCAL_AMFLAGS in the top-level Makefile.am. 3061 3062 3063# autotools expects to perform tests without interference 3064# from user-provided CFLAGS, particularly -Werror flags. 3065# Search for them here and cache any we find 3066PMIX_CFLAGS_cache= 3067PMIX_CFLAGS_pass= 3068for val in $CFLAGS; do 3069 if echo "$val" | grep -q -e "-W"; then 3070 PMIX_CFLAGS_cache="$PMIX_CFLAGS_cache $val"; 3071 else 3072 PMIX_CFLAGS_pass="$PMIX_CFLAGS_pass $val"; 3073 fi 3074done 3075CFLAGS=$PMIX_CFLAGS_pass 3076 3077 3078 # Capture configure command line do the AC substitution 3079 3080 3081 # Is the private index set? If not, set it. 3082 if test "x$pmix_scope_index" = "x"; then 3083 pmix_scope_index=1 3084 fi 3085 3086 # First, check to see if any of these variables are already set. 3087 # This is a simple sanity check to ensure we're not already 3088 # overwriting pre-existing variables (that have a non-empty 3089 # value). It's not a perfect check, but at least it's something. 3090 for pmix_var in sed_quote_subst arg quoted_arg; do 3091 pmix_str="pmix_str=\"\$$pmix_var\"" 3092 eval $pmix_str 3093 3094 if test "x$pmix_str" != "x"; then 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 3096$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 3098$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 3100$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 3102$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 3103 as_fn_error $? "Cannot continue" "$LINENO" 5 3104 fi 3105 done 3106 3107 # Ok, we passed the simple sanity check. Save all these names so 3108 # that we can unset them at the end of the scope. 3109 pmix_str="pmix_scope_$pmix_scope_index=\"sed_quote_subst arg quoted_arg\"" 3110 eval $pmix_str 3111 unset pmix_str 3112 3113 env | grep pmix_scope 3114 pmix_scope_index=`expr $pmix_scope_index + 1` 3115 3116 PMIX_CONFIGURE_CLI= 3117 for arg in "$@"; do 3118 sed_quote_subst='s/\([`"\\]\)/\\\1/g' 3119 case "$arg" in 3120 *[\\\`\"\$]*) 3121 quoted_arg=\'`echo "$arg" | sed $sed_quote_subst`\' ;; 3122 *) 3123 quoted_arg="\'$arg\'" ;; 3124 esac 3125 3126 eval "PMIX_CONFIGURE_CLI=\$PMIX_CONFIGURE_CLI\\ \$quoted_arg" 3127 done 3128 3129cat >>confdefs.h <<_ACEOF 3130#define PMIX_CONFIGURE_CLI "$PMIX_CONFIGURE_CLI" 3131_ACEOF 3132 3133 3134 # Unwind the index 3135 pmix_scope_index=`expr $pmix_scope_index - 1` 3136 pmix_scope_test=`expr $pmix_scope_index \> 0` 3137 if test "$pmix_scope_test" = "0"; then 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 3139$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 3141$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 3142 as_fn_error $? "Cannot continue" "$LINENO" 5 3143 fi 3144 3145 # Get the variable names from that index 3146 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 3147 eval $pmix_str 3148 3149 # Iterate over all the variables and unset them all 3150 for pmix_var in $pmix_str; do 3151 unset $pmix_var 3152 done 3153 3154 3155 3156 3157# Get our platform support file. This has to be done very, very early 3158# because it twiddles random bits of autoconf 3159 3160 3161# Check whether --with-platform-patches-dir was given. 3162if test "${with_platform_patches_dir+set}" = set; then : 3163 withval=$with_platform_patches_dir; 3164fi 3165 3166 3167 3168# Check whether --with-platform was given. 3169if test "${with_platform+set}" = set; then : 3170 withval=$with_platform; 3171fi 3172 3173 3174 if test "$with_platform" = "" ; then 3175 with_platform= 3176 fi 3177 if test "$with_platform" = "yes" ; then 3178 as_fn_error $? "--with-platform argument must include FILE option" "$LINENO" 5 3179 elif test "$with_platform" = "no" ; then 3180 as_fn_error $? "--without-platform is not a valid argument" "$LINENO" 5 3181 elif test "$with_platform" != "" ; then 3182 # if not an absolute path, check in contrib/platform 3183 if test ! "`echo $with_platform | cut -c1`" = "/" && test ! "`echo $with_platform | cut -c2`" = ".." ; then 3184 if test -r "${srcdir}/contrib/platform/$with_platform" ; then 3185 with_platform="${srcdir}/contrib/platform/$with_platform" 3186 fi 3187 fi 3188 3189 # make sure file exists 3190 if test ! -r "$with_platform" ; then 3191 as_fn_error $? "platform file $with_platform not found" "$LINENO" 5 3192 fi 3193 3194 # eval into environment 3195 3196# 1 is the message 3197# 2 is whether to put a prefix or not 3198if test -n ""; then 3199 echo "configure:3199: Loading environment file $with_platform, with contents below" >&5 3200else 3201 echo Loading environment file $with_platform, with contents below >&5 3202fi 3203 3204# 1 is the filename 3205if test -n "$with_platform" && test -f "$with_platform"; then 3206 cat $with_platform >&5 3207fi 3208 3209 # setup by getting full pathname for the platform directories 3210 platform_base="`dirname $with_platform`" 3211 platform_file="`basename $with_platform`" 3212 # get full pathname of where we are so we can return 3213 platform_savedir="`pwd`" 3214 # go to where the platform file is located 3215 cd "$platform_base" 3216 # get the full path to this location 3217 platform_file_dir=`pwd` 3218 3219 . ./"$platform_file" 3220 3221 # see if they left us a name 3222 if test "$PMIX_PLATFORM_LOADED" != "" ; then 3223 platform_loaded="$PMIX_PLATFORM_LOADED" 3224 else 3225 platform_loaded="$with_platform" 3226 fi 3227 echo "Loaded platform arguments for $platform_loaded" 3228 3229# 1 is the message 3230# 2 is whether to put a prefix or not 3231if test -n ""; then 3232 echo "configure:3232: Loaded platform arguments for $platform_loaded" >&5 3233else 3234 echo Loaded platform arguments for $platform_loaded >&5 3235fi 3236 3237 # look for default mca param file 3238 3239 # return to where we started 3240 cd "$platform_savedir" 3241 3242 # define an alternate default mca param filename 3243 platform_alt_mca_file="`basename $platform_loaded`.conf" 3244 3245 # look where platform file is located for platform.conf name 3246 if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then 3247 PMIX_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/$platform_alt_mca_file 3248 3249 PMIX_PARAM_FROM_PLATFORM="yes" 3250 3251 # if not, see if a file is there with the default name 3252 elif test -r "${platform_file_dir}/pmix-mca-params.conf" ; then 3253 PMIX_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/pmix-mca-params.conf 3254 3255 PMIX_PARAM_FROM_PLATFORM="yes" 3256 3257 # if not, then just use the default 3258 else 3259 PMIX_DEFAULT_MCA_PARAM_CONF=pmix-mca-params.conf 3260 3261 PMIX_PARAM_FROM_PLATFORM="no" 3262 3263 fi 3264 3265 patch_dir="${with_platform}.patches" 3266 if test -n "$with_platform_patches_dir"; then 3267 if test "$with_platform_patches_dir" = "yes"; then 3268 patch_dir="${with_platform}.patches" 3269 elif test "$with_platform_patches_dir" = "no"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling platform patches on user request" >&5 3271$as_echo "$as_me: Disabling platform patches on user request" >&6;} 3272 patch_dir="" 3273 elif test -d "$with_platform_patches_dir"; then 3274 patch_dir=$with_platform_patches_dir 3275 else 3276 as_fn_error $? "User provided patches directory: $with_platform_patches_dir not found" "$LINENO" 5 3277 fi 3278 fi 3279 3280 patch_done="${srcdir}/.platform_patches" 3281 patch_found=no 3282 3283 if test -d "${patch_dir}"; then 3284 if test ! -f "${patch_done}"; then 3285 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking patches from ${patch_dir}/ directory " >&5 3287$as_echo "$as_me: Checking patches from ${patch_dir}/ directory " >&6;} 3288 for one_patch in $patch_dir/*.patch ; do 3289 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking patch: $one_patch for errors " >&5 3291$as_echo_n "checking patch: $one_patch for errors ... " >&6; } 3292 patch -d ${srcdir} -p1 -t -s --dry-run < ${one_patch} 3293 if test "$?" != "0"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 3295$as_echo "fail" >&6; } 3296 as_fn_error $? "Platform patches failed to apply" "$LINENO" 5 3297 else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 3299$as_echo "ok" >&6; } 3300 fi 3301 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking patch: $one_patch for unsupported configury changes " >&5 3303$as_echo_n "checking patch: $one_patch for unsupported configury changes ... " >&6; } 3304 has_configury_items=$(patch -d ${srcdir} -p1 -t --dry-run < ${one_patch} 2>&1 | egrep "^patching" | egrep '*\.(am|m4)$' | wc -l) 3305 3306 if test $has_configury_items -ne 0; then 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 3308$as_echo "fail" >&6; } 3309 as_fn_error $? "Platform patches should not change configury files" "$LINENO" 5 3310 else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 3312$as_echo "ok" >&6; } 3313 fi 3314 done 3315 3316 3317 for one_patch in $patch_dir/*.patch ; do 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: Applying patch ${one_patch}" >&5 3319$as_echo "$as_me: Applying patch ${one_patch}" >&6;} 3320 patch -d ${srcdir} -p1 -t -s < ${one_patch} 3321 if test "$?" != "0"; then 3322 as_fn_error $? "Failed to apply patch ${one_patch}" "$LINENO" 5 3323 fi 3324 patch_found=yes 3325 done 3326 3327 if test "$patch_found" = "yes"; then 3328 3329 platform_root_short="$(basename $platform_base)" 3330 3331 # If platform file resides under platform/ root folder - use filename as ident 3332 if test "$platform_root_short" = "platform" ; then 3333 platform_ident="$platform_file" 3334 else 3335 platform_ident="$(basename $platform_base)" 3336 fi 3337 3338 # Set custom ident for platform patched PMIX 3339 if test -z "$with_ident_string" ; then 3340 with_ident_string="Platform: $platform_ident" 3341 fi 3342 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: Platform patches applied, created stamp file ${patch_done}" >&5 3344$as_echo "$as_me: Platform patches applied, created stamp file ${patch_done}" >&6;} 3345 touch ${patch_done} 3346 else 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: No platform patches in ${patch_dir}" >&5 3348$as_echo "$as_me: No platform patches in ${patch_dir}" >&6;} 3349 fi 3350 3351 else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Platform patches already applied, skipping. ${patch_done} can be removed to re-apply " >&5 3353$as_echo "$as_me: WARNING: Platform patches already applied, skipping. ${patch_done} can be removed to re-apply " >&2;} 3354 fi 3355 elif test -n "${patch_dir}"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: No platform patches in ${patch_dir}" >&5 3357$as_echo "$as_me: No platform patches in ${patch_dir}" >&6;} 3358 fi 3359 else 3360 PMIX_DEFAULT_MCA_PARAM_CONF=pmix-mca-params.conf 3361 3362 fi 3363 3364 3365PMIX_TOP_BUILDDIR="`pwd`" 3366 3367top_buildir=`pwd` 3368cd "$srcdir" 3369PMIX_TOP_SRCDIR="`pwd`" 3370 3371cd "$PMIX_TOP_BUILDDIR" 3372top_srcdir=`pwd` 3373 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: builddir: $PMIX_TOP_BUILDDIR" >&5 3375$as_echo "$as_me: builddir: $PMIX_TOP_BUILDDIR" >&6;} 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: srcdir: $PMIX_TOP_SRCDIR" >&5 3377$as_echo "$as_me: srcdir: $PMIX_TOP_SRCDIR" >&6;} 3378if test "$PMIX_TOP_BUILDDIR" != "$PMIX_TOP_SRCDIR"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5 3380$as_echo "$as_me: Detected VPATH build" >&6;} 3381fi 3382 3383# setup configure options (e.g., show_title and friends) 3384 3385 3386# Some helper script functions. Unfortunately, we cannot use kinds 3387# of arugments here because of the m4 substitution. So we have to set 3388# special variable names before invoking the function. :-\ 3389 3390pmix_show_title() { 3391 cat <<EOF 3392 3393============================================================================ 3394== ${1} 3395============================================================================ 3396EOF 3397 3398# 1 is the message 3399# 2 is whether to put a prefix or not 3400if test -n "1"; then 3401 echo "configure:3401: === ${1}" >&5 3402else 3403 echo === ${1} >&5 3404fi 3405} 3406 3407 3408pmix_show_subtitle() { 3409 cat <<EOF 3410 3411*** ${1} 3412EOF 3413 3414# 1 is the message 3415# 2 is whether to put a prefix or not 3416if test -n "1"; then 3417 echo "configure:3417: *** ${1}" >&5 3418else 3419 echo *** ${1} >&5 3420fi 3421} 3422 3423 3424pmix_show_subsubtitle() { 3425 cat <<EOF 3426 3427+++ ${1} 3428EOF 3429 3430# 1 is the message 3431# 2 is whether to put a prefix or not 3432if test -n "1"; then 3433 echo "configure:3433: +++ ${1}" >&5 3434else 3435 echo +++ ${1} >&5 3436fi 3437} 3438 3439pmix_show_subsubsubtitle() { 3440 cat <<EOF 3441 3442--- ${1} 3443EOF 3444 3445# 1 is the message 3446# 2 is whether to put a prefix or not 3447if test -n "1"; then 3448 echo "configure:3448: --- ${1}" >&5 3449else 3450 echo --- ${1} >&5 3451fi 3452} 3453 3454pmix_show_verbose() { 3455 if test "$V" = "1"; then 3456 cat <<EOF 3457+++ VERBOSE: ${1} 3458EOF 3459 3460# 1 is the message 3461# 2 is whether to put a prefix or not 3462if test -n "1"; then 3463 echo "configure:3463: --- ${1}" >&5 3464else 3465 echo --- ${1} >&5 3466fi 3467 fi 3468} 3469 3470# 3471# Save some stats about this build 3472# 3473 3474DATE_FMT="+%Y-%m-%dT%H:%M:%S" 3475if test -n "$SOURCE_DATE_EPOCH" ; then 3476 PMIX_CONFIGURE_USER="reproduciblebuild" 3477 PMIX_CONFIGURE_HOST="reproduciblebuild" 3478 PMIX_CONFIGURE_DATE=$(date -u -d "@$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u "$DATE_FMT") 3479else 3480 PMIX_CONFIGURE_USER="`whoami`" 3481 PMIX_CONFIGURE_HOST="`(hostname || uname -n) 2> /dev/null | sed 1q`" 3482 PMIX_CONFIGURE_DATE="`date $DATE_FMT`" 3483fi 3484 3485 3486 if test -n "$SOURCE_DATE_EPOCH"; then 3487 SOURCE_DATE_EPOCH_SET_TRUE= 3488 SOURCE_DATE_EPOCH_SET_FALSE='#' 3489else 3490 SOURCE_DATE_EPOCH_SET_TRUE='#' 3491 SOURCE_DATE_EPOCH_SET_FALSE= 3492fi 3493 3494 3495# 3496# Save these details so that they can be used in pmix_info later 3497# 3498 3499 3500cat >>confdefs.h <<_ACEOF 3501#define PMIX_CONFIGURE_USER "$PMIX_CONFIGURE_USER" 3502_ACEOF 3503 3504 3505 3506cat >>confdefs.h <<_ACEOF 3507#define PMIX_CONFIGURE_HOST "$PMIX_CONFIGURE_HOST" 3508_ACEOF 3509 3510 3511 3512cat >>confdefs.h <<_ACEOF 3513#define PMIX_CONFIGURE_DATE "$PMIX_CONFIGURE_DATE" 3514_ACEOF 3515 3516 3517pmix_show_title "Configuring PMIx" 3518 3519# This must be before AM_INIT_AUTOMAKE 3520# Make sure we can run config.sub. 3521$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3522 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3523 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3525$as_echo_n "checking build system type... " >&6; } 3526if ${ac_cv_build+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 ac_build_alias=$build_alias 3530test "x$ac_build_alias" = x && 3531 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3532test "x$ac_build_alias" = x && 3533 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3534ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3536 3537fi 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3539$as_echo "$ac_cv_build" >&6; } 3540case $ac_cv_build in 3541*-*-*) ;; 3542*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3543esac 3544build=$ac_cv_build 3545ac_save_IFS=$IFS; IFS='-' 3546set x $ac_cv_build 3547shift 3548build_cpu=$1 3549build_vendor=$2 3550shift; shift 3551# Remember, the first character of IFS is used to create $*, 3552# except with old shells: 3553build_os=$* 3554IFS=$ac_save_IFS 3555case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3556 3557 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3559$as_echo_n "checking host system type... " >&6; } 3560if ${ac_cv_host+:} false; then : 3561 $as_echo_n "(cached) " >&6 3562else 3563 if test "x$host_alias" = x; then 3564 ac_cv_host=$ac_cv_build 3565else 3566 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3568fi 3569 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3572$as_echo "$ac_cv_host" >&6; } 3573case $ac_cv_host in 3574*-*-*) ;; 3575*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3576esac 3577host=$ac_cv_host 3578ac_save_IFS=$IFS; IFS='-' 3579set x $ac_cv_host 3580shift 3581host_cpu=$1 3582host_vendor=$2 3583shift; shift 3584# Remember, the first character of IFS is used to create $*, 3585# except with old shells: 3586host_os=$* 3587IFS=$ac_save_IFS 3588case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3589 3590 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3592$as_echo_n "checking target system type... " >&6; } 3593if ${ac_cv_target+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 if test "x$target_alias" = x; then 3597 ac_cv_target=$ac_cv_host 3598else 3599 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3601fi 3602 3603fi 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3605$as_echo "$ac_cv_target" >&6; } 3606case $ac_cv_target in 3607*-*-*) ;; 3608*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3609esac 3610target=$ac_cv_target 3611ac_save_IFS=$IFS; IFS='-' 3612set x $ac_cv_target 3613shift 3614target_cpu=$1 3615target_vendor=$2 3616shift; shift 3617# Remember, the first character of IFS is used to create $*, 3618# except with old shells: 3619target_os=$* 3620IFS=$ac_save_IFS 3621case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3622 3623 3624# The aliases save the names the user supplied, while $host etc. 3625# will get canonicalized. 3626test -n "$target_alias" && 3627 test "$program_prefix$program_suffix$program_transform_name" = \ 3628 NONENONEs,x,x, && 3629 program_prefix=${target_alias}- 3630 3631# Init automake 3632am__api_version='1.15' 3633 3634# Find a good install program. We prefer a C program (faster), 3635# so one script is as good as another. But avoid the broken or 3636# incompatible versions: 3637# SysV /etc/install, /usr/sbin/install 3638# SunOS /usr/etc/install 3639# IRIX /sbin/install 3640# AIX /bin/install 3641# AmigaOS /C/install, which installs bootblocks on floppy discs 3642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3643# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3645# OS/2's system install, which has a completely different semantic 3646# ./install, which can be erroneously created by make from ./install.sh. 3647# Reject install programs that cannot install multiple files. 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3649$as_echo_n "checking for a BSD-compatible install... " >&6; } 3650if test -z "$INSTALL"; then 3651if ${ac_cv_path_install+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3655for as_dir in $PATH 3656do 3657 IFS=$as_save_IFS 3658 test -z "$as_dir" && as_dir=. 3659 # Account for people who put trailing slashes in PATH elements. 3660case $as_dir/ in #(( 3661 ./ | .// | /[cC]/* | \ 3662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3663 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3664 /usr/ucb/* ) ;; 3665 *) 3666 # OSF1 and SCO ODT 3.0 have their own names for install. 3667 # Don't use installbsd from OSF since it installs stuff as root 3668 # by default. 3669 for ac_prog in ginstall scoinst install; do 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3672 if test $ac_prog = install && 3673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3674 # AIX install. It has an incompatible calling convention. 3675 : 3676 elif test $ac_prog = install && 3677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3678 # program-specific install script used by HP pwplus--don't use. 3679 : 3680 else 3681 rm -rf conftest.one conftest.two conftest.dir 3682 echo one > conftest.one 3683 echo two > conftest.two 3684 mkdir conftest.dir 3685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3686 test -s conftest.one && test -s conftest.two && 3687 test -s conftest.dir/conftest.one && 3688 test -s conftest.dir/conftest.two 3689 then 3690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3691 break 3 3692 fi 3693 fi 3694 fi 3695 done 3696 done 3697 ;; 3698esac 3699 3700 done 3701IFS=$as_save_IFS 3702 3703rm -rf conftest.one conftest.two conftest.dir 3704 3705fi 3706 if test "${ac_cv_path_install+set}" = set; then 3707 INSTALL=$ac_cv_path_install 3708 else 3709 # As a last resort, use the slow shell script. Don't cache a 3710 # value for INSTALL within a source directory, because that will 3711 # break other packages using the cache if that directory is 3712 # removed, or if the value is a relative name. 3713 INSTALL=$ac_install_sh 3714 fi 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3717$as_echo "$INSTALL" >&6; } 3718 3719# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3720# It thinks the first close brace ends the variable substitution. 3721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3722 3723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3724 3725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3726 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3728$as_echo_n "checking whether build environment is sane... " >&6; } 3729# Reject unsafe characters in $srcdir or the absolute working directory 3730# name. Accept space and tab only in the latter. 3731am_lf=' 3732' 3733case `pwd` in 3734 *[\\\"\#\$\&\'\`$am_lf]*) 3735 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3736esac 3737case $srcdir in 3738 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3739 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3740esac 3741 3742# Do 'set' in a subshell so we don't clobber the current shell's 3743# arguments. Must try -L first in case configure is actually a 3744# symlink; some systems play weird games with the mod time of symlinks 3745# (eg FreeBSD returns the mod time of the symlink's containing 3746# directory). 3747if ( 3748 am_has_slept=no 3749 for am_try in 1 2; do 3750 echo "timestamp, slept: $am_has_slept" > conftest.file 3751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3752 if test "$*" = "X"; then 3753 # -L didn't work. 3754 set X `ls -t "$srcdir/configure" conftest.file` 3755 fi 3756 if test "$*" != "X $srcdir/configure conftest.file" \ 3757 && test "$*" != "X conftest.file $srcdir/configure"; then 3758 3759 # If neither matched, then we have a broken ls. This can happen 3760 # if, for instance, CONFIG_SHELL is bash and it inherits a 3761 # broken ls alias from the environment. This has actually 3762 # happened. Such a system could not be considered "sane". 3763 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3764 alias in your environment" "$LINENO" 5 3765 fi 3766 if test "$2" = conftest.file || test $am_try -eq 2; then 3767 break 3768 fi 3769 # Just in case. 3770 sleep 1 3771 am_has_slept=yes 3772 done 3773 test "$2" = conftest.file 3774 ) 3775then 3776 # Ok. 3777 : 3778else 3779 as_fn_error $? "newly created file is older than distributed files! 3780Check your system clock" "$LINENO" 5 3781fi 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3783$as_echo "yes" >&6; } 3784# If we didn't sleep, we still need to ensure time stamps of config.status and 3785# generated files are strictly newer. 3786am_sleep_pid= 3787if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3788 ( sleep 1 ) & 3789 am_sleep_pid=$! 3790fi 3791 3792rm -f conftest.file 3793 3794test "$program_prefix" != NONE && 3795 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3796# Use a double $ so make ignores it. 3797test "$program_suffix" != NONE && 3798 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3799# Double any \ or $. 3800# By default was `s,x,x', remove it if useless. 3801ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3802program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3803 3804# Expand $ac_aux_dir to an absolute path. 3805am_aux_dir=`cd "$ac_aux_dir" && pwd` 3806 3807if test x"${MISSING+set}" != xset; then 3808 case $am_aux_dir in 3809 *\ * | *\ *) 3810 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3811 *) 3812 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3813 esac 3814fi 3815# Use eval to expand $SHELL 3816if eval "$MISSING --is-lightweight"; then 3817 am_missing_run="$MISSING " 3818else 3819 am_missing_run= 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3821$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3822fi 3823 3824if test x"${install_sh+set}" != xset; then 3825 case $am_aux_dir in 3826 *\ * | *\ *) 3827 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3828 *) 3829 install_sh="\${SHELL} $am_aux_dir/install-sh" 3830 esac 3831fi 3832 3833# Installed binaries are usually stripped using 'strip' when the user 3834# run "make install-strip". However 'strip' might not be the right 3835# tool to use in cross-compilation environments, therefore Automake 3836# will honor the 'STRIP' environment variable to overrule this program. 3837if test "$cross_compiling" != no; then 3838 if test -n "$ac_tool_prefix"; then 3839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3840set dummy ${ac_tool_prefix}strip; ac_word=$2 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3842$as_echo_n "checking for $ac_word... " >&6; } 3843if ${ac_cv_prog_STRIP+:} false; then : 3844 $as_echo_n "(cached) " >&6 3845else 3846 if test -n "$STRIP"; then 3847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3848else 3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3850for as_dir in $PATH 3851do 3852 IFS=$as_save_IFS 3853 test -z "$as_dir" && as_dir=. 3854 for ac_exec_ext in '' $ac_executable_extensions; do 3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3856 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3858 break 2 3859 fi 3860done 3861 done 3862IFS=$as_save_IFS 3863 3864fi 3865fi 3866STRIP=$ac_cv_prog_STRIP 3867if test -n "$STRIP"; then 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3869$as_echo "$STRIP" >&6; } 3870else 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3872$as_echo "no" >&6; } 3873fi 3874 3875 3876fi 3877if test -z "$ac_cv_prog_STRIP"; then 3878 ac_ct_STRIP=$STRIP 3879 # Extract the first word of "strip", so it can be a program name with args. 3880set dummy strip; ac_word=$2 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882$as_echo_n "checking for $ac_word... " >&6; } 3883if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if test -n "$ac_ct_STRIP"; then 3887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3888else 3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3890for as_dir in $PATH 3891do 3892 IFS=$as_save_IFS 3893 test -z "$as_dir" && as_dir=. 3894 for ac_exec_ext in '' $ac_executable_extensions; do 3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3896 ac_cv_prog_ac_ct_STRIP="strip" 3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3898 break 2 3899 fi 3900done 3901 done 3902IFS=$as_save_IFS 3903 3904fi 3905fi 3906ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3907if test -n "$ac_ct_STRIP"; then 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3909$as_echo "$ac_ct_STRIP" >&6; } 3910else 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3912$as_echo "no" >&6; } 3913fi 3914 3915 if test "x$ac_ct_STRIP" = x; then 3916 STRIP=":" 3917 else 3918 case $cross_compiling:$ac_tool_warned in 3919yes:) 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3922ac_tool_warned=yes ;; 3923esac 3924 STRIP=$ac_ct_STRIP 3925 fi 3926else 3927 STRIP="$ac_cv_prog_STRIP" 3928fi 3929 3930fi 3931INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3932 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3934$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3935if test -z "$MKDIR_P"; then 3936 if ${ac_cv_path_mkdir+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938else 3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3940for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3941do 3942 IFS=$as_save_IFS 3943 test -z "$as_dir" && as_dir=. 3944 for ac_prog in mkdir gmkdir; do 3945 for ac_exec_ext in '' $ac_executable_extensions; do 3946 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3947 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3948 'mkdir (GNU coreutils) '* | \ 3949 'mkdir (coreutils) '* | \ 3950 'mkdir (fileutils) '4.1*) 3951 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3952 break 3;; 3953 esac 3954 done 3955 done 3956 done 3957IFS=$as_save_IFS 3958 3959fi 3960 3961 test -d ./--version && rmdir ./--version 3962 if test "${ac_cv_path_mkdir+set}" = set; then 3963 MKDIR_P="$ac_cv_path_mkdir -p" 3964 else 3965 # As a last resort, use the slow shell script. Don't cache a 3966 # value for MKDIR_P within a source directory, because that will 3967 # break other packages using the cache if that directory is 3968 # removed, or if the value is a relative name. 3969 MKDIR_P="$ac_install_sh -d" 3970 fi 3971fi 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3973$as_echo "$MKDIR_P" >&6; } 3974 3975for ac_prog in gawk mawk nawk awk 3976do 3977 # Extract the first word of "$ac_prog", so it can be a program name with args. 3978set dummy $ac_prog; ac_word=$2 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3980$as_echo_n "checking for $ac_word... " >&6; } 3981if ${ac_cv_prog_AWK+:} false; then : 3982 $as_echo_n "(cached) " >&6 3983else 3984 if test -n "$AWK"; then 3985 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3986else 3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3988for as_dir in $PATH 3989do 3990 IFS=$as_save_IFS 3991 test -z "$as_dir" && as_dir=. 3992 for ac_exec_ext in '' $ac_executable_extensions; do 3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3994 ac_cv_prog_AWK="$ac_prog" 3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3996 break 2 3997 fi 3998done 3999 done 4000IFS=$as_save_IFS 4001 4002fi 4003fi 4004AWK=$ac_cv_prog_AWK 4005if test -n "$AWK"; then 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4007$as_echo "$AWK" >&6; } 4008else 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4010$as_echo "no" >&6; } 4011fi 4012 4013 4014 test -n "$AWK" && break 4015done 4016 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4018$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4019set x ${MAKE-make} 4020ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4021if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 cat >conftest.make <<\_ACEOF 4025SHELL = /bin/sh 4026all: 4027 @echo '@@@%%%=$(MAKE)=@@@%%%' 4028_ACEOF 4029# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4030case `${MAKE-make} -f conftest.make 2>/dev/null` in 4031 *@@@%%%=?*=@@@%%%*) 4032 eval ac_cv_prog_make_${ac_make}_set=yes;; 4033 *) 4034 eval ac_cv_prog_make_${ac_make}_set=no;; 4035esac 4036rm -f conftest.make 4037fi 4038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4040$as_echo "yes" >&6; } 4041 SET_MAKE= 4042else 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044$as_echo "no" >&6; } 4045 SET_MAKE="MAKE=${MAKE-make}" 4046fi 4047 4048rm -rf .tst 2>/dev/null 4049mkdir .tst 2>/dev/null 4050if test -d .tst; then 4051 am__leading_dot=. 4052else 4053 am__leading_dot=_ 4054fi 4055rmdir .tst 2>/dev/null 4056 4057# Check whether --enable-silent-rules was given. 4058if test "${enable_silent_rules+set}" = set; then : 4059 enableval=$enable_silent_rules; 4060fi 4061 4062case $enable_silent_rules in # ((( 4063 yes) AM_DEFAULT_VERBOSITY=0;; 4064 no) AM_DEFAULT_VERBOSITY=1;; 4065 *) AM_DEFAULT_VERBOSITY=1;; 4066esac 4067am_make=${MAKE-make} 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4069$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4070if ${am_cv_make_support_nested_variables+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 if $as_echo 'TRUE=$(BAR$(V)) 4074BAR0=false 4075BAR1=true 4076V=1 4077am__doit: 4078 @$(TRUE) 4079.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4080 am_cv_make_support_nested_variables=yes 4081else 4082 am_cv_make_support_nested_variables=no 4083fi 4084fi 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4086$as_echo "$am_cv_make_support_nested_variables" >&6; } 4087if test $am_cv_make_support_nested_variables = yes; then 4088 AM_V='$(V)' 4089 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4090else 4091 AM_V=$AM_DEFAULT_VERBOSITY 4092 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4093fi 4094AM_BACKSLASH='\' 4095 4096if test "`cd $srcdir && pwd`" != "`pwd`"; then 4097 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4098 # is not polluted with repeated "-I." 4099 am__isrc=' -I$(srcdir)' 4100 # test to see if srcdir already configured 4101 if test -f $srcdir/config.status; then 4102 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4103 fi 4104fi 4105 4106# test whether we have cygpath 4107if test -z "$CYGPATH_W"; then 4108 if (cygpath --version) >/dev/null 2>/dev/null; then 4109 CYGPATH_W='cygpath -w' 4110 else 4111 CYGPATH_W=echo 4112 fi 4113fi 4114 4115 4116# Define the identity of the package. 4117 PACKAGE='pmix' 4118 VERSION='3.2.3' 4119 4120 4121# Some tools Automake needs. 4122 4123ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4124 4125 4126AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4127 4128 4129AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4130 4131 4132AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4133 4134 4135MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4136 4137# For better backward compatibility. To be removed once Automake 1.9.x 4138# dies out for good. For more background, see: 4139# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4140# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4141mkdir_p='$(MKDIR_P)' 4142 4143# We need awk for the "check" target (and possibly the TAP driver). The 4144# system "awk" is bad on some platforms. 4145# Always define AMTAR for backward compatibility. Yes, it's still used 4146# in the wild :-( We should find a proper way to deprecate it ... 4147AMTAR='$${TAR-tar}' 4148 4149 4150# We'll loop over all known methods to create a tar archive until one works. 4151_am_tools='gnutar pax cpio none' 4152 4153am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4154 4155 4156 4157 4158 4159 4160# POSIX will say in a future version that running "rm -f" with no argument 4161# is OK; and we want to be able to make that assumption in our Makefile 4162# recipes. So use an aggressive probe to check that the usage we want is 4163# actually supported "in the wild" to an acceptable degree. 4164# See automake bug#10828. 4165# To make any issue more visible, cause the running configure to be aborted 4166# by default if the 'rm' program in use doesn't match our expectations; the 4167# user can still override this though. 4168if rm -f && rm -fr && rm -rf; then : OK; else 4169 cat >&2 <<'END' 4170Oops! 4171 4172Your 'rm' program seems unable to run without file operands specified 4173on the command line, even when the '-f' option is present. This is contrary 4174to the behaviour of most rm programs out there, and not conforming with 4175the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4176 4177Please tell bug-automake@gnu.org about your system, including the value 4178of your $PATH and any error possibly output before this message. This 4179can help us improve future automake versions. 4180 4181END 4182 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4183 echo 'Configuration will proceed anyway, since you have set the' >&2 4184 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4185 echo >&2 4186 else 4187 cat >&2 <<'END' 4188Aborting the configuration process, to ensure you take notice of the issue. 4189 4190You can download and install GNU coreutils to get an 'rm' implementation 4191that behaves properly: <http://www.gnu.org/software/coreutils/>. 4192 4193If you want to complete the configuration process using your problematic 4194'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4195to "yes", and re-run configure. 4196 4197END 4198 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4199 fi 4200fi 4201 4202 4203# SILENT_RULES is new in AM 1.11, but we require 1.13.4 or higher via 4204# autogen. Limited testing shows that calling SILENT_RULES directly 4205# works in more cases than adding "silent-rules" to INIT_AUTOMAKE 4206# (even though they're supposed to be identical). Shrug. 4207# Check whether --enable-silent-rules was given. 4208if test "${enable_silent_rules+set}" = set; then : 4209 enableval=$enable_silent_rules; 4210fi 4211 4212case $enable_silent_rules in # ((( 4213 yes) AM_DEFAULT_VERBOSITY=0;; 4214 no) AM_DEFAULT_VERBOSITY=1;; 4215 *) AM_DEFAULT_VERBOSITY=0;; 4216esac 4217am_make=${MAKE-make} 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4219$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4220if ${am_cv_make_support_nested_variables+:} false; then : 4221 $as_echo_n "(cached) " >&6 4222else 4223 if $as_echo 'TRUE=$(BAR$(V)) 4224BAR0=false 4225BAR1=true 4226V=1 4227am__doit: 4228 @$(TRUE) 4229.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4230 am_cv_make_support_nested_variables=yes 4231else 4232 am_cv_make_support_nested_variables=no 4233fi 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4236$as_echo "$am_cv_make_support_nested_variables" >&6; } 4237if test $am_cv_make_support_nested_variables = yes; then 4238 AM_V='$(V)' 4239 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4240else 4241 AM_V=$AM_DEFAULT_VERBOSITY 4242 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4243fi 4244AM_BACKSLASH='\' 4245 4246 4247# set the language 4248ac_ext=c 4249ac_cpp='$CPP $CPPFLAGS' 4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4252ac_compiler_gnu=$ac_cv_c_compiler_gnu 4253 4254 4255# AC_USE_SYSTEM_EXTENSIONS will modify CFLAGS if nothing was in there 4256# beforehand. We don't want that. So if there was nothing in 4257# CFLAGS, put nothing back in there. 4258 4259 4260 # Is the private index set? If not, set it. 4261 if test "x$pmix_scope_index" = "x"; then 4262 pmix_scope_index=1 4263 fi 4264 4265 # First, check to see if any of these variables are already set. 4266 # This is a simple sanity check to ensure we're not already 4267 # overwriting pre-existing variables (that have a non-empty 4268 # value). It's not a perfect check, but at least it's something. 4269 for pmix_var in CFLAGS_save; do 4270 pmix_str="pmix_str=\"\$$pmix_var\"" 4271 eval $pmix_str 4272 4273 if test "x$pmix_str" != "x"; then 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 4275$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 4277$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 4279$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 4281$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 4282 as_fn_error $? "Cannot continue" "$LINENO" 5 4283 fi 4284 done 4285 4286 # Ok, we passed the simple sanity check. Save all these names so 4287 # that we can unset them at the end of the scope. 4288 pmix_str="pmix_scope_$pmix_scope_index=\"CFLAGS_save\"" 4289 eval $pmix_str 4290 unset pmix_str 4291 4292 env | grep pmix_scope 4293 pmix_scope_index=`expr $pmix_scope_index + 1` 4294 4295CFLAGS_save=$CFLAGS 4296DEPDIR="${am__leading_dot}deps" 4297 4298ac_config_commands="$ac_config_commands depfiles" 4299 4300 4301am_make=${MAKE-make} 4302cat > confinc << 'END' 4303am__doit: 4304 @echo this is the am__doit target 4305.PHONY: am__doit 4306END 4307# If we don't find an include directive, just comment out the code. 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4309$as_echo_n "checking for style of include used by $am_make... " >&6; } 4310am__include="#" 4311am__quote= 4312_am_result=none 4313# First try GNU make style include. 4314echo "include confinc" > confmf 4315# Ignore all kinds of additional output from 'make'. 4316case `$am_make -s -f confmf 2> /dev/null` in #( 4317*the\ am__doit\ target*) 4318 am__include=include 4319 am__quote= 4320 _am_result=GNU 4321 ;; 4322esac 4323# Now try BSD make style include. 4324if test "$am__include" = "#"; then 4325 echo '.include "confinc"' > confmf 4326 case `$am_make -s -f confmf 2> /dev/null` in #( 4327 *the\ am__doit\ target*) 4328 am__include=.include 4329 am__quote="\"" 4330 _am_result=BSD 4331 ;; 4332 esac 4333fi 4334 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4337$as_echo "$_am_result" >&6; } 4338rm -f confinc confmf 4339 4340# Check whether --enable-dependency-tracking was given. 4341if test "${enable_dependency_tracking+set}" = set; then : 4342 enableval=$enable_dependency_tracking; 4343fi 4344 4345if test "x$enable_dependency_tracking" != xno; then 4346 am_depcomp="$ac_aux_dir/depcomp" 4347 AMDEPBACKSLASH='\' 4348 am__nodep='_no' 4349fi 4350 if test "x$enable_dependency_tracking" != xno; then 4351 AMDEP_TRUE= 4352 AMDEP_FALSE='#' 4353else 4354 AMDEP_TRUE='#' 4355 AMDEP_FALSE= 4356fi 4357 4358 4359ac_ext=c 4360ac_cpp='$CPP $CPPFLAGS' 4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4363ac_compiler_gnu=$ac_cv_c_compiler_gnu 4364if test -n "$ac_tool_prefix"; then 4365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4366set dummy ${ac_tool_prefix}gcc; ac_word=$2 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4368$as_echo_n "checking for $ac_word... " >&6; } 4369if ${ac_cv_prog_CC+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if test -n "$CC"; then 4373 ac_cv_prog_CC="$CC" # Let the user override the test. 4374else 4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376for as_dir in $PATH 4377do 4378 IFS=$as_save_IFS 4379 test -z "$as_dir" && as_dir=. 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4382 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4384 break 2 4385 fi 4386done 4387 done 4388IFS=$as_save_IFS 4389 4390fi 4391fi 4392CC=$ac_cv_prog_CC 4393if test -n "$CC"; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4395$as_echo "$CC" >&6; } 4396else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4398$as_echo "no" >&6; } 4399fi 4400 4401 4402fi 4403if test -z "$ac_cv_prog_CC"; then 4404 ac_ct_CC=$CC 4405 # Extract the first word of "gcc", so it can be a program name with args. 4406set dummy gcc; ac_word=$2 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4408$as_echo_n "checking for $ac_word... " >&6; } 4409if ${ac_cv_prog_ac_ct_CC+:} false; then : 4410 $as_echo_n "(cached) " >&6 4411else 4412 if test -n "$ac_ct_CC"; then 4413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4414else 4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4416for as_dir in $PATH 4417do 4418 IFS=$as_save_IFS 4419 test -z "$as_dir" && as_dir=. 4420 for ac_exec_ext in '' $ac_executable_extensions; do 4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4422 ac_cv_prog_ac_ct_CC="gcc" 4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4424 break 2 4425 fi 4426done 4427 done 4428IFS=$as_save_IFS 4429 4430fi 4431fi 4432ac_ct_CC=$ac_cv_prog_ac_ct_CC 4433if test -n "$ac_ct_CC"; then 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4435$as_echo "$ac_ct_CC" >&6; } 4436else 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4438$as_echo "no" >&6; } 4439fi 4440 4441 if test "x$ac_ct_CC" = x; then 4442 CC="" 4443 else 4444 case $cross_compiling:$ac_tool_warned in 4445yes:) 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4448ac_tool_warned=yes ;; 4449esac 4450 CC=$ac_ct_CC 4451 fi 4452else 4453 CC="$ac_cv_prog_CC" 4454fi 4455 4456if test -z "$CC"; then 4457 if test -n "$ac_tool_prefix"; then 4458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4459set dummy ${ac_tool_prefix}cc; ac_word=$2 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4461$as_echo_n "checking for $ac_word... " >&6; } 4462if ${ac_cv_prog_CC+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -n "$CC"; then 4466 ac_cv_prog_CC="$CC" # Let the user override the test. 4467else 4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4475 ac_cv_prog_CC="${ac_tool_prefix}cc" 4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479done 4480 done 4481IFS=$as_save_IFS 4482 4483fi 4484fi 4485CC=$ac_cv_prog_CC 4486if test -n "$CC"; then 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4488$as_echo "$CC" >&6; } 4489else 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4491$as_echo "no" >&6; } 4492fi 4493 4494 4495 fi 4496fi 4497if test -z "$CC"; then 4498 # Extract the first word of "cc", so it can be a program name with args. 4499set dummy cc; ac_word=$2 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4501$as_echo_n "checking for $ac_word... " >&6; } 4502if ${ac_cv_prog_CC+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 if test -n "$CC"; then 4506 ac_cv_prog_CC="$CC" # Let the user override the test. 4507else 4508 ac_prog_rejected=no 4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4510for as_dir in $PATH 4511do 4512 IFS=$as_save_IFS 4513 test -z "$as_dir" && as_dir=. 4514 for ac_exec_ext in '' $ac_executable_extensions; do 4515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4517 ac_prog_rejected=yes 4518 continue 4519 fi 4520 ac_cv_prog_CC="cc" 4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4522 break 2 4523 fi 4524done 4525 done 4526IFS=$as_save_IFS 4527 4528if test $ac_prog_rejected = yes; then 4529 # We found a bogon in the path, so make sure we never use it. 4530 set dummy $ac_cv_prog_CC 4531 shift 4532 if test $# != 0; then 4533 # We chose a different compiler from the bogus one. 4534 # However, it has the same basename, so the bogon will be chosen 4535 # first if we set CC to just the basename; use the full file name. 4536 shift 4537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4538 fi 4539fi 4540fi 4541fi 4542CC=$ac_cv_prog_CC 4543if test -n "$CC"; then 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4545$as_echo "$CC" >&6; } 4546else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4548$as_echo "no" >&6; } 4549fi 4550 4551 4552fi 4553if test -z "$CC"; then 4554 if test -n "$ac_tool_prefix"; then 4555 for ac_prog in cl.exe 4556 do 4557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4558set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4560$as_echo_n "checking for $ac_word... " >&6; } 4561if ${ac_cv_prog_CC+:} false; then : 4562 $as_echo_n "(cached) " >&6 4563else 4564 if test -n "$CC"; then 4565 ac_cv_prog_CC="$CC" # Let the user override the test. 4566else 4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4568for as_dir in $PATH 4569do 4570 IFS=$as_save_IFS 4571 test -z "$as_dir" && as_dir=. 4572 for ac_exec_ext in '' $ac_executable_extensions; do 4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4576 break 2 4577 fi 4578done 4579 done 4580IFS=$as_save_IFS 4581 4582fi 4583fi 4584CC=$ac_cv_prog_CC 4585if test -n "$CC"; then 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4587$as_echo "$CC" >&6; } 4588else 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590$as_echo "no" >&6; } 4591fi 4592 4593 4594 test -n "$CC" && break 4595 done 4596fi 4597if test -z "$CC"; then 4598 ac_ct_CC=$CC 4599 for ac_prog in cl.exe 4600do 4601 # Extract the first word of "$ac_prog", so it can be a program name with args. 4602set dummy $ac_prog; ac_word=$2 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4604$as_echo_n "checking for $ac_word... " >&6; } 4605if ${ac_cv_prog_ac_ct_CC+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607else 4608 if test -n "$ac_ct_CC"; then 4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4610else 4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4612for as_dir in $PATH 4613do 4614 IFS=$as_save_IFS 4615 test -z "$as_dir" && as_dir=. 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4618 ac_cv_prog_ac_ct_CC="$ac_prog" 4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622done 4623 done 4624IFS=$as_save_IFS 4625 4626fi 4627fi 4628ac_ct_CC=$ac_cv_prog_ac_ct_CC 4629if test -n "$ac_ct_CC"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4631$as_echo "$ac_ct_CC" >&6; } 4632else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634$as_echo "no" >&6; } 4635fi 4636 4637 4638 test -n "$ac_ct_CC" && break 4639done 4640 4641 if test "x$ac_ct_CC" = x; then 4642 CC="" 4643 else 4644 case $cross_compiling:$ac_tool_warned in 4645yes:) 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4648ac_tool_warned=yes ;; 4649esac 4650 CC=$ac_ct_CC 4651 fi 4652fi 4653 4654fi 4655 4656 4657test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4659as_fn_error $? "no acceptable C compiler found in \$PATH 4660See \`config.log' for more details" "$LINENO" 5; } 4661 4662# Provide some information about the compiler. 4663$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4664set X $ac_compile 4665ac_compiler=$2 4666for ac_option in --version -v -V -qversion; do 4667 { { ac_try="$ac_compiler $ac_option >&5" 4668case "(($ac_try" in 4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4670 *) ac_try_echo=$ac_try;; 4671esac 4672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4673$as_echo "$ac_try_echo"; } >&5 4674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4675 ac_status=$? 4676 if test -s conftest.err; then 4677 sed '10a\ 4678... rest of stderr output deleted ... 4679 10q' conftest.err >conftest.er1 4680 cat conftest.er1 >&5 4681 fi 4682 rm -f conftest.er1 conftest.err 4683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4684 test $ac_status = 0; } 4685done 4686 4687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688/* end confdefs.h. */ 4689 4690int 4691main () 4692{ 4693 4694 ; 4695 return 0; 4696} 4697_ACEOF 4698ac_clean_files_save=$ac_clean_files 4699ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4700# Try to create an executable without -o first, disregard a.out. 4701# It will help us diagnose broken compilers, and finding out an intuition 4702# of exeext. 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4704$as_echo_n "checking whether the C compiler works... " >&6; } 4705ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4706 4707# The possible output files: 4708ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4709 4710ac_rmfiles= 4711for ac_file in $ac_files 4712do 4713 case $ac_file in 4714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4715 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4716 esac 4717done 4718rm -f $ac_rmfiles 4719 4720if { { ac_try="$ac_link_default" 4721case "(($ac_try" in 4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4723 *) ac_try_echo=$ac_try;; 4724esac 4725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4726$as_echo "$ac_try_echo"; } >&5 4727 (eval "$ac_link_default") 2>&5 4728 ac_status=$? 4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4730 test $ac_status = 0; }; then : 4731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4732# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4733# in a Makefile. We should not override ac_cv_exeext if it was cached, 4734# so that the user can short-circuit this test for compilers unknown to 4735# Autoconf. 4736for ac_file in $ac_files '' 4737do 4738 test -f "$ac_file" || continue 4739 case $ac_file in 4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4741 ;; 4742 [ab].out ) 4743 # We found the default executable, but exeext='' is most 4744 # certainly right. 4745 break;; 4746 *.* ) 4747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4748 then :; else 4749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4750 fi 4751 # We set ac_cv_exeext here because the later test for it is not 4752 # safe: cross compilers may not add the suffix if given an `-o' 4753 # argument, so we may need to know it at that point already. 4754 # Even if this section looks crufty: it has the advantage of 4755 # actually working. 4756 break;; 4757 * ) 4758 break;; 4759 esac 4760done 4761test "$ac_cv_exeext" = no && ac_cv_exeext= 4762 4763else 4764 ac_file='' 4765fi 4766if test -z "$ac_file"; then : 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4768$as_echo "no" >&6; } 4769$as_echo "$as_me: failed program was:" >&5 4770sed 's/^/| /' conftest.$ac_ext >&5 4771 4772{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4774as_fn_error 77 "C compiler cannot create executables 4775See \`config.log' for more details" "$LINENO" 5; } 4776else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4778$as_echo "yes" >&6; } 4779fi 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4781$as_echo_n "checking for C compiler default output file name... " >&6; } 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4783$as_echo "$ac_file" >&6; } 4784ac_exeext=$ac_cv_exeext 4785 4786rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4787ac_clean_files=$ac_clean_files_save 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4789$as_echo_n "checking for suffix of executables... " >&6; } 4790if { { ac_try="$ac_link" 4791case "(($ac_try" in 4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4793 *) ac_try_echo=$ac_try;; 4794esac 4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4796$as_echo "$ac_try_echo"; } >&5 4797 (eval "$ac_link") 2>&5 4798 ac_status=$? 4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4800 test $ac_status = 0; }; then : 4801 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4802# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4803# work properly (i.e., refer to `conftest.exe'), while it won't with 4804# `rm'. 4805for ac_file in conftest.exe conftest conftest.*; do 4806 test -f "$ac_file" || continue 4807 case $ac_file in 4808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4810 break;; 4811 * ) break;; 4812 esac 4813done 4814else 4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4817as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4818See \`config.log' for more details" "$LINENO" 5; } 4819fi 4820rm -f conftest conftest$ac_cv_exeext 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4822$as_echo "$ac_cv_exeext" >&6; } 4823 4824rm -f conftest.$ac_ext 4825EXEEXT=$ac_cv_exeext 4826ac_exeext=$EXEEXT 4827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4828/* end confdefs.h. */ 4829#include <stdio.h> 4830int 4831main () 4832{ 4833FILE *f = fopen ("conftest.out", "w"); 4834 return ferror (f) || fclose (f) != 0; 4835 4836 ; 4837 return 0; 4838} 4839_ACEOF 4840ac_clean_files="$ac_clean_files conftest.out" 4841# Check that the compiler produces executables we can run. If not, either 4842# the compiler is broken, or we cross compile. 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4844$as_echo_n "checking whether we are cross compiling... " >&6; } 4845if test "$cross_compiling" != yes; then 4846 { { ac_try="$ac_link" 4847case "(($ac_try" in 4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4849 *) ac_try_echo=$ac_try;; 4850esac 4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4852$as_echo "$ac_try_echo"; } >&5 4853 (eval "$ac_link") 2>&5 4854 ac_status=$? 4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4856 test $ac_status = 0; } 4857 if { ac_try='./conftest$ac_cv_exeext' 4858 { { case "(($ac_try" in 4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4860 *) ac_try_echo=$ac_try;; 4861esac 4862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4863$as_echo "$ac_try_echo"; } >&5 4864 (eval "$ac_try") 2>&5 4865 ac_status=$? 4866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4867 test $ac_status = 0; }; }; then 4868 cross_compiling=no 4869 else 4870 if test "$cross_compiling" = maybe; then 4871 cross_compiling=yes 4872 else 4873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4875as_fn_error $? "cannot run C compiled programs. 4876If you meant to cross compile, use \`--host'. 4877See \`config.log' for more details" "$LINENO" 5; } 4878 fi 4879 fi 4880fi 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4882$as_echo "$cross_compiling" >&6; } 4883 4884rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4885ac_clean_files=$ac_clean_files_save 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4887$as_echo_n "checking for suffix of object files... " >&6; } 4888if ${ac_cv_objext+:} false; then : 4889 $as_echo_n "(cached) " >&6 4890else 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893 4894int 4895main () 4896{ 4897 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902rm -f conftest.o conftest.obj 4903if { { ac_try="$ac_compile" 4904case "(($ac_try" in 4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4906 *) ac_try_echo=$ac_try;; 4907esac 4908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4909$as_echo "$ac_try_echo"; } >&5 4910 (eval "$ac_compile") 2>&5 4911 ac_status=$? 4912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4913 test $ac_status = 0; }; then : 4914 for ac_file in conftest.o conftest.obj conftest.*; do 4915 test -f "$ac_file" || continue; 4916 case $ac_file in 4917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4919 break;; 4920 esac 4921done 4922else 4923 $as_echo "$as_me: failed program was:" >&5 4924sed 's/^/| /' conftest.$ac_ext >&5 4925 4926{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4928as_fn_error $? "cannot compute suffix of object files: cannot compile 4929See \`config.log' for more details" "$LINENO" 5; } 4930fi 4931rm -f conftest.$ac_cv_objext conftest.$ac_ext 4932fi 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4934$as_echo "$ac_cv_objext" >&6; } 4935OBJEXT=$ac_cv_objext 4936ac_objext=$OBJEXT 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4938$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4939if ${ac_cv_c_compiler_gnu+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944 4945int 4946main () 4947{ 4948#ifndef __GNUC__ 4949 choke me 4950#endif 4951 4952 ; 4953 return 0; 4954} 4955_ACEOF 4956if ac_fn_c_try_compile "$LINENO"; then : 4957 ac_compiler_gnu=yes 4958else 4959 ac_compiler_gnu=no 4960fi 4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4962ac_cv_c_compiler_gnu=$ac_compiler_gnu 4963 4964fi 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4966$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4967if test $ac_compiler_gnu = yes; then 4968 GCC=yes 4969else 4970 GCC= 4971fi 4972ac_test_CFLAGS=${CFLAGS+set} 4973ac_save_CFLAGS=$CFLAGS 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4975$as_echo_n "checking whether $CC accepts -g... " >&6; } 4976if ${ac_cv_prog_cc_g+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 ac_save_c_werror_flag=$ac_c_werror_flag 4980 ac_c_werror_flag=yes 4981 ac_cv_prog_cc_g=no 4982 CFLAGS="-g" 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985 4986int 4987main () 4988{ 4989 4990 ; 4991 return 0; 4992} 4993_ACEOF 4994if ac_fn_c_try_compile "$LINENO"; then : 4995 ac_cv_prog_cc_g=yes 4996else 4997 CFLAGS="" 4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999/* end confdefs.h. */ 5000 5001int 5002main () 5003{ 5004 5005 ; 5006 return 0; 5007} 5008_ACEOF 5009if ac_fn_c_try_compile "$LINENO"; then : 5010 5011else 5012 ac_c_werror_flag=$ac_save_c_werror_flag 5013 CFLAGS="-g" 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5015/* end confdefs.h. */ 5016 5017int 5018main () 5019{ 5020 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025if ac_fn_c_try_compile "$LINENO"; then : 5026 ac_cv_prog_cc_g=yes 5027fi 5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5029fi 5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033 ac_c_werror_flag=$ac_save_c_werror_flag 5034fi 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5036$as_echo "$ac_cv_prog_cc_g" >&6; } 5037if test "$ac_test_CFLAGS" = set; then 5038 CFLAGS=$ac_save_CFLAGS 5039elif test $ac_cv_prog_cc_g = yes; then 5040 if test "$GCC" = yes; then 5041 CFLAGS="-g -O2" 5042 else 5043 CFLAGS="-g" 5044 fi 5045else 5046 if test "$GCC" = yes; then 5047 CFLAGS="-O2" 5048 else 5049 CFLAGS= 5050 fi 5051fi 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5053$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5054if ${ac_cv_prog_cc_c89+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 ac_cv_prog_cc_c89=no 5058ac_save_CC=$CC 5059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061#include <stdarg.h> 5062#include <stdio.h> 5063struct stat; 5064/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5065struct buf { int x; }; 5066FILE * (*rcsopen) (struct buf *, struct stat *, int); 5067static char *e (p, i) 5068 char **p; 5069 int i; 5070{ 5071 return p[i]; 5072} 5073static char *f (char * (*g) (char **, int), char **p, ...) 5074{ 5075 char *s; 5076 va_list v; 5077 va_start (v,p); 5078 s = g (p, va_arg (v,int)); 5079 va_end (v); 5080 return s; 5081} 5082 5083/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5084 function prototypes and stuff, but not '\xHH' hex character constants. 5085 These don't provoke an error unfortunately, instead are silently treated 5086 as 'x'. The following induces an error, until -std is added to get 5087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5088 array size at least. It's necessary to write '\x00'==0 to get something 5089 that's true only with -std. */ 5090int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5091 5092/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5093 inside strings and character constants. */ 5094#define FOO(x) 'x' 5095int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5096 5097int test (int i, double x); 5098struct s1 {int (*f) (int a);}; 5099struct s2 {int (*f) (double a);}; 5100int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5101int argc; 5102char **argv; 5103int 5104main () 5105{ 5106return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5113do 5114 CC="$ac_save_CC $ac_arg" 5115 if ac_fn_c_try_compile "$LINENO"; then : 5116 ac_cv_prog_cc_c89=$ac_arg 5117fi 5118rm -f core conftest.err conftest.$ac_objext 5119 test "x$ac_cv_prog_cc_c89" != "xno" && break 5120done 5121rm -f conftest.$ac_ext 5122CC=$ac_save_CC 5123 5124fi 5125# AC_CACHE_VAL 5126case "x$ac_cv_prog_cc_c89" in 5127 x) 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5129$as_echo "none needed" >&6; } ;; 5130 xno) 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5132$as_echo "unsupported" >&6; } ;; 5133 *) 5134 CC="$CC $ac_cv_prog_cc_c89" 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5136$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5137esac 5138if test "x$ac_cv_prog_cc_c89" != xno; then : 5139 5140fi 5141 5142ac_ext=c 5143ac_cpp='$CPP $CPPFLAGS' 5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5146ac_compiler_gnu=$ac_cv_c_compiler_gnu 5147 5148ac_ext=c 5149ac_cpp='$CPP $CPPFLAGS' 5150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5152ac_compiler_gnu=$ac_cv_c_compiler_gnu 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5154$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5155if ${am_cv_prog_cc_c_o+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160 5161int 5162main () 5163{ 5164 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169 # Make sure it works both with $CC and with simple cc. 5170 # Following AC_PROG_CC_C_O, we do the test twice because some 5171 # compilers refuse to overwrite an existing .o file with -o, 5172 # though they will create one. 5173 am_cv_prog_cc_c_o=yes 5174 for am_i in 1 2; do 5175 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5176 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5177 ac_status=$? 5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5179 (exit $ac_status); } \ 5180 && test -f conftest2.$ac_objext; then 5181 : OK 5182 else 5183 am_cv_prog_cc_c_o=no 5184 break 5185 fi 5186 done 5187 rm -f core conftest* 5188 unset am_i 5189fi 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5191$as_echo "$am_cv_prog_cc_c_o" >&6; } 5192if test "$am_cv_prog_cc_c_o" != yes; then 5193 # Losing compiler, so override with the script. 5194 # FIXME: It is wrong to rewrite CC. 5195 # But if we don't then we get into trouble of one sort or another. 5196 # A longer-term fix would be to have automake use am__CC in this case, 5197 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5198 CC="$am_aux_dir/compile $CC" 5199fi 5200ac_ext=c 5201ac_cpp='$CPP $CPPFLAGS' 5202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5204ac_compiler_gnu=$ac_cv_c_compiler_gnu 5205 5206 5207depcc="$CC" am_compiler_list= 5208 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5210$as_echo_n "checking dependency style of $depcc... " >&6; } 5211if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5215 # We make a subdir and do the tests there. Otherwise we can end up 5216 # making bogus files that we don't know about and never remove. For 5217 # instance it was reported that on HP-UX the gcc test will end up 5218 # making a dummy file named 'D' -- because '-MD' means "put the output 5219 # in D". 5220 rm -rf conftest.dir 5221 mkdir conftest.dir 5222 # Copy depcomp to subdir because otherwise we won't find it if we're 5223 # using a relative directory. 5224 cp "$am_depcomp" conftest.dir 5225 cd conftest.dir 5226 # We will build objects and dependencies in a subdirectory because 5227 # it helps to detect inapplicable dependency modes. For instance 5228 # both Tru64's cc and ICC support -MD to output dependencies as a 5229 # side effect of compilation, but ICC will put the dependencies in 5230 # the current directory while Tru64 will put them in the object 5231 # directory. 5232 mkdir sub 5233 5234 am_cv_CC_dependencies_compiler_type=none 5235 if test "$am_compiler_list" = ""; then 5236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5237 fi 5238 am__universal=false 5239 case " $depcc " in #( 5240 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5241 esac 5242 5243 for depmode in $am_compiler_list; do 5244 # Setup a source with many dependencies, because some compilers 5245 # like to wrap large dependency lists on column 80 (with \), and 5246 # we should not choose a depcomp mode which is confused by this. 5247 # 5248 # We need to recreate these files for each test, as the compiler may 5249 # overwrite some of them when testing with obscure command lines. 5250 # This happens at least with the AIX C compiler. 5251 : > sub/conftest.c 5252 for i in 1 2 3 4 5 6; do 5253 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5254 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5255 # Solaris 10 /bin/sh. 5256 echo '/* dummy */' > sub/conftst$i.h 5257 done 5258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5259 5260 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5261 # mode. It turns out that the SunPro C++ compiler does not properly 5262 # handle '-M -o', and we need to detect this. Also, some Intel 5263 # versions had trouble with output in subdirs. 5264 am__obj=sub/conftest.${OBJEXT-o} 5265 am__minus_obj="-o $am__obj" 5266 case $depmode in 5267 gcc) 5268 # This depmode causes a compiler race in universal mode. 5269 test "$am__universal" = false || continue 5270 ;; 5271 nosideeffect) 5272 # After this tag, mechanisms are not by side-effect, so they'll 5273 # only be used when explicitly requested. 5274 if test "x$enable_dependency_tracking" = xyes; then 5275 continue 5276 else 5277 break 5278 fi 5279 ;; 5280 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5281 # This compiler won't grok '-c -o', but also, the minuso test has 5282 # not run yet. These depmodes are late enough in the game, and 5283 # so weak that their functioning should not be impacted. 5284 am__obj=conftest.${OBJEXT-o} 5285 am__minus_obj= 5286 ;; 5287 none) break ;; 5288 esac 5289 if depmode=$depmode \ 5290 source=sub/conftest.c object=$am__obj \ 5291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5293 >/dev/null 2>conftest.err && 5294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5298 # icc doesn't choke on unknown options, it will just issue warnings 5299 # or remarks (even with -Werror). So we grep stderr for any message 5300 # that says an option was ignored or not supported. 5301 # When given -MP, icc 7.0 and 7.1 complain thusly: 5302 # icc: Command line warning: ignoring option '-M'; no argument required 5303 # The diagnosis changed in icc 8.0: 5304 # icc: Command line remark: option '-MP' not supported 5305 if (grep 'ignoring option' conftest.err || 5306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5307 am_cv_CC_dependencies_compiler_type=$depmode 5308 break 5309 fi 5310 fi 5311 done 5312 5313 cd .. 5314 rm -rf conftest.dir 5315else 5316 am_cv_CC_dependencies_compiler_type=none 5317fi 5318 5319fi 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5321$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5322CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5323 5324 if 5325 test "x$enable_dependency_tracking" != xno \ 5326 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5327 am__fastdepCC_TRUE= 5328 am__fastdepCC_FALSE='#' 5329else 5330 am__fastdepCC_TRUE='#' 5331 am__fastdepCC_FALSE= 5332fi 5333 5334 5335 5336ac_ext=c 5337ac_cpp='$CPP $CPPFLAGS' 5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5340ac_compiler_gnu=$ac_cv_c_compiler_gnu 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5342$as_echo_n "checking how to run the C preprocessor... " >&6; } 5343# On Suns, sometimes $CPP names a directory. 5344if test -n "$CPP" && test -d "$CPP"; then 5345 CPP= 5346fi 5347if test -z "$CPP"; then 5348 if ${ac_cv_prog_CPP+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 # Double quotes because CPP needs to be expanded 5352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5353 do 5354 ac_preproc_ok=false 5355for ac_c_preproc_warn_flag in '' yes 5356do 5357 # Use a header file that comes with gcc, so configuring glibc 5358 # with a fresh cross-compiler works. 5359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5360 # <limits.h> exists even on freestanding compilers. 5361 # On the NeXT, cc -E runs the code through the compiler's parser, 5362 # not just through cpp. "Syntax error" is here to catch this case. 5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365#ifdef __STDC__ 5366# include <limits.h> 5367#else 5368# include <assert.h> 5369#endif 5370 Syntax error 5371_ACEOF 5372if ac_fn_c_try_cpp "$LINENO"; then : 5373 5374else 5375 # Broken: fails on valid input. 5376continue 5377fi 5378rm -f conftest.err conftest.i conftest.$ac_ext 5379 5380 # OK, works on sane cases. Now check whether nonexistent headers 5381 # can be detected and how. 5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5383/* end confdefs.h. */ 5384#include <ac_nonexistent.h> 5385_ACEOF 5386if ac_fn_c_try_cpp "$LINENO"; then : 5387 # Broken: success on invalid input. 5388continue 5389else 5390 # Passes both tests. 5391ac_preproc_ok=: 5392break 5393fi 5394rm -f conftest.err conftest.i conftest.$ac_ext 5395 5396done 5397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5398rm -f conftest.i conftest.err conftest.$ac_ext 5399if $ac_preproc_ok; then : 5400 break 5401fi 5402 5403 done 5404 ac_cv_prog_CPP=$CPP 5405 5406fi 5407 CPP=$ac_cv_prog_CPP 5408else 5409 ac_cv_prog_CPP=$CPP 5410fi 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5412$as_echo "$CPP" >&6; } 5413ac_preproc_ok=false 5414for ac_c_preproc_warn_flag in '' yes 5415do 5416 # Use a header file that comes with gcc, so configuring glibc 5417 # with a fresh cross-compiler works. 5418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5419 # <limits.h> exists even on freestanding compilers. 5420 # On the NeXT, cc -E runs the code through the compiler's parser, 5421 # not just through cpp. "Syntax error" is here to catch this case. 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424#ifdef __STDC__ 5425# include <limits.h> 5426#else 5427# include <assert.h> 5428#endif 5429 Syntax error 5430_ACEOF 5431if ac_fn_c_try_cpp "$LINENO"; then : 5432 5433else 5434 # Broken: fails on valid input. 5435continue 5436fi 5437rm -f conftest.err conftest.i conftest.$ac_ext 5438 5439 # OK, works on sane cases. Now check whether nonexistent headers 5440 # can be detected and how. 5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443#include <ac_nonexistent.h> 5444_ACEOF 5445if ac_fn_c_try_cpp "$LINENO"; then : 5446 # Broken: success on invalid input. 5447continue 5448else 5449 # Passes both tests. 5450ac_preproc_ok=: 5451break 5452fi 5453rm -f conftest.err conftest.i conftest.$ac_ext 5454 5455done 5456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5457rm -f conftest.i conftest.err conftest.$ac_ext 5458if $ac_preproc_ok; then : 5459 5460else 5461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5463as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5464See \`config.log' for more details" "$LINENO" 5; } 5465fi 5466 5467ac_ext=c 5468ac_cpp='$CPP $CPPFLAGS' 5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5471ac_compiler_gnu=$ac_cv_c_compiler_gnu 5472 5473 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5475$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5476if ${ac_cv_path_GREP+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 if test -z "$GREP"; then 5480 ac_path_GREP_found=false 5481 # Loop through the user's path and test for each of PROGNAME-LIST 5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5484do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_prog in grep ggrep; do 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5490 as_fn_executable_p "$ac_path_GREP" || continue 5491# Check for GNU ac_path_GREP and select it if it is found. 5492 # Check for GNU $ac_path_GREP 5493case `"$ac_path_GREP" --version 2>&1` in 5494*GNU*) 5495 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5496*) 5497 ac_count=0 5498 $as_echo_n 0123456789 >"conftest.in" 5499 while : 5500 do 5501 cat "conftest.in" "conftest.in" >"conftest.tmp" 5502 mv "conftest.tmp" "conftest.in" 5503 cp "conftest.in" "conftest.nl" 5504 $as_echo 'GREP' >> "conftest.nl" 5505 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5507 as_fn_arith $ac_count + 1 && ac_count=$as_val 5508 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5509 # Best one so far, save it but keep looking for a better one 5510 ac_cv_path_GREP="$ac_path_GREP" 5511 ac_path_GREP_max=$ac_count 5512 fi 5513 # 10*(2^10) chars as input seems more than enough 5514 test $ac_count -gt 10 && break 5515 done 5516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5517esac 5518 5519 $ac_path_GREP_found && break 3 5520 done 5521 done 5522 done 5523IFS=$as_save_IFS 5524 if test -z "$ac_cv_path_GREP"; then 5525 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5526 fi 5527else 5528 ac_cv_path_GREP=$GREP 5529fi 5530 5531fi 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5533$as_echo "$ac_cv_path_GREP" >&6; } 5534 GREP="$ac_cv_path_GREP" 5535 5536 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5538$as_echo_n "checking for egrep... " >&6; } 5539if ${ac_cv_path_EGREP+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5543 then ac_cv_path_EGREP="$GREP -E" 5544 else 5545 if test -z "$EGREP"; then 5546 ac_path_EGREP_found=false 5547 # Loop through the user's path and test for each of PROGNAME-LIST 5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5550do 5551 IFS=$as_save_IFS 5552 test -z "$as_dir" && as_dir=. 5553 for ac_prog in egrep; do 5554 for ac_exec_ext in '' $ac_executable_extensions; do 5555 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5556 as_fn_executable_p "$ac_path_EGREP" || continue 5557# Check for GNU ac_path_EGREP and select it if it is found. 5558 # Check for GNU $ac_path_EGREP 5559case `"$ac_path_EGREP" --version 2>&1` in 5560*GNU*) 5561 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5562*) 5563 ac_count=0 5564 $as_echo_n 0123456789 >"conftest.in" 5565 while : 5566 do 5567 cat "conftest.in" "conftest.in" >"conftest.tmp" 5568 mv "conftest.tmp" "conftest.in" 5569 cp "conftest.in" "conftest.nl" 5570 $as_echo 'EGREP' >> "conftest.nl" 5571 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5573 as_fn_arith $ac_count + 1 && ac_count=$as_val 5574 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5575 # Best one so far, save it but keep looking for a better one 5576 ac_cv_path_EGREP="$ac_path_EGREP" 5577 ac_path_EGREP_max=$ac_count 5578 fi 5579 # 10*(2^10) chars as input seems more than enough 5580 test $ac_count -gt 10 && break 5581 done 5582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5583esac 5584 5585 $ac_path_EGREP_found && break 3 5586 done 5587 done 5588 done 5589IFS=$as_save_IFS 5590 if test -z "$ac_cv_path_EGREP"; then 5591 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5592 fi 5593else 5594 ac_cv_path_EGREP=$EGREP 5595fi 5596 5597 fi 5598fi 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5600$as_echo "$ac_cv_path_EGREP" >&6; } 5601 EGREP="$ac_cv_path_EGREP" 5602 5603 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5605$as_echo_n "checking for ANSI C header files... " >&6; } 5606if ${ac_cv_header_stdc+:} false; then : 5607 $as_echo_n "(cached) " >&6 5608else 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610/* end confdefs.h. */ 5611#include <stdlib.h> 5612#include <stdarg.h> 5613#include <string.h> 5614#include <float.h> 5615 5616int 5617main () 5618{ 5619 5620 ; 5621 return 0; 5622} 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO"; then : 5625 ac_cv_header_stdc=yes 5626else 5627 ac_cv_header_stdc=no 5628fi 5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5630 5631if test $ac_cv_header_stdc = yes; then 5632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635#include <string.h> 5636 5637_ACEOF 5638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5639 $EGREP "memchr" >/dev/null 2>&1; then : 5640 5641else 5642 ac_cv_header_stdc=no 5643fi 5644rm -f conftest* 5645 5646fi 5647 5648if test $ac_cv_header_stdc = yes; then 5649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5651/* end confdefs.h. */ 5652#include <stdlib.h> 5653 5654_ACEOF 5655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5656 $EGREP "free" >/dev/null 2>&1; then : 5657 5658else 5659 ac_cv_header_stdc=no 5660fi 5661rm -f conftest* 5662 5663fi 5664 5665if test $ac_cv_header_stdc = yes; then 5666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5667 if test "$cross_compiling" = yes; then : 5668 : 5669else 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5671/* end confdefs.h. */ 5672#include <ctype.h> 5673#include <stdlib.h> 5674#if ((' ' & 0x0FF) == 0x020) 5675# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5676# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5677#else 5678# define ISLOWER(c) \ 5679 (('a' <= (c) && (c) <= 'i') \ 5680 || ('j' <= (c) && (c) <= 'r') \ 5681 || ('s' <= (c) && (c) <= 'z')) 5682# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5683#endif 5684 5685#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5686int 5687main () 5688{ 5689 int i; 5690 for (i = 0; i < 256; i++) 5691 if (XOR (islower (i), ISLOWER (i)) 5692 || toupper (i) != TOUPPER (i)) 5693 return 2; 5694 return 0; 5695} 5696_ACEOF 5697if ac_fn_c_try_run "$LINENO"; then : 5698 5699else 5700 ac_cv_header_stdc=no 5701fi 5702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5703 conftest.$ac_objext conftest.beam conftest.$ac_ext 5704fi 5705 5706fi 5707fi 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5709$as_echo "$ac_cv_header_stdc" >&6; } 5710if test $ac_cv_header_stdc = yes; then 5711 5712$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5713 5714fi 5715 5716# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5717for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5718 inttypes.h stdint.h unistd.h 5719do : 5720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5721ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5722" 5723if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5724 cat >>confdefs.h <<_ACEOF 5725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5726_ACEOF 5727 5728fi 5729 5730done 5731 5732 5733 5734 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5735if test "x$ac_cv_header_minix_config_h" = xyes; then : 5736 MINIX=yes 5737else 5738 MINIX= 5739fi 5740 5741 5742 if test "$MINIX" = yes; then 5743 5744$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5745 5746 5747$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5748 5749 5750$as_echo "#define _MINIX 1" >>confdefs.h 5751 5752 fi 5753 5754 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5756$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5757if ${ac_cv_safe_to_define___extensions__+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762 5763# define __EXTENSIONS__ 1 5764 $ac_includes_default 5765int 5766main () 5767{ 5768 5769 ; 5770 return 0; 5771} 5772_ACEOF 5773if ac_fn_c_try_compile "$LINENO"; then : 5774 ac_cv_safe_to_define___extensions__=yes 5775else 5776 ac_cv_safe_to_define___extensions__=no 5777fi 5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5781$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5782 test $ac_cv_safe_to_define___extensions__ = yes && 5783 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5784 5785 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5786 5787 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5788 5789 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5790 5791 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5792 5793 5794if test -z "$CFLAGS_save"; then : 5795 CFLAGS= 5796fi 5797 5798 # Unwind the index 5799 pmix_scope_index=`expr $pmix_scope_index - 1` 5800 pmix_scope_test=`expr $pmix_scope_index \> 0` 5801 if test "$pmix_scope_test" = "0"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 5803$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 5805$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 5806 as_fn_error $? "Cannot continue" "$LINENO" 5 5807 fi 5808 5809 # Get the variable names from that index 5810 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 5811 eval $pmix_str 5812 5813 # Iterate over all the variables and unset them all 5814 for pmix_var in $pmix_str; do 5815 unset $pmix_var 5816 done 5817 5818 5819#################################################################### 5820# Setup the configure header files 5821#################################################################### 5822 5823 5824 5825 5826############################################################################ 5827# Setup Libtool 5828############################################################################ 5829 5830# We want new Libtool. None of that old stuff. Pfft. 5831 5832 5833 5834# 5835# Enable static so that we have the --with tests done up here and can 5836# check for OS. Save the values of $enable_static and $enable_shared 5837# before setting the defaults, because if the user specified 5838# --[en|dis]able-[static|shared] on the command line, they'll already 5839# be set. In this way, we can tell if the user requested something or 5840# if the default was set here. 5841# 5842 5843pmix_enable_shared="$enable_shared" 5844pmix_enable_static="$enable_static" 5845if test ! -z "$enable_static" && test "$enable_static" = "yes"; then : 5846 CFLAGS="$CFLAGS -fPIC" 5847fi 5848 5849# Check whether --enable-shared was given. 5850if test "${enable_shared+set}" = set; then : 5851 enableval=$enable_shared; p=${PACKAGE-default} 5852 case $enableval in 5853 yes) enable_shared=yes ;; 5854 no) enable_shared=no ;; 5855 *) 5856 enable_shared=no 5857 # Look at the argument we got. We use all the common list separators. 5858 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 5859 for pkg in $enableval; do 5860 IFS=$lt_save_ifs 5861 if test "X$pkg" = "X$p"; then 5862 enable_shared=yes 5863 fi 5864 done 5865 IFS=$lt_save_ifs 5866 ;; 5867 esac 5868else 5869 enable_shared=yes 5870fi 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880# Check whether --enable-static was given. 5881if test "${enable_static+set}" = set; then : 5882 enableval=$enable_static; p=${PACKAGE-default} 5883 case $enableval in 5884 yes) enable_static=yes ;; 5885 no) enable_static=no ;; 5886 *) 5887 enable_static=no 5888 # Look at the argument we got. We use all the common list separators. 5889 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 5890 for pkg in $enableval; do 5891 IFS=$lt_save_ifs 5892 if test "X$pkg" = "X$p"; then 5893 enable_static=yes 5894 fi 5895 done 5896 IFS=$lt_save_ifs 5897 ;; 5898 esac 5899else 5900 enable_static=no 5901fi 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912# This did not exist pre AM 1.11.x (where x is somewhere >0 and <3), 5913# but it is necessary in AM 1.12.x. 5914if test -n "$ac_tool_prefix"; then 5915 for ac_prog in ar lib "link -lib" 5916 do 5917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5918set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5920$as_echo_n "checking for $ac_word... " >&6; } 5921if ${ac_cv_prog_AR+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 if test -n "$AR"; then 5925 ac_cv_prog_AR="$AR" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939 done 5940IFS=$as_save_IFS 5941 5942fi 5943fi 5944AR=$ac_cv_prog_AR 5945if test -n "$AR"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5947$as_echo "$AR" >&6; } 5948else 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5950$as_echo "no" >&6; } 5951fi 5952 5953 5954 test -n "$AR" && break 5955 done 5956fi 5957if test -z "$AR"; then 5958 ac_ct_AR=$AR 5959 for ac_prog in ar lib "link -lib" 5960do 5961 # Extract the first word of "$ac_prog", so it can be a program name with args. 5962set dummy $ac_prog; ac_word=$2 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5964$as_echo_n "checking for $ac_word... " >&6; } 5965if ${ac_cv_prog_ac_ct_AR+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 if test -n "$ac_ct_AR"; then 5969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5970else 5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5972for as_dir in $PATH 5973do 5974 IFS=$as_save_IFS 5975 test -z "$as_dir" && as_dir=. 5976 for ac_exec_ext in '' $ac_executable_extensions; do 5977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5978 ac_cv_prog_ac_ct_AR="$ac_prog" 5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5980 break 2 5981 fi 5982done 5983 done 5984IFS=$as_save_IFS 5985 5986fi 5987fi 5988ac_ct_AR=$ac_cv_prog_ac_ct_AR 5989if test -n "$ac_ct_AR"; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5991$as_echo "$ac_ct_AR" >&6; } 5992else 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5994$as_echo "no" >&6; } 5995fi 5996 5997 5998 test -n "$ac_ct_AR" && break 5999done 6000 6001 if test "x$ac_ct_AR" = x; then 6002 AR="false" 6003 else 6004 case $cross_compiling:$ac_tool_warned in 6005yes:) 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6008ac_tool_warned=yes ;; 6009esac 6010 AR=$ac_ct_AR 6011 fi 6012fi 6013 6014: ${AR=ar} 6015 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6017$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6018if ${am_cv_ar_interface+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 ac_ext=c 6022ac_cpp='$CPP $CPPFLAGS' 6023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6025ac_compiler_gnu=$ac_cv_c_compiler_gnu 6026 6027 am_cv_ar_interface=ar 6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int some_variable = 0; 6031_ACEOF 6032if ac_fn_c_try_compile "$LINENO"; then : 6033 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6035 (eval $am_ar_try) 2>&5 6036 ac_status=$? 6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6038 test $ac_status = 0; } 6039 if test "$ac_status" -eq 0; then 6040 am_cv_ar_interface=ar 6041 else 6042 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6044 (eval $am_ar_try) 2>&5 6045 ac_status=$? 6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6047 test $ac_status = 0; } 6048 if test "$ac_status" -eq 0; then 6049 am_cv_ar_interface=lib 6050 else 6051 am_cv_ar_interface=unknown 6052 fi 6053 fi 6054 rm -f conftest.lib libconftest.a 6055 6056fi 6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6058 ac_ext=c 6059ac_cpp='$CPP $CPPFLAGS' 6060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6062ac_compiler_gnu=$ac_cv_c_compiler_gnu 6063 6064fi 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6066$as_echo "$am_cv_ar_interface" >&6; } 6067 6068case $am_cv_ar_interface in 6069ar) 6070 ;; 6071lib) 6072 # Microsoft lib, so override with the ar-lib wrapper script. 6073 # FIXME: It is wrong to rewrite AR. 6074 # But if we don't then we get into trouble of one sort or another. 6075 # A longer-term fix would be to have automake use am__AR in this case, 6076 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6077 # similar. 6078 AR="$am_aux_dir/ar-lib $AR" 6079 ;; 6080unknown) 6081 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6082 ;; 6083esac 6084 6085for ac_prog in flex lex 6086do 6087 # Extract the first word of "$ac_prog", so it can be a program name with args. 6088set dummy $ac_prog; ac_word=$2 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6090$as_echo_n "checking for $ac_word... " >&6; } 6091if ${ac_cv_prog_LEX+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 if test -n "$LEX"; then 6095 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6104 ac_cv_prog_LEX="$ac_prog" 6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108done 6109 done 6110IFS=$as_save_IFS 6111 6112fi 6113fi 6114LEX=$ac_cv_prog_LEX 6115if test -n "$LEX"; then 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6117$as_echo "$LEX" >&6; } 6118else 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6120$as_echo "no" >&6; } 6121fi 6122 6123 6124 test -n "$LEX" && break 6125done 6126test -n "$LEX" || LEX=":" 6127 6128if test "x$LEX" != "x:"; then 6129 cat >conftest.l <<_ACEOF 6130%% 6131a { ECHO; } 6132b { REJECT; } 6133c { yymore (); } 6134d { yyless (1); } 6135e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6136 yyless ((input () != 0)); } 6137f { unput (yytext[0]); } 6138. { BEGIN INITIAL; } 6139%% 6140#ifdef YYTEXT_POINTER 6141extern char *yytext; 6142#endif 6143int 6144main (void) 6145{ 6146 return ! yylex () + ! yywrap (); 6147} 6148_ACEOF 6149{ { ac_try="$LEX conftest.l" 6150case "(($ac_try" in 6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6152 *) ac_try_echo=$ac_try;; 6153esac 6154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6155$as_echo "$ac_try_echo"; } >&5 6156 (eval "$LEX conftest.l") 2>&5 6157 ac_status=$? 6158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6159 test $ac_status = 0; } 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6161$as_echo_n "checking lex output file root... " >&6; } 6162if ${ac_cv_prog_lex_root+:} false; then : 6163 $as_echo_n "(cached) " >&6 6164else 6165 6166if test -f lex.yy.c; then 6167 ac_cv_prog_lex_root=lex.yy 6168elif test -f lexyy.c; then 6169 ac_cv_prog_lex_root=lexyy 6170else 6171 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6172fi 6173fi 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6175$as_echo "$ac_cv_prog_lex_root" >&6; } 6176LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6177 6178if test -z "${LEXLIB+set}"; then 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6180$as_echo_n "checking lex library... " >&6; } 6181if ${ac_cv_lib_lex+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 6185 ac_save_LIBS=$LIBS 6186 ac_cv_lib_lex='none needed' 6187 for ac_lib in '' -lfl -ll; do 6188 LIBS="$ac_lib $ac_save_LIBS" 6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191`cat $LEX_OUTPUT_ROOT.c` 6192_ACEOF 6193if ac_fn_c_try_link "$LINENO"; then : 6194 ac_cv_lib_lex=$ac_lib 6195fi 6196rm -f core conftest.err conftest.$ac_objext \ 6197 conftest$ac_exeext conftest.$ac_ext 6198 test "$ac_cv_lib_lex" != 'none needed' && break 6199 done 6200 LIBS=$ac_save_LIBS 6201 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6204$as_echo "$ac_cv_lib_lex" >&6; } 6205 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6206fi 6207 6208 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6210$as_echo_n "checking whether yytext is a pointer... " >&6; } 6211if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6212 $as_echo_n "(cached) " >&6 6213else 6214 # POSIX says lex can declare yytext either as a pointer or an array; the 6215# default is implementation-dependent. Figure out which it is, since 6216# not all implementations provide the %pointer and %array declarations. 6217ac_cv_prog_lex_yytext_pointer=no 6218ac_save_LIBS=$LIBS 6219LIBS="$LEXLIB $ac_save_LIBS" 6220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222 6223 #define YYTEXT_POINTER 1 6224`cat $LEX_OUTPUT_ROOT.c` 6225_ACEOF 6226if ac_fn_c_try_link "$LINENO"; then : 6227 ac_cv_prog_lex_yytext_pointer=yes 6228fi 6229rm -f core conftest.err conftest.$ac_objext \ 6230 conftest$ac_exeext conftest.$ac_ext 6231LIBS=$ac_save_LIBS 6232 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6235$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6236if test $ac_cv_prog_lex_yytext_pointer = yes; then 6237 6238$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6239 6240fi 6241rm -f conftest.l $LEX_OUTPUT_ROOT.c 6242 6243fi 6244if test "$LEX" = :; then 6245 LEX=${am_missing_run}flex 6246fi 6247 6248############################################################################ 6249# Configuration options 6250############################################################################ 6251 6252# Set the MCA prefix 6253 6254 if test "$pmix_mca_prefix_set" = "yes"; then : 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX mca prefix was already set!" >&5 6256$as_echo "$as_me: WARNING: PMIX mca prefix was already set!" >&2;} 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configury programming error" >&5 6258$as_echo "$as_me: WARNING: This is a configury programming error" >&2;} 6259 as_fn_error $? "Cannot continue" "$LINENO" 5 6260fi 6261 6262 MCA_PREFIX=PMIX_MCA_ 6263 pmix_mca_prefix_set=yes 6264 6265cat >>confdefs.h <<_ACEOF 6266#define PMIX_MCA_PREFIX "$MCA_PREFIX" 6267_ACEOF 6268 6269 6270 6271 if test "$pmix_mca_cmd_id_set" = "yes"; then : 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX mca cmd line id was already set!" >&5 6273$as_echo "$as_me: WARNING: PMIX mca cmd line id was already set!" >&2;} 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configury programming error" >&5 6275$as_echo "$as_me: WARNING: This is a configury programming error" >&2;} 6276 as_fn_error $? "Cannot continue" "$LINENO" 5 6277fi 6278 6279 MCA_CMD_LINE_ID=pmca 6280 pmix_mca_cmd_id_set=yes 6281 6282cat >>confdefs.h <<_ACEOF 6283#define PMIX_MCA_CMD_LINE_ID "$MCA_CMD_LINE_ID" 6284_ACEOF 6285 6286 6287 6288# Define PMIx configure arguments 6289 6290 # do we want dlopen support ? 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want dlopen support" >&5 6292$as_echo_n "checking if want dlopen support... " >&6; } 6293 # Check whether --enable-dlopen was given. 6294if test "${enable_dlopen+set}" = set; then : 6295 enableval=$enable_dlopen; 6296fi 6297 6298 if test "$enable_dlopen" = "unknown"; then : 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_dlopen variable has been overwritten by configure" >&5 6300$as_echo "$as_me: WARNING: enable_dlopen variable has been overwritten by configure" >&2;} 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an internal error that should be reported to PMIx developers" >&5 6302$as_echo "$as_me: WARNING: This is an internal error that should be reported to PMIx developers" >&2;} 6303 as_fn_error $? "Cannot continue" "$LINENO" 5 6304fi 6305 if test "$enable_dlopen" = "no"; then : 6306 enable_mca_dso="no" 6307 enable_mca_static="yes" 6308 PMIX_ENABLE_DLOPEN_SUPPORT=0 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310$as_echo "no" >&6; } 6311else 6312 PMIX_ENABLE_DLOPEN_SUPPORT=1 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6314$as_echo "yes" >&6; } 6315fi 6316 6317cat >>confdefs.h <<_ACEOF 6318#define PMIX_ENABLE_DLOPEN_SUPPORT $PMIX_ENABLE_DLOPEN_SUPPORT 6319_ACEOF 6320 6321 6322 # Embedded mode, or standalone? 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if embedded mode is enabled" >&5 6324$as_echo_n "checking if embedded mode is enabled... " >&6; } 6325 # Check whether --enable-embedded-mode was given. 6326if test "${enable_embedded_mode+set}" = set; then : 6327 enableval=$enable_embedded_mode; 6328fi 6329 6330 if test "$enable_embedded_mode" = "yes"; then : 6331 pmix_mode=embedded 6332 pmix_install_primary_headers=no 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6334$as_echo "yes" >&6; } 6335else 6336 pmix_mode=standalone 6337 pmix_install_primary_headers=yes 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6339$as_echo "no" >&6; } 6340fi 6341 6342# 6343# Is this a developer copy? 6344# 6345 6346if test -e $PMIX_TOP_SRCDIR/.git; then 6347 PMIX_DEVEL=1 6348 # check for Flex 6349 6350 if test "x$LEX" != xflex; then 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIx requires Flex to build from non-tarball sources," >&5 6352$as_echo "$as_me: WARNING: PMIx requires Flex to build from non-tarball sources," >&2;} 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but Flex was not found. Please install Flex into" >&5 6354$as_echo "$as_me: WARNING: but Flex was not found. Please install Flex into" >&2;} 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your path and try again" >&5 6356$as_echo "$as_me: WARNING: your path and try again" >&2;} 6357 as_fn_error $? "Cannot continue" "$LINENO" 5 6358 fi 6359else 6360 PMIX_DEVEL=0 6361fi 6362 6363 6364# 6365# Developer picky compiler options 6366# 6367 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level compiler pickyness" >&5 6369$as_echo_n "checking if want developer-level compiler pickyness... " >&6; } 6370# Check whether --enable-picky was given. 6371if test "${enable_picky+set}" = set; then : 6372 enableval=$enable_picky; 6373fi 6374 6375if test "$enable_picky" = "yes"; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6377$as_echo "yes" >&6; } 6378 WANT_PICKY_COMPILER=1 6379else 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6381$as_echo "no" >&6; } 6382 WANT_PICKY_COMPILER=0 6383fi 6384#################### Early development override #################### 6385if test "$WANT_PICKY_COMPILER" = "0" && test -z "$enable_picky" && test "$PMIX_DEVEL" = "1"; then 6386 WANT_PICKY_COMPILER=1 6387 echo "--> developer override: enable picky compiler by default" 6388fi 6389#################### Early development override #################### 6390 6391# 6392# Developer debugging 6393# 6394 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level debugging code" >&5 6396$as_echo_n "checking if want developer-level debugging code... " >&6; } 6397# Check whether --enable-debug was given. 6398if test "${enable_debug+set}" = set; then : 6399 enableval=$enable_debug; 6400fi 6401 6402if test "$enable_debug" = "yes"; then 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6404$as_echo "yes" >&6; } 6405 WANT_DEBUG=1 6406else 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6408$as_echo "no" >&6; } 6409 WANT_DEBUG=0 6410fi 6411 6412if test "$WANT_DEBUG" = "0"; then 6413 CFLAGS="-DNDEBUG $CFLAGS" 6414fi 6415 6416 6417cat >>confdefs.h <<_ACEOF 6418#define PMIX_ENABLE_DEBUG $WANT_DEBUG 6419_ACEOF 6420 6421 6422# Check whether --enable-debug-symbols was given. 6423if test "${enable_debug_symbols+set}" = set; then : 6424 enableval=$enable_debug_symbols; 6425fi 6426 6427 6428# 6429# Do we want to install the internal devel headers? 6430# 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to install project-internal header files" >&5 6432$as_echo_n "checking if want to install project-internal header files... " >&6; } 6433 6434# Check whether --with-devel-headers was given. 6435if test "${with_devel_headers+set}" = set; then : 6436 withval=$with_devel_headers; 6437fi 6438 6439if test "$with_devel_headers" = "yes"; then 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6441$as_echo "yes" >&6; } 6442 WANT_INSTALL_HEADERS=1 6443 pmix_install_primary_headers=yes 6444else 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6446$as_echo "no" >&6; } 6447 WANT_INSTALL_HEADERS=0 6448fi 6449 6450# Install tests and examples? 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tests and examples are to be installed" >&5 6452$as_echo_n "checking if tests and examples are to be installed... " >&6; } 6453 6454# Check whether --with-tests-examples was given. 6455if test "${with_tests_examples+set}" = set; then : 6456 withval=$with_tests_examples; 6457fi 6458 6459if test "$pmix_install_primary_headers" = "no"; then : 6460 if test -z "$with_tests_examples" || test "$with_tests_examples" = "no"; then : 6461 pmix_tests=no 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6463$as_echo "no" >&6; } 6464else 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6466$as_echo "no" >&6; } 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot install tests/examples without installing primary headers." >&5 6468$as_echo "$as_me: WARNING: Cannot install tests/examples without installing primary headers." >&2;} 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This situation arises when configured in embedded mode" >&5 6470$as_echo "$as_me: WARNING: This situation arises when configured in embedded mode" >&2;} 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and without devel headers." >&5 6472$as_echo "$as_me: WARNING: and without devel headers." >&2;} 6473 as_fn_error $? "Please correct the configure line and retry" "$LINENO" 5 6474fi 6475else 6476 if test ! -z "$with_tests_examples" && test "$with_tests_examples" = "no"; then : 6477 pmix_tests=no 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480else 6481 pmix_tests=yes 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6483$as_echo "yes" >&6; } 6484fi 6485fi 6486 6487# 6488# Support per-user config files? 6489# 6490# Check whether --enable-per-user-config-files was given. 6491if test "${enable_per_user_config_files+set}" = set; then : 6492 enableval=$enable_per_user_config_files; 6493fi 6494 6495if test "$enable_per_user_config_files" = "no" ; then 6496 result=0 6497else 6498 result=1 6499fi 6500 6501cat >>confdefs.h <<_ACEOF 6502#define PMIX_WANT_HOME_CONFIG_FILES $result 6503_ACEOF 6504 6505 6506# 6507# Do we want the pretty-print stack trace feature? 6508# 6509 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pretty-print stacktrace" >&5 6511$as_echo_n "checking if want pretty-print stacktrace... " >&6; } 6512# Check whether --enable-pretty-print-stacktrace was given. 6513if test "${enable_pretty_print_stacktrace+set}" = set; then : 6514 enableval=$enable_pretty_print_stacktrace; 6515fi 6516 6517if test "$enable_pretty_print_stacktrace" = "no" ; then 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519$as_echo "no" >&6; } 6520 WANT_PRETTY_PRINT_STACKTRACE=0 6521else 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6523$as_echo "yes" >&6; } 6524 WANT_PRETTY_PRINT_STACKTRACE=1 6525fi 6526 6527cat >>confdefs.h <<_ACEOF 6528#define PMIX_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE 6529_ACEOF 6530 6531 6532# 6533# Use pthread-based locking 6534# 6535DSTORE_PTHREAD_LOCK="1" 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want dstore pthread-based locking" >&5 6537$as_echo_n "checking if want dstore pthread-based locking... " >&6; } 6538# Check whether --enable-dstore-pthlck was given. 6539if test "${enable_dstore_pthlck+set}" = set; then : 6540 enableval=$enable_dstore_pthlck; 6541fi 6542 6543if test "$enable_dstore_pthlck" = "no" ; then 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6545$as_echo "no" >&6; } 6546 DSTORE_PTHREAD_LOCK="0" 6547else 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6549$as_echo "yes" >&6; } 6550 DSTORE_PTHREAD_LOCK="1" 6551fi 6552 6553# 6554# Ident string 6555# 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want ident string" >&5 6557$as_echo_n "checking if want ident string... " >&6; } 6558 6559# Check whether --with-ident-string was given. 6560if test "${with_ident_string+set}" = set; then : 6561 withval=$with_ident_string; 6562fi 6563 6564if test "$with_ident_string" = "" || test "$with_ident_string" = "no"; then 6565 with_ident_string="%VERSION%" 6566fi 6567# This is complicated, because $PMIX_VERSION may have spaces in it. 6568# So put the whole sed expr in single quotes -- i.e., directly 6569# substitute %VERSION% for (not expanded) $PMIX_VERSION. 6570with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/$PMIX_VERSION/'`" 6571 6572# Now eval an echo of that so that the "$PMIX_VERSION" token is 6573# replaced with its value. Enclose the whole thing in "" so that it 6574# ends up as 1 token. 6575with_ident_string="`eval echo $with_ident_string`" 6576 6577 6578cat >>confdefs.h <<_ACEOF 6579#define PMIX_IDENT_STRING "$with_ident_string" 6580_ACEOF 6581 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ident_string" >&5 6583$as_echo "$with_ident_string" >&6; } 6584 6585# 6586# Timing support 6587# 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level timing support" >&5 6589$as_echo_n "checking if want developer-level timing support... " >&6; } 6590# Check whether --enable-pmix-timing was given. 6591if test "${enable_pmix_timing+set}" = set; then : 6592 enableval=$enable_pmix_timing; 6593fi 6594 6595if test "$enable_pmix_timing" = "yes"; then 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6597$as_echo "yes" >&6; } 6598 WANT_PMIX_TIMING=1 6599else 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6601$as_echo "no" >&6; } 6602 WANT_PMIX_TIMING=0 6603fi 6604 6605 6606cat >>confdefs.h <<_ACEOF 6607#define PMIX_ENABLE_TIMING $WANT_PMIX_TIMING 6608_ACEOF 6609 6610 6611# 6612# 6613# Install backward compatibility support for PMI-1 and PMI-2 6614# 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want backward compatibility for PMI-1 and PMI-2" >&5 6616$as_echo_n "checking if want backward compatibility for PMI-1 and PMI-2... " >&6; } 6617# Check whether --enable-pmi-backward-compatibility was given. 6618if test "${enable_pmi_backward_compatibility+set}" = set; then : 6619 enableval=$enable_pmi_backward_compatibility; 6620fi 6621 6622if test "$enable_pmi_backward_compatibility" = "no"; then 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6624$as_echo "no" >&6; } 6625 WANT_PMI_BACKWARD=0 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6628$as_echo "yes" >&6; } 6629 WANT_PMI_BACKWARD=1 6630fi 6631 6632 if test $WANT_INSTALL_HEADERS -eq 1; then 6633 WANT_INSTALL_HEADERS_TRUE= 6634 WANT_INSTALL_HEADERS_FALSE='#' 6635else 6636 WANT_INSTALL_HEADERS_TRUE='#' 6637 WANT_INSTALL_HEADERS_FALSE= 6638fi 6639 6640 6641# 6642# Do we want to install binaries? 6643# 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to disable binaries" >&5 6645$as_echo_n "checking if want to disable binaries... " >&6; } 6646# Check whether --enable-pmix-binaries was given. 6647if test "${enable_pmix_binaries+set}" = set; then : 6648 enableval=$enable_pmix_binaries; 6649fi 6650 6651if test "$enable_pmix_binaries" = "no"; then 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6653$as_echo "no" >&6; } 6654 WANT_PMIX_BINARIES=0 6655else 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6657$as_echo "yes" >&6; } 6658 WANT_PMIX_BINARIES=1 6659fi 6660 6661 if test $WANT_PMIX_BINARIES -eq 1; then 6662 PMIX_INSTALL_BINARIES_TRUE= 6663 PMIX_INSTALL_BINARIES_FALSE='#' 6664else 6665 PMIX_INSTALL_BINARIES_TRUE='#' 6666 PMIX_INSTALL_BINARIES_FALSE= 6667fi 6668 6669 6670# see if they want to disable non-RTLD_GLOBAL dlopen 6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to support dlopen of non-global namespaces" >&5 6672$as_echo_n "checking if want to support dlopen of non-global namespaces... " >&6; } 6673# Check whether --enable-nonglobal-dlopen was given. 6674if test "${enable_nonglobal_dlopen+set}" = set; then : 6675 enableval=$enable_nonglobal_dlopen; 6676fi 6677 6678if test "$enable_nonglobal_dlopen" = "no"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6680$as_echo "no" >&6; } 6681 pmix_need_libpmix=0 6682else 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6684$as_echo "yes" >&6; } 6685 pmix_need_libpmix=1 6686fi 6687 6688# if someone enables embedded mode but doesn't want to install the 6689# devel headers, then default nonglobal-dlopen to false 6690if test -z "$enable_nonglobal_dlopen" && test "x$pmix_mode" = "xembedded" && test $WANT_INSTALL_HEADERS -eq 0 && test $pmix_need_libpmix -eq 1; then : 6691 pmix_need_libpmix=0 6692fi 6693 6694# 6695# Do we want PTY support? 6696# 6697 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pty support" >&5 6699$as_echo_n "checking if want pty support... " >&6; } 6700# Check whether --enable-pty-support was given. 6701if test "${enable_pty_support+set}" = set; then : 6702 enableval=$enable_pty_support; 6703fi 6704 6705if test "$enable_pty_support" = "no" ; then 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6707$as_echo "no" >&6; } 6708 PMIX_ENABLE_PTY_SUPPORT=0 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6711$as_echo "yes" >&6; } 6712 PMIX_ENABLE_PTY_SUPPORT=1 6713fi 6714 6715cat >>confdefs.h <<_ACEOF 6716#define PMIX_ENABLE_PTY_SUPPORT $PMIX_ENABLE_PTY_SUPPORT 6717_ACEOF 6718 6719 6720# 6721# psec/dummy_handshake 6722# 6723 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want build psec/dummy_handshake" >&5 6725$as_echo_n "checking if want build psec/dummy_handshake... " >&6; } 6726# Check whether --enable-dummy-handshake was given. 6727if test "${enable_dummy_handshake+set}" = set; then : 6728 enableval=$enable_dummy_handshake; 6729fi 6730 6731if test "$enable_dummy_handshake" != "yes"; then 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734 eval "DISABLE_psec_dummy_handshake=1" 6735else 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6737$as_echo "yes" >&6; } 6738 eval "DISABLE_psec_dummy_handshake=0" 6739fi 6740 if test "$DISABLE_psec_dummy_handshake" = "0"; then 6741 MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE= 6742 MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE='#' 6743else 6744 MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE='#' 6745 MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE= 6746fi 6747 6748 6749# Define some basic useful values 6750 6751 6752# 6753# Make automake clean emacs ~ files for "make clean" 6754# 6755 6756CLEANFILES="*~ .\#*" 6757 6758 6759# 6760# See if we can find an old installation of PMIX to overwrite 6761# 6762 6763# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if pmix_clean 6764# is not found in the path and the user did not specify --prefix, 6765# we'll get a $prefix of "." 6766 6767pmix_prefix_save="$prefix" 6768if test "x$prefix" = xNONE; then 6769 $as_echo_n "checking for prefix by " >&6 6770 # Extract the first word of "pmix_clean", so it can be a program name with args. 6771set dummy pmix_clean; ac_word=$2 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773$as_echo_n "checking for $ac_word... " >&6; } 6774if ${ac_cv_path_ac_prefix_program+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 case $ac_prefix_program in 6778 [\\/]* | ?:[\\/]*) 6779 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. 6780 ;; 6781 *) 6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6783for as_dir in $PATH 6784do 6785 IFS=$as_save_IFS 6786 test -z "$as_dir" && as_dir=. 6787 for ac_exec_ext in '' $ac_executable_extensions; do 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6789 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" 6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6791 break 2 6792 fi 6793done 6794 done 6795IFS=$as_save_IFS 6796 6797 ;; 6798esac 6799fi 6800ac_prefix_program=$ac_cv_path_ac_prefix_program 6801if test -n "$ac_prefix_program"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 6803$as_echo "$ac_prefix_program" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806$as_echo "no" >&6; } 6807fi 6808 6809 6810 if test -n "$ac_prefix_program"; then 6811 prefix=`$as_dirname -- "$ac_prefix_program" || 6812$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6813 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ 6814 X"$ac_prefix_program" : 'X\(//\)$' \| \ 6815 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || 6816$as_echo X"$ac_prefix_program" | 6817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6818 s//\1/ 6819 q 6820 } 6821 /^X\(\/\/\)[^/].*/{ 6822 s//\1/ 6823 q 6824 } 6825 /^X\(\/\/\)$/{ 6826 s//\1/ 6827 q 6828 } 6829 /^X\(\/\).*/{ 6830 s//\1/ 6831 q 6832 } 6833 s/.*/./; q'` 6834 prefix=`$as_dirname -- "$prefix" || 6835$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6836 X"$prefix" : 'X\(//\)[^/]' \| \ 6837 X"$prefix" : 'X\(//\)$' \| \ 6838 X"$prefix" : 'X\(/\)' \| . 2>/dev/null || 6839$as_echo X"$prefix" | 6840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6841 s//\1/ 6842 q 6843 } 6844 /^X\(\/\/\)[^/].*/{ 6845 s//\1/ 6846 q 6847 } 6848 /^X\(\/\/\)$/{ 6849 s//\1/ 6850 q 6851 } 6852 /^X\(\/\).*/{ 6853 s//\1/ 6854 q 6855 } 6856 s/.*/./; q'` 6857 fi 6858fi 6859 6860if test "$prefix" = "."; then 6861 prefix="$pmix_prefix_save" 6862fi 6863unset pmix_prefix_save 6864 6865# 6866# Basic sanity checking; we can't install to a relative path 6867# 6868 6869case "$prefix" in 6870 /*/bin) 6871 prefix="`dirname $prefix`" 6872 echo installing to directory \"$prefix\" 6873 ;; 6874 /*) 6875 echo installing to directory \"$prefix\" 6876 ;; 6877 NONE) 6878 echo installing to directory \"$ac_default_prefix\" 6879 ;; 6880 [a-zA-Z]:*) 6881 echo installing to directory \"$prefix\" 6882 ;; 6883 *) 6884 as_fn_error $? "prefix \"$prefix\" must be an absolute directory path" "$LINENO" 5 6885 ;; 6886esac 6887 6888# BEGIN: Derived from GASNet 6889 6890# Suggestion from Paul Hargrove to disable --program-prefix and 6891# friends. Heavily influenced by GASNet 1.12 acinclude.m4 6892# functionality to do the same thing (copyright listed at top of this 6893# file). 6894 6895# echo program_prefix=$program_prefix program_suffix=$program_suffix program_transform_name=$program_transform_name 6896# undo prefix autoconf automatically adds during cross-compilation 6897if test "$cross_compiling" = yes && test "$program_prefix" = "${target_alias}-" ; then 6898 program_prefix=NONE 6899fi 6900# normalize empty prefix/suffix 6901if test -z "$program_prefix" ; then 6902 program_prefix=NONE 6903fi 6904if test -z "$program_suffix" ; then 6905 program_suffix=NONE 6906fi 6907# undo transforms caused by empty prefix/suffix 6908if expr "$program_transform_name" : 's.^..$' >/dev/null || \ 6909 expr "$program_transform_name" : 's.$$..$' >/dev/null || \ 6910 expr "$program_transform_name" : 's.$$..;s.^..$' >/dev/null ; then 6911 program_transform_name="s,x,x," 6912fi 6913if test "$program_prefix$program_suffix$program_transform_name" != "NONENONEs,x,x," ; then 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The PMIx configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." >&5 6915$as_echo "$as_me: WARNING: *** The PMIx configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." >&2;} 6916 as_fn_error $? "*** Cannot continue" "$LINENO" 5 6917fi 6918 6919# END: Derived from GASNet 6920 6921 6922# If debug mode, add -g 6923if test "$pmix_debug" = "1"; then : 6924 CFLAGS="$CFLAGS -g" 6925fi 6926 6927case `pwd` in 6928 *\ * | *\ *) 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6930$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6931esac 6932 6933 6934 6935macro_version='2.4.6' 6936macro_revision='2.4.6' 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950ltmain=$ac_aux_dir/ltmain.sh 6951 6952# Backslashify metacharacters that are still active within 6953# double-quoted strings. 6954sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6955 6956# Same as above, but do not quote variable references. 6957double_quote_subst='s/\(["`\\]\)/\\\1/g' 6958 6959# Sed substitution to delay expansion of an escaped shell variable in a 6960# double_quote_subst'ed string. 6961delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6962 6963# Sed substitution to delay expansion of an escaped single quote. 6964delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6965 6966# Sed substitution to avoid accidental globbing in evaled expressions 6967no_glob_subst='s/\*/\\\*/g' 6968 6969ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6970ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6971ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6972 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6974$as_echo_n "checking how to print strings... " >&6; } 6975# Test print first, because it will be a builtin if present. 6976if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6977 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6978 ECHO='print -r --' 6979elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6980 ECHO='printf %s\n' 6981else 6982 # Use this function as a fallback that always works. 6983 func_fallback_echo () 6984 { 6985 eval 'cat <<_LTECHO_EOF 6986$1 6987_LTECHO_EOF' 6988 } 6989 ECHO='func_fallback_echo' 6990fi 6991 6992# func_echo_all arg... 6993# Invoke $ECHO with all args, space-separated. 6994func_echo_all () 6995{ 6996 $ECHO "" 6997} 6998 6999case $ECHO in 7000 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7001$as_echo "printf" >&6; } ;; 7002 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7003$as_echo "print -r" >&6; } ;; 7004 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7005$as_echo "cat" >&6; } ;; 7006esac 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7022$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7023if ${ac_cv_path_SED+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7027 for ac_i in 1 2 3 4 5 6 7; do 7028 ac_script="$ac_script$as_nl$ac_script" 7029 done 7030 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7031 { ac_script=; unset ac_script;} 7032 if test -z "$SED"; then 7033 ac_path_SED_found=false 7034 # Loop through the user's path and test for each of PROGNAME-LIST 7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7036for as_dir in $PATH 7037do 7038 IFS=$as_save_IFS 7039 test -z "$as_dir" && as_dir=. 7040 for ac_prog in sed gsed; do 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7043 as_fn_executable_p "$ac_path_SED" || continue 7044# Check for GNU ac_path_SED and select it if it is found. 7045 # Check for GNU $ac_path_SED 7046case `"$ac_path_SED" --version 2>&1` in 7047*GNU*) 7048 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7049*) 7050 ac_count=0 7051 $as_echo_n 0123456789 >"conftest.in" 7052 while : 7053 do 7054 cat "conftest.in" "conftest.in" >"conftest.tmp" 7055 mv "conftest.tmp" "conftest.in" 7056 cp "conftest.in" "conftest.nl" 7057 $as_echo '' >> "conftest.nl" 7058 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7060 as_fn_arith $ac_count + 1 && ac_count=$as_val 7061 if test $ac_count -gt ${ac_path_SED_max-0}; then 7062 # Best one so far, save it but keep looking for a better one 7063 ac_cv_path_SED="$ac_path_SED" 7064 ac_path_SED_max=$ac_count 7065 fi 7066 # 10*(2^10) chars as input seems more than enough 7067 test $ac_count -gt 10 && break 7068 done 7069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7070esac 7071 7072 $ac_path_SED_found && break 3 7073 done 7074 done 7075 done 7076IFS=$as_save_IFS 7077 if test -z "$ac_cv_path_SED"; then 7078 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7079 fi 7080else 7081 ac_cv_path_SED=$SED 7082fi 7083 7084fi 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7086$as_echo "$ac_cv_path_SED" >&6; } 7087 SED="$ac_cv_path_SED" 7088 rm -f conftest.sed 7089 7090test -z "$SED" && SED=sed 7091Xsed="$SED -e 1s/^X//" 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7104$as_echo_n "checking for fgrep... " >&6; } 7105if ${ac_cv_path_FGREP+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7109 then ac_cv_path_FGREP="$GREP -F" 7110 else 7111 if test -z "$FGREP"; then 7112 ac_path_FGREP_found=false 7113 # Loop through the user's path and test for each of PROGNAME-LIST 7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7116do 7117 IFS=$as_save_IFS 7118 test -z "$as_dir" && as_dir=. 7119 for ac_prog in fgrep; do 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7122 as_fn_executable_p "$ac_path_FGREP" || continue 7123# Check for GNU ac_path_FGREP and select it if it is found. 7124 # Check for GNU $ac_path_FGREP 7125case `"$ac_path_FGREP" --version 2>&1` in 7126*GNU*) 7127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7128*) 7129 ac_count=0 7130 $as_echo_n 0123456789 >"conftest.in" 7131 while : 7132 do 7133 cat "conftest.in" "conftest.in" >"conftest.tmp" 7134 mv "conftest.tmp" "conftest.in" 7135 cp "conftest.in" "conftest.nl" 7136 $as_echo 'FGREP' >> "conftest.nl" 7137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7139 as_fn_arith $ac_count + 1 && ac_count=$as_val 7140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7141 # Best one so far, save it but keep looking for a better one 7142 ac_cv_path_FGREP="$ac_path_FGREP" 7143 ac_path_FGREP_max=$ac_count 7144 fi 7145 # 10*(2^10) chars as input seems more than enough 7146 test $ac_count -gt 10 && break 7147 done 7148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7149esac 7150 7151 $ac_path_FGREP_found && break 3 7152 done 7153 done 7154 done 7155IFS=$as_save_IFS 7156 if test -z "$ac_cv_path_FGREP"; then 7157 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7158 fi 7159else 7160 ac_cv_path_FGREP=$FGREP 7161fi 7162 7163 fi 7164fi 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7166$as_echo "$ac_cv_path_FGREP" >&6; } 7167 FGREP="$ac_cv_path_FGREP" 7168 7169 7170test -z "$GREP" && GREP=grep 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190# Check whether --with-gnu-ld was given. 7191if test "${with_gnu_ld+set}" = set; then : 7192 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7193else 7194 with_gnu_ld=no 7195fi 7196 7197ac_prog=ld 7198if test yes = "$GCC"; then 7199 # Check if gcc -print-prog-name=ld gives a path. 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7201$as_echo_n "checking for ld used by $CC... " >&6; } 7202 case $host in 7203 *-*-mingw*) 7204 # gcc leaves a trailing carriage return, which upsets mingw 7205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7206 *) 7207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7208 esac 7209 case $ac_prog in 7210 # Accept absolute paths. 7211 [\\/]* | ?:[\\/]*) 7212 re_direlt='/[^/][^/]*/\.\./' 7213 # Canonicalize the pathname of ld 7214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7217 done 7218 test -z "$LD" && LD=$ac_prog 7219 ;; 7220 "") 7221 # If it fails, then pretend we aren't using GCC. 7222 ac_prog=ld 7223 ;; 7224 *) 7225 # If it is relative, then search for the first ld in PATH. 7226 with_gnu_ld=unknown 7227 ;; 7228 esac 7229elif test yes = "$with_gnu_ld"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7231$as_echo_n "checking for GNU ld... " >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7234$as_echo_n "checking for non-GNU ld... " >&6; } 7235fi 7236if ${lt_cv_path_LD+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 if test -z "$LD"; then 7240 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7241 for ac_dir in $PATH; do 7242 IFS=$lt_save_ifs 7243 test -z "$ac_dir" && ac_dir=. 7244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7245 lt_cv_path_LD=$ac_dir/$ac_prog 7246 # Check to see if the program is GNU ld. I'd rather use --version, 7247 # but apparently some variants of GNU ld only accept -v. 7248 # Break only if it was the GNU/non-GNU ld that we prefer. 7249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7250 *GNU* | *'with BFD'*) 7251 test no != "$with_gnu_ld" && break 7252 ;; 7253 *) 7254 test yes != "$with_gnu_ld" && break 7255 ;; 7256 esac 7257 fi 7258 done 7259 IFS=$lt_save_ifs 7260else 7261 lt_cv_path_LD=$LD # Let the user override the test with a path. 7262fi 7263fi 7264 7265LD=$lt_cv_path_LD 7266if test -n "$LD"; then 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7268$as_echo "$LD" >&6; } 7269else 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7271$as_echo "no" >&6; } 7272fi 7273test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7275$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7276if ${lt_cv_prog_gnu_ld+:} false; then : 7277 $as_echo_n "(cached) " >&6 7278else 7279 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7280case `$LD -v 2>&1 </dev/null` in 7281*GNU* | *'with BFD'*) 7282 lt_cv_prog_gnu_ld=yes 7283 ;; 7284*) 7285 lt_cv_prog_gnu_ld=no 7286 ;; 7287esac 7288fi 7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7290$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7291with_gnu_ld=$lt_cv_prog_gnu_ld 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7302$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7303if ${lt_cv_path_NM+:} false; then : 7304 $as_echo_n "(cached) " >&6 7305else 7306 if test -n "$NM"; then 7307 # Let the user override the test. 7308 lt_cv_path_NM=$NM 7309else 7310 lt_nm_to_check=${ac_tool_prefix}nm 7311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7312 lt_nm_to_check="$lt_nm_to_check nm" 7313 fi 7314 for lt_tmp_nm in $lt_nm_to_check; do 7315 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7317 IFS=$lt_save_ifs 7318 test -z "$ac_dir" && ac_dir=. 7319 tmp_nm=$ac_dir/$lt_tmp_nm 7320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7321 # Check to see if the nm accepts a BSD-compat flag. 7322 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7323 # nm: unknown option "B" ignored 7324 # Tru64's nm complains that /dev/null is an invalid object file 7325 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7326 case $build_os in 7327 mingw*) lt_bad_file=conftest.nm/nofile ;; 7328 *) lt_bad_file=/dev/null ;; 7329 esac 7330 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7331 *$lt_bad_file* | *'Invalid file or object type'*) 7332 lt_cv_path_NM="$tmp_nm -B" 7333 break 2 7334 ;; 7335 *) 7336 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7337 */dev/null*) 7338 lt_cv_path_NM="$tmp_nm -p" 7339 break 2 7340 ;; 7341 *) 7342 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7343 continue # so that we can try to find one that supports BSD flags 7344 ;; 7345 esac 7346 ;; 7347 esac 7348 fi 7349 done 7350 IFS=$lt_save_ifs 7351 done 7352 : ${lt_cv_path_NM=no} 7353fi 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7356$as_echo "$lt_cv_path_NM" >&6; } 7357if test no != "$lt_cv_path_NM"; then 7358 NM=$lt_cv_path_NM 7359else 7360 # Didn't find any BSD compatible name lister, look for dumpbin. 7361 if test -n "$DUMPBIN"; then : 7362 # Let the user override the test. 7363 else 7364 if test -n "$ac_tool_prefix"; then 7365 for ac_prog in dumpbin "link -dump" 7366 do 7367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7368set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7370$as_echo_n "checking for $ac_word... " >&6; } 7371if ${ac_cv_prog_DUMPBIN+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 if test -n "$DUMPBIN"; then 7375 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7376else 7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7378for as_dir in $PATH 7379do 7380 IFS=$as_save_IFS 7381 test -z "$as_dir" && as_dir=. 7382 for ac_exec_ext in '' $ac_executable_extensions; do 7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7384 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7386 break 2 7387 fi 7388done 7389 done 7390IFS=$as_save_IFS 7391 7392fi 7393fi 7394DUMPBIN=$ac_cv_prog_DUMPBIN 7395if test -n "$DUMPBIN"; then 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7397$as_echo "$DUMPBIN" >&6; } 7398else 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7400$as_echo "no" >&6; } 7401fi 7402 7403 7404 test -n "$DUMPBIN" && break 7405 done 7406fi 7407if test -z "$DUMPBIN"; then 7408 ac_ct_DUMPBIN=$DUMPBIN 7409 for ac_prog in dumpbin "link -dump" 7410do 7411 # Extract the first word of "$ac_prog", so it can be a program name with args. 7412set dummy $ac_prog; ac_word=$2 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7414$as_echo_n "checking for $ac_word... " >&6; } 7415if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417else 7418 if test -n "$ac_ct_DUMPBIN"; then 7419 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7420else 7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7422for as_dir in $PATH 7423do 7424 IFS=$as_save_IFS 7425 test -z "$as_dir" && as_dir=. 7426 for ac_exec_ext in '' $ac_executable_extensions; do 7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7428 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7430 break 2 7431 fi 7432done 7433 done 7434IFS=$as_save_IFS 7435 7436fi 7437fi 7438ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7439if test -n "$ac_ct_DUMPBIN"; then 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7441$as_echo "$ac_ct_DUMPBIN" >&6; } 7442else 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7444$as_echo "no" >&6; } 7445fi 7446 7447 7448 test -n "$ac_ct_DUMPBIN" && break 7449done 7450 7451 if test "x$ac_ct_DUMPBIN" = x; then 7452 DUMPBIN=":" 7453 else 7454 case $cross_compiling:$ac_tool_warned in 7455yes:) 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7458ac_tool_warned=yes ;; 7459esac 7460 DUMPBIN=$ac_ct_DUMPBIN 7461 fi 7462fi 7463 7464 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7465 *COFF*) 7466 DUMPBIN="$DUMPBIN -symbols -headers" 7467 ;; 7468 *) 7469 DUMPBIN=: 7470 ;; 7471 esac 7472 fi 7473 7474 if test : != "$DUMPBIN"; then 7475 NM=$DUMPBIN 7476 fi 7477fi 7478test -z "$NM" && NM=nm 7479 7480 7481 7482 7483 7484 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7486$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7487if ${lt_cv_nm_interface+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 lt_cv_nm_interface="BSD nm" 7491 echo "int some_variable = 0;" > conftest.$ac_ext 7492 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7493 (eval "$ac_compile" 2>conftest.err) 7494 cat conftest.err >&5 7495 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7496 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7497 cat conftest.err >&5 7498 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7499 cat conftest.out >&5 7500 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7501 lt_cv_nm_interface="MS dumpbin" 7502 fi 7503 rm -f conftest* 7504fi 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7506$as_echo "$lt_cv_nm_interface" >&6; } 7507 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7509$as_echo_n "checking whether ln -s works... " >&6; } 7510LN_S=$as_ln_s 7511if test "$LN_S" = "ln -s"; then 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7513$as_echo "yes" >&6; } 7514else 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7516$as_echo "no, using $LN_S" >&6; } 7517fi 7518 7519# find the maximum length of command line arguments 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7521$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7522if ${lt_cv_sys_max_cmd_len+:} false; then : 7523 $as_echo_n "(cached) " >&6 7524else 7525 i=0 7526 teststring=ABCD 7527 7528 case $build_os in 7529 msdosdjgpp*) 7530 # On DJGPP, this test can blow up pretty badly due to problems in libc 7531 # (any single argument exceeding 2000 bytes causes a buffer overrun 7532 # during glob expansion). Even if it were fixed, the result of this 7533 # check would be larger than it should be. 7534 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7535 ;; 7536 7537 gnu*) 7538 # Under GNU Hurd, this test is not required because there is 7539 # no limit to the length of command line arguments. 7540 # Libtool will interpret -1 as no limit whatsoever 7541 lt_cv_sys_max_cmd_len=-1; 7542 ;; 7543 7544 cygwin* | mingw* | cegcc*) 7545 # On Win9x/ME, this test blows up -- it succeeds, but takes 7546 # about 5 minutes as the teststring grows exponentially. 7547 # Worse, since 9x/ME are not pre-emptively multitasking, 7548 # you end up with a "frozen" computer, even though with patience 7549 # the test eventually succeeds (with a max line length of 256k). 7550 # Instead, let's just punt: use the minimum linelength reported by 7551 # all of the supported platforms: 8192 (on NT/2K/XP). 7552 lt_cv_sys_max_cmd_len=8192; 7553 ;; 7554 7555 mint*) 7556 # On MiNT this can take a long time and run out of memory. 7557 lt_cv_sys_max_cmd_len=8192; 7558 ;; 7559 7560 amigaos*) 7561 # On AmigaOS with pdksh, this test takes hours, literally. 7562 # So we just punt and use a minimum line length of 8192. 7563 lt_cv_sys_max_cmd_len=8192; 7564 ;; 7565 7566 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7567 # This has been around since 386BSD, at least. Likely further. 7568 if test -x /sbin/sysctl; then 7569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7570 elif test -x /usr/sbin/sysctl; then 7571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7572 else 7573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7574 fi 7575 # And add a safety zone 7576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7578 ;; 7579 7580 interix*) 7581 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7582 lt_cv_sys_max_cmd_len=196608 7583 ;; 7584 7585 os2*) 7586 # The test takes a long time on OS/2. 7587 lt_cv_sys_max_cmd_len=8192 7588 ;; 7589 7590 osf*) 7591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7593 # nice to cause kernel panics so lets avoid the loop below. 7594 # First set a reasonable default. 7595 lt_cv_sys_max_cmd_len=16384 7596 # 7597 if test -x /sbin/sysconfig; then 7598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7599 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7600 esac 7601 fi 7602 ;; 7603 sco3.2v5*) 7604 lt_cv_sys_max_cmd_len=102400 7605 ;; 7606 sysv5* | sco5v6* | sysv4.2uw2*) 7607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7608 if test -n "$kargmax"; then 7609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7610 else 7611 lt_cv_sys_max_cmd_len=32768 7612 fi 7613 ;; 7614 *) 7615 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7616 if test -n "$lt_cv_sys_max_cmd_len" && \ 7617 test undefined != "$lt_cv_sys_max_cmd_len"; then 7618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7620 else 7621 # Make teststring a little bigger before we do anything with it. 7622 # a 1K string should be a reasonable start. 7623 for i in 1 2 3 4 5 6 7 8; do 7624 teststring=$teststring$teststring 7625 done 7626 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7627 # If test is not a shell built-in, we'll probably end up computing a 7628 # maximum length that is only half of the actual maximum length, but 7629 # we can't tell. 7630 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7631 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7632 test 17 != "$i" # 1/2 MB should be enough 7633 do 7634 i=`expr $i + 1` 7635 teststring=$teststring$teststring 7636 done 7637 # Only check the string length outside the loop. 7638 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7639 teststring= 7640 # Add a significant safety factor because C++ compilers can tack on 7641 # massive amounts of additional arguments before passing them to the 7642 # linker. It appears as though 1/2 is a usable value. 7643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7644 fi 7645 ;; 7646 esac 7647 7648fi 7649 7650if test -n "$lt_cv_sys_max_cmd_len"; then 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7652$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7653else 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7655$as_echo "none" >&6; } 7656fi 7657max_cmd_len=$lt_cv_sys_max_cmd_len 7658 7659 7660 7661 7662 7663 7664: ${CP="cp -f"} 7665: ${MV="mv -f"} 7666: ${RM="rm -f"} 7667 7668if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7669 lt_unset=unset 7670else 7671 lt_unset=false 7672fi 7673 7674 7675 7676 7677 7678# test EBCDIC or ASCII 7679case `echo X|tr X '\101'` in 7680 A) # ASCII based system 7681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7682 lt_SP2NL='tr \040 \012' 7683 lt_NL2SP='tr \015\012 \040\040' 7684 ;; 7685 *) # EBCDIC based system 7686 lt_SP2NL='tr \100 \n' 7687 lt_NL2SP='tr \r\n \100\100' 7688 ;; 7689esac 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7700$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7701if ${lt_cv_to_host_file_cmd+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 case $host in 7705 *-*-mingw* ) 7706 case $build in 7707 *-*-mingw* ) # actually msys 7708 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7709 ;; 7710 *-*-cygwin* ) 7711 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7712 ;; 7713 * ) # otherwise, assume *nix 7714 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7715 ;; 7716 esac 7717 ;; 7718 *-*-cygwin* ) 7719 case $build in 7720 *-*-mingw* ) # actually msys 7721 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7722 ;; 7723 *-*-cygwin* ) 7724 lt_cv_to_host_file_cmd=func_convert_file_noop 7725 ;; 7726 * ) # otherwise, assume *nix 7727 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7728 ;; 7729 esac 7730 ;; 7731 * ) # unhandled hosts (and "normal" native builds) 7732 lt_cv_to_host_file_cmd=func_convert_file_noop 7733 ;; 7734esac 7735 7736fi 7737 7738to_host_file_cmd=$lt_cv_to_host_file_cmd 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7740$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7741 7742 7743 7744 7745 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7747$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7748if ${lt_cv_to_tool_file_cmd+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 #assume ordinary cross tools, or native build. 7752lt_cv_to_tool_file_cmd=func_convert_file_noop 7753case $host in 7754 *-*-mingw* ) 7755 case $build in 7756 *-*-mingw* ) # actually msys 7757 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7758 ;; 7759 esac 7760 ;; 7761esac 7762 7763fi 7764 7765to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7767$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7768 7769 7770 7771 7772 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7774$as_echo_n "checking for $LD option to reload object files... " >&6; } 7775if ${lt_cv_ld_reload_flag+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 lt_cv_ld_reload_flag='-r' 7779fi 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7781$as_echo "$lt_cv_ld_reload_flag" >&6; } 7782reload_flag=$lt_cv_ld_reload_flag 7783case $reload_flag in 7784"" | " "*) ;; 7785*) reload_flag=" $reload_flag" ;; 7786esac 7787reload_cmds='$LD$reload_flag -o $output$reload_objs' 7788case $host_os in 7789 cygwin* | mingw* | pw32* | cegcc*) 7790 if test yes != "$GCC"; then 7791 reload_cmds=false 7792 fi 7793 ;; 7794 darwin*) 7795 if test yes = "$GCC"; then 7796 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7797 else 7798 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7799 fi 7800 ;; 7801esac 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811if test -n "$ac_tool_prefix"; then 7812 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7813set dummy ${ac_tool_prefix}objdump; ac_word=$2 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7815$as_echo_n "checking for $ac_word... " >&6; } 7816if ${ac_cv_prog_OBJDUMP+:} false; then : 7817 $as_echo_n "(cached) " >&6 7818else 7819 if test -n "$OBJDUMP"; then 7820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7821else 7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7823for as_dir in $PATH 7824do 7825 IFS=$as_save_IFS 7826 test -z "$as_dir" && as_dir=. 7827 for ac_exec_ext in '' $ac_executable_extensions; do 7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7829 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7831 break 2 7832 fi 7833done 7834 done 7835IFS=$as_save_IFS 7836 7837fi 7838fi 7839OBJDUMP=$ac_cv_prog_OBJDUMP 7840if test -n "$OBJDUMP"; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7842$as_echo "$OBJDUMP" >&6; } 7843else 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7845$as_echo "no" >&6; } 7846fi 7847 7848 7849fi 7850if test -z "$ac_cv_prog_OBJDUMP"; then 7851 ac_ct_OBJDUMP=$OBJDUMP 7852 # Extract the first word of "objdump", so it can be a program name with args. 7853set dummy objdump; ac_word=$2 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7855$as_echo_n "checking for $ac_word... " >&6; } 7856if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 if test -n "$ac_ct_OBJDUMP"; then 7860 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7861else 7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7863for as_dir in $PATH 7864do 7865 IFS=$as_save_IFS 7866 test -z "$as_dir" && as_dir=. 7867 for ac_exec_ext in '' $ac_executable_extensions; do 7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7869 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7871 break 2 7872 fi 7873done 7874 done 7875IFS=$as_save_IFS 7876 7877fi 7878fi 7879ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7880if test -n "$ac_ct_OBJDUMP"; then 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7882$as_echo "$ac_ct_OBJDUMP" >&6; } 7883else 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7885$as_echo "no" >&6; } 7886fi 7887 7888 if test "x$ac_ct_OBJDUMP" = x; then 7889 OBJDUMP="false" 7890 else 7891 case $cross_compiling:$ac_tool_warned in 7892yes:) 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7895ac_tool_warned=yes ;; 7896esac 7897 OBJDUMP=$ac_ct_OBJDUMP 7898 fi 7899else 7900 OBJDUMP="$ac_cv_prog_OBJDUMP" 7901fi 7902 7903test -z "$OBJDUMP" && OBJDUMP=objdump 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7914$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7915if ${lt_cv_deplibs_check_method+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917else 7918 lt_cv_file_magic_cmd='$MAGIC_CMD' 7919lt_cv_file_magic_test_file= 7920lt_cv_deplibs_check_method='unknown' 7921# Need to set the preceding variable on all platforms that support 7922# interlibrary dependencies. 7923# 'none' -- dependencies not supported. 7924# 'unknown' -- same as none, but documents that we really don't know. 7925# 'pass_all' -- all dependencies passed with no checks. 7926# 'test_compile' -- check by making test program. 7927# 'file_magic [[regex]]' -- check by looking for files in library path 7928# that responds to the $file_magic_cmd with a given extended regex. 7929# If you have 'file' or equivalent on your system and you're not sure 7930# whether 'pass_all' will *always* work, you probably want this one. 7931 7932case $host_os in 7933aix[4-9]*) 7934 lt_cv_deplibs_check_method=pass_all 7935 ;; 7936 7937beos*) 7938 lt_cv_deplibs_check_method=pass_all 7939 ;; 7940 7941bsdi[45]*) 7942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7943 lt_cv_file_magic_cmd='/usr/bin/file -L' 7944 lt_cv_file_magic_test_file=/shlib/libc.so 7945 ;; 7946 7947cygwin*) 7948 # func_win32_libid is a shell function defined in ltmain.sh 7949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7950 lt_cv_file_magic_cmd='func_win32_libid' 7951 ;; 7952 7953mingw* | pw32*) 7954 # Base MSYS/MinGW do not provide the 'file' command needed by 7955 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7956 # unless we find 'file', for example because we are cross-compiling. 7957 if ( file / ) >/dev/null 2>&1; then 7958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7959 lt_cv_file_magic_cmd='func_win32_libid' 7960 else 7961 # Keep this pattern in sync with the one in func_win32_libid. 7962 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7963 lt_cv_file_magic_cmd='$OBJDUMP -f' 7964 fi 7965 ;; 7966 7967cegcc*) 7968 # use the weaker test based on 'objdump'. See mingw*. 7969 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7970 lt_cv_file_magic_cmd='$OBJDUMP -f' 7971 ;; 7972 7973darwin* | rhapsody*) 7974 lt_cv_deplibs_check_method=pass_all 7975 ;; 7976 7977freebsd* | dragonfly*) 7978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7979 case $host_cpu in 7980 i*86 ) 7981 # Not sure whether the presence of OpenBSD here was a mistake. 7982 # Let's accept both of them until this is cleared up. 7983 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7984 lt_cv_file_magic_cmd=/usr/bin/file 7985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7986 ;; 7987 esac 7988 else 7989 lt_cv_deplibs_check_method=pass_all 7990 fi 7991 ;; 7992 7993haiku*) 7994 lt_cv_deplibs_check_method=pass_all 7995 ;; 7996 7997hpux10.20* | hpux11*) 7998 lt_cv_file_magic_cmd=/usr/bin/file 7999 case $host_cpu in 8000 ia64*) 8001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8003 ;; 8004 hppa*64*) 8005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 8006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8007 ;; 8008 *) 8009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8010 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8011 ;; 8012 esac 8013 ;; 8014 8015interix[3-9]*) 8016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8018 ;; 8019 8020irix5* | irix6* | nonstopux*) 8021 case $LD in 8022 *-32|*"-32 ") libmagic=32-bit;; 8023 *-n32|*"-n32 ") libmagic=N32;; 8024 *-64|*"-64 ") libmagic=64-bit;; 8025 *) libmagic=never-match;; 8026 esac 8027 lt_cv_deplibs_check_method=pass_all 8028 ;; 8029 8030# This must be glibc/ELF. 8031linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8032 lt_cv_deplibs_check_method=pass_all 8033 ;; 8034 8035netbsd*) 8036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8038 else 8039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8040 fi 8041 ;; 8042 8043newos6*) 8044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8045 lt_cv_file_magic_cmd=/usr/bin/file 8046 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8047 ;; 8048 8049*nto* | *qnx*) 8050 lt_cv_deplibs_check_method=pass_all 8051 ;; 8052 8053openbsd* | bitrig*) 8054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8056 else 8057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8058 fi 8059 ;; 8060 8061osf3* | osf4* | osf5*) 8062 lt_cv_deplibs_check_method=pass_all 8063 ;; 8064 8065rdos*) 8066 lt_cv_deplibs_check_method=pass_all 8067 ;; 8068 8069solaris*) 8070 lt_cv_deplibs_check_method=pass_all 8071 ;; 8072 8073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8074 lt_cv_deplibs_check_method=pass_all 8075 ;; 8076 8077sysv4 | sysv4.3*) 8078 case $host_vendor in 8079 motorola) 8080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 8081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8082 ;; 8083 ncr) 8084 lt_cv_deplibs_check_method=pass_all 8085 ;; 8086 sequent) 8087 lt_cv_file_magic_cmd='/bin/file' 8088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8089 ;; 8090 sni) 8091 lt_cv_file_magic_cmd='/bin/file' 8092 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8093 lt_cv_file_magic_test_file=/lib/libc.so 8094 ;; 8095 siemens) 8096 lt_cv_deplibs_check_method=pass_all 8097 ;; 8098 pc) 8099 lt_cv_deplibs_check_method=pass_all 8100 ;; 8101 esac 8102 ;; 8103 8104tpf*) 8105 lt_cv_deplibs_check_method=pass_all 8106 ;; 8107os2*) 8108 lt_cv_deplibs_check_method=pass_all 8109 ;; 8110esac 8111 8112fi 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8114$as_echo "$lt_cv_deplibs_check_method" >&6; } 8115 8116file_magic_glob= 8117want_nocaseglob=no 8118if test "$build" = "$host"; then 8119 case $host_os in 8120 mingw* | pw32*) 8121 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8122 want_nocaseglob=yes 8123 else 8124 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8125 fi 8126 ;; 8127 esac 8128fi 8129 8130file_magic_cmd=$lt_cv_file_magic_cmd 8131deplibs_check_method=$lt_cv_deplibs_check_method 8132test -z "$deplibs_check_method" && deplibs_check_method=unknown 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155if test -n "$ac_tool_prefix"; then 8156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8157set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8159$as_echo_n "checking for $ac_word... " >&6; } 8160if ${ac_cv_prog_DLLTOOL+:} false; then : 8161 $as_echo_n "(cached) " >&6 8162else 8163 if test -n "$DLLTOOL"; then 8164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8165else 8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8167for as_dir in $PATH 8168do 8169 IFS=$as_save_IFS 8170 test -z "$as_dir" && as_dir=. 8171 for ac_exec_ext in '' $ac_executable_extensions; do 8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8173 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8175 break 2 8176 fi 8177done 8178 done 8179IFS=$as_save_IFS 8180 8181fi 8182fi 8183DLLTOOL=$ac_cv_prog_DLLTOOL 8184if test -n "$DLLTOOL"; then 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8186$as_echo "$DLLTOOL" >&6; } 8187else 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8189$as_echo "no" >&6; } 8190fi 8191 8192 8193fi 8194if test -z "$ac_cv_prog_DLLTOOL"; then 8195 ac_ct_DLLTOOL=$DLLTOOL 8196 # Extract the first word of "dlltool", so it can be a program name with args. 8197set dummy dlltool; ac_word=$2 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8199$as_echo_n "checking for $ac_word... " >&6; } 8200if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8201 $as_echo_n "(cached) " >&6 8202else 8203 if test -n "$ac_ct_DLLTOOL"; then 8204 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8205else 8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8207for as_dir in $PATH 8208do 8209 IFS=$as_save_IFS 8210 test -z "$as_dir" && as_dir=. 8211 for ac_exec_ext in '' $ac_executable_extensions; do 8212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8213 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8215 break 2 8216 fi 8217done 8218 done 8219IFS=$as_save_IFS 8220 8221fi 8222fi 8223ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8224if test -n "$ac_ct_DLLTOOL"; then 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8226$as_echo "$ac_ct_DLLTOOL" >&6; } 8227else 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8229$as_echo "no" >&6; } 8230fi 8231 8232 if test "x$ac_ct_DLLTOOL" = x; then 8233 DLLTOOL="false" 8234 else 8235 case $cross_compiling:$ac_tool_warned in 8236yes:) 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8239ac_tool_warned=yes ;; 8240esac 8241 DLLTOOL=$ac_ct_DLLTOOL 8242 fi 8243else 8244 DLLTOOL="$ac_cv_prog_DLLTOOL" 8245fi 8246 8247test -z "$DLLTOOL" && DLLTOOL=dlltool 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8259$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8260if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262else 8263 lt_cv_sharedlib_from_linklib_cmd='unknown' 8264 8265case $host_os in 8266cygwin* | mingw* | pw32* | cegcc*) 8267 # two different shell functions defined in ltmain.sh; 8268 # decide which one to use based on capabilities of $DLLTOOL 8269 case `$DLLTOOL --help 2>&1` in 8270 *--identify-strict*) 8271 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8272 ;; 8273 *) 8274 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8275 ;; 8276 esac 8277 ;; 8278*) 8279 # fallback: assume linklib IS sharedlib 8280 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8281 ;; 8282esac 8283 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8286$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8287sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8288test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8289 8290 8291 8292 8293 8294 8295 8296if test -n "$ac_tool_prefix"; then 8297 for ac_prog in ar 8298 do 8299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8300set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8302$as_echo_n "checking for $ac_word... " >&6; } 8303if ${ac_cv_prog_AR+:} false; then : 8304 $as_echo_n "(cached) " >&6 8305else 8306 if test -n "$AR"; then 8307 ac_cv_prog_AR="$AR" # Let the user override the test. 8308else 8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8310for as_dir in $PATH 8311do 8312 IFS=$as_save_IFS 8313 test -z "$as_dir" && as_dir=. 8314 for ac_exec_ext in '' $ac_executable_extensions; do 8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8316 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8318 break 2 8319 fi 8320done 8321 done 8322IFS=$as_save_IFS 8323 8324fi 8325fi 8326AR=$ac_cv_prog_AR 8327if test -n "$AR"; then 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8329$as_echo "$AR" >&6; } 8330else 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8332$as_echo "no" >&6; } 8333fi 8334 8335 8336 test -n "$AR" && break 8337 done 8338fi 8339if test -z "$AR"; then 8340 ac_ct_AR=$AR 8341 for ac_prog in ar 8342do 8343 # Extract the first word of "$ac_prog", so it can be a program name with args. 8344set dummy $ac_prog; ac_word=$2 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8346$as_echo_n "checking for $ac_word... " >&6; } 8347if ${ac_cv_prog_ac_ct_AR+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 if test -n "$ac_ct_AR"; then 8351 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8352else 8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8354for as_dir in $PATH 8355do 8356 IFS=$as_save_IFS 8357 test -z "$as_dir" && as_dir=. 8358 for ac_exec_ext in '' $ac_executable_extensions; do 8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8360 ac_cv_prog_ac_ct_AR="$ac_prog" 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8362 break 2 8363 fi 8364done 8365 done 8366IFS=$as_save_IFS 8367 8368fi 8369fi 8370ac_ct_AR=$ac_cv_prog_ac_ct_AR 8371if test -n "$ac_ct_AR"; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8373$as_echo "$ac_ct_AR" >&6; } 8374else 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376$as_echo "no" >&6; } 8377fi 8378 8379 8380 test -n "$ac_ct_AR" && break 8381done 8382 8383 if test "x$ac_ct_AR" = x; then 8384 AR="false" 8385 else 8386 case $cross_compiling:$ac_tool_warned in 8387yes:) 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8390ac_tool_warned=yes ;; 8391esac 8392 AR=$ac_ct_AR 8393 fi 8394fi 8395 8396: ${AR=ar} 8397: ${AR_FLAGS=cru} 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8410$as_echo_n "checking for archiver @FILE support... " >&6; } 8411if ${lt_cv_ar_at_file+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 lt_cv_ar_at_file=no 8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8416/* end confdefs.h. */ 8417 8418int 8419main () 8420{ 8421 8422 ; 8423 return 0; 8424} 8425_ACEOF 8426if ac_fn_c_try_compile "$LINENO"; then : 8427 echo conftest.$ac_objext > conftest.lst 8428 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8430 (eval $lt_ar_try) 2>&5 8431 ac_status=$? 8432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8433 test $ac_status = 0; } 8434 if test 0 -eq "$ac_status"; then 8435 # Ensure the archiver fails upon bogus file names. 8436 rm -f conftest.$ac_objext libconftest.a 8437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8438 (eval $lt_ar_try) 2>&5 8439 ac_status=$? 8440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8441 test $ac_status = 0; } 8442 if test 0 -ne "$ac_status"; then 8443 lt_cv_ar_at_file=@ 8444 fi 8445 fi 8446 rm -f conftest.* libconftest.a 8447 8448fi 8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8450 8451fi 8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8453$as_echo "$lt_cv_ar_at_file" >&6; } 8454 8455if test no = "$lt_cv_ar_at_file"; then 8456 archiver_list_spec= 8457else 8458 archiver_list_spec=$lt_cv_ar_at_file 8459fi 8460 8461 8462 8463 8464 8465 8466 8467if test -n "$ac_tool_prefix"; then 8468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8469set dummy ${ac_tool_prefix}strip; ac_word=$2 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8471$as_echo_n "checking for $ac_word... " >&6; } 8472if ${ac_cv_prog_STRIP+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 if test -n "$STRIP"; then 8476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8477else 8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8479for as_dir in $PATH 8480do 8481 IFS=$as_save_IFS 8482 test -z "$as_dir" && as_dir=. 8483 for ac_exec_ext in '' $ac_executable_extensions; do 8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8485 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8487 break 2 8488 fi 8489done 8490 done 8491IFS=$as_save_IFS 8492 8493fi 8494fi 8495STRIP=$ac_cv_prog_STRIP 8496if test -n "$STRIP"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8498$as_echo "$STRIP" >&6; } 8499else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501$as_echo "no" >&6; } 8502fi 8503 8504 8505fi 8506if test -z "$ac_cv_prog_STRIP"; then 8507 ac_ct_STRIP=$STRIP 8508 # Extract the first word of "strip", so it can be a program name with args. 8509set dummy strip; ac_word=$2 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8511$as_echo_n "checking for $ac_word... " >&6; } 8512if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 if test -n "$ac_ct_STRIP"; then 8516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8517else 8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8519for as_dir in $PATH 8520do 8521 IFS=$as_save_IFS 8522 test -z "$as_dir" && as_dir=. 8523 for ac_exec_ext in '' $ac_executable_extensions; do 8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8525 ac_cv_prog_ac_ct_STRIP="strip" 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8527 break 2 8528 fi 8529done 8530 done 8531IFS=$as_save_IFS 8532 8533fi 8534fi 8535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8536if test -n "$ac_ct_STRIP"; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8538$as_echo "$ac_ct_STRIP" >&6; } 8539else 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8541$as_echo "no" >&6; } 8542fi 8543 8544 if test "x$ac_ct_STRIP" = x; then 8545 STRIP=":" 8546 else 8547 case $cross_compiling:$ac_tool_warned in 8548yes:) 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8551ac_tool_warned=yes ;; 8552esac 8553 STRIP=$ac_ct_STRIP 8554 fi 8555else 8556 STRIP="$ac_cv_prog_STRIP" 8557fi 8558 8559test -z "$STRIP" && STRIP=: 8560 8561 8562 8563 8564 8565 8566if test -n "$ac_tool_prefix"; then 8567 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8568set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8570$as_echo_n "checking for $ac_word... " >&6; } 8571if ${ac_cv_prog_RANLIB+:} false; then : 8572 $as_echo_n "(cached) " >&6 8573else 8574 if test -n "$RANLIB"; then 8575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8576else 8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8578for as_dir in $PATH 8579do 8580 IFS=$as_save_IFS 8581 test -z "$as_dir" && as_dir=. 8582 for ac_exec_ext in '' $ac_executable_extensions; do 8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8584 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8586 break 2 8587 fi 8588done 8589 done 8590IFS=$as_save_IFS 8591 8592fi 8593fi 8594RANLIB=$ac_cv_prog_RANLIB 8595if test -n "$RANLIB"; then 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8597$as_echo "$RANLIB" >&6; } 8598else 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8600$as_echo "no" >&6; } 8601fi 8602 8603 8604fi 8605if test -z "$ac_cv_prog_RANLIB"; then 8606 ac_ct_RANLIB=$RANLIB 8607 # Extract the first word of "ranlib", so it can be a program name with args. 8608set dummy ranlib; ac_word=$2 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8610$as_echo_n "checking for $ac_word... " >&6; } 8611if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613else 8614 if test -n "$ac_ct_RANLIB"; then 8615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8616else 8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8618for as_dir in $PATH 8619do 8620 IFS=$as_save_IFS 8621 test -z "$as_dir" && as_dir=. 8622 for ac_exec_ext in '' $ac_executable_extensions; do 8623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8624 ac_cv_prog_ac_ct_RANLIB="ranlib" 8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8626 break 2 8627 fi 8628done 8629 done 8630IFS=$as_save_IFS 8631 8632fi 8633fi 8634ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8635if test -n "$ac_ct_RANLIB"; then 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8637$as_echo "$ac_ct_RANLIB" >&6; } 8638else 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8640$as_echo "no" >&6; } 8641fi 8642 8643 if test "x$ac_ct_RANLIB" = x; then 8644 RANLIB=":" 8645 else 8646 case $cross_compiling:$ac_tool_warned in 8647yes:) 8648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8650ac_tool_warned=yes ;; 8651esac 8652 RANLIB=$ac_ct_RANLIB 8653 fi 8654else 8655 RANLIB="$ac_cv_prog_RANLIB" 8656fi 8657 8658test -z "$RANLIB" && RANLIB=: 8659 8660 8661 8662 8663 8664 8665# Determine commands to create old-style static archives. 8666old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8667old_postinstall_cmds='chmod 644 $oldlib' 8668old_postuninstall_cmds= 8669 8670if test -n "$RANLIB"; then 8671 case $host_os in 8672 bitrig* | openbsd*) 8673 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8674 ;; 8675 *) 8676 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8677 ;; 8678 esac 8679 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8680fi 8681 8682case $host_os in 8683 darwin*) 8684 lock_old_archive_extraction=yes ;; 8685 *) 8686 lock_old_archive_extraction=no ;; 8687esac 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727# If no C compiler was specified, use CC. 8728LTCC=${LTCC-"$CC"} 8729 8730# If no C compiler flags were specified, use CFLAGS. 8731LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8732 8733# Allow CC to be a program name with arguments. 8734compiler=$CC 8735 8736 8737# Check for command to grab the raw symbol name followed by C symbol from nm. 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8739$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8740if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 8744# These are sane defaults that work on at least a few old systems. 8745# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8746 8747# Character class describing NM global symbol codes. 8748symcode='[BCDEGRST]' 8749 8750# Regexp to match symbols that can be accessed directly from C. 8751sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8752 8753# Define system-specific variables. 8754case $host_os in 8755aix*) 8756 symcode='[BCDT]' 8757 ;; 8758cygwin* | mingw* | pw32* | cegcc*) 8759 symcode='[ABCDGISTW]' 8760 ;; 8761hpux*) 8762 if test ia64 = "$host_cpu"; then 8763 symcode='[ABCDEGRST]' 8764 fi 8765 ;; 8766irix* | nonstopux*) 8767 symcode='[BCDEGRST]' 8768 ;; 8769osf*) 8770 symcode='[BCDEGQRST]' 8771 ;; 8772solaris*) 8773 symcode='[BDRT]' 8774 ;; 8775sco3.2v5*) 8776 symcode='[DT]' 8777 ;; 8778sysv4.2uw2*) 8779 symcode='[DT]' 8780 ;; 8781sysv5* | sco5v6* | unixware* | OpenUNIX*) 8782 symcode='[ABDT]' 8783 ;; 8784sysv4) 8785 symcode='[DFNSTU]' 8786 ;; 8787esac 8788 8789# If we're using GNU nm, then use its standard symbol codes. 8790case `$NM -V 2>&1` in 8791*GNU* | *'with BFD'*) 8792 symcode='[ABCDGIRSTW]' ;; 8793esac 8794 8795if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8796 # Gets list of data symbols to import. 8797 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8798 # Adjust the below global symbol transforms to fixup imported variables. 8799 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8800 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8801 lt_c_name_lib_hook="\ 8802 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8803 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8804else 8805 # Disable hooks by default. 8806 lt_cv_sys_global_symbol_to_import= 8807 lt_cdecl_hook= 8808 lt_c_name_hook= 8809 lt_c_name_lib_hook= 8810fi 8811 8812# Transform an extracted symbol line into a proper C declaration. 8813# Some systems (esp. on ia64) link data and code symbols differently, 8814# so use this general approach. 8815lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8816$lt_cdecl_hook\ 8817" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8818" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8819 8820# Transform an extracted symbol line into symbol name and symbol address 8821lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8822$lt_c_name_hook\ 8823" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8824" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8825 8826# Transform an extracted symbol line into symbol name with lib prefix and 8827# symbol address. 8828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8829$lt_c_name_lib_hook\ 8830" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8831" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8832" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8833 8834# Handle CRLF in mingw tool chain 8835opt_cr= 8836case $build_os in 8837mingw*) 8838 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8839 ;; 8840esac 8841 8842# Try without a prefix underscore, then with it. 8843for ac_symprfx in "" "_"; do 8844 8845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8846 symxfrm="\\1 $ac_symprfx\\2 \\2" 8847 8848 # Write the raw and C identifiers. 8849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8850 # Fake it for dumpbin and say T for any non-static function, 8851 # D for any global variable and I for any imported variable. 8852 # Also find C++ and __fastcall symbols from MSVC++, 8853 # which start with @ or ?. 8854 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8855" {last_section=section; section=\$ 3};"\ 8856" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8857" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8858" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8859" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8860" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8861" \$ 0!~/External *\|/{next};"\ 8862" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8863" {if(hide[section]) next};"\ 8864" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8865" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8866" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8867" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8868" ' prfx=^$ac_symprfx" 8869 else 8870 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8871 fi 8872 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8873 8874 # Check to see that the pipe works correctly. 8875 pipe_works=no 8876 8877 rm -f conftest* 8878 cat > conftest.$ac_ext <<_LT_EOF 8879#ifdef __cplusplus 8880extern "C" { 8881#endif 8882char nm_test_var; 8883void nm_test_func(void); 8884void nm_test_func(void){} 8885#ifdef __cplusplus 8886} 8887#endif 8888int main(){nm_test_var='a';nm_test_func();return(0);} 8889_LT_EOF 8890 8891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8892 (eval $ac_compile) 2>&5 8893 ac_status=$? 8894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8895 test $ac_status = 0; }; then 8896 # Now try to grab the symbols. 8897 nlist=conftest.nm 8898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8899 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8900 ac_status=$? 8901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8902 test $ac_status = 0; } && test -s "$nlist"; then 8903 # Try sorting and uniquifying the output. 8904 if sort "$nlist" | uniq > "$nlist"T; then 8905 mv -f "$nlist"T "$nlist" 8906 else 8907 rm -f "$nlist"T 8908 fi 8909 8910 # Make sure that we snagged all the symbols we need. 8911 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8912 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8913 cat <<_LT_EOF > conftest.$ac_ext 8914/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8915#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8916/* DATA imports from DLLs on WIN32 can't be const, because runtime 8917 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8918# define LT_DLSYM_CONST 8919#elif defined __osf__ 8920/* This system does not cope well with relocations in const data. */ 8921# define LT_DLSYM_CONST 8922#else 8923# define LT_DLSYM_CONST const 8924#endif 8925 8926#ifdef __cplusplus 8927extern "C" { 8928#endif 8929 8930_LT_EOF 8931 # Now generate the symbol file. 8932 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8933 8934 cat <<_LT_EOF >> conftest.$ac_ext 8935 8936/* The mapping between symbol names and symbols. */ 8937LT_DLSYM_CONST struct { 8938 const char *name; 8939 void *address; 8940} 8941lt__PROGRAM__LTX_preloaded_symbols[] = 8942{ 8943 { "@PROGRAM@", (void *) 0 }, 8944_LT_EOF 8945 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8946 cat <<\_LT_EOF >> conftest.$ac_ext 8947 {0, (void *) 0} 8948}; 8949 8950/* This works around a problem in FreeBSD linker */ 8951#ifdef FREEBSD_WORKAROUND 8952static const void *lt_preloaded_setup() { 8953 return lt__PROGRAM__LTX_preloaded_symbols; 8954} 8955#endif 8956 8957#ifdef __cplusplus 8958} 8959#endif 8960_LT_EOF 8961 # Now try linking the two files. 8962 mv conftest.$ac_objext conftstm.$ac_objext 8963 lt_globsym_save_LIBS=$LIBS 8964 lt_globsym_save_CFLAGS=$CFLAGS 8965 LIBS=conftstm.$ac_objext 8966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8968 (eval $ac_link) 2>&5 8969 ac_status=$? 8970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8971 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8972 pipe_works=yes 8973 fi 8974 LIBS=$lt_globsym_save_LIBS 8975 CFLAGS=$lt_globsym_save_CFLAGS 8976 else 8977 echo "cannot find nm_test_func in $nlist" >&5 8978 fi 8979 else 8980 echo "cannot find nm_test_var in $nlist" >&5 8981 fi 8982 else 8983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8984 fi 8985 else 8986 echo "$progname: failed program was:" >&5 8987 cat conftest.$ac_ext >&5 8988 fi 8989 rm -rf conftest* conftst* 8990 8991 # Do not use the global_symbol_pipe unless it works. 8992 if test yes = "$pipe_works"; then 8993 break 8994 else 8995 lt_cv_sys_global_symbol_pipe= 8996 fi 8997done 8998 8999fi 9000 9001if test -z "$lt_cv_sys_global_symbol_pipe"; then 9002 lt_cv_sys_global_symbol_to_cdecl= 9003fi 9004if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9006$as_echo "failed" >&6; } 9007else 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9009$as_echo "ok" >&6; } 9010fi 9011 9012# Response file support. 9013if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9014 nm_file_list_spec='@' 9015elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9016 nm_file_list_spec='@' 9017fi 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9056$as_echo_n "checking for sysroot... " >&6; } 9057 9058# Check whether --with-sysroot was given. 9059if test "${with_sysroot+set}" = set; then : 9060 withval=$with_sysroot; 9061else 9062 with_sysroot=no 9063fi 9064 9065 9066lt_sysroot= 9067case $with_sysroot in #( 9068 yes) 9069 if test yes = "$GCC"; then 9070 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9071 fi 9072 ;; #( 9073 /*) 9074 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9075 ;; #( 9076 no|'') 9077 ;; #( 9078 *) 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9080$as_echo "$with_sysroot" >&6; } 9081 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9082 ;; 9083esac 9084 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9086$as_echo "${lt_sysroot:-no}" >&6; } 9087 9088 9089 9090 9091 9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9093$as_echo_n "checking for a working dd... " >&6; } 9094if ${ac_cv_path_lt_DD+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 printf 0123456789abcdef0123456789abcdef >conftest.i 9098cat conftest.i conftest.i >conftest2.i 9099: ${lt_DD:=$DD} 9100if test -z "$lt_DD"; then 9101 ac_path_lt_DD_found=false 9102 # Loop through the user's path and test for each of PROGNAME-LIST 9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9104for as_dir in $PATH 9105do 9106 IFS=$as_save_IFS 9107 test -z "$as_dir" && as_dir=. 9108 for ac_prog in dd; do 9109 for ac_exec_ext in '' $ac_executable_extensions; do 9110 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9111 as_fn_executable_p "$ac_path_lt_DD" || continue 9112if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9113 cmp -s conftest.i conftest.out \ 9114 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9115fi 9116 $ac_path_lt_DD_found && break 3 9117 done 9118 done 9119 done 9120IFS=$as_save_IFS 9121 if test -z "$ac_cv_path_lt_DD"; then 9122 : 9123 fi 9124else 9125 ac_cv_path_lt_DD=$lt_DD 9126fi 9127 9128rm -f conftest.i conftest2.i conftest.out 9129fi 9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9131$as_echo "$ac_cv_path_lt_DD" >&6; } 9132 9133 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9135$as_echo_n "checking how to truncate binary pipes... " >&6; } 9136if ${lt_cv_truncate_bin+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138else 9139 printf 0123456789abcdef0123456789abcdef >conftest.i 9140cat conftest.i conftest.i >conftest2.i 9141lt_cv_truncate_bin= 9142if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9143 cmp -s conftest.i conftest.out \ 9144 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9145fi 9146rm -f conftest.i conftest2.i conftest.out 9147test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9148fi 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9150$as_echo "$lt_cv_truncate_bin" >&6; } 9151 9152 9153 9154 9155 9156 9157 9158# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9159func_cc_basename () 9160{ 9161 for cc_temp in $*""; do 9162 case $cc_temp in 9163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9165 \-*) ;; 9166 *) break;; 9167 esac 9168 done 9169 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9170} 9171 9172# Check whether --enable-libtool-lock was given. 9173if test "${enable_libtool_lock+set}" = set; then : 9174 enableval=$enable_libtool_lock; 9175fi 9176 9177test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9178 9179# Some flags need to be propagated to the compiler or linker for good 9180# libtool support. 9181case $host in 9182ia64-*-hpux*) 9183 # Find out what ABI is being produced by ac_compile, and set mode 9184 # options accordingly. 9185 echo 'int i;' > conftest.$ac_ext 9186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9187 (eval $ac_compile) 2>&5 9188 ac_status=$? 9189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9190 test $ac_status = 0; }; then 9191 case `/usr/bin/file conftest.$ac_objext` in 9192 *ELF-32*) 9193 HPUX_IA64_MODE=32 9194 ;; 9195 *ELF-64*) 9196 HPUX_IA64_MODE=64 9197 ;; 9198 esac 9199 fi 9200 rm -rf conftest* 9201 ;; 9202*-*-irix6*) 9203 # Find out what ABI is being produced by ac_compile, and set linker 9204 # options accordingly. 9205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9207 (eval $ac_compile) 2>&5 9208 ac_status=$? 9209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9210 test $ac_status = 0; }; then 9211 if test yes = "$lt_cv_prog_gnu_ld"; then 9212 case `/usr/bin/file conftest.$ac_objext` in 9213 *32-bit*) 9214 LD="${LD-ld} -melf32bsmip" 9215 ;; 9216 *N32*) 9217 LD="${LD-ld} -melf32bmipn32" 9218 ;; 9219 *64-bit*) 9220 LD="${LD-ld} -melf64bmip" 9221 ;; 9222 esac 9223 else 9224 case `/usr/bin/file conftest.$ac_objext` in 9225 *32-bit*) 9226 LD="${LD-ld} -32" 9227 ;; 9228 *N32*) 9229 LD="${LD-ld} -n32" 9230 ;; 9231 *64-bit*) 9232 LD="${LD-ld} -64" 9233 ;; 9234 esac 9235 fi 9236 fi 9237 rm -rf conftest* 9238 ;; 9239 9240mips64*-*linux*) 9241 # Find out what ABI is being produced by ac_compile, and set linker 9242 # options accordingly. 9243 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9245 (eval $ac_compile) 2>&5 9246 ac_status=$? 9247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9248 test $ac_status = 0; }; then 9249 emul=elf 9250 case `/usr/bin/file conftest.$ac_objext` in 9251 *32-bit*) 9252 emul="${emul}32" 9253 ;; 9254 *64-bit*) 9255 emul="${emul}64" 9256 ;; 9257 esac 9258 case `/usr/bin/file conftest.$ac_objext` in 9259 *MSB*) 9260 emul="${emul}btsmip" 9261 ;; 9262 *LSB*) 9263 emul="${emul}ltsmip" 9264 ;; 9265 esac 9266 case `/usr/bin/file conftest.$ac_objext` in 9267 *N32*) 9268 emul="${emul}n32" 9269 ;; 9270 esac 9271 LD="${LD-ld} -m $emul" 9272 fi 9273 rm -rf conftest* 9274 ;; 9275 9276x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9277s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9278 # Find out what ABI is being produced by ac_compile, and set linker 9279 # options accordingly. Note that the listed cases only cover the 9280 # situations where additional linker options are needed (such as when 9281 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9282 # vice versa); the common cases where no linker options are needed do 9283 # not appear in the list. 9284 echo 'int i;' > conftest.$ac_ext 9285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9286 (eval $ac_compile) 2>&5 9287 ac_status=$? 9288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9289 test $ac_status = 0; }; then 9290 case `/usr/bin/file conftest.o` in 9291 *32-bit*) 9292 case $host in 9293 x86_64-*kfreebsd*-gnu) 9294 LD="${LD-ld} -m elf_i386_fbsd" 9295 ;; 9296 x86_64-*linux*) 9297 case `/usr/bin/file conftest.o` in 9298 *x86-64*) 9299 LD="${LD-ld} -m elf32_x86_64" 9300 ;; 9301 *) 9302 LD="${LD-ld} -m elf_i386" 9303 ;; 9304 esac 9305 ;; 9306 powerpc64le-*linux*) 9307 LD="${LD-ld} -m elf32lppclinux" 9308 ;; 9309 powerpc64-*linux*) 9310 LD="${LD-ld} -m elf32ppclinux" 9311 ;; 9312 s390x-*linux*) 9313 LD="${LD-ld} -m elf_s390" 9314 ;; 9315 sparc64-*linux*) 9316 LD="${LD-ld} -m elf32_sparc" 9317 ;; 9318 esac 9319 ;; 9320 *64-bit*) 9321 case $host in 9322 x86_64-*kfreebsd*-gnu) 9323 LD="${LD-ld} -m elf_x86_64_fbsd" 9324 ;; 9325 x86_64-*linux*) 9326 LD="${LD-ld} -m elf_x86_64" 9327 ;; 9328 powerpcle-*linux*) 9329 LD="${LD-ld} -m elf64lppc" 9330 ;; 9331 powerpc-*linux*) 9332 LD="${LD-ld} -m elf64ppc" 9333 ;; 9334 s390*-*linux*|s390*-*tpf*) 9335 LD="${LD-ld} -m elf64_s390" 9336 ;; 9337 sparc*-*linux*) 9338 LD="${LD-ld} -m elf64_sparc" 9339 ;; 9340 esac 9341 ;; 9342 esac 9343 fi 9344 rm -rf conftest* 9345 ;; 9346 9347*-*-sco3.2v5*) 9348 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9349 SAVE_CFLAGS=$CFLAGS 9350 CFLAGS="$CFLAGS -belf" 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9352$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9353if ${lt_cv_cc_needs_belf+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 ac_ext=c 9357ac_cpp='$CPP $CPPFLAGS' 9358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9360ac_compiler_gnu=$ac_cv_c_compiler_gnu 9361 9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363/* end confdefs.h. */ 9364 9365int 9366main () 9367{ 9368 9369 ; 9370 return 0; 9371} 9372_ACEOF 9373if ac_fn_c_try_link "$LINENO"; then : 9374 lt_cv_cc_needs_belf=yes 9375else 9376 lt_cv_cc_needs_belf=no 9377fi 9378rm -f core conftest.err conftest.$ac_objext \ 9379 conftest$ac_exeext conftest.$ac_ext 9380 ac_ext=c 9381ac_cpp='$CPP $CPPFLAGS' 9382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9384ac_compiler_gnu=$ac_cv_c_compiler_gnu 9385 9386fi 9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9388$as_echo "$lt_cv_cc_needs_belf" >&6; } 9389 if test yes != "$lt_cv_cc_needs_belf"; then 9390 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9391 CFLAGS=$SAVE_CFLAGS 9392 fi 9393 ;; 9394*-*solaris*) 9395 # Find out what ABI is being produced by ac_compile, and set linker 9396 # options accordingly. 9397 echo 'int i;' > conftest.$ac_ext 9398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9399 (eval $ac_compile) 2>&5 9400 ac_status=$? 9401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9402 test $ac_status = 0; }; then 9403 case `/usr/bin/file conftest.o` in 9404 *64-bit*) 9405 case $lt_cv_prog_gnu_ld in 9406 yes*) 9407 case $host in 9408 i?86-*-solaris*|x86_64-*-solaris*) 9409 LD="${LD-ld} -m elf_x86_64" 9410 ;; 9411 sparc*-*-solaris*) 9412 LD="${LD-ld} -m elf64_sparc" 9413 ;; 9414 esac 9415 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9416 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9417 LD=${LD-ld}_sol2 9418 fi 9419 ;; 9420 *) 9421 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9422 LD="${LD-ld} -64" 9423 fi 9424 ;; 9425 esac 9426 ;; 9427 esac 9428 fi 9429 rm -rf conftest* 9430 ;; 9431esac 9432 9433need_locks=$enable_libtool_lock 9434 9435if test -n "$ac_tool_prefix"; then 9436 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9437set dummy ${ac_tool_prefix}mt; ac_word=$2 9438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9439$as_echo_n "checking for $ac_word... " >&6; } 9440if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 if test -n "$MANIFEST_TOOL"; then 9444 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9445else 9446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9447for as_dir in $PATH 9448do 9449 IFS=$as_save_IFS 9450 test -z "$as_dir" && as_dir=. 9451 for ac_exec_ext in '' $ac_executable_extensions; do 9452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9453 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9455 break 2 9456 fi 9457done 9458 done 9459IFS=$as_save_IFS 9460 9461fi 9462fi 9463MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9464if test -n "$MANIFEST_TOOL"; then 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9466$as_echo "$MANIFEST_TOOL" >&6; } 9467else 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9469$as_echo "no" >&6; } 9470fi 9471 9472 9473fi 9474if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9475 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9476 # Extract the first word of "mt", so it can be a program name with args. 9477set dummy mt; ac_word=$2 9478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9479$as_echo_n "checking for $ac_word... " >&6; } 9480if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 if test -n "$ac_ct_MANIFEST_TOOL"; then 9484 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9485else 9486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9487for as_dir in $PATH 9488do 9489 IFS=$as_save_IFS 9490 test -z "$as_dir" && as_dir=. 9491 for ac_exec_ext in '' $ac_executable_extensions; do 9492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9493 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9495 break 2 9496 fi 9497done 9498 done 9499IFS=$as_save_IFS 9500 9501fi 9502fi 9503ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9504if test -n "$ac_ct_MANIFEST_TOOL"; then 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9506$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9507else 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9509$as_echo "no" >&6; } 9510fi 9511 9512 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9513 MANIFEST_TOOL=":" 9514 else 9515 case $cross_compiling:$ac_tool_warned in 9516yes:) 9517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9519ac_tool_warned=yes ;; 9520esac 9521 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9522 fi 9523else 9524 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9525fi 9526 9527test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9529$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9530if ${lt_cv_path_mainfest_tool+:} false; then : 9531 $as_echo_n "(cached) " >&6 9532else 9533 lt_cv_path_mainfest_tool=no 9534 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9535 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9536 cat conftest.err >&5 9537 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9538 lt_cv_path_mainfest_tool=yes 9539 fi 9540 rm -f conftest* 9541fi 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9543$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9544if test yes != "$lt_cv_path_mainfest_tool"; then 9545 MANIFEST_TOOL=: 9546fi 9547 9548 9549 9550 9551 9552 9553 case $host_os in 9554 rhapsody* | darwin*) 9555 if test -n "$ac_tool_prefix"; then 9556 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9557set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9559$as_echo_n "checking for $ac_word... " >&6; } 9560if ${ac_cv_prog_DSYMUTIL+:} false; then : 9561 $as_echo_n "(cached) " >&6 9562else 9563 if test -n "$DSYMUTIL"; then 9564 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9565else 9566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9567for as_dir in $PATH 9568do 9569 IFS=$as_save_IFS 9570 test -z "$as_dir" && as_dir=. 9571 for ac_exec_ext in '' $ac_executable_extensions; do 9572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9573 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9575 break 2 9576 fi 9577done 9578 done 9579IFS=$as_save_IFS 9580 9581fi 9582fi 9583DSYMUTIL=$ac_cv_prog_DSYMUTIL 9584if test -n "$DSYMUTIL"; then 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9586$as_echo "$DSYMUTIL" >&6; } 9587else 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9589$as_echo "no" >&6; } 9590fi 9591 9592 9593fi 9594if test -z "$ac_cv_prog_DSYMUTIL"; then 9595 ac_ct_DSYMUTIL=$DSYMUTIL 9596 # Extract the first word of "dsymutil", so it can be a program name with args. 9597set dummy dsymutil; ac_word=$2 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9599$as_echo_n "checking for $ac_word... " >&6; } 9600if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9601 $as_echo_n "(cached) " >&6 9602else 9603 if test -n "$ac_ct_DSYMUTIL"; then 9604 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9605else 9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9607for as_dir in $PATH 9608do 9609 IFS=$as_save_IFS 9610 test -z "$as_dir" && as_dir=. 9611 for ac_exec_ext in '' $ac_executable_extensions; do 9612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9613 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9615 break 2 9616 fi 9617done 9618 done 9619IFS=$as_save_IFS 9620 9621fi 9622fi 9623ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9624if test -n "$ac_ct_DSYMUTIL"; then 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9626$as_echo "$ac_ct_DSYMUTIL" >&6; } 9627else 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9629$as_echo "no" >&6; } 9630fi 9631 9632 if test "x$ac_ct_DSYMUTIL" = x; then 9633 DSYMUTIL=":" 9634 else 9635 case $cross_compiling:$ac_tool_warned in 9636yes:) 9637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9639ac_tool_warned=yes ;; 9640esac 9641 DSYMUTIL=$ac_ct_DSYMUTIL 9642 fi 9643else 9644 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9645fi 9646 9647 if test -n "$ac_tool_prefix"; then 9648 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9649set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9651$as_echo_n "checking for $ac_word... " >&6; } 9652if ${ac_cv_prog_NMEDIT+:} false; then : 9653 $as_echo_n "(cached) " >&6 9654else 9655 if test -n "$NMEDIT"; then 9656 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9657else 9658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9659for as_dir in $PATH 9660do 9661 IFS=$as_save_IFS 9662 test -z "$as_dir" && as_dir=. 9663 for ac_exec_ext in '' $ac_executable_extensions; do 9664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9665 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9667 break 2 9668 fi 9669done 9670 done 9671IFS=$as_save_IFS 9672 9673fi 9674fi 9675NMEDIT=$ac_cv_prog_NMEDIT 9676if test -n "$NMEDIT"; then 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9678$as_echo "$NMEDIT" >&6; } 9679else 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9681$as_echo "no" >&6; } 9682fi 9683 9684 9685fi 9686if test -z "$ac_cv_prog_NMEDIT"; then 9687 ac_ct_NMEDIT=$NMEDIT 9688 # Extract the first word of "nmedit", so it can be a program name with args. 9689set dummy nmedit; ac_word=$2 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9691$as_echo_n "checking for $ac_word... " >&6; } 9692if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 if test -n "$ac_ct_NMEDIT"; then 9696 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9697else 9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9699for as_dir in $PATH 9700do 9701 IFS=$as_save_IFS 9702 test -z "$as_dir" && as_dir=. 9703 for ac_exec_ext in '' $ac_executable_extensions; do 9704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9705 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9707 break 2 9708 fi 9709done 9710 done 9711IFS=$as_save_IFS 9712 9713fi 9714fi 9715ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9716if test -n "$ac_ct_NMEDIT"; then 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9718$as_echo "$ac_ct_NMEDIT" >&6; } 9719else 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9721$as_echo "no" >&6; } 9722fi 9723 9724 if test "x$ac_ct_NMEDIT" = x; then 9725 NMEDIT=":" 9726 else 9727 case $cross_compiling:$ac_tool_warned in 9728yes:) 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9731ac_tool_warned=yes ;; 9732esac 9733 NMEDIT=$ac_ct_NMEDIT 9734 fi 9735else 9736 NMEDIT="$ac_cv_prog_NMEDIT" 9737fi 9738 9739 if test -n "$ac_tool_prefix"; then 9740 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9741set dummy ${ac_tool_prefix}lipo; ac_word=$2 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9743$as_echo_n "checking for $ac_word... " >&6; } 9744if ${ac_cv_prog_LIPO+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 if test -n "$LIPO"; then 9748 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9749else 9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9751for as_dir in $PATH 9752do 9753 IFS=$as_save_IFS 9754 test -z "$as_dir" && as_dir=. 9755 for ac_exec_ext in '' $ac_executable_extensions; do 9756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9757 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9759 break 2 9760 fi 9761done 9762 done 9763IFS=$as_save_IFS 9764 9765fi 9766fi 9767LIPO=$ac_cv_prog_LIPO 9768if test -n "$LIPO"; then 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9770$as_echo "$LIPO" >&6; } 9771else 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9773$as_echo "no" >&6; } 9774fi 9775 9776 9777fi 9778if test -z "$ac_cv_prog_LIPO"; then 9779 ac_ct_LIPO=$LIPO 9780 # Extract the first word of "lipo", so it can be a program name with args. 9781set dummy lipo; ac_word=$2 9782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9783$as_echo_n "checking for $ac_word... " >&6; } 9784if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 if test -n "$ac_ct_LIPO"; then 9788 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9789else 9790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9791for as_dir in $PATH 9792do 9793 IFS=$as_save_IFS 9794 test -z "$as_dir" && as_dir=. 9795 for ac_exec_ext in '' $ac_executable_extensions; do 9796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9797 ac_cv_prog_ac_ct_LIPO="lipo" 9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9799 break 2 9800 fi 9801done 9802 done 9803IFS=$as_save_IFS 9804 9805fi 9806fi 9807ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9808if test -n "$ac_ct_LIPO"; then 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9810$as_echo "$ac_ct_LIPO" >&6; } 9811else 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9813$as_echo "no" >&6; } 9814fi 9815 9816 if test "x$ac_ct_LIPO" = x; then 9817 LIPO=":" 9818 else 9819 case $cross_compiling:$ac_tool_warned in 9820yes:) 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9823ac_tool_warned=yes ;; 9824esac 9825 LIPO=$ac_ct_LIPO 9826 fi 9827else 9828 LIPO="$ac_cv_prog_LIPO" 9829fi 9830 9831 if test -n "$ac_tool_prefix"; then 9832 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9833set dummy ${ac_tool_prefix}otool; ac_word=$2 9834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9835$as_echo_n "checking for $ac_word... " >&6; } 9836if ${ac_cv_prog_OTOOL+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 if test -n "$OTOOL"; then 9840 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9841else 9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9843for as_dir in $PATH 9844do 9845 IFS=$as_save_IFS 9846 test -z "$as_dir" && as_dir=. 9847 for ac_exec_ext in '' $ac_executable_extensions; do 9848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9849 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9851 break 2 9852 fi 9853done 9854 done 9855IFS=$as_save_IFS 9856 9857fi 9858fi 9859OTOOL=$ac_cv_prog_OTOOL 9860if test -n "$OTOOL"; then 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9862$as_echo "$OTOOL" >&6; } 9863else 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9865$as_echo "no" >&6; } 9866fi 9867 9868 9869fi 9870if test -z "$ac_cv_prog_OTOOL"; then 9871 ac_ct_OTOOL=$OTOOL 9872 # Extract the first word of "otool", so it can be a program name with args. 9873set dummy otool; ac_word=$2 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9875$as_echo_n "checking for $ac_word... " >&6; } 9876if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 if test -n "$ac_ct_OTOOL"; then 9880 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9881else 9882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9883for as_dir in $PATH 9884do 9885 IFS=$as_save_IFS 9886 test -z "$as_dir" && as_dir=. 9887 for ac_exec_ext in '' $ac_executable_extensions; do 9888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9889 ac_cv_prog_ac_ct_OTOOL="otool" 9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9891 break 2 9892 fi 9893done 9894 done 9895IFS=$as_save_IFS 9896 9897fi 9898fi 9899ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9900if test -n "$ac_ct_OTOOL"; then 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9902$as_echo "$ac_ct_OTOOL" >&6; } 9903else 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9905$as_echo "no" >&6; } 9906fi 9907 9908 if test "x$ac_ct_OTOOL" = x; then 9909 OTOOL=":" 9910 else 9911 case $cross_compiling:$ac_tool_warned in 9912yes:) 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9915ac_tool_warned=yes ;; 9916esac 9917 OTOOL=$ac_ct_OTOOL 9918 fi 9919else 9920 OTOOL="$ac_cv_prog_OTOOL" 9921fi 9922 9923 if test -n "$ac_tool_prefix"; then 9924 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9925set dummy ${ac_tool_prefix}otool64; ac_word=$2 9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9927$as_echo_n "checking for $ac_word... " >&6; } 9928if ${ac_cv_prog_OTOOL64+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 if test -n "$OTOOL64"; then 9932 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9933else 9934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9935for as_dir in $PATH 9936do 9937 IFS=$as_save_IFS 9938 test -z "$as_dir" && as_dir=. 9939 for ac_exec_ext in '' $ac_executable_extensions; do 9940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9941 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9943 break 2 9944 fi 9945done 9946 done 9947IFS=$as_save_IFS 9948 9949fi 9950fi 9951OTOOL64=$ac_cv_prog_OTOOL64 9952if test -n "$OTOOL64"; then 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9954$as_echo "$OTOOL64" >&6; } 9955else 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9957$as_echo "no" >&6; } 9958fi 9959 9960 9961fi 9962if test -z "$ac_cv_prog_OTOOL64"; then 9963 ac_ct_OTOOL64=$OTOOL64 9964 # Extract the first word of "otool64", so it can be a program name with args. 9965set dummy otool64; ac_word=$2 9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9967$as_echo_n "checking for $ac_word... " >&6; } 9968if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 if test -n "$ac_ct_OTOOL64"; then 9972 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9973else 9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9975for as_dir in $PATH 9976do 9977 IFS=$as_save_IFS 9978 test -z "$as_dir" && as_dir=. 9979 for ac_exec_ext in '' $ac_executable_extensions; do 9980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9981 ac_cv_prog_ac_ct_OTOOL64="otool64" 9982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9983 break 2 9984 fi 9985done 9986 done 9987IFS=$as_save_IFS 9988 9989fi 9990fi 9991ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9992if test -n "$ac_ct_OTOOL64"; then 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9994$as_echo "$ac_ct_OTOOL64" >&6; } 9995else 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9997$as_echo "no" >&6; } 9998fi 9999 10000 if test "x$ac_ct_OTOOL64" = x; then 10001 OTOOL64=":" 10002 else 10003 case $cross_compiling:$ac_tool_warned in 10004yes:) 10005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10007ac_tool_warned=yes ;; 10008esac 10009 OTOOL64=$ac_ct_OTOOL64 10010 fi 10011else 10012 OTOOL64="$ac_cv_prog_OTOOL64" 10013fi 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10042$as_echo_n "checking for -single_module linker flag... " >&6; } 10043if ${lt_cv_apple_cc_single_mod+:} false; then : 10044 $as_echo_n "(cached) " >&6 10045else 10046 lt_cv_apple_cc_single_mod=no 10047 if test -z "$LT_MULTI_MODULE"; then 10048 # By default we will add the -single_module flag. You can override 10049 # by either setting the environment variable LT_MULTI_MODULE 10050 # non-empty at configure time, or by adding -multi_module to the 10051 # link flags. 10052 rm -rf libconftest.dylib* 10053 echo "int foo(void){return 1;}" > conftest.c 10054 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10055-dynamiclib -Wl,-single_module conftest.c" >&5 10056 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10057 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10058 _lt_result=$? 10059 # If there is a non-empty error log, and "single_module" 10060 # appears in it, assume the flag caused a linker warning 10061 if test -s conftest.err && $GREP single_module conftest.err; then 10062 cat conftest.err >&5 10063 # Otherwise, if the output was created with a 0 exit code from 10064 # the compiler, it worked. 10065 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10066 lt_cv_apple_cc_single_mod=yes 10067 else 10068 cat conftest.err >&5 10069 fi 10070 rm -rf libconftest.dylib* 10071 rm -f conftest.* 10072 fi 10073fi 10074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10075$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10076 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10078$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10079if ${lt_cv_ld_exported_symbols_list+:} false; then : 10080 $as_echo_n "(cached) " >&6 10081else 10082 lt_cv_ld_exported_symbols_list=no 10083 save_LDFLAGS=$LDFLAGS 10084 echo "_main" > conftest.sym 10085 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10087/* end confdefs.h. */ 10088 10089int 10090main () 10091{ 10092 10093 ; 10094 return 0; 10095} 10096_ACEOF 10097if ac_fn_c_try_link "$LINENO"; then : 10098 lt_cv_ld_exported_symbols_list=yes 10099else 10100 lt_cv_ld_exported_symbols_list=no 10101fi 10102rm -f core conftest.err conftest.$ac_objext \ 10103 conftest$ac_exeext conftest.$ac_ext 10104 LDFLAGS=$save_LDFLAGS 10105 10106fi 10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10108$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10109 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10111$as_echo_n "checking for -force_load linker flag... " >&6; } 10112if ${lt_cv_ld_force_load+:} false; then : 10113 $as_echo_n "(cached) " >&6 10114else 10115 lt_cv_ld_force_load=no 10116 cat > conftest.c << _LT_EOF 10117int forced_loaded() { return 2;} 10118_LT_EOF 10119 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10120 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10121 echo "$AR cru libconftest.a conftest.o" >&5 10122 $AR cru libconftest.a conftest.o 2>&5 10123 echo "$RANLIB libconftest.a" >&5 10124 $RANLIB libconftest.a 2>&5 10125 cat > conftest.c << _LT_EOF 10126int main() { return 0;} 10127_LT_EOF 10128 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10129 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10130 _lt_result=$? 10131 if test -s conftest.err && $GREP force_load conftest.err; then 10132 cat conftest.err >&5 10133 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10134 lt_cv_ld_force_load=yes 10135 else 10136 cat conftest.err >&5 10137 fi 10138 rm -f conftest.err libconftest.a conftest conftest.c 10139 rm -rf conftest.dSYM 10140 10141fi 10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10143$as_echo "$lt_cv_ld_force_load" >&6; } 10144 case $host_os in 10145 rhapsody* | darwin1.[012]) 10146 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10147 darwin1.*) 10148 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10149 darwin*) 10150 # Open MPI patched for Darwin / MacOS Big Sur. See 10151 # http://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00001.html 10152 case ${MACOSX_DEPLOYMENT_TARGET},$host in 10153 10.[012],*|,*powerpc*) 10154 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10155 *) 10156 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10157 esac 10158 ;; 10159 esac 10160 if test yes = "$lt_cv_apple_cc_single_mod"; then 10161 _lt_dar_single_mod='$single_module' 10162 fi 10163 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10164 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10165 else 10166 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10167 fi 10168 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10169 _lt_dsymutil='~$DSYMUTIL $lib || :' 10170 else 10171 _lt_dsymutil= 10172 fi 10173 ;; 10174 esac 10175 10176# func_munge_path_list VARIABLE PATH 10177# ----------------------------------- 10178# VARIABLE is name of variable containing _space_ separated list of 10179# directories to be munged by the contents of PATH, which is string 10180# having a format: 10181# "DIR[:DIR]:" 10182# string "DIR[ DIR]" will be prepended to VARIABLE 10183# ":DIR[:DIR]" 10184# string "DIR[ DIR]" will be appended to VARIABLE 10185# "DIRP[:DIRP]::[DIRA:]DIRA" 10186# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10187# "DIRA[ DIRA]" will be appended to VARIABLE 10188# "DIR[:DIR]" 10189# VARIABLE will be replaced by "DIR[ DIR]" 10190func_munge_path_list () 10191{ 10192 case x$2 in 10193 x) 10194 ;; 10195 *:) 10196 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10197 ;; 10198 x:*) 10199 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10200 ;; 10201 *::*) 10202 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10203 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10204 ;; 10205 *) 10206 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10207 ;; 10208 esac 10209} 10210 10211for ac_header in dlfcn.h 10212do : 10213 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10214" 10215if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10216 cat >>confdefs.h <<_ACEOF 10217#define HAVE_DLFCN_H 1 10218_ACEOF 10219 10220fi 10221 10222done 10223 10224 10225 10226 10227 10228# Set options 10229 10230 10231 10232 enable_dlopen=no 10233 10234 10235 enable_win32_dll=no 10236 10237 10238 10239 10240 10241# Check whether --with-pic was given. 10242if test "${with_pic+set}" = set; then : 10243 withval=$with_pic; lt_p=${PACKAGE-default} 10244 case $withval in 10245 yes|no) pic_mode=$withval ;; 10246 *) 10247 pic_mode=default 10248 # Look at the argument we got. We use all the common list separators. 10249 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10250 for lt_pkg in $withval; do 10251 IFS=$lt_save_ifs 10252 if test "X$lt_pkg" = "X$lt_p"; then 10253 pic_mode=yes 10254 fi 10255 done 10256 IFS=$lt_save_ifs 10257 ;; 10258 esac 10259else 10260 pic_mode=default 10261fi 10262 10263 10264 10265 10266 10267 10268 10269 10270 # Check whether --enable-fast-install was given. 10271if test "${enable_fast_install+set}" = set; then : 10272 enableval=$enable_fast_install; p=${PACKAGE-default} 10273 case $enableval in 10274 yes) enable_fast_install=yes ;; 10275 no) enable_fast_install=no ;; 10276 *) 10277 enable_fast_install=no 10278 # Look at the argument we got. We use all the common list separators. 10279 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10280 for pkg in $enableval; do 10281 IFS=$lt_save_ifs 10282 if test "X$pkg" = "X$p"; then 10283 enable_fast_install=yes 10284 fi 10285 done 10286 IFS=$lt_save_ifs 10287 ;; 10288 esac 10289else 10290 enable_fast_install=yes 10291fi 10292 10293 10294 10295 10296 10297 10298 10299 10300 shared_archive_member_spec= 10301case $host,$enable_shared in 10302power*-*-aix[5-9]*,yes) 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10304$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10305 10306# Check whether --with-aix-soname was given. 10307if test "${with_aix_soname+set}" = set; then : 10308 withval=$with_aix_soname; case $withval in 10309 aix|svr4|both) 10310 ;; 10311 *) 10312 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10313 ;; 10314 esac 10315 lt_cv_with_aix_soname=$with_aix_soname 10316else 10317 if ${lt_cv_with_aix_soname+:} false; then : 10318 $as_echo_n "(cached) " >&6 10319else 10320 lt_cv_with_aix_soname=aix 10321fi 10322 10323 with_aix_soname=$lt_cv_with_aix_soname 10324fi 10325 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10327$as_echo "$with_aix_soname" >&6; } 10328 if test aix != "$with_aix_soname"; then 10329 # For the AIX way of multilib, we name the shared archive member 10330 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10331 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10332 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10333 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10334 if test 64 = "${OBJECT_MODE-32}"; then 10335 shared_archive_member_spec=shr_64 10336 else 10337 shared_archive_member_spec=shr 10338 fi 10339 fi 10340 ;; 10341*) 10342 with_aix_soname=aix 10343 ;; 10344esac 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355# This can be used to rebuild libtool when needed 10356LIBTOOL_DEPS=$ltmain 10357 10358# Always use our own libtool. 10359LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390test -z "$LN_S" && LN_S="ln -s" 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405if test -n "${ZSH_VERSION+set}"; then 10406 setopt NO_GLOB_SUBST 10407fi 10408 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10410$as_echo_n "checking for objdir... " >&6; } 10411if ${lt_cv_objdir+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413else 10414 rm -f .libs 2>/dev/null 10415mkdir .libs 2>/dev/null 10416if test -d .libs; then 10417 lt_cv_objdir=.libs 10418else 10419 # MS-DOS does not allow filenames that begin with a dot. 10420 lt_cv_objdir=_libs 10421fi 10422rmdir .libs 2>/dev/null 10423fi 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10425$as_echo "$lt_cv_objdir" >&6; } 10426objdir=$lt_cv_objdir 10427 10428 10429 10430 10431 10432cat >>confdefs.h <<_ACEOF 10433#define LT_OBJDIR "$lt_cv_objdir/" 10434_ACEOF 10435 10436 10437 10438 10439case $host_os in 10440aix3*) 10441 # AIX sometimes has problems with the GCC collect2 program. For some 10442 # reason, if we set the COLLECT_NAMES environment variable, the problems 10443 # vanish in a puff of smoke. 10444 if test set != "${COLLECT_NAMES+set}"; then 10445 COLLECT_NAMES= 10446 export COLLECT_NAMES 10447 fi 10448 ;; 10449esac 10450 10451# Global variables: 10452ofile=libtool 10453can_build_shared=yes 10454 10455# All known linkers require a '.a' archive for static linking (except MSVC, 10456# which needs '.lib'). 10457libext=a 10458 10459with_gnu_ld=$lt_cv_prog_gnu_ld 10460 10461old_CC=$CC 10462old_CFLAGS=$CFLAGS 10463 10464# Set sane defaults for various variables 10465test -z "$CC" && CC=cc 10466test -z "$LTCC" && LTCC=$CC 10467test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10468test -z "$LD" && LD=ld 10469test -z "$ac_objext" && ac_objext=o 10470 10471func_cc_basename $compiler 10472cc_basename=$func_cc_basename_result 10473 10474 10475# Only perform the check for file, if the check method requires it 10476test -z "$MAGIC_CMD" && MAGIC_CMD=file 10477case $deplibs_check_method in 10478file_magic*) 10479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10481$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10482if ${lt_cv_path_MAGIC_CMD+:} false; then : 10483 $as_echo_n "(cached) " >&6 10484else 10485 case $MAGIC_CMD in 10486[\\/*] | ?:[\\/]*) 10487 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10488 ;; 10489*) 10490 lt_save_MAGIC_CMD=$MAGIC_CMD 10491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10493 for ac_dir in $ac_dummy; do 10494 IFS=$lt_save_ifs 10495 test -z "$ac_dir" && ac_dir=. 10496 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10497 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10498 if test -n "$file_magic_test_file"; then 10499 case $deplibs_check_method in 10500 "file_magic "*) 10501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10504 $EGREP "$file_magic_regex" > /dev/null; then 10505 : 10506 else 10507 cat <<_LT_EOF 1>&2 10508 10509*** Warning: the command libtool uses to detect shared libraries, 10510*** $file_magic_cmd, produces output that libtool cannot recognize. 10511*** The result is that libtool may fail to recognize shared libraries 10512*** as such. This will affect the creation of libtool libraries that 10513*** depend on shared libraries, but programs linked with such libtool 10514*** libraries will work regardless of this problem. Nevertheless, you 10515*** may want to report the problem to your system manager and/or to 10516*** bug-libtool@gnu.org 10517 10518_LT_EOF 10519 fi ;; 10520 esac 10521 fi 10522 break 10523 fi 10524 done 10525 IFS=$lt_save_ifs 10526 MAGIC_CMD=$lt_save_MAGIC_CMD 10527 ;; 10528esac 10529fi 10530 10531MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10532if test -n "$MAGIC_CMD"; then 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10534$as_echo "$MAGIC_CMD" >&6; } 10535else 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10537$as_echo "no" >&6; } 10538fi 10539 10540 10541 10542 10543 10544if test -z "$lt_cv_path_MAGIC_CMD"; then 10545 if test -n "$ac_tool_prefix"; then 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10547$as_echo_n "checking for file... " >&6; } 10548if ${lt_cv_path_MAGIC_CMD+:} false; then : 10549 $as_echo_n "(cached) " >&6 10550else 10551 case $MAGIC_CMD in 10552[\\/*] | ?:[\\/]*) 10553 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10554 ;; 10555*) 10556 lt_save_MAGIC_CMD=$MAGIC_CMD 10557 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10559 for ac_dir in $ac_dummy; do 10560 IFS=$lt_save_ifs 10561 test -z "$ac_dir" && ac_dir=. 10562 if test -f "$ac_dir/file"; then 10563 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10564 if test -n "$file_magic_test_file"; then 10565 case $deplibs_check_method in 10566 "file_magic "*) 10567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10568 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10570 $EGREP "$file_magic_regex" > /dev/null; then 10571 : 10572 else 10573 cat <<_LT_EOF 1>&2 10574 10575*** Warning: the command libtool uses to detect shared libraries, 10576*** $file_magic_cmd, produces output that libtool cannot recognize. 10577*** The result is that libtool may fail to recognize shared libraries 10578*** as such. This will affect the creation of libtool libraries that 10579*** depend on shared libraries, but programs linked with such libtool 10580*** libraries will work regardless of this problem. Nevertheless, you 10581*** may want to report the problem to your system manager and/or to 10582*** bug-libtool@gnu.org 10583 10584_LT_EOF 10585 fi ;; 10586 esac 10587 fi 10588 break 10589 fi 10590 done 10591 IFS=$lt_save_ifs 10592 MAGIC_CMD=$lt_save_MAGIC_CMD 10593 ;; 10594esac 10595fi 10596 10597MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10598if test -n "$MAGIC_CMD"; then 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10600$as_echo "$MAGIC_CMD" >&6; } 10601else 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10603$as_echo "no" >&6; } 10604fi 10605 10606 10607 else 10608 MAGIC_CMD=: 10609 fi 10610fi 10611 10612 fi 10613 ;; 10614esac 10615 10616# Use C for the default configuration in the libtool script 10617 10618lt_save_CC=$CC 10619ac_ext=c 10620ac_cpp='$CPP $CPPFLAGS' 10621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10623ac_compiler_gnu=$ac_cv_c_compiler_gnu 10624 10625 10626# Source file extension for C test sources. 10627ac_ext=c 10628 10629# Object file extension for compiled C test sources. 10630objext=o 10631objext=$objext 10632 10633# Code to be used in simple compile tests 10634lt_simple_compile_test_code="int some_variable = 0;" 10635 10636# Code to be used in simple link tests 10637lt_simple_link_test_code='int main(){return(0);}' 10638 10639 10640 10641 10642 10643 10644 10645# If no C compiler was specified, use CC. 10646LTCC=${LTCC-"$CC"} 10647 10648# If no C compiler flags were specified, use CFLAGS. 10649LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10650 10651# Allow CC to be a program name with arguments. 10652compiler=$CC 10653 10654# Save the default compiler, since it gets overwritten when the other 10655# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10656compiler_DEFAULT=$CC 10657 10658# save warnings/boilerplate of simple test code 10659ac_outfile=conftest.$ac_objext 10660echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10662_lt_compiler_boilerplate=`cat conftest.err` 10663$RM conftest* 10664 10665ac_outfile=conftest.$ac_objext 10666echo "$lt_simple_link_test_code" >conftest.$ac_ext 10667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10668_lt_linker_boilerplate=`cat conftest.err` 10669$RM -r conftest* 10670 10671 10672## CAVEAT EMPTOR: 10673## There is no encapsulation within the following macros, do not change 10674## the running order or otherwise move them around unless you know exactly 10675## what you are doing... 10676if test -n "$compiler"; then 10677 10678lt_prog_compiler_no_builtin_flag= 10679 10680if test yes = "$GCC"; then 10681 case $cc_basename in 10682 nvcc*) 10683 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10684 *) 10685 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10686 esac 10687 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10689$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10690if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10691 $as_echo_n "(cached) " >&6 10692else 10693 lt_cv_prog_compiler_rtti_exceptions=no 10694 ac_outfile=conftest.$ac_objext 10695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10696 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10697 # Insert the option either (1) after the last *FLAGS variable, or 10698 # (2) before a word containing "conftest.", or (3) at the end. 10699 # Note that $ac_compile itself does not contain backslashes and begins 10700 # with a dollar sign (not a hyphen), so the echo should work correctly. 10701 # The option is referenced via a variable to avoid confusing sed. 10702 lt_compile=`echo "$ac_compile" | $SED \ 10703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10705 -e 's:$: $lt_compiler_flag:'` 10706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10707 (eval "$lt_compile" 2>conftest.err) 10708 ac_status=$? 10709 cat conftest.err >&5 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 if (exit $ac_status) && test -s "$ac_outfile"; then 10712 # The compiler can only warn and ignore the option if not recognized 10713 # So say no if there are warnings other than the usual output. 10714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10717 lt_cv_prog_compiler_rtti_exceptions=yes 10718 fi 10719 fi 10720 $RM conftest* 10721 10722fi 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10724$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10725 10726if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10727 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10728else 10729 : 10730fi 10731 10732fi 10733 10734 10735 10736 10737 10738 10739 lt_prog_compiler_wl= 10740lt_prog_compiler_pic= 10741lt_prog_compiler_static= 10742 10743 10744 if test yes = "$GCC"; then 10745 lt_prog_compiler_wl='-Wl,' 10746 lt_prog_compiler_static='-static' 10747 10748 case $host_os in 10749 aix*) 10750 # All AIX code is PIC. 10751 if test ia64 = "$host_cpu"; then 10752 # AIX 5 now supports IA64 processor 10753 lt_prog_compiler_static='-Bstatic' 10754 fi 10755 lt_prog_compiler_pic='-fPIC' 10756 ;; 10757 10758 amigaos*) 10759 case $host_cpu in 10760 powerpc) 10761 # see comment about AmigaOS4 .so support 10762 lt_prog_compiler_pic='-fPIC' 10763 ;; 10764 m68k) 10765 # FIXME: we need at least 68020 code to build shared libraries, but 10766 # adding the '-m68020' flag to GCC prevents building anything better, 10767 # like '-m68040'. 10768 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10769 ;; 10770 esac 10771 ;; 10772 10773 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10774 # PIC is the default for these OSes. 10775 ;; 10776 10777 mingw* | cygwin* | pw32* | os2* | cegcc*) 10778 # This hack is so that the source file can tell whether it is being 10779 # built for inclusion in a dll (and should export symbols for example). 10780 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10781 # (--disable-auto-import) libraries 10782 lt_prog_compiler_pic='-DDLL_EXPORT' 10783 case $host_os in 10784 os2*) 10785 lt_prog_compiler_static='$wl-static' 10786 ;; 10787 esac 10788 ;; 10789 10790 darwin* | rhapsody*) 10791 # PIC is the default on this platform 10792 # Common symbols not allowed in MH_DYLIB files 10793 lt_prog_compiler_pic='-fno-common' 10794 ;; 10795 10796 haiku*) 10797 # PIC is the default for Haiku. 10798 # The "-static" flag exists, but is broken. 10799 lt_prog_compiler_static= 10800 ;; 10801 10802 hpux*) 10803 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10804 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10805 # sets the default TLS model and affects inlining. 10806 case $host_cpu in 10807 hppa*64*) 10808 # +Z the default 10809 ;; 10810 *) 10811 lt_prog_compiler_pic='-fPIC' 10812 ;; 10813 esac 10814 ;; 10815 10816 interix[3-9]*) 10817 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10818 # Instead, we relocate shared libraries at runtime. 10819 ;; 10820 10821 msdosdjgpp*) 10822 # Just because we use GCC doesn't mean we suddenly get shared libraries 10823 # on systems that don't support them. 10824 lt_prog_compiler_can_build_shared=no 10825 enable_shared=no 10826 ;; 10827 10828 *nto* | *qnx*) 10829 # QNX uses GNU C++, but need to define -shared option too, otherwise 10830 # it will coredump. 10831 lt_prog_compiler_pic='-fPIC -shared' 10832 ;; 10833 10834 sysv4*MP*) 10835 if test -d /usr/nec; then 10836 lt_prog_compiler_pic=-Kconform_pic 10837 fi 10838 ;; 10839 10840 *) 10841 lt_prog_compiler_pic='-fPIC' 10842 ;; 10843 esac 10844 10845 case $cc_basename in 10846 nvcc*) # Cuda Compiler Driver 2.2 10847 lt_prog_compiler_wl='-Xlinker ' 10848 if test -n "$lt_prog_compiler_pic"; then 10849 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10850 fi 10851 ;; 10852 esac 10853 else 10854 # PORTME Check for flag to pass linker flags through the system compiler. 10855 case $host_os in 10856 aix*) 10857 lt_prog_compiler_wl='-Wl,' 10858 if test ia64 = "$host_cpu"; then 10859 # AIX 5 now supports IA64 processor 10860 lt_prog_compiler_static='-Bstatic' 10861 else 10862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10863 fi 10864 ;; 10865 10866 darwin* | rhapsody*) 10867 # PIC is the default on this platform 10868 # Common symbols not allowed in MH_DYLIB files 10869 lt_prog_compiler_pic='-fno-common' 10870 case $cc_basename in 10871 nagfor*) 10872 # NAG Fortran compiler 10873 lt_prog_compiler_wl='-Wl,-Wl,,' 10874 lt_prog_compiler_pic='-PIC' 10875 lt_prog_compiler_static='-Bstatic' 10876 ;; 10877 esac 10878 ;; 10879 10880 mingw* | cygwin* | pw32* | os2* | cegcc*) 10881 # This hack is so that the source file can tell whether it is being 10882 # built for inclusion in a dll (and should export symbols for example). 10883 lt_prog_compiler_pic='-DDLL_EXPORT' 10884 case $host_os in 10885 os2*) 10886 lt_prog_compiler_static='$wl-static' 10887 ;; 10888 esac 10889 ;; 10890 10891 hpux9* | hpux10* | hpux11*) 10892 lt_prog_compiler_wl='-Wl,' 10893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10894 # not for PA HP-UX. 10895 case $host_cpu in 10896 hppa*64*|ia64*) 10897 # +Z the default 10898 ;; 10899 *) 10900 lt_prog_compiler_pic='+Z' 10901 ;; 10902 esac 10903 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10904 lt_prog_compiler_static='$wl-a ${wl}archive' 10905 ;; 10906 10907 irix5* | irix6* | nonstopux*) 10908 lt_prog_compiler_wl='-Wl,' 10909 # PIC (with -KPIC) is the default. 10910 lt_prog_compiler_static='-non_shared' 10911 ;; 10912 10913 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10914 case $cc_basename in 10915 # old Intel for x86_64, which still supported -KPIC. 10916 ecc*) 10917 lt_prog_compiler_wl='-Wl,' 10918 lt_prog_compiler_pic='-KPIC' 10919 lt_prog_compiler_static='-static' 10920 ;; 10921 # Flang compiler 10922 *flang) 10923 lt_prog_compiler_wl='-Wl,' 10924 lt_prog_compiler_pic='-fPIC -DPIC' 10925 lt_prog_compiler_static='-static' 10926 ;; 10927 # icc used to be incompatible with GCC. 10928 # ICC 10 doesn't accept -KPIC any more. 10929 icc* | ifort*) 10930 lt_prog_compiler_wl='-Wl,' 10931 lt_prog_compiler_pic='-fPIC' 10932 lt_prog_compiler_static='-static' 10933 ;; 10934 # Lahey Fortran 8.1. 10935 lf95*) 10936 lt_prog_compiler_wl='-Wl,' 10937 lt_prog_compiler_pic='--shared' 10938 lt_prog_compiler_static='--static' 10939 ;; 10940 nagfor*) 10941 # NAG Fortran compiler 10942 lt_prog_compiler_wl='-Wl,-Wl,,' 10943 lt_prog_compiler_pic='-PIC' 10944 lt_prog_compiler_static='-Bstatic' 10945 ;; 10946 tcc*) 10947 # Fabrice Bellard et al's Tiny C Compiler 10948 lt_prog_compiler_wl='-Wl,' 10949 lt_prog_compiler_pic='-fPIC' 10950 lt_prog_compiler_static='-static' 10951 ;; 10952 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10953 # Portland Group compilers (*not* the Pentium gcc compiler, 10954 # which looks to be a dead project) 10955 lt_prog_compiler_wl='-Wl,' 10956 lt_prog_compiler_pic='-fpic' 10957 lt_prog_compiler_static='-Bstatic' 10958 ;; 10959 ccc*) 10960 lt_prog_compiler_wl='-Wl,' 10961 # All Alpha code is PIC. 10962 lt_prog_compiler_static='-non_shared' 10963 ;; 10964 xl* | bgxl* | bgf* | mpixl*) 10965 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10966 lt_prog_compiler_wl='-Wl,' 10967 lt_prog_compiler_pic='-qpic' 10968 lt_prog_compiler_static='-qstaticlink' 10969 ;; 10970 *) 10971 case `$CC -V 2>&1 | sed 5q` in 10972 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10973 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10974 lt_prog_compiler_pic='-KPIC' 10975 lt_prog_compiler_static='-Bstatic' 10976 lt_prog_compiler_wl='' 10977 ;; 10978 *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) 10979 lt_prog_compiler_pic='-KPIC' 10980 lt_prog_compiler_static='-Bstatic' 10981 lt_prog_compiler_wl='-Qoption ld ' 10982 ;; 10983 *Sun\ C*) 10984 # Sun C 5.9 10985 lt_prog_compiler_pic='-KPIC' 10986 lt_prog_compiler_static='-Bstatic' 10987 lt_prog_compiler_wl='-Wl,' 10988 ;; 10989 *Intel*\ [CF]*Compiler*) 10990 lt_prog_compiler_wl='-Wl,' 10991 lt_prog_compiler_pic='-fPIC' 10992 lt_prog_compiler_static='-static' 10993 ;; 10994 *Portland\ Group*) 10995 lt_prog_compiler_wl='-Wl,' 10996 lt_prog_compiler_pic='-fpic' 10997 lt_prog_compiler_static='-Bstatic' 10998 ;; 10999 esac 11000 ;; 11001 esac 11002 ;; 11003 11004 newsos6) 11005 lt_prog_compiler_pic='-KPIC' 11006 lt_prog_compiler_static='-Bstatic' 11007 ;; 11008 11009 *nto* | *qnx*) 11010 # QNX uses GNU C++, but need to define -shared option too, otherwise 11011 # it will coredump. 11012 lt_prog_compiler_pic='-fPIC -shared' 11013 ;; 11014 11015 osf3* | osf4* | osf5*) 11016 lt_prog_compiler_wl='-Wl,' 11017 # All OSF/1 code is PIC. 11018 lt_prog_compiler_static='-non_shared' 11019 ;; 11020 11021 rdos*) 11022 lt_prog_compiler_static='-non_shared' 11023 ;; 11024 11025 solaris*) 11026 lt_prog_compiler_pic='-KPIC' 11027 lt_prog_compiler_static='-Bstatic' 11028 case $cc_basename in 11029 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11030 lt_prog_compiler_wl='-Qoption ld ';; 11031 *) 11032 lt_prog_compiler_wl='-Wl,';; 11033 esac 11034 ;; 11035 11036 sunos4*) 11037 lt_prog_compiler_wl='-Qoption ld ' 11038 lt_prog_compiler_pic='-PIC' 11039 lt_prog_compiler_static='-Bstatic' 11040 ;; 11041 11042 sysv4 | sysv4.2uw2* | sysv4.3*) 11043 lt_prog_compiler_wl='-Wl,' 11044 lt_prog_compiler_pic='-KPIC' 11045 lt_prog_compiler_static='-Bstatic' 11046 ;; 11047 11048 sysv4*MP*) 11049 if test -d /usr/nec; then 11050 lt_prog_compiler_pic='-Kconform_pic' 11051 lt_prog_compiler_static='-Bstatic' 11052 fi 11053 ;; 11054 11055 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11056 lt_prog_compiler_wl='-Wl,' 11057 lt_prog_compiler_pic='-KPIC' 11058 lt_prog_compiler_static='-Bstatic' 11059 ;; 11060 11061 unicos*) 11062 lt_prog_compiler_wl='-Wl,' 11063 lt_prog_compiler_can_build_shared=no 11064 ;; 11065 11066 uts4*) 11067 lt_prog_compiler_pic='-pic' 11068 lt_prog_compiler_static='-Bstatic' 11069 ;; 11070 11071 *) 11072 lt_prog_compiler_can_build_shared=no 11073 ;; 11074 esac 11075 fi 11076 11077case $host_os in 11078 # For platforms that do not support PIC, -DPIC is meaningless: 11079 *djgpp*) 11080 lt_prog_compiler_pic= 11081 ;; 11082 *) 11083 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11084 ;; 11085esac 11086 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11088$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11089if ${lt_cv_prog_compiler_pic+:} false; then : 11090 $as_echo_n "(cached) " >&6 11091else 11092 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11093fi 11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11095$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11096lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11097 11098# 11099# Check to make sure the PIC flag actually works. 11100# 11101if test -n "$lt_prog_compiler_pic"; then 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11103$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11104if ${lt_cv_prog_compiler_pic_works+:} false; then : 11105 $as_echo_n "(cached) " >&6 11106else 11107 lt_cv_prog_compiler_pic_works=no 11108 ac_outfile=conftest.$ac_objext 11109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11110 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11111 # Insert the option either (1) after the last *FLAGS variable, or 11112 # (2) before a word containing "conftest.", or (3) at the end. 11113 # Note that $ac_compile itself does not contain backslashes and begins 11114 # with a dollar sign (not a hyphen), so the echo should work correctly. 11115 # The option is referenced via a variable to avoid confusing sed. 11116 lt_compile=`echo "$ac_compile" | $SED \ 11117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11119 -e 's:$: $lt_compiler_flag:'` 11120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11121 (eval "$lt_compile" 2>conftest.err) 11122 ac_status=$? 11123 cat conftest.err >&5 11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11125 if (exit $ac_status) && test -s "$ac_outfile"; then 11126 # The compiler can only warn and ignore the option if not recognized 11127 # So say no if there are warnings other than the usual output. 11128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11131 lt_cv_prog_compiler_pic_works=yes 11132 fi 11133 fi 11134 $RM conftest* 11135 11136fi 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11138$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11139 11140if test yes = "$lt_cv_prog_compiler_pic_works"; then 11141 case $lt_prog_compiler_pic in 11142 "" | " "*) ;; 11143 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11144 esac 11145else 11146 lt_prog_compiler_pic= 11147 lt_prog_compiler_can_build_shared=no 11148fi 11149 11150fi 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162# 11163# Check to make sure the static flag actually works. 11164# 11165wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11167$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11168if ${lt_cv_prog_compiler_static_works+:} false; then : 11169 $as_echo_n "(cached) " >&6 11170else 11171 lt_cv_prog_compiler_static_works=no 11172 save_LDFLAGS=$LDFLAGS 11173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11174 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11176 # The linker can only warn and ignore the option if not recognized 11177 # So say no if there are warnings 11178 if test -s conftest.err; then 11179 # Append any errors to the config.log. 11180 cat conftest.err 1>&5 11181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11183 if diff conftest.exp conftest.er2 >/dev/null; then 11184 lt_cv_prog_compiler_static_works=yes 11185 fi 11186 else 11187 lt_cv_prog_compiler_static_works=yes 11188 fi 11189 fi 11190 $RM -r conftest* 11191 LDFLAGS=$save_LDFLAGS 11192 11193fi 11194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11195$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11196 11197if test yes = "$lt_cv_prog_compiler_static_works"; then 11198 : 11199else 11200 lt_prog_compiler_static= 11201fi 11202 11203 11204 11205 11206 11207 11208 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11210$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11211if ${lt_cv_prog_compiler_c_o+:} false; then : 11212 $as_echo_n "(cached) " >&6 11213else 11214 lt_cv_prog_compiler_c_o=no 11215 $RM -r conftest 2>/dev/null 11216 mkdir conftest 11217 cd conftest 11218 mkdir out 11219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11220 11221 lt_compiler_flag="-o out/conftest2.$ac_objext" 11222 # Insert the option either (1) after the last *FLAGS variable, or 11223 # (2) before a word containing "conftest.", or (3) at the end. 11224 # Note that $ac_compile itself does not contain backslashes and begins 11225 # with a dollar sign (not a hyphen), so the echo should work correctly. 11226 lt_compile=`echo "$ac_compile" | $SED \ 11227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11229 -e 's:$: $lt_compiler_flag:'` 11230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11231 (eval "$lt_compile" 2>out/conftest.err) 11232 ac_status=$? 11233 cat out/conftest.err >&5 11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11235 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11236 then 11237 # The compiler can only warn and ignore the option if not recognized 11238 # So say no if there are warnings 11239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11242 lt_cv_prog_compiler_c_o=yes 11243 fi 11244 fi 11245 chmod u+w . 2>&5 11246 $RM conftest* 11247 # SGI C++ compiler will create directory out/ii_files/ for 11248 # template instantiation 11249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11250 $RM out/* && rmdir out 11251 cd .. 11252 $RM -r conftest 11253 $RM conftest* 11254 11255fi 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11257$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11258 11259 11260 11261 11262 11263 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11265$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11266if ${lt_cv_prog_compiler_c_o+:} false; then : 11267 $as_echo_n "(cached) " >&6 11268else 11269 lt_cv_prog_compiler_c_o=no 11270 $RM -r conftest 2>/dev/null 11271 mkdir conftest 11272 cd conftest 11273 mkdir out 11274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11275 11276 lt_compiler_flag="-o out/conftest2.$ac_objext" 11277 # Insert the option either (1) after the last *FLAGS variable, or 11278 # (2) before a word containing "conftest.", or (3) at the end. 11279 # Note that $ac_compile itself does not contain backslashes and begins 11280 # with a dollar sign (not a hyphen), so the echo should work correctly. 11281 lt_compile=`echo "$ac_compile" | $SED \ 11282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11284 -e 's:$: $lt_compiler_flag:'` 11285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11286 (eval "$lt_compile" 2>out/conftest.err) 11287 ac_status=$? 11288 cat out/conftest.err >&5 11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11290 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11291 then 11292 # The compiler can only warn and ignore the option if not recognized 11293 # So say no if there are warnings 11294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11297 lt_cv_prog_compiler_c_o=yes 11298 fi 11299 fi 11300 chmod u+w . 2>&5 11301 $RM conftest* 11302 # SGI C++ compiler will create directory out/ii_files/ for 11303 # template instantiation 11304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11305 $RM out/* && rmdir out 11306 cd .. 11307 $RM -r conftest 11308 $RM conftest* 11309 11310fi 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11312$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11313 11314 11315 11316 11317hard_links=nottested 11318if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11319 # do not overwrite the value of need_locks provided by the user 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11321$as_echo_n "checking if we can lock with hard links... " >&6; } 11322 hard_links=yes 11323 $RM conftest* 11324 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11325 touch conftest.a 11326 ln conftest.a conftest.b 2>&5 || hard_links=no 11327 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11329$as_echo "$hard_links" >&6; } 11330 if test no = "$hard_links"; then 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11332$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11333 need_locks=warn 11334 fi 11335else 11336 need_locks=no 11337fi 11338 11339 11340 11341 11342 11343 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11345$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11346 11347 runpath_var= 11348 allow_undefined_flag= 11349 always_export_symbols=no 11350 archive_cmds= 11351 archive_expsym_cmds= 11352 compiler_needs_object=no 11353 enable_shared_with_static_runtimes=no 11354 export_dynamic_flag_spec= 11355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11356 hardcode_automatic=no 11357 hardcode_direct=no 11358 hardcode_direct_absolute=no 11359 hardcode_libdir_flag_spec= 11360 hardcode_libdir_separator= 11361 hardcode_minus_L=no 11362 hardcode_shlibpath_var=unsupported 11363 inherit_rpath=no 11364 link_all_deplibs=unknown 11365 module_cmds= 11366 module_expsym_cmds= 11367 old_archive_from_new_cmds= 11368 old_archive_from_expsyms_cmds= 11369 thread_safe_flag_spec= 11370 whole_archive_flag_spec= 11371 # include_expsyms should be a list of space-separated symbols to be *always* 11372 # included in the symbol list 11373 include_expsyms= 11374 # exclude_expsyms can be an extended regexp of symbols to exclude 11375 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11376 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11377 # as well as any symbol that contains 'd'. 11378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11380 # platforms (ab)use it in PIC code, but their linkers get confused if 11381 # the symbol is explicitly referenced. Since portable code cannot 11382 # rely on this symbol name, it's probably fine to never include it in 11383 # preloaded symbol tables. 11384 # Exclude shared library initialization/finalization symbols. 11385 extract_expsyms_cmds= 11386 11387 case $host_os in 11388 cygwin* | mingw* | pw32* | cegcc*) 11389 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11390 # When not using gcc, we currently assume that we are using 11391 # Microsoft Visual C++. 11392 if test yes != "$GCC"; then 11393 with_gnu_ld=no 11394 fi 11395 ;; 11396 interix*) 11397 # we just hope/assume this is gcc and not c89 (= MSVC++) 11398 with_gnu_ld=yes 11399 ;; 11400 openbsd* | bitrig*) 11401 with_gnu_ld=no 11402 ;; 11403 esac 11404 11405 ld_shlibs=yes 11406 11407 # On some targets, GNU ld is compatible enough with the native linker 11408 # that we're better off using the native interface for both. 11409 lt_use_gnu_ld_interface=no 11410 if test yes = "$with_gnu_ld"; then 11411 case $host_os in 11412 aix*) 11413 # The AIX port of GNU ld has always aspired to compatibility 11414 # with the native linker. However, as the warning in the GNU ld 11415 # block says, versions before 2.19.5* couldn't really create working 11416 # shared libraries, regardless of the interface used. 11417 case `$LD -v 2>&1` in 11418 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11419 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11420 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11421 *) 11422 lt_use_gnu_ld_interface=yes 11423 ;; 11424 esac 11425 ;; 11426 *) 11427 lt_use_gnu_ld_interface=yes 11428 ;; 11429 esac 11430 fi 11431 11432 if test yes = "$lt_use_gnu_ld_interface"; then 11433 # If archive_cmds runs LD, not CC, wlarc should be empty 11434 wlarc='$wl' 11435 11436 # Set some defaults for GNU ld with shared library support. These 11437 # are reset later if shared libraries are not supported. Putting them 11438 # here allows them to be overridden if necessary. 11439 runpath_var=LD_RUN_PATH 11440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11441 export_dynamic_flag_spec='$wl--export-dynamic' 11442 # ancient GNU ld didn't support --whole-archive et. al. 11443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11444 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11445 else 11446 whole_archive_flag_spec= 11447 fi 11448 supports_anon_versioning=no 11449 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11450 *GNU\ gold*) supports_anon_versioning=yes ;; 11451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11454 *\ 2.11.*) ;; # other 2.11 versions 11455 *) supports_anon_versioning=yes ;; 11456 esac 11457 11458 # See if GNU ld supports shared libraries. 11459 case $host_os in 11460 aix[3-9]*) 11461 # On AIX/PPC, the GNU linker is very broken 11462 if test ia64 != "$host_cpu"; then 11463 ld_shlibs=no 11464 cat <<_LT_EOF 1>&2 11465 11466*** Warning: the GNU linker, at least up to release 2.19, is reported 11467*** to be unable to reliably create shared libraries on AIX. 11468*** Therefore, libtool is disabling shared libraries support. If you 11469*** really care for shared libraries, you may want to install binutils 11470*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11471*** You will then need to restart the configuration process. 11472 11473_LT_EOF 11474 fi 11475 ;; 11476 11477 amigaos*) 11478 case $host_cpu in 11479 powerpc) 11480 # see comment about AmigaOS4 .so support 11481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11482 archive_expsym_cmds='' 11483 ;; 11484 m68k) 11485 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 11486 hardcode_libdir_flag_spec='-L$libdir' 11487 hardcode_minus_L=yes 11488 ;; 11489 esac 11490 ;; 11491 11492 beos*) 11493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11494 allow_undefined_flag=unsupported 11495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11496 # support --undefined. This deserves some investigation. FIXME 11497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11498 else 11499 ld_shlibs=no 11500 fi 11501 ;; 11502 11503 cygwin* | mingw* | pw32* | cegcc*) 11504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11505 # as there is no search path for DLLs. 11506 hardcode_libdir_flag_spec='-L$libdir' 11507 export_dynamic_flag_spec='$wl--export-all-symbols' 11508 allow_undefined_flag=unsupported 11509 always_export_symbols=no 11510 enable_shared_with_static_runtimes=yes 11511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 11512 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11513 11514 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11516 # If the export-symbols file already is a .def file, use it as 11517 # is; otherwise, prepend EXPORTS... 11518 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11519 cp $export_symbols $output_objdir/$soname.def; 11520 else 11521 echo EXPORTS > $output_objdir/$soname.def; 11522 cat $export_symbols >> $output_objdir/$soname.def; 11523 fi~ 11524 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11525 else 11526 ld_shlibs=no 11527 fi 11528 ;; 11529 11530 haiku*) 11531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11532 link_all_deplibs=yes 11533 ;; 11534 11535 os2*) 11536 hardcode_libdir_flag_spec='-L$libdir' 11537 hardcode_minus_L=yes 11538 allow_undefined_flag=unsupported 11539 shrext_cmds=.dll 11540 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11541 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11542 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11543 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11544 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11546 emximp -o $lib $output_objdir/$libname.def' 11547 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11548 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11549 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11550 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11551 prefix_cmds="$SED"~ 11552 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11553 prefix_cmds="$prefix_cmds -e 1d"; 11554 fi~ 11555 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11556 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11558 emximp -o $lib $output_objdir/$libname.def' 11559 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11560 enable_shared_with_static_runtimes=yes 11561 ;; 11562 11563 interix[3-9]*) 11564 hardcode_direct=no 11565 hardcode_shlibpath_var=no 11566 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11567 export_dynamic_flag_spec='$wl-E' 11568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11569 # Instead, shared libraries are loaded at an image base (0x10000000 by 11570 # default) and relocated if they conflict, which is a slow very memory 11571 # consuming and fragmenting process. To avoid this, we pick a random, 11572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11573 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11575 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11576 ;; 11577 11578 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11579 tmp_diet=no 11580 if test linux-dietlibc = "$host_os"; then 11581 case $cc_basename in 11582 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11583 esac 11584 fi 11585 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11586 && test no = "$tmp_diet" 11587 then 11588 tmp_addflag=' $pic_flag' 11589 tmp_sharedflag='-shared' 11590 case $cc_basename,$host_cpu in 11591 pgcc*) # Portland Group C compiler 11592 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11593 tmp_addflag=' $pic_flag' 11594 ;; 11595 pgf77* | pgf90* | pgf95* | pgfortran*) 11596 # Portland Group f77 and f90 compilers 11597 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11598 tmp_addflag=' $pic_flag -Mnomain' ;; 11599 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11600 tmp_addflag=' -i_dynamic' ;; 11601 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11602 tmp_addflag=' -i_dynamic -nofor_main' ;; 11603 ifc* | ifort*) # Intel Fortran compiler 11604 tmp_addflag=' -nofor_main' ;; 11605 lf95*) # Lahey Fortran 8.1 11606 whole_archive_flag_spec= 11607 tmp_sharedflag='--shared' ;; 11608 nagfor*) # NAGFOR 5.3 11609 tmp_sharedflag='-Wl,-shared' ;; 11610 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11611 tmp_sharedflag='-qmkshrobj' 11612 tmp_addflag= ;; 11613 nvcc*) # Cuda Compiler Driver 2.2 11614 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11615 compiler_needs_object=yes 11616 ;; 11617 esac 11618 case `$CC -V 2>&1 | sed 5q` in 11619 *Sun\ C*) # Sun C 5.9 11620 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11621 compiler_needs_object=yes 11622 tmp_sharedflag='-G' ;; 11623 *Sun\ F* | *Studio*Fortran*) # Sun Fortran 8.3 11624 tmp_sharedflag='-G' ;; 11625 esac 11626 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11627 11628 if test yes = "$supports_anon_versioning"; then 11629 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11631 echo "local: *; };" >> $output_objdir/$libname.ver~ 11632 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11633 fi 11634 11635 case $cc_basename in 11636 tcc*) 11637 export_dynamic_flag_spec='-rdynamic' 11638 ;; 11639 xlf* | bgf* | bgxlf* | mpixlf*) 11640 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11641 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11642 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11643 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11644 if test yes = "$supports_anon_versioning"; then 11645 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11647 echo "local: *; };" >> $output_objdir/$libname.ver~ 11648 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11649 fi 11650 ;; 11651 esac 11652 else 11653 ld_shlibs=no 11654 fi 11655 ;; 11656 11657 netbsd*) 11658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11659 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11660 wlarc= 11661 else 11662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11664 fi 11665 ;; 11666 11667 solaris*) 11668 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11669 ld_shlibs=no 11670 cat <<_LT_EOF 1>&2 11671 11672*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11673*** create shared libraries on Solaris systems. Therefore, libtool 11674*** is disabling shared libraries support. We urge you to upgrade GNU 11675*** binutils to release 2.9.1 or newer. Another option is to modify 11676*** your PATH or compiler configuration so that the native linker is 11677*** used, and then restart. 11678 11679_LT_EOF 11680 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11682 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11683 else 11684 ld_shlibs=no 11685 fi 11686 ;; 11687 11688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11689 case `$LD -v 2>&1` in 11690 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11691 ld_shlibs=no 11692 cat <<_LT_EOF 1>&2 11693 11694*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11695*** reliably create shared libraries on SCO systems. Therefore, libtool 11696*** is disabling shared libraries support. We urge you to upgrade GNU 11697*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11698*** your PATH or compiler configuration so that the native linker is 11699*** used, and then restart. 11700 11701_LT_EOF 11702 ;; 11703 *) 11704 # For security reasons, it is highly recommended that you always 11705 # use absolute paths for naming shared libraries, and exclude the 11706 # DT_RUNPATH tag from executables and libraries. But doing so 11707 # requires that you compile everything twice, which is a pain. 11708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11709 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11712 else 11713 ld_shlibs=no 11714 fi 11715 ;; 11716 esac 11717 ;; 11718 11719 sunos4*) 11720 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11721 wlarc= 11722 hardcode_direct=yes 11723 hardcode_shlibpath_var=no 11724 ;; 11725 11726 *) 11727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11728 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11729 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11730 else 11731 ld_shlibs=no 11732 fi 11733 ;; 11734 esac 11735 11736 if test no = "$ld_shlibs"; then 11737 runpath_var= 11738 hardcode_libdir_flag_spec= 11739 export_dynamic_flag_spec= 11740 whole_archive_flag_spec= 11741 fi 11742 else 11743 # PORTME fill in a description of your system's linker (not GNU ld) 11744 case $host_os in 11745 aix3*) 11746 allow_undefined_flag=unsupported 11747 always_export_symbols=yes 11748 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 11749 # Note: this linker hardcodes the directories in LIBPATH if there 11750 # are no directories specified by -L. 11751 hardcode_minus_L=yes 11752 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11753 # Neither direct hardcoding nor static linking is supported with a 11754 # broken collect2. 11755 hardcode_direct=unsupported 11756 fi 11757 ;; 11758 11759 aix[4-9]*) 11760 if test ia64 = "$host_cpu"; then 11761 # On IA64, the linker does run time linking by default, so we don't 11762 # have to do anything special. 11763 aix_use_runtimelinking=no 11764 exp_sym_flag='-Bexport' 11765 no_entry_flag= 11766 else 11767 # If we're using GNU nm, then we don't want the "-C" option. 11768 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11769 # Without the "-l" option, or with the "-B" option, AIX nm treats 11770 # weak defined symbols like other global defined symbols, whereas 11771 # GNU nm marks them as "W". 11772 # While the 'weak' keyword is ignored in the Export File, we need 11773 # it in the Import File for the 'aix-soname' feature, so we have 11774 # to replace the "-B" option with "-P" for AIX nm. 11775 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11776 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11777 else 11778 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11779 fi 11780 aix_use_runtimelinking=no 11781 11782 # Test if we are trying to use run time linking or normal 11783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11784 # have runtime linking enabled, and use it for executables. 11785 # For shared libraries, we enable/disable runtime linking 11786 # depending on the kind of the shared library created - 11787 # when "with_aix_soname,aix_use_runtimelinking" is: 11788 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11789 # "aix,yes" lib.so shared, rtl:yes, for executables 11790 # lib.a static archive 11791 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11792 # lib.a(lib.so.V) shared, rtl:no, for executables 11793 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11794 # lib.a(lib.so.V) shared, rtl:no 11795 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11796 # lib.a static archive 11797 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11798 for ld_flag in $LDFLAGS; do 11799 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11800 aix_use_runtimelinking=yes 11801 break 11802 fi 11803 done 11804 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11805 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11806 # so we don't have lib.a shared libs to link our executables. 11807 # We have to force runtime linking in this case. 11808 aix_use_runtimelinking=yes 11809 LDFLAGS="$LDFLAGS -Wl,-brtl" 11810 fi 11811 ;; 11812 esac 11813 11814 exp_sym_flag='-bexport' 11815 no_entry_flag='-bnoentry' 11816 fi 11817 11818 # When large executables or shared objects are built, AIX ld can 11819 # have problems creating the table of contents. If linking a library 11820 # or program results in "error TOC overflow" add -mminimal-toc to 11821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11823 11824 archive_cmds='' 11825 hardcode_direct=yes 11826 hardcode_direct_absolute=yes 11827 hardcode_libdir_separator=':' 11828 link_all_deplibs=yes 11829 file_list_spec='$wl-f,' 11830 case $with_aix_soname,$aix_use_runtimelinking in 11831 aix,*) ;; # traditional, no import file 11832 svr4,* | *,yes) # use import file 11833 # The Import File defines what to hardcode. 11834 hardcode_direct=no 11835 hardcode_direct_absolute=no 11836 ;; 11837 esac 11838 11839 if test yes = "$GCC"; then 11840 case $host_os in aix4.[012]|aix4.[012].*) 11841 # We only want to do this on AIX 4.2 and lower, the check 11842 # below for broken collect2 doesn't work under 4.3+ 11843 collect2name=`$CC -print-prog-name=collect2` 11844 if test -f "$collect2name" && 11845 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11846 then 11847 # We have reworked collect2 11848 : 11849 else 11850 # We have old collect2 11851 hardcode_direct=unsupported 11852 # It fails to find uninstalled libraries when the uninstalled 11853 # path is not listed in the libpath. Setting hardcode_minus_L 11854 # to unsupported forces relinking 11855 hardcode_minus_L=yes 11856 hardcode_libdir_flag_spec='-L$libdir' 11857 hardcode_libdir_separator= 11858 fi 11859 ;; 11860 esac 11861 shared_flag='-shared' 11862 if test yes = "$aix_use_runtimelinking"; then 11863 shared_flag="$shared_flag "'$wl-G' 11864 fi 11865 # Need to ensure runtime linking is disabled for the traditional 11866 # shared library, or the linker may eventually find shared libraries 11867 # /with/ Import File - we do not want to mix them. 11868 shared_flag_aix='-shared' 11869 shared_flag_svr4='-shared $wl-G' 11870 else 11871 # not using gcc 11872 if test ia64 = "$host_cpu"; then 11873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11874 # chokes on -Wl,-G. The following line is correct: 11875 shared_flag='-G' 11876 else 11877 if test yes = "$aix_use_runtimelinking"; then 11878 shared_flag='$wl-G' 11879 else 11880 shared_flag='$wl-bM:SRE' 11881 fi 11882 shared_flag_aix='$wl-bM:SRE' 11883 shared_flag_svr4='$wl-G' 11884 fi 11885 fi 11886 11887 export_dynamic_flag_spec='$wl-bexpall' 11888 # It seems that -bexpall does not export symbols beginning with 11889 # underscore (_), so it is better to generate a list of symbols to export. 11890 always_export_symbols=yes 11891 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11892 # Warning - without using the other runtime loading flags (-brtl), 11893 # -berok will link without error, but may produce a broken library. 11894 allow_undefined_flag='-berok' 11895 # Determine the default libpath from the value encoded in an 11896 # empty executable. 11897 if test set = "${lt_cv_aix_libpath+set}"; then 11898 aix_libpath=$lt_cv_aix_libpath 11899else 11900 if ${lt_cv_aix_libpath_+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11904/* end confdefs.h. */ 11905 11906int 11907main () 11908{ 11909 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914if ac_fn_c_try_link "$LINENO"; then : 11915 11916 lt_aix_libpath_sed=' 11917 /Import File Strings/,/^$/ { 11918 /^0/ { 11919 s/^0 *\([^ ]*\) *$/\1/ 11920 p 11921 } 11922 }' 11923 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11924 # Check for a 64-bit object if we didn't find anything. 11925 if test -z "$lt_cv_aix_libpath_"; then 11926 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11927 fi 11928fi 11929rm -f core conftest.err conftest.$ac_objext \ 11930 conftest$ac_exeext conftest.$ac_ext 11931 if test -z "$lt_cv_aix_libpath_"; then 11932 lt_cv_aix_libpath_=/usr/lib:/lib 11933 fi 11934 11935fi 11936 11937 aix_libpath=$lt_cv_aix_libpath_ 11938fi 11939 11940 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11941 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11942 else 11943 if test ia64 = "$host_cpu"; then 11944 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11945 allow_undefined_flag="-z nodefs" 11946 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 11947 else 11948 # Determine the default libpath from the value encoded in an 11949 # empty executable. 11950 if test set = "${lt_cv_aix_libpath+set}"; then 11951 aix_libpath=$lt_cv_aix_libpath 11952else 11953 if ${lt_cv_aix_libpath_+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11957/* end confdefs.h. */ 11958 11959int 11960main () 11961{ 11962 11963 ; 11964 return 0; 11965} 11966_ACEOF 11967if ac_fn_c_try_link "$LINENO"; then : 11968 11969 lt_aix_libpath_sed=' 11970 /Import File Strings/,/^$/ { 11971 /^0/ { 11972 s/^0 *\([^ ]*\) *$/\1/ 11973 p 11974 } 11975 }' 11976 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11977 # Check for a 64-bit object if we didn't find anything. 11978 if test -z "$lt_cv_aix_libpath_"; then 11979 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11980 fi 11981fi 11982rm -f core conftest.err conftest.$ac_objext \ 11983 conftest$ac_exeext conftest.$ac_ext 11984 if test -z "$lt_cv_aix_libpath_"; then 11985 lt_cv_aix_libpath_=/usr/lib:/lib 11986 fi 11987 11988fi 11989 11990 aix_libpath=$lt_cv_aix_libpath_ 11991fi 11992 11993 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11994 # Warning - without using the other run time loading flags, 11995 # -berok will link without error, but may produce a broken library. 11996 no_undefined_flag=' $wl-bernotok' 11997 allow_undefined_flag=' $wl-berok' 11998 if test yes = "$with_gnu_ld"; then 11999 # We only use this code for GNU lds that support --whole-archive. 12000 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12001 else 12002 # Exported symbols can be pulled into shared objects from archives 12003 whole_archive_flag_spec='$convenience' 12004 fi 12005 archive_cmds_need_lc=yes 12006 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12007 # -brtl affects multiple linker settings, -berok does not and is overridden later 12008 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12009 if test svr4 != "$with_aix_soname"; then 12010 # This is similar to how AIX traditionally builds its shared libraries. 12011 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12012 fi 12013 if test aix != "$with_aix_soname"; then 12014 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12015 else 12016 # used by -dlpreopen to get the symbols 12017 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12018 fi 12019 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12020 fi 12021 fi 12022 ;; 12023 12024 amigaos*) 12025 case $host_cpu in 12026 powerpc) 12027 # see comment about AmigaOS4 .so support 12028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12029 archive_expsym_cmds='' 12030 ;; 12031 m68k) 12032 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 12033 hardcode_libdir_flag_spec='-L$libdir' 12034 hardcode_minus_L=yes 12035 ;; 12036 esac 12037 ;; 12038 12039 bsdi[45]*) 12040 export_dynamic_flag_spec=-rdynamic 12041 ;; 12042 12043 cygwin* | mingw* | pw32* | cegcc*) 12044 # When not using gcc, we currently assume that we are using 12045 # Microsoft Visual C++. 12046 # hardcode_libdir_flag_spec is actually meaningless, as there is 12047 # no search path for DLLs. 12048 case $cc_basename in 12049 cl*) 12050 # Native MSVC 12051 hardcode_libdir_flag_spec=' ' 12052 allow_undefined_flag=unsupported 12053 always_export_symbols=yes 12054 file_list_spec='@' 12055 # Tell ltmain to make .lib files, not .a files. 12056 libext=lib 12057 # Tell ltmain to make .dll files, not .so files. 12058 shrext_cmds=.dll 12059 # FIXME: Setting linknames here is a bad hack. 12060 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12061 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12062 cp "$export_symbols" "$output_objdir/$soname.def"; 12063 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12064 else 12065 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12066 fi~ 12067 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12068 linknames=' 12069 # The linker will not automatically build a static lib if we build a DLL. 12070 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12071 enable_shared_with_static_runtimes=yes 12072 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12074 # Don't use ranlib 12075 old_postinstall_cmds='chmod 644 $oldlib' 12076 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12077 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12078 case $lt_outputfile in 12079 *.exe|*.EXE) ;; 12080 *) 12081 lt_outputfile=$lt_outputfile.exe 12082 lt_tool_outputfile=$lt_tool_outputfile.exe 12083 ;; 12084 esac~ 12085 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12086 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12087 $RM "$lt_outputfile.manifest"; 12088 fi' 12089 ;; 12090 *) 12091 # Assume MSVC wrapper 12092 hardcode_libdir_flag_spec=' ' 12093 allow_undefined_flag=unsupported 12094 # Tell ltmain to make .lib files, not .a files. 12095 libext=lib 12096 # Tell ltmain to make .dll files, not .so files. 12097 shrext_cmds=.dll 12098 # FIXME: Setting linknames here is a bad hack. 12099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12100 # The linker will automatically build a .lib file if we build a DLL. 12101 old_archive_from_new_cmds='true' 12102 # FIXME: Should let the user specify the lib program. 12103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12104 enable_shared_with_static_runtimes=yes 12105 ;; 12106 esac 12107 ;; 12108 12109 darwin* | rhapsody*) 12110 12111 12112 archive_cmds_need_lc=no 12113 hardcode_direct=no 12114 hardcode_automatic=yes 12115 hardcode_shlibpath_var=unsupported 12116 if test yes = "$lt_cv_ld_force_load"; then 12117 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12118 12119 else 12120 whole_archive_flag_spec='' 12121 fi 12122 link_all_deplibs=yes 12123 allow_undefined_flag=$_lt_dar_allow_undefined 12124 case $cc_basename in 12125 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12126 *) _lt_dar_can_shared=$GCC ;; 12127 esac 12128 if test yes = "$_lt_dar_can_shared"; then 12129 output_verbose_link_cmd=func_echo_all 12130 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12131 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12132 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 12133 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 12134 12135 else 12136 ld_shlibs=no 12137 fi 12138 12139 ;; 12140 12141 dgux*) 12142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12143 hardcode_libdir_flag_spec='-L$libdir' 12144 hardcode_shlibpath_var=no 12145 ;; 12146 12147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12148 # support. Future versions do this automatically, but an explicit c++rt0.o 12149 # does not break anything, and helps significantly (at the cost of a little 12150 # extra space). 12151 freebsd2.2*) 12152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12153 hardcode_libdir_flag_spec='-R$libdir' 12154 hardcode_direct=yes 12155 hardcode_shlibpath_var=no 12156 ;; 12157 12158 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12159 freebsd2.*) 12160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12161 hardcode_direct=yes 12162 hardcode_minus_L=yes 12163 hardcode_shlibpath_var=no 12164 ;; 12165 12166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12167 freebsd* | dragonfly*) 12168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12169 hardcode_libdir_flag_spec='-R$libdir' 12170 hardcode_direct=yes 12171 hardcode_shlibpath_var=no 12172 ;; 12173 12174 hpux9*) 12175 if test yes = "$GCC"; then 12176 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12177 else 12178 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12179 fi 12180 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12181 hardcode_libdir_separator=: 12182 hardcode_direct=yes 12183 12184 # hardcode_minus_L: Not really in the search PATH, 12185 # but as the default location of the library. 12186 hardcode_minus_L=yes 12187 export_dynamic_flag_spec='$wl-E' 12188 ;; 12189 12190 hpux10*) 12191 if test yes,no = "$GCC,$with_gnu_ld"; then 12192 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12193 else 12194 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12195 fi 12196 if test no = "$with_gnu_ld"; then 12197 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12198 hardcode_libdir_separator=: 12199 hardcode_direct=yes 12200 hardcode_direct_absolute=yes 12201 export_dynamic_flag_spec='$wl-E' 12202 # hardcode_minus_L: Not really in the search PATH, 12203 # but as the default location of the library. 12204 hardcode_minus_L=yes 12205 fi 12206 ;; 12207 12208 hpux11*) 12209 if test yes,no = "$GCC,$with_gnu_ld"; then 12210 case $host_cpu in 12211 hppa*64*) 12212 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12213 ;; 12214 ia64*) 12215 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12216 ;; 12217 *) 12218 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12219 ;; 12220 esac 12221 else 12222 case $host_cpu in 12223 hppa*64*) 12224 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12225 ;; 12226 ia64*) 12227 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12228 ;; 12229 *) 12230 12231 # Older versions of the 11.00 compiler do not understand -b yet 12232 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12234$as_echo_n "checking if $CC understands -b... " >&6; } 12235if ${lt_cv_prog_compiler__b+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 lt_cv_prog_compiler__b=no 12239 save_LDFLAGS=$LDFLAGS 12240 LDFLAGS="$LDFLAGS -b" 12241 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12243 # The linker can only warn and ignore the option if not recognized 12244 # So say no if there are warnings 12245 if test -s conftest.err; then 12246 # Append any errors to the config.log. 12247 cat conftest.err 1>&5 12248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12250 if diff conftest.exp conftest.er2 >/dev/null; then 12251 lt_cv_prog_compiler__b=yes 12252 fi 12253 else 12254 lt_cv_prog_compiler__b=yes 12255 fi 12256 fi 12257 $RM -r conftest* 12258 LDFLAGS=$save_LDFLAGS 12259 12260fi 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12262$as_echo "$lt_cv_prog_compiler__b" >&6; } 12263 12264if test yes = "$lt_cv_prog_compiler__b"; then 12265 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12266else 12267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12268fi 12269 12270 ;; 12271 esac 12272 fi 12273 if test no = "$with_gnu_ld"; then 12274 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12275 hardcode_libdir_separator=: 12276 12277 case $host_cpu in 12278 hppa*64*|ia64*) 12279 hardcode_direct=no 12280 hardcode_shlibpath_var=no 12281 ;; 12282 *) 12283 hardcode_direct=yes 12284 hardcode_direct_absolute=yes 12285 export_dynamic_flag_spec='$wl-E' 12286 12287 # hardcode_minus_L: Not really in the search PATH, 12288 # but as the default location of the library. 12289 hardcode_minus_L=yes 12290 ;; 12291 esac 12292 fi 12293 ;; 12294 12295 irix5* | irix6* | nonstopux*) 12296 if test yes = "$GCC"; then 12297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12298 # Try to use the -exported_symbol ld option, if it does not 12299 # work, assume that -exports_file does not work either and 12300 # implicitly export all symbols. 12301 # This should be the same for all languages, so no per-tag cache variable. 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12303$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12304if ${lt_cv_irix_exported_symbol+:} false; then : 12305 $as_echo_n "(cached) " >&6 12306else 12307 save_LDFLAGS=$LDFLAGS 12308 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12310/* end confdefs.h. */ 12311int foo (void) { return 0; } 12312_ACEOF 12313if ac_fn_c_try_link "$LINENO"; then : 12314 lt_cv_irix_exported_symbol=yes 12315else 12316 lt_cv_irix_exported_symbol=no 12317fi 12318rm -f core conftest.err conftest.$ac_objext \ 12319 conftest$ac_exeext conftest.$ac_ext 12320 LDFLAGS=$save_LDFLAGS 12321fi 12322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12323$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12324 if test yes = "$lt_cv_irix_exported_symbol"; then 12325 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 12326 fi 12327 else 12328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 12330 fi 12331 archive_cmds_need_lc='no' 12332 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12333 hardcode_libdir_separator=: 12334 inherit_rpath=yes 12335 link_all_deplibs=yes 12336 ;; 12337 12338 linux*) 12339 case $cc_basename in 12340 tcc*) 12341 # Fabrice Bellard et al's Tiny C Compiler 12342 ld_shlibs=yes 12343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12344 ;; 12345 esac 12346 ;; 12347 12348 netbsd*) 12349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12351 else 12352 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12353 fi 12354 hardcode_libdir_flag_spec='-R$libdir' 12355 hardcode_direct=yes 12356 hardcode_shlibpath_var=no 12357 ;; 12358 12359 newsos6) 12360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12361 hardcode_direct=yes 12362 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12363 hardcode_libdir_separator=: 12364 hardcode_shlibpath_var=no 12365 ;; 12366 12367 *nto* | *qnx*) 12368 ;; 12369 12370 openbsd* | bitrig*) 12371 if test -f /usr/libexec/ld.so; then 12372 hardcode_direct=yes 12373 hardcode_shlibpath_var=no 12374 hardcode_direct_absolute=yes 12375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12377 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12378 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12379 export_dynamic_flag_spec='$wl-E' 12380 else 12381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12382 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12383 fi 12384 else 12385 ld_shlibs=no 12386 fi 12387 ;; 12388 12389 os2*) 12390 hardcode_libdir_flag_spec='-L$libdir' 12391 hardcode_minus_L=yes 12392 allow_undefined_flag=unsupported 12393 shrext_cmds=.dll 12394 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12397 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12398 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12399 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12400 emximp -o $lib $output_objdir/$libname.def' 12401 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12402 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12403 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12404 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12405 prefix_cmds="$SED"~ 12406 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12407 prefix_cmds="$prefix_cmds -e 1d"; 12408 fi~ 12409 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12410 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12412 emximp -o $lib $output_objdir/$libname.def' 12413 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12414 enable_shared_with_static_runtimes=yes 12415 ;; 12416 12417 osf3*) 12418 if test yes = "$GCC"; then 12419 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12420 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12421 else 12422 allow_undefined_flag=' -expect_unresolved \*' 12423 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12424 fi 12425 archive_cmds_need_lc='no' 12426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12427 hardcode_libdir_separator=: 12428 ;; 12429 12430 osf4* | osf5*) # as osf3* with the addition of -msym flag 12431 if test yes = "$GCC"; then 12432 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12433 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12435 else 12436 allow_undefined_flag=' -expect_unresolved \*' 12437 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12438 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 12439 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 12440 12441 # Both c and cxx compiler support -rpath directly 12442 hardcode_libdir_flag_spec='-rpath $libdir' 12443 fi 12444 archive_cmds_need_lc='no' 12445 hardcode_libdir_separator=: 12446 ;; 12447 12448 solaris*) 12449 no_undefined_flag=' -z defs' 12450 if test yes = "$GCC"; then 12451 wlarc='$wl' 12452 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12454 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12455 else 12456 case `$CC -V 2>&1` in 12457 *"Compilers 5.0"*) 12458 wlarc='' 12459 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12460 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12461 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12462 ;; 12463 *) 12464 wlarc='$wl' 12465 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12467 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12468 ;; 12469 esac 12470 fi 12471 hardcode_libdir_flag_spec='-R$libdir' 12472 hardcode_shlibpath_var=no 12473 case $host_os in 12474 solaris2.[0-5] | solaris2.[0-5].*) ;; 12475 *) 12476 # The compiler driver will combine and reorder linker options, 12477 # but understands '-z linker_flag'. GCC discards it without '$wl', 12478 # but is careful enough not to reorder. 12479 # Supported since Solaris 2.6 (maybe 2.5.1?) 12480 if test yes = "$GCC"; then 12481 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12482 else 12483 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12484 fi 12485 ;; 12486 esac 12487 link_all_deplibs=yes 12488 ;; 12489 12490 sunos4*) 12491 if test sequent = "$host_vendor"; then 12492 # Use $CC to link under sequent, because it throws in some extra .o 12493 # files that make .init and .fini sections work. 12494 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12495 else 12496 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12497 fi 12498 hardcode_libdir_flag_spec='-L$libdir' 12499 hardcode_direct=yes 12500 hardcode_minus_L=yes 12501 hardcode_shlibpath_var=no 12502 ;; 12503 12504 sysv4) 12505 case $host_vendor in 12506 sni) 12507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12508 hardcode_direct=yes # is this really true??? 12509 ;; 12510 siemens) 12511 ## LD is ld it makes a PLAMLIB 12512 ## CC just makes a GrossModule. 12513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12514 reload_cmds='$CC -r -o $output$reload_objs' 12515 hardcode_direct=no 12516 ;; 12517 motorola) 12518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12519 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12520 ;; 12521 esac 12522 runpath_var='LD_RUN_PATH' 12523 hardcode_shlibpath_var=no 12524 ;; 12525 12526 sysv4.3*) 12527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12528 hardcode_shlibpath_var=no 12529 export_dynamic_flag_spec='-Bexport' 12530 ;; 12531 12532 sysv4*MP*) 12533 if test -d /usr/nec; then 12534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12535 hardcode_shlibpath_var=no 12536 runpath_var=LD_RUN_PATH 12537 hardcode_runpath_var=yes 12538 ld_shlibs=yes 12539 fi 12540 ;; 12541 12542 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12543 no_undefined_flag='$wl-z,text' 12544 archive_cmds_need_lc=no 12545 hardcode_shlibpath_var=no 12546 runpath_var='LD_RUN_PATH' 12547 12548 if test yes = "$GCC"; then 12549 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12550 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12551 else 12552 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12553 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12554 fi 12555 ;; 12556 12557 sysv5* | sco3.2v5* | sco5v6*) 12558 # Note: We CANNOT use -z defs as we might desire, because we do not 12559 # link with -lc, and that would cause any symbols used from libc to 12560 # always be unresolved, which means just about no library would 12561 # ever link correctly. If we're not using GNU ld we use -z text 12562 # though, which does catch some bad symbols but isn't as heavy-handed 12563 # as -z defs. 12564 no_undefined_flag='$wl-z,text' 12565 allow_undefined_flag='$wl-z,nodefs' 12566 archive_cmds_need_lc=no 12567 hardcode_shlibpath_var=no 12568 hardcode_libdir_flag_spec='$wl-R,$libdir' 12569 hardcode_libdir_separator=':' 12570 link_all_deplibs=yes 12571 export_dynamic_flag_spec='$wl-Bexport' 12572 runpath_var='LD_RUN_PATH' 12573 12574 if test yes = "$GCC"; then 12575 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12576 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12577 else 12578 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12579 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12580 fi 12581 ;; 12582 12583 uts4*) 12584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12585 hardcode_libdir_flag_spec='-L$libdir' 12586 hardcode_shlibpath_var=no 12587 ;; 12588 12589 *) 12590 ld_shlibs=no 12591 ;; 12592 esac 12593 12594 if test sni = "$host_vendor"; then 12595 case $host in 12596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12597 export_dynamic_flag_spec='$wl-Blargedynsym' 12598 ;; 12599 esac 12600 fi 12601 fi 12602 12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12604$as_echo "$ld_shlibs" >&6; } 12605test no = "$ld_shlibs" && can_build_shared=no 12606 12607with_gnu_ld=$with_gnu_ld 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623# 12624# Do we need to explicitly link libc? 12625# 12626case "x$archive_cmds_need_lc" in 12627x|xyes) 12628 # Assume -lc should be added 12629 archive_cmds_need_lc=yes 12630 12631 if test yes,yes = "$GCC,$enable_shared"; then 12632 case $archive_cmds in 12633 *'~'*) 12634 # FIXME: we may have to deal with multi-command sequences. 12635 ;; 12636 '$CC '*) 12637 # Test whether the compiler implicitly links with -lc since on some 12638 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12639 # to ld, don't add -lc before -lgcc. 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12641$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12642if ${lt_cv_archive_cmds_need_lc+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644else 12645 $RM conftest* 12646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12647 12648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12649 (eval $ac_compile) 2>&5 12650 ac_status=$? 12651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12652 test $ac_status = 0; } 2>conftest.err; then 12653 soname=conftest 12654 lib=conftest 12655 libobjs=conftest.$ac_objext 12656 deplibs= 12657 wl=$lt_prog_compiler_wl 12658 pic_flag=$lt_prog_compiler_pic 12659 compiler_flags=-v 12660 linker_flags=-v 12661 verstring= 12662 output_objdir=. 12663 libname=conftest 12664 lt_save_allow_undefined_flag=$allow_undefined_flag 12665 allow_undefined_flag= 12666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12667 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12668 ac_status=$? 12669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12670 test $ac_status = 0; } 12671 then 12672 lt_cv_archive_cmds_need_lc=no 12673 else 12674 lt_cv_archive_cmds_need_lc=yes 12675 fi 12676 allow_undefined_flag=$lt_save_allow_undefined_flag 12677 else 12678 cat conftest.err 1>&5 12679 fi 12680 $RM conftest* 12681 12682fi 12683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12684$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12685 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12686 ;; 12687 esac 12688 fi 12689 ;; 12690esac 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12844$as_echo_n "checking dynamic linker characteristics... " >&6; } 12845 12846if test yes = "$GCC"; then 12847 case $host_os in 12848 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12849 *) lt_awk_arg='/^libraries:/' ;; 12850 esac 12851 case $host_os in 12852 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12853 *) lt_sed_strip_eq='s|=/|/|g' ;; 12854 esac 12855 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12856 case $lt_search_path_spec in 12857 *\;*) 12858 # if the path contains ";" then we assume it to be the separator 12859 # otherwise default to the standard path separator (i.e. ":") - it is 12860 # assumed that no part of a normal pathname contains ";" but that should 12861 # okay in the real world where ";" in dirpaths is itself problematic. 12862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12863 ;; 12864 *) 12865 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12866 ;; 12867 esac 12868 # Ok, now we have the path, separated by spaces, we can step through it 12869 # and add multilib dir if necessary... 12870 lt_tmp_lt_search_path_spec= 12871 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12872 # ...but if some path component already ends with the multilib dir we assume 12873 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12874 case "$lt_multi_os_dir; $lt_search_path_spec " in 12875 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12876 lt_multi_os_dir= 12877 ;; 12878 esac 12879 for lt_sys_path in $lt_search_path_spec; do 12880 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12881 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12882 elif test -n "$lt_multi_os_dir"; then 12883 test -d "$lt_sys_path" && \ 12884 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12885 fi 12886 done 12887 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12888BEGIN {RS = " "; FS = "/|\n";} { 12889 lt_foo = ""; 12890 lt_count = 0; 12891 for (lt_i = NF; lt_i > 0; lt_i--) { 12892 if ($lt_i != "" && $lt_i != ".") { 12893 if ($lt_i == "..") { 12894 lt_count++; 12895 } else { 12896 if (lt_count == 0) { 12897 lt_foo = "/" $lt_i lt_foo; 12898 } else { 12899 lt_count--; 12900 } 12901 } 12902 } 12903 } 12904 if (lt_foo != "") { lt_freq[lt_foo]++; } 12905 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12906}'` 12907 # AWK program above erroneously prepends '/' to C:/dos/paths 12908 # for these hosts. 12909 case $host_os in 12910 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12911 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12912 esac 12913 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12914else 12915 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12916fi 12917library_names_spec= 12918libname_spec='lib$name' 12919soname_spec= 12920shrext_cmds=.so 12921postinstall_cmds= 12922postuninstall_cmds= 12923finish_cmds= 12924finish_eval= 12925shlibpath_var= 12926shlibpath_overrides_runpath=unknown 12927version_type=none 12928dynamic_linker="$host_os ld.so" 12929sys_lib_dlsearch_path_spec="/lib /usr/lib" 12930need_lib_prefix=unknown 12931hardcode_into_libs=no 12932 12933# when you set need_version to no, make sure it does not cause -set_version 12934# flags to be left without arguments 12935need_version=unknown 12936 12937 12938 12939case $host_os in 12940aix3*) 12941 version_type=linux # correct to gnu/linux during the next big refactor 12942 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12943 shlibpath_var=LIBPATH 12944 12945 # AIX 3 has no versioning support, so we append a major version to the name. 12946 soname_spec='$libname$release$shared_ext$major' 12947 ;; 12948 12949aix[4-9]*) 12950 version_type=linux # correct to gnu/linux during the next big refactor 12951 need_lib_prefix=no 12952 need_version=no 12953 hardcode_into_libs=yes 12954 if test ia64 = "$host_cpu"; then 12955 # AIX 5 supports IA64 12956 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12957 shlibpath_var=LD_LIBRARY_PATH 12958 else 12959 # With GCC up to 2.95.x, collect2 would create an import file 12960 # for dependence libraries. The import file would start with 12961 # the line '#! .'. This would cause the generated library to 12962 # depend on '.', always an invalid library. This was fixed in 12963 # development snapshots of GCC prior to 3.0. 12964 case $host_os in 12965 aix4 | aix4.[01] | aix4.[01].*) 12966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12967 echo ' yes ' 12968 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12969 : 12970 else 12971 can_build_shared=no 12972 fi 12973 ;; 12974 esac 12975 # Using Import Files as archive members, it is possible to support 12976 # filename-based versioning of shared library archives on AIX. While 12977 # this would work for both with and without runtime linking, it will 12978 # prevent static linking of such archives. So we do filename-based 12979 # shared library versioning with .so extension only, which is used 12980 # when both runtime linking and shared linking is enabled. 12981 # Unfortunately, runtime linking may impact performance, so we do 12982 # not want this to be the default eventually. Also, we use the 12983 # versioned .so libs for executables only if there is the -brtl 12984 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12985 # To allow for filename-based versioning support, we need to create 12986 # libNAME.so.V as an archive file, containing: 12987 # *) an Import File, referring to the versioned filename of the 12988 # archive as well as the shared archive member, telling the 12989 # bitwidth (32 or 64) of that shared object, and providing the 12990 # list of exported symbols of that shared object, eventually 12991 # decorated with the 'weak' keyword 12992 # *) the shared object with the F_LOADONLY flag set, to really avoid 12993 # it being seen by the linker. 12994 # At run time we better use the real file rather than another symlink, 12995 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12996 12997 case $with_aix_soname,$aix_use_runtimelinking in 12998 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12999 # soname into executable. Probably we can add versioning support to 13000 # collect2, so additional links can be useful in future. 13001 aix,yes) # traditional libtool 13002 dynamic_linker='AIX unversionable lib.so' 13003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13004 # instead of lib<name>.a to let people know that these are not 13005 # typical AIX shared libraries. 13006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13007 ;; 13008 aix,no) # traditional AIX only 13009 dynamic_linker='AIX lib.a(lib.so.V)' 13010 # We preserve .a as extension for shared libraries through AIX4.2 13011 # and later when we are not doing run time linking. 13012 library_names_spec='$libname$release.a $libname.a' 13013 soname_spec='$libname$release$shared_ext$major' 13014 ;; 13015 svr4,*) # full svr4 only 13016 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13017 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13018 # We do not specify a path in Import Files, so LIBPATH fires. 13019 shlibpath_overrides_runpath=yes 13020 ;; 13021 *,yes) # both, prefer svr4 13022 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13023 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13024 # unpreferred sharedlib libNAME.a needs extra handling 13025 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13026 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13027 # We do not specify a path in Import Files, so LIBPATH fires. 13028 shlibpath_overrides_runpath=yes 13029 ;; 13030 *,no) # both, prefer aix 13031 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13032 library_names_spec='$libname$release.a $libname.a' 13033 soname_spec='$libname$release$shared_ext$major' 13034 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13035 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13036 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13037 ;; 13038 esac 13039 shlibpath_var=LIBPATH 13040 fi 13041 ;; 13042 13043amigaos*) 13044 case $host_cpu in 13045 powerpc) 13046 # Since July 2007 AmigaOS4 officially supports .so libraries. 13047 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13049 ;; 13050 m68k) 13051 library_names_spec='$libname.ixlibrary $libname.a' 13052 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13053 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13054 ;; 13055 esac 13056 ;; 13057 13058beos*) 13059 library_names_spec='$libname$shared_ext' 13060 dynamic_linker="$host_os ld.so" 13061 shlibpath_var=LIBRARY_PATH 13062 ;; 13063 13064bsdi[45]*) 13065 version_type=linux # correct to gnu/linux during the next big refactor 13066 need_version=no 13067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13068 soname_spec='$libname$release$shared_ext$major' 13069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13070 shlibpath_var=LD_LIBRARY_PATH 13071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13073 # the default ld.so.conf also contains /usr/contrib/lib and 13074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13075 # libtool to hard-code these into programs 13076 ;; 13077 13078cygwin* | mingw* | pw32* | cegcc*) 13079 version_type=windows 13080 shrext_cmds=.dll 13081 need_version=no 13082 need_lib_prefix=no 13083 13084 case $GCC,$cc_basename in 13085 yes,*) 13086 # gcc 13087 library_names_spec='$libname.dll.a' 13088 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13089 postinstall_cmds='base_file=`basename \$file`~ 13090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13091 dldir=$destdir/`dirname \$dlpath`~ 13092 test -d \$dldir || mkdir -p \$dldir~ 13093 $install_prog $dir/$dlname \$dldir/$dlname~ 13094 chmod a+x \$dldir/$dlname~ 13095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13097 fi' 13098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13099 dlpath=$dir/\$dldll~ 13100 $RM \$dlpath' 13101 shlibpath_overrides_runpath=yes 13102 13103 case $host_os in 13104 cygwin*) 13105 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13106 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13107 13108 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13109 ;; 13110 mingw* | cegcc*) 13111 # MinGW DLLs use traditional 'lib' prefix 13112 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13113 ;; 13114 pw32*) 13115 # pw32 DLLs use 'pw' prefix rather than 'lib' 13116 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13117 ;; 13118 esac 13119 dynamic_linker='Win32 ld.exe' 13120 ;; 13121 13122 *,cl*) 13123 # Native MSVC 13124 libname_spec='$name' 13125 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13126 library_names_spec='$libname.dll.lib' 13127 13128 case $build_os in 13129 mingw*) 13130 sys_lib_search_path_spec= 13131 lt_save_ifs=$IFS 13132 IFS=';' 13133 for lt_path in $LIB 13134 do 13135 IFS=$lt_save_ifs 13136 # Let DOS variable expansion print the short 8.3 style file name. 13137 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13138 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13139 done 13140 IFS=$lt_save_ifs 13141 # Convert to MSYS style. 13142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13143 ;; 13144 cygwin*) 13145 # Convert to unix form, then to dos form, then back to unix form 13146 # but this time dos style (no spaces!) so that the unix form looks 13147 # like /cygdrive/c/PROGRA~1:/cygdr... 13148 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13149 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13150 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13151 ;; 13152 *) 13153 sys_lib_search_path_spec=$LIB 13154 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13155 # It is most probably a Windows format PATH. 13156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13157 else 13158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13159 fi 13160 # FIXME: find the short name or the path components, as spaces are 13161 # common. (e.g. "Program Files" -> "PROGRA~1") 13162 ;; 13163 esac 13164 13165 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13166 postinstall_cmds='base_file=`basename \$file`~ 13167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13168 dldir=$destdir/`dirname \$dlpath`~ 13169 test -d \$dldir || mkdir -p \$dldir~ 13170 $install_prog $dir/$dlname \$dldir/$dlname' 13171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13172 dlpath=$dir/\$dldll~ 13173 $RM \$dlpath' 13174 shlibpath_overrides_runpath=yes 13175 dynamic_linker='Win32 link.exe' 13176 ;; 13177 13178 *) 13179 # Assume MSVC wrapper 13180 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13181 dynamic_linker='Win32 ld.exe' 13182 ;; 13183 esac 13184 # FIXME: first we should search . and the directory the executable is in 13185 shlibpath_var=PATH 13186 ;; 13187 13188darwin* | rhapsody*) 13189 dynamic_linker="$host_os dyld" 13190 version_type=darwin 13191 need_lib_prefix=no 13192 need_version=no 13193 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13194 soname_spec='$libname$release$major$shared_ext' 13195 shlibpath_overrides_runpath=yes 13196 shlibpath_var=DYLD_LIBRARY_PATH 13197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13198 13199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13201 ;; 13202 13203dgux*) 13204 version_type=linux # correct to gnu/linux during the next big refactor 13205 need_lib_prefix=no 13206 need_version=no 13207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13208 soname_spec='$libname$release$shared_ext$major' 13209 shlibpath_var=LD_LIBRARY_PATH 13210 ;; 13211 13212freebsd* | dragonfly*) 13213 # DragonFly does not have aout. When/if they implement a new 13214 # versioning mechanism, adjust this. 13215 if test -x /usr/bin/objformat; then 13216 objformat=`/usr/bin/objformat` 13217 else 13218 case $host_os in 13219 freebsd[23].*) objformat=aout ;; 13220 *) objformat=elf ;; 13221 esac 13222 fi 13223 version_type=freebsd-$objformat 13224 case $version_type in 13225 freebsd-elf*) 13226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13227 soname_spec='$libname$release$shared_ext$major' 13228 need_version=no 13229 need_lib_prefix=no 13230 ;; 13231 freebsd-*) 13232 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13233 need_version=yes 13234 ;; 13235 esac 13236 shlibpath_var=LD_LIBRARY_PATH 13237 case $host_os in 13238 freebsd2.*) 13239 shlibpath_overrides_runpath=yes 13240 ;; 13241 freebsd3.[01]* | freebsdelf3.[01]*) 13242 shlibpath_overrides_runpath=yes 13243 hardcode_into_libs=yes 13244 ;; 13245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13247 shlibpath_overrides_runpath=no 13248 hardcode_into_libs=yes 13249 ;; 13250 *) # from 4.6 on, and DragonFly 13251 shlibpath_overrides_runpath=yes 13252 hardcode_into_libs=yes 13253 ;; 13254 esac 13255 ;; 13256 13257haiku*) 13258 version_type=linux # correct to gnu/linux during the next big refactor 13259 need_lib_prefix=no 13260 need_version=no 13261 dynamic_linker="$host_os runtime_loader" 13262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13263 soname_spec='$libname$release$shared_ext$major' 13264 shlibpath_var=LIBRARY_PATH 13265 shlibpath_overrides_runpath=no 13266 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13267 hardcode_into_libs=yes 13268 ;; 13269 13270hpux9* | hpux10* | hpux11*) 13271 # Give a soname corresponding to the major version so that dld.sl refuses to 13272 # link against other versions. 13273 version_type=sunos 13274 need_lib_prefix=no 13275 need_version=no 13276 case $host_cpu in 13277 ia64*) 13278 shrext_cmds='.so' 13279 hardcode_into_libs=yes 13280 dynamic_linker="$host_os dld.so" 13281 shlibpath_var=LD_LIBRARY_PATH 13282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13284 soname_spec='$libname$release$shared_ext$major' 13285 if test 32 = "$HPUX_IA64_MODE"; then 13286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13287 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13288 else 13289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13290 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13291 fi 13292 ;; 13293 hppa*64*) 13294 shrext_cmds='.sl' 13295 hardcode_into_libs=yes 13296 dynamic_linker="$host_os dld.sl" 13297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13300 soname_spec='$libname$release$shared_ext$major' 13301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13303 ;; 13304 *) 13305 shrext_cmds='.sl' 13306 dynamic_linker="$host_os dld.sl" 13307 shlibpath_var=SHLIB_PATH 13308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13310 soname_spec='$libname$release$shared_ext$major' 13311 ;; 13312 esac 13313 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13314 postinstall_cmds='chmod 555 $lib' 13315 # or fails outright, so override atomically: 13316 install_override_mode=555 13317 ;; 13318 13319interix[3-9]*) 13320 version_type=linux # correct to gnu/linux during the next big refactor 13321 need_lib_prefix=no 13322 need_version=no 13323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13324 soname_spec='$libname$release$shared_ext$major' 13325 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13326 shlibpath_var=LD_LIBRARY_PATH 13327 shlibpath_overrides_runpath=no 13328 hardcode_into_libs=yes 13329 ;; 13330 13331irix5* | irix6* | nonstopux*) 13332 case $host_os in 13333 nonstopux*) version_type=nonstopux ;; 13334 *) 13335 if test yes = "$lt_cv_prog_gnu_ld"; then 13336 version_type=linux # correct to gnu/linux during the next big refactor 13337 else 13338 version_type=irix 13339 fi ;; 13340 esac 13341 need_lib_prefix=no 13342 need_version=no 13343 soname_spec='$libname$release$shared_ext$major' 13344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13345 case $host_os in 13346 irix5* | nonstopux*) 13347 libsuff= shlibsuff= 13348 ;; 13349 *) 13350 case $LD in # libtool.m4 will add one of these switches to LD 13351 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13352 libsuff= shlibsuff= libmagic=32-bit;; 13353 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13354 libsuff=32 shlibsuff=N32 libmagic=N32;; 13355 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13356 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13357 *) libsuff= shlibsuff= libmagic=never-match;; 13358 esac 13359 ;; 13360 esac 13361 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13362 shlibpath_overrides_runpath=no 13363 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13364 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13365 hardcode_into_libs=yes 13366 ;; 13367 13368# No shared lib support for Linux oldld, aout, or coff. 13369linux*oldld* | linux*aout* | linux*coff*) 13370 dynamic_linker=no 13371 ;; 13372 13373linux*android*) 13374 version_type=none # Android doesn't support versioned libraries. 13375 need_lib_prefix=no 13376 need_version=no 13377 library_names_spec='$libname$release$shared_ext' 13378 soname_spec='$libname$release$shared_ext' 13379 finish_cmds= 13380 shlibpath_var=LD_LIBRARY_PATH 13381 shlibpath_overrides_runpath=yes 13382 13383 # This implies no fast_install, which is unacceptable. 13384 # Some rework will be needed to allow for fast_install 13385 # before this can be enabled. 13386 hardcode_into_libs=yes 13387 13388 dynamic_linker='Android linker' 13389 # Don't embed -rpath directories since the linker doesn't support them. 13390 hardcode_libdir_flag_spec='-L$libdir' 13391 ;; 13392 13393# This must be glibc/ELF. 13394linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13395 version_type=linux # correct to gnu/linux during the next big refactor 13396 need_lib_prefix=no 13397 need_version=no 13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13399 soname_spec='$libname$release$shared_ext$major' 13400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13401 shlibpath_var=LD_LIBRARY_PATH 13402 shlibpath_overrides_runpath=no 13403 13404 # Some binutils ld are patched to set DT_RUNPATH 13405 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13406 $as_echo_n "(cached) " >&6 13407else 13408 lt_cv_shlibpath_overrides_runpath=no 13409 save_LDFLAGS=$LDFLAGS 13410 save_libdir=$libdir 13411 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13412 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415 13416int 13417main () 13418{ 13419 13420 ; 13421 return 0; 13422} 13423_ACEOF 13424if ac_fn_c_try_link "$LINENO"; then : 13425 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13426 lt_cv_shlibpath_overrides_runpath=yes 13427fi 13428fi 13429rm -f core conftest.err conftest.$ac_objext \ 13430 conftest$ac_exeext conftest.$ac_ext 13431 LDFLAGS=$save_LDFLAGS 13432 libdir=$save_libdir 13433 13434fi 13435 13436 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13437 13438 # This implies no fast_install, which is unacceptable. 13439 # Some rework will be needed to allow for fast_install 13440 # before this can be enabled. 13441 hardcode_into_libs=yes 13442 13443 # Ideally, we could use ldconfig to report *all* directores which are 13444 # searched for libraries, however this is still not possible. Aside from not 13445 # being certain /sbin/ldconfig is available, command 13446 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13447 # even though it is searched at run-time. Try to do the best guess by 13448 # appending ld.so.conf contents (and includes) to the search path. 13449 if test -f /etc/ld.so.conf; then 13450 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 13451 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13452 fi 13453 13454 # We used to test for /lib/ld.so.1 and disable shared libraries on 13455 # powerpc, because MkLinux only supported shared libraries with the 13456 # GNU dynamic linker. Since this was broken with cross compilers, 13457 # most powerpc-linux boxes support dynamic linking these days and 13458 # people can always --disable-shared, the test was removed, and we 13459 # assume the GNU/Linux dynamic linker is in use. 13460 dynamic_linker='GNU/Linux ld.so' 13461 ;; 13462 13463netbsd*) 13464 version_type=sunos 13465 need_lib_prefix=no 13466 need_version=no 13467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13470 dynamic_linker='NetBSD (a.out) ld.so' 13471 else 13472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13473 soname_spec='$libname$release$shared_ext$major' 13474 dynamic_linker='NetBSD ld.elf_so' 13475 fi 13476 shlibpath_var=LD_LIBRARY_PATH 13477 shlibpath_overrides_runpath=yes 13478 hardcode_into_libs=yes 13479 ;; 13480 13481newsos6) 13482 version_type=linux # correct to gnu/linux during the next big refactor 13483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13484 shlibpath_var=LD_LIBRARY_PATH 13485 shlibpath_overrides_runpath=yes 13486 ;; 13487 13488*nto* | *qnx*) 13489 version_type=qnx 13490 need_lib_prefix=no 13491 need_version=no 13492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13493 soname_spec='$libname$release$shared_ext$major' 13494 shlibpath_var=LD_LIBRARY_PATH 13495 shlibpath_overrides_runpath=no 13496 hardcode_into_libs=yes 13497 dynamic_linker='ldqnx.so' 13498 ;; 13499 13500openbsd* | bitrig*) 13501 version_type=sunos 13502 sys_lib_dlsearch_path_spec=/usr/lib 13503 need_lib_prefix=no 13504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13505 need_version=no 13506 else 13507 need_version=yes 13508 fi 13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13511 shlibpath_var=LD_LIBRARY_PATH 13512 shlibpath_overrides_runpath=yes 13513 ;; 13514 13515os2*) 13516 libname_spec='$name' 13517 version_type=windows 13518 shrext_cmds=.dll 13519 need_version=no 13520 need_lib_prefix=no 13521 # OS/2 can only load a DLL with a base name of 8 characters or less. 13522 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13523 v=$($ECHO $release$versuffix | tr -d .-); 13524 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13525 $ECHO $n$v`$shared_ext' 13526 library_names_spec='${libname}_dll.$libext' 13527 dynamic_linker='OS/2 ld.exe' 13528 shlibpath_var=BEGINLIBPATH 13529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13531 postinstall_cmds='base_file=`basename \$file`~ 13532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13533 dldir=$destdir/`dirname \$dlpath`~ 13534 test -d \$dldir || mkdir -p \$dldir~ 13535 $install_prog $dir/$dlname \$dldir/$dlname~ 13536 chmod a+x \$dldir/$dlname~ 13537 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13538 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13539 fi' 13540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13541 dlpath=$dir/\$dldll~ 13542 $RM \$dlpath' 13543 ;; 13544 13545osf3* | osf4* | osf5*) 13546 version_type=osf 13547 need_lib_prefix=no 13548 need_version=no 13549 soname_spec='$libname$release$shared_ext$major' 13550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13551 shlibpath_var=LD_LIBRARY_PATH 13552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13554 ;; 13555 13556rdos*) 13557 dynamic_linker=no 13558 ;; 13559 13560solaris*) 13561 version_type=linux # correct to gnu/linux during the next big refactor 13562 need_lib_prefix=no 13563 need_version=no 13564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13565 soname_spec='$libname$release$shared_ext$major' 13566 shlibpath_var=LD_LIBRARY_PATH 13567 shlibpath_overrides_runpath=yes 13568 hardcode_into_libs=yes 13569 # ldd complains unless libraries are executable 13570 postinstall_cmds='chmod +x $lib' 13571 ;; 13572 13573sunos4*) 13574 version_type=sunos 13575 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13577 shlibpath_var=LD_LIBRARY_PATH 13578 shlibpath_overrides_runpath=yes 13579 if test yes = "$with_gnu_ld"; then 13580 need_lib_prefix=no 13581 fi 13582 need_version=yes 13583 ;; 13584 13585sysv4 | sysv4.3*) 13586 version_type=linux # correct to gnu/linux during the next big refactor 13587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13588 soname_spec='$libname$release$shared_ext$major' 13589 shlibpath_var=LD_LIBRARY_PATH 13590 case $host_vendor in 13591 sni) 13592 shlibpath_overrides_runpath=no 13593 need_lib_prefix=no 13594 runpath_var=LD_RUN_PATH 13595 ;; 13596 siemens) 13597 need_lib_prefix=no 13598 ;; 13599 motorola) 13600 need_lib_prefix=no 13601 need_version=no 13602 shlibpath_overrides_runpath=no 13603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13604 ;; 13605 esac 13606 ;; 13607 13608sysv4*MP*) 13609 if test -d /usr/nec; then 13610 version_type=linux # correct to gnu/linux during the next big refactor 13611 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13612 soname_spec='$libname$shared_ext.$major' 13613 shlibpath_var=LD_LIBRARY_PATH 13614 fi 13615 ;; 13616 13617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13618 version_type=sco 13619 need_lib_prefix=no 13620 need_version=no 13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13622 soname_spec='$libname$release$shared_ext$major' 13623 shlibpath_var=LD_LIBRARY_PATH 13624 shlibpath_overrides_runpath=yes 13625 hardcode_into_libs=yes 13626 if test yes = "$with_gnu_ld"; then 13627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13628 else 13629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13630 case $host_os in 13631 sco3.2v5*) 13632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13633 ;; 13634 esac 13635 fi 13636 sys_lib_dlsearch_path_spec='/usr/lib' 13637 ;; 13638 13639tpf*) 13640 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13641 version_type=linux # correct to gnu/linux during the next big refactor 13642 need_lib_prefix=no 13643 need_version=no 13644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13645 shlibpath_var=LD_LIBRARY_PATH 13646 shlibpath_overrides_runpath=no 13647 hardcode_into_libs=yes 13648 ;; 13649 13650uts4*) 13651 version_type=linux # correct to gnu/linux during the next big refactor 13652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13653 soname_spec='$libname$release$shared_ext$major' 13654 shlibpath_var=LD_LIBRARY_PATH 13655 ;; 13656 13657*) 13658 dynamic_linker=no 13659 ;; 13660esac 13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13662$as_echo "$dynamic_linker" >&6; } 13663test no = "$dynamic_linker" && can_build_shared=no 13664 13665variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13666if test yes = "$GCC"; then 13667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13668fi 13669 13670if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13671 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13672fi 13673 13674if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13675 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13676fi 13677 13678# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13679configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13680 13681# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13682func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13683 13684# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13685configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13784$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13785hardcode_action= 13786if test -n "$hardcode_libdir_flag_spec" || 13787 test -n "$runpath_var" || 13788 test yes = "$hardcode_automatic"; then 13789 13790 # We can hardcode non-existent directories. 13791 if test no != "$hardcode_direct" && 13792 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13793 # have to relink, otherwise we might link with an installed library 13794 # when we should be linking with a yet-to-be-installed one 13795 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13796 test no != "$hardcode_minus_L"; then 13797 # Linking always hardcodes the temporary library directory. 13798 hardcode_action=relink 13799 else 13800 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13801 hardcode_action=immediate 13802 fi 13803else 13804 # We cannot hardcode anything, or else we can only hardcode existing 13805 # directories. 13806 hardcode_action=unsupported 13807fi 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13809$as_echo "$hardcode_action" >&6; } 13810 13811if test relink = "$hardcode_action" || 13812 test yes = "$inherit_rpath"; then 13813 # Fast installation is not supported 13814 enable_fast_install=no 13815elif test yes = "$shlibpath_overrides_runpath" || 13816 test no = "$enable_shared"; then 13817 # Fast installation is not necessary 13818 enable_fast_install=needless 13819fi 13820 13821 13822 13823 13824 13825 13826 if test yes != "$enable_dlopen"; then 13827 enable_dlopen=unknown 13828 enable_dlopen_self=unknown 13829 enable_dlopen_self_static=unknown 13830else 13831 lt_cv_dlopen=no 13832 lt_cv_dlopen_libs= 13833 13834 case $host_os in 13835 beos*) 13836 lt_cv_dlopen=load_add_on 13837 lt_cv_dlopen_libs= 13838 lt_cv_dlopen_self=yes 13839 ;; 13840 13841 mingw* | pw32* | cegcc*) 13842 lt_cv_dlopen=LoadLibrary 13843 lt_cv_dlopen_libs= 13844 ;; 13845 13846 cygwin*) 13847 lt_cv_dlopen=dlopen 13848 lt_cv_dlopen_libs= 13849 ;; 13850 13851 darwin*) 13852 # if libdl is installed we need to link against it 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13854$as_echo_n "checking for dlopen in -ldl... " >&6; } 13855if ${ac_cv_lib_dl_dlopen+:} false; then : 13856 $as_echo_n "(cached) " >&6 13857else 13858 ac_check_lib_save_LIBS=$LIBS 13859LIBS="-ldl $LIBS" 13860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13861/* end confdefs.h. */ 13862 13863/* Override any GCC internal prototype to avoid an error. 13864 Use char because int might match the return type of a GCC 13865 builtin and then its argument prototype would still apply. */ 13866#ifdef __cplusplus 13867extern "C" 13868#endif 13869char dlopen (); 13870int 13871main () 13872{ 13873return dlopen (); 13874 ; 13875 return 0; 13876} 13877_ACEOF 13878if ac_fn_c_try_link "$LINENO"; then : 13879 ac_cv_lib_dl_dlopen=yes 13880else 13881 ac_cv_lib_dl_dlopen=no 13882fi 13883rm -f core conftest.err conftest.$ac_objext \ 13884 conftest$ac_exeext conftest.$ac_ext 13885LIBS=$ac_check_lib_save_LIBS 13886fi 13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13888$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13889if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13890 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13891else 13892 13893 lt_cv_dlopen=dyld 13894 lt_cv_dlopen_libs= 13895 lt_cv_dlopen_self=yes 13896 13897fi 13898 13899 ;; 13900 13901 tpf*) 13902 # Don't try to run any link tests for TPF. We know it's impossible 13903 # because TPF is a cross-compiler, and we know how we open DSOs. 13904 lt_cv_dlopen=dlopen 13905 lt_cv_dlopen_libs= 13906 lt_cv_dlopen_self=no 13907 ;; 13908 13909 *) 13910 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13911if test "x$ac_cv_func_shl_load" = xyes; then : 13912 lt_cv_dlopen=shl_load 13913else 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13915$as_echo_n "checking for shl_load in -ldld... " >&6; } 13916if ${ac_cv_lib_dld_shl_load+:} false; then : 13917 $as_echo_n "(cached) " >&6 13918else 13919 ac_check_lib_save_LIBS=$LIBS 13920LIBS="-ldld $LIBS" 13921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13922/* end confdefs.h. */ 13923 13924/* Override any GCC internal prototype to avoid an error. 13925 Use char because int might match the return type of a GCC 13926 builtin and then its argument prototype would still apply. */ 13927#ifdef __cplusplus 13928extern "C" 13929#endif 13930char shl_load (); 13931int 13932main () 13933{ 13934return shl_load (); 13935 ; 13936 return 0; 13937} 13938_ACEOF 13939if ac_fn_c_try_link "$LINENO"; then : 13940 ac_cv_lib_dld_shl_load=yes 13941else 13942 ac_cv_lib_dld_shl_load=no 13943fi 13944rm -f core conftest.err conftest.$ac_objext \ 13945 conftest$ac_exeext conftest.$ac_ext 13946LIBS=$ac_check_lib_save_LIBS 13947fi 13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13949$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13950if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13951 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13952else 13953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13954if test "x$ac_cv_func_dlopen" = xyes; then : 13955 lt_cv_dlopen=dlopen 13956else 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13958$as_echo_n "checking for dlopen in -ldl... " >&6; } 13959if ${ac_cv_lib_dl_dlopen+:} false; then : 13960 $as_echo_n "(cached) " >&6 13961else 13962 ac_check_lib_save_LIBS=$LIBS 13963LIBS="-ldl $LIBS" 13964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13965/* end confdefs.h. */ 13966 13967/* Override any GCC internal prototype to avoid an error. 13968 Use char because int might match the return type of a GCC 13969 builtin and then its argument prototype would still apply. */ 13970#ifdef __cplusplus 13971extern "C" 13972#endif 13973char dlopen (); 13974int 13975main () 13976{ 13977return dlopen (); 13978 ; 13979 return 0; 13980} 13981_ACEOF 13982if ac_fn_c_try_link "$LINENO"; then : 13983 ac_cv_lib_dl_dlopen=yes 13984else 13985 ac_cv_lib_dl_dlopen=no 13986fi 13987rm -f core conftest.err conftest.$ac_objext \ 13988 conftest$ac_exeext conftest.$ac_ext 13989LIBS=$ac_check_lib_save_LIBS 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13992$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13993if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13994 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13995else 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13997$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13998if ${ac_cv_lib_svld_dlopen+:} false; then : 13999 $as_echo_n "(cached) " >&6 14000else 14001 ac_check_lib_save_LIBS=$LIBS 14002LIBS="-lsvld $LIBS" 14003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14004/* end confdefs.h. */ 14005 14006/* Override any GCC internal prototype to avoid an error. 14007 Use char because int might match the return type of a GCC 14008 builtin and then its argument prototype would still apply. */ 14009#ifdef __cplusplus 14010extern "C" 14011#endif 14012char dlopen (); 14013int 14014main () 14015{ 14016return dlopen (); 14017 ; 14018 return 0; 14019} 14020_ACEOF 14021if ac_fn_c_try_link "$LINENO"; then : 14022 ac_cv_lib_svld_dlopen=yes 14023else 14024 ac_cv_lib_svld_dlopen=no 14025fi 14026rm -f core conftest.err conftest.$ac_objext \ 14027 conftest$ac_exeext conftest.$ac_ext 14028LIBS=$ac_check_lib_save_LIBS 14029fi 14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14031$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14032if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14033 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14034else 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14036$as_echo_n "checking for dld_link in -ldld... " >&6; } 14037if ${ac_cv_lib_dld_dld_link+:} false; then : 14038 $as_echo_n "(cached) " >&6 14039else 14040 ac_check_lib_save_LIBS=$LIBS 14041LIBS="-ldld $LIBS" 14042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14043/* end confdefs.h. */ 14044 14045/* Override any GCC internal prototype to avoid an error. 14046 Use char because int might match the return type of a GCC 14047 builtin and then its argument prototype would still apply. */ 14048#ifdef __cplusplus 14049extern "C" 14050#endif 14051char dld_link (); 14052int 14053main () 14054{ 14055return dld_link (); 14056 ; 14057 return 0; 14058} 14059_ACEOF 14060if ac_fn_c_try_link "$LINENO"; then : 14061 ac_cv_lib_dld_dld_link=yes 14062else 14063 ac_cv_lib_dld_dld_link=no 14064fi 14065rm -f core conftest.err conftest.$ac_objext \ 14066 conftest$ac_exeext conftest.$ac_ext 14067LIBS=$ac_check_lib_save_LIBS 14068fi 14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14070$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14071if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14072 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14073fi 14074 14075 14076fi 14077 14078 14079fi 14080 14081 14082fi 14083 14084 14085fi 14086 14087 14088fi 14089 14090 ;; 14091 esac 14092 14093 if test no = "$lt_cv_dlopen"; then 14094 enable_dlopen=no 14095 else 14096 enable_dlopen=yes 14097 fi 14098 14099 case $lt_cv_dlopen in 14100 dlopen) 14101 save_CPPFLAGS=$CPPFLAGS 14102 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14103 14104 save_LDFLAGS=$LDFLAGS 14105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14106 14107 save_LIBS=$LIBS 14108 LIBS="$lt_cv_dlopen_libs $LIBS" 14109 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14111$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14112if ${lt_cv_dlopen_self+:} false; then : 14113 $as_echo_n "(cached) " >&6 14114else 14115 if test yes = "$cross_compiling"; then : 14116 lt_cv_dlopen_self=cross 14117else 14118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14119 lt_status=$lt_dlunknown 14120 cat > conftest.$ac_ext <<_LT_EOF 14121#line $LINENO "configure" 14122#include "confdefs.h" 14123 14124#if HAVE_DLFCN_H 14125#include <dlfcn.h> 14126#endif 14127 14128#include <stdio.h> 14129 14130#ifdef RTLD_GLOBAL 14131# define LT_DLGLOBAL RTLD_GLOBAL 14132#else 14133# ifdef DL_GLOBAL 14134# define LT_DLGLOBAL DL_GLOBAL 14135# else 14136# define LT_DLGLOBAL 0 14137# endif 14138#endif 14139 14140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14141 find out it does not work in some platform. */ 14142#ifndef LT_DLLAZY_OR_NOW 14143# ifdef RTLD_LAZY 14144# define LT_DLLAZY_OR_NOW RTLD_LAZY 14145# else 14146# ifdef DL_LAZY 14147# define LT_DLLAZY_OR_NOW DL_LAZY 14148# else 14149# ifdef RTLD_NOW 14150# define LT_DLLAZY_OR_NOW RTLD_NOW 14151# else 14152# ifdef DL_NOW 14153# define LT_DLLAZY_OR_NOW DL_NOW 14154# else 14155# define LT_DLLAZY_OR_NOW 0 14156# endif 14157# endif 14158# endif 14159# endif 14160#endif 14161 14162/* When -fvisibility=hidden is used, assume the code has been annotated 14163 correspondingly for the symbols needed. */ 14164#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14165int fnord () __attribute__((visibility("default"))); 14166#endif 14167 14168int fnord () { return 42; } 14169int main () 14170{ 14171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14172 int status = $lt_dlunknown; 14173 14174 if (self) 14175 { 14176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14177 else 14178 { 14179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14180 else puts (dlerror ()); 14181 } 14182 /* dlclose (self); */ 14183 } 14184 else 14185 puts (dlerror ()); 14186 14187 return status; 14188} 14189_LT_EOF 14190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14191 (eval $ac_link) 2>&5 14192 ac_status=$? 14193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14194 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14195 (./conftest; exit; ) >&5 2>/dev/null 14196 lt_status=$? 14197 case x$lt_status in 14198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14201 esac 14202 else : 14203 # compilation failed 14204 lt_cv_dlopen_self=no 14205 fi 14206fi 14207rm -fr conftest* 14208 14209 14210fi 14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14212$as_echo "$lt_cv_dlopen_self" >&6; } 14213 14214 if test yes = "$lt_cv_dlopen_self"; then 14215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14217$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14218if ${lt_cv_dlopen_self_static+:} false; then : 14219 $as_echo_n "(cached) " >&6 14220else 14221 if test yes = "$cross_compiling"; then : 14222 lt_cv_dlopen_self_static=cross 14223else 14224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14225 lt_status=$lt_dlunknown 14226 cat > conftest.$ac_ext <<_LT_EOF 14227#line $LINENO "configure" 14228#include "confdefs.h" 14229 14230#if HAVE_DLFCN_H 14231#include <dlfcn.h> 14232#endif 14233 14234#include <stdio.h> 14235 14236#ifdef RTLD_GLOBAL 14237# define LT_DLGLOBAL RTLD_GLOBAL 14238#else 14239# ifdef DL_GLOBAL 14240# define LT_DLGLOBAL DL_GLOBAL 14241# else 14242# define LT_DLGLOBAL 0 14243# endif 14244#endif 14245 14246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14247 find out it does not work in some platform. */ 14248#ifndef LT_DLLAZY_OR_NOW 14249# ifdef RTLD_LAZY 14250# define LT_DLLAZY_OR_NOW RTLD_LAZY 14251# else 14252# ifdef DL_LAZY 14253# define LT_DLLAZY_OR_NOW DL_LAZY 14254# else 14255# ifdef RTLD_NOW 14256# define LT_DLLAZY_OR_NOW RTLD_NOW 14257# else 14258# ifdef DL_NOW 14259# define LT_DLLAZY_OR_NOW DL_NOW 14260# else 14261# define LT_DLLAZY_OR_NOW 0 14262# endif 14263# endif 14264# endif 14265# endif 14266#endif 14267 14268/* When -fvisibility=hidden is used, assume the code has been annotated 14269 correspondingly for the symbols needed. */ 14270#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14271int fnord () __attribute__((visibility("default"))); 14272#endif 14273 14274int fnord () { return 42; } 14275int main () 14276{ 14277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14278 int status = $lt_dlunknown; 14279 14280 if (self) 14281 { 14282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14283 else 14284 { 14285 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14286 else puts (dlerror ()); 14287 } 14288 /* dlclose (self); */ 14289 } 14290 else 14291 puts (dlerror ()); 14292 14293 return status; 14294} 14295_LT_EOF 14296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14297 (eval $ac_link) 2>&5 14298 ac_status=$? 14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14300 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14301 (./conftest; exit; ) >&5 2>/dev/null 14302 lt_status=$? 14303 case x$lt_status in 14304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14307 esac 14308 else : 14309 # compilation failed 14310 lt_cv_dlopen_self_static=no 14311 fi 14312fi 14313rm -fr conftest* 14314 14315 14316fi 14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14318$as_echo "$lt_cv_dlopen_self_static" >&6; } 14319 fi 14320 14321 CPPFLAGS=$save_CPPFLAGS 14322 LDFLAGS=$save_LDFLAGS 14323 LIBS=$save_LIBS 14324 ;; 14325 esac 14326 14327 case $lt_cv_dlopen_self in 14328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14329 *) enable_dlopen_self=unknown ;; 14330 esac 14331 14332 case $lt_cv_dlopen_self_static in 14333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14334 *) enable_dlopen_self_static=unknown ;; 14335 esac 14336fi 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354striplib= 14355old_striplib= 14356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14357$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14358if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14360 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14362$as_echo "yes" >&6; } 14363else 14364# FIXME - insert some real tests, host_os isn't really good enough 14365 case $host_os in 14366 darwin*) 14367 if test -n "$STRIP"; then 14368 striplib="$STRIP -x" 14369 old_striplib="$STRIP -S" 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14371$as_echo "yes" >&6; } 14372 else 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14374$as_echo "no" >&6; } 14375 fi 14376 ;; 14377 *) 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14379$as_echo "no" >&6; } 14380 ;; 14381 esac 14382fi 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 # Report what library types will actually be built 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14397$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14399$as_echo "$can_build_shared" >&6; } 14400 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14402$as_echo_n "checking whether to build shared libraries... " >&6; } 14403 test no = "$can_build_shared" && enable_shared=no 14404 14405 # On AIX, shared libraries and static libraries use the same namespace, and 14406 # are all built from PIC. 14407 case $host_os in 14408 aix3*) 14409 test yes = "$enable_shared" && enable_static=no 14410 if test -n "$RANLIB"; then 14411 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14412 postinstall_cmds='$RANLIB $lib' 14413 fi 14414 ;; 14415 14416 aix[4-9]*) 14417 if test ia64 != "$host_cpu"; then 14418 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14419 yes,aix,yes) ;; # shared object as lib.so file only 14420 yes,svr4,*) ;; # shared object as lib.so archive member only 14421 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14422 esac 14423 fi 14424 ;; 14425 esac 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14427$as_echo "$enable_shared" >&6; } 14428 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14430$as_echo_n "checking whether to build static libraries... " >&6; } 14431 # Make sure either enable_shared or enable_static is yes. 14432 test yes = "$enable_shared" || enable_static=yes 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14434$as_echo "$enable_static" >&6; } 14435 14436 14437 14438 14439fi 14440ac_ext=c 14441ac_cpp='$CPP $CPPFLAGS' 14442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14444ac_compiler_gnu=$ac_cv_c_compiler_gnu 14445 14446CC=$lt_save_CC 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 ac_config_commands="$ac_config_commands libtool" 14463 14464 14465 14466 14467# Only expand once: 14468 14469 14470 14471 14472############################################################################ 14473# Setup the core 14474############################################################################ 14475 14476# Setup the pmix core 14477 14478 pmix_show_subtitle "C compiler and preprocessor" 14479 14480 # $%@#!@#% AIX!! This has to be called before anything invokes the C 14481 # compiler. 14482 14483 14484 # 14485 # Check for the compiler 14486 # 14487 14488 14489 # Is the private index set? If not, set it. 14490 if test "x$pmix_scope_index" = "x"; then 14491 pmix_scope_index=1 14492 fi 14493 14494 # First, check to see if any of these variables are already set. 14495 # This is a simple sanity check to ensure we're not already 14496 # overwriting pre-existing variables (that have a non-empty 14497 # value). It's not a perfect check, but at least it's something. 14498 for pmix_var in pmix_cflags_save dummy pmix_cc_arvgv0; do 14499 pmix_str="pmix_str=\"\$$pmix_var\"" 14500 eval $pmix_str 14501 14502 if test "x$pmix_str" != "x"; then 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 14504$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 14506$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 14508$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 14510$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 14511 as_fn_error $? "Cannot continue" "$LINENO" 5 14512 fi 14513 done 14514 14515 # Ok, we passed the simple sanity check. Save all these names so 14516 # that we can unset them at the end of the scope. 14517 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cflags_save dummy pmix_cc_arvgv0\"" 14518 eval $pmix_str 14519 unset pmix_str 14520 14521 env | grep pmix_scope 14522 pmix_scope_index=`expr $pmix_scope_index + 1` 14523 14524 pmix_cflags_save="$CFLAGS" 14525 ac_ext=c 14526ac_cpp='$CPP $CPPFLAGS' 14527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14529ac_compiler_gnu=$ac_cv_c_compiler_gnu 14530if test -n "$ac_tool_prefix"; then 14531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 14532set dummy ${ac_tool_prefix}gcc; ac_word=$2 14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14534$as_echo_n "checking for $ac_word... " >&6; } 14535if ${ac_cv_prog_CC+:} false; then : 14536 $as_echo_n "(cached) " >&6 14537else 14538 if test -n "$CC"; then 14539 ac_cv_prog_CC="$CC" # Let the user override the test. 14540else 14541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14542for as_dir in $PATH 14543do 14544 IFS=$as_save_IFS 14545 test -z "$as_dir" && as_dir=. 14546 for ac_exec_ext in '' $ac_executable_extensions; do 14547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14548 ac_cv_prog_CC="${ac_tool_prefix}gcc" 14549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14550 break 2 14551 fi 14552done 14553 done 14554IFS=$as_save_IFS 14555 14556fi 14557fi 14558CC=$ac_cv_prog_CC 14559if test -n "$CC"; then 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14561$as_echo "$CC" >&6; } 14562else 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14564$as_echo "no" >&6; } 14565fi 14566 14567 14568fi 14569if test -z "$ac_cv_prog_CC"; then 14570 ac_ct_CC=$CC 14571 # Extract the first word of "gcc", so it can be a program name with args. 14572set dummy gcc; ac_word=$2 14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14574$as_echo_n "checking for $ac_word... " >&6; } 14575if ${ac_cv_prog_ac_ct_CC+:} false; then : 14576 $as_echo_n "(cached) " >&6 14577else 14578 if test -n "$ac_ct_CC"; then 14579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14580else 14581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14582for as_dir in $PATH 14583do 14584 IFS=$as_save_IFS 14585 test -z "$as_dir" && as_dir=. 14586 for ac_exec_ext in '' $ac_executable_extensions; do 14587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14588 ac_cv_prog_ac_ct_CC="gcc" 14589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14590 break 2 14591 fi 14592done 14593 done 14594IFS=$as_save_IFS 14595 14596fi 14597fi 14598ac_ct_CC=$ac_cv_prog_ac_ct_CC 14599if test -n "$ac_ct_CC"; then 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14601$as_echo "$ac_ct_CC" >&6; } 14602else 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14604$as_echo "no" >&6; } 14605fi 14606 14607 if test "x$ac_ct_CC" = x; then 14608 CC="" 14609 else 14610 case $cross_compiling:$ac_tool_warned in 14611yes:) 14612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14614ac_tool_warned=yes ;; 14615esac 14616 CC=$ac_ct_CC 14617 fi 14618else 14619 CC="$ac_cv_prog_CC" 14620fi 14621 14622if test -z "$CC"; then 14623 if test -n "$ac_tool_prefix"; then 14624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 14625set dummy ${ac_tool_prefix}cc; ac_word=$2 14626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14627$as_echo_n "checking for $ac_word... " >&6; } 14628if ${ac_cv_prog_CC+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 if test -n "$CC"; then 14632 ac_cv_prog_CC="$CC" # Let the user override the test. 14633else 14634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14635for as_dir in $PATH 14636do 14637 IFS=$as_save_IFS 14638 test -z "$as_dir" && as_dir=. 14639 for ac_exec_ext in '' $ac_executable_extensions; do 14640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14641 ac_cv_prog_CC="${ac_tool_prefix}cc" 14642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14643 break 2 14644 fi 14645done 14646 done 14647IFS=$as_save_IFS 14648 14649fi 14650fi 14651CC=$ac_cv_prog_CC 14652if test -n "$CC"; then 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14654$as_echo "$CC" >&6; } 14655else 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14657$as_echo "no" >&6; } 14658fi 14659 14660 14661 fi 14662fi 14663if test -z "$CC"; then 14664 # Extract the first word of "cc", so it can be a program name with args. 14665set dummy cc; ac_word=$2 14666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14667$as_echo_n "checking for $ac_word... " >&6; } 14668if ${ac_cv_prog_CC+:} false; then : 14669 $as_echo_n "(cached) " >&6 14670else 14671 if test -n "$CC"; then 14672 ac_cv_prog_CC="$CC" # Let the user override the test. 14673else 14674 ac_prog_rejected=no 14675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14676for as_dir in $PATH 14677do 14678 IFS=$as_save_IFS 14679 test -z "$as_dir" && as_dir=. 14680 for ac_exec_ext in '' $ac_executable_extensions; do 14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 14683 ac_prog_rejected=yes 14684 continue 14685 fi 14686 ac_cv_prog_CC="cc" 14687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14688 break 2 14689 fi 14690done 14691 done 14692IFS=$as_save_IFS 14693 14694if test $ac_prog_rejected = yes; then 14695 # We found a bogon in the path, so make sure we never use it. 14696 set dummy $ac_cv_prog_CC 14697 shift 14698 if test $# != 0; then 14699 # We chose a different compiler from the bogus one. 14700 # However, it has the same basename, so the bogon will be chosen 14701 # first if we set CC to just the basename; use the full file name. 14702 shift 14703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 14704 fi 14705fi 14706fi 14707fi 14708CC=$ac_cv_prog_CC 14709if test -n "$CC"; then 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14711$as_echo "$CC" >&6; } 14712else 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14714$as_echo "no" >&6; } 14715fi 14716 14717 14718fi 14719if test -z "$CC"; then 14720 if test -n "$ac_tool_prefix"; then 14721 for ac_prog in cl.exe 14722 do 14723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14724set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14726$as_echo_n "checking for $ac_word... " >&6; } 14727if ${ac_cv_prog_CC+:} false; then : 14728 $as_echo_n "(cached) " >&6 14729else 14730 if test -n "$CC"; then 14731 ac_cv_prog_CC="$CC" # Let the user override the test. 14732else 14733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14734for as_dir in $PATH 14735do 14736 IFS=$as_save_IFS 14737 test -z "$as_dir" && as_dir=. 14738 for ac_exec_ext in '' $ac_executable_extensions; do 14739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 14741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14742 break 2 14743 fi 14744done 14745 done 14746IFS=$as_save_IFS 14747 14748fi 14749fi 14750CC=$ac_cv_prog_CC 14751if test -n "$CC"; then 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14753$as_echo "$CC" >&6; } 14754else 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14756$as_echo "no" >&6; } 14757fi 14758 14759 14760 test -n "$CC" && break 14761 done 14762fi 14763if test -z "$CC"; then 14764 ac_ct_CC=$CC 14765 for ac_prog in cl.exe 14766do 14767 # Extract the first word of "$ac_prog", so it can be a program name with args. 14768set dummy $ac_prog; ac_word=$2 14769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14770$as_echo_n "checking for $ac_word... " >&6; } 14771if ${ac_cv_prog_ac_ct_CC+:} false; then : 14772 $as_echo_n "(cached) " >&6 14773else 14774 if test -n "$ac_ct_CC"; then 14775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14776else 14777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14778for as_dir in $PATH 14779do 14780 IFS=$as_save_IFS 14781 test -z "$as_dir" && as_dir=. 14782 for ac_exec_ext in '' $ac_executable_extensions; do 14783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14784 ac_cv_prog_ac_ct_CC="$ac_prog" 14785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14786 break 2 14787 fi 14788done 14789 done 14790IFS=$as_save_IFS 14791 14792fi 14793fi 14794ac_ct_CC=$ac_cv_prog_ac_ct_CC 14795if test -n "$ac_ct_CC"; then 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14797$as_echo "$ac_ct_CC" >&6; } 14798else 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14800$as_echo "no" >&6; } 14801fi 14802 14803 14804 test -n "$ac_ct_CC" && break 14805done 14806 14807 if test "x$ac_ct_CC" = x; then 14808 CC="" 14809 else 14810 case $cross_compiling:$ac_tool_warned in 14811yes:) 14812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14814ac_tool_warned=yes ;; 14815esac 14816 CC=$ac_ct_CC 14817 fi 14818fi 14819 14820fi 14821 14822 14823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14825as_fn_error $? "no acceptable C compiler found in \$PATH 14826See \`config.log' for more details" "$LINENO" 5; } 14827 14828# Provide some information about the compiler. 14829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 14830set X $ac_compile 14831ac_compiler=$2 14832for ac_option in --version -v -V -qversion; do 14833 { { ac_try="$ac_compiler $ac_option >&5" 14834case "(($ac_try" in 14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14836 *) ac_try_echo=$ac_try;; 14837esac 14838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14839$as_echo "$ac_try_echo"; } >&5 14840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 14841 ac_status=$? 14842 if test -s conftest.err; then 14843 sed '10a\ 14844... rest of stderr output deleted ... 14845 10q' conftest.err >conftest.er1 14846 cat conftest.er1 >&5 14847 fi 14848 rm -f conftest.er1 conftest.err 14849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14850 test $ac_status = 0; } 14851done 14852 14853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 14854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 14855if ${ac_cv_c_compiler_gnu+:} false; then : 14856 $as_echo_n "(cached) " >&6 14857else 14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14859/* end confdefs.h. */ 14860 14861int 14862main () 14863{ 14864#ifndef __GNUC__ 14865 choke me 14866#endif 14867 14868 ; 14869 return 0; 14870} 14871_ACEOF 14872if ac_fn_c_try_compile "$LINENO"; then : 14873 ac_compiler_gnu=yes 14874else 14875 ac_compiler_gnu=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14878ac_cv_c_compiler_gnu=$ac_compiler_gnu 14879 14880fi 14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 14882$as_echo "$ac_cv_c_compiler_gnu" >&6; } 14883if test $ac_compiler_gnu = yes; then 14884 GCC=yes 14885else 14886 GCC= 14887fi 14888ac_test_CFLAGS=${CFLAGS+set} 14889ac_save_CFLAGS=$CFLAGS 14890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 14891$as_echo_n "checking whether $CC accepts -g... " >&6; } 14892if ${ac_cv_prog_cc_g+:} false; then : 14893 $as_echo_n "(cached) " >&6 14894else 14895 ac_save_c_werror_flag=$ac_c_werror_flag 14896 ac_c_werror_flag=yes 14897 ac_cv_prog_cc_g=no 14898 CFLAGS="-g" 14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14900/* end confdefs.h. */ 14901 14902int 14903main () 14904{ 14905 14906 ; 14907 return 0; 14908} 14909_ACEOF 14910if ac_fn_c_try_compile "$LINENO"; then : 14911 ac_cv_prog_cc_g=yes 14912else 14913 CFLAGS="" 14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14915/* end confdefs.h. */ 14916 14917int 14918main () 14919{ 14920 14921 ; 14922 return 0; 14923} 14924_ACEOF 14925if ac_fn_c_try_compile "$LINENO"; then : 14926 14927else 14928 ac_c_werror_flag=$ac_save_c_werror_flag 14929 CFLAGS="-g" 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932 14933int 14934main () 14935{ 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_compile "$LINENO"; then : 14942 ac_cv_prog_cc_g=yes 14943fi 14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14945fi 14946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14947fi 14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14949 ac_c_werror_flag=$ac_save_c_werror_flag 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 14952$as_echo "$ac_cv_prog_cc_g" >&6; } 14953if test "$ac_test_CFLAGS" = set; then 14954 CFLAGS=$ac_save_CFLAGS 14955elif test $ac_cv_prog_cc_g = yes; then 14956 if test "$GCC" = yes; then 14957 CFLAGS="-g -O2" 14958 else 14959 CFLAGS="-g" 14960 fi 14961else 14962 if test "$GCC" = yes; then 14963 CFLAGS="-O2" 14964 else 14965 CFLAGS= 14966 fi 14967fi 14968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 14969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 14970if ${ac_cv_prog_cc_c89+:} false; then : 14971 $as_echo_n "(cached) " >&6 14972else 14973 ac_cv_prog_cc_c89=no 14974ac_save_CC=$CC 14975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14976/* end confdefs.h. */ 14977#include <stdarg.h> 14978#include <stdio.h> 14979struct stat; 14980/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 14981struct buf { int x; }; 14982FILE * (*rcsopen) (struct buf *, struct stat *, int); 14983static char *e (p, i) 14984 char **p; 14985 int i; 14986{ 14987 return p[i]; 14988} 14989static char *f (char * (*g) (char **, int), char **p, ...) 14990{ 14991 char *s; 14992 va_list v; 14993 va_start (v,p); 14994 s = g (p, va_arg (v,int)); 14995 va_end (v); 14996 return s; 14997} 14998 14999/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 15000 function prototypes and stuff, but not '\xHH' hex character constants. 15001 These don't provoke an error unfortunately, instead are silently treated 15002 as 'x'. The following induces an error, until -std is added to get 15003 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 15004 array size at least. It's necessary to write '\x00'==0 to get something 15005 that's true only with -std. */ 15006int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 15007 15008/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 15009 inside strings and character constants. */ 15010#define FOO(x) 'x' 15011int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 15012 15013int test (int i, double x); 15014struct s1 {int (*f) (int a);}; 15015struct s2 {int (*f) (double a);}; 15016int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 15017int argc; 15018char **argv; 15019int 15020main () 15021{ 15022return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 15023 ; 15024 return 0; 15025} 15026_ACEOF 15027for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 15028 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 15029do 15030 CC="$ac_save_CC $ac_arg" 15031 if ac_fn_c_try_compile "$LINENO"; then : 15032 ac_cv_prog_cc_c89=$ac_arg 15033fi 15034rm -f core conftest.err conftest.$ac_objext 15035 test "x$ac_cv_prog_cc_c89" != "xno" && break 15036done 15037rm -f conftest.$ac_ext 15038CC=$ac_save_CC 15039 15040fi 15041# AC_CACHE_VAL 15042case "x$ac_cv_prog_cc_c89" in 15043 x) 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15045$as_echo "none needed" >&6; } ;; 15046 xno) 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15048$as_echo "unsupported" >&6; } ;; 15049 *) 15050 CC="$CC $ac_cv_prog_cc_c89" 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 15052$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 15053esac 15054if test "x$ac_cv_prog_cc_c89" != xno; then : 15055 15056fi 15057 15058ac_ext=c 15059ac_cpp='$CPP $CPPFLAGS' 15060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15062ac_compiler_gnu=$ac_cv_c_compiler_gnu 15063 15064ac_ext=c 15065ac_cpp='$CPP $CPPFLAGS' 15066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15068ac_compiler_gnu=$ac_cv_c_compiler_gnu 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 15070$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 15071if ${am_cv_prog_cc_c_o+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076 15077int 15078main () 15079{ 15080 15081 ; 15082 return 0; 15083} 15084_ACEOF 15085 # Make sure it works both with $CC and with simple cc. 15086 # Following AC_PROG_CC_C_O, we do the test twice because some 15087 # compilers refuse to overwrite an existing .o file with -o, 15088 # though they will create one. 15089 am_cv_prog_cc_c_o=yes 15090 for am_i in 1 2; do 15091 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 15092 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 15093 ac_status=$? 15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15095 (exit $ac_status); } \ 15096 && test -f conftest2.$ac_objext; then 15097 : OK 15098 else 15099 am_cv_prog_cc_c_o=no 15100 break 15101 fi 15102 done 15103 rm -f core conftest* 15104 unset am_i 15105fi 15106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 15107$as_echo "$am_cv_prog_cc_c_o" >&6; } 15108if test "$am_cv_prog_cc_c_o" != yes; then 15109 # Losing compiler, so override with the script. 15110 # FIXME: It is wrong to rewrite CC. 15111 # But if we don't then we get into trouble of one sort or another. 15112 # A longer-term fix would be to have automake use am__CC in this case, 15113 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 15114 CC="$am_aux_dir/compile $CC" 15115fi 15116ac_ext=c 15117ac_cpp='$CPP $CPPFLAGS' 15118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15120ac_compiler_gnu=$ac_cv_c_compiler_gnu 15121 15122 15123depcc="$CC" am_compiler_list= 15124 15125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 15126$as_echo_n "checking dependency style of $depcc... " >&6; } 15127if ${am_cv_CC_dependencies_compiler_type+:} false; then : 15128 $as_echo_n "(cached) " >&6 15129else 15130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 15131 # We make a subdir and do the tests there. Otherwise we can end up 15132 # making bogus files that we don't know about and never remove. For 15133 # instance it was reported that on HP-UX the gcc test will end up 15134 # making a dummy file named 'D' -- because '-MD' means "put the output 15135 # in D". 15136 rm -rf conftest.dir 15137 mkdir conftest.dir 15138 # Copy depcomp to subdir because otherwise we won't find it if we're 15139 # using a relative directory. 15140 cp "$am_depcomp" conftest.dir 15141 cd conftest.dir 15142 # We will build objects and dependencies in a subdirectory because 15143 # it helps to detect inapplicable dependency modes. For instance 15144 # both Tru64's cc and ICC support -MD to output dependencies as a 15145 # side effect of compilation, but ICC will put the dependencies in 15146 # the current directory while Tru64 will put them in the object 15147 # directory. 15148 mkdir sub 15149 15150 am_cv_CC_dependencies_compiler_type=none 15151 if test "$am_compiler_list" = ""; then 15152 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 15153 fi 15154 am__universal=false 15155 case " $depcc " in #( 15156 *\ -arch\ *\ -arch\ *) am__universal=true ;; 15157 esac 15158 15159 for depmode in $am_compiler_list; do 15160 # Setup a source with many dependencies, because some compilers 15161 # like to wrap large dependency lists on column 80 (with \), and 15162 # we should not choose a depcomp mode which is confused by this. 15163 # 15164 # We need to recreate these files for each test, as the compiler may 15165 # overwrite some of them when testing with obscure command lines. 15166 # This happens at least with the AIX C compiler. 15167 : > sub/conftest.c 15168 for i in 1 2 3 4 5 6; do 15169 echo '#include "conftst'$i'.h"' >> sub/conftest.c 15170 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 15171 # Solaris 10 /bin/sh. 15172 echo '/* dummy */' > sub/conftst$i.h 15173 done 15174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 15175 15176 # We check with '-c' and '-o' for the sake of the "dashmstdout" 15177 # mode. It turns out that the SunPro C++ compiler does not properly 15178 # handle '-M -o', and we need to detect this. Also, some Intel 15179 # versions had trouble with output in subdirs. 15180 am__obj=sub/conftest.${OBJEXT-o} 15181 am__minus_obj="-o $am__obj" 15182 case $depmode in 15183 gcc) 15184 # This depmode causes a compiler race in universal mode. 15185 test "$am__universal" = false || continue 15186 ;; 15187 nosideeffect) 15188 # After this tag, mechanisms are not by side-effect, so they'll 15189 # only be used when explicitly requested. 15190 if test "x$enable_dependency_tracking" = xyes; then 15191 continue 15192 else 15193 break 15194 fi 15195 ;; 15196 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 15197 # This compiler won't grok '-c -o', but also, the minuso test has 15198 # not run yet. These depmodes are late enough in the game, and 15199 # so weak that their functioning should not be impacted. 15200 am__obj=conftest.${OBJEXT-o} 15201 am__minus_obj= 15202 ;; 15203 none) break ;; 15204 esac 15205 if depmode=$depmode \ 15206 source=sub/conftest.c object=$am__obj \ 15207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 15208 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 15209 >/dev/null 2>conftest.err && 15210 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 15211 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 15212 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 15213 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 15214 # icc doesn't choke on unknown options, it will just issue warnings 15215 # or remarks (even with -Werror). So we grep stderr for any message 15216 # that says an option was ignored or not supported. 15217 # When given -MP, icc 7.0 and 7.1 complain thusly: 15218 # icc: Command line warning: ignoring option '-M'; no argument required 15219 # The diagnosis changed in icc 8.0: 15220 # icc: Command line remark: option '-MP' not supported 15221 if (grep 'ignoring option' conftest.err || 15222 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 15223 am_cv_CC_dependencies_compiler_type=$depmode 15224 break 15225 fi 15226 fi 15227 done 15228 15229 cd .. 15230 rm -rf conftest.dir 15231else 15232 am_cv_CC_dependencies_compiler_type=none 15233fi 15234 15235fi 15236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 15237$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 15238CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 15239 15240 if 15241 test "x$enable_dependency_tracking" != xno \ 15242 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 15243 am__fastdepCC_TRUE= 15244 am__fastdepCC_FALSE='#' 15245else 15246 am__fastdepCC_TRUE='#' 15247 am__fastdepCC_FALSE= 15248fi 15249 15250 15251 BASECC="`basename $CC`" 15252 CFLAGS="$pmix_cflags_save" 15253 15254cat >>confdefs.h <<_ACEOF 15255#define PMIX_CC "$CC" 15256_ACEOF 15257 15258 set dummy $CC 15259 pmix_cc_argv0=$2 15260 15261# 1 is the variable name to do "which" on 15262# 2 is the variable name to assign the return value to 15263 15264 15265 15266 # Is the private index set? If not, set it. 15267 if test "x$pmix_scope_index" = "x"; then 15268 pmix_scope_index=1 15269 fi 15270 15271 # First, check to see if any of these variables are already set. 15272 # This is a simple sanity check to ensure we're not already 15273 # overwriting pre-existing variables (that have a non-empty 15274 # value). It's not a perfect check, but at least it's something. 15275 for pmix_var in pmix_prog pmix_file pmix_dir pmix_sentinel; do 15276 pmix_str="pmix_str=\"\$$pmix_var\"" 15277 eval $pmix_str 15278 15279 if test "x$pmix_str" != "x"; then 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 15281$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 15283$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 15285$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 15287$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 15288 as_fn_error $? "Cannot continue" "$LINENO" 5 15289 fi 15290 done 15291 15292 # Ok, we passed the simple sanity check. Save all these names so 15293 # that we can unset them at the end of the scope. 15294 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog pmix_file pmix_dir pmix_sentinel\"" 15295 eval $pmix_str 15296 unset pmix_str 15297 15298 env | grep pmix_scope 15299 pmix_scope_index=`expr $pmix_scope_index + 1` 15300 15301 15302pmix_prog=$pmix_cc_argv0 15303 15304IFS_SAVE=$IFS 15305IFS="$PATH_SEPARATOR" 15306for pmix_dir in $PATH; do 15307 if test -x "$pmix_dir/$pmix_prog"; then 15308 PMIX_CC_ABSOLUTE="$pmix_dir/$pmix_prog" 15309 break 15310 fi 15311done 15312IFS=$IFS_SAVE 15313 15314 15315 # Unwind the index 15316 pmix_scope_index=`expr $pmix_scope_index - 1` 15317 pmix_scope_test=`expr $pmix_scope_index \> 0` 15318 if test "$pmix_scope_test" = "0"; then 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 15320$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 15322$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 15323 as_fn_error $? "Cannot continue" "$LINENO" 5 15324 fi 15325 15326 # Get the variable names from that index 15327 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 15328 eval $pmix_str 15329 15330 # Iterate over all the variables and unset them all 15331 for pmix_var in $pmix_str; do 15332 unset $pmix_var 15333 done 15334 15335 15336 15337 15338 # Unwind the index 15339 pmix_scope_index=`expr $pmix_scope_index - 1` 15340 pmix_scope_test=`expr $pmix_scope_index \> 0` 15341 if test "$pmix_scope_test" = "0"; then 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 15343$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 15344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 15345$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 15346 as_fn_error $? "Cannot continue" "$LINENO" 5 15347 fi 15348 15349 # Get the variable names from that index 15350 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 15351 eval $pmix_str 15352 15353 # Iterate over all the variables and unset them all 15354 for pmix_var in $pmix_str; do 15355 unset $pmix_var 15356 done 15357 15358 15359 15360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 15361$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 15362if ${lt_cv_path_NM+:} false; then : 15363 $as_echo_n "(cached) " >&6 15364else 15365 if test -n "$NM"; then 15366 # Let the user override the test. 15367 lt_cv_path_NM=$NM 15368else 15369 lt_nm_to_check=${ac_tool_prefix}nm 15370 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 15371 lt_nm_to_check="$lt_nm_to_check nm" 15372 fi 15373 for lt_tmp_nm in $lt_nm_to_check; do 15374 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15375 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 15376 IFS=$lt_save_ifs 15377 test -z "$ac_dir" && ac_dir=. 15378 tmp_nm=$ac_dir/$lt_tmp_nm 15379 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 15380 # Check to see if the nm accepts a BSD-compat flag. 15381 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 15382 # nm: unknown option "B" ignored 15383 # Tru64's nm complains that /dev/null is an invalid object file 15384 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 15385 case $build_os in 15386 mingw*) lt_bad_file=conftest.nm/nofile ;; 15387 *) lt_bad_file=/dev/null ;; 15388 esac 15389 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 15390 *$lt_bad_file* | *'Invalid file or object type'*) 15391 lt_cv_path_NM="$tmp_nm -B" 15392 break 2 15393 ;; 15394 *) 15395 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 15396 */dev/null*) 15397 lt_cv_path_NM="$tmp_nm -p" 15398 break 2 15399 ;; 15400 *) 15401 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 15402 continue # so that we can try to find one that supports BSD flags 15403 ;; 15404 esac 15405 ;; 15406 esac 15407 fi 15408 done 15409 IFS=$lt_save_ifs 15410 done 15411 : ${lt_cv_path_NM=no} 15412fi 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 15415$as_echo "$lt_cv_path_NM" >&6; } 15416if test no != "$lt_cv_path_NM"; then 15417 NM=$lt_cv_path_NM 15418else 15419 # Didn't find any BSD compatible name lister, look for dumpbin. 15420 if test -n "$DUMPBIN"; then : 15421 # Let the user override the test. 15422 else 15423 if test -n "$ac_tool_prefix"; then 15424 for ac_prog in dumpbin "link -dump" 15425 do 15426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15427set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15429$as_echo_n "checking for $ac_word... " >&6; } 15430if ${ac_cv_prog_DUMPBIN+:} false; then : 15431 $as_echo_n "(cached) " >&6 15432else 15433 if test -n "$DUMPBIN"; then 15434 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 15435else 15436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15437for as_dir in $PATH 15438do 15439 IFS=$as_save_IFS 15440 test -z "$as_dir" && as_dir=. 15441 for ac_exec_ext in '' $ac_executable_extensions; do 15442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15443 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 15444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15445 break 2 15446 fi 15447done 15448 done 15449IFS=$as_save_IFS 15450 15451fi 15452fi 15453DUMPBIN=$ac_cv_prog_DUMPBIN 15454if test -n "$DUMPBIN"; then 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 15456$as_echo "$DUMPBIN" >&6; } 15457else 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15459$as_echo "no" >&6; } 15460fi 15461 15462 15463 test -n "$DUMPBIN" && break 15464 done 15465fi 15466if test -z "$DUMPBIN"; then 15467 ac_ct_DUMPBIN=$DUMPBIN 15468 for ac_prog in dumpbin "link -dump" 15469do 15470 # Extract the first word of "$ac_prog", so it can be a program name with args. 15471set dummy $ac_prog; ac_word=$2 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15473$as_echo_n "checking for $ac_word... " >&6; } 15474if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 15475 $as_echo_n "(cached) " >&6 15476else 15477 if test -n "$ac_ct_DUMPBIN"; then 15478 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 15479else 15480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15481for as_dir in $PATH 15482do 15483 IFS=$as_save_IFS 15484 test -z "$as_dir" && as_dir=. 15485 for ac_exec_ext in '' $ac_executable_extensions; do 15486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15487 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 15488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15489 break 2 15490 fi 15491done 15492 done 15493IFS=$as_save_IFS 15494 15495fi 15496fi 15497ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 15498if test -n "$ac_ct_DUMPBIN"; then 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 15500$as_echo "$ac_ct_DUMPBIN" >&6; } 15501else 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15503$as_echo "no" >&6; } 15504fi 15505 15506 15507 test -n "$ac_ct_DUMPBIN" && break 15508done 15509 15510 if test "x$ac_ct_DUMPBIN" = x; then 15511 DUMPBIN=":" 15512 else 15513 case $cross_compiling:$ac_tool_warned in 15514yes:) 15515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15517ac_tool_warned=yes ;; 15518esac 15519 DUMPBIN=$ac_ct_DUMPBIN 15520 fi 15521fi 15522 15523 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 15524 *COFF*) 15525 DUMPBIN="$DUMPBIN -symbols -headers" 15526 ;; 15527 *) 15528 DUMPBIN=: 15529 ;; 15530 esac 15531 fi 15532 15533 if test : != "$DUMPBIN"; then 15534 NM=$DUMPBIN 15535 fi 15536fi 15537test -z "$NM" && NM=nm 15538 15539 15540 15541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 15542$as_echo_n "checking the name lister ($NM) interface... " >&6; } 15543if ${lt_cv_nm_interface+:} false; then : 15544 $as_echo_n "(cached) " >&6 15545else 15546 lt_cv_nm_interface="BSD nm" 15547 echo "int some_variable = 0;" > conftest.$ac_ext 15548 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 15549 (eval "$ac_compile" 2>conftest.err) 15550 cat conftest.err >&5 15551 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 15552 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 15553 cat conftest.err >&5 15554 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 15555 cat conftest.out >&5 15556 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 15557 lt_cv_nm_interface="MS dumpbin" 15558 fi 15559 rm -f conftest* 15560fi 15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 15562$as_echo "$lt_cv_nm_interface" >&6; } 15563 15564 15565 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __NetBSD__" >&5 15567$as_echo_n "checking __NetBSD__... " >&6; } 15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15569/* end confdefs.h. */ 15570#ifndef __NetBSD__ 15571 error: this isnt __NetBSD__ 15572 #endif 15573 15574int 15575main () 15576{ 15577 15578 ; 15579 return 0; 15580} 15581_ACEOF 15582if ac_fn_c_try_compile "$LINENO"; then : 15583 pmix_found_netbsd=yes 15584else 15585 pmix_found_netbsd=no 15586fi 15587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_netbsd" >&5 15589$as_echo "$pmix_found_netbsd" >&6; } 15590 15591 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __FreeBSD__" >&5 15593$as_echo_n "checking __FreeBSD__... " >&6; } 15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15595/* end confdefs.h. */ 15596#ifndef __FreeBSD__ 15597 error: this isnt __FreeBSD__ 15598 #endif 15599 15600int 15601main () 15602{ 15603 15604 ; 15605 return 0; 15606} 15607_ACEOF 15608if ac_fn_c_try_compile "$LINENO"; then : 15609 pmix_found_freebsd=yes 15610else 15611 pmix_found_freebsd=no 15612fi 15613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_freebsd" >&5 15615$as_echo "$pmix_found_freebsd" >&6; } 15616 15617 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __OpenBSD__" >&5 15619$as_echo_n "checking __OpenBSD__... " >&6; } 15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15621/* end confdefs.h. */ 15622#ifndef __OpenBSD__ 15623 error: this isnt __OpenBSD__ 15624 #endif 15625 15626int 15627main () 15628{ 15629 15630 ; 15631 return 0; 15632} 15633_ACEOF 15634if ac_fn_c_try_compile "$LINENO"; then : 15635 pmix_found_openbsd=yes 15636else 15637 pmix_found_openbsd=no 15638fi 15639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_openbsd" >&5 15641$as_echo "$pmix_found_openbsd" >&6; } 15642 15643 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __DragonFly__" >&5 15645$as_echo_n "checking __DragonFly__... " >&6; } 15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15647/* end confdefs.h. */ 15648#ifndef __DragonFly__ 15649 error: this isnt __DragonFly__ 15650 #endif 15651 15652int 15653main () 15654{ 15655 15656 ; 15657 return 0; 15658} 15659_ACEOF 15660if ac_fn_c_try_compile "$LINENO"; then : 15661 pmix_found_dragonfly=yes 15662else 15663 pmix_found_dragonfly=no 15664fi 15665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_dragonfly" >&5 15667$as_echo "$pmix_found_dragonfly" >&6; } 15668 15669 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __386BSD__" >&5 15671$as_echo_n "checking __386BSD__... " >&6; } 15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15673/* end confdefs.h. */ 15674#ifndef __386BSD__ 15675 error: this isnt __386BSD__ 15676 #endif 15677 15678int 15679main () 15680{ 15681 15682 ; 15683 return 0; 15684} 15685_ACEOF 15686if ac_fn_c_try_compile "$LINENO"; then : 15687 pmix_found_386bsd=yes 15688else 15689 pmix_found_386bsd=no 15690fi 15691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_386bsd" >&5 15693$as_echo "$pmix_found_386bsd" >&6; } 15694 15695 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __bsdi__" >&5 15697$as_echo_n "checking __bsdi__... " >&6; } 15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15699/* end confdefs.h. */ 15700#ifndef __bsdi__ 15701 error: this isnt __bsdi__ 15702 #endif 15703 15704int 15705main () 15706{ 15707 15708 ; 15709 return 0; 15710} 15711_ACEOF 15712if ac_fn_c_try_compile "$LINENO"; then : 15713 pmix_found_bsdi=yes 15714else 15715 pmix_found_bsdi=no 15716fi 15717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_bsdi" >&5 15719$as_echo "$pmix_found_bsdi" >&6; } 15720 15721 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __APPLE__" >&5 15723$as_echo_n "checking __APPLE__... " >&6; } 15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15725/* end confdefs.h. */ 15726#ifndef __APPLE__ 15727 error: this isnt __APPLE__ 15728 #endif 15729 15730int 15731main () 15732{ 15733 15734 ; 15735 return 0; 15736} 15737_ACEOF 15738if ac_fn_c_try_compile "$LINENO"; then : 15739 pmix_found_apple=yes 15740else 15741 pmix_found_apple=no 15742fi 15743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_apple" >&5 15745$as_echo "$pmix_found_apple" >&6; } 15746 15747 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __linux__" >&5 15749$as_echo_n "checking __linux__... " >&6; } 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752#ifndef __linux__ 15753 error: this isnt __linux__ 15754 #endif 15755 15756int 15757main () 15758{ 15759 15760 ; 15761 return 0; 15762} 15763_ACEOF 15764if ac_fn_c_try_compile "$LINENO"; then : 15765 pmix_found_linux=yes 15766else 15767 pmix_found_linux=no 15768fi 15769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_linux" >&5 15771$as_echo "$pmix_found_linux" >&6; } 15772 15773 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sun__" >&5 15775$as_echo_n "checking __sun__... " >&6; } 15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15777/* end confdefs.h. */ 15778#ifndef __sun__ 15779 error: this isnt __sun__ 15780 #endif 15781 15782int 15783main () 15784{ 15785 15786 ; 15787 return 0; 15788} 15789_ACEOF 15790if ac_fn_c_try_compile "$LINENO"; then : 15791 pmix_found_sun=yes 15792else 15793 pmix_found_sun=no 15794fi 15795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_sun" >&5 15797$as_echo "$pmix_found_sun" >&6; } 15798 15799 if test "$pmix_found_sun" = "no"; then : 15800 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sun" >&5 15802$as_echo_n "checking __sun... " >&6; } 15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15804/* end confdefs.h. */ 15805#ifndef __sun 15806 error: this isnt __sun 15807 #endif 15808 15809int 15810main () 15811{ 15812 15813 ; 15814 return 0; 15815} 15816_ACEOF 15817if ac_fn_c_try_compile "$LINENO"; then : 15818 pmix_found_sun=yes 15819else 15820 pmix_found_sun=no 15821fi 15822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_sun" >&5 15824$as_echo "$pmix_found_sun" >&6; } 15825 15826fi 15827 15828 if test "$pmix_found_sun" = "yes"; then : 15829 pmix_have_solaris=1 15830 CFLAGS="$CFLAGS -D_REENTRANT" 15831 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 15832else 15833 pmix_have_solaris=0 15834fi 15835 15836cat >>confdefs.h <<_ACEOF 15837#define PMIX_HAVE_SOLARIS $pmix_have_solaris 15838_ACEOF 15839 15840 15841 if test "$pmix_found_apple" = "yes"; then : 15842 pmix_have_apple=1 15843else 15844 pmix_have_apple=0 15845fi 15846 15847cat >>confdefs.h <<_ACEOF 15848#define PMIX_HAVE_APPLE $pmix_have_apple 15849_ACEOF 15850 15851 15852 # check for sockaddr_in (a good sign we have TCP) 15853 for ac_header in netdb.h netinet/in.h netinet/tcp.h 15854do : 15855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15856ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15858 cat >>confdefs.h <<_ACEOF 15859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15860_ACEOF 15861 15862fi 15863 15864done 15865 15866 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default 15867#ifdef HAVE_NETINET_IN_H 15868#include <netinet/in.h> 15869#endif 15870" 15871if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : 15872 15873cat >>confdefs.h <<_ACEOF 15874#define HAVE_STRUCT_SOCKADDR_IN 1 15875_ACEOF 15876 15877pmix_found_sockaddr=yes 15878else 15879 pmix_found_sockaddr=no 15880fi 15881 15882 15883 15884 15885 15886 15887 15888 # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little 15889 # careful about ordering here, and AC_REQUIRE these things so that 15890 # they get stamped out in the right order. 15891 15892 15893 15894 15895 15896 # initialize 15897 PMIX_EMBEDDED_LDFLAGS= 15898 PMIX_EMBEDDED_LIBS= 15899 PMIX_EMBEDDED_CPPFLAGS= 15900 15901 # If no prefix was defined, set a good value 15902 15903 15904 # Get pmix's absolute top builddir (which may not be the same as 15905 # the real $top_builddir) 15906 PMIX_startdir=`pwd` 15907 if test x"" != "x" && test ! -d ""; then 15908 mkdir -p "" 15909 fi 15910 if test x"" != "x"; then 15911 cd "" 15912 fi 15913 PMIX_top_builddir=`pwd` 15914 15915 15916 # Get pmix's absolute top srcdir (which may not be the same as the 15917 # real $top_srcdir. First, go back to the startdir incase the 15918 # $srcdir is relative. 15919 15920 cd "$PMIX_startdir" 15921 cd "$srcdir"/ 15922 PMIX_top_srcdir="`pwd`" 15923 15924 15925 # Go back to where we started 15926 cd "$PMIX_startdir" 15927 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: pmix builddir: $PMIX_top_builddir" >&5 15929$as_echo "$as_me: pmix builddir: $PMIX_top_builddir" >&6;} 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: pmix srcdir: $PMIX_top_srcdir" >&5 15931$as_echo "$as_me: pmix srcdir: $PMIX_top_srcdir" >&6;} 15932 if test "$PMIX_top_builddir" != "$PMIX_top_srcdir"; then 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5 15934$as_echo "$as_me: Detected VPATH build" >&6;} 15935 fi 15936 15937 # Get the version of pmix that we are installing 15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix version" >&5 15939$as_echo_n "checking for pmix version... " >&6; } 15940 PMIX_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION`" 15941 if test "$?" != "0"; then 15942 as_fn_error $? "Cannot continue" "$LINENO" 5 15943 fi 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_VERSION" >&5 15945$as_echo "$PMIX_VERSION" >&6; } 15946 15947 15948cat >>confdefs.h <<_ACEOF 15949#define PMIX_VERSION "$PMIX_VERSION" 15950_ACEOF 15951 15952 15953 PMIX_RELEASE_DATE="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release-date`" 15954 15955 15956 # Save the breakdown the version information 15957 PMIX_MAJOR_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --major`" 15958 if test "$?" != "0"; then 15959 as_fn_error $? "Cannot continue" "$LINENO" 5 15960 fi 15961 15962 15963cat >>confdefs.h <<_ACEOF 15964#define PMIX_MAJOR_VERSION $PMIX_MAJOR_VERSION 15965_ACEOF 15966 15967 15968 PMIX_MINOR_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --minor`" 15969 if test "$?" != "0"; then 15970 as_fn_error $? "Cannot continue" "$LINENO" 5 15971 fi 15972 15973 15974cat >>confdefs.h <<_ACEOF 15975#define PMIX_MINOR_VERSION $PMIX_MINOR_VERSION 15976_ACEOF 15977 15978 15979 PMIX_RELEASE_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release`" 15980 if test "$?" != "0"; then 15981 as_fn_error $? "Cannot continue" "$LINENO" 5 15982 fi 15983 15984 15985cat >>confdefs.h <<_ACEOF 15986#define PMIX_RELEASE_VERSION $PMIX_RELEASE_VERSION 15987_ACEOF 15988 15989 15990 pmixmajor=${PMIX_MAJOR_VERSION}L 15991 pmixminor=${PMIX_MINOR_VERSION}L 15992 pmixrelease=${PMIX_RELEASE_VERSION}L 15993 pmixnumeric=$(printf 0x%4.4x%2.2x%2.2x $PMIX_MAJOR_VERSION $PMIX_MINOR_VERSION $PMIX_RELEASE_VERSION) 15994 15995 15996 15997 15998 ac_config_files="$ac_config_files include/pmix_version.h" 15999 16000 16001 PMIX_GREEK_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --greek`" 16002 if test "$?" != "0"; then 16003 as_fn_error $? "Cannot continue" "$LINENO" 5 16004 fi 16005 16006 16007 PMIX_REPO_REV="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --repo-rev`" 16008 if test "$?" != "0"; then 16009 as_fn_error $? "Cannot continue" "$LINENO" 5 16010 fi 16011 16012 16013 PMIX_RELEASE_DATE="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release-date`" 16014 if test "$?" != "0"; then 16015 as_fn_error $? "Cannot continue" "$LINENO" 5 16016 fi 16017 16018 16019 # Debug mode? 16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pmix maintainer support" >&5 16021$as_echo_n "checking if want pmix maintainer support... " >&6; } 16022 pmix_debug= 16023 if test "$pmix_debug" = "" && test "$enable_debug" = "yes"; then : 16024 pmix_debug=1 16025 pmix_debug_msg="enabled" 16026fi 16027 if test "$pmix_debug" = ""; then : 16028 pmix_debug=0 16029 pmix_debug_msg="disabled" 16030fi 16031 # Grr; we use #ifndef for PMIX_DEBUG! :-( 16032 16033 if test "$pmix_debug" = "1"; then : 16034 $as_echo "#define PMIX_ENABLE_DEBUG 1" >>confdefs.h 16035 16036fi 16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_debug_msg" >&5 16038$as_echo "$pmix_debug_msg" >&6; } 16039 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix directory prefix" >&5 16041$as_echo_n "checking for pmix directory prefix... " >&6; } 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 16043$as_echo "(none)" >&6; } 16044 16045 # Note that private/config.h *MUST* be listed first so that it 16046 # becomes the "main" config header file. Any AC-CONFIG-HEADERS 16047 # after that (pmix/config.h) will only have selective #defines 16048 # replaced, not the entire file. 16049 ac_config_headers="$ac_config_headers src/include/pmix_config.h" 16050 16051 16052 16053 # Add any extra lib? 16054 16055# Check whether --with-pmix-extra-lib was given. 16056if test "${with_pmix_extra_lib+set}" = set; then : 16057 withval=$with_pmix_extra_lib; 16058fi 16059 16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra lib" >&5 16061$as_echo_n "checking for extra lib... " >&6; } 16062 if test ! -z "$with_pmix_extra_lib"; then : 16063 if test "$with_pmix_extra_lib" = "yes" || test "$with_pmix_extra_lib" = "no"; then : 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR" >&5 16065$as_echo "ERROR" >&6; } 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid value for --with-extra-pmix-lib:" >&5 16067$as_echo "$as_me: WARNING: Invalid value for --with-extra-pmix-lib:" >&2;} 16068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pmix_extra_lib" >&5 16069$as_echo "$as_me: WARNING: $with_pmix_extra_lib" >&2;} 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must be path name of the library to add" >&5 16071$as_echo "$as_me: WARNING: Must be path name of the library to add" >&2;} 16072 as_fn_error $? "Cannot continue" "$LINENO" 5 16073else 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pmix_extra_lib" >&5 16075$as_echo "$with_pmix_extra_lib" >&6; } 16076 PMIX_EXTRA_LIB=$with_pmix_extra_lib 16077fi 16078else 16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16080$as_echo "no" >&6; } 16081 PMIX_EXTRA_LIB= 16082fi 16083 16084 16085 # Add any extra libtool lib? 16086 16087# Check whether --with-pmix-extra-ltlib was given. 16088if test "${with_pmix_extra_ltlib+set}" = set; then : 16089 withval=$with_pmix_extra_ltlib; 16090fi 16091 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ltlib" >&5 16093$as_echo_n "checking for extra ltlib... " >&6; } 16094 if test ! -z "$with_pmix_extra_ltlib"; then : 16095 if test "$with_pmix_extra_ltlib" = "yes" || test "$with_pmix_extra_ltlib" = "no"; then : 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR" >&5 16097$as_echo "ERROR" >&6; } 16098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid value for --with-pmix-extra-ltlib:" >&5 16099$as_echo "$as_me: WARNING: Invalid value for --with-pmix-extra-ltlib:" >&2;} 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pmix_extra_ltlib" >&5 16101$as_echo "$as_me: WARNING: $with_pmix_extra_ltlib" >&2;} 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must be path name of the library to add" >&5 16103$as_echo "$as_me: WARNING: Must be path name of the library to add" >&2;} 16104 as_fn_error $? "Cannot continue" "$LINENO" 5 16105else 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pmix_extra_ltlib" >&5 16107$as_echo "$with_pmix_extra_ltlib" >&6; } 16108 PMIX_EXTRA_LTLIB=$with_pmix_extra_ltlib 16109fi 16110else 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16112$as_echo "no" >&6; } 16113 PMIX_EXTRA_LTLIB= 16114fi 16115 16116 16117 # 16118 # Package/brand string 16119 # 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want package/brand string" >&5 16121$as_echo_n "checking if want package/brand string... " >&6; } 16122 16123# Check whether --with-pmix-package-string was given. 16124if test "${with_pmix_package_string+set}" = set; then : 16125 withval=$with_pmix_package_string; 16126fi 16127 16128 if test "$with_pmix_package_string" = "" || test "$with_pmix_package_string" = "no"; then 16129 with_package_string="PMIx $PMIX_CONFIGURE_USER@$PMIX_CONFIGURE_HOST Distribution" 16130 fi 16131 16132cat >>confdefs.h <<_ACEOF 16133#define PMIX_PACKAGE_STRING "$with_package_string" 16134_ACEOF 16135 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_package_string" >&5 16137$as_echo "$with_package_string" >&6; } 16138 16139 16140 # GCC specifics. 16141 if test "x$GCC" = "xyes"; then 16142 PMIX_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef" 16143 PMIX_GCC_CFLAGS="$PMIX_GCC_CFLAGS -Wpointer-arith -Wcast-align" 16144 fi 16145 16146 ############################################################################ 16147 # Check for compilers and preprocessors 16148 ############################################################################ 16149 pmix_show_title "Compiler and preprocessor tests" 16150 16151 16152 # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little 16153 # careful about ordering here, and AC_REQUIRE these things so that 16154 # they get stamped out in the right order. 16155 16156 16157 16158 16159 16160 16161 16162 # Is the private index set? If not, set it. 16163 if test "x$pmix_scope_index" = "x"; then 16164 pmix_scope_index=1 16165 fi 16166 16167 # First, check to see if any of these variables are already set. 16168 # This is a simple sanity check to ensure we're not already 16169 # overwriting pre-existing variables (that have a non-empty 16170 # value). It's not a perfect check, but at least it's something. 16171 for pmix_var in pmix_prog_cc_c11_helper__Thread_local_available pmix_prog_cc_c11_helper_atomic_var_available pmix_prog_cc_c11_helper__Atomic_available pmix_prog_cc_c11_helper__static_assert_available pmix_prog_cc_c11_helper__Generic_available pmix_prog_cc__thread_available pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available; do 16172 pmix_str="pmix_str=\"\$$pmix_var\"" 16173 eval $pmix_str 16174 16175 if test "x$pmix_str" != "x"; then 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16177$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16179$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16181$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16183$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16184 as_fn_error $? "Cannot continue" "$LINENO" 5 16185 fi 16186 done 16187 16188 # Ok, we passed the simple sanity check. Save all these names so 16189 # that we can unset them at the end of the scope. 16190 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper__Thread_local_available pmix_prog_cc_c11_helper_atomic_var_available pmix_prog_cc_c11_helper__Atomic_available pmix_prog_cc_c11_helper__static_assert_available pmix_prog_cc_c11_helper__Generic_available pmix_prog_cc__thread_available pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available\"" 16191 eval $pmix_str 16192 unset pmix_str 16193 16194 env | grep pmix_scope 16195 pmix_scope_index=`expr $pmix_scope_index + 1` 16196 16197 16198 # AC_PROG_CC_C99 changes CC (instead of CFLAGS) so save CC (without c99 16199 # flags) for use in our wrappers. 16200 WRAPPER_CC="$CC" 16201 16202 16203 16204 16205 16206 # Is the private index set? If not, set it. 16207 if test "x$pmix_scope_index" = "x"; then 16208 pmix_scope_index=1 16209 fi 16210 16211 # First, check to see if any of these variables are already set. 16212 # This is a simple sanity check to ensure we're not already 16213 # overwriting pre-existing variables (that have a non-empty 16214 # value). It's not a perfect check, but at least it's something. 16215 for pmix_var in pmix_prog_cc_c11_flags; do 16216 pmix_str="pmix_str=\"\$$pmix_var\"" 16217 eval $pmix_str 16218 16219 if test "x$pmix_str" != "x"; then 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16221$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16223$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16225$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16227$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16228 as_fn_error $? "Cannot continue" "$LINENO" 5 16229 fi 16230 done 16231 16232 # Ok, we passed the simple sanity check. Save all these names so 16233 # that we can unset them at the end of the scope. 16234 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_flags\"" 16235 eval $pmix_str 16236 unset pmix_str 16237 16238 env | grep pmix_scope 16239 pmix_scope_index=`expr $pmix_scope_index + 1` 16240 16241 if test -z "$pmix_cv_c11_supported" ; then 16242 pmix_cv_c11_supported=no 16243 pmix_cv_c11_flag_required=yes 16244 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC requires a flag for C11" >&5 16246$as_echo_n "checking if $CC requires a flag for C11... " >&6; } 16247 16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16249/* end confdefs.h. */ 16250 16251#if __STDC_VERSION__ < 201112L 16252#error "Without any CLI flags, this compiler does not support C11" 16253#endif 16254 16255int 16256main () 16257{ 16258 16259 ; 16260 return 0; 16261} 16262_ACEOF 16263if ac_fn_c_try_compile "$LINENO"; then : 16264 pmix_cv_c11_flag_required=no 16265fi 16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16267 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c11_flag_required" >&5 16269$as_echo "$pmix_cv_c11_flag_required" >&6; } 16270 16271 if test "x$pmix_cv_c11_flag_required" = "xno" ; then 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: verifying $CC supports C11 without a flag" >&5 16273$as_echo "$as_me: verifying $CC supports C11 without a flag" >&6;} 16274 16275 16276 16277 # Is the private index set? If not, set it. 16278 if test "x$pmix_scope_index" = "x"; then 16279 pmix_scope_index=1 16280 fi 16281 16282 # First, check to see if any of these variables are already set. 16283 # This is a simple sanity check to ensure we're not already 16284 # overwriting pre-existing variables (that have a non-empty 16285 # value). It's not a perfect check, but at least it's something. 16286 for pmix_var in pmix_prog_cc_c11_helper_CFLAGS_save; do 16287 pmix_str="pmix_str=\"\$$pmix_var\"" 16288 eval $pmix_str 16289 16290 if test "x$pmix_str" != "x"; then 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16292$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16294$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16296$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16298$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16299 as_fn_error $? "Cannot continue" "$LINENO" 5 16300 fi 16301 done 16302 16303 # Ok, we passed the simple sanity check. Save all these names so 16304 # that we can unset them at the end of the scope. 16305 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper_CFLAGS_save\"" 16306 eval $pmix_str 16307 unset pmix_str 16308 16309 env | grep pmix_scope 16310 pmix_scope_index=`expr $pmix_scope_index + 1` 16311 16312 16313 pmix_prog_cc_c11_helper_CFLAGS_save=$CFLAGS 16314 CFLAGS="$CFLAGS " 16315 16316 16317 16318 16319 # Is the private index set? If not, set it. 16320 if test "x$pmix_scope_index" = "x"; then 16321 pmix_scope_index=1 16322 fi 16323 16324 # First, check to see if any of these variables are already set. 16325 # This is a simple sanity check to ensure we're not already 16326 # overwriting pre-existing variables (that have a non-empty 16327 # value). It's not a perfect check, but at least it's something. 16328 for pmix_var in pmix_cc_helper_result; do 16329 pmix_str="pmix_str=\"\$$pmix_var\"" 16330 eval $pmix_str 16331 16332 if test "x$pmix_str" != "x"; then 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16334$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16336$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16338$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16340$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16341 as_fn_error $? "Cannot continue" "$LINENO" 5 16342 fi 16343 done 16344 16345 # Ok, we passed the simple sanity check. Save all these names so 16346 # that we can unset them at the end of the scope. 16347 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16348 eval $pmix_str 16349 unset pmix_str 16350 16351 env | grep pmix_scope 16352 pmix_scope_index=`expr $pmix_scope_index + 1` 16353 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Thread_local" >&5 16355$as_echo_n "checking if $CC supports C11 _Thread_local... " >&6; } 16356 16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358/* end confdefs.h. */ 16359 16360int 16361main () 16362{ 16363static _Thread_local int foo = 1;++foo; 16364 ; 16365 return 0; 16366} 16367_ACEOF 16368if ac_fn_c_try_link "$LINENO"; then : 16369 pmix_prog_cc_c11_helper__Thread_local_available=1 16370 pmix_cc_helper_result=yes 16371else 16372 pmix_prog_cc_c11_helper__Thread_local_available=0 16373 pmix_cc_helper_result=no 16374fi 16375rm -f core conftest.err conftest.$ac_objext \ 16376 conftest$ac_exeext conftest.$ac_ext 16377 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16379$as_echo "$pmix_cc_helper_result" >&6; } 16380 16381 # Unwind the index 16382 pmix_scope_index=`expr $pmix_scope_index - 1` 16383 pmix_scope_test=`expr $pmix_scope_index \> 0` 16384 if test "$pmix_scope_test" = "0"; then 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16386$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16388$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16389 as_fn_error $? "Cannot continue" "$LINENO" 5 16390 fi 16391 16392 # Get the variable names from that index 16393 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16394 eval $pmix_str 16395 16396 # Iterate over all the variables and unset them all 16397 for pmix_var in $pmix_str; do 16398 unset $pmix_var 16399 done 16400 16401 16402 16403 16404 16405 16406 # Is the private index set? If not, set it. 16407 if test "x$pmix_scope_index" = "x"; then 16408 pmix_scope_index=1 16409 fi 16410 16411 # First, check to see if any of these variables are already set. 16412 # This is a simple sanity check to ensure we're not already 16413 # overwriting pre-existing variables (that have a non-empty 16414 # value). It's not a perfect check, but at least it's something. 16415 for pmix_var in pmix_cc_helper_result; do 16416 pmix_str="pmix_str=\"\$$pmix_var\"" 16417 eval $pmix_str 16418 16419 if test "x$pmix_str" != "x"; then 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16421$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16423$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16425$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16427$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16428 as_fn_error $? "Cannot continue" "$LINENO" 5 16429 fi 16430 done 16431 16432 # Ok, we passed the simple sanity check. Save all these names so 16433 # that we can unset them at the end of the scope. 16434 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16435 eval $pmix_str 16436 unset pmix_str 16437 16438 env | grep pmix_scope 16439 pmix_scope_index=`expr $pmix_scope_index + 1` 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic variables" >&5 16442$as_echo_n "checking if $CC supports C11 atomic variables... " >&6; } 16443 16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16445/* end confdefs.h. */ 16446#include <stdatomic.h> 16447int 16448main () 16449{ 16450static atomic_long foo = 1;++foo; 16451 ; 16452 return 0; 16453} 16454_ACEOF 16455if ac_fn_c_try_link "$LINENO"; then : 16456 pmix_prog_cc_c11_helper_atomic_var_available=1 16457 pmix_cc_helper_result=yes 16458else 16459 pmix_prog_cc_c11_helper_atomic_var_available=0 16460 pmix_cc_helper_result=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext \ 16463 conftest$ac_exeext conftest.$ac_ext 16464 16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16466$as_echo "$pmix_cc_helper_result" >&6; } 16467 16468 # Unwind the index 16469 pmix_scope_index=`expr $pmix_scope_index - 1` 16470 pmix_scope_test=`expr $pmix_scope_index \> 0` 16471 if test "$pmix_scope_test" = "0"; then 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16473$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16475$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16476 as_fn_error $? "Cannot continue" "$LINENO" 5 16477 fi 16478 16479 # Get the variable names from that index 16480 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16481 eval $pmix_str 16482 16483 # Iterate over all the variables and unset them all 16484 for pmix_var in $pmix_str; do 16485 unset $pmix_var 16486 done 16487 16488 16489 16490 16491 16492 16493 # Is the private index set? If not, set it. 16494 if test "x$pmix_scope_index" = "x"; then 16495 pmix_scope_index=1 16496 fi 16497 16498 # First, check to see if any of these variables are already set. 16499 # This is a simple sanity check to ensure we're not already 16500 # overwriting pre-existing variables (that have a non-empty 16501 # value). It's not a perfect check, but at least it's something. 16502 for pmix_var in pmix_cc_helper_result; do 16503 pmix_str="pmix_str=\"\$$pmix_var\"" 16504 eval $pmix_str 16505 16506 if test "x$pmix_str" != "x"; then 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16508$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16510$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16512$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16514$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16515 as_fn_error $? "Cannot continue" "$LINENO" 5 16516 fi 16517 done 16518 16519 # Ok, we passed the simple sanity check. Save all these names so 16520 # that we can unset them at the end of the scope. 16521 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16522 eval $pmix_str 16523 unset pmix_str 16524 16525 env | grep pmix_scope 16526 pmix_scope_index=`expr $pmix_scope_index + 1` 16527 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Atomic keyword" >&5 16529$as_echo_n "checking if $CC supports C11 _Atomic keyword... " >&6; } 16530 16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16532/* end confdefs.h. */ 16533#include <stdatomic.h> 16534int 16535main () 16536{ 16537static _Atomic long foo = 1;++foo; 16538 ; 16539 return 0; 16540} 16541_ACEOF 16542if ac_fn_c_try_link "$LINENO"; then : 16543 pmix_prog_cc_c11_helper__Atomic_available=1 16544 pmix_cc_helper_result=yes 16545else 16546 pmix_prog_cc_c11_helper__Atomic_available=0 16547 pmix_cc_helper_result=no 16548fi 16549rm -f core conftest.err conftest.$ac_objext \ 16550 conftest$ac_exeext conftest.$ac_ext 16551 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16553$as_echo "$pmix_cc_helper_result" >&6; } 16554 16555 # Unwind the index 16556 pmix_scope_index=`expr $pmix_scope_index - 1` 16557 pmix_scope_test=`expr $pmix_scope_index \> 0` 16558 if test "$pmix_scope_test" = "0"; then 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16560$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16562$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16563 as_fn_error $? "Cannot continue" "$LINENO" 5 16564 fi 16565 16566 # Get the variable names from that index 16567 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16568 eval $pmix_str 16569 16570 # Iterate over all the variables and unset them all 16571 for pmix_var in $pmix_str; do 16572 unset $pmix_var 16573 done 16574 16575 16576 16577 16578 16579 16580 # Is the private index set? If not, set it. 16581 if test "x$pmix_scope_index" = "x"; then 16582 pmix_scope_index=1 16583 fi 16584 16585 # First, check to see if any of these variables are already set. 16586 # This is a simple sanity check to ensure we're not already 16587 # overwriting pre-existing variables (that have a non-empty 16588 # value). It's not a perfect check, but at least it's something. 16589 for pmix_var in pmix_cc_helper_result; do 16590 pmix_str="pmix_str=\"\$$pmix_var\"" 16591 eval $pmix_str 16592 16593 if test "x$pmix_str" != "x"; then 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16595$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16597$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16599$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16601$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16602 as_fn_error $? "Cannot continue" "$LINENO" 5 16603 fi 16604 done 16605 16606 # Ok, we passed the simple sanity check. Save all these names so 16607 # that we can unset them at the end of the scope. 16608 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16609 eval $pmix_str 16610 unset pmix_str 16611 16612 env | grep pmix_scope 16613 pmix_scope_index=`expr $pmix_scope_index + 1` 16614 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Generic keyword" >&5 16616$as_echo_n "checking if $CC supports C11 _Generic keyword... " >&6; } 16617 16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16619/* end confdefs.h. */ 16620#define FOO(x) (_Generic (x, int: 1)) 16621int 16622main () 16623{ 16624static int x, y; y = FOO(x); 16625 ; 16626 return 0; 16627} 16628_ACEOF 16629if ac_fn_c_try_link "$LINENO"; then : 16630 pmix_prog_cc_c11_helper__Generic_available=1 16631 pmix_cc_helper_result=yes 16632else 16633 pmix_prog_cc_c11_helper__Generic_available=0 16634 pmix_cc_helper_result=no 16635fi 16636rm -f core conftest.err conftest.$ac_objext \ 16637 conftest$ac_exeext conftest.$ac_ext 16638 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16640$as_echo "$pmix_cc_helper_result" >&6; } 16641 16642 # Unwind the index 16643 pmix_scope_index=`expr $pmix_scope_index - 1` 16644 pmix_scope_test=`expr $pmix_scope_index \> 0` 16645 if test "$pmix_scope_test" = "0"; then 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16647$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16649$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16650 as_fn_error $? "Cannot continue" "$LINENO" 5 16651 fi 16652 16653 # Get the variable names from that index 16654 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16655 eval $pmix_str 16656 16657 # Iterate over all the variables and unset them all 16658 for pmix_var in $pmix_str; do 16659 unset $pmix_var 16660 done 16661 16662 16663 16664 16665 16666 16667 # Is the private index set? If not, set it. 16668 if test "x$pmix_scope_index" = "x"; then 16669 pmix_scope_index=1 16670 fi 16671 16672 # First, check to see if any of these variables are already set. 16673 # This is a simple sanity check to ensure we're not already 16674 # overwriting pre-existing variables (that have a non-empty 16675 # value). It's not a perfect check, but at least it's something. 16676 for pmix_var in pmix_cc_helper_result; do 16677 pmix_str="pmix_str=\"\$$pmix_var\"" 16678 eval $pmix_str 16679 16680 if test "x$pmix_str" != "x"; then 16681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16682$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16684$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16686$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16688$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16689 as_fn_error $? "Cannot continue" "$LINENO" 5 16690 fi 16691 done 16692 16693 # Ok, we passed the simple sanity check. Save all these names so 16694 # that we can unset them at the end of the scope. 16695 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16696 eval $pmix_str 16697 unset pmix_str 16698 16699 env | grep pmix_scope 16700 pmix_scope_index=`expr $pmix_scope_index + 1` 16701 16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Static_assert" >&5 16703$as_echo_n "checking if $CC supports C11 _Static_assert... " >&6; } 16704 16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16706/* end confdefs.h. */ 16707#include <stdint.h> 16708int 16709main () 16710{ 16711_Static_assert(sizeof(int64_t) == 8, "WTH"); 16712 ; 16713 return 0; 16714} 16715_ACEOF 16716if ac_fn_c_try_link "$LINENO"; then : 16717 pmix_prog_cc_c11_helper__static_assert_available=1 16718 pmix_cc_helper_result=yes 16719else 16720 pmix_prog_cc_c11_helper__static_assert_available=0 16721 pmix_cc_helper_result=no 16722fi 16723rm -f core conftest.err conftest.$ac_objext \ 16724 conftest$ac_exeext conftest.$ac_ext 16725 16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16727$as_echo "$pmix_cc_helper_result" >&6; } 16728 16729 # Unwind the index 16730 pmix_scope_index=`expr $pmix_scope_index - 1` 16731 pmix_scope_test=`expr $pmix_scope_index \> 0` 16732 if test "$pmix_scope_test" = "0"; then 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16734$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16736$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16737 as_fn_error $? "Cannot continue" "$LINENO" 5 16738 fi 16739 16740 # Get the variable names from that index 16741 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16742 eval $pmix_str 16743 16744 # Iterate over all the variables and unset them all 16745 for pmix_var in $pmix_str; do 16746 unset $pmix_var 16747 done 16748 16749 16750 16751 16752 16753 16754 # Is the private index set? If not, set it. 16755 if test "x$pmix_scope_index" = "x"; then 16756 pmix_scope_index=1 16757 fi 16758 16759 # First, check to see if any of these variables are already set. 16760 # This is a simple sanity check to ensure we're not already 16761 # overwriting pre-existing variables (that have a non-empty 16762 # value). It's not a perfect check, but at least it's something. 16763 for pmix_var in pmix_cc_helper_result; do 16764 pmix_str="pmix_str=\"\$$pmix_var\"" 16765 eval $pmix_str 16766 16767 if test "x$pmix_str" != "x"; then 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16769$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16771$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16773$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16775$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16776 as_fn_error $? "Cannot continue" "$LINENO" 5 16777 fi 16778 done 16779 16780 # Ok, we passed the simple sanity check. Save all these names so 16781 # that we can unset them at the end of the scope. 16782 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16783 eval $pmix_str 16784 unset pmix_str 16785 16786 env | grep pmix_scope 16787 pmix_scope_index=`expr $pmix_scope_index + 1` 16788 16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic_fetch_xor_explicit" >&5 16790$as_echo_n "checking if $CC supports C11 atomic_fetch_xor_explicit... " >&6; } 16791 16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16793/* end confdefs.h. */ 16794#include <stdatomic.h> 16795#include <stdint.h> 16796int 16797main () 16798{ 16799_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed); 16800 ; 16801 return 0; 16802} 16803_ACEOF 16804if ac_fn_c_try_link "$LINENO"; then : 16805 pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1 16806 pmix_cc_helper_result=yes 16807else 16808 pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0 16809 pmix_cc_helper_result=no 16810fi 16811rm -f core conftest.err conftest.$ac_objext \ 16812 conftest$ac_exeext conftest.$ac_ext 16813 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16815$as_echo "$pmix_cc_helper_result" >&6; } 16816 16817 # Unwind the index 16818 pmix_scope_index=`expr $pmix_scope_index - 1` 16819 pmix_scope_test=`expr $pmix_scope_index \> 0` 16820 if test "$pmix_scope_test" = "0"; then 16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16822$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16824$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16825 as_fn_error $? "Cannot continue" "$LINENO" 5 16826 fi 16827 16828 # Get the variable names from that index 16829 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16830 eval $pmix_str 16831 16832 # Iterate over all the variables and unset them all 16833 for pmix_var in $pmix_str; do 16834 unset $pmix_var 16835 done 16836 16837 16838 16839 16840 if test $pmix_prog_cc_c11_helper__Thread_local_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_var_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then : 16841 16842else 16843 pmix_cv_c11_flag_required=yes 16844fi 16845 16846 CFLAGS=$pmix_prog_cc_c11_helper_CFLAGS_save 16847 16848 16849 # Unwind the index 16850 pmix_scope_index=`expr $pmix_scope_index - 1` 16851 pmix_scope_test=`expr $pmix_scope_index \> 0` 16852 if test "$pmix_scope_test" = "0"; then 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16854$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16856$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16857 as_fn_error $? "Cannot continue" "$LINENO" 5 16858 fi 16859 16860 # Get the variable names from that index 16861 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16862 eval $pmix_str 16863 16864 # Iterate over all the variables and unset them all 16865 for pmix_var in $pmix_str; do 16866 unset $pmix_var 16867 done 16868 16869 16870 fi 16871 16872 if test "x$pmix_cv_c11_flag_required" = "xyes" ; then 16873 pmix_prog_cc_c11_flags="-std=gnu11 -std=c11 -c11" 16874 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 with a flag" >&5 16876$as_echo "$as_me: checking if $CC supports C11 with a flag" >&6;} 16877 pmix_cv_c11_flag= 16878 for flag in $(echo $pmix_prog_cc_c11_flags | tr ' ' '\n') ; do 16879 16880 16881 16882 # Is the private index set? If not, set it. 16883 if test "x$pmix_scope_index" = "x"; then 16884 pmix_scope_index=1 16885 fi 16886 16887 # First, check to see if any of these variables are already set. 16888 # This is a simple sanity check to ensure we're not already 16889 # overwriting pre-existing variables (that have a non-empty 16890 # value). It's not a perfect check, but at least it's something. 16891 for pmix_var in pmix_prog_cc_c11_helper_CFLAGS_save; do 16892 pmix_str="pmix_str=\"\$$pmix_var\"" 16893 eval $pmix_str 16894 16895 if test "x$pmix_str" != "x"; then 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16897$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16899$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16901$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16903$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16904 as_fn_error $? "Cannot continue" "$LINENO" 5 16905 fi 16906 done 16907 16908 # Ok, we passed the simple sanity check. Save all these names so 16909 # that we can unset them at the end of the scope. 16910 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper_CFLAGS_save\"" 16911 eval $pmix_str 16912 unset pmix_str 16913 16914 env | grep pmix_scope 16915 pmix_scope_index=`expr $pmix_scope_index + 1` 16916 16917 16918 pmix_prog_cc_c11_helper_CFLAGS_save=$CFLAGS 16919 CFLAGS="$CFLAGS $flag" 16920 16921 16922 16923 16924 # Is the private index set? If not, set it. 16925 if test "x$pmix_scope_index" = "x"; then 16926 pmix_scope_index=1 16927 fi 16928 16929 # First, check to see if any of these variables are already set. 16930 # This is a simple sanity check to ensure we're not already 16931 # overwriting pre-existing variables (that have a non-empty 16932 # value). It's not a perfect check, but at least it's something. 16933 for pmix_var in pmix_cc_helper_result; do 16934 pmix_str="pmix_str=\"\$$pmix_var\"" 16935 eval $pmix_str 16936 16937 if test "x$pmix_str" != "x"; then 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 16939$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 16941$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 16943$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16945$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16946 as_fn_error $? "Cannot continue" "$LINENO" 5 16947 fi 16948 done 16949 16950 # Ok, we passed the simple sanity check. Save all these names so 16951 # that we can unset them at the end of the scope. 16952 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 16953 eval $pmix_str 16954 unset pmix_str 16955 16956 env | grep pmix_scope 16957 pmix_scope_index=`expr $pmix_scope_index + 1` 16958 16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Thread_local" >&5 16960$as_echo_n "checking if $CC $flag supports C11 _Thread_local... " >&6; } 16961 16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16963/* end confdefs.h. */ 16964 16965int 16966main () 16967{ 16968static _Thread_local int foo = 1;++foo; 16969 ; 16970 return 0; 16971} 16972_ACEOF 16973if ac_fn_c_try_link "$LINENO"; then : 16974 pmix_prog_cc_c11_helper__Thread_local_available=1 16975 pmix_cc_helper_result=yes 16976else 16977 pmix_prog_cc_c11_helper__Thread_local_available=0 16978 pmix_cc_helper_result=no 16979fi 16980rm -f core conftest.err conftest.$ac_objext \ 16981 conftest$ac_exeext conftest.$ac_ext 16982 16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 16984$as_echo "$pmix_cc_helper_result" >&6; } 16985 16986 # Unwind the index 16987 pmix_scope_index=`expr $pmix_scope_index - 1` 16988 pmix_scope_test=`expr $pmix_scope_index \> 0` 16989 if test "$pmix_scope_test" = "0"; then 16990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 16991$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 16993$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 16994 as_fn_error $? "Cannot continue" "$LINENO" 5 16995 fi 16996 16997 # Get the variable names from that index 16998 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 16999 eval $pmix_str 17000 17001 # Iterate over all the variables and unset them all 17002 for pmix_var in $pmix_str; do 17003 unset $pmix_var 17004 done 17005 17006 17007 17008 17009 17010 17011 # Is the private index set? If not, set it. 17012 if test "x$pmix_scope_index" = "x"; then 17013 pmix_scope_index=1 17014 fi 17015 17016 # First, check to see if any of these variables are already set. 17017 # This is a simple sanity check to ensure we're not already 17018 # overwriting pre-existing variables (that have a non-empty 17019 # value). It's not a perfect check, but at least it's something. 17020 for pmix_var in pmix_cc_helper_result; do 17021 pmix_str="pmix_str=\"\$$pmix_var\"" 17022 eval $pmix_str 17023 17024 if test "x$pmix_str" != "x"; then 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17026$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17028$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17030$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17032$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17033 as_fn_error $? "Cannot continue" "$LINENO" 5 17034 fi 17035 done 17036 17037 # Ok, we passed the simple sanity check. Save all these names so 17038 # that we can unset them at the end of the scope. 17039 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17040 eval $pmix_str 17041 unset pmix_str 17042 17043 env | grep pmix_scope 17044 pmix_scope_index=`expr $pmix_scope_index + 1` 17045 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 atomic variables" >&5 17047$as_echo_n "checking if $CC $flag supports C11 atomic variables... " >&6; } 17048 17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17050/* end confdefs.h. */ 17051#include <stdatomic.h> 17052int 17053main () 17054{ 17055static atomic_long foo = 1;++foo; 17056 ; 17057 return 0; 17058} 17059_ACEOF 17060if ac_fn_c_try_link "$LINENO"; then : 17061 pmix_prog_cc_c11_helper_atomic_var_available=1 17062 pmix_cc_helper_result=yes 17063else 17064 pmix_prog_cc_c11_helper_atomic_var_available=0 17065 pmix_cc_helper_result=no 17066fi 17067rm -f core conftest.err conftest.$ac_objext \ 17068 conftest$ac_exeext conftest.$ac_ext 17069 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17071$as_echo "$pmix_cc_helper_result" >&6; } 17072 17073 # Unwind the index 17074 pmix_scope_index=`expr $pmix_scope_index - 1` 17075 pmix_scope_test=`expr $pmix_scope_index \> 0` 17076 if test "$pmix_scope_test" = "0"; then 17077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17078$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17080$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17081 as_fn_error $? "Cannot continue" "$LINENO" 5 17082 fi 17083 17084 # Get the variable names from that index 17085 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17086 eval $pmix_str 17087 17088 # Iterate over all the variables and unset them all 17089 for pmix_var in $pmix_str; do 17090 unset $pmix_var 17091 done 17092 17093 17094 17095 17096 17097 17098 # Is the private index set? If not, set it. 17099 if test "x$pmix_scope_index" = "x"; then 17100 pmix_scope_index=1 17101 fi 17102 17103 # First, check to see if any of these variables are already set. 17104 # This is a simple sanity check to ensure we're not already 17105 # overwriting pre-existing variables (that have a non-empty 17106 # value). It's not a perfect check, but at least it's something. 17107 for pmix_var in pmix_cc_helper_result; do 17108 pmix_str="pmix_str=\"\$$pmix_var\"" 17109 eval $pmix_str 17110 17111 if test "x$pmix_str" != "x"; then 17112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17113$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17115$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17117$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17119$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17120 as_fn_error $? "Cannot continue" "$LINENO" 5 17121 fi 17122 done 17123 17124 # Ok, we passed the simple sanity check. Save all these names so 17125 # that we can unset them at the end of the scope. 17126 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17127 eval $pmix_str 17128 unset pmix_str 17129 17130 env | grep pmix_scope 17131 pmix_scope_index=`expr $pmix_scope_index + 1` 17132 17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Atomic keyword" >&5 17134$as_echo_n "checking if $CC $flag supports C11 _Atomic keyword... " >&6; } 17135 17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17137/* end confdefs.h. */ 17138#include <stdatomic.h> 17139int 17140main () 17141{ 17142static _Atomic long foo = 1;++foo; 17143 ; 17144 return 0; 17145} 17146_ACEOF 17147if ac_fn_c_try_link "$LINENO"; then : 17148 pmix_prog_cc_c11_helper__Atomic_available=1 17149 pmix_cc_helper_result=yes 17150else 17151 pmix_prog_cc_c11_helper__Atomic_available=0 17152 pmix_cc_helper_result=no 17153fi 17154rm -f core conftest.err conftest.$ac_objext \ 17155 conftest$ac_exeext conftest.$ac_ext 17156 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17158$as_echo "$pmix_cc_helper_result" >&6; } 17159 17160 # Unwind the index 17161 pmix_scope_index=`expr $pmix_scope_index - 1` 17162 pmix_scope_test=`expr $pmix_scope_index \> 0` 17163 if test "$pmix_scope_test" = "0"; then 17164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17165$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17167$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17168 as_fn_error $? "Cannot continue" "$LINENO" 5 17169 fi 17170 17171 # Get the variable names from that index 17172 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17173 eval $pmix_str 17174 17175 # Iterate over all the variables and unset them all 17176 for pmix_var in $pmix_str; do 17177 unset $pmix_var 17178 done 17179 17180 17181 17182 17183 17184 17185 # Is the private index set? If not, set it. 17186 if test "x$pmix_scope_index" = "x"; then 17187 pmix_scope_index=1 17188 fi 17189 17190 # First, check to see if any of these variables are already set. 17191 # This is a simple sanity check to ensure we're not already 17192 # overwriting pre-existing variables (that have a non-empty 17193 # value). It's not a perfect check, but at least it's something. 17194 for pmix_var in pmix_cc_helper_result; do 17195 pmix_str="pmix_str=\"\$$pmix_var\"" 17196 eval $pmix_str 17197 17198 if test "x$pmix_str" != "x"; then 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17200$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17202$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17204$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17206$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17207 as_fn_error $? "Cannot continue" "$LINENO" 5 17208 fi 17209 done 17210 17211 # Ok, we passed the simple sanity check. Save all these names so 17212 # that we can unset them at the end of the scope. 17213 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17214 eval $pmix_str 17215 unset pmix_str 17216 17217 env | grep pmix_scope 17218 pmix_scope_index=`expr $pmix_scope_index + 1` 17219 17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Generic keyword" >&5 17221$as_echo_n "checking if $CC $flag supports C11 _Generic keyword... " >&6; } 17222 17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224/* end confdefs.h. */ 17225#define FOO(x) (_Generic (x, int: 1)) 17226int 17227main () 17228{ 17229static int x, y; y = FOO(x); 17230 ; 17231 return 0; 17232} 17233_ACEOF 17234if ac_fn_c_try_link "$LINENO"; then : 17235 pmix_prog_cc_c11_helper__Generic_available=1 17236 pmix_cc_helper_result=yes 17237else 17238 pmix_prog_cc_c11_helper__Generic_available=0 17239 pmix_cc_helper_result=no 17240fi 17241rm -f core conftest.err conftest.$ac_objext \ 17242 conftest$ac_exeext conftest.$ac_ext 17243 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17245$as_echo "$pmix_cc_helper_result" >&6; } 17246 17247 # Unwind the index 17248 pmix_scope_index=`expr $pmix_scope_index - 1` 17249 pmix_scope_test=`expr $pmix_scope_index \> 0` 17250 if test "$pmix_scope_test" = "0"; then 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17252$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17254$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17255 as_fn_error $? "Cannot continue" "$LINENO" 5 17256 fi 17257 17258 # Get the variable names from that index 17259 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17260 eval $pmix_str 17261 17262 # Iterate over all the variables and unset them all 17263 for pmix_var in $pmix_str; do 17264 unset $pmix_var 17265 done 17266 17267 17268 17269 17270 17271 17272 # Is the private index set? If not, set it. 17273 if test "x$pmix_scope_index" = "x"; then 17274 pmix_scope_index=1 17275 fi 17276 17277 # First, check to see if any of these variables are already set. 17278 # This is a simple sanity check to ensure we're not already 17279 # overwriting pre-existing variables (that have a non-empty 17280 # value). It's not a perfect check, but at least it's something. 17281 for pmix_var in pmix_cc_helper_result; do 17282 pmix_str="pmix_str=\"\$$pmix_var\"" 17283 eval $pmix_str 17284 17285 if test "x$pmix_str" != "x"; then 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17287$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17289$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17291$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17293$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17294 as_fn_error $? "Cannot continue" "$LINENO" 5 17295 fi 17296 done 17297 17298 # Ok, we passed the simple sanity check. Save all these names so 17299 # that we can unset them at the end of the scope. 17300 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17301 eval $pmix_str 17302 unset pmix_str 17303 17304 env | grep pmix_scope 17305 pmix_scope_index=`expr $pmix_scope_index + 1` 17306 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Static_assert" >&5 17308$as_echo_n "checking if $CC $flag supports C11 _Static_assert... " >&6; } 17309 17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17311/* end confdefs.h. */ 17312#include <stdint.h> 17313int 17314main () 17315{ 17316_Static_assert(sizeof(int64_t) == 8, "WTH"); 17317 ; 17318 return 0; 17319} 17320_ACEOF 17321if ac_fn_c_try_link "$LINENO"; then : 17322 pmix_prog_cc_c11_helper__static_assert_available=1 17323 pmix_cc_helper_result=yes 17324else 17325 pmix_prog_cc_c11_helper__static_assert_available=0 17326 pmix_cc_helper_result=no 17327fi 17328rm -f core conftest.err conftest.$ac_objext \ 17329 conftest$ac_exeext conftest.$ac_ext 17330 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17332$as_echo "$pmix_cc_helper_result" >&6; } 17333 17334 # Unwind the index 17335 pmix_scope_index=`expr $pmix_scope_index - 1` 17336 pmix_scope_test=`expr $pmix_scope_index \> 0` 17337 if test "$pmix_scope_test" = "0"; then 17338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17339$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17341$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17342 as_fn_error $? "Cannot continue" "$LINENO" 5 17343 fi 17344 17345 # Get the variable names from that index 17346 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17347 eval $pmix_str 17348 17349 # Iterate over all the variables and unset them all 17350 for pmix_var in $pmix_str; do 17351 unset $pmix_var 17352 done 17353 17354 17355 17356 17357 17358 17359 # Is the private index set? If not, set it. 17360 if test "x$pmix_scope_index" = "x"; then 17361 pmix_scope_index=1 17362 fi 17363 17364 # First, check to see if any of these variables are already set. 17365 # This is a simple sanity check to ensure we're not already 17366 # overwriting pre-existing variables (that have a non-empty 17367 # value). It's not a perfect check, but at least it's something. 17368 for pmix_var in pmix_cc_helper_result; do 17369 pmix_str="pmix_str=\"\$$pmix_var\"" 17370 eval $pmix_str 17371 17372 if test "x$pmix_str" != "x"; then 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17374$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17376$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17378$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17380$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17381 as_fn_error $? "Cannot continue" "$LINENO" 5 17382 fi 17383 done 17384 17385 # Ok, we passed the simple sanity check. Save all these names so 17386 # that we can unset them at the end of the scope. 17387 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17388 eval $pmix_str 17389 unset pmix_str 17390 17391 env | grep pmix_scope 17392 pmix_scope_index=`expr $pmix_scope_index + 1` 17393 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 atomic_fetch_xor_explicit" >&5 17395$as_echo_n "checking if $CC $flag supports C11 atomic_fetch_xor_explicit... " >&6; } 17396 17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17398/* end confdefs.h. */ 17399#include <stdatomic.h> 17400#include <stdint.h> 17401int 17402main () 17403{ 17404_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed); 17405 ; 17406 return 0; 17407} 17408_ACEOF 17409if ac_fn_c_try_link "$LINENO"; then : 17410 pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1 17411 pmix_cc_helper_result=yes 17412else 17413 pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0 17414 pmix_cc_helper_result=no 17415fi 17416rm -f core conftest.err conftest.$ac_objext \ 17417 conftest$ac_exeext conftest.$ac_ext 17418 17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17420$as_echo "$pmix_cc_helper_result" >&6; } 17421 17422 # Unwind the index 17423 pmix_scope_index=`expr $pmix_scope_index - 1` 17424 pmix_scope_test=`expr $pmix_scope_index \> 0` 17425 if test "$pmix_scope_test" = "0"; then 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17427$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17429$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17430 as_fn_error $? "Cannot continue" "$LINENO" 5 17431 fi 17432 17433 # Get the variable names from that index 17434 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17435 eval $pmix_str 17436 17437 # Iterate over all the variables and unset them all 17438 for pmix_var in $pmix_str; do 17439 unset $pmix_var 17440 done 17441 17442 17443 17444 17445 if test $pmix_prog_cc_c11_helper__Thread_local_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_var_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then : 17446 pmix_cv_c11_flag=$flag 17447fi 17448 17449 CFLAGS=$pmix_prog_cc_c11_helper_CFLAGS_save 17450 17451 17452 # Unwind the index 17453 pmix_scope_index=`expr $pmix_scope_index - 1` 17454 pmix_scope_test=`expr $pmix_scope_index \> 0` 17455 if test "$pmix_scope_test" = "0"; then 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17457$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17459$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17460 as_fn_error $? "Cannot continue" "$LINENO" 5 17461 fi 17462 17463 # Get the variable names from that index 17464 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17465 eval $pmix_str 17466 17467 # Iterate over all the variables and unset them all 17468 for pmix_var in $pmix_str; do 17469 unset $pmix_var 17470 done 17471 17472 17473 if test "x$pmix_cv_c11_flag" != "x" ; then 17474 CFLAGS="$CFLAGS $pmix_cv_c11_flag" 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: using $flag to enable C11 support" >&5 17476$as_echo "$as_me: using $flag to enable C11 support" >&6;} 17477 pmix_cv_c11_supported=yes 17478 break 17479 fi 17480 done 17481 else 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: no flag required for C11 support" >&5 17483$as_echo "$as_me: no flag required for C11 support" >&6;} 17484 pmix_cv_c11_supported=yes 17485 fi 17486 fi 17487 17488 17489 # Unwind the index 17490 pmix_scope_index=`expr $pmix_scope_index - 1` 17491 pmix_scope_test=`expr $pmix_scope_index \> 0` 17492 if test "$pmix_scope_test" = "0"; then 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17494$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17496$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17497 as_fn_error $? "Cannot continue" "$LINENO" 5 17498 fi 17499 17500 # Get the variable names from that index 17501 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17502 eval $pmix_str 17503 17504 # Iterate over all the variables and unset them all 17505 for pmix_var in $pmix_str; do 17506 unset $pmix_var 17507 done 17508 17509 17510 17511 17512 17513 # Is the private index set? If not, set it. 17514 if test "x$pmix_scope_index" = "x"; then 17515 pmix_scope_index=1 17516 fi 17517 17518 # First, check to see if any of these variables are already set. 17519 # This is a simple sanity check to ensure we're not already 17520 # overwriting pre-existing variables (that have a non-empty 17521 # value). It's not a perfect check, but at least it's something. 17522 for pmix_var in pmix_check_cc_iquote_CFLAGS_save; do 17523 pmix_str="pmix_str=\"\$$pmix_var\"" 17524 eval $pmix_str 17525 17526 if test "x$pmix_str" != "x"; then 17527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17528$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17530$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17532$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17534$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17535 as_fn_error $? "Cannot continue" "$LINENO" 5 17536 fi 17537 done 17538 17539 # Ok, we passed the simple sanity check. Save all these names so 17540 # that we can unset them at the end of the scope. 17541 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_check_cc_iquote_CFLAGS_save\"" 17542 eval $pmix_str 17543 unset pmix_str 17544 17545 env | grep pmix_scope 17546 pmix_scope_index=`expr $pmix_scope_index + 1` 17547 17548 pmix_check_cc_iquote_CFLAGS_save=${CFLAGS} 17549 CFLAGS="${CFLAGS} -iquote ." 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to add a directory only to the search path for the quote form of include" >&5 17551$as_echo_n "checking for $CC option to add a directory only to the search path for the quote form of include... " >&6; } 17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17553/* end confdefs.h. */ 17554 17555int 17556main () 17557{ 17558 17559 ; 17560 return 0; 17561} 17562_ACEOF 17563if ac_fn_c_try_compile "$LINENO"; then : 17564 pmix_cc_iquote="-iquote" 17565else 17566 pmix_cc_iquote="-I" 17567fi 17568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17569 CFLAGS=${pmix_check_cc_iquote_CFLAGS_save} 17570 17571 # Unwind the index 17572 pmix_scope_index=`expr $pmix_scope_index - 1` 17573 pmix_scope_test=`expr $pmix_scope_index \> 0` 17574 if test "$pmix_scope_test" = "0"; then 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17576$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17578$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17579 as_fn_error $? "Cannot continue" "$LINENO" 5 17580 fi 17581 17582 # Get the variable names from that index 17583 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17584 eval $pmix_str 17585 17586 # Iterate over all the variables and unset them all 17587 for pmix_var in $pmix_str; do 17588 unset $pmix_var 17589 done 17590 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_iquote" >&5 17592$as_echo "$pmix_cc_iquote" >&6; } 17593 17594 17595 if test $pmix_cv_c11_supported = no ; then 17596 # It is not currently an error if C11 support is not available. Uncomment the 17597 # following lines and update the warning when we require a C11 compiler. 17598 # AC_MSG_WARNING([Open MPI requires a C11 (or newer) compiler]) 17599 # AC_MSG_ERROR([Aborting.]) 17600 # From Open MPI 1.7 on we require a C99 compiant compiler 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 17602$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 17603if ${ac_cv_prog_cc_c99+:} false; then : 17604 $as_echo_n "(cached) " >&6 17605else 17606 ac_cv_prog_cc_c99=no 17607ac_save_CC=$CC 17608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17609/* end confdefs.h. */ 17610#include <stdarg.h> 17611#include <stdbool.h> 17612#include <stdlib.h> 17613#include <wchar.h> 17614#include <stdio.h> 17615 17616// Check varargs macros. These examples are taken from C99 6.10.3.5. 17617#define debug(...) fprintf (stderr, __VA_ARGS__) 17618#define showlist(...) puts (#__VA_ARGS__) 17619#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 17620static void 17621test_varargs_macros (void) 17622{ 17623 int x = 1234; 17624 int y = 5678; 17625 debug ("Flag"); 17626 debug ("X = %d\n", x); 17627 showlist (The first, second, and third items.); 17628 report (x>y, "x is %d but y is %d", x, y); 17629} 17630 17631// Check long long types. 17632#define BIG64 18446744073709551615ull 17633#define BIG32 4294967295ul 17634#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 17635#if !BIG_OK 17636 your preprocessor is broken; 17637#endif 17638#if BIG_OK 17639#else 17640 your preprocessor is broken; 17641#endif 17642static long long int bignum = -9223372036854775807LL; 17643static unsigned long long int ubignum = BIG64; 17644 17645struct incomplete_array 17646{ 17647 int datasize; 17648 double data[]; 17649}; 17650 17651struct named_init { 17652 int number; 17653 const wchar_t *name; 17654 double average; 17655}; 17656 17657typedef const char *ccp; 17658 17659static inline int 17660test_restrict (ccp restrict text) 17661{ 17662 // See if C++-style comments work. 17663 // Iterate through items via the restricted pointer. 17664 // Also check for declarations in for loops. 17665 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 17666 continue; 17667 return 0; 17668} 17669 17670// Check varargs and va_copy. 17671static void 17672test_varargs (const char *format, ...) 17673{ 17674 va_list args; 17675 va_start (args, format); 17676 va_list args_copy; 17677 va_copy (args_copy, args); 17678 17679 const char *str; 17680 int number; 17681 float fnumber; 17682 17683 while (*format) 17684 { 17685 switch (*format++) 17686 { 17687 case 's': // string 17688 str = va_arg (args_copy, const char *); 17689 break; 17690 case 'd': // int 17691 number = va_arg (args_copy, int); 17692 break; 17693 case 'f': // float 17694 fnumber = va_arg (args_copy, double); 17695 break; 17696 default: 17697 break; 17698 } 17699 } 17700 va_end (args_copy); 17701 va_end (args); 17702} 17703 17704int 17705main () 17706{ 17707 17708 // Check bool. 17709 _Bool success = false; 17710 17711 // Check restrict. 17712 if (test_restrict ("String literal") == 0) 17713 success = true; 17714 char *restrict newvar = "Another string"; 17715 17716 // Check varargs. 17717 test_varargs ("s, d' f .", "string", 65, 34.234); 17718 test_varargs_macros (); 17719 17720 // Check flexible array members. 17721 struct incomplete_array *ia = 17722 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 17723 ia->datasize = 10; 17724 for (int i = 0; i < ia->datasize; ++i) 17725 ia->data[i] = i * 1.234; 17726 17727 // Check named initializers. 17728 struct named_init ni = { 17729 .number = 34, 17730 .name = L"Test wide string", 17731 .average = 543.34343, 17732 }; 17733 17734 ni.number = 58; 17735 17736 int dynamic_array[ni.number]; 17737 dynamic_array[ni.number - 1] = 543; 17738 17739 // work around unused variable warnings 17740 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 17741 || dynamic_array[ni.number - 1] != 543); 17742 17743 ; 17744 return 0; 17745} 17746_ACEOF 17747for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 17748do 17749 CC="$ac_save_CC $ac_arg" 17750 if ac_fn_c_try_compile "$LINENO"; then : 17751 ac_cv_prog_cc_c99=$ac_arg 17752fi 17753rm -f core conftest.err conftest.$ac_objext 17754 test "x$ac_cv_prog_cc_c99" != "xno" && break 17755done 17756rm -f conftest.$ac_ext 17757CC=$ac_save_CC 17758 17759fi 17760# AC_CACHE_VAL 17761case "x$ac_cv_prog_cc_c99" in 17762 x) 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 17764$as_echo "none needed" >&6; } ;; 17765 xno) 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 17767$as_echo "unsupported" >&6; } ;; 17768 *) 17769 CC="$CC $ac_cv_prog_cc_c99" 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 17771$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 17772esac 17773if test "x$ac_cv_prog_cc_c99" != xno; then : 17774 17775fi 17776 17777 17778 # The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99 17779 if test "x$ac_cv_prog_cc_c99" = xno ; then 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires a C99 (or newer) compiler. C11 is recommended." >&5 17781$as_echo "$as_me: WARNING: Open MPI requires a C99 (or newer) compiler. C11 is recommended." >&2;} 17782 as_fn_error $? "Aborting." "$LINENO" 5 17783 fi 17784 17785 # Get the correct result for C11 support flags now that the compiler flags have 17786 # changed 17787 17788 17789 17790 # Is the private index set? If not, set it. 17791 if test "x$pmix_scope_index" = "x"; then 17792 pmix_scope_index=1 17793 fi 17794 17795 # First, check to see if any of these variables are already set. 17796 # This is a simple sanity check to ensure we're not already 17797 # overwriting pre-existing variables (that have a non-empty 17798 # value). It's not a perfect check, but at least it's something. 17799 for pmix_var in pmix_prog_cc_c11_helper_CFLAGS_save; do 17800 pmix_str="pmix_str=\"\$$pmix_var\"" 17801 eval $pmix_str 17802 17803 if test "x$pmix_str" != "x"; then 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17805$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17807$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17809$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17811$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17812 as_fn_error $? "Cannot continue" "$LINENO" 5 17813 fi 17814 done 17815 17816 # Ok, we passed the simple sanity check. Save all these names so 17817 # that we can unset them at the end of the scope. 17818 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper_CFLAGS_save\"" 17819 eval $pmix_str 17820 unset pmix_str 17821 17822 env | grep pmix_scope 17823 pmix_scope_index=`expr $pmix_scope_index + 1` 17824 17825 17826 pmix_prog_cc_c11_helper_CFLAGS_save=$CFLAGS 17827 CFLAGS="$CFLAGS " 17828 17829 17830 17831 17832 # Is the private index set? If not, set it. 17833 if test "x$pmix_scope_index" = "x"; then 17834 pmix_scope_index=1 17835 fi 17836 17837 # First, check to see if any of these variables are already set. 17838 # This is a simple sanity check to ensure we're not already 17839 # overwriting pre-existing variables (that have a non-empty 17840 # value). It's not a perfect check, but at least it's something. 17841 for pmix_var in pmix_cc_helper_result; do 17842 pmix_str="pmix_str=\"\$$pmix_var\"" 17843 eval $pmix_str 17844 17845 if test "x$pmix_str" != "x"; then 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17847$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17849$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17851$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17853$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17854 as_fn_error $? "Cannot continue" "$LINENO" 5 17855 fi 17856 done 17857 17858 # Ok, we passed the simple sanity check. Save all these names so 17859 # that we can unset them at the end of the scope. 17860 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17861 eval $pmix_str 17862 unset pmix_str 17863 17864 env | grep pmix_scope 17865 pmix_scope_index=`expr $pmix_scope_index + 1` 17866 17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Thread_local" >&5 17868$as_echo_n "checking if $CC supports C11 _Thread_local... " >&6; } 17869 17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872 17873int 17874main () 17875{ 17876static _Thread_local int foo = 1;++foo; 17877 ; 17878 return 0; 17879} 17880_ACEOF 17881if ac_fn_c_try_link "$LINENO"; then : 17882 pmix_prog_cc_c11_helper__Thread_local_available=1 17883 pmix_cc_helper_result=yes 17884else 17885 pmix_prog_cc_c11_helper__Thread_local_available=0 17886 pmix_cc_helper_result=no 17887fi 17888rm -f core conftest.err conftest.$ac_objext \ 17889 conftest$ac_exeext conftest.$ac_ext 17890 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17892$as_echo "$pmix_cc_helper_result" >&6; } 17893 17894 # Unwind the index 17895 pmix_scope_index=`expr $pmix_scope_index - 1` 17896 pmix_scope_test=`expr $pmix_scope_index \> 0` 17897 if test "$pmix_scope_test" = "0"; then 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17899$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17901$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17902 as_fn_error $? "Cannot continue" "$LINENO" 5 17903 fi 17904 17905 # Get the variable names from that index 17906 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17907 eval $pmix_str 17908 17909 # Iterate over all the variables and unset them all 17910 for pmix_var in $pmix_str; do 17911 unset $pmix_var 17912 done 17913 17914 17915 17916 17917 17918 17919 # Is the private index set? If not, set it. 17920 if test "x$pmix_scope_index" = "x"; then 17921 pmix_scope_index=1 17922 fi 17923 17924 # First, check to see if any of these variables are already set. 17925 # This is a simple sanity check to ensure we're not already 17926 # overwriting pre-existing variables (that have a non-empty 17927 # value). It's not a perfect check, but at least it's something. 17928 for pmix_var in pmix_cc_helper_result; do 17929 pmix_str="pmix_str=\"\$$pmix_var\"" 17930 eval $pmix_str 17931 17932 if test "x$pmix_str" != "x"; then 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 17934$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 17936$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 17938$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17940$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17941 as_fn_error $? "Cannot continue" "$LINENO" 5 17942 fi 17943 done 17944 17945 # Ok, we passed the simple sanity check. Save all these names so 17946 # that we can unset them at the end of the scope. 17947 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 17948 eval $pmix_str 17949 unset pmix_str 17950 17951 env | grep pmix_scope 17952 pmix_scope_index=`expr $pmix_scope_index + 1` 17953 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic variables" >&5 17955$as_echo_n "checking if $CC supports C11 atomic variables... " >&6; } 17956 17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17958/* end confdefs.h. */ 17959#include <stdatomic.h> 17960int 17961main () 17962{ 17963static atomic_long foo = 1;++foo; 17964 ; 17965 return 0; 17966} 17967_ACEOF 17968if ac_fn_c_try_link "$LINENO"; then : 17969 pmix_prog_cc_c11_helper_atomic_var_available=1 17970 pmix_cc_helper_result=yes 17971else 17972 pmix_prog_cc_c11_helper_atomic_var_available=0 17973 pmix_cc_helper_result=no 17974fi 17975rm -f core conftest.err conftest.$ac_objext \ 17976 conftest$ac_exeext conftest.$ac_ext 17977 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 17979$as_echo "$pmix_cc_helper_result" >&6; } 17980 17981 # Unwind the index 17982 pmix_scope_index=`expr $pmix_scope_index - 1` 17983 pmix_scope_test=`expr $pmix_scope_index \> 0` 17984 if test "$pmix_scope_test" = "0"; then 17985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 17986$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 17988$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 17989 as_fn_error $? "Cannot continue" "$LINENO" 5 17990 fi 17991 17992 # Get the variable names from that index 17993 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 17994 eval $pmix_str 17995 17996 # Iterate over all the variables and unset them all 17997 for pmix_var in $pmix_str; do 17998 unset $pmix_var 17999 done 18000 18001 18002 18003 18004 18005 18006 # Is the private index set? If not, set it. 18007 if test "x$pmix_scope_index" = "x"; then 18008 pmix_scope_index=1 18009 fi 18010 18011 # First, check to see if any of these variables are already set. 18012 # This is a simple sanity check to ensure we're not already 18013 # overwriting pre-existing variables (that have a non-empty 18014 # value). It's not a perfect check, but at least it's something. 18015 for pmix_var in pmix_cc_helper_result; do 18016 pmix_str="pmix_str=\"\$$pmix_var\"" 18017 eval $pmix_str 18018 18019 if test "x$pmix_str" != "x"; then 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 18021$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 18023$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 18024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 18025$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18027$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18028 as_fn_error $? "Cannot continue" "$LINENO" 5 18029 fi 18030 done 18031 18032 # Ok, we passed the simple sanity check. Save all these names so 18033 # that we can unset them at the end of the scope. 18034 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 18035 eval $pmix_str 18036 unset pmix_str 18037 18038 env | grep pmix_scope 18039 pmix_scope_index=`expr $pmix_scope_index + 1` 18040 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Atomic keyword" >&5 18042$as_echo_n "checking if $CC supports C11 _Atomic keyword... " >&6; } 18043 18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045/* end confdefs.h. */ 18046#include <stdatomic.h> 18047int 18048main () 18049{ 18050static _Atomic long foo = 1;++foo; 18051 ; 18052 return 0; 18053} 18054_ACEOF 18055if ac_fn_c_try_link "$LINENO"; then : 18056 pmix_prog_cc_c11_helper__Atomic_available=1 18057 pmix_cc_helper_result=yes 18058else 18059 pmix_prog_cc_c11_helper__Atomic_available=0 18060 pmix_cc_helper_result=no 18061fi 18062rm -f core conftest.err conftest.$ac_objext \ 18063 conftest$ac_exeext conftest.$ac_ext 18064 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 18066$as_echo "$pmix_cc_helper_result" >&6; } 18067 18068 # Unwind the index 18069 pmix_scope_index=`expr $pmix_scope_index - 1` 18070 pmix_scope_test=`expr $pmix_scope_index \> 0` 18071 if test "$pmix_scope_test" = "0"; then 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18073$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18075$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18076 as_fn_error $? "Cannot continue" "$LINENO" 5 18077 fi 18078 18079 # Get the variable names from that index 18080 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18081 eval $pmix_str 18082 18083 # Iterate over all the variables and unset them all 18084 for pmix_var in $pmix_str; do 18085 unset $pmix_var 18086 done 18087 18088 18089 18090 18091 18092 18093 # Is the private index set? If not, set it. 18094 if test "x$pmix_scope_index" = "x"; then 18095 pmix_scope_index=1 18096 fi 18097 18098 # First, check to see if any of these variables are already set. 18099 # This is a simple sanity check to ensure we're not already 18100 # overwriting pre-existing variables (that have a non-empty 18101 # value). It's not a perfect check, but at least it's something. 18102 for pmix_var in pmix_cc_helper_result; do 18103 pmix_str="pmix_str=\"\$$pmix_var\"" 18104 eval $pmix_str 18105 18106 if test "x$pmix_str" != "x"; then 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 18108$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 18110$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 18111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 18112$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18114$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18115 as_fn_error $? "Cannot continue" "$LINENO" 5 18116 fi 18117 done 18118 18119 # Ok, we passed the simple sanity check. Save all these names so 18120 # that we can unset them at the end of the scope. 18121 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 18122 eval $pmix_str 18123 unset pmix_str 18124 18125 env | grep pmix_scope 18126 pmix_scope_index=`expr $pmix_scope_index + 1` 18127 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Generic keyword" >&5 18129$as_echo_n "checking if $CC supports C11 _Generic keyword... " >&6; } 18130 18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18132/* end confdefs.h. */ 18133#define FOO(x) (_Generic (x, int: 1)) 18134int 18135main () 18136{ 18137static int x, y; y = FOO(x); 18138 ; 18139 return 0; 18140} 18141_ACEOF 18142if ac_fn_c_try_link "$LINENO"; then : 18143 pmix_prog_cc_c11_helper__Generic_available=1 18144 pmix_cc_helper_result=yes 18145else 18146 pmix_prog_cc_c11_helper__Generic_available=0 18147 pmix_cc_helper_result=no 18148fi 18149rm -f core conftest.err conftest.$ac_objext \ 18150 conftest$ac_exeext conftest.$ac_ext 18151 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 18153$as_echo "$pmix_cc_helper_result" >&6; } 18154 18155 # Unwind the index 18156 pmix_scope_index=`expr $pmix_scope_index - 1` 18157 pmix_scope_test=`expr $pmix_scope_index \> 0` 18158 if test "$pmix_scope_test" = "0"; then 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18160$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18162$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18163 as_fn_error $? "Cannot continue" "$LINENO" 5 18164 fi 18165 18166 # Get the variable names from that index 18167 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18168 eval $pmix_str 18169 18170 # Iterate over all the variables and unset them all 18171 for pmix_var in $pmix_str; do 18172 unset $pmix_var 18173 done 18174 18175 18176 18177 18178 18179 18180 # Is the private index set? If not, set it. 18181 if test "x$pmix_scope_index" = "x"; then 18182 pmix_scope_index=1 18183 fi 18184 18185 # First, check to see if any of these variables are already set. 18186 # This is a simple sanity check to ensure we're not already 18187 # overwriting pre-existing variables (that have a non-empty 18188 # value). It's not a perfect check, but at least it's something. 18189 for pmix_var in pmix_cc_helper_result; do 18190 pmix_str="pmix_str=\"\$$pmix_var\"" 18191 eval $pmix_str 18192 18193 if test "x$pmix_str" != "x"; then 18194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 18195$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 18197$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 18199$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18201$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18202 as_fn_error $? "Cannot continue" "$LINENO" 5 18203 fi 18204 done 18205 18206 # Ok, we passed the simple sanity check. Save all these names so 18207 # that we can unset them at the end of the scope. 18208 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 18209 eval $pmix_str 18210 unset pmix_str 18211 18212 env | grep pmix_scope 18213 pmix_scope_index=`expr $pmix_scope_index + 1` 18214 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Static_assert" >&5 18216$as_echo_n "checking if $CC supports C11 _Static_assert... " >&6; } 18217 18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18219/* end confdefs.h. */ 18220#include <stdint.h> 18221int 18222main () 18223{ 18224_Static_assert(sizeof(int64_t) == 8, "WTH"); 18225 ; 18226 return 0; 18227} 18228_ACEOF 18229if ac_fn_c_try_link "$LINENO"; then : 18230 pmix_prog_cc_c11_helper__static_assert_available=1 18231 pmix_cc_helper_result=yes 18232else 18233 pmix_prog_cc_c11_helper__static_assert_available=0 18234 pmix_cc_helper_result=no 18235fi 18236rm -f core conftest.err conftest.$ac_objext \ 18237 conftest$ac_exeext conftest.$ac_ext 18238 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 18240$as_echo "$pmix_cc_helper_result" >&6; } 18241 18242 # Unwind the index 18243 pmix_scope_index=`expr $pmix_scope_index - 1` 18244 pmix_scope_test=`expr $pmix_scope_index \> 0` 18245 if test "$pmix_scope_test" = "0"; then 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18247$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18249$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18250 as_fn_error $? "Cannot continue" "$LINENO" 5 18251 fi 18252 18253 # Get the variable names from that index 18254 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18255 eval $pmix_str 18256 18257 # Iterate over all the variables and unset them all 18258 for pmix_var in $pmix_str; do 18259 unset $pmix_var 18260 done 18261 18262 18263 18264 18265 18266 18267 # Is the private index set? If not, set it. 18268 if test "x$pmix_scope_index" = "x"; then 18269 pmix_scope_index=1 18270 fi 18271 18272 # First, check to see if any of these variables are already set. 18273 # This is a simple sanity check to ensure we're not already 18274 # overwriting pre-existing variables (that have a non-empty 18275 # value). It's not a perfect check, but at least it's something. 18276 for pmix_var in pmix_cc_helper_result; do 18277 pmix_str="pmix_str=\"\$$pmix_var\"" 18278 eval $pmix_str 18279 18280 if test "x$pmix_str" != "x"; then 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 18282$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 18284$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 18286$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 18287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18288$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18289 as_fn_error $? "Cannot continue" "$LINENO" 5 18290 fi 18291 done 18292 18293 # Ok, we passed the simple sanity check. Save all these names so 18294 # that we can unset them at the end of the scope. 18295 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 18296 eval $pmix_str 18297 unset pmix_str 18298 18299 env | grep pmix_scope 18300 pmix_scope_index=`expr $pmix_scope_index + 1` 18301 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic_fetch_xor_explicit" >&5 18303$as_echo_n "checking if $CC supports C11 atomic_fetch_xor_explicit... " >&6; } 18304 18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18306/* end confdefs.h. */ 18307#include <stdatomic.h> 18308#include <stdint.h> 18309int 18310main () 18311{ 18312_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed); 18313 ; 18314 return 0; 18315} 18316_ACEOF 18317if ac_fn_c_try_link "$LINENO"; then : 18318 pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1 18319 pmix_cc_helper_result=yes 18320else 18321 pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0 18322 pmix_cc_helper_result=no 18323fi 18324rm -f core conftest.err conftest.$ac_objext \ 18325 conftest$ac_exeext conftest.$ac_ext 18326 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 18328$as_echo "$pmix_cc_helper_result" >&6; } 18329 18330 # Unwind the index 18331 pmix_scope_index=`expr $pmix_scope_index - 1` 18332 pmix_scope_test=`expr $pmix_scope_index \> 0` 18333 if test "$pmix_scope_test" = "0"; then 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18335$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18337$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18338 as_fn_error $? "Cannot continue" "$LINENO" 5 18339 fi 18340 18341 # Get the variable names from that index 18342 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18343 eval $pmix_str 18344 18345 # Iterate over all the variables and unset them all 18346 for pmix_var in $pmix_str; do 18347 unset $pmix_var 18348 done 18349 18350 18351 18352 18353 if test $pmix_prog_cc_c11_helper__Thread_local_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_var_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then : 18354 18355fi 18356 18357 CFLAGS=$pmix_prog_cc_c11_helper_CFLAGS_save 18358 18359 18360 # Unwind the index 18361 pmix_scope_index=`expr $pmix_scope_index - 1` 18362 pmix_scope_test=`expr $pmix_scope_index \> 0` 18363 if test "$pmix_scope_test" = "0"; then 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18365$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18367$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18368 as_fn_error $? "Cannot continue" "$LINENO" 5 18369 fi 18370 18371 # Get the variable names from that index 18372 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18373 eval $pmix_str 18374 18375 # Iterate over all the variables and unset them all 18376 for pmix_var in $pmix_str; do 18377 unset $pmix_var 18378 done 18379 18380 18381 fi 18382 18383 # Check if compiler support __thread 18384 18385 18386 18387 # Is the private index set? If not, set it. 18388 if test "x$pmix_scope_index" = "x"; then 18389 pmix_scope_index=1 18390 fi 18391 18392 # First, check to see if any of these variables are already set. 18393 # This is a simple sanity check to ensure we're not already 18394 # overwriting pre-existing variables (that have a non-empty 18395 # value). It's not a perfect check, but at least it's something. 18396 for pmix_var in pmix_cc_helper_result; do 18397 pmix_str="pmix_str=\"\$$pmix_var\"" 18398 eval $pmix_str 18399 18400 if test "x$pmix_str" != "x"; then 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 18402$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 18403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 18404$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 18406$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18408$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18409 as_fn_error $? "Cannot continue" "$LINENO" 5 18410 fi 18411 done 18412 18413 # Ok, we passed the simple sanity check. Save all these names so 18414 # that we can unset them at the end of the scope. 18415 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 18416 eval $pmix_str 18417 unset pmix_str 18418 18419 env | grep pmix_scope 18420 pmix_scope_index=`expr $pmix_scope_index + 1` 18421 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __thread" >&5 18423$as_echo_n "checking if $CC supports __thread... " >&6; } 18424 18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18426/* end confdefs.h. */ 18427 18428int 18429main () 18430{ 18431static __thread int foo = 1;++foo; 18432 ; 18433 return 0; 18434} 18435_ACEOF 18436if ac_fn_c_try_link "$LINENO"; then : 18437 pmix_prog_cc__thread_available=1 18438 pmix_cc_helper_result=yes 18439else 18440 pmix_prog_cc__thread_available=0 18441 pmix_cc_helper_result=no 18442fi 18443rm -f core conftest.err conftest.$ac_objext \ 18444 conftest$ac_exeext conftest.$ac_ext 18445 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 18447$as_echo "$pmix_cc_helper_result" >&6; } 18448 18449 # Unwind the index 18450 pmix_scope_index=`expr $pmix_scope_index - 1` 18451 pmix_scope_test=`expr $pmix_scope_index \> 0` 18452 if test "$pmix_scope_test" = "0"; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18454$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18456$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18457 as_fn_error $? "Cannot continue" "$LINENO" 5 18458 fi 18459 18460 # Get the variable names from that index 18461 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18462 eval $pmix_str 18463 18464 # Iterate over all the variables and unset them all 18465 for pmix_var in $pmix_str; do 18466 unset $pmix_var 18467 done 18468 18469 18470 18471 18472 18473 18474 18475 # Is the private index set? If not, set it. 18476 if test "x$pmix_scope_index" = "x"; then 18477 pmix_scope_index=1 18478 fi 18479 18480 # First, check to see if any of these variables are already set. 18481 # This is a simple sanity check to ensure we're not already 18482 # overwriting pre-existing variables (that have a non-empty 18483 # value). It's not a perfect check, but at least it's something. 18484 for pmix_var in pmix_cc_helper_result; do 18485 pmix_str="pmix_str=\"\$$pmix_var\"" 18486 eval $pmix_str 18487 18488 if test "x$pmix_str" != "x"; then 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 18490$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 18492$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 18494$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 18495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18496$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18497 as_fn_error $? "Cannot continue" "$LINENO" 5 18498 fi 18499 done 18500 18501 # Ok, we passed the simple sanity check. Save all these names so 18502 # that we can unset them at the end of the scope. 18503 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\"" 18504 eval $pmix_str 18505 unset pmix_str 18506 18507 env | grep pmix_scope 18508 pmix_scope_index=`expr $pmix_scope_index + 1` 18509 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Thread_local" >&5 18511$as_echo_n "checking if $CC supports C11 _Thread_local... " >&6; } 18512 18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18514/* end confdefs.h. */ 18515 18516int 18517main () 18518{ 18519static _Thread_local int foo = 1;++foo; 18520 ; 18521 return 0; 18522} 18523_ACEOF 18524if ac_fn_c_try_link "$LINENO"; then : 18525 pmix_prog_cc_c11_helper__Thread_local_available=1 18526 pmix_cc_helper_result=yes 18527else 18528 pmix_prog_cc_c11_helper__Thread_local_available=0 18529 pmix_cc_helper_result=no 18530fi 18531rm -f core conftest.err conftest.$ac_objext \ 18532 conftest$ac_exeext conftest.$ac_ext 18533 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5 18535$as_echo "$pmix_cc_helper_result" >&6; } 18536 18537 # Unwind the index 18538 pmix_scope_index=`expr $pmix_scope_index - 1` 18539 pmix_scope_test=`expr $pmix_scope_index \> 0` 18540 if test "$pmix_scope_test" = "0"; then 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 18542$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 18544$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 18545 as_fn_error $? "Cannot continue" "$LINENO" 5 18546 fi 18547 18548 # Get the variable names from that index 18549 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 18550 eval $pmix_str 18551 18552 # Iterate over all the variables and unset them all 18553 for pmix_var in $pmix_str; do 18554 unset $pmix_var 18555 done 18556 18557 18558 18559 18560cat >>confdefs.h <<_ACEOF 18561#define PMIX_C_HAVE__THREAD_LOCAL $pmix_prog_cc_c11_helper__Thread_local_available 18562_ACEOF 18563 18564 18565 18566cat >>confdefs.h <<_ACEOF 18567#define PMIX_C_HAVE_ATOMIC_CONV_VAR $pmix_prog_cc_c11_helper_atomic_var_available 18568_ACEOF 18569 18570 18571 18572cat >>confdefs.h <<_ACEOF 18573#define PMIX_C_HAVE__ATOMIC $pmix_prog_cc_c11_helper__Atomic_available 18574_ACEOF 18575 18576 18577 18578cat >>confdefs.h <<_ACEOF 18579#define PMIX_C_HAVE__GENERIC $pmix_prog_cc_c11_helper__Generic_available 18580_ACEOF 18581 18582 18583 18584cat >>confdefs.h <<_ACEOF 18585#define PMIX_C_HAVE__STATIC_ASSERT $pmix_prog_cc_c11_helper__static_assert_available 18586_ACEOF 18587 18588 18589 18590cat >>confdefs.h <<_ACEOF 18591#define PMIX_C_HAVE___THREAD $pmix_prog_cc__thread_available 18592_ACEOF 18593 18594 18595 18596 18597 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5 18599$as_echo_n "checking for the C compiler vendor... " >&6; } 18600if ${pmix_cv_c_compiler_vendor+:} false; then : 18601 $as_echo_n "(cached) " >&6 18602else 18603 ac_ext=c 18604ac_cpp='$CPP $CPPFLAGS' 18605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18607ac_compiler_gnu=$ac_cv_c_compiler_gnu 18608 18609 18610 pmix_check_compiler_vendor_result="unknown" 18611 18612 # GNU is probably the most common, so check that one as soon as 18613 # possible. Intel and PGI18 pretend to be GNU, so need to check Intel 18614 # and PGI before checking for GNU. 18615 18616 # Intel 18617 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18618 18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18620/* end confdefs.h. */ 18621 18622#if !( defined(__INTEL_COMPILER) || defined(__ICC) ) 18623#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" 18624choke me 18625#endif 18626_ACEOF 18627if ac_fn_c_try_compile "$LINENO"; then : 18628 pmix_check_compiler_vendor_result="intel" 18629fi 18630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18631fi 18632 18633 # Portland Group 18634 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18635 18636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18637/* end confdefs.h. */ 18638 18639#ifndef __PGI 18640#error "symbol __PGI not defined" 18641choke me 18642#endif 18643_ACEOF 18644if ac_fn_c_try_compile "$LINENO"; then : 18645 pmix_check_compiler_vendor_result="portland group" 18646fi 18647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18648fi 18649 18650 # Fujitsu 18651 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18652 18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18654/* end confdefs.h. */ 18655 18656#if !( defined(__FUJITSU) ) 18657#error "condition defined(__FUJITSU) not met" 18658choke me 18659#endif 18660_ACEOF 18661if ac_fn_c_try_compile "$LINENO"; then : 18662 pmix_check_compiler_vendor_result="fujitsu" 18663fi 18664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18665fi 18666 18667 # GNU 18668 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18669 18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672 18673#ifndef __GNUC__ 18674#error "symbol __GNUC__ not defined" 18675choke me 18676#endif 18677_ACEOF 18678if ac_fn_c_try_compile "$LINENO"; then : 18679 pmix_check_compiler_vendor_result="gnu" 18680 18681 # We do not support gccfss as a compiler so die if 18682 # someone tries to use said compiler. gccfss (gcc 18683 # for SPARC Systems) is a compiler that is no longer 18684 # supported by Oracle and it has some major flaws 18685 # that prevents it from actually compiling PMIX code. 18686 # So if we detect it we automatically bail. 18687 18688 if ($CC --version | grep gccfss) >/dev/null 2>&1; then 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gccfss" >&5 18690$as_echo "gccfss" >&6; } 18691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected gccfss being used to compile PMIx." >&5 18692$as_echo "$as_me: WARNING: Detected gccfss being used to compile PMIx." >&2;} 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Because of several issues PMIx does not support" >&5 18694$as_echo "$as_me: WARNING: Because of several issues PMIx does not support" >&2;} 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the gccfss compiler. Please use a different compiler." >&5 18696$as_echo "$as_me: WARNING: the gccfss compiler. Please use a different compiler." >&2;} 18697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you didn't think you used gccfss you may want to" >&5 18698$as_echo "$as_me: WARNING: If you didn't think you used gccfss you may want to" >&2;} 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check to see if the compiler you think you used is" >&5 18700$as_echo "$as_me: WARNING: check to see if the compiler you think you used is" >&2;} 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: actually a link to gccfss." >&5 18702$as_echo "$as_me: WARNING: actually a link to gccfss." >&2;} 18703 as_fn_error $? "Cannot continue" "$LINENO" 5 18704 fi 18705fi 18706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18707fi 18708 18709 # Borland Turbo C 18710 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18711 18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18713/* end confdefs.h. */ 18714 18715#ifndef __TURBOC__ 18716#error "symbol __TURBOC__ not defined" 18717choke me 18718#endif 18719_ACEOF 18720if ac_fn_c_try_compile "$LINENO"; then : 18721 pmix_check_compiler_vendor_result="borland" 18722fi 18723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18724fi 18725 18726 # Borland C++ 18727 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18728 18729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18730/* end confdefs.h. */ 18731 18732#ifndef __BORLANDC__ 18733#error "symbol __BORLANDC__ not defined" 18734choke me 18735#endif 18736_ACEOF 18737if ac_fn_c_try_compile "$LINENO"; then : 18738 pmix_check_compiler_vendor_result="borland" 18739fi 18740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18741fi 18742 18743 # Comeau C++ 18744 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18745 18746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18747/* end confdefs.h. */ 18748 18749#ifndef __COMO__ 18750#error "symbol __COMO__ not defined" 18751choke me 18752#endif 18753_ACEOF 18754if ac_fn_c_try_compile "$LINENO"; then : 18755 pmix_check_compiler_vendor_result="comeau" 18756fi 18757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18758fi 18759 18760 # Compaq C/C++ 18761 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18762 18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18764/* end confdefs.h. */ 18765 18766#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) 18767#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" 18768choke me 18769#endif 18770_ACEOF 18771if ac_fn_c_try_compile "$LINENO"; then : 18772 pmix_check_compiler_vendor_result="compaq" 18773else 18774 18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18776/* end confdefs.h. */ 18777 18778#if !( defined(__osf__) && defined(__LANGUAGE_C__) ) 18779#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" 18780choke me 18781#endif 18782_ACEOF 18783if ac_fn_c_try_compile "$LINENO"; then : 18784 pmix_check_compiler_vendor_result="compaq" 18785else 18786 18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18788/* end confdefs.h. */ 18789 18790#ifndef __DECCXX 18791#error "symbol __DECCXX not defined" 18792choke me 18793#endif 18794_ACEOF 18795if ac_fn_c_try_compile "$LINENO"; then : 18796 pmix_check_compiler_vendor_result="compaq" 18797fi 18798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18799fi 18800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18801fi 18802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18803fi 18804 18805 # Cray C/C++ 18806 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18807 18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18809/* end confdefs.h. */ 18810 18811#ifndef _CRAYC 18812#error "symbol _CRAYC not defined" 18813choke me 18814#endif 18815_ACEOF 18816if ac_fn_c_try_compile "$LINENO"; then : 18817 pmix_check_compiler_vendor_result="cray" 18818fi 18819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18820fi 18821 18822 # Diab C/C++ 18823 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18824 18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18826/* end confdefs.h. */ 18827 18828#ifndef __DCC__ 18829#error "symbol __DCC__ not defined" 18830choke me 18831#endif 18832_ACEOF 18833if ac_fn_c_try_compile "$LINENO"; then : 18834 pmix_check_compiler_vendor_result="diab" 18835fi 18836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18837fi 18838 18839 # Digital Mars 18840 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18841 18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18843/* end confdefs.h. */ 18844 18845#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) 18846#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" 18847choke me 18848#endif 18849_ACEOF 18850if ac_fn_c_try_compile "$LINENO"; then : 18851 pmix_check_compiler_vendor_result="digital mars" 18852fi 18853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18854fi 18855 18856 # HP ANSI C / aC++ 18857 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18858 18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18860/* end confdefs.h. */ 18861 18862#if !( defined(__HP_cc) || defined(__HP_aCC) ) 18863#error "condition defined(__HP_cc) || defined(__HP_aCC) not met" 18864choke me 18865#endif 18866_ACEOF 18867if ac_fn_c_try_compile "$LINENO"; then : 18868 pmix_check_compiler_vendor_result="hp" 18869fi 18870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18871fi 18872 18873 # IBM XL C/C++ 18874 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18875 18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18877/* end confdefs.h. */ 18878 18879#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) ) 18880#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met" 18881choke me 18882#endif 18883_ACEOF 18884if ac_fn_c_try_compile "$LINENO"; then : 18885 pmix_check_compiler_vendor_result="ibm" 18886else 18887 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890 18891#if !( defined(_AIX) && !defined(__GNUC__) ) 18892#error "condition defined(_AIX) && !defined(__GNUC__) not met" 18893choke me 18894#endif 18895_ACEOF 18896if ac_fn_c_try_compile "$LINENO"; then : 18897 pmix_check_compiler_vendor_result="ibm" 18898fi 18899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18900fi 18901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18902fi 18903 18904 # KAI C++ (rest in peace) 18905 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18906 18907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18908/* end confdefs.h. */ 18909 18910#ifndef __KCC 18911#error "symbol __KCC not defined" 18912choke me 18913#endif 18914_ACEOF 18915if ac_fn_c_try_compile "$LINENO"; then : 18916 pmix_check_compiler_vendor_result="kai" 18917fi 18918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18919fi 18920 18921 # LCC 18922 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18923 18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18925/* end confdefs.h. */ 18926 18927#ifndef __LCC__ 18928#error "symbol __LCC__ not defined" 18929choke me 18930#endif 18931_ACEOF 18932if ac_fn_c_try_compile "$LINENO"; then : 18933 pmix_check_compiler_vendor_result="lcc" 18934fi 18935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18936fi 18937 18938 # MetaWare High C/C++ 18939 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18940 18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18942/* end confdefs.h. */ 18943 18944#ifndef __HIGHC__ 18945#error "symbol __HIGHC__ not defined" 18946choke me 18947#endif 18948_ACEOF 18949if ac_fn_c_try_compile "$LINENO"; then : 18950 pmix_check_compiler_vendor_result="metaware high" 18951fi 18952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18953fi 18954 18955 # Metrowerks Codewarrior 18956 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18957 18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18959/* end confdefs.h. */ 18960 18961#ifndef __MWERKS__ 18962#error "symbol __MWERKS__ not defined" 18963choke me 18964#endif 18965_ACEOF 18966if ac_fn_c_try_compile "$LINENO"; then : 18967 pmix_check_compiler_vendor_result="metrowerks" 18968fi 18969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18970fi 18971 18972 # MIPSpro (SGI) 18973 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18974 18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18976/* end confdefs.h. */ 18977 18978#if !( defined(sgi) || defined(__sgi) ) 18979#error "condition defined(sgi) || defined(__sgi) not met" 18980choke me 18981#endif 18982_ACEOF 18983if ac_fn_c_try_compile "$LINENO"; then : 18984 pmix_check_compiler_vendor_result="sgi" 18985fi 18986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18987fi 18988 18989 # MPW C++ 18990 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 18991 18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18993/* end confdefs.h. */ 18994 18995#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) 18996#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" 18997choke me 18998#endif 18999_ACEOF 19000if ac_fn_c_try_compile "$LINENO"; then : 19001 pmix_check_compiler_vendor_result="mpw" 19002fi 19003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19004fi 19005 19006 # Norcroft C 19007 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19008 19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19010/* end confdefs.h. */ 19011 19012#ifndef __CC_NORCROFT 19013#error "symbol __CC_NORCROFT not defined" 19014choke me 19015#endif 19016_ACEOF 19017if ac_fn_c_try_compile "$LINENO"; then : 19018 pmix_check_compiler_vendor_result="norcroft" 19019fi 19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19021fi 19022 19023 # Pelles C 19024 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19025 19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19027/* end confdefs.h. */ 19028 19029#ifndef __POCC__ 19030#error "symbol __POCC__ not defined" 19031choke me 19032#endif 19033_ACEOF 19034if ac_fn_c_try_compile "$LINENO"; then : 19035 pmix_check_compiler_vendor_result="pelles" 19036fi 19037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19038fi 19039 19040 # SAS/C 19041 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19042 19043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19044/* end confdefs.h. */ 19045 19046#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) 19047#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" 19048choke me 19049#endif 19050_ACEOF 19051if ac_fn_c_try_compile "$LINENO"; then : 19052 pmix_check_compiler_vendor_result="sas" 19053fi 19054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19055fi 19056 19057 # Sun Workshop C/C++ 19058 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19059 19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19061/* end confdefs.h. */ 19062 19063#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) 19064#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" 19065choke me 19066#endif 19067_ACEOF 19068if ac_fn_c_try_compile "$LINENO"; then : 19069 pmix_check_compiler_vendor_result="sun" 19070fi 19071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19072fi 19073 19074 # TenDRA C/C++ 19075 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19076 19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19078/* end confdefs.h. */ 19079 19080#ifndef __TenDRA__ 19081#error "symbol __TenDRA__ not defined" 19082choke me 19083#endif 19084_ACEOF 19085if ac_fn_c_try_compile "$LINENO"; then : 19086 pmix_check_compiler_vendor_result="tendra" 19087fi 19088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19089fi 19090 19091 # Tiny C 19092 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19093 19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19095/* end confdefs.h. */ 19096 19097#ifndef __TINYC__ 19098#error "symbol __TINYC__ not defined" 19099choke me 19100#endif 19101_ACEOF 19102if ac_fn_c_try_compile "$LINENO"; then : 19103 pmix_check_compiler_vendor_result="tiny" 19104fi 19105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19106fi 19107 19108 # USL C 19109 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19110 19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19112/* end confdefs.h. */ 19113 19114#ifndef __USLC__ 19115#error "symbol __USLC__ not defined" 19116choke me 19117#endif 19118_ACEOF 19119if ac_fn_c_try_compile "$LINENO"; then : 19120 pmix_check_compiler_vendor_result="usl" 19121fi 19122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19123fi 19124 19125 # Watcom C++ 19126 if test "$pmix_check_compiler_vendor_result" = "unknown"; then : 19127 19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19129/* end confdefs.h. */ 19130 19131#ifndef __WATCOMC__ 19132#error "symbol __WATCOMC__ not defined" 19133choke me 19134#endif 19135_ACEOF 19136if ac_fn_c_try_compile "$LINENO"; then : 19137 pmix_check_compiler_vendor_result="watcom" 19138fi 19139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19140fi 19141 19142 pmix_cv_c_compiler_vendor="$pmix_check_compiler_vendor_result" 19143 unset pmix_check_compiler_vendor_result 19144 19145 ac_ext=c 19146ac_cpp='$CPP $CPPFLAGS' 19147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19149ac_compiler_gnu=$ac_cv_c_compiler_gnu 19150 19151fi 19152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_compiler_vendor" >&5 19153$as_echo "$pmix_cv_c_compiler_vendor" >&6; } 19154 19155 pmix_c_vendor="$pmix_cv_c_compiler_vendor" 19156 19157 19158 # Check for standard headers, needed here because needed before 19159 # the types checks. 19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19161$as_echo_n "checking for ANSI C header files... " >&6; } 19162if ${ac_cv_header_stdc+:} false; then : 19163 $as_echo_n "(cached) " >&6 19164else 19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19166/* end confdefs.h. */ 19167#include <stdlib.h> 19168#include <stdarg.h> 19169#include <string.h> 19170#include <float.h> 19171 19172int 19173main () 19174{ 19175 19176 ; 19177 return 0; 19178} 19179_ACEOF 19180if ac_fn_c_try_compile "$LINENO"; then : 19181 ac_cv_header_stdc=yes 19182else 19183 ac_cv_header_stdc=no 19184fi 19185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19186 19187if test $ac_cv_header_stdc = yes; then 19188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19190/* end confdefs.h. */ 19191#include <string.h> 19192 19193_ACEOF 19194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19195 $EGREP "memchr" >/dev/null 2>&1; then : 19196 19197else 19198 ac_cv_header_stdc=no 19199fi 19200rm -f conftest* 19201 19202fi 19203 19204if test $ac_cv_header_stdc = yes; then 19205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19207/* end confdefs.h. */ 19208#include <stdlib.h> 19209 19210_ACEOF 19211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19212 $EGREP "free" >/dev/null 2>&1; then : 19213 19214else 19215 ac_cv_header_stdc=no 19216fi 19217rm -f conftest* 19218 19219fi 19220 19221if test $ac_cv_header_stdc = yes; then 19222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19223 if test "$cross_compiling" = yes; then : 19224 : 19225else 19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19227/* end confdefs.h. */ 19228#include <ctype.h> 19229#include <stdlib.h> 19230#if ((' ' & 0x0FF) == 0x020) 19231# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19232# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19233#else 19234# define ISLOWER(c) \ 19235 (('a' <= (c) && (c) <= 'i') \ 19236 || ('j' <= (c) && (c) <= 'r') \ 19237 || ('s' <= (c) && (c) <= 'z')) 19238# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19239#endif 19240 19241#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19242int 19243main () 19244{ 19245 int i; 19246 for (i = 0; i < 256; i++) 19247 if (XOR (islower (i), ISLOWER (i)) 19248 || toupper (i) != TOUPPER (i)) 19249 return 2; 19250 return 0; 19251} 19252_ACEOF 19253if ac_fn_c_try_run "$LINENO"; then : 19254 19255else 19256 ac_cv_header_stdc=no 19257fi 19258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19259 conftest.$ac_objext conftest.beam conftest.$ac_ext 19260fi 19261 19262fi 19263fi 19264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19265$as_echo "$ac_cv_header_stdc" >&6; } 19266if test $ac_cv_header_stdc = yes; then 19267 19268$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19269 19270fi 19271 19272 19273 # GNU C and autotools are inconsistent about whether this is 19274 # defined so let's make it true everywhere for now... However, IBM 19275 # XL compilers on PPC Linux behave really badly when compiled with 19276 # _GNU_SOURCE defined, so don't define it in that situation. 19277 # 19278 # Don't use AC_GNU_SOURCE because it requires that no compiler 19279 # tests are done before setting it, and we need to at least do 19280 # enough tests to figure out if we're using XL or not. 19281 if test "$pmix_cv_c_compiler_vendor" != "ibm"; then : 19282 19283 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 19284 19285fi 19286 19287 # Do we want code coverage 19288 if test "$WANT_COVERAGE" = "1"; then 19289 if test "$pmix_c_vendor" = "gnu" ; then 19290 # For compilers > gcc-4.x, use --coverage for 19291 # compiling and linking to circumvent trouble with 19292 # libgcov. 19293 CFLAGS_orig="$CFLAGS" 19294 LDFLAGS_orig="$LDFLAGS" 19295 19296 CFLAGS="$CFLAGS_orig --coverage" 19297 LDFLAGS="$LDFLAGS_orig --coverage" 19298 PMIX_COVERAGE_FLAGS= 19299 19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports --coverage" >&5 19301$as_echo_n "checking if $CC supports --coverage... " >&6; } 19302if ${pmix_cv_cc_coverage+:} false; then : 19303 $as_echo_n "(cached) " >&6 19304else 19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19306/* end confdefs.h. */ 19307 19308int 19309main () 19310{ 19311 19312 ; 19313 return 0; 19314} 19315_ACEOF 19316if ac_fn_c_try_compile "$LINENO"; then : 19317 pmix_cv_cc_coverage="yes" 19318else 19319 pmix_cv_cc_coverage="no" 19320fi 19321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19322fi 19323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_coverage" >&5 19324$as_echo "$pmix_cv_cc_coverage" >&6; } 19325 19326 if test "$pmix_cv_cc_coverage" = "yes" ; then 19327 PMIX_COVERAGE_FLAGS="--coverage" 19328 CLEANFILES="*.gcno ${CLEANFILES}" 19329 CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}" 19330 else 19331 PMIX_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs" 19332 CLEANFILES="*.bb *.bbg ${CLEANFILES}" 19333 CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}" 19334 fi 19335 CFLAGS="$CFLAGS_orig $PMIX_COVERAGE_FLAGS" 19336 LDFLAGS="$LDFLAGS_orig $PMIX_COVERAGE_FLAGS" 19337 19338 19339 # 1 is the variable name to be uniq-ized 19340 pmix_name=CFLAGS 19341 19342 # Go through each item in the variable and only keep the unique ones 19343 19344 pmix_count=0 19345 for val in ${CFLAGS}; do 19346 pmix_done=0 19347 pmix_i=1 19348 pmix_found=0 19349 19350 # Loop over every token we've seen so far 19351 19352 pmix_done="`expr $pmix_i \> $pmix_count`" 19353 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 19354 19355 # Have we seen this token already? Prefix the comparison 19356 # with "x" so that "-Lfoo" values won't be cause an error. 19357 19358 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 19359 pmix_found=`eval $pmix_eval` 19360 19361 # Check the ending condition 19362 19363 pmix_done="`expr $pmix_i \>= $pmix_count`" 19364 19365 # Increment the counter 19366 19367 pmix_i="`expr $pmix_i + 1`" 19368 done 19369 19370 # Check for special cases where we do want to allow repeated 19371 # arguments (per 19372 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 19373 # and 19374 # https://github.com/open-mpi/ompi/issues/324). 19375 19376 case $val in 19377 -Xclang|-Xg) 19378 pmix_found=0 19379 pmix_i=`expr $pmix_count + 1` 19380 ;; 19381 -framework) 19382 pmix_found=0 19383 pmix_i=`expr $pmix_count + 1` 19384 ;; 19385 --param) 19386 pmix_found=0 19387 pmix_i=`expr $pmix_count + 1` 19388 ;; 19389 esac 19390 19391 # If we didn't find the token, add it to the "array" 19392 19393 if test "$pmix_found" = "0"; then 19394 pmix_eval="pmix_array_$pmix_i=$val" 19395 eval $pmix_eval 19396 pmix_count="`expr $pmix_count + 1`" 19397 else 19398 pmix_i="`expr $pmix_i - 1`" 19399 fi 19400 done 19401 19402 # Take all the items in the "array" and assemble them back into a 19403 # single variable 19404 19405 pmix_i=1 19406 pmix_done="`expr $pmix_i \> $pmix_count`" 19407 pmix_newval= 19408 while test "$pmix_done" = "0"; do 19409 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 19410 eval $pmix_eval 19411 19412 pmix_eval="unset pmix_array_$pmix_i" 19413 eval $pmix_eval 19414 19415 pmix_done="`expr $pmix_i \>= $pmix_count`" 19416 pmix_i="`expr $pmix_i + 1`" 19417 done 19418 19419 # Done; do the assignment 19420 19421 pmix_newval="`echo $pmix_newval`" 19422 pmix_eval="$pmix_name=\"$pmix_newval\"" 19423 eval $pmix_eval 19424 19425 # Clean up 19426 19427 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 19428 19429 19430 # 1 is the variable name to be uniq-ized 19431 pmix_name=LDFLAGS 19432 19433 # Go through each item in the variable and only keep the unique ones 19434 19435 pmix_count=0 19436 for val in ${LDFLAGS}; do 19437 pmix_done=0 19438 pmix_i=1 19439 pmix_found=0 19440 19441 # Loop over every token we've seen so far 19442 19443 pmix_done="`expr $pmix_i \> $pmix_count`" 19444 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 19445 19446 # Have we seen this token already? Prefix the comparison 19447 # with "x" so that "-Lfoo" values won't be cause an error. 19448 19449 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 19450 pmix_found=`eval $pmix_eval` 19451 19452 # Check the ending condition 19453 19454 pmix_done="`expr $pmix_i \>= $pmix_count`" 19455 19456 # Increment the counter 19457 19458 pmix_i="`expr $pmix_i + 1`" 19459 done 19460 19461 # Check for special cases where we do want to allow repeated 19462 # arguments (per 19463 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 19464 # and 19465 # https://github.com/open-mpi/ompi/issues/324). 19466 19467 case $val in 19468 -Xclang|-Xg) 19469 pmix_found=0 19470 pmix_i=`expr $pmix_count + 1` 19471 ;; 19472 -framework) 19473 pmix_found=0 19474 pmix_i=`expr $pmix_count + 1` 19475 ;; 19476 --param) 19477 pmix_found=0 19478 pmix_i=`expr $pmix_count + 1` 19479 ;; 19480 esac 19481 19482 # If we didn't find the token, add it to the "array" 19483 19484 if test "$pmix_found" = "0"; then 19485 pmix_eval="pmix_array_$pmix_i=$val" 19486 eval $pmix_eval 19487 pmix_count="`expr $pmix_count + 1`" 19488 else 19489 pmix_i="`expr $pmix_i - 1`" 19490 fi 19491 done 19492 19493 # Take all the items in the "array" and assemble them back into a 19494 # single variable 19495 19496 pmix_i=1 19497 pmix_done="`expr $pmix_i \> $pmix_count`" 19498 pmix_newval= 19499 while test "$pmix_done" = "0"; do 19500 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 19501 eval $pmix_eval 19502 19503 pmix_eval="unset pmix_array_$pmix_i" 19504 eval $pmix_eval 19505 19506 pmix_done="`expr $pmix_i \>= $pmix_count`" 19507 pmix_i="`expr $pmix_i + 1`" 19508 done 19509 19510 # Done; do the assignment 19511 19512 pmix_newval="`echo $pmix_newval`" 19513 pmix_eval="$pmix_name=\"$pmix_newval\"" 19514 eval $pmix_eval 19515 19516 # Clean up 19517 19518 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 19519 19520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PMIX_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5 19521$as_echo "$as_me: WARNING: $PMIX_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;} 19522 19523 WANT_DEBUG=1 19524 else 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Code coverage functionality is currently available only with GCC" >&5 19526$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;} 19527 as_fn_error $? "Configure: Cannot continue" "$LINENO" 5 19528 fi 19529 fi 19530 19531 # Do we want debugging? 19532 if test "$WANT_DEBUG" = "1" && test "$enable_debug_symbols" != "no" ; then 19533 CFLAGS="$CFLAGS -g" 19534 19535 19536 # 1 is the variable name to be uniq-ized 19537 pmix_name=CFLAGS 19538 19539 # Go through each item in the variable and only keep the unique ones 19540 19541 pmix_count=0 19542 for val in ${CFLAGS}; do 19543 pmix_done=0 19544 pmix_i=1 19545 pmix_found=0 19546 19547 # Loop over every token we've seen so far 19548 19549 pmix_done="`expr $pmix_i \> $pmix_count`" 19550 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 19551 19552 # Have we seen this token already? Prefix the comparison 19553 # with "x" so that "-Lfoo" values won't be cause an error. 19554 19555 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 19556 pmix_found=`eval $pmix_eval` 19557 19558 # Check the ending condition 19559 19560 pmix_done="`expr $pmix_i \>= $pmix_count`" 19561 19562 # Increment the counter 19563 19564 pmix_i="`expr $pmix_i + 1`" 19565 done 19566 19567 # Check for special cases where we do want to allow repeated 19568 # arguments (per 19569 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 19570 # and 19571 # https://github.com/open-mpi/ompi/issues/324). 19572 19573 case $val in 19574 -Xclang|-Xg) 19575 pmix_found=0 19576 pmix_i=`expr $pmix_count + 1` 19577 ;; 19578 -framework) 19579 pmix_found=0 19580 pmix_i=`expr $pmix_count + 1` 19581 ;; 19582 --param) 19583 pmix_found=0 19584 pmix_i=`expr $pmix_count + 1` 19585 ;; 19586 esac 19587 19588 # If we didn't find the token, add it to the "array" 19589 19590 if test "$pmix_found" = "0"; then 19591 pmix_eval="pmix_array_$pmix_i=$val" 19592 eval $pmix_eval 19593 pmix_count="`expr $pmix_count + 1`" 19594 else 19595 pmix_i="`expr $pmix_i - 1`" 19596 fi 19597 done 19598 19599 # Take all the items in the "array" and assemble them back into a 19600 # single variable 19601 19602 pmix_i=1 19603 pmix_done="`expr $pmix_i \> $pmix_count`" 19604 pmix_newval= 19605 while test "$pmix_done" = "0"; do 19606 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 19607 eval $pmix_eval 19608 19609 pmix_eval="unset pmix_array_$pmix_i" 19610 eval $pmix_eval 19611 19612 pmix_done="`expr $pmix_i \>= $pmix_count`" 19613 pmix_i="`expr $pmix_i + 1`" 19614 done 19615 19616 # Done; do the assignment 19617 19618 pmix_newval="`echo $pmix_newval`" 19619 pmix_eval="$pmix_name=\"$pmix_newval\"" 19620 eval $pmix_eval 19621 19622 # Clean up 19623 19624 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 19625 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5 19627$as_echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;} 19628 fi 19629 19630 # These flags are generally gcc-specific; even the 19631 # gcc-impersonating compilers won't accept them. 19632 PMIX_CFLAGS_BEFORE_PICKY="$CFLAGS" 19633 19634 if test $WANT_PICKY_COMPILER -eq 1; then 19635 CFLAGS_orig=$CFLAGS 19636 add= 19637 19638 # These flags are likely GCC-specific (or, more specifically, 19639 # we don't have general tests for each one, and we know they 19640 # work with all versions of GCC that we have used throughout 19641 # the years, so we'll keep them limited just to GCC). 19642 if test "$pmix_c_vendor" = "gnu" ; then 19643 add="$add -Wall -Wundef -Wno-long-long -Wsign-compare" 19644 add="$add -Wmissing-prototypes -Wstrict-prototypes" 19645 add="$add -Wcomment -pedantic" 19646 fi 19647 19648 # see if -Wno-long-double works... 19649 # Starting with GCC-4.4, the compiler complains about not 19650 # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too. 19651 # 19652 # Actually, this is not real fix, as GCC will pass on any -Wno- flag, 19653 # have fun with the warning: -Wno-britney 19654 CFLAGS="$CFLAGS_orig $add -Wno-long-double -Wstrict-prototypes" 19655 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-long-double" >&5 19657$as_echo_n "checking if $CC supports -Wno-long-double... " >&6; } 19658if ${pmix_cv_cc_wno_long_double+:} false; then : 19659 $as_echo_n "(cached) " >&6 19660else 19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19662/* end confdefs.h. */ 19663 19664int 19665main () 19666{ 19667 19668 ; 19669 return 0; 19670} 19671_ACEOF 19672if ac_fn_c_try_compile "$LINENO"; then : 19673 19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19675/* end confdefs.h. */ 19676 19677int 19678main () 19679{ 19680long double test; 19681 ; 19682 return 0; 19683} 19684_ACEOF 19685if ac_fn_c_try_compile "$LINENO"; then : 19686 19687 pmix_cv_cc_wno_long_double="yes" 19688 if test -s conftest.err ; then 19689 for i in unknown invalid ignor unrecognized ; do 19690 $GREP -iq $i conftest.err 19691 if test "$?" = "0" ; then 19692 pmix_cv_cc_wno_long_double="no" 19693 break; 19694 fi 19695 done 19696 fi 19697 19698else 19699 pmix_cv_cc_wno_long_double="no" 19700fi 19701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19702else 19703 pmix_cv_cc_wno_long_double="no" 19704fi 19705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19706 19707fi 19708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_wno_long_double" >&5 19709$as_echo "$pmix_cv_cc_wno_long_double" >&6; } 19710 19711 if test "$pmix_cv_cc_wno_long_double" = "yes" ; then 19712 add="$add -Wno-long-double" 19713 fi 19714 19715 # Per above, we know that this flag works with GCC / haven't 19716 # really tested it elsewhere. 19717 if test "$pmix_c_vendor" = "gnu" ; then 19718 add="$add -Werror-implicit-function-declaration " 19719 fi 19720 19721 CFLAGS="$CFLAGS_orig $add" 19722 19723 # 1 is the variable name to be uniq-ized 19724 pmix_name=CFLAGS 19725 19726 # Go through each item in the variable and only keep the unique ones 19727 19728 pmix_count=0 19729 for val in ${CFLAGS}; do 19730 pmix_done=0 19731 pmix_i=1 19732 pmix_found=0 19733 19734 # Loop over every token we've seen so far 19735 19736 pmix_done="`expr $pmix_i \> $pmix_count`" 19737 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 19738 19739 # Have we seen this token already? Prefix the comparison 19740 # with "x" so that "-Lfoo" values won't be cause an error. 19741 19742 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 19743 pmix_found=`eval $pmix_eval` 19744 19745 # Check the ending condition 19746 19747 pmix_done="`expr $pmix_i \>= $pmix_count`" 19748 19749 # Increment the counter 19750 19751 pmix_i="`expr $pmix_i + 1`" 19752 done 19753 19754 # Check for special cases where we do want to allow repeated 19755 # arguments (per 19756 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 19757 # and 19758 # https://github.com/open-mpi/ompi/issues/324). 19759 19760 case $val in 19761 -Xclang|-Xg) 19762 pmix_found=0 19763 pmix_i=`expr $pmix_count + 1` 19764 ;; 19765 -framework) 19766 pmix_found=0 19767 pmix_i=`expr $pmix_count + 1` 19768 ;; 19769 --param) 19770 pmix_found=0 19771 pmix_i=`expr $pmix_count + 1` 19772 ;; 19773 esac 19774 19775 # If we didn't find the token, add it to the "array" 19776 19777 if test "$pmix_found" = "0"; then 19778 pmix_eval="pmix_array_$pmix_i=$val" 19779 eval $pmix_eval 19780 pmix_count="`expr $pmix_count + 1`" 19781 else 19782 pmix_i="`expr $pmix_i - 1`" 19783 fi 19784 done 19785 19786 # Take all the items in the "array" and assemble them back into a 19787 # single variable 19788 19789 pmix_i=1 19790 pmix_done="`expr $pmix_i \> $pmix_count`" 19791 pmix_newval= 19792 while test "$pmix_done" = "0"; do 19793 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 19794 eval $pmix_eval 19795 19796 pmix_eval="unset pmix_array_$pmix_i" 19797 eval $pmix_eval 19798 19799 pmix_done="`expr $pmix_i \>= $pmix_count`" 19800 pmix_i="`expr $pmix_i + 1`" 19801 done 19802 19803 # Done; do the assignment 19804 19805 pmix_newval="`echo $pmix_newval`" 19806 pmix_eval="$pmix_name=\"$pmix_newval\"" 19807 eval $pmix_eval 19808 19809 # Clean up 19810 19811 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 19812 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5 19814$as_echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;} 19815 unset add 19816 fi 19817 19818 # See if this version of gcc allows -finline-functions and/or 19819 # -fno-strict-aliasing. Even check the gcc-impersonating compilers. 19820 if test "$GCC" = "yes"; then 19821 CFLAGS_orig="$CFLAGS" 19822 19823 # Note: Some versions of clang (at least >= 3.5 -- perhaps 19824 # older versions, too?) will *warn* about -finline-functions, 19825 # but still allow it. This is very annoying, so check for 19826 # that warning, too. The clang warning looks like this: 19827 # clang: warning: optimization flag '-finline-functions' is not supported 19828 # clang: warning: argument unused during compilation: '-finline-functions' 19829 CFLAGS="$CFLAGS_orig -finline-functions" 19830 add= 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5 19832$as_echo_n "checking if $CC supports -finline-functions... " >&6; } 19833if ${pmix_cv_cc_finline_functions+:} false; then : 19834 $as_echo_n "(cached) " >&6 19835else 19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19837/* end confdefs.h. */ 19838 19839int 19840main () 19841{ 19842 19843 ; 19844 return 0; 19845} 19846_ACEOF 19847if ac_fn_c_try_compile "$LINENO"; then : 19848 pmix_cv_cc_finline_functions="yes" 19849 if test -s conftest.err ; then 19850 for i in unused 'not supported' ; do 19851 if $GREP -iq "$i" conftest.err; then 19852 pmix_cv_cc_finline_functions="no" 19853 break; 19854 fi 19855 done 19856 fi 19857 19858else 19859 pmix_cv_cc_finline_functions="no" 19860fi 19861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19862fi 19863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_finline_functions" >&5 19864$as_echo "$pmix_cv_cc_finline_functions" >&6; } 19865 if test "$pmix_cv_cc_finline_functions" = "yes" ; then 19866 add=" -finline-functions" 19867 fi 19868 CFLAGS="$CFLAGS_orig$add" 19869 19870 CFLAGS_orig="$CFLAGS" 19871 CFLAGS="$CFLAGS_orig -fno-strict-aliasing" 19872 add= 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 19874$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 19875if ${pmix_cv_cc_fno_strict_aliasing+:} false; then : 19876 $as_echo_n "(cached) " >&6 19877else 19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19879/* end confdefs.h. */ 19880 19881int 19882main () 19883{ 19884 19885 ; 19886 return 0; 19887} 19888_ACEOF 19889if ac_fn_c_try_compile "$LINENO"; then : 19890 pmix_cv_cc_fno_strict_aliasing="yes" 19891else 19892 pmix_cv_cc_fno_strict_aliasing="no" 19893fi 19894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19895fi 19896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_fno_strict_aliasing" >&5 19897$as_echo "$pmix_cv_cc_fno_strict_aliasing" >&6; } 19898 if test "$pmix_cv_cc_fno_strict_aliasing" = "yes" ; then 19899 add=" -fno-strict-aliasing" 19900 fi 19901 CFLAGS="$CFLAGS_orig$add" 19902 19903 19904 # 1 is the variable name to be uniq-ized 19905 pmix_name=CFLAGS 19906 19907 # Go through each item in the variable and only keep the unique ones 19908 19909 pmix_count=0 19910 for val in ${CFLAGS}; do 19911 pmix_done=0 19912 pmix_i=1 19913 pmix_found=0 19914 19915 # Loop over every token we've seen so far 19916 19917 pmix_done="`expr $pmix_i \> $pmix_count`" 19918 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 19919 19920 # Have we seen this token already? Prefix the comparison 19921 # with "x" so that "-Lfoo" values won't be cause an error. 19922 19923 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 19924 pmix_found=`eval $pmix_eval` 19925 19926 # Check the ending condition 19927 19928 pmix_done="`expr $pmix_i \>= $pmix_count`" 19929 19930 # Increment the counter 19931 19932 pmix_i="`expr $pmix_i + 1`" 19933 done 19934 19935 # Check for special cases where we do want to allow repeated 19936 # arguments (per 19937 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 19938 # and 19939 # https://github.com/open-mpi/ompi/issues/324). 19940 19941 case $val in 19942 -Xclang|-Xg) 19943 pmix_found=0 19944 pmix_i=`expr $pmix_count + 1` 19945 ;; 19946 -framework) 19947 pmix_found=0 19948 pmix_i=`expr $pmix_count + 1` 19949 ;; 19950 --param) 19951 pmix_found=0 19952 pmix_i=`expr $pmix_count + 1` 19953 ;; 19954 esac 19955 19956 # If we didn't find the token, add it to the "array" 19957 19958 if test "$pmix_found" = "0"; then 19959 pmix_eval="pmix_array_$pmix_i=$val" 19960 eval $pmix_eval 19961 pmix_count="`expr $pmix_count + 1`" 19962 else 19963 pmix_i="`expr $pmix_i - 1`" 19964 fi 19965 done 19966 19967 # Take all the items in the "array" and assemble them back into a 19968 # single variable 19969 19970 pmix_i=1 19971 pmix_done="`expr $pmix_i \> $pmix_count`" 19972 pmix_newval= 19973 while test "$pmix_done" = "0"; do 19974 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 19975 eval $pmix_eval 19976 19977 pmix_eval="unset pmix_array_$pmix_i" 19978 eval $pmix_eval 19979 19980 pmix_done="`expr $pmix_i \>= $pmix_count`" 19981 pmix_i="`expr $pmix_i + 1`" 19982 done 19983 19984 # Done; do the assignment 19985 19986 pmix_newval="`echo $pmix_newval`" 19987 pmix_eval="$pmix_name=\"$pmix_newval\"" 19988 eval $pmix_eval 19989 19990 # Clean up 19991 19992 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 19993 19994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5 19995$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} 19996 unset add 19997 fi 19998 19999 # Try to enable restrict keyword 20000 RESTRICT_CFLAGS= 20001 case "$pmix_c_vendor" in 20002 intel) 20003 RESTRICT_CFLAGS="-restrict" 20004 ;; 20005 sgi) 20006 RESTRICT_CFLAGS="-LANG:restrict=ON" 20007 ;; 20008 esac 20009 if test ! -z "$RESTRICT_CFLAGS" ; then 20010 CFLAGS_orig="$CFLAGS" 20011 CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS" 20012 add= 20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $RESTRICT_CFLAGS" >&5 20014$as_echo_n "checking if $CC supports $RESTRICT_CFLAGS... " >&6; } 20015if ${pmix_cv_cc_restrict_cflags+:} false; then : 20016 $as_echo_n "(cached) " >&6 20017else 20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20019/* end confdefs.h. */ 20020 20021int 20022main () 20023{ 20024 20025 ; 20026 return 0; 20027} 20028_ACEOF 20029if ac_fn_c_try_compile "$LINENO"; then : 20030 pmix_cv_cc_restrict_cflags="yes" 20031else 20032 pmix_cv_cc_restrict_cflags="no" 20033fi 20034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20035fi 20036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_restrict_cflags" >&5 20037$as_echo "$pmix_cv_cc_restrict_cflags" >&6; } 20038 if test "$pmix_cv_cc_restrict_cflags" = "yes" ; then 20039 add=" $RESTRICT_CFLAGS" 20040 fi 20041 20042 CFLAGS="${CFLAGS_orig}${add}" 20043 20044 # 1 is the variable name to be uniq-ized 20045 pmix_name=CFLAGS 20046 20047 # Go through each item in the variable and only keep the unique ones 20048 20049 pmix_count=0 20050 for val in ${CFLAGS}; do 20051 pmix_done=0 20052 pmix_i=1 20053 pmix_found=0 20054 20055 # Loop over every token we've seen so far 20056 20057 pmix_done="`expr $pmix_i \> $pmix_count`" 20058 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 20059 20060 # Have we seen this token already? Prefix the comparison 20061 # with "x" so that "-Lfoo" values won't be cause an error. 20062 20063 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 20064 pmix_found=`eval $pmix_eval` 20065 20066 # Check the ending condition 20067 20068 pmix_done="`expr $pmix_i \>= $pmix_count`" 20069 20070 # Increment the counter 20071 20072 pmix_i="`expr $pmix_i + 1`" 20073 done 20074 20075 # Check for special cases where we do want to allow repeated 20076 # arguments (per 20077 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 20078 # and 20079 # https://github.com/open-mpi/ompi/issues/324). 20080 20081 case $val in 20082 -Xclang|-Xg) 20083 pmix_found=0 20084 pmix_i=`expr $pmix_count + 1` 20085 ;; 20086 -framework) 20087 pmix_found=0 20088 pmix_i=`expr $pmix_count + 1` 20089 ;; 20090 --param) 20091 pmix_found=0 20092 pmix_i=`expr $pmix_count + 1` 20093 ;; 20094 esac 20095 20096 # If we didn't find the token, add it to the "array" 20097 20098 if test "$pmix_found" = "0"; then 20099 pmix_eval="pmix_array_$pmix_i=$val" 20100 eval $pmix_eval 20101 pmix_count="`expr $pmix_count + 1`" 20102 else 20103 pmix_i="`expr $pmix_i - 1`" 20104 fi 20105 done 20106 20107 # Take all the items in the "array" and assemble them back into a 20108 # single variable 20109 20110 pmix_i=1 20111 pmix_done="`expr $pmix_i \> $pmix_count`" 20112 pmix_newval= 20113 while test "$pmix_done" = "0"; do 20114 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 20115 eval $pmix_eval 20116 20117 pmix_eval="unset pmix_array_$pmix_i" 20118 eval $pmix_eval 20119 20120 pmix_done="`expr $pmix_i \>= $pmix_count`" 20121 pmix_i="`expr $pmix_i + 1`" 20122 done 20123 20124 # Done; do the assignment 20125 20126 pmix_newval="`echo $pmix_newval`" 20127 pmix_eval="$pmix_name=\"$pmix_newval\"" 20128 eval $pmix_eval 20129 20130 # Clean up 20131 20132 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 20133 20134 if test "$add" != "" ; then 20135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5 20136$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} 20137 fi 20138 unset add 20139 fi 20140 20141 # see if the C compiler supports __builtin_expect 20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_expect" >&5 20143$as_echo_n "checking if $CC supports __builtin_expect... " >&6; } 20144if ${pmix_cv_cc_supports___builtin_expect+:} false; then : 20145 $as_echo_n "(cached) " >&6 20146else 20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20148/* end confdefs.h. */ 20149 20150int 20151main () 20152{ 20153void *ptr = (void*) 0; 20154 if (__builtin_expect (ptr != (void*) 0, 1)) return 0; 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159if ac_fn_c_try_link "$LINENO"; then : 20160 pmix_cv_cc_supports___builtin_expect="yes" 20161else 20162 pmix_cv_cc_supports___builtin_expect="no" 20163fi 20164rm -f core conftest.err conftest.$ac_objext \ 20165 conftest$ac_exeext conftest.$ac_ext 20166fi 20167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_supports___builtin_expect" >&5 20168$as_echo "$pmix_cv_cc_supports___builtin_expect" >&6; } 20169 if test "$pmix_cv_cc_supports___builtin_expect" = "yes" ; then 20170 have_cc_builtin_expect=1 20171 else 20172 have_cc_builtin_expect=0 20173 fi 20174 20175cat >>confdefs.h <<_ACEOF 20176#define PMIX_C_HAVE_BUILTIN_EXPECT $have_cc_builtin_expect 20177_ACEOF 20178 20179 20180 # see if the C compiler supports __builtin_prefetch 20181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_prefetch" >&5 20182$as_echo_n "checking if $CC supports __builtin_prefetch... " >&6; } 20183if ${pmix_cv_cc_supports___builtin_prefetch+:} false; then : 20184 $as_echo_n "(cached) " >&6 20185else 20186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20187/* end confdefs.h. */ 20188 20189int 20190main () 20191{ 20192int ptr; 20193 __builtin_prefetch(&ptr,0,0); 20194 ; 20195 return 0; 20196} 20197_ACEOF 20198if ac_fn_c_try_link "$LINENO"; then : 20199 pmix_cv_cc_supports___builtin_prefetch="yes" 20200else 20201 pmix_cv_cc_supports___builtin_prefetch="no" 20202fi 20203rm -f core conftest.err conftest.$ac_objext \ 20204 conftest$ac_exeext conftest.$ac_ext 20205fi 20206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_supports___builtin_prefetch" >&5 20207$as_echo "$pmix_cv_cc_supports___builtin_prefetch" >&6; } 20208 if test "$pmix_cv_cc_supports___builtin_prefetch" = "yes" ; then 20209 have_cc_builtin_prefetch=1 20210 else 20211 have_cc_builtin_prefetch=0 20212 fi 20213 20214cat >>confdefs.h <<_ACEOF 20215#define PMIX_C_HAVE_BUILTIN_PREFETCH $have_cc_builtin_prefetch 20216_ACEOF 20217 20218 20219 # see if the C compiler supports __builtin_clz 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_clz" >&5 20221$as_echo_n "checking if $CC supports __builtin_clz... " >&6; } 20222if ${pmix_cv_cc_supports___builtin_clz+:} false; then : 20223 $as_echo_n "(cached) " >&6 20224else 20225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20226/* end confdefs.h. */ 20227 20228int 20229main () 20230{ 20231int value = 0xffff; /* we know we have 16 bits set */ 20232 if ((8*sizeof(int)-16) != __builtin_clz(value)) return 0; 20233 ; 20234 return 0; 20235} 20236_ACEOF 20237if ac_fn_c_try_link "$LINENO"; then : 20238 pmix_cv_cc_supports___builtin_clz="yes" 20239else 20240 pmix_cv_cc_supports___builtin_clz="no" 20241fi 20242rm -f core conftest.err conftest.$ac_objext \ 20243 conftest$ac_exeext conftest.$ac_ext 20244fi 20245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_supports___builtin_clz" >&5 20246$as_echo "$pmix_cv_cc_supports___builtin_clz" >&6; } 20247 if test "$pmix_cv_cc_supports___builtin_clz" = "yes" ; then 20248 have_cc_builtin_clz=1 20249 else 20250 have_cc_builtin_clz=0 20251 fi 20252 20253cat >>confdefs.h <<_ACEOF 20254#define PMIX_C_HAVE_BUILTIN_CLZ $have_cc_builtin_clz 20255_ACEOF 20256 20257 20258 # Preload the optflags for the case where the user didn't specify 20259 # any. If we're using GNU compilers, use -O3 (since it GNU 20260 # doesn't require all compilation units to be compiled with the 20261 # same level of optimization -- selecting a high level of 20262 # optimization is not prohibitive). If we're using anything else, 20263 # be conservative and just use -O. 20264 # 20265 # Note: gcc-impersonating compilers accept -O3 20266 if test "$WANT_DEBUG" = "1"; then 20267 OPTFLAGS= 20268 else 20269 if test "$GCC" = yes; then 20270 OPTFLAGS="-O3" 20271 else 20272 OPTFLAGS="-O" 20273 fi 20274 fi 20275 20276 20277 20278# Modularize this setup so that sub-configure.in scripts can use this 20279# same setup code. 20280 20281################################## 20282# Optimization flags 20283################################## 20284 20285# If the user did not specify optimization flags, add some (the value 20286# from $OPTFLAGS) 20287 20288co_arg=""$PMIX_CFLAGS_BEFORE_PICKY"" 20289co_found=0 20290for co_word in $co_arg; do 20291 # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs 20292 # for an explanation of [ and ] -- they m4 expand to [ and ] 20293 case $co_word in 20294 -g) co_found=1 ;; 20295 -g[1-3]) co_found=1 ;; 20296 +K[0-5]) co_found=1 ;; 20297 -O) co_found=1 ;; 20298 -O[0-9]) co_found=1 ;; 20299 -xO) co_found=1 ;; 20300 -xO[0-9]) co_found=1 ;; 20301 -fast) co_found=1 ;; 20302 20303 # The below Sun Studio flags require or 20304 # trigger -xO optimization 20305 -xvector*) co_found=1 ;; 20306 -xdepend=yes) co_found=1 ;; 20307 20308 esac 20309done 20310 20311if test "$co_found" = "0"; then 20312 co_result="$OPTFLAGS $co_arg" 20313else 20314 co_result="$co_arg" 20315fi 20316 20317# Clean up 20318 20319unset co_found co_word co_arg 20320 20321 PMIX_CFLAGS_BEFORE_PICKY="$co_result" 20322 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimization flags" >&5 20324$as_echo_n "checking for C optimization flags... " >&6; } 20325 20326 20327# Modularize this setup so that sub-configure.in scripts can use this 20328# same setup code. 20329 20330################################## 20331# Optimization flags 20332################################## 20333 20334# If the user did not specify optimization flags, add some (the value 20335# from $OPTFLAGS) 20336 20337co_arg=""$CFLAGS"" 20338co_found=0 20339for co_word in $co_arg; do 20340 # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs 20341 # for an explanation of [ and ] -- they m4 expand to [ and ] 20342 case $co_word in 20343 -g) co_found=1 ;; 20344 -g[1-3]) co_found=1 ;; 20345 +K[0-5]) co_found=1 ;; 20346 -O) co_found=1 ;; 20347 -O[0-9]) co_found=1 ;; 20348 -xO) co_found=1 ;; 20349 -xO[0-9]) co_found=1 ;; 20350 -fast) co_found=1 ;; 20351 20352 # The below Sun Studio flags require or 20353 # trigger -xO optimization 20354 -xvector*) co_found=1 ;; 20355 -xdepend=yes) co_found=1 ;; 20356 20357 esac 20358done 20359 20360if test "$co_found" = "0"; then 20361 co_result="$OPTFLAGS $co_arg" 20362else 20363 co_result="$co_arg" 20364fi 20365 20366# Clean up 20367 20368unset co_found co_word co_arg 20369 20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $co_result" >&5 20371$as_echo "$co_result" >&6; } 20372 CFLAGS="$co_result" 20373 20374 # Unwind the index 20375 pmix_scope_index=`expr $pmix_scope_index - 1` 20376 pmix_scope_test=`expr $pmix_scope_index \> 0` 20377 if test "$pmix_scope_test" = "0"; then 20378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 20379$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 20381$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 20382 as_fn_error $? "Cannot continue" "$LINENO" 5 20383 fi 20384 20385 # Get the variable names from that index 20386 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 20387 eval $pmix_str 20388 20389 # Iterate over all the variables and unset them all 20390 for pmix_var in $pmix_str; do 20391 unset $pmix_var 20392 done 20393 20394 20395 20396 # 20397 # Check for some types 20398 # 20399 20400 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 20401if test "x$ac_cv_type_int8_t" = xyes; then : 20402 20403cat >>confdefs.h <<_ACEOF 20404#define HAVE_INT8_T 1 20405_ACEOF 20406 20407 20408fi 20409 20410 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 20411if test "x$ac_cv_type_uint8_t" = xyes; then : 20412 20413cat >>confdefs.h <<_ACEOF 20414#define HAVE_UINT8_T 1 20415_ACEOF 20416 20417 20418fi 20419 20420 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 20421if test "x$ac_cv_type_int16_t" = xyes; then : 20422 20423cat >>confdefs.h <<_ACEOF 20424#define HAVE_INT16_T 1 20425_ACEOF 20426 20427 20428fi 20429 20430 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 20431if test "x$ac_cv_type_uint16_t" = xyes; then : 20432 20433cat >>confdefs.h <<_ACEOF 20434#define HAVE_UINT16_T 1 20435_ACEOF 20436 20437 20438fi 20439 20440 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 20441if test "x$ac_cv_type_int32_t" = xyes; then : 20442 20443cat >>confdefs.h <<_ACEOF 20444#define HAVE_INT32_T 1 20445_ACEOF 20446 20447 20448fi 20449 20450 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 20451if test "x$ac_cv_type_uint32_t" = xyes; then : 20452 20453cat >>confdefs.h <<_ACEOF 20454#define HAVE_UINT32_T 1 20455_ACEOF 20456 20457 20458fi 20459 20460 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 20461if test "x$ac_cv_type_int64_t" = xyes; then : 20462 20463cat >>confdefs.h <<_ACEOF 20464#define HAVE_INT64_T 1 20465_ACEOF 20466 20467 20468fi 20469 20470 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 20471if test "x$ac_cv_type_uint64_t" = xyes; then : 20472 20473cat >>confdefs.h <<_ACEOF 20474#define HAVE_UINT64_T 1 20475_ACEOF 20476 20477 20478fi 20479 20480 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" 20481if test "x$ac_cv_type___int128" = xyes; then : 20482 20483cat >>confdefs.h <<_ACEOF 20484#define HAVE___INT128 1 20485_ACEOF 20486 20487 20488fi 20489 20490 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "$ac_includes_default" 20491if test "x$ac_cv_type_uint128_t" = xyes; then : 20492 20493cat >>confdefs.h <<_ACEOF 20494#define HAVE_UINT128_T 1 20495_ACEOF 20496 20497 20498fi 20499 20500 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 20501if test "x$ac_cv_type_long_long" = xyes; then : 20502 20503cat >>confdefs.h <<_ACEOF 20504#define HAVE_LONG_LONG 1 20505_ACEOF 20506 20507 20508fi 20509 20510 20511 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 20512if test "x$ac_cv_type_intptr_t" = xyes; then : 20513 20514cat >>confdefs.h <<_ACEOF 20515#define HAVE_INTPTR_T 1 20516_ACEOF 20517 20518 20519fi 20520 20521 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20522if test "x$ac_cv_type_uintptr_t" = xyes; then : 20523 20524cat >>confdefs.h <<_ACEOF 20525#define HAVE_UINTPTR_T 1 20526_ACEOF 20527 20528 20529fi 20530 20531 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 20532if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 20533 20534cat >>confdefs.h <<_ACEOF 20535#define HAVE_PTRDIFF_T 1 20536_ACEOF 20537 20538 20539fi 20540 20541 20542 # 20543 # Check for type sizes 20544 # 20545 20546 # The cast to long int works around a bug in the HP C Compiler 20547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20549# This bug is HP SR number 8606223364. 20550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 20551$as_echo_n "checking size of _Bool... " >&6; } 20552if ${ac_cv_sizeof__Bool+:} false; then : 20553 $as_echo_n "(cached) " >&6 20554else 20555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 20556 20557else 20558 if test "$ac_cv_type__Bool" = yes; then 20559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20561as_fn_error 77 "cannot compute sizeof (_Bool) 20562See \`config.log' for more details" "$LINENO" 5; } 20563 else 20564 ac_cv_sizeof__Bool=0 20565 fi 20566fi 20567 20568fi 20569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 20570$as_echo "$ac_cv_sizeof__Bool" >&6; } 20571 20572 20573 20574cat >>confdefs.h <<_ACEOF 20575#define SIZEOF__BOOL $ac_cv_sizeof__Bool 20576_ACEOF 20577 20578 20579 # The cast to long int works around a bug in the HP C Compiler 20580# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20581# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20582# This bug is HP SR number 8606223364. 20583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 20584$as_echo_n "checking size of char... " >&6; } 20585if ${ac_cv_sizeof_char+:} false; then : 20586 $as_echo_n "(cached) " >&6 20587else 20588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 20589 20590else 20591 if test "$ac_cv_type_char" = yes; then 20592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20594as_fn_error 77 "cannot compute sizeof (char) 20595See \`config.log' for more details" "$LINENO" 5; } 20596 else 20597 ac_cv_sizeof_char=0 20598 fi 20599fi 20600 20601fi 20602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 20603$as_echo "$ac_cv_sizeof_char" >&6; } 20604 20605 20606 20607cat >>confdefs.h <<_ACEOF 20608#define SIZEOF_CHAR $ac_cv_sizeof_char 20609_ACEOF 20610 20611 20612 # The cast to long int works around a bug in the HP C Compiler 20613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20615# This bug is HP SR number 8606223364. 20616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 20617$as_echo_n "checking size of short... " >&6; } 20618if ${ac_cv_sizeof_short+:} false; then : 20619 $as_echo_n "(cached) " >&6 20620else 20621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 20622 20623else 20624 if test "$ac_cv_type_short" = yes; then 20625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20627as_fn_error 77 "cannot compute sizeof (short) 20628See \`config.log' for more details" "$LINENO" 5; } 20629 else 20630 ac_cv_sizeof_short=0 20631 fi 20632fi 20633 20634fi 20635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 20636$as_echo "$ac_cv_sizeof_short" >&6; } 20637 20638 20639 20640cat >>confdefs.h <<_ACEOF 20641#define SIZEOF_SHORT $ac_cv_sizeof_short 20642_ACEOF 20643 20644 20645 # The cast to long int works around a bug in the HP C Compiler 20646# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20647# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20648# This bug is HP SR number 8606223364. 20649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 20650$as_echo_n "checking size of int... " >&6; } 20651if ${ac_cv_sizeof_int+:} false; then : 20652 $as_echo_n "(cached) " >&6 20653else 20654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 20655 20656else 20657 if test "$ac_cv_type_int" = yes; then 20658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20660as_fn_error 77 "cannot compute sizeof (int) 20661See \`config.log' for more details" "$LINENO" 5; } 20662 else 20663 ac_cv_sizeof_int=0 20664 fi 20665fi 20666 20667fi 20668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 20669$as_echo "$ac_cv_sizeof_int" >&6; } 20670 20671 20672 20673cat >>confdefs.h <<_ACEOF 20674#define SIZEOF_INT $ac_cv_sizeof_int 20675_ACEOF 20676 20677 20678 # The cast to long int works around a bug in the HP C Compiler 20679# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20680# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20681# This bug is HP SR number 8606223364. 20682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 20683$as_echo_n "checking size of long... " >&6; } 20684if ${ac_cv_sizeof_long+:} false; then : 20685 $as_echo_n "(cached) " >&6 20686else 20687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 20688 20689else 20690 if test "$ac_cv_type_long" = yes; then 20691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20693as_fn_error 77 "cannot compute sizeof (long) 20694See \`config.log' for more details" "$LINENO" 5; } 20695 else 20696 ac_cv_sizeof_long=0 20697 fi 20698fi 20699 20700fi 20701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 20702$as_echo "$ac_cv_sizeof_long" >&6; } 20703 20704 20705 20706cat >>confdefs.h <<_ACEOF 20707#define SIZEOF_LONG $ac_cv_sizeof_long 20708_ACEOF 20709 20710 20711 if test "$ac_cv_type_long_long" = yes; then 20712 # The cast to long int works around a bug in the HP C Compiler 20713# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20714# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20715# This bug is HP SR number 8606223364. 20716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 20717$as_echo_n "checking size of long long... " >&6; } 20718if ${ac_cv_sizeof_long_long+:} false; then : 20719 $as_echo_n "(cached) " >&6 20720else 20721 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 20722 20723else 20724 if test "$ac_cv_type_long_long" = yes; then 20725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20727as_fn_error 77 "cannot compute sizeof (long long) 20728See \`config.log' for more details" "$LINENO" 5; } 20729 else 20730 ac_cv_sizeof_long_long=0 20731 fi 20732fi 20733 20734fi 20735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 20736$as_echo "$ac_cv_sizeof_long_long" >&6; } 20737 20738 20739 20740cat >>confdefs.h <<_ACEOF 20741#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 20742_ACEOF 20743 20744 20745 fi 20746 # The cast to long int works around a bug in the HP C Compiler 20747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20749# This bug is HP SR number 8606223364. 20750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 20751$as_echo_n "checking size of float... " >&6; } 20752if ${ac_cv_sizeof_float+:} false; then : 20753 $as_echo_n "(cached) " >&6 20754else 20755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 20756 20757else 20758 if test "$ac_cv_type_float" = yes; then 20759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20761as_fn_error 77 "cannot compute sizeof (float) 20762See \`config.log' for more details" "$LINENO" 5; } 20763 else 20764 ac_cv_sizeof_float=0 20765 fi 20766fi 20767 20768fi 20769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 20770$as_echo "$ac_cv_sizeof_float" >&6; } 20771 20772 20773 20774cat >>confdefs.h <<_ACEOF 20775#define SIZEOF_FLOAT $ac_cv_sizeof_float 20776_ACEOF 20777 20778 20779 # The cast to long int works around a bug in the HP C Compiler 20780# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20781# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20782# This bug is HP SR number 8606223364. 20783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 20784$as_echo_n "checking size of double... " >&6; } 20785if ${ac_cv_sizeof_double+:} false; then : 20786 $as_echo_n "(cached) " >&6 20787else 20788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 20789 20790else 20791 if test "$ac_cv_type_double" = yes; then 20792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20794as_fn_error 77 "cannot compute sizeof (double) 20795See \`config.log' for more details" "$LINENO" 5; } 20796 else 20797 ac_cv_sizeof_double=0 20798 fi 20799fi 20800 20801fi 20802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 20803$as_echo "$ac_cv_sizeof_double" >&6; } 20804 20805 20806 20807cat >>confdefs.h <<_ACEOF 20808#define SIZEOF_DOUBLE $ac_cv_sizeof_double 20809_ACEOF 20810 20811 20812 20813 # The cast to long int works around a bug in the HP C Compiler 20814# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20815# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20816# This bug is HP SR number 8606223364. 20817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 20818$as_echo_n "checking size of void *... " >&6; } 20819if ${ac_cv_sizeof_void_p+:} false; then : 20820 $as_echo_n "(cached) " >&6 20821else 20822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 20823 20824else 20825 if test "$ac_cv_type_void_p" = yes; then 20826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20828as_fn_error 77 "cannot compute sizeof (void *) 20829See \`config.log' for more details" "$LINENO" 5; } 20830 else 20831 ac_cv_sizeof_void_p=0 20832 fi 20833fi 20834 20835fi 20836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 20837$as_echo "$ac_cv_sizeof_void_p" >&6; } 20838 20839 20840 20841cat >>confdefs.h <<_ACEOF 20842#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 20843_ACEOF 20844 20845 20846 # The cast to long int works around a bug in the HP C Compiler 20847# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20848# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20849# This bug is HP SR number 8606223364. 20850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 20851$as_echo_n "checking size of size_t... " >&6; } 20852if ${ac_cv_sizeof_size_t+:} false; then : 20853 $as_echo_n "(cached) " >&6 20854else 20855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 20856 20857else 20858 if test "$ac_cv_type_size_t" = yes; then 20859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20861as_fn_error 77 "cannot compute sizeof (size_t) 20862See \`config.log' for more details" "$LINENO" 5; } 20863 else 20864 ac_cv_sizeof_size_t=0 20865 fi 20866fi 20867 20868fi 20869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 20870$as_echo "$ac_cv_sizeof_size_t" >&6; } 20871 20872 20873 20874cat >>confdefs.h <<_ACEOF 20875#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 20876_ACEOF 20877 20878 20879 if test "$ac_cv_type_ssize_t" = yes ; then 20880 # The cast to long int works around a bug in the HP C Compiler 20881# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20882# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20883# This bug is HP SR number 8606223364. 20884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 20885$as_echo_n "checking size of ssize_t... " >&6; } 20886if ${ac_cv_sizeof_ssize_t+:} false; then : 20887 $as_echo_n "(cached) " >&6 20888else 20889 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : 20890 20891else 20892 if test "$ac_cv_type_ssize_t" = yes; then 20893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20895as_fn_error 77 "cannot compute sizeof (ssize_t) 20896See \`config.log' for more details" "$LINENO" 5; } 20897 else 20898 ac_cv_sizeof_ssize_t=0 20899 fi 20900fi 20901 20902fi 20903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 20904$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 20905 20906 20907 20908cat >>confdefs.h <<_ACEOF 20909#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 20910_ACEOF 20911 20912 20913 fi 20914 if test "$ac_cv_type_ptrdiff_t" = yes; then 20915 # The cast to long int works around a bug in the HP C Compiler 20916# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20917# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20918# This bug is HP SR number 8606223364. 20919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 20920$as_echo_n "checking size of ptrdiff_t... " >&6; } 20921if ${ac_cv_sizeof_ptrdiff_t+:} false; then : 20922 $as_echo_n "(cached) " >&6 20923else 20924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : 20925 20926else 20927 if test "$ac_cv_type_ptrdiff_t" = yes; then 20928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20930as_fn_error 77 "cannot compute sizeof (ptrdiff_t) 20931See \`config.log' for more details" "$LINENO" 5; } 20932 else 20933 ac_cv_sizeof_ptrdiff_t=0 20934 fi 20935fi 20936 20937fi 20938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 20939$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } 20940 20941 20942 20943cat >>confdefs.h <<_ACEOF 20944#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t 20945_ACEOF 20946 20947 20948 fi 20949 # The cast to long int works around a bug in the HP C Compiler 20950# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20951# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20952# This bug is HP SR number 8606223364. 20953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 20954$as_echo_n "checking size of wchar_t... " >&6; } 20955if ${ac_cv_sizeof_wchar_t+:} false; then : 20956 $as_echo_n "(cached) " >&6 20957else 20958 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : 20959 20960else 20961 if test "$ac_cv_type_wchar_t" = yes; then 20962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20964as_fn_error 77 "cannot compute sizeof (wchar_t) 20965See \`config.log' for more details" "$LINENO" 5; } 20966 else 20967 ac_cv_sizeof_wchar_t=0 20968 fi 20969fi 20970 20971fi 20972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 20973$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 20974 20975 20976 20977cat >>confdefs.h <<_ACEOF 20978#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 20979_ACEOF 20980 20981 20982 20983 # The cast to long int works around a bug in the HP C Compiler 20984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20986# This bug is HP SR number 8606223364. 20987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 20988$as_echo_n "checking size of pid_t... " >&6; } 20989if ${ac_cv_sizeof_pid_t+:} false; then : 20990 $as_echo_n "(cached) " >&6 20991else 20992 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 20993 20994else 20995 if test "$ac_cv_type_pid_t" = yes; then 20996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20998as_fn_error 77 "cannot compute sizeof (pid_t) 20999See \`config.log' for more details" "$LINENO" 5; } 21000 else 21001 ac_cv_sizeof_pid_t=0 21002 fi 21003fi 21004 21005fi 21006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 21007$as_echo "$ac_cv_sizeof_pid_t" >&6; } 21008 21009 21010 21011cat >>confdefs.h <<_ACEOF 21012#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 21013_ACEOF 21014 21015 21016 21017 # 21018 # Check for type alignments 21019 # 21020 21021 21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of bool" >&5 21023$as_echo_n "checking alignment of bool... " >&6; } 21024if ${pmix_cv_c_align_bool+:} false; then : 21025 $as_echo_n "(cached) " >&6 21026else 21027 if test "$cross_compiling" = yes; then : 21028 # cross compile - do a non-executable test. Trick 21029 # taken from the Autoconf 2.59c. Switch to using 21030 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21031 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_bool" "$ac_includes_default 21032#include <stdbool.h> 21033 21034#ifndef offsetof 21035# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21036#endif 21037typedef struct { char x; bool y; } pmix__type_alignof_; 21038"; then : 21039 21040else 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21042$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21044$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21045 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21046fi 21047 21048 21049else 21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21051/* end confdefs.h. */ 21052$ac_includes_default 21053 #include <stdbool.h> 21054int 21055main () 21056{ 21057 21058 struct foo { char c; bool x; }; 21059 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21060 int diff; 21061 FILE *f=fopen("conftestval", "w"); 21062 if (!f) exit(1); 21063 diff = ((char *)&p->x) - ((char *)&p->c); 21064 free(p); 21065 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21066 fclose(f); 21067 21068 ; 21069 return 0; 21070} 21071_ACEOF 21072if ac_fn_c_try_run "$LINENO"; then : 21073 pmix_cv_c_align_bool=`cat conftestval` 21074else 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21076$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21078$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21079 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21080fi 21081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21082 conftest.$ac_objext conftest.beam conftest.$ac_ext 21083fi 21084 21085fi 21086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_bool" >&5 21087$as_echo "$pmix_cv_c_align_bool" >&6; } 21088 21089 21090cat >>confdefs.h <<_ACEOF 21091#define PMIX_ALIGNMENT_BOOL $pmix_cv_c_align_bool 21092_ACEOF 21093 21094eval "PMIX_ALIGNMENT_BOOL=$pmix_cv_c_align_bool" 21095 21096rm -rf conftest* 21097 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int8_t" >&5 21099$as_echo_n "checking alignment of int8_t... " >&6; } 21100if ${pmix_cv_c_align_int8_t+:} false; then : 21101 $as_echo_n "(cached) " >&6 21102else 21103 if test "$cross_compiling" = yes; then : 21104 # cross compile - do a non-executable test. Trick 21105 # taken from the Autoconf 2.59c. Switch to using 21106 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21107 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int8_t" "$ac_includes_default 21108#include <stdbool.h> 21109 21110#ifndef offsetof 21111# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21112#endif 21113typedef struct { char x; int8_t y; } pmix__type_alignof_; 21114"; then : 21115 21116else 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21118$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21120$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21121 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21122fi 21123 21124 21125else 21126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21127/* end confdefs.h. */ 21128$ac_includes_default 21129 #include <stdbool.h> 21130int 21131main () 21132{ 21133 21134 struct foo { char c; int8_t x; }; 21135 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21136 int diff; 21137 FILE *f=fopen("conftestval", "w"); 21138 if (!f) exit(1); 21139 diff = ((char *)&p->x) - ((char *)&p->c); 21140 free(p); 21141 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21142 fclose(f); 21143 21144 ; 21145 return 0; 21146} 21147_ACEOF 21148if ac_fn_c_try_run "$LINENO"; then : 21149 pmix_cv_c_align_int8_t=`cat conftestval` 21150else 21151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21152$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21154$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21155 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21156fi 21157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21158 conftest.$ac_objext conftest.beam conftest.$ac_ext 21159fi 21160 21161fi 21162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int8_t" >&5 21163$as_echo "$pmix_cv_c_align_int8_t" >&6; } 21164 21165 21166cat >>confdefs.h <<_ACEOF 21167#define PMIX_ALIGNMENT_INT8 $pmix_cv_c_align_int8_t 21168_ACEOF 21169 21170eval "PMIX_ALIGNMENT_INT8=$pmix_cv_c_align_int8_t" 21171 21172rm -rf conftest* 21173 21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int16_t" >&5 21175$as_echo_n "checking alignment of int16_t... " >&6; } 21176if ${pmix_cv_c_align_int16_t+:} false; then : 21177 $as_echo_n "(cached) " >&6 21178else 21179 if test "$cross_compiling" = yes; then : 21180 # cross compile - do a non-executable test. Trick 21181 # taken from the Autoconf 2.59c. Switch to using 21182 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21183 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int16_t" "$ac_includes_default 21184#include <stdbool.h> 21185 21186#ifndef offsetof 21187# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21188#endif 21189typedef struct { char x; int16_t y; } pmix__type_alignof_; 21190"; then : 21191 21192else 21193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21194$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21196$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21197 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21198fi 21199 21200 21201else 21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21203/* end confdefs.h. */ 21204$ac_includes_default 21205 #include <stdbool.h> 21206int 21207main () 21208{ 21209 21210 struct foo { char c; int16_t x; }; 21211 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21212 int diff; 21213 FILE *f=fopen("conftestval", "w"); 21214 if (!f) exit(1); 21215 diff = ((char *)&p->x) - ((char *)&p->c); 21216 free(p); 21217 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21218 fclose(f); 21219 21220 ; 21221 return 0; 21222} 21223_ACEOF 21224if ac_fn_c_try_run "$LINENO"; then : 21225 pmix_cv_c_align_int16_t=`cat conftestval` 21226else 21227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21228$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21230$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21231 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21232fi 21233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21234 conftest.$ac_objext conftest.beam conftest.$ac_ext 21235fi 21236 21237fi 21238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int16_t" >&5 21239$as_echo "$pmix_cv_c_align_int16_t" >&6; } 21240 21241 21242cat >>confdefs.h <<_ACEOF 21243#define PMIX_ALIGNMENT_INT16 $pmix_cv_c_align_int16_t 21244_ACEOF 21245 21246eval "PMIX_ALIGNMENT_INT16=$pmix_cv_c_align_int16_t" 21247 21248rm -rf conftest* 21249 21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int32_t" >&5 21251$as_echo_n "checking alignment of int32_t... " >&6; } 21252if ${pmix_cv_c_align_int32_t+:} false; then : 21253 $as_echo_n "(cached) " >&6 21254else 21255 if test "$cross_compiling" = yes; then : 21256 # cross compile - do a non-executable test. Trick 21257 # taken from the Autoconf 2.59c. Switch to using 21258 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21259 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int32_t" "$ac_includes_default 21260#include <stdbool.h> 21261 21262#ifndef offsetof 21263# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21264#endif 21265typedef struct { char x; int32_t y; } pmix__type_alignof_; 21266"; then : 21267 21268else 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21270$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21272$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21273 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21274fi 21275 21276 21277else 21278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21279/* end confdefs.h. */ 21280$ac_includes_default 21281 #include <stdbool.h> 21282int 21283main () 21284{ 21285 21286 struct foo { char c; int32_t x; }; 21287 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21288 int diff; 21289 FILE *f=fopen("conftestval", "w"); 21290 if (!f) exit(1); 21291 diff = ((char *)&p->x) - ((char *)&p->c); 21292 free(p); 21293 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21294 fclose(f); 21295 21296 ; 21297 return 0; 21298} 21299_ACEOF 21300if ac_fn_c_try_run "$LINENO"; then : 21301 pmix_cv_c_align_int32_t=`cat conftestval` 21302else 21303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21304$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21306$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21307 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21308fi 21309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21310 conftest.$ac_objext conftest.beam conftest.$ac_ext 21311fi 21312 21313fi 21314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int32_t" >&5 21315$as_echo "$pmix_cv_c_align_int32_t" >&6; } 21316 21317 21318cat >>confdefs.h <<_ACEOF 21319#define PMIX_ALIGNMENT_INT32 $pmix_cv_c_align_int32_t 21320_ACEOF 21321 21322eval "PMIX_ALIGNMENT_INT32=$pmix_cv_c_align_int32_t" 21323 21324rm -rf conftest* 21325 21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int64_t" >&5 21327$as_echo_n "checking alignment of int64_t... " >&6; } 21328if ${pmix_cv_c_align_int64_t+:} false; then : 21329 $as_echo_n "(cached) " >&6 21330else 21331 if test "$cross_compiling" = yes; then : 21332 # cross compile - do a non-executable test. Trick 21333 # taken from the Autoconf 2.59c. Switch to using 21334 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21335 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int64_t" "$ac_includes_default 21336#include <stdbool.h> 21337 21338#ifndef offsetof 21339# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21340#endif 21341typedef struct { char x; int64_t y; } pmix__type_alignof_; 21342"; then : 21343 21344else 21345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21346$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21348$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21349 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21350fi 21351 21352 21353else 21354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21355/* end confdefs.h. */ 21356$ac_includes_default 21357 #include <stdbool.h> 21358int 21359main () 21360{ 21361 21362 struct foo { char c; int64_t x; }; 21363 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21364 int diff; 21365 FILE *f=fopen("conftestval", "w"); 21366 if (!f) exit(1); 21367 diff = ((char *)&p->x) - ((char *)&p->c); 21368 free(p); 21369 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21370 fclose(f); 21371 21372 ; 21373 return 0; 21374} 21375_ACEOF 21376if ac_fn_c_try_run "$LINENO"; then : 21377 pmix_cv_c_align_int64_t=`cat conftestval` 21378else 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21380$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21382$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21383 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21384fi 21385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21386 conftest.$ac_objext conftest.beam conftest.$ac_ext 21387fi 21388 21389fi 21390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int64_t" >&5 21391$as_echo "$pmix_cv_c_align_int64_t" >&6; } 21392 21393 21394cat >>confdefs.h <<_ACEOF 21395#define PMIX_ALIGNMENT_INT64 $pmix_cv_c_align_int64_t 21396_ACEOF 21397 21398eval "PMIX_ALIGNMENT_INT64=$pmix_cv_c_align_int64_t" 21399 21400rm -rf conftest* 21401 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of char" >&5 21403$as_echo_n "checking alignment of char... " >&6; } 21404if ${pmix_cv_c_align_char+:} false; then : 21405 $as_echo_n "(cached) " >&6 21406else 21407 if test "$cross_compiling" = yes; then : 21408 # cross compile - do a non-executable test. Trick 21409 # taken from the Autoconf 2.59c. Switch to using 21410 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21411 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_char" "$ac_includes_default 21412#include <stdbool.h> 21413 21414#ifndef offsetof 21415# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21416#endif 21417typedef struct { char x; char y; } pmix__type_alignof_; 21418"; then : 21419 21420else 21421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21422$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21424$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21425 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21426fi 21427 21428 21429else 21430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21431/* end confdefs.h. */ 21432$ac_includes_default 21433 #include <stdbool.h> 21434int 21435main () 21436{ 21437 21438 struct foo { char c; char x; }; 21439 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21440 int diff; 21441 FILE *f=fopen("conftestval", "w"); 21442 if (!f) exit(1); 21443 diff = ((char *)&p->x) - ((char *)&p->c); 21444 free(p); 21445 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21446 fclose(f); 21447 21448 ; 21449 return 0; 21450} 21451_ACEOF 21452if ac_fn_c_try_run "$LINENO"; then : 21453 pmix_cv_c_align_char=`cat conftestval` 21454else 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21456$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21458$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21459 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21460fi 21461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21462 conftest.$ac_objext conftest.beam conftest.$ac_ext 21463fi 21464 21465fi 21466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_char" >&5 21467$as_echo "$pmix_cv_c_align_char" >&6; } 21468 21469 21470cat >>confdefs.h <<_ACEOF 21471#define PMIX_ALIGNMENT_CHAR $pmix_cv_c_align_char 21472_ACEOF 21473 21474eval "PMIX_ALIGNMENT_CHAR=$pmix_cv_c_align_char" 21475 21476rm -rf conftest* 21477 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5 21479$as_echo_n "checking alignment of short... " >&6; } 21480if ${pmix_cv_c_align_short+:} false; then : 21481 $as_echo_n "(cached) " >&6 21482else 21483 if test "$cross_compiling" = yes; then : 21484 # cross compile - do a non-executable test. Trick 21485 # taken from the Autoconf 2.59c. Switch to using 21486 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21487 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_short" "$ac_includes_default 21488#include <stdbool.h> 21489 21490#ifndef offsetof 21491# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21492#endif 21493typedef struct { char x; short y; } pmix__type_alignof_; 21494"; then : 21495 21496else 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21498$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21500$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21501 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21502fi 21503 21504 21505else 21506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21507/* end confdefs.h. */ 21508$ac_includes_default 21509 #include <stdbool.h> 21510int 21511main () 21512{ 21513 21514 struct foo { char c; short x; }; 21515 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21516 int diff; 21517 FILE *f=fopen("conftestval", "w"); 21518 if (!f) exit(1); 21519 diff = ((char *)&p->x) - ((char *)&p->c); 21520 free(p); 21521 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21522 fclose(f); 21523 21524 ; 21525 return 0; 21526} 21527_ACEOF 21528if ac_fn_c_try_run "$LINENO"; then : 21529 pmix_cv_c_align_short=`cat conftestval` 21530else 21531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21532$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21534$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21535 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21536fi 21537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21538 conftest.$ac_objext conftest.beam conftest.$ac_ext 21539fi 21540 21541fi 21542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_short" >&5 21543$as_echo "$pmix_cv_c_align_short" >&6; } 21544 21545 21546cat >>confdefs.h <<_ACEOF 21547#define PMIX_ALIGNMENT_SHORT $pmix_cv_c_align_short 21548_ACEOF 21549 21550eval "PMIX_ALIGNMENT_SHORT=$pmix_cv_c_align_short" 21551 21552rm -rf conftest* 21553 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of wchar_t" >&5 21555$as_echo_n "checking alignment of wchar_t... " >&6; } 21556if ${pmix_cv_c_align_wchar_t+:} false; then : 21557 $as_echo_n "(cached) " >&6 21558else 21559 if test "$cross_compiling" = yes; then : 21560 # cross compile - do a non-executable test. Trick 21561 # taken from the Autoconf 2.59c. Switch to using 21562 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21563 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_wchar_t" "$ac_includes_default 21564#include <stdbool.h> 21565 21566#ifndef offsetof 21567# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21568#endif 21569typedef struct { char x; wchar_t y; } pmix__type_alignof_; 21570"; then : 21571 21572else 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21574$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21576$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21577 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21578fi 21579 21580 21581else 21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21583/* end confdefs.h. */ 21584$ac_includes_default 21585 #include <stdbool.h> 21586int 21587main () 21588{ 21589 21590 struct foo { char c; wchar_t x; }; 21591 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21592 int diff; 21593 FILE *f=fopen("conftestval", "w"); 21594 if (!f) exit(1); 21595 diff = ((char *)&p->x) - ((char *)&p->c); 21596 free(p); 21597 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21598 fclose(f); 21599 21600 ; 21601 return 0; 21602} 21603_ACEOF 21604if ac_fn_c_try_run "$LINENO"; then : 21605 pmix_cv_c_align_wchar_t=`cat conftestval` 21606else 21607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21608$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21610$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21611 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21612fi 21613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21614 conftest.$ac_objext conftest.beam conftest.$ac_ext 21615fi 21616 21617fi 21618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_wchar_t" >&5 21619$as_echo "$pmix_cv_c_align_wchar_t" >&6; } 21620 21621 21622cat >>confdefs.h <<_ACEOF 21623#define PMIX_ALIGNMENT_WCHAR $pmix_cv_c_align_wchar_t 21624_ACEOF 21625 21626eval "PMIX_ALIGNMENT_WCHAR=$pmix_cv_c_align_wchar_t" 21627 21628rm -rf conftest* 21629 21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5 21631$as_echo_n "checking alignment of int... " >&6; } 21632if ${pmix_cv_c_align_int+:} false; then : 21633 $as_echo_n "(cached) " >&6 21634else 21635 if test "$cross_compiling" = yes; then : 21636 # cross compile - do a non-executable test. Trick 21637 # taken from the Autoconf 2.59c. Switch to using 21638 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21639 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int" "$ac_includes_default 21640#include <stdbool.h> 21641 21642#ifndef offsetof 21643# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21644#endif 21645typedef struct { char x; int y; } pmix__type_alignof_; 21646"; then : 21647 21648else 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21650$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21652$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21653 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21654fi 21655 21656 21657else 21658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21659/* end confdefs.h. */ 21660$ac_includes_default 21661 #include <stdbool.h> 21662int 21663main () 21664{ 21665 21666 struct foo { char c; int x; }; 21667 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21668 int diff; 21669 FILE *f=fopen("conftestval", "w"); 21670 if (!f) exit(1); 21671 diff = ((char *)&p->x) - ((char *)&p->c); 21672 free(p); 21673 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21674 fclose(f); 21675 21676 ; 21677 return 0; 21678} 21679_ACEOF 21680if ac_fn_c_try_run "$LINENO"; then : 21681 pmix_cv_c_align_int=`cat conftestval` 21682else 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21684$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21686$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21687 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21688fi 21689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21690 conftest.$ac_objext conftest.beam conftest.$ac_ext 21691fi 21692 21693fi 21694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int" >&5 21695$as_echo "$pmix_cv_c_align_int" >&6; } 21696 21697 21698cat >>confdefs.h <<_ACEOF 21699#define PMIX_ALIGNMENT_INT $pmix_cv_c_align_int 21700_ACEOF 21701 21702eval "PMIX_ALIGNMENT_INT=$pmix_cv_c_align_int" 21703 21704rm -rf conftest* 21705 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 21707$as_echo_n "checking alignment of long... " >&6; } 21708if ${pmix_cv_c_align_long+:} false; then : 21709 $as_echo_n "(cached) " >&6 21710else 21711 if test "$cross_compiling" = yes; then : 21712 # cross compile - do a non-executable test. Trick 21713 # taken from the Autoconf 2.59c. Switch to using 21714 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21715 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_long" "$ac_includes_default 21716#include <stdbool.h> 21717 21718#ifndef offsetof 21719# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21720#endif 21721typedef struct { char x; long y; } pmix__type_alignof_; 21722"; then : 21723 21724else 21725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21726$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21728$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21729 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21730fi 21731 21732 21733else 21734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21735/* end confdefs.h. */ 21736$ac_includes_default 21737 #include <stdbool.h> 21738int 21739main () 21740{ 21741 21742 struct foo { char c; long x; }; 21743 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21744 int diff; 21745 FILE *f=fopen("conftestval", "w"); 21746 if (!f) exit(1); 21747 diff = ((char *)&p->x) - ((char *)&p->c); 21748 free(p); 21749 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21750 fclose(f); 21751 21752 ; 21753 return 0; 21754} 21755_ACEOF 21756if ac_fn_c_try_run "$LINENO"; then : 21757 pmix_cv_c_align_long=`cat conftestval` 21758else 21759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21760$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21762$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21763 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21764fi 21765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21766 conftest.$ac_objext conftest.beam conftest.$ac_ext 21767fi 21768 21769fi 21770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_long" >&5 21771$as_echo "$pmix_cv_c_align_long" >&6; } 21772 21773 21774cat >>confdefs.h <<_ACEOF 21775#define PMIX_ALIGNMENT_LONG $pmix_cv_c_align_long 21776_ACEOF 21777 21778eval "PMIX_ALIGNMENT_LONG=$pmix_cv_c_align_long" 21779 21780rm -rf conftest* 21781 if test "$ac_cv_type_long_long" = yes; then 21782 21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long" >&5 21784$as_echo_n "checking alignment of long long... " >&6; } 21785if ${pmix_cv_c_align_long_long+:} false; then : 21786 $as_echo_n "(cached) " >&6 21787else 21788 if test "$cross_compiling" = yes; then : 21789 # cross compile - do a non-executable test. Trick 21790 # taken from the Autoconf 2.59c. Switch to using 21791 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21792 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_long_long" "$ac_includes_default 21793#include <stdbool.h> 21794 21795#ifndef offsetof 21796# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21797#endif 21798typedef struct { char x; long long y; } pmix__type_alignof_; 21799"; then : 21800 21801else 21802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21803$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21805$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21806 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21807fi 21808 21809 21810else 21811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21812/* end confdefs.h. */ 21813$ac_includes_default 21814 #include <stdbool.h> 21815int 21816main () 21817{ 21818 21819 struct foo { char c; long long x; }; 21820 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21821 int diff; 21822 FILE *f=fopen("conftestval", "w"); 21823 if (!f) exit(1); 21824 diff = ((char *)&p->x) - ((char *)&p->c); 21825 free(p); 21826 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21827 fclose(f); 21828 21829 ; 21830 return 0; 21831} 21832_ACEOF 21833if ac_fn_c_try_run "$LINENO"; then : 21834 pmix_cv_c_align_long_long=`cat conftestval` 21835else 21836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21837$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21839$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21840 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21841fi 21842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21843 conftest.$ac_objext conftest.beam conftest.$ac_ext 21844fi 21845 21846fi 21847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_long_long" >&5 21848$as_echo "$pmix_cv_c_align_long_long" >&6; } 21849 21850 21851cat >>confdefs.h <<_ACEOF 21852#define PMIX_ALIGNMENT_LONG_LONG $pmix_cv_c_align_long_long 21853_ACEOF 21854 21855eval "PMIX_ALIGNMENT_LONG_LONG=$pmix_cv_c_align_long_long" 21856 21857rm -rf conftest* 21858 fi 21859 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5 21861$as_echo_n "checking alignment of float... " >&6; } 21862if ${pmix_cv_c_align_float+:} false; then : 21863 $as_echo_n "(cached) " >&6 21864else 21865 if test "$cross_compiling" = yes; then : 21866 # cross compile - do a non-executable test. Trick 21867 # taken from the Autoconf 2.59c. Switch to using 21868 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21869 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_float" "$ac_includes_default 21870#include <stdbool.h> 21871 21872#ifndef offsetof 21873# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21874#endif 21875typedef struct { char x; float y; } pmix__type_alignof_; 21876"; then : 21877 21878else 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21880$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21882$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21883 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21884fi 21885 21886 21887else 21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21889/* end confdefs.h. */ 21890$ac_includes_default 21891 #include <stdbool.h> 21892int 21893main () 21894{ 21895 21896 struct foo { char c; float x; }; 21897 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21898 int diff; 21899 FILE *f=fopen("conftestval", "w"); 21900 if (!f) exit(1); 21901 diff = ((char *)&p->x) - ((char *)&p->c); 21902 free(p); 21903 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21904 fclose(f); 21905 21906 ; 21907 return 0; 21908} 21909_ACEOF 21910if ac_fn_c_try_run "$LINENO"; then : 21911 pmix_cv_c_align_float=`cat conftestval` 21912else 21913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21914$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21916$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21917 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21918fi 21919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21920 conftest.$ac_objext conftest.beam conftest.$ac_ext 21921fi 21922 21923fi 21924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_float" >&5 21925$as_echo "$pmix_cv_c_align_float" >&6; } 21926 21927 21928cat >>confdefs.h <<_ACEOF 21929#define PMIX_ALIGNMENT_FLOAT $pmix_cv_c_align_float 21930_ACEOF 21931 21932eval "PMIX_ALIGNMENT_FLOAT=$pmix_cv_c_align_float" 21933 21934rm -rf conftest* 21935 21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5 21937$as_echo_n "checking alignment of double... " >&6; } 21938if ${pmix_cv_c_align_double+:} false; then : 21939 $as_echo_n "(cached) " >&6 21940else 21941 if test "$cross_compiling" = yes; then : 21942 # cross compile - do a non-executable test. Trick 21943 # taken from the Autoconf 2.59c. Switch to using 21944 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 21945 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_double" "$ac_includes_default 21946#include <stdbool.h> 21947 21948#ifndef offsetof 21949# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 21950#endif 21951typedef struct { char x; double y; } pmix__type_alignof_; 21952"; then : 21953 21954else 21955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21956$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21958$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21959 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21960fi 21961 21962 21963else 21964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21965/* end confdefs.h. */ 21966$ac_includes_default 21967 #include <stdbool.h> 21968int 21969main () 21970{ 21971 21972 struct foo { char c; double x; }; 21973 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 21974 int diff; 21975 FILE *f=fopen("conftestval", "w"); 21976 if (!f) exit(1); 21977 diff = ((char *)&p->x) - ((char *)&p->c); 21978 free(p); 21979 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 21980 fclose(f); 21981 21982 ; 21983 return 0; 21984} 21985_ACEOF 21986if ac_fn_c_try_run "$LINENO"; then : 21987 pmix_cv_c_align_double=`cat conftestval` 21988else 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 21990$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 21992$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 21993 as_fn_error $? "*** Cannot continue." "$LINENO" 5 21994fi 21995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21996 conftest.$ac_objext conftest.beam conftest.$ac_ext 21997fi 21998 21999fi 22000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_double" >&5 22001$as_echo "$pmix_cv_c_align_double" >&6; } 22002 22003 22004cat >>confdefs.h <<_ACEOF 22005#define PMIX_ALIGNMENT_DOUBLE $pmix_cv_c_align_double 22006_ACEOF 22007 22008eval "PMIX_ALIGNMENT_DOUBLE=$pmix_cv_c_align_double" 22009 22010rm -rf conftest* 22011 if test "$ac_cv_type_long_double" = yes; then 22012 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double" >&5 22014$as_echo_n "checking alignment of long double... " >&6; } 22015if ${pmix_cv_c_align_long_double+:} false; then : 22016 $as_echo_n "(cached) " >&6 22017else 22018 if test "$cross_compiling" = yes; then : 22019 # cross compile - do a non-executable test. Trick 22020 # taken from the Autoconf 2.59c. Switch to using 22021 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 22022 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_long_double" "$ac_includes_default 22023#include <stdbool.h> 22024 22025#ifndef offsetof 22026# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 22027#endif 22028typedef struct { char x; long double y; } pmix__type_alignof_; 22029"; then : 22030 22031else 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22033$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 22035$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 22036 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22037fi 22038 22039 22040else 22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22042/* end confdefs.h. */ 22043$ac_includes_default 22044 #include <stdbool.h> 22045int 22046main () 22047{ 22048 22049 struct foo { char c; long double x; }; 22050 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 22051 int diff; 22052 FILE *f=fopen("conftestval", "w"); 22053 if (!f) exit(1); 22054 diff = ((char *)&p->x) - ((char *)&p->c); 22055 free(p); 22056 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 22057 fclose(f); 22058 22059 ; 22060 return 0; 22061} 22062_ACEOF 22063if ac_fn_c_try_run "$LINENO"; then : 22064 pmix_cv_c_align_long_double=`cat conftestval` 22065else 22066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22067$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 22069$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 22070 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22071fi 22072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22073 conftest.$ac_objext conftest.beam conftest.$ac_ext 22074fi 22075 22076fi 22077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_long_double" >&5 22078$as_echo "$pmix_cv_c_align_long_double" >&6; } 22079 22080 22081cat >>confdefs.h <<_ACEOF 22082#define PMIX_ALIGNMENT_LONG_DOUBLE $pmix_cv_c_align_long_double 22083_ACEOF 22084 22085eval "PMIX_ALIGNMENT_LONG_DOUBLE=$pmix_cv_c_align_long_double" 22086 22087rm -rf conftest* 22088 fi 22089 22090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5 22091$as_echo_n "checking alignment of void *... " >&6; } 22092if ${pmix_cv_c_align_void_p+:} false; then : 22093 $as_echo_n "(cached) " >&6 22094else 22095 if test "$cross_compiling" = yes; then : 22096 # cross compile - do a non-executable test. Trick 22097 # taken from the Autoconf 2.59c. Switch to using 22098 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 22099 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_void_p" "$ac_includes_default 22100#include <stdbool.h> 22101 22102#ifndef offsetof 22103# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 22104#endif 22105typedef struct { char x; void * y; } pmix__type_alignof_; 22106"; then : 22107 22108else 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22110$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 22112$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 22113 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22114fi 22115 22116 22117else 22118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22119/* end confdefs.h. */ 22120$ac_includes_default 22121 #include <stdbool.h> 22122int 22123main () 22124{ 22125 22126 struct foo { char c; void * x; }; 22127 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 22128 int diff; 22129 FILE *f=fopen("conftestval", "w"); 22130 if (!f) exit(1); 22131 diff = ((char *)&p->x) - ((char *)&p->c); 22132 free(p); 22133 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 22134 fclose(f); 22135 22136 ; 22137 return 0; 22138} 22139_ACEOF 22140if ac_fn_c_try_run "$LINENO"; then : 22141 pmix_cv_c_align_void_p=`cat conftestval` 22142else 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22144$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 22146$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 22147 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22148fi 22149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22150 conftest.$ac_objext conftest.beam conftest.$ac_ext 22151fi 22152 22153fi 22154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_void_p" >&5 22155$as_echo "$pmix_cv_c_align_void_p" >&6; } 22156 22157 22158cat >>confdefs.h <<_ACEOF 22159#define PMIX_ALIGNMENT_VOID_P $pmix_cv_c_align_void_p 22160_ACEOF 22161 22162eval "PMIX_ALIGNMENT_VOID_P=$pmix_cv_c_align_void_p" 22163 22164rm -rf conftest* 22165 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5 22167$as_echo_n "checking alignment of size_t... " >&6; } 22168if ${pmix_cv_c_align_size_t+:} false; then : 22169 $as_echo_n "(cached) " >&6 22170else 22171 if test "$cross_compiling" = yes; then : 22172 # cross compile - do a non-executable test. Trick 22173 # taken from the Autoconf 2.59c. Switch to using 22174 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. 22175 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_size_t" "$ac_includes_default 22176#include <stdbool.h> 22177 22178#ifndef offsetof 22179# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 22180#endif 22181typedef struct { char x; size_t y; } pmix__type_alignof_; 22182"; then : 22183 22184else 22185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22186$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 22188$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 22189 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22190fi 22191 22192 22193else 22194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22195/* end confdefs.h. */ 22196$ac_includes_default 22197 #include <stdbool.h> 22198int 22199main () 22200{ 22201 22202 struct foo { char c; size_t x; }; 22203 struct foo *p = (struct foo *) malloc(sizeof(struct foo)); 22204 int diff; 22205 FILE *f=fopen("conftestval", "w"); 22206 if (!f) exit(1); 22207 diff = ((char *)&p->x) - ((char *)&p->c); 22208 free(p); 22209 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); 22210 fclose(f); 22211 22212 ; 22213 return 0; 22214} 22215_ACEOF 22216if ac_fn_c_try_run "$LINENO"; then : 22217 pmix_cv_c_align_size_t=`cat conftestval` 22218else 22219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22220$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 22222$as_echo "$as_me: WARNING: *** See config.log for details." >&2;} 22223 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22224fi 22225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22226 conftest.$ac_objext conftest.beam conftest.$ac_ext 22227fi 22228 22229fi 22230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_size_t" >&5 22231$as_echo "$pmix_cv_c_align_size_t" >&6; } 22232 22233 22234cat >>confdefs.h <<_ACEOF 22235#define PMIX_ALIGNMENT_SIZE_T $pmix_cv_c_align_size_t 22236_ACEOF 22237 22238eval "PMIX_ALIGNMENT_SIZE_T=$pmix_cv_c_align_size_t" 22239 22240rm -rf conftest* 22241 22242 22243 # 22244 # Does the C compiler native support "bool"? (i.e., without 22245 # <stdbool.h> or any other help) 22246 # 22247 22248 22249 22250 # Is the private index set? If not, set it. 22251 if test "x$pmix_scope_index" = "x"; then 22252 pmix_scope_index=1 22253 fi 22254 22255 # First, check to see if any of these variables are already set. 22256 # This is a simple sanity check to ensure we're not already 22257 # overwriting pre-existing variables (that have a non-empty 22258 # value). It's not a perfect check, but at least it's something. 22259 for pmix_var in MSG; do 22260 pmix_str="pmix_str=\"\$$pmix_var\"" 22261 eval $pmix_str 22262 22263 if test "x$pmix_str" != "x"; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 22265$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 22266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 22267$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 22268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 22269$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 22270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 22271$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 22272 as_fn_error $? "Cannot continue" "$LINENO" 5 22273 fi 22274 done 22275 22276 # Ok, we passed the simple sanity check. Save all these names so 22277 # that we can unset them at the end of the scope. 22278 pmix_str="pmix_scope_$pmix_scope_index=\"MSG\"" 22279 eval $pmix_str 22280 unset pmix_str 22281 22282 env | grep pmix_scope 22283 pmix_scope_index=`expr $pmix_scope_index + 1` 22284 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C bool type" >&5 22286$as_echo_n "checking for C bool type... " >&6; } 22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22288/* end confdefs.h. */ 22289 22290 $ac_includes_default 22291int 22292main () 22293{ 22294bool bar, foo = true; bar = foo; 22295 ; 22296 return 0; 22297} 22298_ACEOF 22299if ac_fn_c_try_compile "$LINENO"; then : 22300 PMIX_NEED_C_BOOL=0 MSG=yes 22301else 22302 PMIX_NEED_C_BOOL=1 MSG=no 22303fi 22304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22305 22306cat >>confdefs.h <<_ACEOF 22307#define PMIX_NEED_C_BOOL $PMIX_NEED_C_BOOL 22308_ACEOF 22309 22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5 22311$as_echo "$MSG" >&6; } 22312 # The cast to long int works around a bug in the HP C Compiler 22313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22315# This bug is HP SR number 8606223364. 22316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 22317$as_echo_n "checking size of _Bool... " >&6; } 22318if ${ac_cv_sizeof__Bool+:} false; then : 22319 $as_echo_n "(cached) " >&6 22320else 22321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 22322 22323else 22324 if test "$ac_cv_type__Bool" = yes; then 22325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22327as_fn_error 77 "cannot compute sizeof (_Bool) 22328See \`config.log' for more details" "$LINENO" 5; } 22329 else 22330 ac_cv_sizeof__Bool=0 22331 fi 22332fi 22333 22334fi 22335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 22336$as_echo "$ac_cv_sizeof__Bool" >&6; } 22337 22338 22339 22340cat >>confdefs.h <<_ACEOF 22341#define SIZEOF__BOOL $ac_cv_sizeof__Bool 22342_ACEOF 22343 22344 22345 22346 # Unwind the index 22347 pmix_scope_index=`expr $pmix_scope_index - 1` 22348 pmix_scope_test=`expr $pmix_scope_index \> 0` 22349 if test "$pmix_scope_test" = "0"; then 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 22351$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 22353$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 22354 as_fn_error $? "Cannot continue" "$LINENO" 5 22355 fi 22356 22357 # Get the variable names from that index 22358 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 22359 eval $pmix_str 22360 22361 # Iterate over all the variables and unset them all 22362 for pmix_var in $pmix_str; do 22363 unset $pmix_var 22364 done 22365 22366 22367 # 22368 # Check for other compiler characteristics 22369 # 22370 22371 22372 22373 # Is the private index set? If not, set it. 22374 if test "x$pmix_scope_index" = "x"; then 22375 pmix_scope_index=1 22376 fi 22377 22378 # First, check to see if any of these variables are already set. 22379 # This is a simple sanity check to ensure we're not already 22380 # overwriting pre-existing variables (that have a non-empty 22381 # value). It's not a perfect check, but at least it's something. 22382 for pmix_var in PMIX_CFLAGS_save; do 22383 pmix_str="pmix_str=\"\$$pmix_var\"" 22384 eval $pmix_str 22385 22386 if test "x$pmix_str" != "x"; then 22387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 22388$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 22390$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 22391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 22392$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 22394$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 22395 as_fn_error $? "Cannot continue" "$LINENO" 5 22396 fi 22397 done 22398 22399 # Ok, we passed the simple sanity check. Save all these names so 22400 # that we can unset them at the end of the scope. 22401 pmix_str="pmix_scope_$pmix_scope_index=\"PMIX_CFLAGS_save\"" 22402 eval $pmix_str 22403 unset pmix_str 22404 22405 env | grep pmix_scope 22406 pmix_scope_index=`expr $pmix_scope_index + 1` 22407 22408 if test "$GCC" = "yes"; then 22409 22410 # gcc 2.96 will emit oodles of warnings if you use "inline" with 22411 # -pedantic (which we do in developer builds). However, 22412 # "__inline__" is ok. So we have to force gcc to select the 22413 # right one. If you use -pedantic, the AC_C_INLINE test will fail 22414 # (because it names a function foo() -- without the (void)). So 22415 # we turn off all the picky flags, turn on -ansi mode (which is 22416 # implied by -pedantic), and set warnings to be errors. Hence, 22417 # this does the following (for 2.96): 22418 # 22419 # - causes the check for "inline" to emit a warning, which then 22420 # fails 22421 # - checks for __inline__, which then emits no error, and works 22422 # 22423 # This also works nicely for gcc 3.x because "inline" will work on 22424 # the first check, and all is fine. :-) 22425 22426 PMIX_CFLAGS_save=$CFLAGS 22427 CFLAGS="$PMIX_CFLAGS_BEFORE_PICKY -Werror -ansi" 22428 fi 22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 22430$as_echo_n "checking for inline... " >&6; } 22431if ${ac_cv_c_inline+:} false; then : 22432 $as_echo_n "(cached) " >&6 22433else 22434 ac_cv_c_inline=no 22435for ac_kw in inline __inline__ __inline; do 22436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22437/* end confdefs.h. */ 22438#ifndef __cplusplus 22439typedef int foo_t; 22440static $ac_kw foo_t static_foo () {return 0; } 22441$ac_kw foo_t foo () {return 0; } 22442#endif 22443 22444_ACEOF 22445if ac_fn_c_try_compile "$LINENO"; then : 22446 ac_cv_c_inline=$ac_kw 22447fi 22448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22449 test "$ac_cv_c_inline" != no && break 22450done 22451 22452fi 22453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 22454$as_echo "$ac_cv_c_inline" >&6; } 22455 22456case $ac_cv_c_inline in 22457 inline | yes) ;; 22458 *) 22459 case $ac_cv_c_inline in 22460 no) ac_val=;; 22461 *) ac_val=$ac_cv_c_inline;; 22462 esac 22463 cat >>confdefs.h <<_ACEOF 22464#ifndef __cplusplus 22465#define inline $ac_val 22466#endif 22467_ACEOF 22468 ;; 22469esac 22470 22471 if test "$GCC" = "yes"; then 22472 CFLAGS=$PMIX_CFLAGS_save 22473 fi 22474 22475 # Unwind the index 22476 pmix_scope_index=`expr $pmix_scope_index - 1` 22477 pmix_scope_test=`expr $pmix_scope_index \> 0` 22478 if test "$pmix_scope_test" = "0"; then 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 22480$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 22481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 22482$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 22483 as_fn_error $? "Cannot continue" "$LINENO" 5 22484 fi 22485 22486 # Get the variable names from that index 22487 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 22488 eval $pmix_str 22489 22490 # Iterate over all the variables and unset them all 22491 for pmix_var in $pmix_str; do 22492 unset $pmix_var 22493 done 22494 22495 22496 if test "x$CC" = "xicc"; then 22497 22498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether icc-8.1 for EM64T works with variable arguments" >&5 22499$as_echo_n "checking whether icc-8.1 for EM64T works with variable arguments... " >&6; } 22500if test "$cross_compiling" = yes; then : 22501 pmix_ac_icc_varargs=1 22502else 22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22504/* end confdefs.h. */ 22505 22506#include <stdarg.h> 22507#include <stdio.h> 22508#include <stdlib.h> 22509 22510void func (int c, char * f, ...) 22511{ 22512 va_list arglist; 22513 va_start (arglist, f); 22514 /* vprintf (f, arglist); */ 22515 va_end (arglist); 22516} 22517 22518int main () 22519{ 22520 FILE *f; 22521 func (4711, "Help %d [%s]\n", 10, "ten"); 22522 f=fopen ("conftestval", "w"); 22523 if (!f) exit (1); 22524 fclose(f); 22525 return 0; 22526} 22527 22528 22529_ACEOF 22530if ac_fn_c_try_run "$LINENO"; then : 22531 pmix_ac_icc_varargs=`test -f conftestval` 22532else 22533 pmix_ac_icc_varargs=1 22534fi 22535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22536 conftest.$ac_objext conftest.beam conftest.$ac_ext 22537fi 22538 22539 22540if test "$pmix_ac_icc_varargs" = "1"; then 22541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 22542$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5 22544$as_echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;} 22545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5 22546$as_echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;} 22547 as_fn_error $? "*** Cannot continue." "$LINENO" 5 22548fi 22549 22550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22551$as_echo "yes" >&6; } 22552 22553rm -rf conftest* 22554 fi 22555 22556 22557 ################################## 22558 # Only after setting up 22559 # C do we check compiler attributes. 22560 ################################## 22561 22562 pmix_show_subtitle "Compiler characteristics" 22563 22564 22565 ac_ext=c 22566ac_cpp='$CPP $CPPFLAGS' 22567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22569ac_compiler_gnu=$ac_cv_c_compiler_gnu 22570 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 22572$as_echo_n "checking for __attribute__... " >&6; } 22573 22574 if ${pmix_cv___attribute__+:} false; then : 22575 $as_echo_n "(cached) " >&6 22576else 22577 22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22579/* end confdefs.h. */ 22580#include <stdlib.h> 22581 /* Check for the longest available __attribute__ (since gcc-2.3) */ 22582 struct foo { 22583 char a; 22584 int x[2] __attribute__ ((__packed__)); 22585 }; 22586 22587int 22588main () 22589{ 22590 22591 ; 22592 return 0; 22593} 22594_ACEOF 22595if ac_fn_c_try_compile "$LINENO"; then : 22596 pmix_cv___attribute__=1 22597else 22598 pmix_cv___attribute__=0 22599fi 22600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22601 22602 if test "$pmix_cv___attribute__" = "1" ; then 22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22604/* end confdefs.h. */ 22605#include <stdlib.h> 22606 /* Check for the longest available __attribute__ (since gcc-2.3) */ 22607 struct foo { 22608 char a; 22609 int x[2] __attribute__ ((__packed__)); 22610 }; 22611 22612int 22613main () 22614{ 22615 22616 ; 22617 return 0; 22618} 22619_ACEOF 22620if ac_fn_c_try_compile "$LINENO"; then : 22621 pmix_cv___attribute__=1 22622else 22623 pmix_cv___attribute__=0 22624fi 22625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22626 fi 22627 22628fi 22629 22630 22631cat >>confdefs.h <<_ACEOF 22632#define PMIX_HAVE_ATTRIBUTE $pmix_cv___attribute__ 22633_ACEOF 22634 22635 22636# 22637# Now that we know the compiler support __attribute__ let's check which kind of 22638# attributed are supported. 22639# 22640 if test "$pmix_cv___attribute__" = "0" ; then 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22642$as_echo "no" >&6; } 22643 pmix_cv___attribute__aligned=0 22644 pmix_cv___attribute__always_inline=0 22645 pmix_cv___attribute__cold=0 22646 pmix_cv___attribute__const=0 22647 pmix_cv___attribute__deprecated=0 22648 pmix_cv___attribute__deprecated_argument=0 22649 pmix_cv___attribute__format=0 22650 pmix_cv___attribute__format_funcptr=0 22651 pmix_cv___attribute__hot=0 22652 pmix_cv___attribute__malloc=0 22653 pmix_cv___attribute__may_alias=0 22654 pmix_cv___attribute__no_instrument_function=0 22655 pmix_cv___attribute__nonnull=0 22656 pmix_cv___attribute__noreturn=0 22657 pmix_cv___attribute__noreturn_funcptr=0 22658 pmix_cv___attribute__packed=0 22659 pmix_cv___attribute__pure=0 22660 pmix_cv___attribute__sentinel=0 22661 pmix_cv___attribute__unused=0 22662 pmix_cv___attribute__visibility=0 22663 pmix_cv___attribute__warn_unused_result=0 22664 pmix_cv___attribute__destructor=0 22665 pmix_cv___attribute__optnone=0 22666 pmix_cv___attribute__extension=0 22667 else 22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22669$as_echo "yes" >&6; } 22670 22671 22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5 22673$as_echo_n "checking for __attribute__(aligned)... " >&6; } 22674 if ${pmix_cv___attribute__aligned+:} false; then : 22675 $as_echo_n "(cached) " >&6 22676else 22677 22678 # 22679 # Try to compile using the C compiler 22680 # 22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22682/* end confdefs.h. */ 22683struct foo { char text[4]; } __attribute__ ((__aligned__(8))); 22684int 22685main () 22686{ 22687 22688 ; 22689 return 0; 22690} 22691_ACEOF 22692if ac_fn_c_try_compile "$LINENO"; then : 22693 22694 # 22695 # In case we did succeed: Fine, but was this due to the 22696 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22697 # and if found, reset the pmix_cv__attribute__var=0 22698 # 22699 pmix_cv___attribute__aligned=1 22700 22701 22702 if test -s conftest.err ; then 22703 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 22704 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 22705 for i in invalid ignore skip undefined ; do 22706 $GREP -iq $i conftest.err 22707 if test "$?" = "0" ; then 22708 pmix_cv___attribute__aligned=0 22709 break; 22710 fi 22711 done 22712 fi 22713 22714 22715else 22716 pmix_cv___attribute__aligned=0 22717fi 22718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22719 22720fi 22721 22722 22723 if test "$pmix_cv___attribute__aligned" = "1" ; then 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22725$as_echo "yes" >&6; } 22726 else 22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22728$as_echo "no" >&6; } 22729 fi 22730 22731 22732 # 22733 # Ignored by PGI-6.2.5; -- recognized by output-parser 22734 # 22735 22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5 22737$as_echo_n "checking for __attribute__(always_inline)... " >&6; } 22738 if ${pmix_cv___attribute__always_inline+:} false; then : 22739 $as_echo_n "(cached) " >&6 22740else 22741 22742 # 22743 # Try to compile using the C compiler 22744 # 22745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22746/* end confdefs.h. */ 22747int foo (int arg) __attribute__ ((__always_inline__)); 22748int 22749main () 22750{ 22751 22752 ; 22753 return 0; 22754} 22755_ACEOF 22756if ac_fn_c_try_compile "$LINENO"; then : 22757 22758 # 22759 # In case we did succeed: Fine, but was this due to the 22760 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22761 # and if found, reset the pmix_cv__attribute__var=0 22762 # 22763 pmix_cv___attribute__always_inline=1 22764 22765 22766 if test -s conftest.err ; then 22767 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 22768 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 22769 for i in invalid ignore skip undefined ; do 22770 $GREP -iq $i conftest.err 22771 if test "$?" = "0" ; then 22772 pmix_cv___attribute__always_inline=0 22773 break; 22774 fi 22775 done 22776 fi 22777 22778 22779else 22780 pmix_cv___attribute__always_inline=0 22781fi 22782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22783 22784fi 22785 22786 22787 if test "$pmix_cv___attribute__always_inline" = "1" ; then 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22789$as_echo "yes" >&6; } 22790 else 22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22792$as_echo "no" >&6; } 22793 fi 22794 22795 22796 22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5 22798$as_echo_n "checking for __attribute__(cold)... " >&6; } 22799 if ${pmix_cv___attribute__cold+:} false; then : 22800 $as_echo_n "(cached) " >&6 22801else 22802 22803 # 22804 # Try to compile using the C compiler 22805 # 22806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22807/* end confdefs.h. */ 22808 22809 int foo(int arg1, int arg2) __attribute__ ((__cold__)); 22810 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 22811 22812int 22813main () 22814{ 22815 22816 ; 22817 return 0; 22818} 22819_ACEOF 22820if ac_fn_c_try_compile "$LINENO"; then : 22821 22822 # 22823 # In case we did succeed: Fine, but was this due to the 22824 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22825 # and if found, reset the pmix_cv__attribute__var=0 22826 # 22827 pmix_cv___attribute__cold=1 22828 22829 22830 if test -s conftest.err ; then 22831 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 22832 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 22833 for i in invalid ignore skip undefined ; do 22834 $GREP -iq $i conftest.err 22835 if test "$?" = "0" ; then 22836 pmix_cv___attribute__cold=0 22837 break; 22838 fi 22839 done 22840 fi 22841 22842 22843else 22844 pmix_cv___attribute__cold=0 22845fi 22846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22847 22848fi 22849 22850 22851 if test "$pmix_cv___attribute__cold" = "1" ; then 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22853$as_echo "yes" >&6; } 22854 else 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22856$as_echo "no" >&6; } 22857 fi 22858 22859 22860 22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5 22862$as_echo_n "checking for __attribute__(const)... " >&6; } 22863 if ${pmix_cv___attribute__const+:} false; then : 22864 $as_echo_n "(cached) " >&6 22865else 22866 22867 # 22868 # Try to compile using the C compiler 22869 # 22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22871/* end confdefs.h. */ 22872 22873 int foo(int arg1, int arg2) __attribute__ ((__const__)); 22874 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 22875 22876int 22877main () 22878{ 22879 22880 ; 22881 return 0; 22882} 22883_ACEOF 22884if ac_fn_c_try_compile "$LINENO"; then : 22885 22886 # 22887 # In case we did succeed: Fine, but was this due to the 22888 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22889 # and if found, reset the pmix_cv__attribute__var=0 22890 # 22891 pmix_cv___attribute__const=1 22892 22893 22894 if test -s conftest.err ; then 22895 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 22896 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 22897 for i in invalid ignore skip undefined ; do 22898 $GREP -iq $i conftest.err 22899 if test "$?" = "0" ; then 22900 pmix_cv___attribute__const=0 22901 break; 22902 fi 22903 done 22904 fi 22905 22906 22907else 22908 pmix_cv___attribute__const=0 22909fi 22910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22911 22912fi 22913 22914 22915 if test "$pmix_cv___attribute__const" = "1" ; then 22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22917$as_echo "yes" >&6; } 22918 else 22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22920$as_echo "no" >&6; } 22921 fi 22922 22923 22924 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5 22926$as_echo_n "checking for __attribute__(deprecated)... " >&6; } 22927 if ${pmix_cv___attribute__deprecated+:} false; then : 22928 $as_echo_n "(cached) " >&6 22929else 22930 22931 # 22932 # Try to compile using the C compiler 22933 # 22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22935/* end confdefs.h. */ 22936 22937 int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); 22938 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 22939 22940int 22941main () 22942{ 22943 22944 ; 22945 return 0; 22946} 22947_ACEOF 22948if ac_fn_c_try_compile "$LINENO"; then : 22949 22950 # 22951 # In case we did succeed: Fine, but was this due to the 22952 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22953 # and if found, reset the pmix_cv__attribute__var=0 22954 # 22955 pmix_cv___attribute__deprecated=1 22956 22957 22958 if test -s conftest.err ; then 22959 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 22960 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 22961 for i in invalid ignore skip undefined ; do 22962 $GREP -iq $i conftest.err 22963 if test "$?" = "0" ; then 22964 pmix_cv___attribute__deprecated=0 22965 break; 22966 fi 22967 done 22968 fi 22969 22970 22971else 22972 pmix_cv___attribute__deprecated=0 22973fi 22974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22975 22976fi 22977 22978 22979 if test "$pmix_cv___attribute__deprecated" = "1" ; then 22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22981$as_echo "yes" >&6; } 22982 else 22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22984$as_echo "no" >&6; } 22985 fi 22986 22987 22988 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated_argument)" >&5 22990$as_echo_n "checking for __attribute__(deprecated_argument)... " >&6; } 22991 if ${pmix_cv___attribute__deprecated_argument+:} false; then : 22992 $as_echo_n "(cached) " >&6 22993else 22994 22995 # 22996 # Try to compile using the C compiler 22997 # 22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22999/* end confdefs.h. */ 23000 23001 int foo(int arg1, int arg2) __attribute__ ((__deprecated__("compiler allows argument"))); 23002 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 23003 23004int 23005main () 23006{ 23007 23008 ; 23009 return 0; 23010} 23011_ACEOF 23012if ac_fn_c_try_compile "$LINENO"; then : 23013 23014 # 23015 # In case we did succeed: Fine, but was this due to the 23016 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23017 # and if found, reset the pmix_cv__attribute__var=0 23018 # 23019 pmix_cv___attribute__deprecated_argument=1 23020 23021 23022 if test -s conftest.err ; then 23023 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23024 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23025 for i in invalid ignore skip undefined ; do 23026 $GREP -iq $i conftest.err 23027 if test "$?" = "0" ; then 23028 pmix_cv___attribute__deprecated_argument=0 23029 break; 23030 fi 23031 done 23032 fi 23033 23034 23035else 23036 pmix_cv___attribute__deprecated_argument=0 23037fi 23038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23039 23040fi 23041 23042 23043 if test "$pmix_cv___attribute__deprecated_argument" = "1" ; then 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23045$as_echo "yes" >&6; } 23046 else 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23048$as_echo "no" >&6; } 23049 fi 23050 23051 23052 ATTRIBUTE_CFLAGS= 23053 case "$pmix_c_vendor" in 23054 gnu) 23055 ATTRIBUTE_CFLAGS="-Wall" 23056 ;; 23057 intel) 23058 # we want specifically the warning on format string conversion 23059 ATTRIBUTE_CFLAGS="-we181" 23060 ;; 23061 esac 23062 23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5 23064$as_echo_n "checking for __attribute__(format)... " >&6; } 23065 if ${pmix_cv___attribute__format+:} false; then : 23066 $as_echo_n "(cached) " >&6 23067else 23068 23069 # 23070 # Try to compile using the C compiler 23071 # 23072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23073/* end confdefs.h. */ 23074 23075 int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); 23076 23077int 23078main () 23079{ 23080 23081 ; 23082 return 0; 23083} 23084_ACEOF 23085if ac_fn_c_try_compile "$LINENO"; then : 23086 23087 # 23088 # In case we did succeed: Fine, but was this due to the 23089 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23090 # and if found, reset the pmix_cv__attribute__var=0 23091 # 23092 pmix_cv___attribute__format=1 23093 23094 23095 if test -s conftest.err ; then 23096 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23097 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23098 for i in invalid ignore skip undefined ; do 23099 $GREP -iq $i conftest.err 23100 if test "$?" = "0" ; then 23101 pmix_cv___attribute__format=0 23102 break; 23103 fi 23104 done 23105 fi 23106 23107 23108else 23109 pmix_cv___attribute__format=0 23110fi 23111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23112 23113fi 23114 23115 23116 if test "$pmix_cv___attribute__format" = "1" ; then 23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23118$as_echo "yes" >&6; } 23119 else 23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23121$as_echo "no" >&6; } 23122 fi 23123 23124 23125 ATTRIBUTE_CFLAGS= 23126 case "$pmix_c_vendor" in 23127 gnu) 23128 ATTRIBUTE_CFLAGS="-Wall" 23129 ;; 23130 intel) 23131 # we want specifically the warning on format string conversion 23132 ATTRIBUTE_CFLAGS="-we181" 23133 ;; 23134 esac 23135 23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format_funcptr)" >&5 23137$as_echo_n "checking for __attribute__(format_funcptr)... " >&6; } 23138 if ${pmix_cv___attribute__format_funcptr+:} false; then : 23139 $as_echo_n "(cached) " >&6 23140else 23141 23142 # 23143 # Try to compile using the C compiler 23144 # 23145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23146/* end confdefs.h. */ 23147 23148 int (*this_printf)(void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); 23149 23150int 23151main () 23152{ 23153 23154 ; 23155 return 0; 23156} 23157_ACEOF 23158if ac_fn_c_try_compile "$LINENO"; then : 23159 23160 # 23161 # In case we did succeed: Fine, but was this due to the 23162 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23163 # and if found, reset the pmix_cv__attribute__var=0 23164 # 23165 pmix_cv___attribute__format_funcptr=1 23166 23167 23168 if test -s conftest.err ; then 23169 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23170 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23171 for i in invalid ignore skip undefined ; do 23172 $GREP -iq $i conftest.err 23173 if test "$?" = "0" ; then 23174 pmix_cv___attribute__format_funcptr=0 23175 break; 23176 fi 23177 done 23178 fi 23179 23180 23181else 23182 pmix_cv___attribute__format_funcptr=0 23183fi 23184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23185 23186fi 23187 23188 23189 if test "$pmix_cv___attribute__format_funcptr" = "1" ; then 23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23191$as_echo "yes" >&6; } 23192 else 23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23194$as_echo "no" >&6; } 23195 fi 23196 23197 23198 23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5 23200$as_echo_n "checking for __attribute__(hot)... " >&6; } 23201 if ${pmix_cv___attribute__hot+:} false; then : 23202 $as_echo_n "(cached) " >&6 23203else 23204 23205 # 23206 # Try to compile using the C compiler 23207 # 23208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23209/* end confdefs.h. */ 23210 23211 int foo(int arg1, int arg2) __attribute__ ((__hot__)); 23212 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 23213 23214int 23215main () 23216{ 23217 23218 ; 23219 return 0; 23220} 23221_ACEOF 23222if ac_fn_c_try_compile "$LINENO"; then : 23223 23224 # 23225 # In case we did succeed: Fine, but was this due to the 23226 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23227 # and if found, reset the pmix_cv__attribute__var=0 23228 # 23229 pmix_cv___attribute__hot=1 23230 23231 23232 if test -s conftest.err ; then 23233 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23234 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23235 for i in invalid ignore skip undefined ; do 23236 $GREP -iq $i conftest.err 23237 if test "$?" = "0" ; then 23238 pmix_cv___attribute__hot=0 23239 break; 23240 fi 23241 done 23242 fi 23243 23244 23245else 23246 pmix_cv___attribute__hot=0 23247fi 23248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23249 23250fi 23251 23252 23253 if test "$pmix_cv___attribute__hot" = "1" ; then 23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23255$as_echo "yes" >&6; } 23256 else 23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23258$as_echo "no" >&6; } 23259 fi 23260 23261 23262 23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5 23264$as_echo_n "checking for __attribute__(malloc)... " >&6; } 23265 if ${pmix_cv___attribute__malloc+:} false; then : 23266 $as_echo_n "(cached) " >&6 23267else 23268 23269 # 23270 # Try to compile using the C compiler 23271 # 23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23273/* end confdefs.h. */ 23274 23275#ifdef HAVE_STDLIB_H 23276# include <stdlib.h> 23277#endif 23278 int * foo(int arg1) __attribute__ ((__malloc__)); 23279 int * foo(int arg1) { return (int*) malloc(arg1); } 23280 23281int 23282main () 23283{ 23284 23285 ; 23286 return 0; 23287} 23288_ACEOF 23289if ac_fn_c_try_compile "$LINENO"; then : 23290 23291 # 23292 # In case we did succeed: Fine, but was this due to the 23293 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23294 # and if found, reset the pmix_cv__attribute__var=0 23295 # 23296 pmix_cv___attribute__malloc=1 23297 23298 23299 if test -s conftest.err ; then 23300 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23301 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23302 for i in invalid ignore skip undefined ; do 23303 $GREP -iq $i conftest.err 23304 if test "$?" = "0" ; then 23305 pmix_cv___attribute__malloc=0 23306 break; 23307 fi 23308 done 23309 fi 23310 23311 23312else 23313 pmix_cv___attribute__malloc=0 23314fi 23315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23316 23317fi 23318 23319 23320 if test "$pmix_cv___attribute__malloc" = "1" ; then 23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23322$as_echo "yes" >&6; } 23323 else 23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23325$as_echo "no" >&6; } 23326 fi 23327 23328 23329 23330 # 23331 # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers 23332 # Ignored by intel-9.1.045 -- turn off with -wd1292 23333 # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check 23334 # 23335 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5 23337$as_echo_n "checking for __attribute__(may_alias)... " >&6; } 23338 if ${pmix_cv___attribute__may_alias+:} false; then : 23339 $as_echo_n "(cached) " >&6 23340else 23341 23342 # 23343 # Try to compile using the C compiler 23344 # 23345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23346/* end confdefs.h. */ 23347int * p_value __attribute__ ((__may_alias__)); 23348int 23349main () 23350{ 23351 23352 ; 23353 return 0; 23354} 23355_ACEOF 23356if ac_fn_c_try_compile "$LINENO"; then : 23357 23358 # 23359 # In case we did succeed: Fine, but was this due to the 23360 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23361 # and if found, reset the pmix_cv__attribute__var=0 23362 # 23363 pmix_cv___attribute__may_alias=1 23364 23365 23366 if test -s conftest.err ; then 23367 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23368 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23369 for i in invalid ignore skip undefined ; do 23370 $GREP -iq $i conftest.err 23371 if test "$?" = "0" ; then 23372 pmix_cv___attribute__may_alias=0 23373 break; 23374 fi 23375 done 23376 fi 23377 23378 23379else 23380 pmix_cv___attribute__may_alias=0 23381fi 23382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23383 23384fi 23385 23386 23387 if test "$pmix_cv___attribute__may_alias" = "1" ; then 23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23389$as_echo "yes" >&6; } 23390 else 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23392$as_echo "no" >&6; } 23393 fi 23394 23395 23396 23397 23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5 23399$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; } 23400 if ${pmix_cv___attribute__no_instrument_function+:} false; then : 23401 $as_echo_n "(cached) " >&6 23402else 23403 23404 # 23405 # Try to compile using the C compiler 23406 # 23407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23408/* end confdefs.h. */ 23409int * foo(int arg1) __attribute__ ((__no_instrument_function__)); 23410int 23411main () 23412{ 23413 23414 ; 23415 return 0; 23416} 23417_ACEOF 23418if ac_fn_c_try_compile "$LINENO"; then : 23419 23420 # 23421 # In case we did succeed: Fine, but was this due to the 23422 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23423 # and if found, reset the pmix_cv__attribute__var=0 23424 # 23425 pmix_cv___attribute__no_instrument_function=1 23426 23427 23428 if test -s conftest.err ; then 23429 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23430 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23431 for i in invalid ignore skip undefined ; do 23432 $GREP -iq $i conftest.err 23433 if test "$?" = "0" ; then 23434 pmix_cv___attribute__no_instrument_function=0 23435 break; 23436 fi 23437 done 23438 fi 23439 23440 23441else 23442 pmix_cv___attribute__no_instrument_function=0 23443fi 23444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23445 23446fi 23447 23448 23449 if test "$pmix_cv___attribute__no_instrument_function" = "1" ; then 23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23451$as_echo "yes" >&6; } 23452 else 23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23454$as_echo "no" >&6; } 23455 fi 23456 23457 23458 23459 # 23460 # Attribute nonnull: 23461 # Ignored by intel-compiler 9.1.045 -- recognized by cross-check 23462 # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check 23463 # 23464 ATTRIBUTE_CFLAGS= 23465 case "$pmix_c_vendor" in 23466 gnu) 23467 ATTRIBUTE_CFLAGS="-Wall" 23468 ;; 23469 intel) 23470 # we do not want to get ignored attributes warnings, but rather real warnings 23471 ATTRIBUTE_CFLAGS="-wd1292" 23472 ;; 23473 esac 23474 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5 23476$as_echo_n "checking for __attribute__(nonnull)... " >&6; } 23477 if ${pmix_cv___attribute__nonnull+:} false; then : 23478 $as_echo_n "(cached) " >&6 23479else 23480 23481 # 23482 # Try to compile using the C compiler 23483 # 23484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23485/* end confdefs.h. */ 23486 23487 int square(int *arg) __attribute__ ((__nonnull__)); 23488 int square(int *arg) { return *arg; } 23489 23490int 23491main () 23492{ 23493 23494 ; 23495 return 0; 23496} 23497_ACEOF 23498if ac_fn_c_try_compile "$LINENO"; then : 23499 23500 # 23501 # In case we did succeed: Fine, but was this due to the 23502 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23503 # and if found, reset the pmix_cv__attribute__var=0 23504 # 23505 pmix_cv___attribute__nonnull=1 23506 23507 23508 if test -s conftest.err ; then 23509 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23510 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23511 for i in invalid ignore skip undefined ; do 23512 $GREP -iq $i conftest.err 23513 if test "$?" = "0" ; then 23514 pmix_cv___attribute__nonnull=0 23515 break; 23516 fi 23517 done 23518 fi 23519 23520 23521else 23522 pmix_cv___attribute__nonnull=0 23523fi 23524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23525 23526fi 23527 23528 23529 if test "$pmix_cv___attribute__nonnull" = "1" ; then 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23531$as_echo "yes" >&6; } 23532 else 23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23534$as_echo "no" >&6; } 23535 fi 23536 23537 23538 23539 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5 23541$as_echo_n "checking for __attribute__(noreturn)... " >&6; } 23542 if ${pmix_cv___attribute__noreturn+:} false; then : 23543 $as_echo_n "(cached) " >&6 23544else 23545 23546 # 23547 # Try to compile using the C compiler 23548 # 23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23550/* end confdefs.h. */ 23551 23552#ifdef HAVE_UNISTD_H 23553# include <unistd.h> 23554#endif 23555#ifdef HAVE_STDLIB_H 23556# include <stdlib.h> 23557#endif 23558 void fatal(int arg1) __attribute__ ((__noreturn__)); 23559 void fatal(int arg1) { exit(arg1); } 23560 23561int 23562main () 23563{ 23564 23565 ; 23566 return 0; 23567} 23568_ACEOF 23569if ac_fn_c_try_compile "$LINENO"; then : 23570 23571 # 23572 # In case we did succeed: Fine, but was this due to the 23573 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23574 # and if found, reset the pmix_cv__attribute__var=0 23575 # 23576 pmix_cv___attribute__noreturn=1 23577 23578 23579 if test -s conftest.err ; then 23580 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23581 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23582 for i in invalid ignore skip undefined ; do 23583 $GREP -iq $i conftest.err 23584 if test "$?" = "0" ; then 23585 pmix_cv___attribute__noreturn=0 23586 break; 23587 fi 23588 done 23589 fi 23590 23591 23592else 23593 pmix_cv___attribute__noreturn=0 23594fi 23595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23596 23597fi 23598 23599 23600 if test "$pmix_cv___attribute__noreturn" = "1" ; then 23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23602$as_echo "yes" >&6; } 23603 else 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23605$as_echo "no" >&6; } 23606 fi 23607 23608 23609 23610 23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn_funcptr)" >&5 23612$as_echo_n "checking for __attribute__(noreturn_funcptr)... " >&6; } 23613 if ${pmix_cv___attribute__noreturn_funcptr+:} false; then : 23614 $as_echo_n "(cached) " >&6 23615else 23616 23617 # 23618 # Try to compile using the C compiler 23619 # 23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23621/* end confdefs.h. */ 23622 23623#ifdef HAVE_UNISTD_H 23624# include <unistd.h> 23625#endif 23626#ifdef HAVE_STDLIB_H 23627# include <stdlib.h> 23628#endif 23629 extern void (*fatal_exit)(int arg1) __attribute__ ((__noreturn__)); 23630 void fatal(int arg1) { fatal_exit (arg1); } 23631 23632int 23633main () 23634{ 23635 23636 ; 23637 return 0; 23638} 23639_ACEOF 23640if ac_fn_c_try_compile "$LINENO"; then : 23641 23642 # 23643 # In case we did succeed: Fine, but was this due to the 23644 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23645 # and if found, reset the pmix_cv__attribute__var=0 23646 # 23647 pmix_cv___attribute__noreturn_funcptr=1 23648 23649 23650 if test -s conftest.err ; then 23651 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23652 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23653 for i in invalid ignore skip undefined ; do 23654 $GREP -iq $i conftest.err 23655 if test "$?" = "0" ; then 23656 pmix_cv___attribute__noreturn_funcptr=0 23657 break; 23658 fi 23659 done 23660 fi 23661 23662 23663else 23664 pmix_cv___attribute__noreturn_funcptr=0 23665fi 23666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23667 23668fi 23669 23670 23671 if test "$pmix_cv___attribute__noreturn_funcptr" = "1" ; then 23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23673$as_echo "yes" >&6; } 23674 else 23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23676$as_echo "no" >&6; } 23677 fi 23678 23679 23680 23681 23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5 23683$as_echo_n "checking for __attribute__(packed)... " >&6; } 23684 if ${pmix_cv___attribute__packed+:} false; then : 23685 $as_echo_n "(cached) " >&6 23686else 23687 23688 # 23689 # Try to compile using the C compiler 23690 # 23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23692/* end confdefs.h. */ 23693 23694 struct foo { 23695 char a; 23696 int x[2] __attribute__ ((__packed__)); 23697 }; 23698 23699int 23700main () 23701{ 23702 23703 ; 23704 return 0; 23705} 23706_ACEOF 23707if ac_fn_c_try_compile "$LINENO"; then : 23708 23709 # 23710 # In case we did succeed: Fine, but was this due to the 23711 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23712 # and if found, reset the pmix_cv__attribute__var=0 23713 # 23714 pmix_cv___attribute__packed=1 23715 23716 23717 if test -s conftest.err ; then 23718 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23719 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23720 for i in invalid ignore skip undefined ; do 23721 $GREP -iq $i conftest.err 23722 if test "$?" = "0" ; then 23723 pmix_cv___attribute__packed=0 23724 break; 23725 fi 23726 done 23727 fi 23728 23729 23730else 23731 pmix_cv___attribute__packed=0 23732fi 23733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23734 23735fi 23736 23737 23738 if test "$pmix_cv___attribute__packed" = "1" ; then 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23740$as_echo "yes" >&6; } 23741 else 23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23743$as_echo "no" >&6; } 23744 fi 23745 23746 23747 23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5 23749$as_echo_n "checking for __attribute__(pure)... " >&6; } 23750 if ${pmix_cv___attribute__pure+:} false; then : 23751 $as_echo_n "(cached) " >&6 23752else 23753 23754 # 23755 # Try to compile using the C compiler 23756 # 23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23758/* end confdefs.h. */ 23759 23760 int square(int arg) __attribute__ ((__pure__)); 23761 int square(int arg) { return arg * arg; } 23762 23763int 23764main () 23765{ 23766 23767 ; 23768 return 0; 23769} 23770_ACEOF 23771if ac_fn_c_try_compile "$LINENO"; then : 23772 23773 # 23774 # In case we did succeed: Fine, but was this due to the 23775 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23776 # and if found, reset the pmix_cv__attribute__var=0 23777 # 23778 pmix_cv___attribute__pure=1 23779 23780 23781 if test -s conftest.err ; then 23782 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23783 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23784 for i in invalid ignore skip undefined ; do 23785 $GREP -iq $i conftest.err 23786 if test "$?" = "0" ; then 23787 pmix_cv___attribute__pure=0 23788 break; 23789 fi 23790 done 23791 fi 23792 23793 23794else 23795 pmix_cv___attribute__pure=0 23796fi 23797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23798 23799fi 23800 23801 23802 if test "$pmix_cv___attribute__pure" = "1" ; then 23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23804$as_echo "yes" >&6; } 23805 else 23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23807$as_echo "no" >&6; } 23808 fi 23809 23810 23811 # 23812 # Attribute sentinel: 23813 # Ignored by the intel-9.1.045 -- recognized by cross-check 23814 # intel-10.0beta works fine 23815 # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check 23816 # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) 23817 # 23818 ATTRIBUTE_CFLAGS= 23819 case "$pmix_c_vendor" in 23820 gnu) 23821 ATTRIBUTE_CFLAGS="-Wall" 23822 ;; 23823 intel) 23824 # we do not want to get ignored attributes warnings 23825 ATTRIBUTE_CFLAGS="-wd1292" 23826 ;; 23827 esac 23828 23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5 23830$as_echo_n "checking for __attribute__(sentinel)... " >&6; } 23831 if ${pmix_cv___attribute__sentinel+:} false; then : 23832 $as_echo_n "(cached) " >&6 23833else 23834 23835 # 23836 # Try to compile using the C compiler 23837 # 23838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23839/* end confdefs.h. */ 23840 23841 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); 23842 23843int 23844main () 23845{ 23846 23847 ; 23848 return 0; 23849} 23850_ACEOF 23851if ac_fn_c_try_compile "$LINENO"; then : 23852 23853 # 23854 # In case we did succeed: Fine, but was this due to the 23855 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23856 # and if found, reset the pmix_cv__attribute__var=0 23857 # 23858 pmix_cv___attribute__sentinel=1 23859 23860 23861 if test -s conftest.err ; then 23862 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23863 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23864 for i in invalid ignore skip undefined ; do 23865 $GREP -iq $i conftest.err 23866 if test "$?" = "0" ; then 23867 pmix_cv___attribute__sentinel=0 23868 break; 23869 fi 23870 done 23871 fi 23872 23873 23874else 23875 pmix_cv___attribute__sentinel=0 23876fi 23877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23878 23879fi 23880 23881 23882 if test "$pmix_cv___attribute__sentinel" = "1" ; then 23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23884$as_echo "yes" >&6; } 23885 else 23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23887$as_echo "no" >&6; } 23888 fi 23889 23890 23891 23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5 23893$as_echo_n "checking for __attribute__(unused)... " >&6; } 23894 if ${pmix_cv___attribute__unused+:} false; then : 23895 $as_echo_n "(cached) " >&6 23896else 23897 23898 # 23899 # Try to compile using the C compiler 23900 # 23901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23902/* end confdefs.h. */ 23903 23904 int square(int arg1 __attribute__ ((__unused__)), int arg2); 23905 int square(int arg1, int arg2) { return arg2; } 23906 23907int 23908main () 23909{ 23910 23911 ; 23912 return 0; 23913} 23914_ACEOF 23915if ac_fn_c_try_compile "$LINENO"; then : 23916 23917 # 23918 # In case we did succeed: Fine, but was this due to the 23919 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23920 # and if found, reset the pmix_cv__attribute__var=0 23921 # 23922 pmix_cv___attribute__unused=1 23923 23924 23925 if test -s conftest.err ; then 23926 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23927 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23928 for i in invalid ignore skip undefined ; do 23929 $GREP -iq $i conftest.err 23930 if test "$?" = "0" ; then 23931 pmix_cv___attribute__unused=0 23932 break; 23933 fi 23934 done 23935 fi 23936 23937 23938else 23939 pmix_cv___attribute__unused=0 23940fi 23941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23942 23943fi 23944 23945 23946 if test "$pmix_cv___attribute__unused" = "1" ; then 23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23948$as_echo "yes" >&6; } 23949 else 23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23951$as_echo "no" >&6; } 23952 fi 23953 23954 23955 23956 # 23957 # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser 23958 # 23959 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(visibility)" >&5 23961$as_echo_n "checking for __attribute__(visibility)... " >&6; } 23962 if ${pmix_cv___attribute__visibility+:} false; then : 23963 $as_echo_n "(cached) " >&6 23964else 23965 23966 # 23967 # Try to compile using the C compiler 23968 # 23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23970/* end confdefs.h. */ 23971 23972 int square(int arg1) __attribute__ ((__visibility__("hidden"))); 23973 23974int 23975main () 23976{ 23977 23978 ; 23979 return 0; 23980} 23981_ACEOF 23982if ac_fn_c_try_compile "$LINENO"; then : 23983 23984 # 23985 # In case we did succeed: Fine, but was this due to the 23986 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 23987 # and if found, reset the pmix_cv__attribute__var=0 23988 # 23989 pmix_cv___attribute__visibility=1 23990 23991 23992 if test -s conftest.err ; then 23993 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 23994 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 23995 for i in invalid ignore skip undefined ; do 23996 $GREP -iq $i conftest.err 23997 if test "$?" = "0" ; then 23998 pmix_cv___attribute__visibility=0 23999 break; 24000 fi 24001 done 24002 fi 24003 24004 24005else 24006 pmix_cv___attribute__visibility=0 24007fi 24008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24009 24010fi 24011 24012 24013 if test "$pmix_cv___attribute__visibility" = "1" ; then 24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24015$as_echo "yes" >&6; } 24016 else 24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24018$as_echo "no" >&6; } 24019 fi 24020 24021 24022 24023 # 24024 # Attribute warn_unused_result: 24025 # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check 24026 # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) 24027 # 24028 ATTRIBUTE_CFLAGS= 24029 case "$pmix_c_vendor" in 24030 gnu) 24031 ATTRIBUTE_CFLAGS="-Wall" 24032 ;; 24033 intel) 24034 # we do not want to get ignored attributes warnings 24035 ATTRIBUTE_CFLAGS="-wd1292" 24036 ;; 24037 esac 24038 24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5 24040$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; } 24041 if ${pmix_cv___attribute__warn_unused_result+:} false; then : 24042 $as_echo_n "(cached) " >&6 24043else 24044 24045 # 24046 # Try to compile using the C compiler 24047 # 24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24049/* end confdefs.h. */ 24050 24051 int foo(int arg) __attribute__ ((__warn_unused_result__)); 24052 int foo(int arg) { return arg + 3; } 24053 24054int 24055main () 24056{ 24057 24058 ; 24059 return 0; 24060} 24061_ACEOF 24062if ac_fn_c_try_compile "$LINENO"; then : 24063 24064 # 24065 # In case we did succeed: Fine, but was this due to the 24066 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 24067 # and if found, reset the pmix_cv__attribute__var=0 24068 # 24069 pmix_cv___attribute__warn_unused_result=1 24070 24071 24072 if test -s conftest.err ; then 24073 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 24074 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 24075 for i in invalid ignore skip undefined ; do 24076 $GREP -iq $i conftest.err 24077 if test "$?" = "0" ; then 24078 pmix_cv___attribute__warn_unused_result=0 24079 break; 24080 fi 24081 done 24082 fi 24083 24084 24085else 24086 pmix_cv___attribute__warn_unused_result=0 24087fi 24088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24089 24090fi 24091 24092 24093 if test "$pmix_cv___attribute__warn_unused_result" = "1" ; then 24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24095$as_echo "yes" >&6; } 24096 else 24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24098$as_echo "no" >&6; } 24099 fi 24100 24101 24102 24103 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(destructor)" >&5 24105$as_echo_n "checking for __attribute__(destructor)... " >&6; } 24106 if ${pmix_cv___attribute__destructor+:} false; then : 24107 $as_echo_n "(cached) " >&6 24108else 24109 24110 # 24111 # Try to compile using the C compiler 24112 # 24113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24114/* end confdefs.h. */ 24115 24116 void foo(void) __attribute__ ((__destructor__)); 24117 void foo(void) { return ; } 24118 24119int 24120main () 24121{ 24122 24123 ; 24124 return 0; 24125} 24126_ACEOF 24127if ac_fn_c_try_compile "$LINENO"; then : 24128 24129 # 24130 # In case we did succeed: Fine, but was this due to the 24131 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 24132 # and if found, reset the pmix_cv__attribute__var=0 24133 # 24134 pmix_cv___attribute__destructor=1 24135 24136 24137 if test -s conftest.err ; then 24138 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 24139 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 24140 for i in invalid ignore skip undefined ; do 24141 $GREP -iq $i conftest.err 24142 if test "$?" = "0" ; then 24143 pmix_cv___attribute__destructor=0 24144 break; 24145 fi 24146 done 24147 fi 24148 24149 24150else 24151 pmix_cv___attribute__destructor=0 24152fi 24153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24154 24155fi 24156 24157 24158 if test "$pmix_cv___attribute__destructor" = "1" ; then 24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24160$as_echo "yes" >&6; } 24161 else 24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24163$as_echo "no" >&6; } 24164 fi 24165 24166 24167 24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(optnone)" >&5 24169$as_echo_n "checking for __attribute__(optnone)... " >&6; } 24170 if ${pmix_cv___attribute__optnone+:} false; then : 24171 $as_echo_n "(cached) " >&6 24172else 24173 24174 # 24175 # Try to compile using the C compiler 24176 # 24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24178/* end confdefs.h. */ 24179 24180 void __attribute__ ((__optnone__)) foo(void); 24181 void foo(void) { return ; } 24182 24183int 24184main () 24185{ 24186 24187 ; 24188 return 0; 24189} 24190_ACEOF 24191if ac_fn_c_try_compile "$LINENO"; then : 24192 24193 # 24194 # In case we did succeed: Fine, but was this due to the 24195 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 24196 # and if found, reset the pmix_cv__attribute__var=0 24197 # 24198 pmix_cv___attribute__optnone=1 24199 24200 24201 if test -s conftest.err ; then 24202 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 24203 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 24204 for i in invalid ignore skip undefined ; do 24205 $GREP -iq $i conftest.err 24206 if test "$?" = "0" ; then 24207 pmix_cv___attribute__optnone=0 24208 break; 24209 fi 24210 done 24211 fi 24212 24213 24214else 24215 pmix_cv___attribute__optnone=0 24216fi 24217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24218 24219fi 24220 24221 24222 if test "$pmix_cv___attribute__optnone" = "1" ; then 24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24224$as_echo "yes" >&6; } 24225 else 24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24227$as_echo "no" >&6; } 24228 fi 24229 24230 24231 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(extension)" >&5 24233$as_echo_n "checking for __attribute__(extension)... " >&6; } 24234 if ${pmix_cv___attribute__extension+:} false; then : 24235 $as_echo_n "(cached) " >&6 24236else 24237 24238 # 24239 # Try to compile using the C compiler 24240 # 24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24242/* end confdefs.h. */ 24243 24244 int i = __extension__ 3; 24245 24246int 24247main () 24248{ 24249 24250 ; 24251 return 0; 24252} 24253_ACEOF 24254if ac_fn_c_try_compile "$LINENO"; then : 24255 24256 # 24257 # In case we did succeed: Fine, but was this due to the 24258 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 24259 # and if found, reset the pmix_cv__attribute__var=0 24260 # 24261 pmix_cv___attribute__extension=1 24262 24263 24264 if test -s conftest.err ; then 24265 # icc uses 'invalid attribute' and 'attribute "__XXX__" ignored' 24266 # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined' 24267 for i in invalid ignore skip undefined ; do 24268 $GREP -iq $i conftest.err 24269 if test "$?" = "0" ; then 24270 pmix_cv___attribute__extension=0 24271 break; 24272 fi 24273 done 24274 fi 24275 24276 24277else 24278 pmix_cv___attribute__extension=0 24279fi 24280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24281 24282fi 24283 24284 24285 if test "$pmix_cv___attribute__extension" = "1" ; then 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24287$as_echo "yes" >&6; } 24288 else 24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24290$as_echo "no" >&6; } 24291 fi 24292 24293 fi 24294 24295 # Now that all the values are set, define them 24296 24297 24298cat >>confdefs.h <<_ACEOF 24299#define PMIX_HAVE_ATTRIBUTE_ALIGNED $pmix_cv___attribute__aligned 24300_ACEOF 24301 24302 24303cat >>confdefs.h <<_ACEOF 24304#define PMIX_HAVE_ATTRIBUTE_ALWAYS_INLINE $pmix_cv___attribute__always_inline 24305_ACEOF 24306 24307 24308cat >>confdefs.h <<_ACEOF 24309#define PMIX_HAVE_ATTRIBUTE_COLD $pmix_cv___attribute__cold 24310_ACEOF 24311 24312 24313cat >>confdefs.h <<_ACEOF 24314#define PMIX_HAVE_ATTRIBUTE_CONST $pmix_cv___attribute__const 24315_ACEOF 24316 24317 24318cat >>confdefs.h <<_ACEOF 24319#define PMIX_HAVE_ATTRIBUTE_DEPRECATED $pmix_cv___attribute__deprecated 24320_ACEOF 24321 24322 24323cat >>confdefs.h <<_ACEOF 24324#define PMIX_HAVE_ATTRIBUTE_DEPRECATED_ARGUMENT $pmix_cv___attribute__deprecated_argument 24325_ACEOF 24326 24327 24328cat >>confdefs.h <<_ACEOF 24329#define PMIX_HAVE_ATTRIBUTE_FORMAT $pmix_cv___attribute__format 24330_ACEOF 24331 24332 24333cat >>confdefs.h <<_ACEOF 24334#define PMIX_HAVE_ATTRIBUTE_FORMAT_FUNCPTR $pmix_cv___attribute__format_funcptr 24335_ACEOF 24336 24337 24338cat >>confdefs.h <<_ACEOF 24339#define PMIX_HAVE_ATTRIBUTE_HOT $pmix_cv___attribute__hot 24340_ACEOF 24341 24342 24343cat >>confdefs.h <<_ACEOF 24344#define PMIX_HAVE_ATTRIBUTE_MALLOC $pmix_cv___attribute__malloc 24345_ACEOF 24346 24347 24348cat >>confdefs.h <<_ACEOF 24349#define PMIX_HAVE_ATTRIBUTE_MAY_ALIAS $pmix_cv___attribute__may_alias 24350_ACEOF 24351 24352 24353cat >>confdefs.h <<_ACEOF 24354#define PMIX_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $pmix_cv___attribute__no_instrument_function 24355_ACEOF 24356 24357 24358cat >>confdefs.h <<_ACEOF 24359#define PMIX_HAVE_ATTRIBUTE_NONNULL $pmix_cv___attribute__nonnull 24360_ACEOF 24361 24362 24363cat >>confdefs.h <<_ACEOF 24364#define PMIX_HAVE_ATTRIBUTE_NORETURN $pmix_cv___attribute__noreturn 24365_ACEOF 24366 24367 24368cat >>confdefs.h <<_ACEOF 24369#define PMIX_HAVE_ATTRIBUTE_NORETURN_FUNCPTR $pmix_cv___attribute__noreturn_funcptr 24370_ACEOF 24371 24372 24373cat >>confdefs.h <<_ACEOF 24374#define PMIX_HAVE_ATTRIBUTE_PACKED $pmix_cv___attribute__packed 24375_ACEOF 24376 24377 24378cat >>confdefs.h <<_ACEOF 24379#define PMIX_HAVE_ATTRIBUTE_PURE $pmix_cv___attribute__pure 24380_ACEOF 24381 24382 24383cat >>confdefs.h <<_ACEOF 24384#define PMIX_HAVE_ATTRIBUTE_SENTINEL $pmix_cv___attribute__sentinel 24385_ACEOF 24386 24387 24388cat >>confdefs.h <<_ACEOF 24389#define PMIX_HAVE_ATTRIBUTE_UNUSED $pmix_cv___attribute__unused 24390_ACEOF 24391 24392 24393cat >>confdefs.h <<_ACEOF 24394#define PMIX_HAVE_ATTRIBUTE_VISIBILITY $pmix_cv___attribute__visibility 24395_ACEOF 24396 24397 24398cat >>confdefs.h <<_ACEOF 24399#define PMIX_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $pmix_cv___attribute__warn_unused_result 24400_ACEOF 24401 24402 24403cat >>confdefs.h <<_ACEOF 24404#define PMIX_HAVE_ATTRIBUTE_WEAK_ALIAS $pmix_cv___attribute__weak_alias 24405_ACEOF 24406 24407 24408cat >>confdefs.h <<_ACEOF 24409#define PMIX_HAVE_ATTRIBUTE_DESTRUCTOR $pmix_cv___attribute__destructor 24410_ACEOF 24411 24412 24413cat >>confdefs.h <<_ACEOF 24414#define PMIX_HAVE_ATTRIBUTE_OPTNONE $pmix_cv___attribute__optnone 24415_ACEOF 24416 24417 24418cat >>confdefs.h <<_ACEOF 24419#define PMIX_HAVE_ATTRIBUTE_EXTENSION $pmix_cv___attribute__extension 24420_ACEOF 24421 24422 24423 24424 24425 lower=familyid 24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5 24427$as_echo_n "checking for compiler $lower... " >&6; } 24428if ${pmix_cv_compiler_FAMILYID+:} false; then : 24429 $as_echo_n "(cached) " >&6 24430else 24431 24432 CPPFLAGS_orig=$CPPFLAGS 24433 CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS" 24434 if test "$cross_compiling" = yes; then : 24435 24436 eval pmix_cv_compiler_FAMILYID=0 24437 24438else 24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24440/* end confdefs.h. */ 24441 24442#include <stdio.h> 24443#include <stdlib.h> 24444#include "pmix_portable_platform.h" 24445 24446int main (int argc, char * argv[]) 24447{ 24448 FILE * f; 24449 f=fopen("conftestval", "w"); 24450 if (!f) exit(1); 24451 fprintf (f, "%d", PLATFORM_COMPILER_FAMILYID); 24452 fclose(f); 24453 return 0; 24454} 24455 24456_ACEOF 24457if ac_fn_c_try_run "$LINENO"; then : 24458 24459 eval pmix_cv_compiler_FAMILYID=`cat conftestval`; 24460 24461else 24462 24463 eval pmix_cv_compiler_FAMILYID=0 24464 24465fi 24466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24467 conftest.$ac_objext conftest.beam conftest.$ac_ext 24468fi 24469 24470 CPPFLAGS=$CPPFLAGS_orig 24471 24472fi 24473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_FAMILYID" >&5 24474$as_echo "$pmix_cv_compiler_FAMILYID" >&6; } 24475 24476cat >>confdefs.h <<_ACEOF 24477#define PMIX_BUILD_PLATFORM_COMPILER_FAMILYID $pmix_cv_compiler_FAMILYID 24478_ACEOF 24479 24480 24481 24482 lower=familyname 24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5 24484$as_echo_n "checking for compiler $lower... " >&6; } 24485if ${pmix_cv_compiler_FAMILYNAME+:} false; then : 24486 $as_echo_n "(cached) " >&6 24487else 24488 24489 CPPFLAGS_orig=$CPPFLAGS 24490 CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS" 24491 if test "$cross_compiling" = yes; then : 24492 24493 eval pmix_cv_compiler_FAMILYNAME=UNKNOWN 24494 24495else 24496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24497/* end confdefs.h. */ 24498 24499#include <stdio.h> 24500#include <stdlib.h> 24501#include "pmix_portable_platform.h" 24502 24503int main (int argc, char * argv[]) 24504{ 24505 FILE * f; 24506 f=fopen("conftestval", "w"); 24507 if (!f) exit(1); 24508 fprintf (f, "%s", _STRINGIFY(PLATFORM_COMPILER_FAMILYNAME)); 24509 fclose(f); 24510 return 0; 24511} 24512 24513_ACEOF 24514if ac_fn_c_try_run "$LINENO"; then : 24515 24516 eval pmix_cv_compiler_FAMILYNAME=`cat conftestval`; 24517 24518else 24519 24520 eval pmix_cv_compiler_FAMILYNAME=UNKNOWN 24521 24522fi 24523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24524 conftest.$ac_objext conftest.beam conftest.$ac_ext 24525fi 24526 24527 CPPFLAGS=$CPPFLAGS_orig 24528 24529fi 24530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_FAMILYNAME" >&5 24531$as_echo "$pmix_cv_compiler_FAMILYNAME" >&6; } 24532 24533cat >>confdefs.h <<_ACEOF 24534#define PMIX_BUILD_PLATFORM_COMPILER_FAMILYNAME $pmix_cv_compiler_FAMILYNAME 24535_ACEOF 24536 24537 24538 24539 lower=version 24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5 24541$as_echo_n "checking for compiler $lower... " >&6; } 24542if ${pmix_cv_compiler_VERSION+:} false; then : 24543 $as_echo_n "(cached) " >&6 24544else 24545 24546 CPPFLAGS_orig=$CPPFLAGS 24547 CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS" 24548 if test "$cross_compiling" = yes; then : 24549 24550 eval pmix_cv_compiler_VERSION=0 24551 24552else 24553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24554/* end confdefs.h. */ 24555 24556#include <stdio.h> 24557#include <stdlib.h> 24558#include "pmix_portable_platform.h" 24559 24560int main (int argc, char * argv[]) 24561{ 24562 FILE * f; 24563 f=fopen("conftestval", "w"); 24564 if (!f) exit(1); 24565 fprintf (f, "%d", PLATFORM_COMPILER_VERSION); 24566 fclose(f); 24567 return 0; 24568} 24569 24570_ACEOF 24571if ac_fn_c_try_run "$LINENO"; then : 24572 24573 eval pmix_cv_compiler_VERSION=`cat conftestval`; 24574 24575else 24576 24577 eval pmix_cv_compiler_VERSION=0 24578 24579fi 24580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24581 conftest.$ac_objext conftest.beam conftest.$ac_ext 24582fi 24583 24584 CPPFLAGS=$CPPFLAGS_orig 24585 24586fi 24587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_VERSION" >&5 24588$as_echo "$pmix_cv_compiler_VERSION" >&6; } 24589 24590cat >>confdefs.h <<_ACEOF 24591#define PMIX_BUILD_PLATFORM_COMPILER_VERSION $pmix_cv_compiler_VERSION 24592_ACEOF 24593 24594 24595 24596 lower=version_str 24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5 24598$as_echo_n "checking for compiler $lower... " >&6; } 24599if ${pmix_cv_compiler_VERSION_STR+:} false; then : 24600 $as_echo_n "(cached) " >&6 24601else 24602 24603 CPPFLAGS_orig=$CPPFLAGS 24604 CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS" 24605 if test "$cross_compiling" = yes; then : 24606 24607 eval pmix_cv_compiler_VERSION_STR=UNKNOWN 24608 24609else 24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24611/* end confdefs.h. */ 24612 24613#include <stdio.h> 24614#include <stdlib.h> 24615#include "pmix_portable_platform.h" 24616 24617int main (int argc, char * argv[]) 24618{ 24619 FILE * f; 24620 f=fopen("conftestval", "w"); 24621 if (!f) exit(1); 24622 fprintf (f, "%s", PLATFORM_COMPILER_VERSION_STR); 24623 fclose(f); 24624 return 0; 24625} 24626 24627_ACEOF 24628if ac_fn_c_try_run "$LINENO"; then : 24629 24630 eval pmix_cv_compiler_VERSION_STR=`cat conftestval`; 24631 24632else 24633 24634 eval pmix_cv_compiler_VERSION_STR=UNKNOWN 24635 24636fi 24637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24638 conftest.$ac_objext conftest.beam conftest.$ac_ext 24639fi 24640 24641 CPPFLAGS=$CPPFLAGS_orig 24642 24643fi 24644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_VERSION_STR" >&5 24645$as_echo "$pmix_cv_compiler_VERSION_STR" >&6; } 24646 24647cat >>confdefs.h <<_ACEOF 24648#define PMIX_BUILD_PLATFORM_COMPILER_VERSION_STR $pmix_cv_compiler_VERSION_STR 24649_ACEOF 24650 24651 24652 24653 24654 ################################## 24655 # Assembler Configuration 24656 ################################## 24657 24658 pmix_show_subtitle "Assembler" 24659 24660 # By default we simply use the C compiler to build assembly code. 24661 24662test "${CCAS+set}" = set || CCAS=$CC 24663test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 24664 24665 24666 24667depcc="$CCAS" am_compiler_list= 24668 24669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 24670$as_echo_n "checking dependency style of $depcc... " >&6; } 24671if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 24672 $as_echo_n "(cached) " >&6 24673else 24674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 24675 # We make a subdir and do the tests there. Otherwise we can end up 24676 # making bogus files that we don't know about and never remove. For 24677 # instance it was reported that on HP-UX the gcc test will end up 24678 # making a dummy file named 'D' -- because '-MD' means "put the output 24679 # in D". 24680 rm -rf conftest.dir 24681 mkdir conftest.dir 24682 # Copy depcomp to subdir because otherwise we won't find it if we're 24683 # using a relative directory. 24684 cp "$am_depcomp" conftest.dir 24685 cd conftest.dir 24686 # We will build objects and dependencies in a subdirectory because 24687 # it helps to detect inapplicable dependency modes. For instance 24688 # both Tru64's cc and ICC support -MD to output dependencies as a 24689 # side effect of compilation, but ICC will put the dependencies in 24690 # the current directory while Tru64 will put them in the object 24691 # directory. 24692 mkdir sub 24693 24694 am_cv_CCAS_dependencies_compiler_type=none 24695 if test "$am_compiler_list" = ""; then 24696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 24697 fi 24698 am__universal=false 24699 24700 24701 for depmode in $am_compiler_list; do 24702 # Setup a source with many dependencies, because some compilers 24703 # like to wrap large dependency lists on column 80 (with \), and 24704 # we should not choose a depcomp mode which is confused by this. 24705 # 24706 # We need to recreate these files for each test, as the compiler may 24707 # overwrite some of them when testing with obscure command lines. 24708 # This happens at least with the AIX C compiler. 24709 : > sub/conftest.c 24710 for i in 1 2 3 4 5 6; do 24711 echo '#include "conftst'$i'.h"' >> sub/conftest.c 24712 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 24713 # Solaris 10 /bin/sh. 24714 echo '/* dummy */' > sub/conftst$i.h 24715 done 24716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 24717 24718 # We check with '-c' and '-o' for the sake of the "dashmstdout" 24719 # mode. It turns out that the SunPro C++ compiler does not properly 24720 # handle '-M -o', and we need to detect this. Also, some Intel 24721 # versions had trouble with output in subdirs. 24722 am__obj=sub/conftest.${OBJEXT-o} 24723 am__minus_obj="-o $am__obj" 24724 case $depmode in 24725 gcc) 24726 # This depmode causes a compiler race in universal mode. 24727 test "$am__universal" = false || continue 24728 ;; 24729 nosideeffect) 24730 # After this tag, mechanisms are not by side-effect, so they'll 24731 # only be used when explicitly requested. 24732 if test "x$enable_dependency_tracking" = xyes; then 24733 continue 24734 else 24735 break 24736 fi 24737 ;; 24738 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 24739 # This compiler won't grok '-c -o', but also, the minuso test has 24740 # not run yet. These depmodes are late enough in the game, and 24741 # so weak that their functioning should not be impacted. 24742 am__obj=conftest.${OBJEXT-o} 24743 am__minus_obj= 24744 ;; 24745 none) break ;; 24746 esac 24747 if depmode=$depmode \ 24748 source=sub/conftest.c object=$am__obj \ 24749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 24750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 24751 >/dev/null 2>conftest.err && 24752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 24753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 24754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 24755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 24756 # icc doesn't choke on unknown options, it will just issue warnings 24757 # or remarks (even with -Werror). So we grep stderr for any message 24758 # that says an option was ignored or not supported. 24759 # When given -MP, icc 7.0 and 7.1 complain thusly: 24760 # icc: Command line warning: ignoring option '-M'; no argument required 24761 # The diagnosis changed in icc 8.0: 24762 # icc: Command line remark: option '-MP' not supported 24763 if (grep 'ignoring option' conftest.err || 24764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 24765 am_cv_CCAS_dependencies_compiler_type=$depmode 24766 break 24767 fi 24768 fi 24769 done 24770 24771 cd .. 24772 rm -rf conftest.dir 24773else 24774 am_cv_CCAS_dependencies_compiler_type=none 24775fi 24776 24777fi 24778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 24779$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 24780CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 24781 24782 if 24783 test "x$enable_dependency_tracking" != xno \ 24784 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 24785 am__fastdepCCAS_TRUE= 24786 am__fastdepCCAS_FALSE='#' 24787else 24788 am__fastdepCCAS_TRUE='#' 24789 am__fastdepCCAS_FALSE= 24790fi 24791 24792 24793 # Extract the first word of "perl", so it can be a program name with args. 24794set dummy perl; ac_word=$2 24795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24796$as_echo_n "checking for $ac_word... " >&6; } 24797if ${ac_cv_path_PERL+:} false; then : 24798 $as_echo_n "(cached) " >&6 24799else 24800 case $PERL in 24801 [\\/]* | ?:[\\/]*) 24802 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 24803 ;; 24804 *) 24805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24806for as_dir in $PATH 24807do 24808 IFS=$as_save_IFS 24809 test -z "$as_dir" && as_dir=. 24810 for ac_exec_ext in '' $ac_executable_extensions; do 24811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24812 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 24813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24814 break 2 24815 fi 24816done 24817 done 24818IFS=$as_save_IFS 24819 24820 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 24821 ;; 24822esac 24823fi 24824PERL=$ac_cv_path_PERL 24825if test -n "$PERL"; then 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 24827$as_echo "$PERL" >&6; } 24828else 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24830$as_echo "no" >&6; } 24831fi 24832 24833 24834 24835 24836 24837 # Check whether --enable-c11-atomics was given. 24838if test "${enable_c11_atomics+set}" = set; then : 24839 enableval=$enable_c11_atomics; 24840fi 24841 24842 # Check whether --enable-builtin-atomics was given. 24843if test "${enable_builtin_atomics+set}" = set; then : 24844 enableval=$enable_builtin_atomics; 24845fi 24846 24847 24848 24849 24850 # Is the private index set? If not, set it. 24851 if test "x$pmix_scope_index" = "x"; then 24852 pmix_scope_index=1 24853 fi 24854 24855 # First, check to see if any of these variables are already set. 24856 # This is a simple sanity check to ensure we're not already 24857 # overwriting pre-existing variables (that have a non-empty 24858 # value). It's not a perfect check, but at least it's something. 24859 for pmix_var in atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save; do 24860 pmix_str="pmix_str=\"\$$pmix_var\"" 24861 eval $pmix_str 24862 24863 if test "x$pmix_str" != "x"; then 24864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 24865$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 24866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 24867$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 24868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 24869$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 24870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 24871$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 24872 as_fn_error $? "Cannot continue" "$LINENO" 5 24873 fi 24874 done 24875 24876 # Ok, we passed the simple sanity check. Save all these names so 24877 # that we can unset them at the end of the scope. 24878 pmix_str="pmix_scope_$pmix_scope_index=\"atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save\"" 24879 eval $pmix_str 24880 unset pmix_str 24881 24882 env | grep pmix_scope 24883 pmix_scope_index=`expr $pmix_scope_index + 1` 24884 24885 atomic_compare_exchange_CFLAGS_save=$CFLAGS 24886 atomic_compare_exchange_LIBS_save=$LIBS 24887 # Do we have C11 atomics on 128-bit integers? 24888 # Use a special macro because we need to check with a few different 24889 # CFLAGS/LIBS. 24890 24891 24892 24893 # Is the private index set? If not, set it. 24894 if test "x$pmix_scope_index" = "x"; then 24895 pmix_scope_index=1 24896 fi 24897 24898 # First, check to see if any of these variables are already set. 24899 # This is a simple sanity check to ensure we're not already 24900 # overwriting pre-existing variables (that have a non-empty 24901 # value). It's not a perfect check, but at least it's something. 24902 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 24903 pmix_str="pmix_str=\"\$$pmix_var\"" 24904 eval $pmix_str 24905 24906 if test "x$pmix_str" != "x"; then 24907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 24908$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 24909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 24910$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 24911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 24912$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 24913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 24914$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 24915 as_fn_error $? "Cannot continue" "$LINENO" 5 24916 fi 24917 done 24918 24919 # Ok, we passed the simple sanity check. Save all these names so 24920 # that we can unset them at the end of the scope. 24921 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 24922 eval $pmix_str 24923 unset pmix_str 24924 24925 env | grep pmix_scope 24926 pmix_scope_index=`expr $pmix_scope_index + 1` 24927 24928 pmix_asm_check_func_CFLAGS_save=$CFLAGS 24929 pmix_asm_check_func_LIBS_save=$LIBS 24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16" >&5 24931$as_echo_n "checking for atomic_compare_exchange_strong_16... " >&6; } 24932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24933/* end confdefs.h. */ 24934 24935#include <stdint.h> 24936#include <stdbool.h> 24937#include <stdlib.h> 24938#include <stdatomic.h> 24939typedef union { 24940 uint64_t fake[2]; 24941 _Atomic __int128 real; 24942 __int128 real2; 24943} pmix128; 24944static void test1(void) 24945{ 24946 // As of Aug 2018, we could not figure out a way to assign 128-bit 24947 // constants -- the compilers would not accept it. So use a fake 24948 // union to assign 2 uin64_t's to make a single __int128. 24949 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 24950 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 24951 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 24952 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 24953 desired.real); 24954 if ( !(r == false && ptr.real == expected.real)) { 24955 exit(1); 24956 } 24957} 24958static void test2(void) 24959{ 24960 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 24961 pmix128 expected = ptr; 24962 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 24963 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 24964 desired.real); 24965 if (!(r == true && ptr.real == desired.real)) { 24966 exit(2); 24967 } 24968} 24969int main(int argc, char** argv) 24970{ 24971 test1(); 24972 test2(); 24973 return 0; 24974} 24975 24976_ACEOF 24977if ac_fn_c_try_link "$LINENO"; then : 24978 pmix_asm_check_func_happy=1 24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24980$as_echo "yes" >&6; } 24981else 24982 pmix_asm_check_func_happy=0 24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24984$as_echo "no" >&6; } 24985fi 24986rm -f core conftest.err conftest.$ac_objext \ 24987 conftest$ac_exeext conftest.$ac_ext 24988 if test $pmix_asm_check_func_happy -eq 0; then : 24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -mcx16" >&5 24990$as_echo_n "checking for atomic_compare_exchange_strong_16 with -mcx16... " >&6; } 24991 CFLAGS="$CFLAGS -mcx16" 24992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24993/* end confdefs.h. */ 24994 24995#include <stdint.h> 24996#include <stdbool.h> 24997#include <stdlib.h> 24998#include <stdatomic.h> 24999typedef union { 25000 uint64_t fake[2]; 25001 _Atomic __int128 real; 25002 __int128 real2; 25003} pmix128; 25004static void test1(void) 25005{ 25006 // As of Aug 2018, we could not figure out a way to assign 128-bit 25007 // constants -- the compilers would not accept it. So use a fake 25008 // union to assign 2 uin64_t's to make a single __int128. 25009 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25010 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25011 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25012 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 25013 desired.real); 25014 if ( !(r == false && ptr.real == expected.real)) { 25015 exit(1); 25016 } 25017} 25018static void test2(void) 25019{ 25020 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25021 pmix128 expected = ptr; 25022 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25023 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 25024 desired.real); 25025 if (!(r == true && ptr.real == desired.real)) { 25026 exit(2); 25027 } 25028} 25029int main(int argc, char** argv) 25030{ 25031 test1(); 25032 test2(); 25033 return 0; 25034} 25035 25036_ACEOF 25037if ac_fn_c_try_link "$LINENO"; then : 25038 pmix_asm_check_func_happy=1 25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25040$as_echo "yes" >&6; } 25041else 25042 pmix_asm_check_func_happy=0 25043 CFLAGS=$pmix_asm_check_func_CFLAGS_save 25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25045$as_echo "no" >&6; } 25046fi 25047rm -f core conftest.err conftest.$ac_objext \ 25048 conftest$ac_exeext conftest.$ac_ext 25049 25050fi 25051 if test $pmix_asm_check_func_happy -eq 0; then : 25052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -latomic" >&5 25053$as_echo_n "checking for atomic_compare_exchange_strong_16 with -latomic... " >&6; } 25054 LIBS="$LIBS -latomic" 25055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25056/* end confdefs.h. */ 25057 25058#include <stdint.h> 25059#include <stdbool.h> 25060#include <stdlib.h> 25061#include <stdatomic.h> 25062typedef union { 25063 uint64_t fake[2]; 25064 _Atomic __int128 real; 25065 __int128 real2; 25066} pmix128; 25067static void test1(void) 25068{ 25069 // As of Aug 2018, we could not figure out a way to assign 128-bit 25070 // constants -- the compilers would not accept it. So use a fake 25071 // union to assign 2 uin64_t's to make a single __int128. 25072 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25073 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25074 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25075 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 25076 desired.real); 25077 if ( !(r == false && ptr.real == expected.real)) { 25078 exit(1); 25079 } 25080} 25081static void test2(void) 25082{ 25083 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25084 pmix128 expected = ptr; 25085 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25086 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 25087 desired.real); 25088 if (!(r == true && ptr.real == desired.real)) { 25089 exit(2); 25090 } 25091} 25092int main(int argc, char** argv) 25093{ 25094 test1(); 25095 test2(); 25096 return 0; 25097} 25098 25099_ACEOF 25100if ac_fn_c_try_link "$LINENO"; then : 25101 pmix_asm_check_func_happy=1 25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25103$as_echo "yes" >&6; } 25104else 25105 pmix_asm_check_func_happy=0 25106 LIBS=$pmix_asm_check_func_LIBS_save 25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25108$as_echo "no" >&6; } 25109fi 25110rm -f core conftest.err conftest.$ac_objext \ 25111 conftest$ac_exeext conftest.$ac_ext 25112 25113fi 25114 if test $pmix_asm_check_func_happy -eq 1; then : 25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic_compare_exchange_strong_16() gives correct results" >&5 25116$as_echo_n "checking if atomic_compare_exchange_strong_16() gives correct results... " >&6; } 25117 if test "$cross_compiling" = yes; then : 25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 25119$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 25120else 25121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25122/* end confdefs.h. */ 25123 25124#include <stdint.h> 25125#include <stdbool.h> 25126#include <stdlib.h> 25127#include <stdatomic.h> 25128typedef union { 25129 uint64_t fake[2]; 25130 _Atomic __int128 real; 25131 __int128 real2; 25132} pmix128; 25133static void test1(void) 25134{ 25135 // As of Aug 2018, we could not figure out a way to assign 128-bit 25136 // constants -- the compilers would not accept it. So use a fake 25137 // union to assign 2 uin64_t's to make a single __int128. 25138 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25139 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25140 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25141 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 25142 desired.real); 25143 if ( !(r == false && ptr.real == expected.real)) { 25144 exit(1); 25145 } 25146} 25147static void test2(void) 25148{ 25149 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25150 pmix128 expected = ptr; 25151 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25152 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 25153 desired.real); 25154 if (!(r == true && ptr.real == desired.real)) { 25155 exit(2); 25156 } 25157} 25158int main(int argc, char** argv) 25159{ 25160 test1(); 25161 test2(); 25162 return 0; 25163} 25164 25165_ACEOF 25166if ac_fn_c_try_run "$LINENO"; then : 25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25168$as_echo "yes" >&6; } 25169else 25170 pmix_asm_check_func_happy=0 25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25172$as_echo "no" >&6; } 25173fi 25174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25175 conftest.$ac_objext conftest.beam conftest.$ac_ext 25176fi 25177 25178 25179fi 25180 if test $pmix_asm_check_func_happy -eq 0; then : 25181 CFLAGS=$pmix_asm_check_func_CFLAGS_save 25182 LIBS=$pmix_asm_check_func_LIBS_save 25183fi 25184 if test $pmix_asm_check_func_happy -eq 1; then : 25185 atomic_compare_exchange_result=1 25186else 25187 atomic_compare_exchange_result=0 25188fi 25189 25190 # Unwind the index 25191 pmix_scope_index=`expr $pmix_scope_index - 1` 25192 pmix_scope_test=`expr $pmix_scope_index \> 0` 25193 if test "$pmix_scope_test" = "0"; then 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 25195$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 25196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25197$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25198 as_fn_error $? "Cannot continue" "$LINENO" 5 25199 fi 25200 25201 # Get the variable names from that index 25202 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 25203 eval $pmix_str 25204 25205 # Iterate over all the variables and unset them all 25206 for pmix_var in $pmix_str; do 25207 unset $pmix_var 25208 done 25209 25210 25211 # If we have it and it works, check to make sure it is always lock 25212 # free. 25213 if test $atomic_compare_exchange_result -eq 1; then : 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C11 __int128 atomic compare-and-swap is always lock-free" >&5 25215$as_echo_n "checking if C11 __int128 atomic compare-and-swap is always lock-free... " >&6; } 25216 if test "$cross_compiling" = yes; then : 25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 25218$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 25219else 25220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25221/* end confdefs.h. */ 25222#include <stdatomic.h> 25223int 25224main () 25225{ 25226_Atomic __int128_t x; if (!atomic_is_lock_free(&x)) { return 1; } 25227 ; 25228 return 0; 25229} 25230_ACEOF 25231if ac_fn_c_try_run "$LINENO"; then : 25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25233$as_echo "yes" >&6; } 25234else 25235 atomic_compare_exchange_result=0 25236 # If this test fails, need to reset CFLAGS/LIBS (the 25237 # above tests atomically set CFLAGS/LIBS or not; this 25238 # test is running after the fact, so we have to undo 25239 # the side-effects of setting CFLAGS/LIBS if the above 25240 # tests passed). 25241 CFLAGS=$atomic_compare_exchange_CFLAGS_save 25242 LIBS=$atomic_compare_exchange_LIBS_save 25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25244$as_echo "no" >&6; } 25245fi 25246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25247 conftest.$ac_objext conftest.beam conftest.$ac_ext 25248fi 25249 25250 25251fi 25252 25253cat >>confdefs.h <<_ACEOF 25254#define PMIX_HAVE_C11_CSWAP_INT128 $atomic_compare_exchange_result 25255_ACEOF 25256 25257 if test $atomic_compare_exchange_result -eq 0; then : 25258 25259 25260 25261 # Is the private index set? If not, set it. 25262 if test "x$pmix_scope_index" = "x"; then 25263 pmix_scope_index=1 25264 fi 25265 25266 # First, check to see if any of these variables are already set. 25267 # This is a simple sanity check to ensure we're not already 25268 # overwriting pre-existing variables (that have a non-empty 25269 # value). It's not a perfect check, but at least it's something. 25270 for pmix_var in sync_bool_compare_and_swap_128_result; do 25271 pmix_str="pmix_str=\"\$$pmix_var\"" 25272 eval $pmix_str 25273 25274 if test "x$pmix_str" != "x"; then 25275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 25276$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 25278$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 25280$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 25281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25282$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25283 as_fn_error $? "Cannot continue" "$LINENO" 5 25284 fi 25285 done 25286 25287 # Ok, we passed the simple sanity check. Save all these names so 25288 # that we can unset them at the end of the scope. 25289 pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\"" 25290 eval $pmix_str 25291 unset pmix_str 25292 25293 env | grep pmix_scope 25294 pmix_scope_index=`expr $pmix_scope_index + 1` 25295 25296 # Do we have __sync_bool_compare_and_swap? 25297 # Use a special macro because we need to check with a few different 25298 # CFLAGS/LIBS. 25299 25300 25301 25302 # Is the private index set? If not, set it. 25303 if test "x$pmix_scope_index" = "x"; then 25304 pmix_scope_index=1 25305 fi 25306 25307 # First, check to see if any of these variables are already set. 25308 # This is a simple sanity check to ensure we're not already 25309 # overwriting pre-existing variables (that have a non-empty 25310 # value). It's not a perfect check, but at least it's something. 25311 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 25312 pmix_str="pmix_str=\"\$$pmix_var\"" 25313 eval $pmix_str 25314 25315 if test "x$pmix_str" != "x"; then 25316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 25317$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 25319$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 25320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 25321$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 25322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25323$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25324 as_fn_error $? "Cannot continue" "$LINENO" 5 25325 fi 25326 done 25327 25328 # Ok, we passed the simple sanity check. Save all these names so 25329 # that we can unset them at the end of the scope. 25330 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 25331 eval $pmix_str 25332 unset pmix_str 25333 25334 env | grep pmix_scope 25335 pmix_scope_index=`expr $pmix_scope_index + 1` 25336 25337 pmix_asm_check_func_CFLAGS_save=$CFLAGS 25338 pmix_asm_check_func_LIBS_save=$LIBS 25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 25340$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } 25341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25342/* end confdefs.h. */ 25343 25344#include <stdint.h> 25345#include <stdbool.h> 25346#include <stdlib.h> 25347typedef union { 25348 uint64_t fake[2]; 25349 __int128 real; 25350} pmix128; 25351static void test1(void) 25352{ 25353 // As of Aug 2018, we could not figure out a way to assign 128-bit 25354 // constants -- the compilers would not accept it. So use a fake 25355 // union to assign 2 uin64_t's to make a single __int128. 25356 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25357 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25358 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25359 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25360 if (!(r == false && ptr.real != newval.real)) { 25361 exit(1); 25362 } 25363} 25364static void test2(void) 25365{ 25366 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25367 pmix128 oldval = ptr; 25368 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25369 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25370 if (!(r == true && ptr.real == newval.real)) { 25371 exit(2); 25372 } 25373} 25374int main(int argc, char** argv) 25375{ 25376 test1(); 25377 test2(); 25378 return 0; 25379} 25380 25381_ACEOF 25382if ac_fn_c_try_link "$LINENO"; then : 25383 pmix_asm_check_func_happy=1 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25385$as_echo "yes" >&6; } 25386else 25387 pmix_asm_check_func_happy=0 25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25389$as_echo "no" >&6; } 25390fi 25391rm -f core conftest.err conftest.$ac_objext \ 25392 conftest$ac_exeext conftest.$ac_ext 25393 if test $pmix_asm_check_func_happy -eq 0; then : 25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 25395$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } 25396 CFLAGS="$CFLAGS -mcx16" 25397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25398/* end confdefs.h. */ 25399 25400#include <stdint.h> 25401#include <stdbool.h> 25402#include <stdlib.h> 25403typedef union { 25404 uint64_t fake[2]; 25405 __int128 real; 25406} pmix128; 25407static void test1(void) 25408{ 25409 // As of Aug 2018, we could not figure out a way to assign 128-bit 25410 // constants -- the compilers would not accept it. So use a fake 25411 // union to assign 2 uin64_t's to make a single __int128. 25412 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25413 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25414 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25415 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25416 if (!(r == false && ptr.real != newval.real)) { 25417 exit(1); 25418 } 25419} 25420static void test2(void) 25421{ 25422 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25423 pmix128 oldval = ptr; 25424 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25425 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25426 if (!(r == true && ptr.real == newval.real)) { 25427 exit(2); 25428 } 25429} 25430int main(int argc, char** argv) 25431{ 25432 test1(); 25433 test2(); 25434 return 0; 25435} 25436 25437_ACEOF 25438if ac_fn_c_try_link "$LINENO"; then : 25439 pmix_asm_check_func_happy=1 25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25441$as_echo "yes" >&6; } 25442else 25443 pmix_asm_check_func_happy=0 25444 CFLAGS=$pmix_asm_check_func_CFLAGS_save 25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25446$as_echo "no" >&6; } 25447fi 25448rm -f core conftest.err conftest.$ac_objext \ 25449 conftest$ac_exeext conftest.$ac_ext 25450 25451fi 25452 if test $pmix_asm_check_func_happy -eq 0; then : 25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 25454$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } 25455 LIBS="$LIBS -latomic" 25456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25457/* end confdefs.h. */ 25458 25459#include <stdint.h> 25460#include <stdbool.h> 25461#include <stdlib.h> 25462typedef union { 25463 uint64_t fake[2]; 25464 __int128 real; 25465} pmix128; 25466static void test1(void) 25467{ 25468 // As of Aug 2018, we could not figure out a way to assign 128-bit 25469 // constants -- the compilers would not accept it. So use a fake 25470 // union to assign 2 uin64_t's to make a single __int128. 25471 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25472 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25473 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25474 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25475 if (!(r == false && ptr.real != newval.real)) { 25476 exit(1); 25477 } 25478} 25479static void test2(void) 25480{ 25481 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25482 pmix128 oldval = ptr; 25483 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25484 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25485 if (!(r == true && ptr.real == newval.real)) { 25486 exit(2); 25487 } 25488} 25489int main(int argc, char** argv) 25490{ 25491 test1(); 25492 test2(); 25493 return 0; 25494} 25495 25496_ACEOF 25497if ac_fn_c_try_link "$LINENO"; then : 25498 pmix_asm_check_func_happy=1 25499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25500$as_echo "yes" >&6; } 25501else 25502 pmix_asm_check_func_happy=0 25503 LIBS=$pmix_asm_check_func_LIBS_save 25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25505$as_echo "no" >&6; } 25506fi 25507rm -f core conftest.err conftest.$ac_objext \ 25508 conftest$ac_exeext conftest.$ac_ext 25509 25510fi 25511 if test $pmix_asm_check_func_happy -eq 1; then : 25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 25513$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } 25514 if test "$cross_compiling" = yes; then : 25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 25516$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 25517else 25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25519/* end confdefs.h. */ 25520 25521#include <stdint.h> 25522#include <stdbool.h> 25523#include <stdlib.h> 25524typedef union { 25525 uint64_t fake[2]; 25526 __int128 real; 25527} pmix128; 25528static void test1(void) 25529{ 25530 // As of Aug 2018, we could not figure out a way to assign 128-bit 25531 // constants -- the compilers would not accept it. So use a fake 25532 // union to assign 2 uin64_t's to make a single __int128. 25533 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25534 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25535 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25536 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25537 if (!(r == false && ptr.real != newval.real)) { 25538 exit(1); 25539 } 25540} 25541static void test2(void) 25542{ 25543 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25544 pmix128 oldval = ptr; 25545 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25546 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 25547 if (!(r == true && ptr.real == newval.real)) { 25548 exit(2); 25549 } 25550} 25551int main(int argc, char** argv) 25552{ 25553 test1(); 25554 test2(); 25555 return 0; 25556} 25557 25558_ACEOF 25559if ac_fn_c_try_run "$LINENO"; then : 25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25561$as_echo "yes" >&6; } 25562else 25563 pmix_asm_check_func_happy=0 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25565$as_echo "no" >&6; } 25566fi 25567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25568 conftest.$ac_objext conftest.beam conftest.$ac_ext 25569fi 25570 25571 25572fi 25573 if test $pmix_asm_check_func_happy -eq 0; then : 25574 CFLAGS=$pmix_asm_check_func_CFLAGS_save 25575 LIBS=$pmix_asm_check_func_LIBS_save 25576fi 25577 if test $pmix_asm_check_func_happy -eq 1; then : 25578 sync_bool_compare_and_swap_128_result=1 25579else 25580 sync_bool_compare_and_swap_128_result=0 25581fi 25582 25583 # Unwind the index 25584 pmix_scope_index=`expr $pmix_scope_index - 1` 25585 pmix_scope_test=`expr $pmix_scope_index \> 0` 25586 if test "$pmix_scope_test" = "0"; then 25587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 25588$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 25589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25590$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25591 as_fn_error $? "Cannot continue" "$LINENO" 5 25592 fi 25593 25594 # Get the variable names from that index 25595 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 25596 eval $pmix_str 25597 25598 # Iterate over all the variables and unset them all 25599 for pmix_var in $pmix_str; do 25600 unset $pmix_var 25601 done 25602 25603 25604 25605cat >>confdefs.h <<_ACEOF 25606#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result 25607_ACEOF 25608 25609 25610 # Unwind the index 25611 pmix_scope_index=`expr $pmix_scope_index - 1` 25612 pmix_scope_test=`expr $pmix_scope_index \> 0` 25613 if test "$pmix_scope_test" = "0"; then 25614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 25615$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 25616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25617$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25618 as_fn_error $? "Cannot continue" "$LINENO" 5 25619 fi 25620 25621 # Get the variable names from that index 25622 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 25623 eval $pmix_str 25624 25625 # Iterate over all the variables and unset them all 25626 for pmix_var in $pmix_str; do 25627 unset $pmix_var 25628 done 25629 25630 25631fi 25632 25633 # Unwind the index 25634 pmix_scope_index=`expr $pmix_scope_index - 1` 25635 pmix_scope_test=`expr $pmix_scope_index \> 0` 25636 if test "$pmix_scope_test" = "0"; then 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 25638$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 25639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25640$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25641 as_fn_error $? "Cannot continue" "$LINENO" 5 25642 fi 25643 25644 # Get the variable names from that index 25645 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 25646 eval $pmix_str 25647 25648 # Iterate over all the variables and unset them all 25649 for pmix_var in $pmix_str; do 25650 unset $pmix_var 25651 done 25652 25653 25654 pmix_cv_asm_builtin="BUILTIN_NO" 25655 25656 if test -z "$pmix_cv_have___atomic" ; then 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit GCC built-in atomics" >&5 25658$as_echo_n "checking for 32-bit GCC built-in atomics... " >&6; } 25659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25660/* end confdefs.h. */ 25661 25662#include <stdint.h> 25663uint32_t tmp, old = 0; 25664uint64_t tmp64, old64 = 0; 25665int 25666main () 25667{ 25668 25669__atomic_thread_fence(__ATOMIC_SEQ_CST); 25670__atomic_compare_exchange_n(&tmp, &old, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25671__atomic_add_fetch(&tmp, 1, __ATOMIC_RELAXED); 25672__atomic_compare_exchange_n(&tmp64, &old64, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25673__atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED); 25674 ; 25675 return 0; 25676} 25677_ACEOF 25678if ac_fn_c_try_link "$LINENO"; then : 25679 pmix_cv_have___atomic=yes 25680else 25681 pmix_cv_have___atomic=no 25682fi 25683rm -f core conftest.err conftest.$ac_objext \ 25684 conftest$ac_exeext conftest.$ac_ext 25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_have___atomic" >&5 25686$as_echo "$pmix_cv_have___atomic" >&6; } 25687 if test $pmix_cv_have___atomic = "yes" ; then 25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit GCC built-in atomics" >&5 25689$as_echo_n "checking for 64-bit GCC built-in atomics... " >&6; } 25690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25691/* end confdefs.h. */ 25692 25693#include <stdint.h> 25694uint64_t tmp64, old64 = 0; 25695int 25696main () 25697{ 25698 25699__atomic_compare_exchange_n(&tmp64, &old64, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25700__atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED); 25701 ; 25702 return 0; 25703} 25704_ACEOF 25705if ac_fn_c_try_link "$LINENO"; then : 25706 pmix_cv_have___atomic_64=yes 25707else 25708 pmix_cv_have___atomic_64=no 25709fi 25710rm -f core conftest.err conftest.$ac_objext \ 25711 conftest$ac_exeext conftest.$ac_ext 25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_have___atomic_64" >&5 25713$as_echo "$pmix_cv_have___atomic_64" >&6; } 25714 if test $pmix_cv_have___atomic_64 = "yes" ; then 25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64-bit GCC built-in atomics are lock-free" >&5 25716$as_echo_n "checking if 64-bit GCC built-in atomics are lock-free... " >&6; } 25717 if test "$cross_compiling" = yes; then : 25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 25719$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 25720else 25721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25722/* end confdefs.h. */ 25723 25724int 25725main () 25726{ 25727if (!__atomic_is_lock_free (8, 0)) { return 1; } 25728 ; 25729 return 0; 25730} 25731_ACEOF 25732if ac_fn_c_try_run "$LINENO"; then : 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25734$as_echo "yes" >&6; } 25735else 25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25737$as_echo "no" >&6; } 25738 pmix_cv_have___atomic_64=no 25739fi 25740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25741 conftest.$ac_objext conftest.beam conftest.$ac_ext 25742fi 25743 25744 fi 25745 else 25746 pmix_cv_have___atomic_64=no 25747 fi 25748 # Check for 128-bit support 25749 25750 25751 25752 # Is the private index set? If not, set it. 25753 if test "x$pmix_scope_index" = "x"; then 25754 pmix_scope_index=1 25755 fi 25756 25757 # First, check to see if any of these variables are already set. 25758 # This is a simple sanity check to ensure we're not already 25759 # overwriting pre-existing variables (that have a non-empty 25760 # value). It's not a perfect check, but at least it's something. 25761 for pmix_var in atomic_compare_exchange_n_128_result atomic_compare_exchange_n_128_CFLAGS_save atomic_compare_exchange_n_128_LIBS_save; do 25762 pmix_str="pmix_str=\"\$$pmix_var\"" 25763 eval $pmix_str 25764 25765 if test "x$pmix_str" != "x"; then 25766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 25767$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 25769$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 25771$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25773$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25774 as_fn_error $? "Cannot continue" "$LINENO" 5 25775 fi 25776 done 25777 25778 # Ok, we passed the simple sanity check. Save all these names so 25779 # that we can unset them at the end of the scope. 25780 pmix_str="pmix_scope_$pmix_scope_index=\"atomic_compare_exchange_n_128_result atomic_compare_exchange_n_128_CFLAGS_save atomic_compare_exchange_n_128_LIBS_save\"" 25781 eval $pmix_str 25782 unset pmix_str 25783 25784 env | grep pmix_scope 25785 pmix_scope_index=`expr $pmix_scope_index + 1` 25786 25787 atomic_compare_exchange_n_128_CFLAGS_save=$CFLAGS 25788 atomic_compare_exchange_n_128_LIBS_save=$LIBS 25789 # Do we have __sync_bool_compare_and_swap? 25790 # Use a special macro because we need to check with a few different 25791 # CFLAGS/LIBS. 25792 25793 25794 25795 # Is the private index set? If not, set it. 25796 if test "x$pmix_scope_index" = "x"; then 25797 pmix_scope_index=1 25798 fi 25799 25800 # First, check to see if any of these variables are already set. 25801 # This is a simple sanity check to ensure we're not already 25802 # overwriting pre-existing variables (that have a non-empty 25803 # value). It's not a perfect check, but at least it's something. 25804 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 25805 pmix_str="pmix_str=\"\$$pmix_var\"" 25806 eval $pmix_str 25807 25808 if test "x$pmix_str" != "x"; then 25809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 25810$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 25811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 25812$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 25813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 25814$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 25815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 25816$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 25817 as_fn_error $? "Cannot continue" "$LINENO" 5 25818 fi 25819 done 25820 25821 # Ok, we passed the simple sanity check. Save all these names so 25822 # that we can unset them at the end of the scope. 25823 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 25824 eval $pmix_str 25825 unset pmix_str 25826 25827 env | grep pmix_scope 25828 pmix_scope_index=`expr $pmix_scope_index + 1` 25829 25830 pmix_asm_check_func_CFLAGS_save=$CFLAGS 25831 pmix_asm_check_func_LIBS_save=$LIBS 25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n" >&5 25833$as_echo_n "checking for __atomic_compare_exchange_n... " >&6; } 25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25835/* end confdefs.h. */ 25836 25837#include <stdint.h> 25838#include <stdbool.h> 25839#include <stdlib.h> 25840typedef union { 25841 uint64_t fake[2]; 25842 __int128 real; 25843} pmix128; 25844static void test1(void) 25845{ 25846 // As of Aug 2018, we could not figure out a way to assign 128-bit 25847 // constants -- the compilers would not accept it. So use a fake 25848 // union to assign 2 uin64_t's to make a single __int128. 25849 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25850 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25851 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25852 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 25853 desired.real, true, 25854 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25855 if ( !(r == false && ptr.real == expected.real)) { 25856 exit(1); 25857 } 25858} 25859static void test2(void) 25860{ 25861 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25862 pmix128 expected = ptr; 25863 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25864 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 25865 desired.real, true, 25866 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25867 if (!(r == true && ptr.real == desired.real)) { 25868 exit(2); 25869 } 25870} 25871int main(int argc, char** argv) 25872{ 25873 test1(); 25874 test2(); 25875 return 0; 25876} 25877 25878_ACEOF 25879if ac_fn_c_try_link "$LINENO"; then : 25880 pmix_asm_check_func_happy=1 25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25882$as_echo "yes" >&6; } 25883else 25884 pmix_asm_check_func_happy=0 25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25886$as_echo "no" >&6; } 25887fi 25888rm -f core conftest.err conftest.$ac_objext \ 25889 conftest$ac_exeext conftest.$ac_ext 25890 if test $pmix_asm_check_func_happy -eq 0; then : 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n with -mcx16" >&5 25892$as_echo_n "checking for __atomic_compare_exchange_n with -mcx16... " >&6; } 25893 CFLAGS="$CFLAGS -mcx16" 25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25895/* end confdefs.h. */ 25896 25897#include <stdint.h> 25898#include <stdbool.h> 25899#include <stdlib.h> 25900typedef union { 25901 uint64_t fake[2]; 25902 __int128 real; 25903} pmix128; 25904static void test1(void) 25905{ 25906 // As of Aug 2018, we could not figure out a way to assign 128-bit 25907 // constants -- the compilers would not accept it. So use a fake 25908 // union to assign 2 uin64_t's to make a single __int128. 25909 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25910 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25911 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25912 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 25913 desired.real, true, 25914 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25915 if ( !(r == false && ptr.real == expected.real)) { 25916 exit(1); 25917 } 25918} 25919static void test2(void) 25920{ 25921 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25922 pmix128 expected = ptr; 25923 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25924 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 25925 desired.real, true, 25926 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25927 if (!(r == true && ptr.real == desired.real)) { 25928 exit(2); 25929 } 25930} 25931int main(int argc, char** argv) 25932{ 25933 test1(); 25934 test2(); 25935 return 0; 25936} 25937 25938_ACEOF 25939if ac_fn_c_try_link "$LINENO"; then : 25940 pmix_asm_check_func_happy=1 25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25942$as_echo "yes" >&6; } 25943else 25944 pmix_asm_check_func_happy=0 25945 CFLAGS=$pmix_asm_check_func_CFLAGS_save 25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25947$as_echo "no" >&6; } 25948fi 25949rm -f core conftest.err conftest.$ac_objext \ 25950 conftest$ac_exeext conftest.$ac_ext 25951 25952fi 25953 if test $pmix_asm_check_func_happy -eq 0; then : 25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n with -latomic" >&5 25955$as_echo_n "checking for __atomic_compare_exchange_n with -latomic... " >&6; } 25956 LIBS="$LIBS -latomic" 25957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25958/* end confdefs.h. */ 25959 25960#include <stdint.h> 25961#include <stdbool.h> 25962#include <stdlib.h> 25963typedef union { 25964 uint64_t fake[2]; 25965 __int128 real; 25966} pmix128; 25967static void test1(void) 25968{ 25969 // As of Aug 2018, we could not figure out a way to assign 128-bit 25970 // constants -- the compilers would not accept it. So use a fake 25971 // union to assign 2 uin64_t's to make a single __int128. 25972 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25973 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 25974 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25975 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 25976 desired.real, true, 25977 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25978 if ( !(r == false && ptr.real == expected.real)) { 25979 exit(1); 25980 } 25981} 25982static void test2(void) 25983{ 25984 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 25985 pmix128 expected = ptr; 25986 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 25987 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 25988 desired.real, true, 25989 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 25990 if (!(r == true && ptr.real == desired.real)) { 25991 exit(2); 25992 } 25993} 25994int main(int argc, char** argv) 25995{ 25996 test1(); 25997 test2(); 25998 return 0; 25999} 26000 26001_ACEOF 26002if ac_fn_c_try_link "$LINENO"; then : 26003 pmix_asm_check_func_happy=1 26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26005$as_echo "yes" >&6; } 26006else 26007 pmix_asm_check_func_happy=0 26008 LIBS=$pmix_asm_check_func_LIBS_save 26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26010$as_echo "no" >&6; } 26011fi 26012rm -f core conftest.err conftest.$ac_objext \ 26013 conftest$ac_exeext conftest.$ac_ext 26014 26015fi 26016 if test $pmix_asm_check_func_happy -eq 1; then : 26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __atomic_compare_exchange_n() gives correct results" >&5 26018$as_echo_n "checking if __atomic_compare_exchange_n() gives correct results... " >&6; } 26019 if test "$cross_compiling" = yes; then : 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 26021$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 26022else 26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26024/* end confdefs.h. */ 26025 26026#include <stdint.h> 26027#include <stdbool.h> 26028#include <stdlib.h> 26029typedef union { 26030 uint64_t fake[2]; 26031 __int128 real; 26032} pmix128; 26033static void test1(void) 26034{ 26035 // As of Aug 2018, we could not figure out a way to assign 128-bit 26036 // constants -- the compilers would not accept it. So use a fake 26037 // union to assign 2 uin64_t's to make a single __int128. 26038 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26039 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26040 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26041 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 26042 desired.real, true, 26043 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 26044 if ( !(r == false && ptr.real == expected.real)) { 26045 exit(1); 26046 } 26047} 26048static void test2(void) 26049{ 26050 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26051 pmix128 expected = ptr; 26052 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26053 bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, 26054 desired.real, true, 26055 __ATOMIC_RELAXED, __ATOMIC_RELAXED); 26056 if (!(r == true && ptr.real == desired.real)) { 26057 exit(2); 26058 } 26059} 26060int main(int argc, char** argv) 26061{ 26062 test1(); 26063 test2(); 26064 return 0; 26065} 26066 26067_ACEOF 26068if ac_fn_c_try_run "$LINENO"; then : 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26070$as_echo "yes" >&6; } 26071else 26072 pmix_asm_check_func_happy=0 26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26074$as_echo "no" >&6; } 26075fi 26076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26077 conftest.$ac_objext conftest.beam conftest.$ac_ext 26078fi 26079 26080 26081fi 26082 if test $pmix_asm_check_func_happy -eq 0; then : 26083 CFLAGS=$pmix_asm_check_func_CFLAGS_save 26084 LIBS=$pmix_asm_check_func_LIBS_save 26085fi 26086 if test $pmix_asm_check_func_happy -eq 1; then : 26087 atomic_compare_exchange_n_128_result=1 26088else 26089 atomic_compare_exchange_n_128_result=0 26090fi 26091 26092 # Unwind the index 26093 pmix_scope_index=`expr $pmix_scope_index - 1` 26094 pmix_scope_test=`expr $pmix_scope_index \> 0` 26095 if test "$pmix_scope_test" = "0"; then 26096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 26097$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 26098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26099$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26100 as_fn_error $? "Cannot continue" "$LINENO" 5 26101 fi 26102 26103 # Get the variable names from that index 26104 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 26105 eval $pmix_str 26106 26107 # Iterate over all the variables and unset them all 26108 for pmix_var in $pmix_str; do 26109 unset $pmix_var 26110 done 26111 26112 26113 # If we have it and it works, check to make sure it is always lock 26114 # free. 26115 if test $atomic_compare_exchange_n_128_result -eq 1; then : 26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __int128 atomic compare-and-swap is always lock-free" >&5 26117$as_echo_n "checking if __int128 atomic compare-and-swap is always lock-free... " >&6; } 26118 if test "$cross_compiling" = yes; then : 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 26120$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 26121else 26122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26123/* end confdefs.h. */ 26124 26125int 26126main () 26127{ 26128if (!__atomic_always_lock_free(16, 0)) { return 1; } 26129 ; 26130 return 0; 26131} 26132_ACEOF 26133if ac_fn_c_try_run "$LINENO"; then : 26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26135$as_echo "yes" >&6; } 26136else 26137 atomic_compare_exchange_n_128_result=0 26138 # If this test fails, need to reset CFLAGS/LIBS (the 26139 # above tests atomically set CFLAGS/LIBS or not; this 26140 # test is running after the fact, so we have to undo 26141 # the side-effects of setting CFLAGS/LIBS if the above 26142 # tests passed). 26143 CFLAGS=$atomic_compare_exchange_n_128_CFLAGS_save 26144 LIBS=$atomic_compare_exchange_n_128_LIBS_save 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26146$as_echo "no" >&6; } 26147fi 26148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26149 conftest.$ac_objext conftest.beam conftest.$ac_ext 26150fi 26151 26152 26153fi 26154 26155cat >>confdefs.h <<_ACEOF 26156#define PMIX_HAVE_GCC_BUILTIN_CSWAP_INT128 $atomic_compare_exchange_n_128_result 26157_ACEOF 26158 26159 if test $atomic_compare_exchange_n_128_result -eq 0; then : 26160 26161 26162 26163 # Is the private index set? If not, set it. 26164 if test "x$pmix_scope_index" = "x"; then 26165 pmix_scope_index=1 26166 fi 26167 26168 # First, check to see if any of these variables are already set. 26169 # This is a simple sanity check to ensure we're not already 26170 # overwriting pre-existing variables (that have a non-empty 26171 # value). It's not a perfect check, but at least it's something. 26172 for pmix_var in sync_bool_compare_and_swap_128_result; do 26173 pmix_str="pmix_str=\"\$$pmix_var\"" 26174 eval $pmix_str 26175 26176 if test "x$pmix_str" != "x"; then 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 26178$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 26179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 26180$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 26181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 26182$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 26183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26184$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26185 as_fn_error $? "Cannot continue" "$LINENO" 5 26186 fi 26187 done 26188 26189 # Ok, we passed the simple sanity check. Save all these names so 26190 # that we can unset them at the end of the scope. 26191 pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\"" 26192 eval $pmix_str 26193 unset pmix_str 26194 26195 env | grep pmix_scope 26196 pmix_scope_index=`expr $pmix_scope_index + 1` 26197 26198 # Do we have __sync_bool_compare_and_swap? 26199 # Use a special macro because we need to check with a few different 26200 # CFLAGS/LIBS. 26201 26202 26203 26204 # Is the private index set? If not, set it. 26205 if test "x$pmix_scope_index" = "x"; then 26206 pmix_scope_index=1 26207 fi 26208 26209 # First, check to see if any of these variables are already set. 26210 # This is a simple sanity check to ensure we're not already 26211 # overwriting pre-existing variables (that have a non-empty 26212 # value). It's not a perfect check, but at least it's something. 26213 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 26214 pmix_str="pmix_str=\"\$$pmix_var\"" 26215 eval $pmix_str 26216 26217 if test "x$pmix_str" != "x"; then 26218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 26219$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 26220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 26221$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 26222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 26223$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26225$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26226 as_fn_error $? "Cannot continue" "$LINENO" 5 26227 fi 26228 done 26229 26230 # Ok, we passed the simple sanity check. Save all these names so 26231 # that we can unset them at the end of the scope. 26232 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 26233 eval $pmix_str 26234 unset pmix_str 26235 26236 env | grep pmix_scope 26237 pmix_scope_index=`expr $pmix_scope_index + 1` 26238 26239 pmix_asm_check_func_CFLAGS_save=$CFLAGS 26240 pmix_asm_check_func_LIBS_save=$LIBS 26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 26242$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } 26243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26244/* end confdefs.h. */ 26245 26246#include <stdint.h> 26247#include <stdbool.h> 26248#include <stdlib.h> 26249typedef union { 26250 uint64_t fake[2]; 26251 __int128 real; 26252} pmix128; 26253static void test1(void) 26254{ 26255 // As of Aug 2018, we could not figure out a way to assign 128-bit 26256 // constants -- the compilers would not accept it. So use a fake 26257 // union to assign 2 uin64_t's to make a single __int128. 26258 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26259 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26260 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26261 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26262 if (!(r == false && ptr.real != newval.real)) { 26263 exit(1); 26264 } 26265} 26266static void test2(void) 26267{ 26268 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26269 pmix128 oldval = ptr; 26270 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26271 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26272 if (!(r == true && ptr.real == newval.real)) { 26273 exit(2); 26274 } 26275} 26276int main(int argc, char** argv) 26277{ 26278 test1(); 26279 test2(); 26280 return 0; 26281} 26282 26283_ACEOF 26284if ac_fn_c_try_link "$LINENO"; then : 26285 pmix_asm_check_func_happy=1 26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26287$as_echo "yes" >&6; } 26288else 26289 pmix_asm_check_func_happy=0 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26291$as_echo "no" >&6; } 26292fi 26293rm -f core conftest.err conftest.$ac_objext \ 26294 conftest$ac_exeext conftest.$ac_ext 26295 if test $pmix_asm_check_func_happy -eq 0; then : 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 26297$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } 26298 CFLAGS="$CFLAGS -mcx16" 26299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26300/* end confdefs.h. */ 26301 26302#include <stdint.h> 26303#include <stdbool.h> 26304#include <stdlib.h> 26305typedef union { 26306 uint64_t fake[2]; 26307 __int128 real; 26308} pmix128; 26309static void test1(void) 26310{ 26311 // As of Aug 2018, we could not figure out a way to assign 128-bit 26312 // constants -- the compilers would not accept it. So use a fake 26313 // union to assign 2 uin64_t's to make a single __int128. 26314 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26315 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26316 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26317 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26318 if (!(r == false && ptr.real != newval.real)) { 26319 exit(1); 26320 } 26321} 26322static void test2(void) 26323{ 26324 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26325 pmix128 oldval = ptr; 26326 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26327 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26328 if (!(r == true && ptr.real == newval.real)) { 26329 exit(2); 26330 } 26331} 26332int main(int argc, char** argv) 26333{ 26334 test1(); 26335 test2(); 26336 return 0; 26337} 26338 26339_ACEOF 26340if ac_fn_c_try_link "$LINENO"; then : 26341 pmix_asm_check_func_happy=1 26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26343$as_echo "yes" >&6; } 26344else 26345 pmix_asm_check_func_happy=0 26346 CFLAGS=$pmix_asm_check_func_CFLAGS_save 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26348$as_echo "no" >&6; } 26349fi 26350rm -f core conftest.err conftest.$ac_objext \ 26351 conftest$ac_exeext conftest.$ac_ext 26352 26353fi 26354 if test $pmix_asm_check_func_happy -eq 0; then : 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 26356$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } 26357 LIBS="$LIBS -latomic" 26358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26359/* end confdefs.h. */ 26360 26361#include <stdint.h> 26362#include <stdbool.h> 26363#include <stdlib.h> 26364typedef union { 26365 uint64_t fake[2]; 26366 __int128 real; 26367} pmix128; 26368static void test1(void) 26369{ 26370 // As of Aug 2018, we could not figure out a way to assign 128-bit 26371 // constants -- the compilers would not accept it. So use a fake 26372 // union to assign 2 uin64_t's to make a single __int128. 26373 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26374 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26375 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26376 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26377 if (!(r == false && ptr.real != newval.real)) { 26378 exit(1); 26379 } 26380} 26381static void test2(void) 26382{ 26383 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26384 pmix128 oldval = ptr; 26385 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26386 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26387 if (!(r == true && ptr.real == newval.real)) { 26388 exit(2); 26389 } 26390} 26391int main(int argc, char** argv) 26392{ 26393 test1(); 26394 test2(); 26395 return 0; 26396} 26397 26398_ACEOF 26399if ac_fn_c_try_link "$LINENO"; then : 26400 pmix_asm_check_func_happy=1 26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26402$as_echo "yes" >&6; } 26403else 26404 pmix_asm_check_func_happy=0 26405 LIBS=$pmix_asm_check_func_LIBS_save 26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26407$as_echo "no" >&6; } 26408fi 26409rm -f core conftest.err conftest.$ac_objext \ 26410 conftest$ac_exeext conftest.$ac_ext 26411 26412fi 26413 if test $pmix_asm_check_func_happy -eq 1; then : 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 26415$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } 26416 if test "$cross_compiling" = yes; then : 26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 26418$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 26419else 26420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26421/* end confdefs.h. */ 26422 26423#include <stdint.h> 26424#include <stdbool.h> 26425#include <stdlib.h> 26426typedef union { 26427 uint64_t fake[2]; 26428 __int128 real; 26429} pmix128; 26430static void test1(void) 26431{ 26432 // As of Aug 2018, we could not figure out a way to assign 128-bit 26433 // constants -- the compilers would not accept it. So use a fake 26434 // union to assign 2 uin64_t's to make a single __int128. 26435 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26436 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26437 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26438 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26439 if (!(r == false && ptr.real != newval.real)) { 26440 exit(1); 26441 } 26442} 26443static void test2(void) 26444{ 26445 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26446 pmix128 oldval = ptr; 26447 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26448 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 26449 if (!(r == true && ptr.real == newval.real)) { 26450 exit(2); 26451 } 26452} 26453int main(int argc, char** argv) 26454{ 26455 test1(); 26456 test2(); 26457 return 0; 26458} 26459 26460_ACEOF 26461if ac_fn_c_try_run "$LINENO"; then : 26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26463$as_echo "yes" >&6; } 26464else 26465 pmix_asm_check_func_happy=0 26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26467$as_echo "no" >&6; } 26468fi 26469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26470 conftest.$ac_objext conftest.beam conftest.$ac_ext 26471fi 26472 26473 26474fi 26475 if test $pmix_asm_check_func_happy -eq 0; then : 26476 CFLAGS=$pmix_asm_check_func_CFLAGS_save 26477 LIBS=$pmix_asm_check_func_LIBS_save 26478fi 26479 if test $pmix_asm_check_func_happy -eq 1; then : 26480 sync_bool_compare_and_swap_128_result=1 26481else 26482 sync_bool_compare_and_swap_128_result=0 26483fi 26484 26485 # Unwind the index 26486 pmix_scope_index=`expr $pmix_scope_index - 1` 26487 pmix_scope_test=`expr $pmix_scope_index \> 0` 26488 if test "$pmix_scope_test" = "0"; then 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 26490$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26492$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26493 as_fn_error $? "Cannot continue" "$LINENO" 5 26494 fi 26495 26496 # Get the variable names from that index 26497 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 26498 eval $pmix_str 26499 26500 # Iterate over all the variables and unset them all 26501 for pmix_var in $pmix_str; do 26502 unset $pmix_var 26503 done 26504 26505 26506 26507cat >>confdefs.h <<_ACEOF 26508#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result 26509_ACEOF 26510 26511 26512 # Unwind the index 26513 pmix_scope_index=`expr $pmix_scope_index - 1` 26514 pmix_scope_test=`expr $pmix_scope_index \> 0` 26515 if test "$pmix_scope_test" = "0"; then 26516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 26517$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 26518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26519$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26520 as_fn_error $? "Cannot continue" "$LINENO" 5 26521 fi 26522 26523 # Get the variable names from that index 26524 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 26525 eval $pmix_str 26526 26527 # Iterate over all the variables and unset them all 26528 for pmix_var in $pmix_str; do 26529 unset $pmix_var 26530 done 26531 26532 26533fi 26534 26535 # Unwind the index 26536 pmix_scope_index=`expr $pmix_scope_index - 1` 26537 pmix_scope_test=`expr $pmix_scope_index \> 0` 26538 if test "$pmix_scope_test" = "0"; then 26539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 26540$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26542$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26543 as_fn_error $? "Cannot continue" "$LINENO" 5 26544 fi 26545 26546 # Get the variable names from that index 26547 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 26548 eval $pmix_str 26549 26550 # Iterate over all the variables and unset them all 26551 for pmix_var in $pmix_str; do 26552 unset $pmix_var 26553 done 26554 26555 26556 fi 26557 26558 if test "x$enable_c11_atomics" != "xno" && test "$pmix_cv_c11_supported" = "yes" ; then 26559 pmix_cv_asm_builtin="BUILTIN_C11" 26560 26561 26562 26563 # Is the private index set? If not, set it. 26564 if test "x$pmix_scope_index" = "x"; then 26565 pmix_scope_index=1 26566 fi 26567 26568 # First, check to see if any of these variables are already set. 26569 # This is a simple sanity check to ensure we're not already 26570 # overwriting pre-existing variables (that have a non-empty 26571 # value). It's not a perfect check, but at least it's something. 26572 for pmix_var in atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save; do 26573 pmix_str="pmix_str=\"\$$pmix_var\"" 26574 eval $pmix_str 26575 26576 if test "x$pmix_str" != "x"; then 26577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 26578$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 26579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 26580$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 26581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 26582$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 26583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26584$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26585 as_fn_error $? "Cannot continue" "$LINENO" 5 26586 fi 26587 done 26588 26589 # Ok, we passed the simple sanity check. Save all these names so 26590 # that we can unset them at the end of the scope. 26591 pmix_str="pmix_scope_$pmix_scope_index=\"atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save\"" 26592 eval $pmix_str 26593 unset pmix_str 26594 26595 env | grep pmix_scope 26596 pmix_scope_index=`expr $pmix_scope_index + 1` 26597 26598 atomic_compare_exchange_CFLAGS_save=$CFLAGS 26599 atomic_compare_exchange_LIBS_save=$LIBS 26600 # Do we have C11 atomics on 128-bit integers? 26601 # Use a special macro because we need to check with a few different 26602 # CFLAGS/LIBS. 26603 26604 26605 26606 # Is the private index set? If not, set it. 26607 if test "x$pmix_scope_index" = "x"; then 26608 pmix_scope_index=1 26609 fi 26610 26611 # First, check to see if any of these variables are already set. 26612 # This is a simple sanity check to ensure we're not already 26613 # overwriting pre-existing variables (that have a non-empty 26614 # value). It's not a perfect check, but at least it's something. 26615 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 26616 pmix_str="pmix_str=\"\$$pmix_var\"" 26617 eval $pmix_str 26618 26619 if test "x$pmix_str" != "x"; then 26620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 26621$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 26622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 26623$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 26624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 26625$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 26626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26627$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26628 as_fn_error $? "Cannot continue" "$LINENO" 5 26629 fi 26630 done 26631 26632 # Ok, we passed the simple sanity check. Save all these names so 26633 # that we can unset them at the end of the scope. 26634 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 26635 eval $pmix_str 26636 unset pmix_str 26637 26638 env | grep pmix_scope 26639 pmix_scope_index=`expr $pmix_scope_index + 1` 26640 26641 pmix_asm_check_func_CFLAGS_save=$CFLAGS 26642 pmix_asm_check_func_LIBS_save=$LIBS 26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16" >&5 26644$as_echo_n "checking for atomic_compare_exchange_strong_16... " >&6; } 26645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26646/* end confdefs.h. */ 26647 26648#include <stdint.h> 26649#include <stdbool.h> 26650#include <stdlib.h> 26651#include <stdatomic.h> 26652typedef union { 26653 uint64_t fake[2]; 26654 _Atomic __int128 real; 26655 __int128 real2; 26656} pmix128; 26657static void test1(void) 26658{ 26659 // As of Aug 2018, we could not figure out a way to assign 128-bit 26660 // constants -- the compilers would not accept it. So use a fake 26661 // union to assign 2 uin64_t's to make a single __int128. 26662 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26663 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26664 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26665 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26666 desired.real); 26667 if ( !(r == false && ptr.real == expected.real)) { 26668 exit(1); 26669 } 26670} 26671static void test2(void) 26672{ 26673 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26674 pmix128 expected = ptr; 26675 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26676 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26677 desired.real); 26678 if (!(r == true && ptr.real == desired.real)) { 26679 exit(2); 26680 } 26681} 26682int main(int argc, char** argv) 26683{ 26684 test1(); 26685 test2(); 26686 return 0; 26687} 26688 26689_ACEOF 26690if ac_fn_c_try_link "$LINENO"; then : 26691 pmix_asm_check_func_happy=1 26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26693$as_echo "yes" >&6; } 26694else 26695 pmix_asm_check_func_happy=0 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26697$as_echo "no" >&6; } 26698fi 26699rm -f core conftest.err conftest.$ac_objext \ 26700 conftest$ac_exeext conftest.$ac_ext 26701 if test $pmix_asm_check_func_happy -eq 0; then : 26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -mcx16" >&5 26703$as_echo_n "checking for atomic_compare_exchange_strong_16 with -mcx16... " >&6; } 26704 CFLAGS="$CFLAGS -mcx16" 26705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26706/* end confdefs.h. */ 26707 26708#include <stdint.h> 26709#include <stdbool.h> 26710#include <stdlib.h> 26711#include <stdatomic.h> 26712typedef union { 26713 uint64_t fake[2]; 26714 _Atomic __int128 real; 26715 __int128 real2; 26716} pmix128; 26717static void test1(void) 26718{ 26719 // As of Aug 2018, we could not figure out a way to assign 128-bit 26720 // constants -- the compilers would not accept it. So use a fake 26721 // union to assign 2 uin64_t's to make a single __int128. 26722 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26723 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26724 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26725 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26726 desired.real); 26727 if ( !(r == false && ptr.real == expected.real)) { 26728 exit(1); 26729 } 26730} 26731static void test2(void) 26732{ 26733 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26734 pmix128 expected = ptr; 26735 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26736 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26737 desired.real); 26738 if (!(r == true && ptr.real == desired.real)) { 26739 exit(2); 26740 } 26741} 26742int main(int argc, char** argv) 26743{ 26744 test1(); 26745 test2(); 26746 return 0; 26747} 26748 26749_ACEOF 26750if ac_fn_c_try_link "$LINENO"; then : 26751 pmix_asm_check_func_happy=1 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26753$as_echo "yes" >&6; } 26754else 26755 pmix_asm_check_func_happy=0 26756 CFLAGS=$pmix_asm_check_func_CFLAGS_save 26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26758$as_echo "no" >&6; } 26759fi 26760rm -f core conftest.err conftest.$ac_objext \ 26761 conftest$ac_exeext conftest.$ac_ext 26762 26763fi 26764 if test $pmix_asm_check_func_happy -eq 0; then : 26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -latomic" >&5 26766$as_echo_n "checking for atomic_compare_exchange_strong_16 with -latomic... " >&6; } 26767 LIBS="$LIBS -latomic" 26768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26769/* end confdefs.h. */ 26770 26771#include <stdint.h> 26772#include <stdbool.h> 26773#include <stdlib.h> 26774#include <stdatomic.h> 26775typedef union { 26776 uint64_t fake[2]; 26777 _Atomic __int128 real; 26778 __int128 real2; 26779} pmix128; 26780static void test1(void) 26781{ 26782 // As of Aug 2018, we could not figure out a way to assign 128-bit 26783 // constants -- the compilers would not accept it. So use a fake 26784 // union to assign 2 uin64_t's to make a single __int128. 26785 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26786 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26787 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26788 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26789 desired.real); 26790 if ( !(r == false && ptr.real == expected.real)) { 26791 exit(1); 26792 } 26793} 26794static void test2(void) 26795{ 26796 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26797 pmix128 expected = ptr; 26798 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26799 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26800 desired.real); 26801 if (!(r == true && ptr.real == desired.real)) { 26802 exit(2); 26803 } 26804} 26805int main(int argc, char** argv) 26806{ 26807 test1(); 26808 test2(); 26809 return 0; 26810} 26811 26812_ACEOF 26813if ac_fn_c_try_link "$LINENO"; then : 26814 pmix_asm_check_func_happy=1 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26816$as_echo "yes" >&6; } 26817else 26818 pmix_asm_check_func_happy=0 26819 LIBS=$pmix_asm_check_func_LIBS_save 26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26821$as_echo "no" >&6; } 26822fi 26823rm -f core conftest.err conftest.$ac_objext \ 26824 conftest$ac_exeext conftest.$ac_ext 26825 26826fi 26827 if test $pmix_asm_check_func_happy -eq 1; then : 26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic_compare_exchange_strong_16() gives correct results" >&5 26829$as_echo_n "checking if atomic_compare_exchange_strong_16() gives correct results... " >&6; } 26830 if test "$cross_compiling" = yes; then : 26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 26832$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 26833else 26834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26835/* end confdefs.h. */ 26836 26837#include <stdint.h> 26838#include <stdbool.h> 26839#include <stdlib.h> 26840#include <stdatomic.h> 26841typedef union { 26842 uint64_t fake[2]; 26843 _Atomic __int128 real; 26844 __int128 real2; 26845} pmix128; 26846static void test1(void) 26847{ 26848 // As of Aug 2018, we could not figure out a way to assign 128-bit 26849 // constants -- the compilers would not accept it. So use a fake 26850 // union to assign 2 uin64_t's to make a single __int128. 26851 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26852 pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 26853 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26854 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26855 desired.real); 26856 if ( !(r == false && ptr.real == expected.real)) { 26857 exit(1); 26858 } 26859} 26860static void test2(void) 26861{ 26862 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 26863 pmix128 expected = ptr; 26864 pmix128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 26865 bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real2, 26866 desired.real); 26867 if (!(r == true && ptr.real == desired.real)) { 26868 exit(2); 26869 } 26870} 26871int main(int argc, char** argv) 26872{ 26873 test1(); 26874 test2(); 26875 return 0; 26876} 26877 26878_ACEOF 26879if ac_fn_c_try_run "$LINENO"; then : 26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26881$as_echo "yes" >&6; } 26882else 26883 pmix_asm_check_func_happy=0 26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26885$as_echo "no" >&6; } 26886fi 26887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26888 conftest.$ac_objext conftest.beam conftest.$ac_ext 26889fi 26890 26891 26892fi 26893 if test $pmix_asm_check_func_happy -eq 0; then : 26894 CFLAGS=$pmix_asm_check_func_CFLAGS_save 26895 LIBS=$pmix_asm_check_func_LIBS_save 26896fi 26897 if test $pmix_asm_check_func_happy -eq 1; then : 26898 atomic_compare_exchange_result=1 26899else 26900 atomic_compare_exchange_result=0 26901fi 26902 26903 # Unwind the index 26904 pmix_scope_index=`expr $pmix_scope_index - 1` 26905 pmix_scope_test=`expr $pmix_scope_index \> 0` 26906 if test "$pmix_scope_test" = "0"; then 26907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 26908$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26910$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26911 as_fn_error $? "Cannot continue" "$LINENO" 5 26912 fi 26913 26914 # Get the variable names from that index 26915 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 26916 eval $pmix_str 26917 26918 # Iterate over all the variables and unset them all 26919 for pmix_var in $pmix_str; do 26920 unset $pmix_var 26921 done 26922 26923 26924 # If we have it and it works, check to make sure it is always lock 26925 # free. 26926 if test $atomic_compare_exchange_result -eq 1; then : 26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C11 __int128 atomic compare-and-swap is always lock-free" >&5 26928$as_echo_n "checking if C11 __int128 atomic compare-and-swap is always lock-free... " >&6; } 26929 if test "$cross_compiling" = yes; then : 26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 26931$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 26932else 26933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26934/* end confdefs.h. */ 26935#include <stdatomic.h> 26936int 26937main () 26938{ 26939_Atomic __int128_t x; if (!atomic_is_lock_free(&x)) { return 1; } 26940 ; 26941 return 0; 26942} 26943_ACEOF 26944if ac_fn_c_try_run "$LINENO"; then : 26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26946$as_echo "yes" >&6; } 26947else 26948 atomic_compare_exchange_result=0 26949 # If this test fails, need to reset CFLAGS/LIBS (the 26950 # above tests atomically set CFLAGS/LIBS or not; this 26951 # test is running after the fact, so we have to undo 26952 # the side-effects of setting CFLAGS/LIBS if the above 26953 # tests passed). 26954 CFLAGS=$atomic_compare_exchange_CFLAGS_save 26955 LIBS=$atomic_compare_exchange_LIBS_save 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26957$as_echo "no" >&6; } 26958fi 26959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26960 conftest.$ac_objext conftest.beam conftest.$ac_ext 26961fi 26962 26963 26964fi 26965 26966cat >>confdefs.h <<_ACEOF 26967#define PMIX_HAVE_C11_CSWAP_INT128 $atomic_compare_exchange_result 26968_ACEOF 26969 26970 if test $atomic_compare_exchange_result -eq 0; then : 26971 26972 26973 26974 # Is the private index set? If not, set it. 26975 if test "x$pmix_scope_index" = "x"; then 26976 pmix_scope_index=1 26977 fi 26978 26979 # First, check to see if any of these variables are already set. 26980 # This is a simple sanity check to ensure we're not already 26981 # overwriting pre-existing variables (that have a non-empty 26982 # value). It's not a perfect check, but at least it's something. 26983 for pmix_var in sync_bool_compare_and_swap_128_result; do 26984 pmix_str="pmix_str=\"\$$pmix_var\"" 26985 eval $pmix_str 26986 26987 if test "x$pmix_str" != "x"; then 26988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 26989$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 26991$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 26992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 26993$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 26994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 26995$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 26996 as_fn_error $? "Cannot continue" "$LINENO" 5 26997 fi 26998 done 26999 27000 # Ok, we passed the simple sanity check. Save all these names so 27001 # that we can unset them at the end of the scope. 27002 pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\"" 27003 eval $pmix_str 27004 unset pmix_str 27005 27006 env | grep pmix_scope 27007 pmix_scope_index=`expr $pmix_scope_index + 1` 27008 27009 # Do we have __sync_bool_compare_and_swap? 27010 # Use a special macro because we need to check with a few different 27011 # CFLAGS/LIBS. 27012 27013 27014 27015 # Is the private index set? If not, set it. 27016 if test "x$pmix_scope_index" = "x"; then 27017 pmix_scope_index=1 27018 fi 27019 27020 # First, check to see if any of these variables are already set. 27021 # This is a simple sanity check to ensure we're not already 27022 # overwriting pre-existing variables (that have a non-empty 27023 # value). It's not a perfect check, but at least it's something. 27024 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 27025 pmix_str="pmix_str=\"\$$pmix_var\"" 27026 eval $pmix_str 27027 27028 if test "x$pmix_str" != "x"; then 27029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 27030$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 27031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 27032$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 27033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 27034$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 27035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 27036$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 27037 as_fn_error $? "Cannot continue" "$LINENO" 5 27038 fi 27039 done 27040 27041 # Ok, we passed the simple sanity check. Save all these names so 27042 # that we can unset them at the end of the scope. 27043 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 27044 eval $pmix_str 27045 unset pmix_str 27046 27047 env | grep pmix_scope 27048 pmix_scope_index=`expr $pmix_scope_index + 1` 27049 27050 pmix_asm_check_func_CFLAGS_save=$CFLAGS 27051 pmix_asm_check_func_LIBS_save=$LIBS 27052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 27053$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } 27054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27055/* end confdefs.h. */ 27056 27057#include <stdint.h> 27058#include <stdbool.h> 27059#include <stdlib.h> 27060typedef union { 27061 uint64_t fake[2]; 27062 __int128 real; 27063} pmix128; 27064static void test1(void) 27065{ 27066 // As of Aug 2018, we could not figure out a way to assign 128-bit 27067 // constants -- the compilers would not accept it. So use a fake 27068 // union to assign 2 uin64_t's to make a single __int128. 27069 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27070 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 27071 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27072 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27073 if (!(r == false && ptr.real != newval.real)) { 27074 exit(1); 27075 } 27076} 27077static void test2(void) 27078{ 27079 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27080 pmix128 oldval = ptr; 27081 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27082 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27083 if (!(r == true && ptr.real == newval.real)) { 27084 exit(2); 27085 } 27086} 27087int main(int argc, char** argv) 27088{ 27089 test1(); 27090 test2(); 27091 return 0; 27092} 27093 27094_ACEOF 27095if ac_fn_c_try_link "$LINENO"; then : 27096 pmix_asm_check_func_happy=1 27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27098$as_echo "yes" >&6; } 27099else 27100 pmix_asm_check_func_happy=0 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27102$as_echo "no" >&6; } 27103fi 27104rm -f core conftest.err conftest.$ac_objext \ 27105 conftest$ac_exeext conftest.$ac_ext 27106 if test $pmix_asm_check_func_happy -eq 0; then : 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 27108$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } 27109 CFLAGS="$CFLAGS -mcx16" 27110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27111/* end confdefs.h. */ 27112 27113#include <stdint.h> 27114#include <stdbool.h> 27115#include <stdlib.h> 27116typedef union { 27117 uint64_t fake[2]; 27118 __int128 real; 27119} pmix128; 27120static void test1(void) 27121{ 27122 // As of Aug 2018, we could not figure out a way to assign 128-bit 27123 // constants -- the compilers would not accept it. So use a fake 27124 // union to assign 2 uin64_t's to make a single __int128. 27125 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27126 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 27127 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27128 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27129 if (!(r == false && ptr.real != newval.real)) { 27130 exit(1); 27131 } 27132} 27133static void test2(void) 27134{ 27135 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27136 pmix128 oldval = ptr; 27137 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27138 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27139 if (!(r == true && ptr.real == newval.real)) { 27140 exit(2); 27141 } 27142} 27143int main(int argc, char** argv) 27144{ 27145 test1(); 27146 test2(); 27147 return 0; 27148} 27149 27150_ACEOF 27151if ac_fn_c_try_link "$LINENO"; then : 27152 pmix_asm_check_func_happy=1 27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27154$as_echo "yes" >&6; } 27155else 27156 pmix_asm_check_func_happy=0 27157 CFLAGS=$pmix_asm_check_func_CFLAGS_save 27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27159$as_echo "no" >&6; } 27160fi 27161rm -f core conftest.err conftest.$ac_objext \ 27162 conftest$ac_exeext conftest.$ac_ext 27163 27164fi 27165 if test $pmix_asm_check_func_happy -eq 0; then : 27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 27167$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } 27168 LIBS="$LIBS -latomic" 27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27170/* end confdefs.h. */ 27171 27172#include <stdint.h> 27173#include <stdbool.h> 27174#include <stdlib.h> 27175typedef union { 27176 uint64_t fake[2]; 27177 __int128 real; 27178} pmix128; 27179static void test1(void) 27180{ 27181 // As of Aug 2018, we could not figure out a way to assign 128-bit 27182 // constants -- the compilers would not accept it. So use a fake 27183 // union to assign 2 uin64_t's to make a single __int128. 27184 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27185 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 27186 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27187 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27188 if (!(r == false && ptr.real != newval.real)) { 27189 exit(1); 27190 } 27191} 27192static void test2(void) 27193{ 27194 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27195 pmix128 oldval = ptr; 27196 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27197 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27198 if (!(r == true && ptr.real == newval.real)) { 27199 exit(2); 27200 } 27201} 27202int main(int argc, char** argv) 27203{ 27204 test1(); 27205 test2(); 27206 return 0; 27207} 27208 27209_ACEOF 27210if ac_fn_c_try_link "$LINENO"; then : 27211 pmix_asm_check_func_happy=1 27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27213$as_echo "yes" >&6; } 27214else 27215 pmix_asm_check_func_happy=0 27216 LIBS=$pmix_asm_check_func_LIBS_save 27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27218$as_echo "no" >&6; } 27219fi 27220rm -f core conftest.err conftest.$ac_objext \ 27221 conftest$ac_exeext conftest.$ac_ext 27222 27223fi 27224 if test $pmix_asm_check_func_happy -eq 1; then : 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 27226$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } 27227 if test "$cross_compiling" = yes; then : 27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 27229$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 27230else 27231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27232/* end confdefs.h. */ 27233 27234#include <stdint.h> 27235#include <stdbool.h> 27236#include <stdlib.h> 27237typedef union { 27238 uint64_t fake[2]; 27239 __int128 real; 27240} pmix128; 27241static void test1(void) 27242{ 27243 // As of Aug 2018, we could not figure out a way to assign 128-bit 27244 // constants -- the compilers would not accept it. So use a fake 27245 // union to assign 2 uin64_t's to make a single __int128. 27246 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27247 pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; 27248 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27249 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27250 if (!(r == false && ptr.real != newval.real)) { 27251 exit(1); 27252 } 27253} 27254static void test2(void) 27255{ 27256 pmix128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; 27257 pmix128 oldval = ptr; 27258 pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; 27259 bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); 27260 if (!(r == true && ptr.real == newval.real)) { 27261 exit(2); 27262 } 27263} 27264int main(int argc, char** argv) 27265{ 27266 test1(); 27267 test2(); 27268 return 0; 27269} 27270 27271_ACEOF 27272if ac_fn_c_try_run "$LINENO"; then : 27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27274$as_echo "yes" >&6; } 27275else 27276 pmix_asm_check_func_happy=0 27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27278$as_echo "no" >&6; } 27279fi 27280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27281 conftest.$ac_objext conftest.beam conftest.$ac_ext 27282fi 27283 27284 27285fi 27286 if test $pmix_asm_check_func_happy -eq 0; then : 27287 CFLAGS=$pmix_asm_check_func_CFLAGS_save 27288 LIBS=$pmix_asm_check_func_LIBS_save 27289fi 27290 if test $pmix_asm_check_func_happy -eq 1; then : 27291 sync_bool_compare_and_swap_128_result=1 27292else 27293 sync_bool_compare_and_swap_128_result=0 27294fi 27295 27296 # Unwind the index 27297 pmix_scope_index=`expr $pmix_scope_index - 1` 27298 pmix_scope_test=`expr $pmix_scope_index \> 0` 27299 if test "$pmix_scope_test" = "0"; then 27300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 27301$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 27302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 27303$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 27304 as_fn_error $? "Cannot continue" "$LINENO" 5 27305 fi 27306 27307 # Get the variable names from that index 27308 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 27309 eval $pmix_str 27310 27311 # Iterate over all the variables and unset them all 27312 for pmix_var in $pmix_str; do 27313 unset $pmix_var 27314 done 27315 27316 27317 27318cat >>confdefs.h <<_ACEOF 27319#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result 27320_ACEOF 27321 27322 27323 # Unwind the index 27324 pmix_scope_index=`expr $pmix_scope_index - 1` 27325 pmix_scope_test=`expr $pmix_scope_index \> 0` 27326 if test "$pmix_scope_test" = "0"; then 27327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 27328$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 27329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 27330$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 27331 as_fn_error $? "Cannot continue" "$LINENO" 5 27332 fi 27333 27334 # Get the variable names from that index 27335 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 27336 eval $pmix_str 27337 27338 # Iterate over all the variables and unset them all 27339 for pmix_var in $pmix_str; do 27340 unset $pmix_var 27341 done 27342 27343 27344fi 27345 27346 # Unwind the index 27347 pmix_scope_index=`expr $pmix_scope_index - 1` 27348 pmix_scope_test=`expr $pmix_scope_index \> 0` 27349 if test "$pmix_scope_test" = "0"; then 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 27351$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 27352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 27353$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 27354 as_fn_error $? "Cannot continue" "$LINENO" 5 27355 fi 27356 27357 # Get the variable names from that index 27358 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 27359 eval $pmix_str 27360 27361 # Iterate over all the variables and unset them all 27362 for pmix_var in $pmix_str; do 27363 unset $pmix_var 27364 done 27365 27366 27367 elif test "x$enable_c11_atomics" = "xyes"; then 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C11 atomics were requested but are not supported" >&5 27369$as_echo "$as_me: WARNING: C11 atomics were requested but are not supported" >&2;} 27370 as_fn_error $? "Cannot continue" "$LINENO" 5 27371 elif test "$enable_builtin_atomics" = "yes" ; then 27372 if test $pmix_cv_have___atomic = "yes" ; then 27373 pmix_cv_asm_builtin="BUILTIN_GCC" 27374 else 27375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GCC built-in atomics requested but not found." >&5 27376$as_echo "$as_me: WARNING: GCC built-in atomics requested but not found." >&2;} 27377 as_fn_error $? "Cannot continue" "$LINENO" 5 27378 fi 27379 fi 27380 27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .proc/endp is needed" >&5 27382$as_echo_n "checking if .proc/endp is needed... " >&6; } 27383if ${pmix_cv_asm_need_proc+:} false; then : 27384 $as_echo_n "(cached) " >&6 27385else 27386 pmix_cv_asm_need_proc="no" 27387 cat >conftest.s <<EOF 27388 27389 .proc mysym 27390mysym: 27391 .endp mysym 27392EOF 27393if test "$CC" = "$CCAS" ; then 27394 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 27395else 27396 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 27397fi 27398if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 27399 (eval $pmix_assemble) 2>&5 27400 ac_status=$? 27401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27402 test $ac_status = 0; }; then 27403 # save the warnings 27404 cat conftest.out >&5 27405 pmix_cv_asm_need_proc="yes" 27406else 27407 # save compiler output and failed program 27408 cat conftest.out >&5 27409 echo "configure: failed program was:" >&5 27410 cat conftest.s >&5 27411 : 27412fi 27413rm -rf conftest* 27414unset pmix_assemble 27415 27416 rm -f conftest.out 27417fi 27418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_need_proc" >&5 27419$as_echo "$pmix_cv_asm_need_proc" >&6; } 27420 if test "$pmix_cv_asm_need_proc" = "yes" ; then 27421 pmix_cv_asm_proc=".proc" 27422 pmix_cv_asm_endproc=".endp" 27423 else 27424 pmix_cv_asm_proc="#" 27425 pmix_cv_asm_endproc="#" 27426 fi 27427 27428 27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for setting text section" >&5 27430$as_echo_n "checking directive for setting text section... " >&6; } 27431 pmix_cv_asm_text="" 27432 if test "$pmix_cv_c_compiler_vendor" = "microsoft" ; then 27433 # text section will be brought in with the rest of 27434 # header for MS - leave blank for now 27435 pmix_cv_asm_text="" 27436 else 27437 case $host in 27438 *-aix*) 27439 pmix_cv_asm_text=".csect .text[PR]" 27440 ;; 27441 *) 27442 pmix_cv_asm_text=".text" 27443 ;; 27444 esac 27445 fi 27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_text" >&5 27447$as_echo "$pmix_cv_asm_text" >&6; } 27448 27449cat >>confdefs.h <<_ACEOF 27450#define PMIX_ASM_TEXT "$pmix_cv_asm_text" 27451_ACEOF 27452 27453 PMIX_ASM_TEXT="$pmix_cv_asm_text" 27454 27455 27456 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for exporting symbols" >&5 27458$as_echo_n "checking directive for exporting symbols... " >&6; } 27459 pmix_cv_asm_global="" 27460 if test "$pmix_cv_c_compiler_vendor" = "microsoft" ; then 27461 pmix_cv_asm_global="PUBLIC" 27462 else 27463 case $host in 27464 *) 27465 pmix_cv_asm_global=".globl" 27466 ;; 27467 esac 27468 fi 27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_global" >&5 27470$as_echo "$pmix_cv_asm_global" >&6; } 27471 27472cat >>confdefs.h <<_ACEOF 27473#define PMIX_ASM_GLOBAL "$pmix_cv_asm_global" 27474_ACEOF 27475 27476 PMIX_ASM_GLOBAL="$pmix_cv_asm_global" 27477 27478 27479 27480 27481 # Extract the first word of "objdump", so it can be a program name with args. 27482set dummy objdump; ac_word=$2 27483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27484$as_echo_n "checking for $ac_word... " >&6; } 27485if ${ac_cv_prog_OBJDUMP+:} false; then : 27486 $as_echo_n "(cached) " >&6 27487else 27488 if test -n "$OBJDUMP"; then 27489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 27490else 27491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27492for as_dir in $PATH 27493do 27494 IFS=$as_save_IFS 27495 test -z "$as_dir" && as_dir=. 27496 for ac_exec_ext in '' $ac_executable_extensions; do 27497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27498 ac_cv_prog_OBJDUMP="objdump" 27499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27500 break 2 27501 fi 27502done 27503 done 27504IFS=$as_save_IFS 27505 27506fi 27507fi 27508OBJDUMP=$ac_cv_prog_OBJDUMP 27509if test -n "$OBJDUMP"; then 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 27511$as_echo "$OBJDUMP" >&6; } 27512else 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27514$as_echo "no" >&6; } 27515fi 27516 27517 27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .note.GNU-stack is needed" >&5 27519$as_echo_n "checking if .note.GNU-stack is needed... " >&6; } 27520if ${pmix_cv_asm_gnu_stack_result+:} false; then : 27521 $as_echo_n "(cached) " >&6 27522else 27523 if test "$OBJDUMP" != ""; then : 27524 # first, see if a simple C program has it set 27525 cat >conftest.c <<EOF 27526int testfunc() {return 0; } 27527EOF 27528 27529# 1 is the command 27530# 2 is actions to do if success 27531# 3 is actions to do if fail 27532echo "configure:27529: $CC $CFLAGS -c conftest.c -o conftest.$OBJEXT" >&5 27533$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1 27534pmix_status=$? 27535 27536# 1 is the message 27537# 2 is whether to put a prefix or not 27538if test -n "1"; then 27539 echo "configure:27536: \$? = $pmix_status" >&5 27540else 27541 echo \$? = $pmix_status >&5 27542fi 27543if test "$pmix_status" = "0"; then 27544 unset pmix_status 27545 $OBJDUMP -x conftest.$OBJEXT 2>&1 | $GREP '\.note\.GNU-stack' &> /dev/null && pmix_cv_asm_gnu_stack_result=yes 27546else 27547 unset pmix_status 27548 27549# 1 is the message 27550# 2 is whether to put a prefix or not 27551if test -n "1"; then 27552 echo "configure:27549: the failed program was:" >&5 27553else 27554 echo the failed program was: >&5 27555fi 27556 27557# 1 is the filename 27558if test -n "conftest.c" && test -f "conftest.c"; then 27559 cat conftest.c >&5 27560fi 27561 pmix_cv_asm_gnu_stack_result=no 27562fi 27563 if test "$pmix_cv_asm_gnu_stack_result" != "yes" ; then 27564 pmix_cv_asm_gnu_stack_result="no" 27565 fi 27566 rm -rf conftest.* 27567else 27568 pmix_cv_asm_gnu_stack_result="no" 27569fi 27570fi 27571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_gnu_stack_result" >&5 27572$as_echo "$pmix_cv_asm_gnu_stack_result" >&6; } 27573 if test "$pmix_cv_asm_gnu_stack_result" = "yes" ; then 27574 pmix_cv_asm_gnu_stack=1 27575 else 27576 pmix_cv_asm_gnu_stack=0 27577 fi 27578 27579 27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking suffix for labels" >&5 27581$as_echo_n "checking suffix for labels... " >&6; } 27582 pmix_cv_asm_label_suffix="" 27583 case $host in 27584 *) 27585 pmix_cv_asm_label_suffix=":" 27586 ;; 27587 esac 27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_label_suffix" >&5 27589$as_echo "$pmix_cv_asm_label_suffix" >&6; } 27590 27591cat >>confdefs.h <<_ACEOF 27592#define PMIX_ASM_LABEL_SUFFIX "$pmix_cv_asm_label_suffix" 27593_ACEOF 27594 27595 PMIX_ASM_LABEL_SUFFIX="$pmix_cv_asm_label_suffix" 27596 27597 27598 27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for global symbol labels" >&5 27600$as_echo_n "checking prefix for global symbol labels... " >&6; } 27601if ${pmix_cv_asm_gsym+:} false; then : 27602 $as_echo_n "(cached) " >&6 27603else 27604 27605 pmix_cv_asm_gsym="none" 27606 for sym in "_" "" "." ; do 27607 asm_result=0 27608 echo "configure: trying $sym" >&5 27609cat > conftest_c.c <<EOF 27610#ifdef __cplusplus 27611extern "C" { 27612#endif 27613void gsym_test_func(void); 27614#ifdef __cplusplus 27615} 27616#endif 27617int 27618main() 27619{ 27620 gsym_test_func(); 27621 return 0; 27622} 27623EOF 27624 cat >conftest.s <<EOF 27625 27626$pmix_cv_asm_text 27627$pmix_cv_asm_proc ${sym}gsym_test_func 27628$pmix_cv_asm_global ${sym}gsym_test_func 27629${sym}gsym_test_func${pmix_cv_asm_label_suffix} 27630$pmix_cv_asm_endproc ${sym}gsym_test_func 27631 27632EOF 27633if test "$CC" = "$CCAS" ; then 27634 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 27635else 27636 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 27637fi 27638if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 27639 (eval $pmix_assemble) 2>&5 27640 ac_status=$? 27641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27642 test $ac_status = 0; }; then 27643 # save the warnings 27644 cat conftest.out >&5 27645 pmix_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1" 27646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_compile\""; } >&5 27647 (eval $pmix_compile) 2>&5 27648 ac_status=$? 27649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27650 test $ac_status = 0; } ; then 27651 # save the warnings 27652 cat conftest.cmpl >&5 27653 pmix_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest $LDFLAGS $LIBS > conftest.link 2>&1" 27654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_link\""; } >&5 27655 (eval $pmix_link) 2>&5 27656 ac_status=$? 27657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27658 test $ac_status = 0; } ; then 27659 # save the warnings 27660 cat conftest.link >&5 27661 asm_result=1 27662 else 27663 cat conftest.link >&5 27664 echo "configure: failed C program was: " >&5 27665 cat conftest_c.c >&5 27666 echo "configure: failed ASM program was: " >&5 27667 cat conftest.s >&5 27668 asm_result=0 27669 fi 27670 else 27671 # save output and failed program 27672 cat conftest.cmpl >&5 27673 echo "configure: failed C program was: " >&5 27674 cat conftest.c >&5 27675 asm_result=0 27676 fi 27677else 27678 # save compiler output and failed program 27679 cat conftest.out >&5 27680 echo "configure: failed program was:" >&5 27681 cat conftest.s >&5 27682 asm_result=0 27683fi 27684rm -rf conftest* 27685unset pmix_assemble 27686 27687 if test "$asm_result" = "1" ; then 27688 pmix_cv_asm_gsym="$sym" 27689 break 27690 fi 27691 done 27692 rm -rf conftest.* 27693 27694fi 27695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_gsym" >&5 27696$as_echo "$pmix_cv_asm_gsym" >&6; } 27697 if test "$pmix_cv_asm_gsym" = "none" ; then 27698 as_fn_error $? "Could not determine global symbol label prefix" "$LINENO" 5 27699 fi 27700 27701cat >>confdefs.h <<_ACEOF 27702#define PMIX_ASM_GSYM "$pmix_cv_asm_gsym" 27703_ACEOF 27704 27705 PMIX_ASM_GSYM="$pmix_cv_asm_gsym" 27706 27707 27708 27709 27710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for lsym labels" >&5 27711$as_echo_n "checking prefix for lsym labels... " >&6; } 27712if ${pmix_cv_asm_lsym+:} false; then : 27713 $as_echo_n "(cached) " >&6 27714else 27715 27716 27717 pmix_cv_asm_lsym="L" 27718 for sym in L .L $ L$ ; do 27719 asm_result=0 27720 echo "configure: trying $sym" >&5 27721 cat >conftest.s <<EOF 27722foobar$pmix_cv_asm_label_suffix 27723${sym}mytestlabel$pmix_cv_asm_label_suffix 27724EOF 27725if test "$CC" = "$CCAS" ; then 27726 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 27727else 27728 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 27729fi 27730if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 27731 (eval $pmix_assemble) 2>&5 27732 ac_status=$? 27733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27734 test $ac_status = 0; }; then 27735 # save the warnings 27736 cat conftest.out >&5 27737 # ok, we succeeded at assembling. see if we can nm, 27738 # throwing the results in a file 27739 if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then 27740 if test "`$GREP mytestlabel conftest.out`" = "" ; then 27741 # there was no symbol... looks promising to me 27742 pmix_cv_asm_lsym="$sym" 27743 asm_result=1 27744 elif test "`$GREP ' [Nt] .*mytestlabel' conftest.out`" = "" ; then 27745 # see if we have a non-global-ish symbol 27746 # but we should see if we can do better. 27747 pmix_cv_asm_lsym="$sym" 27748 fi 27749 else 27750 # not so much on the NM goodness :/ 27751 echo "$NM failed. Output from NM was:" >&5 27752 cat conftest.out >&5 27753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $NM could not read object file" >&5 27754$as_echo "$as_me: WARNING: $NM could not read object file" >&2;} 27755 fi 27756 27757else 27758 # save compiler output and failed program 27759 cat conftest.out >&5 27760 echo "configure: failed program was:" >&5 27761 cat conftest.s >&5 27762 : 27763fi 27764rm -rf conftest* 27765unset pmix_assemble 27766 27767 if test "$asm_result" = "1" ; then 27768 break 27769 fi 27770 done 27771 rm -f conftest.out 27772 unset asm_result sym 27773 27774fi 27775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_lsym" >&5 27776$as_echo "$pmix_cv_asm_lsym" >&6; } 27777 27778cat >>confdefs.h <<_ACEOF 27779#define PMIX_ASM_LSYM "$pmix_cv_asm_lsym" 27780_ACEOF 27781 27782 PMIX_ASM_LSYM="$pmix_cv_asm_lsym" 27783 27784 27785 27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for function in .type" >&5 27787$as_echo_n "checking prefix for function in .type... " >&6; } 27788if ${pmix_cv_asm_type+:} false; then : 27789 $as_echo_n "(cached) " >&6 27790else 27791 27792 pmix_cv_asm_type="" 27793 case "${host}" in 27794 *-sun-solaris*) 27795 # GCC on solaris seems to accept just about anything, not 27796 # that what it defines actually works... So just hardwire 27797 # to the right answer 27798 pmix_cv_asm_type="#" 27799 ;; 27800 *) 27801 for type in @ \# % ; do 27802 asm_result=0 27803 echo "configure: trying $type" >&5 27804 cat >conftest.s <<EOF 27805 .type mysym, ${type}function 27806mysym: 27807EOF 27808if test "$CC" = "$CCAS" ; then 27809 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 27810else 27811 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 27812fi 27813if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 27814 (eval $pmix_assemble) 2>&5 27815 ac_status=$? 27816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27817 test $ac_status = 0; }; then 27818 # save the warnings 27819 cat conftest.out >&5 27820 pmix_cv_asm_type="${type}" 27821 asm_result=1 27822else 27823 # save compiler output and failed program 27824 cat conftest.out >&5 27825 echo "configure: failed program was:" >&5 27826 cat conftest.s >&5 27827 : 27828fi 27829rm -rf conftest* 27830unset pmix_assemble 27831 27832 if test "$asm_result" = "1" ; then 27833 break 27834 fi 27835 done 27836 ;; 27837 esac 27838 rm -f conftest.out 27839 unset asm_result type 27840 27841fi 27842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_type" >&5 27843$as_echo "$pmix_cv_asm_type" >&6; } 27844 27845cat >>confdefs.h <<_ACEOF 27846#define PMIX_ASM_TYPE "$pmix_cv_asm_type" 27847_ACEOF 27848 27849 PMIX_ASM_TYPE="$pmix_cv_asm_type" 27850 27851 27852 27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .size is needed" >&5 27854$as_echo_n "checking if .size is needed... " >&6; } 27855if ${pmix_cv_asm_need_size+:} false; then : 27856 $as_echo_n "(cached) " >&6 27857else 27858 pmix_cv_asm_need_size="no" 27859 cat >conftest.s <<EOF 27860 .size mysym, 1 27861EOF 27862if test "$CC" = "$CCAS" ; then 27863 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 27864else 27865 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 27866fi 27867if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 27868 (eval $pmix_assemble) 2>&5 27869 ac_status=$? 27870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27871 test $ac_status = 0; }; then 27872 # save the warnings 27873 cat conftest.out >&5 27874 pmix_cv_asm_need_size="yes" 27875else 27876 # save compiler output and failed program 27877 cat conftest.out >&5 27878 echo "configure: failed program was:" >&5 27879 cat conftest.s >&5 27880 : 27881fi 27882rm -rf conftest* 27883unset pmix_assemble 27884 27885 rm -f conftest.out 27886fi 27887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_need_size" >&5 27888$as_echo "$pmix_cv_asm_need_size" >&6; } 27889 if test "$pmix_cv_asm_need_size" = "yes" ; then 27890 pmix_asm_size=1 27891 else 27892 pmix_asm_size=0 27893 fi 27894 27895cat >>confdefs.h <<_ACEOF 27896#define PMIX_ASM_SIZE "$pmix_asm_size" 27897_ACEOF 27898 27899 PMIX_ASM_SIZE="$pmix_asm_size" 27900 27901 unset asm_result 27902 27903 27904 27905 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align directive takes logarithmic value" >&5 27907$as_echo_n "checking if .align directive takes logarithmic value... " >&6; } 27908if ${pmix_cv_asm_align_log+:} false; then : 27909 $as_echo_n "(cached) " >&6 27910else 27911 cat >conftest.s <<EOF 27912 $pmix_cv_asm_text 27913 .align 4 27914 $pmix_cv_asm_global foo 27915 .byte 1 27916 .align 4 27917foo$pmix_cv_asm_label_suffix 27918 .byte 2 27919EOF 27920if test "$CC" = "$CCAS" ; then 27921 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 27922else 27923 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 27924fi 27925if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 27926 (eval $pmix_assemble) 2>&5 27927 ac_status=$? 27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27929 test $ac_status = 0; }; then 27930 # save the warnings 27931 cat conftest.out >&5 27932 pmix_asm_addr=`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'` 27933else 27934 # save compiler output and failed program 27935 cat conftest.out >&5 27936 echo "configure: failed program was:" >&5 27937 cat conftest.s >&5 27938 pmix_asm_addr="" 27939fi 27940rm -rf conftest* 27941unset pmix_assemble 27942 27943 # test for both 16 and 10 (decimal and hex notations) 27944 echo "configure: .align test address offset is $pmix_asm_addr" >&5 27945 if test "$pmix_asm_addr" = "16" || test "$pmix_asm_addr" = "10" ; then 27946 pmix_cv_asm_align_log="yes" 27947 else 27948 pmix_cv_asm_align_log="no" 27949 fi 27950fi 27951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_align_log" >&5 27952$as_echo "$pmix_cv_asm_align_log" >&6; } 27953 if test "$pmix_cv_asm_align_log" = "yes" || test "$pmix_cv_asm_align_log" = "1" ; then 27954 pmix_asm_align_log_result=1 27955 else 27956 pmix_asm_align_log_result=0 27957 fi 27958 27959cat >>confdefs.h <<_ACEOF 27960#define PMIX_ASM_ALIGN_LOG $asm_align_log_result 27961_ACEOF 27962 27963 unset omp_asm_addr asm_result 27964 27965 # find our architecture for purposes of assembly stuff 27966 pmix_cv_asm_arch="UNSUPPORTED" 27967 PMIX_GCC_INLINE_ASSIGN="" 27968 if test "$pmix_cv_have___atomic_64" ; then 27969 PMIX_ASM_SUPPORT_64BIT=1 27970 else 27971 PMIX_ASM_SUPPORT_64BIT=0 27972 fi 27973 case "${host}" in 27974 x86_64-*x32) 27975 pmix_cv_asm_arch="X86_64" 27976 PMIX_ASM_SUPPORT_64BIT=1 27977 PMIX_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)' 27978 ;; 27979 i?86-*|x86_64*|amd64*) 27980 if test "$ac_cv_sizeof_long" = "4" ; then 27981 pmix_cv_asm_arch="IA32" 27982 else 27983 pmix_cv_asm_arch="X86_64" 27984 fi 27985 PMIX_ASM_SUPPORT_64BIT=1 27986 PMIX_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)' 27987 27988 27989 27990 # Is the private index set? If not, set it. 27991 if test "x$pmix_scope_index" = "x"; then 27992 pmix_scope_index=1 27993 fi 27994 27995 # First, check to see if any of these variables are already set. 27996 # This is a simple sanity check to ensure we're not already 27997 # overwriting pre-existing variables (that have a non-empty 27998 # value). It's not a perfect check, but at least it's something. 27999 for pmix_var in cmpxchg16b_result; do 28000 pmix_str="pmix_str=\"\$$pmix_var\"" 28001 eval $pmix_str 28002 28003 if test "x$pmix_str" != "x"; then 28004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 28005$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 28006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 28007$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 28008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 28009$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 28010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 28011$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 28012 as_fn_error $? "Cannot continue" "$LINENO" 5 28013 fi 28014 done 28015 28016 # Ok, we passed the simple sanity check. Save all these names so 28017 # that we can unset them at the end of the scope. 28018 pmix_str="pmix_scope_$pmix_scope_index=\"cmpxchg16b_result\"" 28019 eval $pmix_str 28020 unset pmix_str 28021 28022 env | grep pmix_scope 28023 pmix_scope_index=`expr $pmix_scope_index + 1` 28024 28025 28026 28027 28028 # Is the private index set? If not, set it. 28029 if test "x$pmix_scope_index" = "x"; then 28030 pmix_scope_index=1 28031 fi 28032 28033 # First, check to see if any of these variables are already set. 28034 # This is a simple sanity check to ensure we're not already 28035 # overwriting pre-existing variables (that have a non-empty 28036 # value). It's not a perfect check, but at least it's something. 28037 for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do 28038 pmix_str="pmix_str=\"\$$pmix_var\"" 28039 eval $pmix_str 28040 28041 if test "x$pmix_str" != "x"; then 28042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 28043$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 28044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 28045$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 28046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 28047$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 28049$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 28050 as_fn_error $? "Cannot continue" "$LINENO" 5 28051 fi 28052 done 28053 28054 # Ok, we passed the simple sanity check. Save all these names so 28055 # that we can unset them at the end of the scope. 28056 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\"" 28057 eval $pmix_str 28058 unset pmix_str 28059 28060 env | grep pmix_scope 28061 pmix_scope_index=`expr $pmix_scope_index + 1` 28062 28063 pmix_asm_check_func_CFLAGS_save=$CFLAGS 28064 pmix_asm_check_func_LIBS_save=$LIBS 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b" >&5 28066$as_echo_n "checking for cmpxchg16b... " >&6; } 28067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28068/* end confdefs.h. */ 28069unsigned char tmp[16]; 28070int 28071main () 28072{ 28073__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); 28074 ; 28075 return 0; 28076} 28077_ACEOF 28078if ac_fn_c_try_link "$LINENO"; then : 28079 pmix_asm_check_func_happy=1 28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28081$as_echo "yes" >&6; } 28082else 28083 pmix_asm_check_func_happy=0 28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28085$as_echo "no" >&6; } 28086fi 28087rm -f core conftest.err conftest.$ac_objext \ 28088 conftest$ac_exeext conftest.$ac_ext 28089 if test $pmix_asm_check_func_happy -eq 0; then : 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b with -mcx16" >&5 28091$as_echo_n "checking for cmpxchg16b with -mcx16... " >&6; } 28092 CFLAGS="$CFLAGS -mcx16" 28093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28094/* end confdefs.h. */ 28095unsigned char tmp[16]; 28096int 28097main () 28098{ 28099__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); 28100 ; 28101 return 0; 28102} 28103_ACEOF 28104if ac_fn_c_try_link "$LINENO"; then : 28105 pmix_asm_check_func_happy=1 28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28107$as_echo "yes" >&6; } 28108else 28109 pmix_asm_check_func_happy=0 28110 CFLAGS=$pmix_asm_check_func_CFLAGS_save 28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28112$as_echo "no" >&6; } 28113fi 28114rm -f core conftest.err conftest.$ac_objext \ 28115 conftest$ac_exeext conftest.$ac_ext 28116 28117fi 28118 if test $pmix_asm_check_func_happy -eq 0; then : 28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b with -latomic" >&5 28120$as_echo_n "checking for cmpxchg16b with -latomic... " >&6; } 28121 LIBS="$LIBS -latomic" 28122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28123/* end confdefs.h. */ 28124unsigned char tmp[16]; 28125int 28126main () 28127{ 28128__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); 28129 ; 28130 return 0; 28131} 28132_ACEOF 28133if ac_fn_c_try_link "$LINENO"; then : 28134 pmix_asm_check_func_happy=1 28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28136$as_echo "yes" >&6; } 28137else 28138 pmix_asm_check_func_happy=0 28139 LIBS=$pmix_asm_check_func_LIBS_save 28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28141$as_echo "no" >&6; } 28142fi 28143rm -f core conftest.err conftest.$ac_objext \ 28144 conftest$ac_exeext conftest.$ac_ext 28145 28146fi 28147 if test $pmix_asm_check_func_happy -eq 1; then : 28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cmpxchg16b() gives correct results" >&5 28149$as_echo_n "checking if cmpxchg16b() gives correct results... " >&6; } 28150 if test "$cross_compiling" = yes; then : 28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 28152$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 28153else 28154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28155/* end confdefs.h. */ 28156unsigned char tmp[16]; 28157int 28158main () 28159{ 28160__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); 28161 ; 28162 return 0; 28163} 28164_ACEOF 28165if ac_fn_c_try_run "$LINENO"; then : 28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28167$as_echo "yes" >&6; } 28168else 28169 pmix_asm_check_func_happy=0 28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28171$as_echo "no" >&6; } 28172fi 28173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28174 conftest.$ac_objext conftest.beam conftest.$ac_ext 28175fi 28176 28177 28178fi 28179 if test $pmix_asm_check_func_happy -eq 0; then : 28180 CFLAGS=$pmix_asm_check_func_CFLAGS_save 28181 LIBS=$pmix_asm_check_func_LIBS_save 28182fi 28183 if test $pmix_asm_check_func_happy -eq 1; then : 28184 cmpxchg16b_result=1 28185else 28186 cmpxchg16b_result=0 28187fi 28188 28189 # Unwind the index 28190 pmix_scope_index=`expr $pmix_scope_index - 1` 28191 pmix_scope_test=`expr $pmix_scope_index \> 0` 28192 if test "$pmix_scope_test" = "0"; then 28193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 28194$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 28195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 28196$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 28197 as_fn_error $? "Cannot continue" "$LINENO" 5 28198 fi 28199 28200 # Get the variable names from that index 28201 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 28202 eval $pmix_str 28203 28204 # Iterate over all the variables and unset them all 28205 for pmix_var in $pmix_str; do 28206 unset $pmix_var 28207 done 28208 28209 28210 # If we have it, make sure it works. 28211 if test $cmpxchg16b_result -eq 1; then : 28212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cmpxchg16b_result works" >&5 28213$as_echo_n "checking if cmpxchg16b_result works... " >&6; } 28214 if test "$cross_compiling" = yes; then : 28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 28216$as_echo "cannot test -- assume yes (cross compiling)" >&6; } 28217else 28218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28219/* end confdefs.h. */ 28220 28221#include <stdint.h> 28222#include <assert.h> 28223union pmix_counted_pointer_t { 28224 struct { 28225 uint64_t counter; 28226 uint64_t item; 28227 } data; 28228#if defined(HAVE___INT128) && HAVE___INT128 28229 __int128 value; 28230#elif defined(HAVE_INT128_T) && HAVE_INT128_T 28231 int128_t value; 28232#endif 28233}; 28234typedef union pmix_counted_pointer_t pmix_counted_pointer_t; 28235int main(int argc, char* argv) { 28236 volatile pmix_counted_pointer_t a; 28237 pmix_counted_pointer_t b; 28238 a.data.counter = 0; 28239 a.data.item = 0x1234567890ABCDEF; 28240 b.data.counter = a.data.counter; 28241 b.data.item = a.data.item; 28242 /* bozo checks */ 28243 assert(16 == sizeof(pmix_counted_pointer_t)); 28244 assert(a.data.counter == b.data.counter); 28245 assert(a.data.item == b.data.item); 28246 /* 28247 * the following test fails on buggy compilers 28248 * so far, with icc -o conftest conftest.c 28249 * - intel icc 14.0.0.080 (aka 2013sp1) 28250 * - intel icc 14.0.1.106 (aka 2013sp1u1) 28251 * older and more recents compilers work fine 28252 * buggy compilers work also fine but only with -O0 28253 */ 28254#if (defined(HAVE___INT128) && HAVE___INT128) || (defined(HAVE_INT128_T) && HAVE_INT128_T) 28255 return (a.value != b.value); 28256#else 28257 return 0; 28258#endif 28259} 28260 28261_ACEOF 28262if ac_fn_c_try_run "$LINENO"; then : 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28264$as_echo "yes" >&6; } 28265else 28266 cmpxchg16b_result=0 28267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28268$as_echo "no" >&6; } 28269fi 28270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28271 conftest.$ac_objext conftest.beam conftest.$ac_ext 28272fi 28273 28274 28275fi 28276 28277cat >>confdefs.h <<_ACEOF 28278#define PMIX_HAVE_CMPXCHG16B $cmpxchg16b_result 28279_ACEOF 28280 28281 28282 # Unwind the index 28283 pmix_scope_index=`expr $pmix_scope_index - 1` 28284 pmix_scope_test=`expr $pmix_scope_index \> 0` 28285 if test "$pmix_scope_test" = "0"; then 28286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 28287$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 28288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 28289$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 28290 as_fn_error $? "Cannot continue" "$LINENO" 5 28291 fi 28292 28293 # Get the variable names from that index 28294 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 28295 eval $pmix_str 28296 28297 # Iterate over all the variables and unset them all 28298 for pmix_var in $pmix_str; do 28299 unset $pmix_var 28300 done 28301 28302 28303 ;; 28304 aarch64*) 28305 pmix_cv_asm_arch="ARM64" 28306 PMIX_ASM_SUPPORT_64BIT=1 28307 PMIX_ASM_ARM_VERSION=8 28308 PMIX_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' 28309 ;; 28310 armv7*|arm-*-linux-gnueabihf) 28311 pmix_cv_asm_arch="ARM" 28312 PMIX_ASM_SUPPORT_64BIT=1 28313 PMIX_ASM_ARM_VERSION=7 28314 PMIX_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' 28315 ;; 28316 armv6*) 28317 pmix_cv_asm_arch="ARM" 28318 PMIX_ASM_SUPPORT_64BIT=0 28319 PMIX_ASM_ARM_VERSION=6 28320 CCASFLAGS="$CCASFLAGS -march=armv7-a" 28321 PMIX_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' 28322 ;; 28323 powerpc-*|powerpc64-*|powerpcle-*|powerpc64le-*|rs6000-*|ppc-*) 28324 28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PowerPC registers have r prefix" >&5 28326$as_echo_n "checking if PowerPC registers have r prefix... " >&6; } 28327 cat >conftest.s <<EOF 28328$pmix_cv_asm_text 28329 addi 1,1,0 28330EOF 28331if test "$CC" = "$CCAS" ; then 28332 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 28333else 28334 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 28335fi 28336if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 28337 (eval $pmix_assemble) 2>&5 28338 ac_status=$? 28339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28340 test $ac_status = 0; }; then 28341 # save the warnings 28342 cat conftest.out >&5 28343 pmix_cv_asm_powerpc_r_reg=0 28344else 28345 # save compiler output and failed program 28346 cat conftest.out >&5 28347 echo "configure: failed program was:" >&5 28348 cat conftest.s >&5 28349 cat >conftest.s <<EOF 28350$pmix_cv_asm_text 28351 addi r1,r1,0 28352EOF 28353if test "$CC" = "$CCAS" ; then 28354 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 28355else 28356 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 28357fi 28358if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 28359 (eval $pmix_assemble) 2>&5 28360 ac_status=$? 28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28362 test $ac_status = 0; }; then 28363 # save the warnings 28364 cat conftest.out >&5 28365 pmix_cv_asm_powerpc_r_reg=1 28366else 28367 # save compiler output and failed program 28368 cat conftest.out >&5 28369 echo "configure: failed program was:" >&5 28370 cat conftest.s >&5 28371 as_fn_error $? "Can not determine how to use PPC registers" "$LINENO" 5 28372fi 28373rm -rf conftest* 28374unset pmix_assemble 28375 28376fi 28377rm -rf conftest* 28378unset pmix_assemble 28379 28380 if test "$pmix_cv_asm_powerpc_r_reg" = "1" ; then 28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28382$as_echo "yes" >&6; } 28383 else 28384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28385$as_echo "no" >&6; } 28386 fi 28387 28388cat >>confdefs.h <<_ACEOF 28389#define PMIX_POWERPC_R_REGISTERS $pmix_cv_asm_powerpc_r_reg 28390_ACEOF 28391 28392 28393 if test "$ac_cv_sizeof_long" = "4" ; then 28394 pmix_cv_asm_arch="POWERPC32" 28395 # Note that on some platforms (Apple G5), even if we are 28396 # compiling in 32 bit mode (and therefore should assume 28397 # sizeof(long) == 4), we can use the 64 bit test and set 28398 # operations. 28399 28400 if test "$ac_cv_sizeof_long" != "4" ; then 28401 # this function should only be called in the 32 bit case 28402 as_fn_error $? "CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." "$LINENO" 5 28403 fi 28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit PowerPC assembly support" >&5 28405$as_echo_n "checking for 64-bit PowerPC assembly support... " >&6; } 28406 case $host in 28407 *-darwin*) 28408 ppc64_result=0 28409 if test "$pmix_cv_asm_powerpc_r_reg" = "1" ; then 28410 ldarx_asm=" ldarx r1,r1,r1"; 28411 else 28412 ldarx_asm=" ldarx 1,1,1"; 28413 fi 28414 cat >conftest.s <<EOF 28415$pmix_cv_asm_text 28416 $ldarx_asm 28417EOF 28418if test "$CC" = "$CCAS" ; then 28419 pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1" 28420else 28421 pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1" 28422fi 28423if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5 28424 (eval $pmix_assemble) 2>&5 28425 ac_status=$? 28426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28427 test $ac_status = 0; }; then 28428 # save the warnings 28429 cat conftest.out >&5 28430 ppc64_result=1 28431else 28432 # save compiler output and failed program 28433 cat conftest.out >&5 28434 echo "configure: failed program was:" >&5 28435 cat conftest.s >&5 28436 ppc64_result=0 28437fi 28438rm -rf conftest* 28439unset pmix_assemble 28440 28441 ;; 28442 *) 28443 ppc64_result=0 28444 ;; 28445 esac 28446 if test "$ppc64_result" = "1" ; then 28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28448$as_echo "yes" >&6; } 28449 PMIX_ASM_SUPPORT_64BIT=1 28450 else 28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28452$as_echo "no" >&6; } 28453 : 28454 fi 28455 unset ppc64_result ldarx_asm 28456 28457 elif test "$ac_cv_sizeof_long" = "8" ; then 28458 PMIX_ASM_SUPPORT_64BIT=1 28459 pmix_cv_asm_arch="POWERPC64" 28460 else 28461 as_fn_error $? "Could not determine PowerPC word size: $ac_cv_sizeof_long" "$LINENO" 5 28462 fi 28463 PMIX_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)' 28464 ;; 28465 *) 28466 if test $pmix_cv_have___atomic = "yes" ; then 28467 pmix_cv_asm_builtin="BUILTIN_GCC" 28468 else 28469 as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 28470 fi 28471 ;; 28472 esac 28473 if ! test -z "$PMIX_ASM_ARM_VERSION" ; then 28474 28475cat >>confdefs.h <<_ACEOF 28476#define PMIX_ASM_ARM_VERSION $PMIX_ASM_ARM_VERSION 28477_ACEOF 28478 28479 fi 28480 if test "$pmix_cv_asm_builtin" = "BUILTIN_GCC" ; then 28481 28482$as_echo "#define PMIX_C_GCC_INLINE_ASSEMBLY 1" >>confdefs.h 28483 28484 else 28485 28486cat >>confdefs.h <<_ACEOF 28487#define PMIX_ASM_SUPPORT_64BIT $PMIX_ASM_SUPPORT_64BIT 28488_ACEOF 28489 28490 28491 pmix_cv_asm_inline_supported="no" 28492 # now that we know our architecture, try to inline assemble 28493 28494 assembly="$PMIX_GCC_INLINE_ASSIGN" 28495 asm_result="unknown" 28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports GCC inline assembly" >&5 28497$as_echo_n "checking if $CC supports GCC inline assembly... " >&6; } 28498 if test ! "$assembly" = "" ; then 28499 if test "$cross_compiling" = yes; then : 28500 asm_result="unknown" 28501else 28502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28503/* end confdefs.h. */ 28504$ac_includes_default 28505int 28506main () 28507{ 28508 28509int ret = 1; 28510int negone = -1; 28511__asm__ __volatile__ ($assembly); 28512return ret; 28513 28514 ; 28515 return 0; 28516} 28517_ACEOF 28518if ac_fn_c_try_run "$LINENO"; then : 28519 asm_result="yes" 28520else 28521 asm_result="no" 28522fi 28523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28524 conftest.$ac_objext conftest.beam conftest.$ac_ext 28525fi 28526 28527 else 28528 assembly="test skipped - assuming no" 28529 fi 28530 # if we're cross compiling, just try to compile and figure good enough 28531 if test "$asm_result" = "unknown" ; then 28532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28533/* end confdefs.h. */ 28534$ac_includes_default 28535int 28536main () 28537{ 28538 28539int ret = 1; 28540int negone = -1; 28541__asm__ __volatile__ ($assembly); 28542return ret; 28543 28544 ; 28545 return 0; 28546} 28547_ACEOF 28548if ac_fn_c_try_link "$LINENO"; then : 28549 asm_result="yes" 28550else 28551 asm_result="no" 28552fi 28553rm -f core conftest.err conftest.$ac_objext \ 28554 conftest$ac_exeext conftest.$ac_ext 28555 fi 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5 28557$as_echo "$asm_result" >&6; } 28558 if test "$asm_result" = "yes" ; then 28559 PMIX_C_GCC_INLINE_ASSEMBLY=1 28560 pmix_cv_asm_inline_supported="yes" 28561 else 28562 PMIX_C_GCC_INLINE_ASSEMBLY=0 28563 fi 28564 28565cat >>confdefs.h <<_ACEOF 28566#define PMIX_C_GCC_INLINE_ASSEMBLY $PMIX_C_GCC_INLINE_ASSEMBLY 28567_ACEOF 28568 28569 unset PMIX_C_GCC_INLINE_ASSEMBLY assembly asm_result 28570 28571 # format: 28572 # config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack 28573 asm_format="default" 28574 asm_format="${asm_format}-${pmix_cv_asm_text}-${pmix_cv_asm_global}" 28575 asm_format="${asm_format}-${pmix_cv_asm_label_suffix}-${pmix_cv_asm_gsym}" 28576 asm_format="${asm_format}-${pmix_cv_asm_lsym}" 28577 asm_format="${asm_format}-${pmix_cv_asm_type}-${pmix_asm_size}" 28578 asm_format="${asm_format}-${pmix_asm_align_log_result}" 28579 if test "$pmix_cv_asm_arch" = "POWERPC32" || test "$pmix_cv_asm_arch" = "POWERPC64" ; then 28580 asm_format="${asm_format}-${pmix_cv_asm_powerpc_r_reg}" 28581 else 28582 asm_format="${asm_format}-1" 28583 fi 28584 asm_format="${asm_format}-${PMIX_ASM_SUPPORT_64BIT}" 28585 pmix_cv_asm_format="${asm_format}-${pmix_cv_asm_gnu_stack}" 28586 # For the Makefile, need to escape the $ as $$. Don't display 28587 # this version, but make sure the Makefile gives the right thing 28588 # when regenerating the files because the base has been touched. 28589 PMIX_ASSEMBLY_FORMAT=`echo "$pmix_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'` 28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly format" >&5 28591$as_echo_n "checking for assembly format... " >&6; } 28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_format" >&5 28593$as_echo "$pmix_cv_asm_format" >&6; } 28594 28595cat >>confdefs.h <<_ACEOF 28596#define PMIX_ASSEMBLY_FORMAT "$PMIX_ASSEMBLY_FORMAT" 28597_ACEOF 28598 28599 28600 fi # if pmix_cv_asm_builtin = BUILTIN_GCC 28601 result="PMIX_$pmix_cv_asm_arch" 28602 PMIX_ASSEMBLY_ARCH="$pmix_cv_asm_arch" 28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly architecture" >&5 28604$as_echo_n "checking for assembly architecture... " >&6; } 28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_arch" >&5 28606$as_echo "$pmix_cv_asm_arch" >&6; } 28607 28608cat >>confdefs.h <<_ACEOF 28609#define PMIX_ASSEMBLY_ARCH $result 28610_ACEOF 28611 28612 28613 # Check for RDTSCP support 28614 result=0 28615 if test "$pmix_cv_asm_arch" = "PMIX_X86_64" || test "$pmix_cv_asm_arch" = "PMIX_IA32"; then : 28616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDTSCP assembly support" >&5 28617$as_echo_n "checking for RDTSCP assembly support... " >&6; } 28618 ac_ext=c 28619ac_cpp='$CPP $CPPFLAGS' 28620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28622ac_compiler_gnu=$ac_cv_c_compiler_gnu 28623 28624 if test "$cross_compiling" = yes; then : 28625 #cross compile not supported 28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no (cross compiling)\"" >&5 28627$as_echo "\"no (cross compiling)\"" >&6; } 28628else 28629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28630/* end confdefs.h. */ 28631[ 28632int main(int argc, char* argv[]) 28633{ 28634 unsigned int rax, rdx; 28635 __asm__ __volatile__ ("rdtscp\n": "=a" (rax), "=d" (rdx):: "%rax", "%rdx"); 28636 return 0; 28637} 28638 ] 28639_ACEOF 28640if ac_fn_c_try_run "$LINENO"; then : 28641 result=1 28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28643$as_echo "yes" >&6; } 28644else 28645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28646$as_echo "no" >&6; } 28647fi 28648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28649 conftest.$ac_objext conftest.beam conftest.$ac_ext 28650fi 28651 28652 ac_ext=c 28653ac_cpp='$CPP $CPPFLAGS' 28654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28656ac_compiler_gnu=$ac_cv_c_compiler_gnu 28657 28658fi 28659 28660cat >>confdefs.h <<_ACEOF 28661#define PMIX_ASSEMBLY_SUPPORTS_RDTSCP $result 28662_ACEOF 28663 28664 result="PMIX_$pmix_cv_asm_builtin" 28665 PMIX_ASSEMBLY_BUILTIN="$pmix_cv_asm_builtin" 28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin atomics" >&5 28667$as_echo_n "checking for builtin atomics... " >&6; } 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_builtin" >&5 28669$as_echo "$pmix_cv_asm_builtin" >&6; } 28670 28671cat >>confdefs.h <<_ACEOF 28672#define PMIX_ASSEMBLY_BUILTIN $result 28673_ACEOF 28674 28675 28676 28677 28678 28679if test "$pmix_cv_asm_arch" != "WINDOWS" && test "$pmix_cv_asm_builtin" != "BUILTIN_GCC" && test "$pmix_cv_asm_builtin" != "BUILTIN_OSX" && test "$pmix_cv_asm_inline_arch" = "no" ; then 28680 as_fn_error $? "no atomic support available. exiting" "$LINENO" 5 28681else 28682 # On windows with VC++, atomics are done with compiler primitives 28683 pmix_cv_asm_file="" 28684fi 28685 28686 unset result asm_format 28687 28688 28689 28690 ################################## 28691 # Header files 28692 ################################## 28693 28694 pmix_show_title "Header file tests" 28695 28696 for ac_header in arpa/inet.h \ 28697 fcntl.h ifaddrs.h inttypes.h libgen.h \ 28698 net/uio.h netinet/in.h \ 28699 stdint.h stddef.h \ 28700 stdlib.h string.h strings.h \ 28701 sys/ioctl.h sys/param.h \ 28702 sys/select.h sys/socket.h sys/sockio.h \ 28703 stdarg.h sys/stat.h sys/time.h \ 28704 sys/types.h sys/un.h sys/uio.h \ 28705 sys/wait.h syslog.h \ 28706 time.h unistd.h dirent.h \ 28707 crt_externs.h signal.h \ 28708 ioLib.h sockLib.h hostLib.h limits.h \ 28709 sys/fcntl.h sys/statfs.h sys/statvfs.h \ 28710 netdb.h ucred.h zlib.h sys/auxv.h \ 28711 sys/sysctl.h termio.h termios.h pty.h \ 28712 libutil.h util.h grp.h sys/cdefs.h utmp.h stropts.h \ 28713 sys/utsname.h 28714do : 28715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28718 cat >>confdefs.h <<_ACEOF 28719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28720_ACEOF 28721 28722fi 28723 28724done 28725 28726 28727 for ac_header in sys/mount.h 28728do : 28729 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default 28730 #if HAVE_SYS_PARAM_H 28731 #include <sys/param.h> 28732 #endif 28733 28734" 28735if test "x$ac_cv_header_sys_mount_h" = xyes; then : 28736 cat >>confdefs.h <<_ACEOF 28737#define HAVE_SYS_MOUNT_H 1 28738_ACEOF 28739 28740fi 28741 28742done 28743 28744 28745 for ac_header in sys/sysctl.h 28746do : 28747 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 28748 #if HAVE_SYS_PARAM_H 28749 #include <sys/param.h> 28750 #endif 28751 28752" 28753if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 28754 cat >>confdefs.h <<_ACEOF 28755#define HAVE_SYS_SYSCTL_H 1 28756_ACEOF 28757 28758fi 28759 28760done 28761 28762 28763 # Needed to work around Darwin requiring sys/socket.h for 28764 # net/if.h 28765 for ac_header in net/if.h 28766do : 28767 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 28768 #if STDC_HEADERS 28769 # include <stdlib.h> 28770 # include <stddef.h> 28771 #else 28772 # if HAVE_STDLIB_H 28773 # include <stdlib.h> 28774 # endif 28775 #endif 28776 #if HAVE_SYS_SOCKET_H 28777 # include <sys/socket.h> 28778 #endif 28779 28780" 28781if test "x$ac_cv_header_net_if_h" = xyes; then : 28782 cat >>confdefs.h <<_ACEOF 28783#define HAVE_NET_IF_H 1 28784_ACEOF 28785 28786fi 28787 28788done 28789 28790 28791 # Note that sometimes we have <stdbool.h>, but it doesn't work (e.g., 28792 # have both Portland and GNU installed; using pgcc will find GNU's 28793 # <stdbool.h>, which all it does -- by standard -- is define "bool" to 28794 # "_Bool" [see 28795 # http://pmixw.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html], 28796 # and Portland has no idea what to do with _Bool). 28797 28798 # So first figure out if we have <stdbool.h> (i.e., check the value of 28799 # the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS, 28800 # above). If we do have it, then check to see if it actually works. 28801 # Define PMIX_USE_STDBOOL_H as approrpaite. 28802 for ac_header in stdbool.h 28803do : 28804 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" 28805if test "x$ac_cv_header_stdbool_h" = xyes; then : 28806 cat >>confdefs.h <<_ACEOF 28807#define HAVE_STDBOOL_H 1 28808_ACEOF 28809 have_stdbool_h=1 28810else 28811 have_stdbool_h=0 28812fi 28813 28814done 28815 28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <stdbool.h> works" >&5 28817$as_echo_n "checking if <stdbool.h> works... " >&6; } 28818 if test "$have_stdbool_h" = "1"; then 28819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28820/* end confdefs.h. */ 28821$ac_includes_default 28822 #if HAVE_STDBOOL_H 28823 #include <stdbool.h> 28824 #endif 28825 28826int 28827main () 28828{ 28829bool bar, foo = true; bar = foo; 28830 ; 28831 return 0; 28832} 28833_ACEOF 28834if ac_fn_c_try_compile "$LINENO"; then : 28835 PMIX_USE_STDBOOL_H=1 MSG=yes 28836else 28837 PMIX_USE_STDBOOL_H=0 MSG=no 28838fi 28839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28840 else 28841 PMIX_USE_STDBOOL_H=0 28842 MSG="no (don't have <stdbool.h>)" 28843 fi 28844 28845cat >>confdefs.h <<_ACEOF 28846#define PMIX_USE_STDBOOL_H $PMIX_USE_STDBOOL_H 28847_ACEOF 28848 28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5 28850$as_echo "$MSG" >&6; } 28851 28852 # checkpoint results 28853 cat >confcache <<\_ACEOF 28854# This file is a shell script that caches the results of configure 28855# tests run on this system so they can be shared between configure 28856# scripts and configure runs, see configure's option --config-cache. 28857# It is not useful on other systems. If it contains results you don't 28858# want to keep, you may remove or edit it. 28859# 28860# config.status only pays attention to the cache file if you give it 28861# the --recheck option to rerun configure. 28862# 28863# `ac_cv_env_foo' variables (set or unset) will be overridden when 28864# loading this file, other *unset* `ac_cv_foo' will be assigned the 28865# following values. 28866 28867_ACEOF 28868 28869# The following way of writing the cache mishandles newlines in values, 28870# but we know of no workaround that is simple, portable, and efficient. 28871# So, we kill variables containing newlines. 28872# Ultrix sh set writes to stderr and can't be redirected directly, 28873# and sets the high bit in the cache file unless we assign to the vars. 28874( 28875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 28876 eval ac_val=\$$ac_var 28877 case $ac_val in #( 28878 *${as_nl}*) 28879 case $ac_var in #( 28880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 28881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 28882 esac 28883 case $ac_var in #( 28884 _ | IFS | as_nl) ;; #( 28885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 28886 *) { eval $ac_var=; unset $ac_var;} ;; 28887 esac ;; 28888 esac 28889 done 28890 28891 (set) 2>&1 | 28892 case $as_nl`(ac_space=' '; set) 2>&1` in #( 28893 *${as_nl}ac_space=\ *) 28894 # `set' does not quote correctly, so add quotes: double-quote 28895 # substitution turns \\\\ into \\, and sed turns \\ into \. 28896 sed -n \ 28897 "s/'/'\\\\''/g; 28898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28899 ;; #( 28900 *) 28901 # `set' quotes correctly as required by POSIX, so do not add quotes. 28902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 28903 ;; 28904 esac | 28905 sort 28906) | 28907 sed ' 28908 /^ac_cv_env_/b end 28909 t clear 28910 :clear 28911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 28912 t end 28913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28914 :end' >>confcache 28915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 28916 if test -w "$cache_file"; then 28917 if test "x$cache_file" != "x/dev/null"; then 28918 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 28919$as_echo "$as_me: updating cache $cache_file" >&6;} 28920 if test ! -f "$cache_file" || test -h "$cache_file"; then 28921 cat confcache >"$cache_file" 28922 else 28923 case $cache_file in #( 28924 */* | ?:*) 28925 mv -f confcache "$cache_file"$$ && 28926 mv -f "$cache_file"$$ "$cache_file" ;; #( 28927 *) 28928 mv -f confcache "$cache_file" ;; 28929 esac 28930 fi 28931 fi 28932 else 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 28934$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 28935 fi 28936fi 28937rm -f confcache 28938 28939 ################################## 28940 # Types 28941 ################################## 28942 28943 pmix_show_title "Type tests" 28944 28945 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default 28946 #if HAVE_SYS_SOCKET_H 28947 #include <sys/socket.h> 28948 #endif 28949 #if HAVE_SYS_UN_H 28950 #include <sys/un.h> 28951 #endif 28952 #ifdef HAVE_NETINET_IN_H 28953 #include <netinet/in.h> 28954 #endif 28955 28956" 28957if test "x$ac_cv_type_socklen_t" = xyes; then : 28958 28959cat >>confdefs.h <<_ACEOF 28960#define HAVE_SOCKLEN_T 1 28961_ACEOF 28962 28963 28964fi 28965ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default 28966 #if HAVE_SYS_SOCKET_H 28967 #include <sys/socket.h> 28968 #endif 28969 #if HAVE_SYS_UN_H 28970 #include <sys/un.h> 28971 #endif 28972 #ifdef HAVE_NETINET_IN_H 28973 #include <netinet/in.h> 28974 #endif 28975 28976" 28977if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : 28978 28979cat >>confdefs.h <<_ACEOF 28980#define HAVE_STRUCT_SOCKADDR_IN 1 28981_ACEOF 28982 28983 28984fi 28985ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "$ac_includes_default 28986 #if HAVE_SYS_SOCKET_H 28987 #include <sys/socket.h> 28988 #endif 28989 #if HAVE_SYS_UN_H 28990 #include <sys/un.h> 28991 #endif 28992 #ifdef HAVE_NETINET_IN_H 28993 #include <netinet/in.h> 28994 #endif 28995 28996" 28997if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then : 28998 28999cat >>confdefs.h <<_ACEOF 29000#define HAVE_STRUCT_SOCKADDR_UN 1 29001_ACEOF 29002 29003 29004fi 29005ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default 29006 #if HAVE_SYS_SOCKET_H 29007 #include <sys/socket.h> 29008 #endif 29009 #if HAVE_SYS_UN_H 29010 #include <sys/un.h> 29011 #endif 29012 #ifdef HAVE_NETINET_IN_H 29013 #include <netinet/in.h> 29014 #endif 29015 29016" 29017if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 29018 29019cat >>confdefs.h <<_ACEOF 29020#define HAVE_STRUCT_SOCKADDR_IN6 1 29021_ACEOF 29022 29023 29024fi 29025ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default 29026 #if HAVE_SYS_SOCKET_H 29027 #include <sys/socket.h> 29028 #endif 29029 #if HAVE_SYS_UN_H 29030 #include <sys/un.h> 29031 #endif 29032 #ifdef HAVE_NETINET_IN_H 29033 #include <netinet/in.h> 29034 #endif 29035 29036" 29037if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 29038 29039cat >>confdefs.h <<_ACEOF 29040#define HAVE_STRUCT_SOCKADDR_STORAGE 1 29041_ACEOF 29042 29043 29044fi 29045 29046 29047 ac_fn_c_check_decl "$LINENO" "AF_UNSPEC" "ac_cv_have_decl_AF_UNSPEC" "$ac_includes_default 29048 #if HAVE_SYS_SOCKET_H 29049 #include <sys/socket.h> 29050 #endif 29051 #ifdef HAVE_NETINET_IN_H 29052 #include <netinet/in.h> 29053 #endif 29054 29055" 29056if test "x$ac_cv_have_decl_AF_UNSPEC" = xyes; then : 29057 ac_have_decl=1 29058else 29059 ac_have_decl=0 29060fi 29061 29062cat >>confdefs.h <<_ACEOF 29063#define HAVE_DECL_AF_UNSPEC $ac_have_decl 29064_ACEOF 29065ac_fn_c_check_decl "$LINENO" "PF_UNSPEC" "ac_cv_have_decl_PF_UNSPEC" "$ac_includes_default 29066 #if HAVE_SYS_SOCKET_H 29067 #include <sys/socket.h> 29068 #endif 29069 #ifdef HAVE_NETINET_IN_H 29070 #include <netinet/in.h> 29071 #endif 29072 29073" 29074if test "x$ac_cv_have_decl_PF_UNSPEC" = xyes; then : 29075 ac_have_decl=1 29076else 29077 ac_have_decl=0 29078fi 29079 29080cat >>confdefs.h <<_ACEOF 29081#define HAVE_DECL_PF_UNSPEC $ac_have_decl 29082_ACEOF 29083ac_fn_c_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "$ac_includes_default 29084 #if HAVE_SYS_SOCKET_H 29085 #include <sys/socket.h> 29086 #endif 29087 #ifdef HAVE_NETINET_IN_H 29088 #include <netinet/in.h> 29089 #endif 29090 29091" 29092if test "x$ac_cv_have_decl_AF_INET6" = xyes; then : 29093 ac_have_decl=1 29094else 29095 ac_have_decl=0 29096fi 29097 29098cat >>confdefs.h <<_ACEOF 29099#define HAVE_DECL_AF_INET6 $ac_have_decl 29100_ACEOF 29101ac_fn_c_check_decl "$LINENO" "PF_INET6" "ac_cv_have_decl_PF_INET6" "$ac_includes_default 29102 #if HAVE_SYS_SOCKET_H 29103 #include <sys/socket.h> 29104 #endif 29105 #ifdef HAVE_NETINET_IN_H 29106 #include <netinet/in.h> 29107 #endif 29108 29109" 29110if test "x$ac_cv_have_decl_PF_INET6" = xyes; then : 29111 ac_have_decl=1 29112else 29113 ac_have_decl=0 29114fi 29115 29116cat >>confdefs.h <<_ACEOF 29117#define HAVE_DECL_PF_INET6 $ac_have_decl 29118_ACEOF 29119 29120 29121 # SA_RESTART in signal.h 29122 29123 29124 # Is the private index set? If not, set it. 29125 if test "x$pmix_scope_index" = "x"; then 29126 pmix_scope_index=1 29127 fi 29128 29129 # First, check to see if any of these variables are already set. 29130 # This is a simple sanity check to ensure we're not already 29131 # overwriting pre-existing variables (that have a non-empty 29132 # value). It's not a perfect check, but at least it's something. 29133 for pmix_var in MSG2; do 29134 pmix_str="pmix_str=\"\$$pmix_var\"" 29135 eval $pmix_str 29136 29137 if test "x$pmix_str" != "x"; then 29138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 29139$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 29140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 29141$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 29142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 29143$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 29144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29145$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29146 as_fn_error $? "Cannot continue" "$LINENO" 5 29147 fi 29148 done 29149 29150 # Ok, we passed the simple sanity check. Save all these names so 29151 # that we can unset them at the end of the scope. 29152 pmix_str="pmix_scope_$pmix_scope_index=\"MSG2\"" 29153 eval $pmix_str 29154 unset pmix_str 29155 29156 env | grep pmix_scope 29157 pmix_scope_index=`expr $pmix_scope_index + 1` 29158 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SA_RESTART defined in signal.h" >&5 29160$as_echo_n "checking if SA_RESTART defined in signal.h... " >&6; } 29161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29162/* end confdefs.h. */ 29163 29164 #include <signal.h> 29165 #ifdef SA_RESTART 29166 yes 29167 #endif 29168 29169_ACEOF 29170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29171 $EGREP "yes" >/dev/null 2>&1; then : 29172 MSG2=yes VALUE=1 29173else 29174 MSG2=no VALUE=0 29175fi 29176rm -f conftest* 29177 29178 29179cat >>confdefs.h <<_ACEOF 29180#define PMIX_HAVE_SA_RESTART $VALUE 29181_ACEOF 29182 29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG2" >&5 29184$as_echo "$MSG2" >&6; } 29185 29186 # Unwind the index 29187 pmix_scope_index=`expr $pmix_scope_index - 1` 29188 pmix_scope_test=`expr $pmix_scope_index \> 0` 29189 if test "$pmix_scope_test" = "0"; then 29190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 29191$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29193$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29194 as_fn_error $? "Cannot continue" "$LINENO" 5 29195 fi 29196 29197 # Get the variable names from that index 29198 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 29199 eval $pmix_str 29200 29201 # Iterate over all the variables and unset them all 29202 for pmix_var in $pmix_str; do 29203 unset $pmix_var 29204 done 29205 29206 29207 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " 29208 #include <sys/types.h> 29209 #if HAVE_SYS_SOCKET_H 29210 #include <sys/socket.h> 29211 #endif 29212 29213" 29214if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 29215 29216cat >>confdefs.h <<_ACEOF 29217#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 29218_ACEOF 29219 29220 29221fi 29222 29223 29224 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" " 29225 #include <sys/types.h> 29226 #include <dirent.h> 29227" 29228if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : 29229 29230cat >>confdefs.h <<_ACEOF 29231#define HAVE_STRUCT_DIRENT_D_TYPE 1 29232_ACEOF 29233 29234 29235fi 29236 29237 29238 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h> 29239" 29240if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then : 29241 29242cat >>confdefs.h <<_ACEOF 29243#define HAVE_SIGINFO_T_SI_FD 1 29244_ACEOF 29245 29246 29247fi 29248 29249 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> 29250" 29251if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : 29252 29253cat >>confdefs.h <<_ACEOF 29254#define HAVE_SIGINFO_T_SI_BAND 1 29255_ACEOF 29256 29257 29258fi 29259 29260 29261 # 29262 # Checks for struct member names in struct statfs 29263 # 29264 ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" " 29265 $ac_includes_default 29266 #ifdef HAVE_SYS_VFS_H 29267 #include <sys/vfs.h> 29268 #endif 29269 #ifdef HAVE_SYS_STATFS_H 29270 #include <sys/statfs.h> 29271 #endif 29272 29273" 29274if test "x$ac_cv_member_struct_statfs_f_type" = xyes; then : 29275 29276cat >>confdefs.h <<_ACEOF 29277#define HAVE_STRUCT_STATFS_F_TYPE 1 29278_ACEOF 29279 29280 29281fi 29282 29283 29284 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " 29285 $ac_includes_default 29286 #ifdef HAVE_SYS_PARAM_H 29287 #include <sys/param.h> 29288 #endif 29289 #ifdef HAVE_SYS_MOUNT_H 29290 #include <sys/mount.h> 29291 #endif 29292 #ifdef HAVE_SYS_VFS_H 29293 #include <sys/vfs.h> 29294 #endif 29295 #ifdef HAVE_SYS_STATFS_H 29296 #include <sys/statfs.h> 29297 #endif 29298 29299" 29300if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : 29301 29302cat >>confdefs.h <<_ACEOF 29303#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 29304_ACEOF 29305 29306 29307fi 29308 29309 29310 # 29311 # Checks for struct member names in struct statvfs 29312 # 29313 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" " 29314 $ac_includes_default 29315 #ifdef HAVE_SYS_STATVFS_H 29316 #include <sys/statvfs.h> 29317 #endif 29318 29319" 29320if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then : 29321 29322cat >>confdefs.h <<_ACEOF 29323#define HAVE_STRUCT_STATVFS_F_BASETYPE 1 29324_ACEOF 29325 29326 29327fi 29328 29329 29330 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" " 29331 $ac_includes_default 29332 #ifdef HAVE_SYS_STATVFS_H 29333 #include <sys/statvfs.h> 29334 #endif 29335 29336" 29337if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then : 29338 29339cat >>confdefs.h <<_ACEOF 29340#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1 29341_ACEOF 29342 29343 29344fi 29345 29346 29347 ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h> 29348 #include <sys/socket.h> 29349" 29350if test "x$ac_cv_member_struct_ucred_uid" = xyes; then : 29351 29352cat >>confdefs.h <<_ACEOF 29353#define HAVE_STRUCT_UCRED_UID 1 29354_ACEOF 29355 29356 29357fi 29358ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h> 29359 #include <sys/socket.h> 29360" 29361if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then : 29362 29363cat >>confdefs.h <<_ACEOF 29364#define HAVE_STRUCT_UCRED_CR_UID 1 29365_ACEOF 29366 29367 29368fi 29369ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h> 29370 #include <sys/socket.h> 29371" 29372if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then : 29373 29374cat >>confdefs.h <<_ACEOF 29375#define HAVE_STRUCT_SOCKPEERCRED_UID 1 29376_ACEOF 29377 29378 29379fi 29380 29381 29382 # 29383 # Check for ptrdiff type. Yes, there are platforms where 29384 # sizeof(void*) != sizeof(long) (64 bit Windows, apparently). 29385 # 29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer diff type" >&5 29387$as_echo_n "checking for pointer diff type... " >&6; } 29388 if test $ac_cv_type_ptrdiff_t = yes ; then 29389 pmix_ptrdiff_t="ptrdiff_t" 29390 pmix_ptrdiff_size=$ac_cv_sizeof_ptrdiff_t 29391 elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then 29392 pmix_ptrdiff_t="long" 29393 pmix_ptrdiff_size=$ac_cv_sizeof_long 29394 elif test $ac_cv_type_long_long = yes && test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then 29395 pmix_ptrdiff_t="long long" 29396 pmix_ptrdiff_size=$ac_cv_sizeof_long_long 29397 #else 29398 # AC_MSG_ERROR([Could not find datatype to emulate ptrdiff_t. Cannot continue]) 29399 fi 29400 29401cat >>confdefs.h <<_ACEOF 29402#define PMIX_PTRDIFF_TYPE $pmix_ptrdiff_t 29403_ACEOF 29404 29405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_ptrdiff_t (size: $pmix_ptrdiff_size)" >&5 29406$as_echo "$pmix_ptrdiff_t (size: $pmix_ptrdiff_size)" >&6; } 29407 29408 ################################## 29409 # Linker characteristics 29410 ################################## 29411 29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the linker for support for the -fini option" >&5 29413$as_echo_n "checking the linker for support for the -fini option... " >&6; } 29414 29415 29416 # Is the private index set? If not, set it. 29417 if test "x$pmix_scope_index" = "x"; then 29418 pmix_scope_index=1 29419 fi 29420 29421 # First, check to see if any of these variables are already set. 29422 # This is a simple sanity check to ensure we're not already 29423 # overwriting pre-existing variables (that have a non-empty 29424 # value). It's not a perfect check, but at least it's something. 29425 for pmix_var in LDFLAGS_save; do 29426 pmix_str="pmix_str=\"\$$pmix_var\"" 29427 eval $pmix_str 29428 29429 if test "x$pmix_str" != "x"; then 29430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 29431$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 29432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 29433$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 29434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 29435$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 29436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29437$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29438 as_fn_error $? "Cannot continue" "$LINENO" 5 29439 fi 29440 done 29441 29442 # Ok, we passed the simple sanity check. Save all these names so 29443 # that we can unset them at the end of the scope. 29444 pmix_str="pmix_scope_$pmix_scope_index=\"LDFLAGS_save\"" 29445 eval $pmix_str 29446 unset pmix_str 29447 29448 env | grep pmix_scope 29449 pmix_scope_index=`expr $pmix_scope_index + 1` 29450 29451 LDFLAGS_save=$LDFLAGS 29452 LDFLAGS="$LDFLAGS_save -Wl,-fini -Wl,finalize" 29453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29454/* end confdefs.h. */ 29455void finalize (void) {} 29456int 29457main () 29458{ 29459 29460 ; 29461 return 0; 29462} 29463_ACEOF 29464if ac_fn_c_try_link "$LINENO"; then : 29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29466$as_echo "yes" >&6; } 29467 pmix_ld_have_fini=1 29468else 29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29470$as_echo "no" >&6; } 29471 pmix_ld_have_fini=0 29472fi 29473rm -f core conftest.err conftest.$ac_objext \ 29474 conftest$ac_exeext conftest.$ac_ext 29475 LDFLAGS=$LDFLAGS_save 29476 29477 # Unwind the index 29478 pmix_scope_index=`expr $pmix_scope_index - 1` 29479 pmix_scope_test=`expr $pmix_scope_index \> 0` 29480 if test "$pmix_scope_test" = "0"; then 29481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 29482$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 29483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29484$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29485 as_fn_error $? "Cannot continue" "$LINENO" 5 29486 fi 29487 29488 # Get the variable names from that index 29489 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 29490 eval $pmix_str 29491 29492 # Iterate over all the variables and unset them all 29493 for pmix_var in $pmix_str; do 29494 unset $pmix_var 29495 done 29496 29497 29498 pmix_destructor_use_fini=0 29499 pmix_no_destructor=0 29500 if test x$pmix_cv___attribute__destructor = x0 ; then 29501 if test x$pmix_ld_have_fini = x1 ; then 29502 pmix_destructor_use_fini=1 29503 else 29504 pmix_no_destructor=1; 29505 fi 29506 fi 29507 29508 29509cat >>confdefs.h <<_ACEOF 29510#define PMIX_NO_LIB_DESTRUCTOR $pmix_no_destructor 29511_ACEOF 29512 29513 if test x$pmix_destructor_use_fini = x1; then 29514 PMIX_DESTRUCTOR_USE_FINI_TRUE= 29515 PMIX_DESTRUCTOR_USE_FINI_FALSE='#' 29516else 29517 PMIX_DESTRUCTOR_USE_FINI_TRUE='#' 29518 PMIX_DESTRUCTOR_USE_FINI_FALSE= 29519fi 29520 29521 29522 ################################## 29523 # Libraries 29524 ################################## 29525 29526 pmix_show_title "Library and Function tests" 29527 29528 # Darwin doesn't need -lutil, as it's something other than this -lutil. 29529 29530 29531 29532 29533 # Is the private index set? If not, set it. 29534 if test "x$pmix_scope_index" = "x"; then 29535 pmix_scope_index=1 29536 fi 29537 29538 # First, check to see if any of these variables are already set. 29539 # This is a simple sanity check to ensure we're not already 29540 # overwriting pre-existing variables (that have a non-empty 29541 # value). It's not a perfect check, but at least it's something. 29542 for pmix_var in LIBS_save add; do 29543 pmix_str="pmix_str=\"\$$pmix_var\"" 29544 eval $pmix_str 29545 29546 if test "x$pmix_str" != "x"; then 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 29548$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 29549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 29550$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 29551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 29552$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 29553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29554$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29555 as_fn_error $? "Cannot continue" "$LINENO" 5 29556 fi 29557 done 29558 29559 # Ok, we passed the simple sanity check. Save all these names so 29560 # that we can unset them at the end of the scope. 29561 pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\"" 29562 eval $pmix_str 29563 unset pmix_str 29564 29565 env | grep pmix_scope 29566 pmix_scope_index=`expr $pmix_scope_index + 1` 29567 29568 LIBS_save=$LIBS 29569 29570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 29571$as_echo_n "checking for library containing openpty... " >&6; } 29572if ${ac_cv_search_openpty+:} false; then : 29573 $as_echo_n "(cached) " >&6 29574else 29575 ac_func_search_save_LIBS=$LIBS 29576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29577/* end confdefs.h. */ 29578 29579/* Override any GCC internal prototype to avoid an error. 29580 Use char because int might match the return type of a GCC 29581 builtin and then its argument prototype would still apply. */ 29582#ifdef __cplusplus 29583extern "C" 29584#endif 29585char openpty (); 29586int 29587main () 29588{ 29589return openpty (); 29590 ; 29591 return 0; 29592} 29593_ACEOF 29594for ac_lib in '' util; do 29595 if test -z "$ac_lib"; then 29596 ac_res="none required" 29597 else 29598 ac_res=-l$ac_lib 29599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29600 fi 29601 if ac_fn_c_try_link "$LINENO"; then : 29602 ac_cv_search_openpty=$ac_res 29603fi 29604rm -f core conftest.err conftest.$ac_objext \ 29605 conftest$ac_exeext 29606 if ${ac_cv_search_openpty+:} false; then : 29607 break 29608fi 29609done 29610if ${ac_cv_search_openpty+:} false; then : 29611 29612else 29613 ac_cv_search_openpty=no 29614fi 29615rm conftest.$ac_ext 29616LIBS=$ac_func_search_save_LIBS 29617fi 29618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 29619$as_echo "$ac_cv_search_openpty" >&6; } 29620ac_res=$ac_cv_search_openpty 29621if test "$ac_res" != no; then : 29622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29623 pmix_have_openpty=1 29624 29625else 29626 pmix_have_openpty=0 29627 29628fi 29629 29630 29631 29632cat >>confdefs.h <<_ACEOF 29633#define PMIX_HAVE_OPENPTY $pmix_have_openpty 29634_ACEOF 29635 29636 29637 29638 # Unwind the index 29639 pmix_scope_index=`expr $pmix_scope_index - 1` 29640 pmix_scope_test=`expr $pmix_scope_index \> 0` 29641 if test "$pmix_scope_test" = "0"; then 29642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 29643$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 29644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29645$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29646 as_fn_error $? "Cannot continue" "$LINENO" 5 29647 fi 29648 29649 # Get the variable names from that index 29650 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 29651 eval $pmix_str 29652 29653 # Iterate over all the variables and unset them all 29654 for pmix_var in $pmix_str; do 29655 unset $pmix_var 29656 done 29657 29658 29659 29660 29661 29662 29663 29664 # Is the private index set? If not, set it. 29665 if test "x$pmix_scope_index" = "x"; then 29666 pmix_scope_index=1 29667 fi 29668 29669 # First, check to see if any of these variables are already set. 29670 # This is a simple sanity check to ensure we're not already 29671 # overwriting pre-existing variables (that have a non-empty 29672 # value). It's not a perfect check, but at least it's something. 29673 for pmix_var in LIBS_save add; do 29674 pmix_str="pmix_str=\"\$$pmix_var\"" 29675 eval $pmix_str 29676 29677 if test "x$pmix_str" != "x"; then 29678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 29679$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 29680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 29681$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 29682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 29683$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 29684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29685$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29686 as_fn_error $? "Cannot continue" "$LINENO" 5 29687 fi 29688 done 29689 29690 # Ok, we passed the simple sanity check. Save all these names so 29691 # that we can unset them at the end of the scope. 29692 pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\"" 29693 eval $pmix_str 29694 unset pmix_str 29695 29696 env | grep pmix_scope 29697 pmix_scope_index=`expr $pmix_scope_index + 1` 29698 29699 LIBS_save=$LIBS 29700 29701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 29702$as_echo_n "checking for library containing gethostbyname... " >&6; } 29703if ${ac_cv_search_gethostbyname+:} false; then : 29704 $as_echo_n "(cached) " >&6 29705else 29706 ac_func_search_save_LIBS=$LIBS 29707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29708/* end confdefs.h. */ 29709 29710/* Override any GCC internal prototype to avoid an error. 29711 Use char because int might match the return type of a GCC 29712 builtin and then its argument prototype would still apply. */ 29713#ifdef __cplusplus 29714extern "C" 29715#endif 29716char gethostbyname (); 29717int 29718main () 29719{ 29720return gethostbyname (); 29721 ; 29722 return 0; 29723} 29724_ACEOF 29725for ac_lib in '' nsl; do 29726 if test -z "$ac_lib"; then 29727 ac_res="none required" 29728 else 29729 ac_res=-l$ac_lib 29730 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29731 fi 29732 if ac_fn_c_try_link "$LINENO"; then : 29733 ac_cv_search_gethostbyname=$ac_res 29734fi 29735rm -f core conftest.err conftest.$ac_objext \ 29736 conftest$ac_exeext 29737 if ${ac_cv_search_gethostbyname+:} false; then : 29738 break 29739fi 29740done 29741if ${ac_cv_search_gethostbyname+:} false; then : 29742 29743else 29744 ac_cv_search_gethostbyname=no 29745fi 29746rm conftest.$ac_ext 29747LIBS=$ac_func_search_save_LIBS 29748fi 29749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 29750$as_echo "$ac_cv_search_gethostbyname" >&6; } 29751ac_res=$ac_cv_search_gethostbyname 29752if test "$ac_res" != no; then : 29753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29754 pmix_have_gethostbyname=1 29755 29756else 29757 pmix_have_gethostbyname=0 29758 29759fi 29760 29761 29762 29763cat >>confdefs.h <<_ACEOF 29764#define PMIX_HAVE_GETHOSTBYNAME $pmix_have_gethostbyname 29765_ACEOF 29766 29767 29768 29769 # Unwind the index 29770 pmix_scope_index=`expr $pmix_scope_index - 1` 29771 pmix_scope_test=`expr $pmix_scope_index \> 0` 29772 if test "$pmix_scope_test" = "0"; then 29773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 29774$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 29775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29776$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29777 as_fn_error $? "Cannot continue" "$LINENO" 5 29778 fi 29779 29780 # Get the variable names from that index 29781 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 29782 eval $pmix_str 29783 29784 # Iterate over all the variables and unset them all 29785 for pmix_var in $pmix_str; do 29786 unset $pmix_var 29787 done 29788 29789 29790 29791 29792 29793 29794 29795 # Is the private index set? If not, set it. 29796 if test "x$pmix_scope_index" = "x"; then 29797 pmix_scope_index=1 29798 fi 29799 29800 # First, check to see if any of these variables are already set. 29801 # This is a simple sanity check to ensure we're not already 29802 # overwriting pre-existing variables (that have a non-empty 29803 # value). It's not a perfect check, but at least it's something. 29804 for pmix_var in LIBS_save add; do 29805 pmix_str="pmix_str=\"\$$pmix_var\"" 29806 eval $pmix_str 29807 29808 if test "x$pmix_str" != "x"; then 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 29810$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 29811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 29812$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 29813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 29814$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 29815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29816$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29817 as_fn_error $? "Cannot continue" "$LINENO" 5 29818 fi 29819 done 29820 29821 # Ok, we passed the simple sanity check. Save all these names so 29822 # that we can unset them at the end of the scope. 29823 pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\"" 29824 eval $pmix_str 29825 unset pmix_str 29826 29827 env | grep pmix_scope 29828 pmix_scope_index=`expr $pmix_scope_index + 1` 29829 29830 LIBS_save=$LIBS 29831 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 29833$as_echo_n "checking for library containing socket... " >&6; } 29834if ${ac_cv_search_socket+:} false; then : 29835 $as_echo_n "(cached) " >&6 29836else 29837 ac_func_search_save_LIBS=$LIBS 29838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29839/* end confdefs.h. */ 29840 29841/* Override any GCC internal prototype to avoid an error. 29842 Use char because int might match the return type of a GCC 29843 builtin and then its argument prototype would still apply. */ 29844#ifdef __cplusplus 29845extern "C" 29846#endif 29847char socket (); 29848int 29849main () 29850{ 29851return socket (); 29852 ; 29853 return 0; 29854} 29855_ACEOF 29856for ac_lib in '' socket; do 29857 if test -z "$ac_lib"; then 29858 ac_res="none required" 29859 else 29860 ac_res=-l$ac_lib 29861 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29862 fi 29863 if ac_fn_c_try_link "$LINENO"; then : 29864 ac_cv_search_socket=$ac_res 29865fi 29866rm -f core conftest.err conftest.$ac_objext \ 29867 conftest$ac_exeext 29868 if ${ac_cv_search_socket+:} false; then : 29869 break 29870fi 29871done 29872if ${ac_cv_search_socket+:} false; then : 29873 29874else 29875 ac_cv_search_socket=no 29876fi 29877rm conftest.$ac_ext 29878LIBS=$ac_func_search_save_LIBS 29879fi 29880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 29881$as_echo "$ac_cv_search_socket" >&6; } 29882ac_res=$ac_cv_search_socket 29883if test "$ac_res" != no; then : 29884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29885 pmix_have_socket=1 29886 29887else 29888 pmix_have_socket=0 29889 29890fi 29891 29892 29893 29894cat >>confdefs.h <<_ACEOF 29895#define PMIX_HAVE_SOCKET $pmix_have_socket 29896_ACEOF 29897 29898 29899 29900 # Unwind the index 29901 pmix_scope_index=`expr $pmix_scope_index - 1` 29902 pmix_scope_test=`expr $pmix_scope_index \> 0` 29903 if test "$pmix_scope_test" = "0"; then 29904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 29905$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 29906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29907$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29908 as_fn_error $? "Cannot continue" "$LINENO" 5 29909 fi 29910 29911 # Get the variable names from that index 29912 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 29913 eval $pmix_str 29914 29915 # Iterate over all the variables and unset them all 29916 for pmix_var in $pmix_str; do 29917 unset $pmix_var 29918 done 29919 29920 29921 29922 # IRIX and CentOS have dirname in -lgen, usually in libc 29923 29924 29925 29926 29927 # Is the private index set? If not, set it. 29928 if test "x$pmix_scope_index" = "x"; then 29929 pmix_scope_index=1 29930 fi 29931 29932 # First, check to see if any of these variables are already set. 29933 # This is a simple sanity check to ensure we're not already 29934 # overwriting pre-existing variables (that have a non-empty 29935 # value). It's not a perfect check, but at least it's something. 29936 for pmix_var in LIBS_save add; do 29937 pmix_str="pmix_str=\"\$$pmix_var\"" 29938 eval $pmix_str 29939 29940 if test "x$pmix_str" != "x"; then 29941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 29942$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 29943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 29944$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 29945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 29946$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 29947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 29948$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 29949 as_fn_error $? "Cannot continue" "$LINENO" 5 29950 fi 29951 done 29952 29953 # Ok, we passed the simple sanity check. Save all these names so 29954 # that we can unset them at the end of the scope. 29955 pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\"" 29956 eval $pmix_str 29957 unset pmix_str 29958 29959 env | grep pmix_scope 29960 pmix_scope_index=`expr $pmix_scope_index + 1` 29961 29962 LIBS_save=$LIBS 29963 29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dirname" >&5 29965$as_echo_n "checking for library containing dirname... " >&6; } 29966if ${ac_cv_search_dirname+:} false; then : 29967 $as_echo_n "(cached) " >&6 29968else 29969 ac_func_search_save_LIBS=$LIBS 29970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29971/* end confdefs.h. */ 29972 29973/* Override any GCC internal prototype to avoid an error. 29974 Use char because int might match the return type of a GCC 29975 builtin and then its argument prototype would still apply. */ 29976#ifdef __cplusplus 29977extern "C" 29978#endif 29979char dirname (); 29980int 29981main () 29982{ 29983return dirname (); 29984 ; 29985 return 0; 29986} 29987_ACEOF 29988for ac_lib in '' gen; do 29989 if test -z "$ac_lib"; then 29990 ac_res="none required" 29991 else 29992 ac_res=-l$ac_lib 29993 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29994 fi 29995 if ac_fn_c_try_link "$LINENO"; then : 29996 ac_cv_search_dirname=$ac_res 29997fi 29998rm -f core conftest.err conftest.$ac_objext \ 29999 conftest$ac_exeext 30000 if ${ac_cv_search_dirname+:} false; then : 30001 break 30002fi 30003done 30004if ${ac_cv_search_dirname+:} false; then : 30005 30006else 30007 ac_cv_search_dirname=no 30008fi 30009rm conftest.$ac_ext 30010LIBS=$ac_func_search_save_LIBS 30011fi 30012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dirname" >&5 30013$as_echo "$ac_cv_search_dirname" >&6; } 30014ac_res=$ac_cv_search_dirname 30015if test "$ac_res" != no; then : 30016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30017 pmix_have_dirname=1 30018 30019else 30020 pmix_have_dirname=0 30021 30022fi 30023 30024 30025 30026cat >>confdefs.h <<_ACEOF 30027#define PMIX_HAVE_DIRNAME $pmix_have_dirname 30028_ACEOF 30029 30030 30031 30032 # Unwind the index 30033 pmix_scope_index=`expr $pmix_scope_index - 1` 30034 pmix_scope_test=`expr $pmix_scope_index \> 0` 30035 if test "$pmix_scope_test" = "0"; then 30036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 30037$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 30038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 30039$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 30040 as_fn_error $? "Cannot continue" "$LINENO" 5 30041 fi 30042 30043 # Get the variable names from that index 30044 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 30045 eval $pmix_str 30046 30047 # Iterate over all the variables and unset them all 30048 for pmix_var in $pmix_str; do 30049 unset $pmix_var 30050 done 30051 30052 30053 30054 # Darwin doesn't need -lm, as it's a symlink to libSystem.dylib 30055 30056 30057 30058 30059 # Is the private index set? If not, set it. 30060 if test "x$pmix_scope_index" = "x"; then 30061 pmix_scope_index=1 30062 fi 30063 30064 # First, check to see if any of these variables are already set. 30065 # This is a simple sanity check to ensure we're not already 30066 # overwriting pre-existing variables (that have a non-empty 30067 # value). It's not a perfect check, but at least it's something. 30068 for pmix_var in LIBS_save add; do 30069 pmix_str="pmix_str=\"\$$pmix_var\"" 30070 eval $pmix_str 30071 30072 if test "x$pmix_str" != "x"; then 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 30074$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 30075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 30076$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 30077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 30078$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 30079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 30080$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 30081 as_fn_error $? "Cannot continue" "$LINENO" 5 30082 fi 30083 done 30084 30085 # Ok, we passed the simple sanity check. Save all these names so 30086 # that we can unset them at the end of the scope. 30087 pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\"" 30088 eval $pmix_str 30089 unset pmix_str 30090 30091 env | grep pmix_scope 30092 pmix_scope_index=`expr $pmix_scope_index + 1` 30093 30094 LIBS_save=$LIBS 30095 30096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5 30097$as_echo_n "checking for library containing ceil... " >&6; } 30098if ${ac_cv_search_ceil+:} false; then : 30099 $as_echo_n "(cached) " >&6 30100else 30101 ac_func_search_save_LIBS=$LIBS 30102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30103/* end confdefs.h. */ 30104 30105/* Override any GCC internal prototype to avoid an error. 30106 Use char because int might match the return type of a GCC 30107 builtin and then its argument prototype would still apply. */ 30108#ifdef __cplusplus 30109extern "C" 30110#endif 30111char ceil (); 30112int 30113main () 30114{ 30115return ceil (); 30116 ; 30117 return 0; 30118} 30119_ACEOF 30120for ac_lib in '' m; do 30121 if test -z "$ac_lib"; then 30122 ac_res="none required" 30123 else 30124 ac_res=-l$ac_lib 30125 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30126 fi 30127 if ac_fn_c_try_link "$LINENO"; then : 30128 ac_cv_search_ceil=$ac_res 30129fi 30130rm -f core conftest.err conftest.$ac_objext \ 30131 conftest$ac_exeext 30132 if ${ac_cv_search_ceil+:} false; then : 30133 break 30134fi 30135done 30136if ${ac_cv_search_ceil+:} false; then : 30137 30138else 30139 ac_cv_search_ceil=no 30140fi 30141rm conftest.$ac_ext 30142LIBS=$ac_func_search_save_LIBS 30143fi 30144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5 30145$as_echo "$ac_cv_search_ceil" >&6; } 30146ac_res=$ac_cv_search_ceil 30147if test "$ac_res" != no; then : 30148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30149 pmix_have_ceil=1 30150 30151else 30152 pmix_have_ceil=0 30153 30154fi 30155 30156 30157 30158cat >>confdefs.h <<_ACEOF 30159#define PMIX_HAVE_CEIL $pmix_have_ceil 30160_ACEOF 30161 30162 30163 30164 # Unwind the index 30165 pmix_scope_index=`expr $pmix_scope_index - 1` 30166 pmix_scope_test=`expr $pmix_scope_index \> 0` 30167 if test "$pmix_scope_test" = "0"; then 30168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 30169$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 30170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 30171$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 30172 as_fn_error $? "Cannot continue" "$LINENO" 5 30173 fi 30174 30175 # Get the variable names from that index 30176 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 30177 eval $pmix_str 30178 30179 # Iterate over all the variables and unset them all 30180 for pmix_var in $pmix_str; do 30181 unset $pmix_var 30182 done 30183 30184 30185 30186 # -lrt might be needed for clock_gettime 30187 30188 30189 30190 30191 # Is the private index set? If not, set it. 30192 if test "x$pmix_scope_index" = "x"; then 30193 pmix_scope_index=1 30194 fi 30195 30196 # First, check to see if any of these variables are already set. 30197 # This is a simple sanity check to ensure we're not already 30198 # overwriting pre-existing variables (that have a non-empty 30199 # value). It's not a perfect check, but at least it's something. 30200 for pmix_var in LIBS_save add; do 30201 pmix_str="pmix_str=\"\$$pmix_var\"" 30202 eval $pmix_str 30203 30204 if test "x$pmix_str" != "x"; then 30205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 30206$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 30207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 30208$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 30209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 30210$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 30211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 30212$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 30213 as_fn_error $? "Cannot continue" "$LINENO" 5 30214 fi 30215 done 30216 30217 # Ok, we passed the simple sanity check. Save all these names so 30218 # that we can unset them at the end of the scope. 30219 pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\"" 30220 eval $pmix_str 30221 unset pmix_str 30222 30223 env | grep pmix_scope 30224 pmix_scope_index=`expr $pmix_scope_index + 1` 30225 30226 LIBS_save=$LIBS 30227 30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 30229$as_echo_n "checking for library containing clock_gettime... " >&6; } 30230if ${ac_cv_search_clock_gettime+:} false; then : 30231 $as_echo_n "(cached) " >&6 30232else 30233 ac_func_search_save_LIBS=$LIBS 30234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30235/* end confdefs.h. */ 30236 30237/* Override any GCC internal prototype to avoid an error. 30238 Use char because int might match the return type of a GCC 30239 builtin and then its argument prototype would still apply. */ 30240#ifdef __cplusplus 30241extern "C" 30242#endif 30243char clock_gettime (); 30244int 30245main () 30246{ 30247return clock_gettime (); 30248 ; 30249 return 0; 30250} 30251_ACEOF 30252for ac_lib in '' rt; do 30253 if test -z "$ac_lib"; then 30254 ac_res="none required" 30255 else 30256 ac_res=-l$ac_lib 30257 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30258 fi 30259 if ac_fn_c_try_link "$LINENO"; then : 30260 ac_cv_search_clock_gettime=$ac_res 30261fi 30262rm -f core conftest.err conftest.$ac_objext \ 30263 conftest$ac_exeext 30264 if ${ac_cv_search_clock_gettime+:} false; then : 30265 break 30266fi 30267done 30268if ${ac_cv_search_clock_gettime+:} false; then : 30269 30270else 30271 ac_cv_search_clock_gettime=no 30272fi 30273rm conftest.$ac_ext 30274LIBS=$ac_func_search_save_LIBS 30275fi 30276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 30277$as_echo "$ac_cv_search_clock_gettime" >&6; } 30278ac_res=$ac_cv_search_clock_gettime 30279if test "$ac_res" != no; then : 30280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30281 pmix_have_clock_gettime=1 30282 30283else 30284 pmix_have_clock_gettime=0 30285 30286fi 30287 30288 30289 30290cat >>confdefs.h <<_ACEOF 30291#define PMIX_HAVE_CLOCK_GETTIME $pmix_have_clock_gettime 30292_ACEOF 30293 30294 30295 30296 # Unwind the index 30297 pmix_scope_index=`expr $pmix_scope_index - 1` 30298 pmix_scope_test=`expr $pmix_scope_index \> 0` 30299 if test "$pmix_scope_test" = "0"; then 30300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 30301$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 30302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 30303$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 30304 as_fn_error $? "Cannot continue" "$LINENO" 5 30305 fi 30306 30307 # Get the variable names from that index 30308 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 30309 eval $pmix_str 30310 30311 # Iterate over all the variables and unset them all 30312 for pmix_var in $pmix_str; do 30313 unset $pmix_var 30314 done 30315 30316 30317 30318 for ac_func in asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep statfs statvfs getpeereid getpeerucred strnlen posix_fallocate tcgetpgrp setpgid ptsname openpty setenv fork execve waitpid 30319do : 30320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30321ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30322if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30323 cat >>confdefs.h <<_ACEOF 30324#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30325_ACEOF 30326 30327fi 30328done 30329 30330 30331 # On some hosts, htonl is a define, so the AC_CHECK_FUNC will get 30332 # confused. On others, it's in the standard library, but stubbed with 30333 # the magic glibc foo as not implemented. and on other systems, it's 30334 # just not there. This covers all cases. 30335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl define" >&5 30336$as_echo_n "checking for htonl define... " >&6; } 30337if ${pmix_cv_htonl_define+:} false; then : 30338 $as_echo_n "(cached) " >&6 30339else 30340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30341/* end confdefs.h. */ 30342 30343 #ifdef HAVE_SYS_TYPES_H 30344 #include <sys/types.h> 30345 #endif 30346 #ifdef HAVE_NETINET_IN_H 30347 #include <netinet/in.h> 30348 #endif 30349 #ifdef HAVE_ARPA_INET_H 30350 #include <arpa/inet.h> 30351 #endif 30352int 30353main () 30354{ 30355 30356 #ifndef ntohl 30357 #error "ntohl not defined" 30358 #endif 30359 30360 ; 30361 return 0; 30362} 30363_ACEOF 30364if ac_fn_c_try_cpp "$LINENO"; then : 30365 pmix_cv_htonl_define=yes 30366else 30367 pmix_cv_htonl_define=no 30368fi 30369rm -f conftest.err conftest.i conftest.$ac_ext 30370fi 30371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_htonl_define" >&5 30372$as_echo "$pmix_cv_htonl_define" >&6; } 30373 ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" 30374if test "x$ac_cv_func_htonl" = xyes; then : 30375 pmix_have_htonl=yes 30376else 30377 pmix_have_htonl=no 30378fi 30379 30380 if test "$pmix_cv_htonl_define" = "yes" || test "$pmix_have_htonl" = "yes"; then : 30381 30382cat >>confdefs.h <<_ACEOF 30383#define HAVE_UNIX_BYTESWAP 1 30384_ACEOF 30385 30386fi 30387 30388 # 30389 # Make sure we can copy va_lists (need check declared, not linkable) 30390 # 30391 30392 ac_fn_c_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" "#include <stdarg.h> 30393" 30394if test "x$ac_cv_have_decl_va_copy" = xyes; then : 30395 PMIX_HAVE_VA_COPY=1 30396else 30397 PMIX_HAVE_VA_COPY=0 30398fi 30399 30400 30401cat >>confdefs.h <<_ACEOF 30402#define PMIX_HAVE_VA_COPY $PMIX_HAVE_VA_COPY 30403_ACEOF 30404 30405 30406 ac_fn_c_check_decl "$LINENO" "__va_copy" "ac_cv_have_decl___va_copy" "#include <stdarg.h> 30407" 30408if test "x$ac_cv_have_decl___va_copy" = xyes; then : 30409 PMIX_HAVE_UNDERSCORE_VA_COPY=1 30410else 30411 PMIX_HAVE_UNDERSCORE_VA_COPY=0 30412fi 30413 30414 30415cat >>confdefs.h <<_ACEOF 30416#define PMIX_HAVE_UNDERSCORE_VA_COPY $PMIX_HAVE_UNDERSCORE_VA_COPY 30417_ACEOF 30418 30419 30420 ac_fn_c_check_decl "$LINENO" "__func__" "ac_cv_have_decl___func__" "$ac_includes_default" 30421if test "x$ac_cv_have_decl___func__" = xyes; then : 30422 ac_have_decl=1 30423else 30424 ac_have_decl=0 30425fi 30426 30427cat >>confdefs.h <<_ACEOF 30428#define HAVE_DECL___FUNC__ $ac_have_decl 30429_ACEOF 30430 30431 30432 # checkpoint results 30433 cat >confcache <<\_ACEOF 30434# This file is a shell script that caches the results of configure 30435# tests run on this system so they can be shared between configure 30436# scripts and configure runs, see configure's option --config-cache. 30437# It is not useful on other systems. If it contains results you don't 30438# want to keep, you may remove or edit it. 30439# 30440# config.status only pays attention to the cache file if you give it 30441# the --recheck option to rerun configure. 30442# 30443# `ac_cv_env_foo' variables (set or unset) will be overridden when 30444# loading this file, other *unset* `ac_cv_foo' will be assigned the 30445# following values. 30446 30447_ACEOF 30448 30449# The following way of writing the cache mishandles newlines in values, 30450# but we know of no workaround that is simple, portable, and efficient. 30451# So, we kill variables containing newlines. 30452# Ultrix sh set writes to stderr and can't be redirected directly, 30453# and sets the high bit in the cache file unless we assign to the vars. 30454( 30455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30456 eval ac_val=\$$ac_var 30457 case $ac_val in #( 30458 *${as_nl}*) 30459 case $ac_var in #( 30460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30462 esac 30463 case $ac_var in #( 30464 _ | IFS | as_nl) ;; #( 30465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30466 *) { eval $ac_var=; unset $ac_var;} ;; 30467 esac ;; 30468 esac 30469 done 30470 30471 (set) 2>&1 | 30472 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30473 *${as_nl}ac_space=\ *) 30474 # `set' does not quote correctly, so add quotes: double-quote 30475 # substitution turns \\\\ into \\, and sed turns \\ into \. 30476 sed -n \ 30477 "s/'/'\\\\''/g; 30478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30479 ;; #( 30480 *) 30481 # `set' quotes correctly as required by POSIX, so do not add quotes. 30482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30483 ;; 30484 esac | 30485 sort 30486) | 30487 sed ' 30488 /^ac_cv_env_/b end 30489 t clear 30490 :clear 30491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30492 t end 30493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30494 :end' >>confcache 30495if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30496 if test -w "$cache_file"; then 30497 if test "x$cache_file" != "x/dev/null"; then 30498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30499$as_echo "$as_me: updating cache $cache_file" >&6;} 30500 if test ! -f "$cache_file" || test -h "$cache_file"; then 30501 cat confcache >"$cache_file" 30502 else 30503 case $cache_file in #( 30504 */* | ?:*) 30505 mv -f confcache "$cache_file"$$ && 30506 mv -f "$cache_file"$$ "$cache_file" ;; #( 30507 *) 30508 mv -f confcache "$cache_file" ;; 30509 esac 30510 fi 30511 fi 30512 else 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30514$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30515 fi 30516fi 30517rm -f confcache 30518 30519 ################################## 30520 # System-specific tests 30521 ################################## 30522 30523 pmix_show_title "System-specific tests" 30524 30525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 30526$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 30527if ${ac_cv_c_bigendian+:} false; then : 30528 $as_echo_n "(cached) " >&6 30529else 30530 ac_cv_c_bigendian=unknown 30531 # See if we're dealing with a universal compiler. 30532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30533/* end confdefs.h. */ 30534#ifndef __APPLE_CC__ 30535 not a universal capable compiler 30536 #endif 30537 typedef int dummy; 30538 30539_ACEOF 30540if ac_fn_c_try_compile "$LINENO"; then : 30541 30542 # Check for potential -arch flags. It is not universal unless 30543 # there are at least two -arch flags with different values. 30544 ac_arch= 30545 ac_prev= 30546 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 30547 if test -n "$ac_prev"; then 30548 case $ac_word in 30549 i?86 | x86_64 | ppc | ppc64) 30550 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 30551 ac_arch=$ac_word 30552 else 30553 ac_cv_c_bigendian=universal 30554 break 30555 fi 30556 ;; 30557 esac 30558 ac_prev= 30559 elif test "x$ac_word" = "x-arch"; then 30560 ac_prev=arch 30561 fi 30562 done 30563fi 30564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30565 if test $ac_cv_c_bigendian = unknown; then 30566 # See if sys/param.h defines the BYTE_ORDER macro. 30567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30568/* end confdefs.h. */ 30569#include <sys/types.h> 30570 #include <sys/param.h> 30571 30572int 30573main () 30574{ 30575#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 30576 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 30577 && LITTLE_ENDIAN) 30578 bogus endian macros 30579 #endif 30580 30581 ; 30582 return 0; 30583} 30584_ACEOF 30585if ac_fn_c_try_compile "$LINENO"; then : 30586 # It does; now see whether it defined to BIG_ENDIAN or not. 30587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30588/* end confdefs.h. */ 30589#include <sys/types.h> 30590 #include <sys/param.h> 30591 30592int 30593main () 30594{ 30595#if BYTE_ORDER != BIG_ENDIAN 30596 not big endian 30597 #endif 30598 30599 ; 30600 return 0; 30601} 30602_ACEOF 30603if ac_fn_c_try_compile "$LINENO"; then : 30604 ac_cv_c_bigendian=yes 30605else 30606 ac_cv_c_bigendian=no 30607fi 30608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30609fi 30610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30611 fi 30612 if test $ac_cv_c_bigendian = unknown; then 30613 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 30614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30615/* end confdefs.h. */ 30616#include <limits.h> 30617 30618int 30619main () 30620{ 30621#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 30622 bogus endian macros 30623 #endif 30624 30625 ; 30626 return 0; 30627} 30628_ACEOF 30629if ac_fn_c_try_compile "$LINENO"; then : 30630 # It does; now see whether it defined to _BIG_ENDIAN or not. 30631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30632/* end confdefs.h. */ 30633#include <limits.h> 30634 30635int 30636main () 30637{ 30638#ifndef _BIG_ENDIAN 30639 not big endian 30640 #endif 30641 30642 ; 30643 return 0; 30644} 30645_ACEOF 30646if ac_fn_c_try_compile "$LINENO"; then : 30647 ac_cv_c_bigendian=yes 30648else 30649 ac_cv_c_bigendian=no 30650fi 30651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30652fi 30653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30654 fi 30655 if test $ac_cv_c_bigendian = unknown; then 30656 # Compile a test program. 30657 if test "$cross_compiling" = yes; then : 30658 # Try to guess by grepping values from an object file. 30659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30660/* end confdefs.h. */ 30661short int ascii_mm[] = 30662 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 30663 short int ascii_ii[] = 30664 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 30665 int use_ascii (int i) { 30666 return ascii_mm[i] + ascii_ii[i]; 30667 } 30668 short int ebcdic_ii[] = 30669 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 30670 short int ebcdic_mm[] = 30671 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 30672 int use_ebcdic (int i) { 30673 return ebcdic_mm[i] + ebcdic_ii[i]; 30674 } 30675 extern int foo; 30676 30677int 30678main () 30679{ 30680return use_ascii (foo) == use_ebcdic (foo); 30681 ; 30682 return 0; 30683} 30684_ACEOF 30685if ac_fn_c_try_compile "$LINENO"; then : 30686 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 30687 ac_cv_c_bigendian=yes 30688 fi 30689 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 30690 if test "$ac_cv_c_bigendian" = unknown; then 30691 ac_cv_c_bigendian=no 30692 else 30693 # finding both strings is unlikely to happen, but who knows? 30694 ac_cv_c_bigendian=unknown 30695 fi 30696 fi 30697fi 30698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30699else 30700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30701/* end confdefs.h. */ 30702$ac_includes_default 30703int 30704main () 30705{ 30706 30707 /* Are we little or big endian? From Harbison&Steele. */ 30708 union 30709 { 30710 long int l; 30711 char c[sizeof (long int)]; 30712 } u; 30713 u.l = 1; 30714 return u.c[sizeof (long int) - 1] == 1; 30715 30716 ; 30717 return 0; 30718} 30719_ACEOF 30720if ac_fn_c_try_run "$LINENO"; then : 30721 ac_cv_c_bigendian=no 30722else 30723 ac_cv_c_bigendian=yes 30724fi 30725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30726 conftest.$ac_objext conftest.beam conftest.$ac_ext 30727fi 30728 30729 fi 30730fi 30731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 30732$as_echo "$ac_cv_c_bigendian" >&6; } 30733 case $ac_cv_c_bigendian in #( 30734 yes) 30735 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 30736;; #( 30737 no) 30738 ;; #( 30739 universal) 30740 30741$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 30742 30743 ;; #( 30744 *) 30745 as_fn_error $? "unknown endianness 30746 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 30747 esac 30748 30749 30750 30751# Check whether --with-broken-qsort was given. 30752if test "${with_broken_qsort+set}" = set; then : 30753 withval=$with_broken_qsort; 30754fi 30755 30756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken qsort" >&5 30757$as_echo_n "checking for broken qsort... " >&6; } 30758 30759 if test "$with_broken_qsort" = "yes"; then 30760 result="yes" 30761 define_result=1 30762 else 30763 result="no" 30764 define_result=0 30765 fi 30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 30767$as_echo "$result" >&6; } 30768 30769cat >>confdefs.h <<_ACEOF 30770#define PMIX_HAVE_BROKEN_QSORT $define_result 30771_ACEOF 30772 30773 30774 30775 # 30776 # Check out what thread support we have 30777 # 30778 30779# 30780# Arguments: none 30781# 30782# Dependencies: None 30783# 30784# Modifies: 30785# none - see called tests 30786# 30787# configure threads 30788# 30789 30790# 30791# Check we have POSIX threads 30792# 30793 30794 30795 30796pmix_pthread_c_success=0 30797 30798orig_CFLAGS="$CFLAGS" 30799orig_CPPFLAGS="$CPPFLAGS" 30800orig_LDFLAGS="$LDFLAGS" 30801orig_LIBS="$LIBS" 30802 30803PTHREAD_CFLAGS= 30804PTHREAD_CPPFLAGS= 30805PTHREAD_LDFLAGS= 30806PTHREAD_LIBS= 30807 30808# Try with the basics, mam. 30809 30810# BEGIN: PMIX_INTL_POSIX_THREADS_PLAIN 30811# 30812# Check if can compile without any special flags 30813# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in 30814# case. Some systems (OS X, for example) generally don't need 30815# the defines, but then will on one system header here or there 30816# why take chances? 30817# 30818 30819 30820# 30821# C compiler 30822# 30823if test "$pmix_pthread_c_success" = "0"; then 30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work as is" >&5 30825$as_echo_n "checking if C compiler and POSIX threads work as is... " >&6; } 30826 30827 ac_ext=c 30828ac_cpp='$CPP $CPPFLAGS' 30829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30831ac_compiler_gnu=$ac_cv_c_compiler_gnu 30832 30833 30834# BEGIN: PMIX_INTL_PTHREAD_TRY_LINK 30835# 30836# Make sure that we can run a small application in C or C++, which 30837# ever is the current language. Do make sure that C or C++ is the 30838# current language. 30839# 30840# As long as this is not being run.... 30841# pthread_t may be anything from an int to a struct -- init with self-tid. 30842# 30843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30844/* end confdefs.h. */ 30845 30846#include <pthread.h> 30847 30848int i = 3; 30849pthread_t me, newthread; 30850 30851void cleanup_routine(void *foo); 30852void *thread_main(void *foo); 30853 30854void cleanup_routine(void *foo) { i = 4; } 30855void *thread_main(void *foo) { i = 2; return (void*) &i; } 30856 30857int main(int argc, char* argv[]) 30858{ 30859 pthread_attr_t attr; 30860 30861 me = pthread_self(); 30862 pthread_atfork(NULL, NULL, NULL); 30863 pthread_attr_init(&attr); 30864 pthread_cleanup_push(cleanup_routine, 0); 30865 pthread_create(&newthread, &attr, thread_main, 0); 30866 pthread_join(newthread, 0); 30867 pthread_cleanup_pop(0); 30868 30869 return 0; 30870} 30871_ACEOF 30872if ac_fn_c_try_link "$LINENO"; then : 30873 pmix_pthread_c_success=1 30874else 30875 pmix_pthread_c_success=0 30876fi 30877rm -f core conftest.err conftest.$ac_objext \ 30878 conftest$ac_exeext conftest.$ac_ext 30879# END: PMIX_INTL_PTHREAD_TRY_LINK 30880 30881 ac_ext=c 30882ac_cpp='$CPP $CPPFLAGS' 30883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30885ac_compiler_gnu=$ac_cv_c_compiler_gnu 30886 30887 if test "$pmix_pthread_c_success" = "1"; then 30888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30889$as_echo "yes" >&6; } 30890 else 30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30892$as_echo "no" >&6; } 30893 fi 30894fi 30895 30896 30897# End: PMIX_INTL_POSIX_THREADS_PLAIN 30898 30899 30900# Try the super-special compiler flags. 30901 30902# Begin: PMIX_INTL_POSIX_THREADS_SPECIAL_FLAGS 30903# 30904# If above didn't work, try some super-special compiler flags 30905# that get evaluated to the "right" things. 30906# 30907# -Kthread: 30908# -kthread: FreeBSD kernel threads 30909# -pthread: Modern GCC (most all platforms) 30910# -pthreads: GCC on solaris 30911# -mthreads: 30912# -mt: Solaris native compilers / HP-UX aCC 30913# 30914# Put -mt before -mthreads because HP-UX aCC will properly compile 30915# with -mthreads (reading as -mt), but emit a warning about unknown 30916# flags hreads. Stupid compilers. 30917 30918case "${host_cpu}-${host_os}" in 30919 *solaris*) 30920 pflags="-pthread -pthreads -mt" 30921 ;; 30922 *) 30923 pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads" 30924 ;; 30925esac 30926 30927 30928# 30929# C compiler 30930# 30931if test "$pmix_pthread_c_success" = "0"; then 30932 for pf in $pflags; do 30933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pf" >&5 30934$as_echo_n "checking if C compiler and POSIX threads work with $pf... " >&6; } 30935 CFLAGS="$orig_CFLAGS $pf" 30936 ac_ext=c 30937ac_cpp='$CPP $CPPFLAGS' 30938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30940ac_compiler_gnu=$ac_cv_c_compiler_gnu 30941 30942 30943# BEGIN: PMIX_INTL_PTHREAD_TRY_LINK 30944# 30945# Make sure that we can run a small application in C or C++, which 30946# ever is the current language. Do make sure that C or C++ is the 30947# current language. 30948# 30949# As long as this is not being run.... 30950# pthread_t may be anything from an int to a struct -- init with self-tid. 30951# 30952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30953/* end confdefs.h. */ 30954 30955#include <pthread.h> 30956 30957int i = 3; 30958pthread_t me, newthread; 30959 30960void cleanup_routine(void *foo); 30961void *thread_main(void *foo); 30962 30963void cleanup_routine(void *foo) { i = 4; } 30964void *thread_main(void *foo) { i = 2; return (void*) &i; } 30965 30966int main(int argc, char* argv[]) 30967{ 30968 pthread_attr_t attr; 30969 30970 me = pthread_self(); 30971 pthread_atfork(NULL, NULL, NULL); 30972 pthread_attr_init(&attr); 30973 pthread_cleanup_push(cleanup_routine, 0); 30974 pthread_create(&newthread, &attr, thread_main, 0); 30975 pthread_join(newthread, 0); 30976 pthread_cleanup_pop(0); 30977 30978 return 0; 30979} 30980_ACEOF 30981if ac_fn_c_try_link "$LINENO"; then : 30982 pmix_pthread_c_success=1 30983else 30984 pmix_pthread_c_success=0 30985fi 30986rm -f core conftest.err conftest.$ac_objext \ 30987 conftest$ac_exeext conftest.$ac_ext 30988# END: PMIX_INTL_PTHREAD_TRY_LINK 30989 30990 ac_ext=c 30991ac_cpp='$CPP $CPPFLAGS' 30992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30994ac_compiler_gnu=$ac_cv_c_compiler_gnu 30995 30996 if test "$pmix_pthread_c_success" = "1"; then 30997 PTHREAD_CFLAGS="$pf" 30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30999$as_echo "yes" >&6; } 31000 break 31001 else 31002 PTHREAD_CFLAGS= 31003 CFLAGS="$orig_CFLAGS" 31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31005$as_echo "no" >&6; } 31006 fi 31007 done 31008fi 31009 31010 31011# End: PMIX_INTL_POSIX_THREADS_SPECIAL_FLAGS 31012 31013 31014# Try the normal linking methods (that's no fun) 31015 31016# Begin: PMIX_INTL_POSIX_THREADS_LIBS 31017# 31018# if we can't find a super-special compiler flags, try some libraries. 31019# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case. Some 31020# systems (OS X, for example) generally don't need the defines, but 31021# then will on one system header here or there why take chances? 31022# 31023# libpthreads: AIX - must check before libpthread 31024# liblthread: LinuxThreads on FreeBSD 31025# libpthread: The usual place (like we can define usual!) 31026plibs="-lpthreads -llthread -lpthread" 31027 31028 31029# 31030# C compiler 31031# 31032if test "$pmix_pthread_c_success" = "0"; then 31033 for pl in $plibs; do 31034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pl" >&5 31035$as_echo_n "checking if C compiler and POSIX threads work with $pl... " >&6; } 31036 case "${host_cpu}-${host-_os}" in 31037 *-aix* | *-freebsd*) 31038 if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then 31039 PTHREAD_CPPFLAGS="-D_THREAD_SAFE" 31040 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" 31041 fi 31042 ;; 31043 *) 31044 if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then 31045 PTHREAD_CPPFLAGS="-D_REENTRANT" 31046 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" 31047 fi 31048 ;; 31049 esac 31050 LIBS="$orig_LIBS $pl" 31051 ac_ext=c 31052ac_cpp='$CPP $CPPFLAGS' 31053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31055ac_compiler_gnu=$ac_cv_c_compiler_gnu 31056 31057 31058# BEGIN: PMIX_INTL_PTHREAD_TRY_LINK 31059# 31060# Make sure that we can run a small application in C or C++, which 31061# ever is the current language. Do make sure that C or C++ is the 31062# current language. 31063# 31064# As long as this is not being run.... 31065# pthread_t may be anything from an int to a struct -- init with self-tid. 31066# 31067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31068/* end confdefs.h. */ 31069 31070#include <pthread.h> 31071 31072int i = 3; 31073pthread_t me, newthread; 31074 31075void cleanup_routine(void *foo); 31076void *thread_main(void *foo); 31077 31078void cleanup_routine(void *foo) { i = 4; } 31079void *thread_main(void *foo) { i = 2; return (void*) &i; } 31080 31081int main(int argc, char* argv[]) 31082{ 31083 pthread_attr_t attr; 31084 31085 me = pthread_self(); 31086 pthread_atfork(NULL, NULL, NULL); 31087 pthread_attr_init(&attr); 31088 pthread_cleanup_push(cleanup_routine, 0); 31089 pthread_create(&newthread, &attr, thread_main, 0); 31090 pthread_join(newthread, 0); 31091 pthread_cleanup_pop(0); 31092 31093 return 0; 31094} 31095_ACEOF 31096if ac_fn_c_try_link "$LINENO"; then : 31097 pmix_pthread_c_success=1 31098else 31099 pmix_pthread_c_success=0 31100fi 31101rm -f core conftest.err conftest.$ac_objext \ 31102 conftest$ac_exeext conftest.$ac_ext 31103# END: PMIX_INTL_PTHREAD_TRY_LINK 31104 31105 ac_ext=c 31106ac_cpp='$CPP $CPPFLAGS' 31107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31109ac_compiler_gnu=$ac_cv_c_compiler_gnu 31110 31111 if test "$pmix_pthread_c_success" = "1"; then 31112 PTHREAD_LIBS="$pl" 31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31114$as_echo "yes" >&6; } 31115 else 31116 PTHREAD_CPPFLAGS= 31117 CPPFLAGS="$orig_CPPFLAGS" 31118 LIBS="$orig_LIBS" 31119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31120$as_echo "no" >&6; } 31121 fi 31122 done 31123fi 31124 31125 31126# End: PMIX_INTL_POSIX_THREADS_LIBS 31127 31128 31129# 31130# check to see if we can set error checking mutexes 31131# 31132 31133# LinuxThreads 31134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5 31135$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; } 31136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31137/* end confdefs.h. */ 31138#include <pthread.h> 31139int 31140main () 31141{ 31142pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP); 31143 ; 31144 return 0; 31145} 31146_ACEOF 31147if ac_fn_c_try_link "$LINENO"; then : 31148 result="yes" defval=1 31149else 31150 result="no" defval=0 31151fi 31152rm -f core conftest.err conftest.$ac_objext \ 31153 conftest$ac_exeext conftest.$ac_ext 31154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 31155$as_echo "$result" >&6; } 31156 31157cat >>confdefs.h <<_ACEOF 31158#define PMIX_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval 31159_ACEOF 31160 31161 31162# Mac OS X 31163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK" >&5 31164$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK... " >&6; } 31165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31166/* end confdefs.h. */ 31167#include <pthread.h> 31168int 31169main () 31170{ 31171pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK); 31172 ; 31173 return 0; 31174} 31175_ACEOF 31176if ac_fn_c_try_link "$LINENO"; then : 31177 result="yes" defval=1 31178else 31179 result="no" defval=0 31180fi 31181rm -f core conftest.err conftest.$ac_objext \ 31182 conftest$ac_exeext conftest.$ac_ext 31183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 31184$as_echo "$result" >&6; } 31185 31186cat >>confdefs.h <<_ACEOF 31187#define PMIX_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval 31188_ACEOF 31189 31190 31191CFLAGS="$orig_CFLAGS" 31192CPPFLAGS="$orig_CPPFLAGS" 31193LDFLAGS="$orig_LDFLAGS" 31194LIBS="$orig_LIBS" 31195 31196if test "$pmix_pthread_c_success" = "1"; then 31197 internal_useless=1 31198 HAVE_POSIX_THREADS=1 31199else 31200 internal_useless=1 31201 HAVE_POSIX_THREADS=0 31202fi 31203 31204unset pmix_pthread_c_success 31205unset internal_useless 31206 31207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX threads package" >&5 31208$as_echo_n "checking for working POSIX threads package... " >&6; } 31209if test "$HAVE_POSIX_THREADS" = "1" ; then 31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31211$as_echo "yes" >&6; } 31212else 31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31214$as_echo "no" >&6; } 31215fi 31216export HAVE_POSIX_THREADS 31217 31218# 31219# Ask what threading we want (allow posix right now) 31220# 31221 31222if test "$HAVE_POSIX_THREADS" = "0"; then 31223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** POSIX threads are not\"" >&5 31224$as_echo "$as_me: WARNING: \"*** POSIX threads are not\"" >&2;} 31225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** available on your system \"" >&5 31226$as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;} 31227 as_fn_error $? "\"*** Can not continue\"" "$LINENO" 5 31228fi 31229 31230THREAD_CFLAGS="$PTHREAD_CFLAGS" 31231THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS" 31232THREAD_LDFLAGS="$PTHREAD_LDFLAGS" 31233THREAD_LIBS="$PTHREAD_LIBS" 31234 31235 31236# 31237# Arguments: none 31238# 31239# Dependencies: None 31240# 31241# Sets: 31242# PMIX_THREADS_HAVE_DIFFERENT_PIDS (variable) 31243# 31244# Test for Linux-like threads in the system. PMIX does not support 31245# systems with different PIDs for threads in the same process, so error 31246# out if we detect that case. 31247# 31248 31249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads have different pids (pthreads on linux)" >&5 31250$as_echo_n "checking if threads have different pids (pthreads on linux)... " >&6; } 31251 31252 31253 31254 # Is the private index set? If not, set it. 31255 if test "x$pmix_scope_index" = "x"; then 31256 pmix_scope_index=1 31257 fi 31258 31259 # First, check to see if any of these variables are already set. 31260 # This is a simple sanity check to ensure we're not already 31261 # overwriting pre-existing variables (that have a non-empty 31262 # value). It's not a perfect check, but at least it's something. 31263 for pmix_var in tpids_CFLAGS_save tpids_CPPFLAGS_save tpids_LDFLAGS_save tpids_LIBS_save tpids_MSG; do 31264 pmix_str="pmix_str=\"\$$pmix_var\"" 31265 eval $pmix_str 31266 31267 if test "x$pmix_str" != "x"; then 31268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 31269$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 31270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 31271$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 31272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 31273$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 31274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 31275$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 31276 as_fn_error $? "Cannot continue" "$LINENO" 5 31277 fi 31278 done 31279 31280 # Ok, we passed the simple sanity check. Save all these names so 31281 # that we can unset them at the end of the scope. 31282 pmix_str="pmix_scope_$pmix_scope_index=\"tpids_CFLAGS_save tpids_CPPFLAGS_save tpids_LDFLAGS_save tpids_LIBS_save tpids_MSG\"" 31283 eval $pmix_str 31284 unset pmix_str 31285 31286 env | grep pmix_scope 31287 pmix_scope_index=`expr $pmix_scope_index + 1` 31288 31289tpids_CFLAGS_save="$CFLAGS" 31290CFLAGS="$CFLAGS $THREAD_CFLAGS" 31291tpids_CPPFLAGS_save="$CPPFLAGS" 31292CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" 31293tpids_LDFLAGS_save="$LDFLAGS" 31294LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" 31295tpids_LIBS_save="$LIBS" 31296LIBS="$LIBS $THREAD_LIBS" 31297if test "$cross_compiling" = yes; then : 31298 31299 # If we're cross compiling, we can't do another AC_* function here beause 31300 # it we haven't displayed the result from the last one yet. So defer 31301 # another test until below. 31302 PMIX_THREADS_HAVE_DIFFERENT_PIDS= 31303 MSG="cross compiling (need another test)" 31304else 31305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31306/* end confdefs.h. */ 31307#include <pthread.h> 31308#include <sys/types.h> 31309#include <unistd.h> 31310#include <stdlib.h> 31311 31312void *checkpid(void *arg); 31313int main() { 31314 pthread_t thr; 31315 int pid, *retval; 31316 pid = getpid(); 31317 pthread_create(&thr, NULL, checkpid, &pid); 31318 pthread_join(thr, (void **) &retval); 31319 exit(*retval); 31320} 31321 31322static int ret; 31323void *checkpid(void *arg) { 31324 int ppid = *((int *) arg); 31325 if (ppid == getpid()) 31326 ret = 0; 31327 else 31328 ret = 1; 31329 pthread_exit((void *) &ret); 31330} 31331_ACEOF 31332if ac_fn_c_try_run "$LINENO"; then : 31333 tpids_MSG=no PMIX_THREADS_HAVE_DIFFERENT_PIDS=0 31334else 31335 tpids_MSG=yes PMIX_THREADS_HAVE_DIFFERENT_PIDS=1 31336fi 31337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31338 conftest.$ac_objext conftest.beam conftest.$ac_ext 31339fi 31340 31341 31342CFLAGS="$tpids_CFLAGS_save" 31343CPPFLAGS="$tpids_CPPFLAGS_save" 31344LDFLAGS="$tpids_LDFLAGS_save" 31345LIBS="$tpids_LIBS_save" 31346 31347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tpids_MSG" >&5 31348$as_echo "$tpids_MSG" >&6; } 31349 31350if test "x$PMIX_THREADS_HAVE_DIFFERENT_PIDS" = "x"; then : 31351 # If we are cross-compiling, look for the symbol 31352 # __linuxthreads_create_event, which seems to only exist in the 31353 # Linux Threads-based pthreads implementation (i.e., the one 31354 # that has different PIDs for each thread). We *could* switch 31355 # on $host here and only test *linux* hosts, but this test is 31356 # pretty unique, so why bother? Note that AC_CHECK_FUNC works 31357 # properly in cross-compiling environments in recent-enough 31358 # versions of Autoconf (which is one of the reasons we mandate 31359 # recent versions in autogen!). 31360 ac_fn_c_check_func "$LINENO" "__linuxthreads_create_event" "ac_cv_func___linuxthreads_create_event" 31361if test "x$ac_cv_func___linuxthreads_create_event" = xyes; then : 31362 PMIX_THREADS_HAVE_DIFFERENT_PIDS=1 31363fi 31364 31365fi 31366 31367if test "$PMIX_THREADS_HAVE_DIFFERENT_PIDS" = "1"; then : 31368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of PMIx only supports environments where" >&5 31369$as_echo "$as_me: WARNING: This version of PMIx only supports environments where" >&2;} 31370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: threads have the same PID" >&5 31371$as_echo "$as_me: WARNING: threads have the same PID" >&2;} 31372 as_fn_error $? "Cannot continue" "$LINENO" 5 31373 31374fi 31375 31376# 31377# if pthreads is not available, then the system does not have an insane threads 31378# model 31379# 31380 31381 # Unwind the index 31382 pmix_scope_index=`expr $pmix_scope_index - 1` 31383 pmix_scope_test=`expr $pmix_scope_index \> 0` 31384 if test "$pmix_scope_test" = "0"; then 31385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 31386$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 31387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 31388$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 31389 as_fn_error $? "Cannot continue" "$LINENO" 5 31390 fi 31391 31392 # Get the variable names from that index 31393 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 31394 eval $pmix_str 31395 31396 # Iterate over all the variables and unset them all 31397 for pmix_var in $pmix_str; do 31398 unset $pmix_var 31399 done 31400 31401 31402 31403cat >>confdefs.h <<_ACEOF 31404#define PMIX_ENABLE_MULTI_THREADS 1 31405_ACEOF 31406 31407 31408 31409 31410 CFLAGS="$CFLAGS $THREAD_CFLAGS" 31411 CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" 31412 LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" 31413 LIBS="$LIBS $THREAD_LIBS" 31414 31415 # 31416 # What is the local equivalent of "ln -s" 31417 # 31418 31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 31420$as_echo_n "checking whether ln -s works... " >&6; } 31421LN_S=$as_ln_s 31422if test "$LN_S" = "ln -s"; then 31423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31424$as_echo "yes" >&6; } 31425else 31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 31427$as_echo "no, using $LN_S" >&6; } 31428fi 31429 31430 31431 # Check for some common system programs that we need 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 31433$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 31434if ${ac_cv_path_GREP+:} false; then : 31435 $as_echo_n "(cached) " >&6 31436else 31437 if test -z "$GREP"; then 31438 ac_path_GREP_found=false 31439 # Loop through the user's path and test for each of PROGNAME-LIST 31440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 31442do 31443 IFS=$as_save_IFS 31444 test -z "$as_dir" && as_dir=. 31445 for ac_prog in grep ggrep; do 31446 for ac_exec_ext in '' $ac_executable_extensions; do 31447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 31448 as_fn_executable_p "$ac_path_GREP" || continue 31449# Check for GNU ac_path_GREP and select it if it is found. 31450 # Check for GNU $ac_path_GREP 31451case `"$ac_path_GREP" --version 2>&1` in 31452*GNU*) 31453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 31454*) 31455 ac_count=0 31456 $as_echo_n 0123456789 >"conftest.in" 31457 while : 31458 do 31459 cat "conftest.in" "conftest.in" >"conftest.tmp" 31460 mv "conftest.tmp" "conftest.in" 31461 cp "conftest.in" "conftest.nl" 31462 $as_echo 'GREP' >> "conftest.nl" 31463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 31464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 31465 as_fn_arith $ac_count + 1 && ac_count=$as_val 31466 if test $ac_count -gt ${ac_path_GREP_max-0}; then 31467 # Best one so far, save it but keep looking for a better one 31468 ac_cv_path_GREP="$ac_path_GREP" 31469 ac_path_GREP_max=$ac_count 31470 fi 31471 # 10*(2^10) chars as input seems more than enough 31472 test $ac_count -gt 10 && break 31473 done 31474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 31475esac 31476 31477 $ac_path_GREP_found && break 3 31478 done 31479 done 31480 done 31481IFS=$as_save_IFS 31482 if test -z "$ac_cv_path_GREP"; then 31483 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 31484 fi 31485else 31486 ac_cv_path_GREP=$GREP 31487fi 31488 31489fi 31490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 31491$as_echo "$ac_cv_path_GREP" >&6; } 31492 GREP="$ac_cv_path_GREP" 31493 31494 31495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 31496$as_echo_n "checking for egrep... " >&6; } 31497if ${ac_cv_path_EGREP+:} false; then : 31498 $as_echo_n "(cached) " >&6 31499else 31500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 31501 then ac_cv_path_EGREP="$GREP -E" 31502 else 31503 if test -z "$EGREP"; then 31504 ac_path_EGREP_found=false 31505 # Loop through the user's path and test for each of PROGNAME-LIST 31506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 31508do 31509 IFS=$as_save_IFS 31510 test -z "$as_dir" && as_dir=. 31511 for ac_prog in egrep; do 31512 for ac_exec_ext in '' $ac_executable_extensions; do 31513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 31514 as_fn_executable_p "$ac_path_EGREP" || continue 31515# Check for GNU ac_path_EGREP and select it if it is found. 31516 # Check for GNU $ac_path_EGREP 31517case `"$ac_path_EGREP" --version 2>&1` in 31518*GNU*) 31519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 31520*) 31521 ac_count=0 31522 $as_echo_n 0123456789 >"conftest.in" 31523 while : 31524 do 31525 cat "conftest.in" "conftest.in" >"conftest.tmp" 31526 mv "conftest.tmp" "conftest.in" 31527 cp "conftest.in" "conftest.nl" 31528 $as_echo 'EGREP' >> "conftest.nl" 31529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 31530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 31531 as_fn_arith $ac_count + 1 && ac_count=$as_val 31532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 31533 # Best one so far, save it but keep looking for a better one 31534 ac_cv_path_EGREP="$ac_path_EGREP" 31535 ac_path_EGREP_max=$ac_count 31536 fi 31537 # 10*(2^10) chars as input seems more than enough 31538 test $ac_count -gt 10 && break 31539 done 31540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 31541esac 31542 31543 $ac_path_EGREP_found && break 3 31544 done 31545 done 31546 done 31547IFS=$as_save_IFS 31548 if test -z "$ac_cv_path_EGREP"; then 31549 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 31550 fi 31551else 31552 ac_cv_path_EGREP=$EGREP 31553fi 31554 31555 fi 31556fi 31557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 31558$as_echo "$ac_cv_path_EGREP" >&6; } 31559 EGREP="$ac_cv_path_EGREP" 31560 31561 31562 31563 ################################## 31564 # Visibility 31565 ################################## 31566 31567 # Check the visibility declspec at the end to avoid problem with 31568 # the previous tests that are not necessarily prepared for 31569 # the visibility feature. 31570 pmix_show_title "Symbol visibility feature" 31571 31572 31573 31574 31575 # Check if the compiler has support for visibility, like some 31576 # versions of gcc, icc Sun Studio cc. 31577 # Check whether --enable-visibility was given. 31578if test "${enable_visibility+set}" = set; then : 31579 enableval=$enable_visibility; 31580fi 31581 31582 31583 WANT_VISIBILITY=0 31584 pmix_msg="whether to enable symbol visibility" 31585 31586 if test "$enable_visibility" = "no"; then 31587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $pmix_msg" >&5 31588$as_echo_n "checking $pmix_msg... " >&6; } 31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 31590$as_echo "no (disabled)" >&6; } 31591 else 31592 CFLAGS_orig=$CFLAGS 31593 31594 pmix_add= 31595 case "$pmix_c_vendor" in 31596 sun) 31597 # Check using Sun Studio -xldscope=hidden flag 31598 pmix_add=-xldscope=hidden 31599 CFLAGS="$PMIX_CFLAGS_BEFORE_PICKY $pmix_add -errwarn=%all" 31600 ;; 31601 31602 *) 31603 # Check using -fvisibility=hidden 31604 pmix_add=-fvisibility=hidden 31605 CFLAGS="$PMIX_CFLAGS_BEFORE_PICKY $pmix_add -Werror" 31606 ;; 31607 esac 31608 31609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $pmix_add" >&5 31610$as_echo_n "checking if $CC supports $pmix_add... " >&6; } 31611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31612/* end confdefs.h. */ 31613 31614 #include <stdio.h> 31615 __attribute__((visibility("default"))) int foo; 31616 31617int 31618main () 31619{ 31620fprintf(stderr, "Hello, world\n"); 31621 ; 31622 return 0; 31623} 31624_ACEOF 31625if ac_fn_c_try_link "$LINENO"; then : 31626 if test -s conftest.err; then : 31627 $GREP -iq visibility conftest.err 31628 # If we find "visibility" in the stderr, then 31629 # assume it doesn't work 31630 if test "$?" = "0"; then : 31631 pmix_add= 31632fi 31633fi 31634 31635else 31636 pmix_add= 31637fi 31638rm -f core conftest.err conftest.$ac_objext \ 31639 conftest$ac_exeext conftest.$ac_ext 31640 if test "$pmix_add" = ""; then : 31641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31642$as_echo "no" >&6; } 31643else 31644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31645$as_echo "yes" >&6; } 31646fi 31647 31648 CFLAGS=$CFLAGS_orig 31649 PMIX_VISIBILITY_CFLAGS=$pmix_add 31650 31651 if test "$pmix_add" != "" ; then 31652 WANT_VISIBILITY=1 31653 CFLAGS="$CFLAGS $PMIX_VISIBILITY_CFLAGS" 31654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $pmix_msg" >&5 31655$as_echo_n "checking $pmix_msg... " >&6; } 31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $pmix_add)" >&5 31657$as_echo "yes (via $pmix_add)" >&6; } 31658 elif test "$enable_visibility" = "yes"; then 31659 as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5 31660 else 31661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $pmix_msg" >&5 31662$as_echo_n "checking $pmix_msg... " >&6; } 31663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5 31664$as_echo "no (unsupported)" >&6; } 31665 fi 31666 unset pmix_add 31667 fi 31668 31669 31670cat >>confdefs.h <<_ACEOF 31671#define PMIX_HAVE_VISIBILITY $WANT_VISIBILITY 31672_ACEOF 31673 31674 if test "$WANT_VISIBILITY" = "1"; then 31675 WANT_HIDDEN_TRUE= 31676 WANT_HIDDEN_FALSE='#' 31677else 31678 WANT_HIDDEN_TRUE='#' 31679 WANT_HIDDEN_FALSE= 31680fi 31681 31682 31683 31684 ################################## 31685 # Libevent 31686 ################################## 31687 pmix_show_title "Event libraries" 31688 31689 31690 31691 31692 # Is the private index set? If not, set it. 31693 if test "x$pmix_scope_index" = "x"; then 31694 pmix_scope_index=1 31695 fi 31696 31697 # First, check to see if any of these variables are already set. 31698 # This is a simple sanity check to ensure we're not already 31699 # overwriting pre-existing variables (that have a non-empty 31700 # value). It's not a perfect check, but at least it's something. 31701 for pmix_var in pmix_libev_dir pmix_libev_libdir pmix_libev_standard_header_location pmix_libev_standard_lib_location pmix_check_libev_save_CPPFLAGS pmix_check_libev_save_LDFLAGS pmix_check_libev_save_LIBS; do 31702 pmix_str="pmix_str=\"\$$pmix_var\"" 31703 eval $pmix_str 31704 31705 if test "x$pmix_str" != "x"; then 31706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 31707$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 31708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 31709$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 31710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 31711$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 31712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 31713$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 31714 as_fn_error $? "Cannot continue" "$LINENO" 5 31715 fi 31716 done 31717 31718 # Ok, we passed the simple sanity check. Save all these names so 31719 # that we can unset them at the end of the scope. 31720 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_libev_dir pmix_libev_libdir pmix_libev_standard_header_location pmix_libev_standard_lib_location pmix_check_libev_save_CPPFLAGS pmix_check_libev_save_LDFLAGS pmix_check_libev_save_LIBS\"" 31721 eval $pmix_str 31722 unset pmix_str 31723 31724 env | grep pmix_scope 31725 pmix_scope_index=`expr $pmix_scope_index + 1` 31726 31727 31728 31729# Check whether --with-libev was given. 31730if test "${with_libev+set}" = set; then : 31731 withval=$with_libev; 31732fi 31733 31734 31735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libev value" >&5 31736$as_echo_n "checking --with-libev value... " >&6; } 31737 if test "$with_libev" = "yes" || test "$with_libev" = "no" || test "x$with_libev" = "x"; then : 31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5 31739$as_echo "simple ok (unspecified)" >&6; } 31740else 31741 if test ! -d "$with_libev"; then : 31742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31743$as_echo "not found" >&6; } 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libev not found" >&5 31745$as_echo "$as_me: WARNING: Directory $with_libev not found" >&2;} 31746 as_fn_error $? "Cannot continue" "$LINENO" 5 31747else 31748 if test "x`ls $with_libev/include/event.h 2> /dev/null`" = "x"; then : 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31750$as_echo "not found" >&6; } 31751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libev/include/event.h not found" >&5 31752$as_echo "$as_me: WARNING: Expected file $with_libev/include/event.h not found" >&2;} 31753 as_fn_error $? "Cannot continue" "$LINENO" 5 31754else 31755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libev)" >&5 31756$as_echo "sanity check ok ($with_libev)" >&6; } 31757 31758fi 31759 31760 31761fi 31762 31763 31764fi 31765 31766 31767 31768# Check whether --with-libev-libdir was given. 31769if test "${with_libev_libdir+set}" = set; then : 31770 withval=$with_libev_libdir; 31771fi 31772 31773 31774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libev-libdir value" >&5 31775$as_echo_n "checking --with-libev-libdir value... " >&6; } 31776 if test "$with_livev_libdir" = "yes" || test "$with_livev_libdir" = "no" || test "x$with_livev_libdir" = "x"; then : 31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5 31778$as_echo "simple ok (unspecified)" >&6; } 31779else 31780 if test ! -d "$with_livev_libdir"; then : 31781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31782$as_echo "not found" >&6; } 31783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_livev_libdir not found" >&5 31784$as_echo "$as_me: WARNING: Directory $with_livev_libdir not found" >&2;} 31785 as_fn_error $? "Cannot continue" "$LINENO" 5 31786else 31787 if test "x`ls $with_livev_libdir/libev.* 2> /dev/null`" = "x"; then : 31788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31789$as_echo "not found" >&6; } 31790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_livev_libdir/libev.* not found" >&5 31791$as_echo "$as_me: WARNING: Expected file $with_livev_libdir/libev.* not found" >&2;} 31792 as_fn_error $? "Cannot continue" "$LINENO" 5 31793else 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_livev_libdir)" >&5 31795$as_echo "sanity check ok ($with_livev_libdir)" >&6; } 31796 31797fi 31798 31799 31800fi 31801 31802 31803fi 31804 31805 31806 pmix_libev_support=0 31807 31808 if test -n "$with_libev" && test "$with_libev" != "no"; then : 31809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev in" >&5 31810$as_echo_n "checking for libev in... " >&6; } 31811 pmix_check_libev_save_CPPFLAGS="$CPPFLAGS" 31812 pmix_check_libeve_save_LDFLAGS="$LDFLAGS" 31813 pmix_check_libev_save_LIBS="$LIBS" 31814 if test "$with_libev" != "yes"; then 31815 pmix_libev_dir=$with_libev/include 31816 pmix_libev_standard_header_location=no 31817 pmix_libev_standard_lib_location=no 31818 if test -z "$with_libev_libdir" || test "$with_libev_libdir" = "yes"; then : 31819 if test -d $with_libev/lib; then 31820 pmix_libev_libdir=$with_libev/lib 31821 elif test -d $with_libev/lib64; then 31822 pmix_libev_libdir=$with_libev/lib64 31823 else 31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_libev/lib or $with_libev/lib64" >&5 31825$as_echo "Could not find $with_libev/lib or $with_libev/lib64" >&6; } 31826 as_fn_error $? "Can not continue" "$LINENO" 5 31827 fi 31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_libev_dir and $pmix_libev_libdir" >&5 31829$as_echo "$pmix_libev_dir and $pmix_libev_libdir" >&6; } 31830else 31831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libev_libdir" >&5 31832$as_echo "$with_libev_libdir" >&6; } 31833fi 31834 else 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 31836$as_echo "(default search paths)" >&6; } 31837 pmix_libev_standard_header_location=yes 31838 pmix_libev_standard_lib_location=yes 31839 fi 31840 if test ! -z "$with_libev_libdir" && test "$with_libev_libdir" != "yes"; then : 31841 pmix_libev_libdir="$with_libev_libdir" 31842 pmix_libev_standard_lib_location=no 31843fi 31844 31845 31846 pmix_check_package_pmix_libev_save_CPPFLAGS="$CPPFLAGS" 31847 pmix_check_package_pmix_libev_save_LDFLAGS="$LDFLAGS" 31848 pmix_check_package_pmix_libev_save_LIBS="$LIBS" 31849 31850 pmix_check_package_pmix_libev_orig_CPPFLAGS="$pmix_libev_CPPFLAGS" 31851 pmix_check_package_pmix_libev_orig_LDFLAGS="$pmix_libev_LDFLAGS" 31852 pmix_check_package_pmix_libev_orig_LIBS="$pmix_libev_LIBS" 31853 31854 31855 # This is stolen from autoconf to peek under the covers to get the 31856 # cache variable for the library check. one should not copy this 31857 # code into other places unless you want much pain and suffering 31858 31859 31860 # so this sucks, but there's no way to get through the progression 31861 # of header includes without killing off the cache variable and trying 31862 # again... 31863 unset ac_cv_header_event_h 31864 pmix_check_package_header_happy="no" 31865 31866 # get rid of the trailing slash(es) 31867 hdir_prefix=$(echo $pmix_libev_dir | sed -e 'sX/*$XXg') 31868 31869 if test "$hdir_prefix" = "" || \ 31870 test "$hdir_prefix" = "/usr" || \ 31871 test "$hdir_prefix" = "/usr/local"; then : 31872 # try as is... 31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 31874$as_echo "looking for header without includes" >&6; } 31875 for ac_header in event.h 31876do : 31877 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 31878if test "x$ac_cv_header_event_h" = xyes; then : 31879 cat >>confdefs.h <<_ACEOF 31880#define HAVE_EVENT_H 1 31881_ACEOF 31882 pmix_check_package_header_happy="yes" 31883fi 31884 31885done 31886 31887 if test "$pmix_check_package_header_happy" = "no"; then : 31888 # no go on the as is - reset the cache and try again 31889 unset ac_cv_header_event_h 31890fi 31891fi 31892 31893 if test "$pmix_check_package_header_happy" = "no"; then : 31894 if test "$hdir_prefix" != ""; then : 31895 pmix_libev_CPPFLAGS="$pmix_libev_CPPFLAGS -I$hdir_prefix" 31896 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 31898$as_echo "looking for header in $hdir_prefix" >&6; } 31899 for ac_header in event.h 31900do : 31901 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 31902if test "x$ac_cv_header_event_h" = xyes; then : 31903 cat >>confdefs.h <<_ACEOF 31904#define HAVE_EVENT_H 1 31905_ACEOF 31906 pmix_check_package_header_happy="yes" 31907fi 31908 31909done 31910 31911 if test "$pmix_check_package_header_happy" = "no"; then : 31912 unset ac_cv_header_event_h 31913 pmix_libev_CPPFLAGS="$pmix_libev_CPPFLAGS -I$hdir_prefix/include" 31914 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 31916$as_echo "looking for header in $hdir_prefix/include" >&6; } 31917 for ac_header in event.h 31918do : 31919 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 31920if test "x$ac_cv_header_event_h" = xyes; then : 31921 cat >>confdefs.h <<_ACEOF 31922#define HAVE_EVENT_H 1 31923_ACEOF 31924 pmix_check_package_header_happy="yes" 31925fi 31926 31927done 31928 31929fi 31930fi 31931fi 31932 31933 if test "$pmix_check_package_header_happy" = "yes"; then : 31934 31935 # This is stolen from autoconf to peek under the covers to get the 31936 # cache variable for the library check. one should not copy this 31937 # code into other places unless you want much pain and suffering 31938 31939 # see comment above 31940 unset ac_cv_lib_ev_ev_async_send 31941 pmix_check_package_lib_happy="no" 31942 31943 # get rid of the trailing slash(es) 31944 libdir_prefix=$(echo $pmix_libev_libdir | sed -e 'sX/*$XXg') 31945 31946 if test "$libdir_prefix" != ""; then : 31947 # libdir was specified - search only there 31948 pmix_libev_LDFLAGS="$pmix_libev_LDFLAGS -L$libdir_prefix" 31949 LDFLAGS="$LDFLAGS -L$libdir_prefix" 31950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ev_async_send" >&5 31951$as_echo_n "checking for library containing ev_async_send... " >&6; } 31952if ${ac_cv_search_ev_async_send+:} false; then : 31953 $as_echo_n "(cached) " >&6 31954else 31955 ac_func_search_save_LIBS=$LIBS 31956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31957/* end confdefs.h. */ 31958 31959/* Override any GCC internal prototype to avoid an error. 31960 Use char because int might match the return type of a GCC 31961 builtin and then its argument prototype would still apply. */ 31962#ifdef __cplusplus 31963extern "C" 31964#endif 31965char ev_async_send (); 31966int 31967main () 31968{ 31969return ev_async_send (); 31970 ; 31971 return 0; 31972} 31973_ACEOF 31974for ac_lib in '' ev; do 31975 if test -z "$ac_lib"; then 31976 ac_res="none required" 31977 else 31978 ac_res=-l$ac_lib 31979 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 31980 fi 31981 if ac_fn_c_try_link "$LINENO"; then : 31982 ac_cv_search_ev_async_send=$ac_res 31983fi 31984rm -f core conftest.err conftest.$ac_objext \ 31985 conftest$ac_exeext 31986 if ${ac_cv_search_ev_async_send+:} false; then : 31987 break 31988fi 31989done 31990if ${ac_cv_search_ev_async_send+:} false; then : 31991 31992else 31993 ac_cv_search_ev_async_send=no 31994fi 31995rm conftest.$ac_ext 31996LIBS=$ac_func_search_save_LIBS 31997fi 31998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ev_async_send" >&5 31999$as_echo "$ac_cv_search_ev_async_send" >&6; } 32000ac_res=$ac_cv_search_ev_async_send 32001if test "$ac_res" != no; then : 32002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32003 pmix_check_package_lib_happy="yes" 32004else 32005 pmix_check_package_lib_happy="no" 32006fi 32007 32008 if test "$pmix_check_package_lib_happy" = "no"; then : 32009 LDFLAGS="$pmix_check_package_pmix_libev_save_LDFLAGS" 32010 pmix_libev_LDFLAGS="$pmix_check_package_pmix_libev_orig_LDFLAGS" 32011 unset ac_cv_lib_ev_ev_async_send 32012fi 32013else 32014 # libdir was not specified - go through search path 32015 # get rid of the trailing slash(es) 32016 libdir_prefix=$(echo $pmix_libev_dir | sed -e 'sX/*$XXg') 32017 32018 # first try standard locations as otherwise our 32019 # searches with libdir_prefix locations might come 32020 # back positive and unnecessarily add an LDFLAG 32021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 32022$as_echo "looking for library without search path" >&6; } 32023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ev_async_send" >&5 32024$as_echo_n "checking for library containing ev_async_send... " >&6; } 32025if ${ac_cv_search_ev_async_send+:} false; then : 32026 $as_echo_n "(cached) " >&6 32027else 32028 ac_func_search_save_LIBS=$LIBS 32029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32030/* end confdefs.h. */ 32031 32032/* Override any GCC internal prototype to avoid an error. 32033 Use char because int might match the return type of a GCC 32034 builtin and then its argument prototype would still apply. */ 32035#ifdef __cplusplus 32036extern "C" 32037#endif 32038char ev_async_send (); 32039int 32040main () 32041{ 32042return ev_async_send (); 32043 ; 32044 return 0; 32045} 32046_ACEOF 32047for ac_lib in '' ev; do 32048 if test -z "$ac_lib"; then 32049 ac_res="none required" 32050 else 32051 ac_res=-l$ac_lib 32052 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32053 fi 32054 if ac_fn_c_try_link "$LINENO"; then : 32055 ac_cv_search_ev_async_send=$ac_res 32056fi 32057rm -f core conftest.err conftest.$ac_objext \ 32058 conftest$ac_exeext 32059 if ${ac_cv_search_ev_async_send+:} false; then : 32060 break 32061fi 32062done 32063if ${ac_cv_search_ev_async_send+:} false; then : 32064 32065else 32066 ac_cv_search_ev_async_send=no 32067fi 32068rm conftest.$ac_ext 32069LIBS=$ac_func_search_save_LIBS 32070fi 32071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ev_async_send" >&5 32072$as_echo "$ac_cv_search_ev_async_send" >&6; } 32073ac_res=$ac_cv_search_ev_async_send 32074if test "$ac_res" != no; then : 32075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32076 pmix_check_package_lib_happy="yes" 32077else 32078 pmix_check_package_lib_happy="no" 32079fi 32080 32081 if test "$pmix_check_package_lib_happy" = "no"; then : 32082 # no go on the as is.. see what happens later... 32083 LDFLAGS="$pmix_check_package_pmix_libev_save_LDFLAGS" 32084 pmix_libev_LDFLAGS="$pmix_check_package_pmix_libev_orig_LDFLAGS" 32085 unset ac_cv_lib_ev_ev_async_send 32086fi 32087 32088 if test "$pmix_check_package_lib_happy" = "no"; then : 32089 # if we didn't find it, check the libdir_prefix/lib64 directory 32090 if test "$libdir_prefix" != "" && \ 32091 test "$libdir_prefix" != "/usr" && \ 32092 test "$libdir_prefix" != "/usr/local"; then : 32093 pmix_libev_LDFLAGS="$pmix_libev_LDFLAGS -L$libdir_prefix/lib64" 32094 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 32095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 32096$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 32097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ev_async_send" >&5 32098$as_echo_n "checking for library containing ev_async_send... " >&6; } 32099if ${ac_cv_search_ev_async_send+:} false; then : 32100 $as_echo_n "(cached) " >&6 32101else 32102 ac_func_search_save_LIBS=$LIBS 32103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32104/* end confdefs.h. */ 32105 32106/* Override any GCC internal prototype to avoid an error. 32107 Use char because int might match the return type of a GCC 32108 builtin and then its argument prototype would still apply. */ 32109#ifdef __cplusplus 32110extern "C" 32111#endif 32112char ev_async_send (); 32113int 32114main () 32115{ 32116return ev_async_send (); 32117 ; 32118 return 0; 32119} 32120_ACEOF 32121for ac_lib in '' ev; do 32122 if test -z "$ac_lib"; then 32123 ac_res="none required" 32124 else 32125 ac_res=-l$ac_lib 32126 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32127 fi 32128 if ac_fn_c_try_link "$LINENO"; then : 32129 ac_cv_search_ev_async_send=$ac_res 32130fi 32131rm -f core conftest.err conftest.$ac_objext \ 32132 conftest$ac_exeext 32133 if ${ac_cv_search_ev_async_send+:} false; then : 32134 break 32135fi 32136done 32137if ${ac_cv_search_ev_async_send+:} false; then : 32138 32139else 32140 ac_cv_search_ev_async_send=no 32141fi 32142rm conftest.$ac_ext 32143LIBS=$ac_func_search_save_LIBS 32144fi 32145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ev_async_send" >&5 32146$as_echo "$ac_cv_search_ev_async_send" >&6; } 32147ac_res=$ac_cv_search_ev_async_send 32148if test "$ac_res" != no; then : 32149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32150 pmix_check_package_lib_happy="yes" 32151else 32152 pmix_check_package_lib_happy="no" 32153fi 32154 32155 if test "$pmix_check_package_lib_happy" = "no"; then : 32156 # no go on the as is.. see what happens later... 32157 LDFLAGS="$pmix_check_package_pmix_libev_save_LDFLAGS" 32158 pmix_libev_LDFLAGS="$pmix_check_package_pmix_libev_orig_LDFLAGS" 32159 unset ac_cv_lib_ev_ev_async_send 32160fi 32161fi 32162fi 32163 32164 if test "$pmix_check_package_lib_happy" = "no"; then : 32165 # if we still haven't found it, check the libdir_prefix/lib directory 32166 if test "$libdir_prefix" != "" && \ 32167 test "$libdir_prefix" != "/usr" && \ 32168 test "$libdir_prefix" != "/usr/local"; then : 32169 pmix_libev_LDFLAGS="$pmix_libev_LDFLAGS -L$libdir_prefix/lib" 32170 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 32171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 32172$as_echo "looking for library in $libdir_prefix/lib" >&6; } 32173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ev_async_send" >&5 32174$as_echo_n "checking for library containing ev_async_send... " >&6; } 32175if ${ac_cv_search_ev_async_send+:} false; then : 32176 $as_echo_n "(cached) " >&6 32177else 32178 ac_func_search_save_LIBS=$LIBS 32179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32180/* end confdefs.h. */ 32181 32182/* Override any GCC internal prototype to avoid an error. 32183 Use char because int might match the return type of a GCC 32184 builtin and then its argument prototype would still apply. */ 32185#ifdef __cplusplus 32186extern "C" 32187#endif 32188char ev_async_send (); 32189int 32190main () 32191{ 32192return ev_async_send (); 32193 ; 32194 return 0; 32195} 32196_ACEOF 32197for ac_lib in '' ev; do 32198 if test -z "$ac_lib"; then 32199 ac_res="none required" 32200 else 32201 ac_res=-l$ac_lib 32202 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32203 fi 32204 if ac_fn_c_try_link "$LINENO"; then : 32205 ac_cv_search_ev_async_send=$ac_res 32206fi 32207rm -f core conftest.err conftest.$ac_objext \ 32208 conftest$ac_exeext 32209 if ${ac_cv_search_ev_async_send+:} false; then : 32210 break 32211fi 32212done 32213if ${ac_cv_search_ev_async_send+:} false; then : 32214 32215else 32216 ac_cv_search_ev_async_send=no 32217fi 32218rm conftest.$ac_ext 32219LIBS=$ac_func_search_save_LIBS 32220fi 32221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ev_async_send" >&5 32222$as_echo "$ac_cv_search_ev_async_send" >&6; } 32223ac_res=$ac_cv_search_ev_async_send 32224if test "$ac_res" != no; then : 32225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32226 pmix_check_package_lib_happy="yes" 32227else 32228 pmix_check_package_lib_happy="no" 32229fi 32230 32231 if test "$pmix_check_package_lib_happy" = "no"; then : 32232 # no go on the as is.. see what happens later... 32233 LDFLAGS="$pmix_check_package_pmix_libev_save_LDFLAGS" 32234 pmix_libev_LDFLAGS="$pmix_check_package_pmix_libev_orig_LDFLAGS" 32235 unset ac_cv_lib_ev_ev_async_send 32236fi 32237fi 32238fi 32239 32240fi 32241 32242 32243 if test "$pmix_check_package_lib_happy" = "yes"; then : 32244 pmix_libev_LIBS="-lev " 32245 pmix_check_package_happy="yes" 32246else 32247 pmix_check_package_happy="no" 32248fi 32249 if test "$pmix_check_package_lib_happy" = "yes"; then : 32250 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 32251 if test "$ac_cv_search_ev_async_send" != "no" && 32252 test "$ac_cv_search_ev_async_send" != "none required"; then : 32253 pmix_libev_LIBS="$ac_cv_search_ev_async_send " 32254else 32255 pmix_libev_LIBS="" 32256fi 32257 pmix_check_package_happy="yes" 32258else 32259 pmix_check_package_happy="no" 32260fi 32261 32262 32263else 32264 pmix_check_package_happy="no" 32265fi 32266 32267 unset pmix_check_package_header_happy 32268 32269 32270 32271 if test "$pmix_check_package_happy" = "yes"; then : 32272 pmix_libev_support=1 32273else 32274 pmix_libev_CPPFLAGS="$pmix_check_package_pmix_libev_orig_CPPFLAGS" 32275 pmix_libev_LDFLAGS="$pmix_check_package_pmix_libev_orig_LDFLAGS" 32276 pmix_libev_LIBS="$pmix_check_package_pmix_libev_orig_LIBS" 32277 pmix_libev_support=0 32278fi 32279 32280 CPPFLAGS="$pmix_check_package_pmix_libev_save_CPPFLAGS" 32281 LDFLAGS="$pmix_check_package_pmix_libev_save_LDFLAGS" 32282 LIBS="$pmix_check_package_pmix_libev_save_LIBS" 32283 32284 CPPFLAGS="$pmix_check_libev_save_CPPFLAGS" 32285 LDFLAGS="$pmix_check_libev_save_LDFLAGS" 32286 LIBS="$pmix_check_libev_save_LIBS" 32287fi 32288 32289 if test $pmix_libev_support -eq 1; then : 32290 32291 32292 32293 # Is the private index set? If not, set it. 32294 if test "x$pmix_scope_index" = "x"; then 32295 pmix_scope_index=1 32296 fi 32297 32298 # First, check to see if any of these variables are already set. 32299 # This is a simple sanity check to ensure we're not already 32300 # overwriting pre-existing variables (that have a non-empty 32301 # value). It's not a perfect check, but at least it's something. 32302 for pmix_var in pmix_tmp pmix_append; do 32303 pmix_str="pmix_str=\"\$$pmix_var\"" 32304 eval $pmix_str 32305 32306 if test "x$pmix_str" != "x"; then 32307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 32308$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 32309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 32310$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 32311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 32312$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 32313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32314$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32315 as_fn_error $? "Cannot continue" "$LINENO" 5 32316 fi 32317 done 32318 32319 # Ok, we passed the simple sanity check. Save all these names so 32320 # that we can unset them at the end of the scope. 32321 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 32322 eval $pmix_str 32323 unset pmix_str 32324 32325 env | grep pmix_scope 32326 pmix_scope_index=`expr $pmix_scope_index + 1` 32327 32328 32329 for arg in $pmix_libev_LIBS; do 32330 pmix_tmp=`echo $arg | cut -c1-2` 32331 pmix_append=1 32332 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 32333 for val in ${PMIX_FINAL_LIBS}; do 32334 if test "x$val" = "x$arg"; then : 32335 pmix_append=0 32336fi 32337 done 32338fi 32339 if test "$pmix_append" = "1"; then : 32340 if test -z "$PMIX_FINAL_LIBS"; then : 32341 PMIX_FINAL_LIBS=$arg 32342else 32343 PMIX_FINAL_LIBS="$PMIX_FINAL_LIBS $arg" 32344fi 32345fi 32346 done 32347 32348 32349 # Unwind the index 32350 pmix_scope_index=`expr $pmix_scope_index - 1` 32351 pmix_scope_test=`expr $pmix_scope_index \> 0` 32352 if test "$pmix_scope_test" = "0"; then 32353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 32354$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 32355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32356$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32357 as_fn_error $? "Cannot continue" "$LINENO" 5 32358 fi 32359 32360 # Get the variable names from that index 32361 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 32362 eval $pmix_str 32363 32364 # Iterate over all the variables and unset them all 32365 for pmix_var in $pmix_str; do 32366 unset $pmix_var 32367 done 32368 32369 32370 32371 if test "$pmix_libev_standard_header_location" != "yes"; then : 32372 32373 32374 32375 # Is the private index set? If not, set it. 32376 if test "x$pmix_scope_index" = "x"; then 32377 pmix_scope_index=1 32378 fi 32379 32380 # First, check to see if any of these variables are already set. 32381 # This is a simple sanity check to ensure we're not already 32382 # overwriting pre-existing variables (that have a non-empty 32383 # value). It's not a perfect check, but at least it's something. 32384 for pmix_var in pmix_tmp pmix_append; do 32385 pmix_str="pmix_str=\"\$$pmix_var\"" 32386 eval $pmix_str 32387 32388 if test "x$pmix_str" != "x"; then 32389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 32390$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 32391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 32392$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 32394$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 32395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32396$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32397 as_fn_error $? "Cannot continue" "$LINENO" 5 32398 fi 32399 done 32400 32401 # Ok, we passed the simple sanity check. Save all these names so 32402 # that we can unset them at the end of the scope. 32403 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 32404 eval $pmix_str 32405 unset pmix_str 32406 32407 env | grep pmix_scope 32408 pmix_scope_index=`expr $pmix_scope_index + 1` 32409 32410 32411 for arg in $pmix_libev_CPPFLAGS; do 32412 pmix_tmp=`echo $arg | cut -c1-2` 32413 pmix_append=1 32414 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 32415 for val in ${PMIX_FINAL_CPPFLAGS}; do 32416 if test "x$val" = "x$arg"; then : 32417 pmix_append=0 32418fi 32419 done 32420fi 32421 if test "$pmix_append" = "1"; then : 32422 if test -z "$PMIX_FINAL_CPPFLAGS"; then : 32423 PMIX_FINAL_CPPFLAGS=$arg 32424else 32425 PMIX_FINAL_CPPFLAGS="$PMIX_FINAL_CPPFLAGS $arg" 32426fi 32427fi 32428 done 32429 32430 32431 # Unwind the index 32432 pmix_scope_index=`expr $pmix_scope_index - 1` 32433 pmix_scope_test=`expr $pmix_scope_index \> 0` 32434 if test "$pmix_scope_test" = "0"; then 32435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 32436$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 32437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32438$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32439 as_fn_error $? "Cannot continue" "$LINENO" 5 32440 fi 32441 32442 # Get the variable names from that index 32443 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 32444 eval $pmix_str 32445 32446 # Iterate over all the variables and unset them all 32447 for pmix_var in $pmix_str; do 32448 unset $pmix_var 32449 done 32450 32451 32452fi 32453 if test "$pmix_libev_standard_lib_location" != "yes"; then : 32454 32455 32456 32457 # Is the private index set? If not, set it. 32458 if test "x$pmix_scope_index" = "x"; then 32459 pmix_scope_index=1 32460 fi 32461 32462 # First, check to see if any of these variables are already set. 32463 # This is a simple sanity check to ensure we're not already 32464 # overwriting pre-existing variables (that have a non-empty 32465 # value). It's not a perfect check, but at least it's something. 32466 for pmix_var in pmix_tmp pmix_append; do 32467 pmix_str="pmix_str=\"\$$pmix_var\"" 32468 eval $pmix_str 32469 32470 if test "x$pmix_str" != "x"; then 32471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 32472$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 32473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 32474$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 32475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 32476$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 32477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32478$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32479 as_fn_error $? "Cannot continue" "$LINENO" 5 32480 fi 32481 done 32482 32483 # Ok, we passed the simple sanity check. Save all these names so 32484 # that we can unset them at the end of the scope. 32485 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 32486 eval $pmix_str 32487 unset pmix_str 32488 32489 env | grep pmix_scope 32490 pmix_scope_index=`expr $pmix_scope_index + 1` 32491 32492 32493 for arg in $pmix_libev_LDFLAGS; do 32494 pmix_tmp=`echo $arg | cut -c1-2` 32495 pmix_append=1 32496 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 32497 for val in ${PMIX_FINAL_LDFLAGS}; do 32498 if test "x$val" = "x$arg"; then : 32499 pmix_append=0 32500fi 32501 done 32502fi 32503 if test "$pmix_append" = "1"; then : 32504 if test -z "$PMIX_FINAL_LDFLAGS"; then : 32505 PMIX_FINAL_LDFLAGS=$arg 32506else 32507 PMIX_FINAL_LDFLAGS="$PMIX_FINAL_LDFLAGS $arg" 32508fi 32509fi 32510 done 32511 32512 32513 # Unwind the index 32514 pmix_scope_index=`expr $pmix_scope_index - 1` 32515 pmix_scope_test=`expr $pmix_scope_index \> 0` 32516 if test "$pmix_scope_test" = "0"; then 32517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 32518$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32520$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32521 as_fn_error $? "Cannot continue" "$LINENO" 5 32522 fi 32523 32524 # Get the variable names from that index 32525 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 32526 eval $pmix_str 32527 32528 # Iterate over all the variables and unset them all 32529 for pmix_var in $pmix_str; do 32530 unset $pmix_var 32531 done 32532 32533 32534fi 32535fi 32536 32537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking will libev support be built" >&5 32538$as_echo_n "checking will libev support be built... " >&6; } 32539 if test $pmix_libev_support -eq 1; then 32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32541$as_echo "yes" >&6; } 32542 PMIX_EVENT_HEADER="<event.h>" 32543 32544cat >>confdefs.h <<_ACEOF 32545#define PMIX_EVENT_HEADER $PMIX_EVENT_HEADER 32546_ACEOF 32547 32548 32549 32550 32551 # Is the private index set? If not, set it. 32552 if test "x$pmix_scope_index" = "x"; then 32553 pmix_scope_index=1 32554 fi 32555 32556 # First, check to see if any of these variables are already set. 32557 # This is a simple sanity check to ensure we're not already 32558 # overwriting pre-existing variables (that have a non-empty 32559 # value). It's not a perfect check, but at least it's something. 32560 for pmix_var in pmix_summary_section pmix_summary_line pmix_summary_section_current; do 32561 pmix_str="pmix_str=\"\$$pmix_var\"" 32562 eval $pmix_str 32563 32564 if test "x$pmix_str" != "x"; then 32565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 32566$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 32567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 32568$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 32569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 32570$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32572$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32573 as_fn_error $? "Cannot continue" "$LINENO" 5 32574 fi 32575 done 32576 32577 # Ok, we passed the simple sanity check. Save all these names so 32578 # that we can unset them at the end of the scope. 32579 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_line pmix_summary_section_current\"" 32580 eval $pmix_str 32581 unset pmix_str 32582 32583 env | grep pmix_scope 32584 pmix_scope_index=`expr $pmix_scope_index + 1` 32585 32586 32587 pmix_summary_section=$(echo External Packages | tr ' ' '_') 32588 pmix_summary_line="libev: $pmix_libev_dir" 32589 pmix_summary_section_current=$(eval echo \$pmix_summary_values_$pmix_summary_section) 32590 32591 if test -z "$pmix_summary_section_current" ; then 32592 if test -z "$pmix_summary_sections" ; then 32593 pmix_summary_sections=$pmix_summary_section 32594 else 32595 pmix_summary_sections="$pmix_summary_sections $pmix_summary_section" 32596 fi 32597 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_line\" 32598 else 32599 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_section_current,$pmix_summary_line\" 32600 fi 32601 32602 32603 # Unwind the index 32604 pmix_scope_index=`expr $pmix_scope_index - 1` 32605 pmix_scope_test=`expr $pmix_scope_index \> 0` 32606 if test "$pmix_scope_test" = "0"; then 32607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 32608$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 32609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32610$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32611 as_fn_error $? "Cannot continue" "$LINENO" 5 32612 fi 32613 32614 # Get the variable names from that index 32615 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 32616 eval $pmix_str 32617 32618 # Iterate over all the variables and unset them all 32619 for pmix_var in $pmix_str; do 32620 unset $pmix_var 32621 done 32622 32623 32624 else 32625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32626$as_echo "no" >&6; } 32627 # if they asked us to use it, then this is an error 32628 if test -n "$with_libev" && test "$with_libev" != "no"; then : 32629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBEV SUPPORT REQUESTED AND NOT FOUND" >&5 32630$as_echo "$as_me: WARNING: LIBEV SUPPORT REQUESTED AND NOT FOUND" >&2;} 32631 as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5 32632fi 32633 fi 32634 32635 32636cat >>confdefs.h <<_ACEOF 32637#define PMIX_HAVE_LIBEV $pmix_libev_support 32638_ACEOF 32639 32640 32641 32642 # Unwind the index 32643 pmix_scope_index=`expr $pmix_scope_index - 1` 32644 pmix_scope_test=`expr $pmix_scope_index \> 0` 32645 if test "$pmix_scope_test" = "0"; then 32646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 32647$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 32648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32649$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32650 as_fn_error $? "Cannot continue" "$LINENO" 5 32651 fi 32652 32653 # Get the variable names from that index 32654 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 32655 eval $pmix_str 32656 32657 # Iterate over all the variables and unset them all 32658 for pmix_var in $pmix_str; do 32659 unset $pmix_var 32660 done 32661 32662 32663 32664 32665# Check whether --with-libevent-header was given. 32666if test "${with_libevent_header+set}" = set; then : 32667 withval=$with_libevent_header; 32668fi 32669 32670 32671 pmix_libevent_support=0 32672 32673 if test "$pmix_mode" = "embedded"; then : 32674 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 32676$as_echo_n "checking for libevent... " >&6; } 32677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed available (embedded mode)" >&5 32678$as_echo "assumed available (embedded mode)" >&6; } 32679 32680 if test -z "$with_libevent_header" || test "$with_libevent_header" = "yes"; then : 32681 PMIX_EVENT_HEADER="<event.h>" 32682 PMIX_EVENT2_THREAD_HEADER="<event2/thread.h>" 32683else 32684 PMIX_EVENT_HEADER="$with_libevent_header" 32685 PMIX_EVENT2_THREAD_HEADER="$with_libevent_header" 32686fi 32687 32688 pmix_libevent_source=embedded 32689 pmix_libevent_support=1 32690 32691else 32692 if test $pmix_libev_support -eq 0; then : 32693 32694 32695 32696 # Is the private index set? If not, set it. 32697 if test "x$pmix_scope_index" = "x"; then 32698 pmix_scope_index=1 32699 fi 32700 32701 # First, check to see if any of these variables are already set. 32702 # This is a simple sanity check to ensure we're not already 32703 # overwriting pre-existing variables (that have a non-empty 32704 # value). It's not a perfect check, but at least it's something. 32705 for pmix_var in pmix_event_dir pmix_event_libdir pmix_event_defaults pmix_check_libevent_save_CPPFLAGS pmix_check_libevent_save_LDFLAGS pmix_check_libevent_save_LIBS; do 32706 pmix_str="pmix_str=\"\$$pmix_var\"" 32707 eval $pmix_str 32708 32709 if test "x$pmix_str" != "x"; then 32710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 32711$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 32712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 32713$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 32714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 32715$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 32716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 32717$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 32718 as_fn_error $? "Cannot continue" "$LINENO" 5 32719 fi 32720 done 32721 32722 # Ok, we passed the simple sanity check. Save all these names so 32723 # that we can unset them at the end of the scope. 32724 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_event_dir pmix_event_libdir pmix_event_defaults pmix_check_libevent_save_CPPFLAGS pmix_check_libevent_save_LDFLAGS pmix_check_libevent_save_LIBS\"" 32725 eval $pmix_str 32726 unset pmix_str 32727 32728 env | grep pmix_scope 32729 pmix_scope_index=`expr $pmix_scope_index + 1` 32730 32731 32732 32733# Check whether --with-libevent was given. 32734if test "${with_libevent+set}" = set; then : 32735 withval=$with_libevent; 32736fi 32737 32738 32739 32740# Check whether --with-libevent-libdir was given. 32741if test "${with_libevent_libdir+set}" = set; then : 32742 withval=$with_libevent_libdir; 32743fi 32744 32745 32746 pmix_check_libevent_save_CPPFLAGS="$CPPFLAGS" 32747 pmix_check_libevent_save_LDFLAGS="$LDFLAGS" 32748 pmix_check_libevent_save_LIBS="$LIBS" 32749 pmix_event_defaults=yes 32750 32751 # get rid of the trailing slash(es) 32752 libevent_prefix=$(echo $with_libevent | sed -e 'sX/*$XXg') 32753 libeventdir_prefix=$(echo $with_libevent_libdir | sed -e 'sX/*$XXg') 32754 32755 if test "$libevent_prefix" != "no"; then 32756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent in" >&5 32757$as_echo_n "checking for libevent in... " >&6; } 32758 if test ! -z "$libevent_prefix" && test "$libevent_prefix" != "yes"; then 32759 pmix_event_defaults=no 32760 pmix_event_dir=$libevent_prefix/include 32761 if test -d $libevent_prefix/lib; then 32762 pmix_event_libdir=$libevent_prefix/lib 32763 elif test -d $libevent_prefix/lib64; then 32764 pmix_event_libdir=$libevent_prefix/lib64 32765 elif test -d $libevent_prefix; then 32766 pmix_event_libdir=$libevent_prefix 32767 else 32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $libevent_prefix/lib, $libevent_prefix/lib64, or $libevent_prefix" >&5 32769$as_echo "Could not find $libevent_prefix/lib, $libevent_prefix/lib64, or $libevent_prefix" >&6; } 32770 as_fn_error $? "Can not continue" "$LINENO" 5 32771 fi 32772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_event_dir and $pmix_event_libdir" >&5 32773$as_echo "$pmix_event_dir and $pmix_event_libdir" >&6; } 32774 else 32775 pmix_event_defaults=yes 32776 pmix_event_dir=/usr/include 32777 if test -d /usr/lib; then 32778 pmix_event_libdir=/usr/lib 32779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 32780$as_echo "(default search paths)" >&6; } 32781 elif test -d /usr/lib64; then 32782 pmix_event_libdir=/usr/lib64 32783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 32784$as_echo "(default search paths)" >&6; } 32785 else 32786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default paths not found" >&5 32787$as_echo "default paths not found" >&6; } 32788 pmix_libevent_support=0 32789 fi 32790 fi 32791 if test ! -z "$libeventdir_prefix" && "$libeventdir_prefix" != "yes"; then : 32792 pmix_event_libdir="$libeventdir_prefix" 32793fi 32794 32795 32796 pmix_check_package_pmix_libevent_save_CPPFLAGS="$CPPFLAGS" 32797 pmix_check_package_pmix_libevent_save_LDFLAGS="$LDFLAGS" 32798 pmix_check_package_pmix_libevent_save_LIBS="$LIBS" 32799 32800 pmix_check_package_pmix_libevent_orig_CPPFLAGS="$pmix_libevent_CPPFLAGS" 32801 pmix_check_package_pmix_libevent_orig_LDFLAGS="$pmix_libevent_LDFLAGS" 32802 pmix_check_package_pmix_libevent_orig_LIBS="$pmix_libevent_LIBS" 32803 32804 32805 # This is stolen from autoconf to peek under the covers to get the 32806 # cache variable for the library check. one should not copy this 32807 # code into other places unless you want much pain and suffering 32808 32809 32810 # so this sucks, but there's no way to get through the progression 32811 # of header includes without killing off the cache variable and trying 32812 # again... 32813 unset ac_cv_header_event_h 32814 pmix_check_package_header_happy="no" 32815 32816 # get rid of the trailing slash(es) 32817 hdir_prefix=$(echo $pmix_event_dir | sed -e 'sX/*$XXg') 32818 32819 if test "$hdir_prefix" = "" || \ 32820 test "$hdir_prefix" = "/usr" || \ 32821 test "$hdir_prefix" = "/usr/local"; then : 32822 # try as is... 32823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 32824$as_echo "looking for header without includes" >&6; } 32825 for ac_header in event.h 32826do : 32827 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 32828if test "x$ac_cv_header_event_h" = xyes; then : 32829 cat >>confdefs.h <<_ACEOF 32830#define HAVE_EVENT_H 1 32831_ACEOF 32832 pmix_check_package_header_happy="yes" 32833fi 32834 32835done 32836 32837 if test "$pmix_check_package_header_happy" = "no"; then : 32838 # no go on the as is - reset the cache and try again 32839 unset ac_cv_header_event_h 32840fi 32841fi 32842 32843 if test "$pmix_check_package_header_happy" = "no"; then : 32844 if test "$hdir_prefix" != ""; then : 32845 pmix_libevent_CPPFLAGS="$pmix_libevent_CPPFLAGS -I$hdir_prefix" 32846 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 32848$as_echo "looking for header in $hdir_prefix" >&6; } 32849 for ac_header in event.h 32850do : 32851 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 32852if test "x$ac_cv_header_event_h" = xyes; then : 32853 cat >>confdefs.h <<_ACEOF 32854#define HAVE_EVENT_H 1 32855_ACEOF 32856 pmix_check_package_header_happy="yes" 32857fi 32858 32859done 32860 32861 if test "$pmix_check_package_header_happy" = "no"; then : 32862 unset ac_cv_header_event_h 32863 pmix_libevent_CPPFLAGS="$pmix_libevent_CPPFLAGS -I$hdir_prefix/include" 32864 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 32866$as_echo "looking for header in $hdir_prefix/include" >&6; } 32867 for ac_header in event.h 32868do : 32869 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 32870if test "x$ac_cv_header_event_h" = xyes; then : 32871 cat >>confdefs.h <<_ACEOF 32872#define HAVE_EVENT_H 1 32873_ACEOF 32874 pmix_check_package_header_happy="yes" 32875fi 32876 32877done 32878 32879fi 32880fi 32881fi 32882 32883 if test "$pmix_check_package_header_happy" = "yes"; then : 32884 32885 # This is stolen from autoconf to peek under the covers to get the 32886 # cache variable for the library check. one should not copy this 32887 # code into other places unless you want much pain and suffering 32888 32889 # see comment above 32890 unset ac_cv_lib_event_core_event_config_new 32891 pmix_check_package_lib_happy="no" 32892 32893 # get rid of the trailing slash(es) 32894 libdir_prefix=$(echo $pmix_event_libdir | sed -e 'sX/*$XXg') 32895 32896 if test "$libdir_prefix" != ""; then : 32897 # libdir was specified - search only there 32898 pmix_libevent_LDFLAGS="$pmix_libevent_LDFLAGS -L$libdir_prefix" 32899 LDFLAGS="$LDFLAGS -L$libdir_prefix" 32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5 32901$as_echo_n "checking for library containing event_config_new... " >&6; } 32902if ${ac_cv_search_event_config_new+:} false; then : 32903 $as_echo_n "(cached) " >&6 32904else 32905 ac_func_search_save_LIBS=$LIBS 32906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32907/* end confdefs.h. */ 32908 32909/* Override any GCC internal prototype to avoid an error. 32910 Use char because int might match the return type of a GCC 32911 builtin and then its argument prototype would still apply. */ 32912#ifdef __cplusplus 32913extern "C" 32914#endif 32915char event_config_new (); 32916int 32917main () 32918{ 32919return event_config_new (); 32920 ; 32921 return 0; 32922} 32923_ACEOF 32924for ac_lib in '' event_core; do 32925 if test -z "$ac_lib"; then 32926 ac_res="none required" 32927 else 32928 ac_res=-l$ac_lib 32929 LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" 32930 fi 32931 if ac_fn_c_try_link "$LINENO"; then : 32932 ac_cv_search_event_config_new=$ac_res 32933fi 32934rm -f core conftest.err conftest.$ac_objext \ 32935 conftest$ac_exeext 32936 if ${ac_cv_search_event_config_new+:} false; then : 32937 break 32938fi 32939done 32940if ${ac_cv_search_event_config_new+:} false; then : 32941 32942else 32943 ac_cv_search_event_config_new=no 32944fi 32945rm conftest.$ac_ext 32946LIBS=$ac_func_search_save_LIBS 32947fi 32948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 32949$as_echo "$ac_cv_search_event_config_new" >&6; } 32950ac_res=$ac_cv_search_event_config_new 32951if test "$ac_res" != no; then : 32952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32953 pmix_check_package_lib_happy="yes" 32954else 32955 pmix_check_package_lib_happy="no" 32956fi 32957 32958 if test "$pmix_check_package_lib_happy" = "no"; then : 32959 LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS" 32960 pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS" 32961 unset ac_cv_lib_event_core_event_config_new 32962fi 32963else 32964 # libdir was not specified - go through search path 32965 # get rid of the trailing slash(es) 32966 libdir_prefix=$(echo $pmix_event_dir | sed -e 'sX/*$XXg') 32967 32968 # first try standard locations as otherwise our 32969 # searches with libdir_prefix locations might come 32970 # back positive and unnecessarily add an LDFLAG 32971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 32972$as_echo "looking for library without search path" >&6; } 32973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5 32974$as_echo_n "checking for library containing event_config_new... " >&6; } 32975if ${ac_cv_search_event_config_new+:} false; then : 32976 $as_echo_n "(cached) " >&6 32977else 32978 ac_func_search_save_LIBS=$LIBS 32979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32980/* end confdefs.h. */ 32981 32982/* Override any GCC internal prototype to avoid an error. 32983 Use char because int might match the return type of a GCC 32984 builtin and then its argument prototype would still apply. */ 32985#ifdef __cplusplus 32986extern "C" 32987#endif 32988char event_config_new (); 32989int 32990main () 32991{ 32992return event_config_new (); 32993 ; 32994 return 0; 32995} 32996_ACEOF 32997for ac_lib in '' event_core; do 32998 if test -z "$ac_lib"; then 32999 ac_res="none required" 33000 else 33001 ac_res=-l$ac_lib 33002 LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" 33003 fi 33004 if ac_fn_c_try_link "$LINENO"; then : 33005 ac_cv_search_event_config_new=$ac_res 33006fi 33007rm -f core conftest.err conftest.$ac_objext \ 33008 conftest$ac_exeext 33009 if ${ac_cv_search_event_config_new+:} false; then : 33010 break 33011fi 33012done 33013if ${ac_cv_search_event_config_new+:} false; then : 33014 33015else 33016 ac_cv_search_event_config_new=no 33017fi 33018rm conftest.$ac_ext 33019LIBS=$ac_func_search_save_LIBS 33020fi 33021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 33022$as_echo "$ac_cv_search_event_config_new" >&6; } 33023ac_res=$ac_cv_search_event_config_new 33024if test "$ac_res" != no; then : 33025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 33026 pmix_check_package_lib_happy="yes" 33027else 33028 pmix_check_package_lib_happy="no" 33029fi 33030 33031 if test "$pmix_check_package_lib_happy" = "no"; then : 33032 # no go on the as is.. see what happens later... 33033 LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS" 33034 pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS" 33035 unset ac_cv_lib_event_core_event_config_new 33036fi 33037 33038 if test "$pmix_check_package_lib_happy" = "no"; then : 33039 # if we didn't find it, check the libdir_prefix/lib64 directory 33040 if test "$libdir_prefix" != "" && \ 33041 test "$libdir_prefix" != "/usr" && \ 33042 test "$libdir_prefix" != "/usr/local"; then : 33043 pmix_libevent_LDFLAGS="$pmix_libevent_LDFLAGS -L$libdir_prefix/lib64" 33044 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 33045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 33046$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 33047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5 33048$as_echo_n "checking for library containing event_config_new... " >&6; } 33049if ${ac_cv_search_event_config_new+:} false; then : 33050 $as_echo_n "(cached) " >&6 33051else 33052 ac_func_search_save_LIBS=$LIBS 33053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33054/* end confdefs.h. */ 33055 33056/* Override any GCC internal prototype to avoid an error. 33057 Use char because int might match the return type of a GCC 33058 builtin and then its argument prototype would still apply. */ 33059#ifdef __cplusplus 33060extern "C" 33061#endif 33062char event_config_new (); 33063int 33064main () 33065{ 33066return event_config_new (); 33067 ; 33068 return 0; 33069} 33070_ACEOF 33071for ac_lib in '' event_core; do 33072 if test -z "$ac_lib"; then 33073 ac_res="none required" 33074 else 33075 ac_res=-l$ac_lib 33076 LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" 33077 fi 33078 if ac_fn_c_try_link "$LINENO"; then : 33079 ac_cv_search_event_config_new=$ac_res 33080fi 33081rm -f core conftest.err conftest.$ac_objext \ 33082 conftest$ac_exeext 33083 if ${ac_cv_search_event_config_new+:} false; then : 33084 break 33085fi 33086done 33087if ${ac_cv_search_event_config_new+:} false; then : 33088 33089else 33090 ac_cv_search_event_config_new=no 33091fi 33092rm conftest.$ac_ext 33093LIBS=$ac_func_search_save_LIBS 33094fi 33095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 33096$as_echo "$ac_cv_search_event_config_new" >&6; } 33097ac_res=$ac_cv_search_event_config_new 33098if test "$ac_res" != no; then : 33099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 33100 pmix_check_package_lib_happy="yes" 33101else 33102 pmix_check_package_lib_happy="no" 33103fi 33104 33105 if test "$pmix_check_package_lib_happy" = "no"; then : 33106 # no go on the as is.. see what happens later... 33107 LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS" 33108 pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS" 33109 unset ac_cv_lib_event_core_event_config_new 33110fi 33111fi 33112fi 33113 33114 if test "$pmix_check_package_lib_happy" = "no"; then : 33115 # if we still haven't found it, check the libdir_prefix/lib directory 33116 if test "$libdir_prefix" != "" && \ 33117 test "$libdir_prefix" != "/usr" && \ 33118 test "$libdir_prefix" != "/usr/local"; then : 33119 pmix_libevent_LDFLAGS="$pmix_libevent_LDFLAGS -L$libdir_prefix/lib" 33120 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 33122$as_echo "looking for library in $libdir_prefix/lib" >&6; } 33123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5 33124$as_echo_n "checking for library containing event_config_new... " >&6; } 33125if ${ac_cv_search_event_config_new+:} false; then : 33126 $as_echo_n "(cached) " >&6 33127else 33128 ac_func_search_save_LIBS=$LIBS 33129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33130/* end confdefs.h. */ 33131 33132/* Override any GCC internal prototype to avoid an error. 33133 Use char because int might match the return type of a GCC 33134 builtin and then its argument prototype would still apply. */ 33135#ifdef __cplusplus 33136extern "C" 33137#endif 33138char event_config_new (); 33139int 33140main () 33141{ 33142return event_config_new (); 33143 ; 33144 return 0; 33145} 33146_ACEOF 33147for ac_lib in '' event_core; do 33148 if test -z "$ac_lib"; then 33149 ac_res="none required" 33150 else 33151 ac_res=-l$ac_lib 33152 LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" 33153 fi 33154 if ac_fn_c_try_link "$LINENO"; then : 33155 ac_cv_search_event_config_new=$ac_res 33156fi 33157rm -f core conftest.err conftest.$ac_objext \ 33158 conftest$ac_exeext 33159 if ${ac_cv_search_event_config_new+:} false; then : 33160 break 33161fi 33162done 33163if ${ac_cv_search_event_config_new+:} false; then : 33164 33165else 33166 ac_cv_search_event_config_new=no 33167fi 33168rm conftest.$ac_ext 33169LIBS=$ac_func_search_save_LIBS 33170fi 33171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 33172$as_echo "$ac_cv_search_event_config_new" >&6; } 33173ac_res=$ac_cv_search_event_config_new 33174if test "$ac_res" != no; then : 33175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 33176 pmix_check_package_lib_happy="yes" 33177else 33178 pmix_check_package_lib_happy="no" 33179fi 33180 33181 if test "$pmix_check_package_lib_happy" = "no"; then : 33182 # no go on the as is.. see what happens later... 33183 LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS" 33184 pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS" 33185 unset ac_cv_lib_event_core_event_config_new 33186fi 33187fi 33188fi 33189 33190fi 33191 33192 33193 if test "$pmix_check_package_lib_happy" = "yes"; then : 33194 pmix_libevent_LIBS="-levent_core -levent_pthreads" 33195 pmix_check_package_happy="yes" 33196else 33197 pmix_check_package_happy="no" 33198fi 33199 if test "$pmix_check_package_lib_happy" = "yes"; then : 33200 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 33201 if test "$ac_cv_search_event_config_new" != "no" && 33202 test "$ac_cv_search_event_config_new" != "none required"; then : 33203 pmix_libevent_LIBS="$ac_cv_search_event_config_new -levent_pthreads" 33204else 33205 pmix_libevent_LIBS="-levent_pthreads" 33206fi 33207 pmix_check_package_happy="yes" 33208else 33209 pmix_check_package_happy="no" 33210fi 33211 33212 33213else 33214 pmix_check_package_happy="no" 33215fi 33216 33217 unset pmix_check_package_header_happy 33218 33219 33220 33221 if test "$pmix_check_package_happy" = "yes"; then : 33222 pmix_libevent_support=1 33223else 33224 pmix_libevent_CPPFLAGS="$pmix_check_package_pmix_libevent_orig_CPPFLAGS" 33225 pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS" 33226 pmix_libevent_LIBS="$pmix_check_package_pmix_libevent_orig_LIBS" 33227 pmix_libevent_support=0 33228fi 33229 33230 CPPFLAGS="$pmix_check_package_pmix_libevent_save_CPPFLAGS" 33231 LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS" 33232 LIBS="$pmix_check_package_pmix_libevent_save_LIBS" 33233 33234 33235 # Check to see if the above check failed because it conflicted with LSF's libevent.so 33236 # This can happen if LSF's library is in the LDFLAGS envar or default search 33237 # path. The 'event_getcode4name' function is only defined in LSF's libevent.so and not 33238 # in Libevent's libevent.so 33239 if test $pmix_libevent_support -eq 0; then 33240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_getcode4name in -levent" >&5 33241$as_echo_n "checking for event_getcode4name in -levent... " >&6; } 33242if ${ac_cv_lib_event_event_getcode4name+:} false; then : 33243 $as_echo_n "(cached) " >&6 33244else 33245 ac_check_lib_save_LIBS=$LIBS 33246LIBS="-levent $LIBS" 33247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33248/* end confdefs.h. */ 33249 33250/* Override any GCC internal prototype to avoid an error. 33251 Use char because int might match the return type of a GCC 33252 builtin and then its argument prototype would still apply. */ 33253#ifdef __cplusplus 33254extern "C" 33255#endif 33256char event_getcode4name (); 33257int 33258main () 33259{ 33260return event_getcode4name (); 33261 ; 33262 return 0; 33263} 33264_ACEOF 33265if ac_fn_c_try_link "$LINENO"; then : 33266 ac_cv_lib_event_event_getcode4name=yes 33267else 33268 ac_cv_lib_event_event_getcode4name=no 33269fi 33270rm -f core conftest.err conftest.$ac_objext \ 33271 conftest$ac_exeext conftest.$ac_ext 33272LIBS=$ac_check_lib_save_LIBS 33273fi 33274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_getcode4name" >&5 33275$as_echo "$ac_cv_lib_event_event_getcode4name" >&6; } 33276if test "x$ac_cv_lib_event_event_getcode4name" = xyes; then : 33277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 33278$as_echo "$as_me: WARNING: ===================================================================" >&2;} 33279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Possible conflicting libevent.so libraries detected on the system." >&5 33280$as_echo "$as_me: WARNING: Possible conflicting libevent.so libraries detected on the system." >&2;} 33281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 33282$as_echo "$as_me: WARNING: " >&2;} 33283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&5 33284$as_echo "$as_me: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&2;} 33285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path. It is possible that you have installed Libevent" >&5 33286$as_echo "$as_me: WARNING: library path. It is possible that you have installed Libevent" >&2;} 33287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the system, but the linker is picking up the wrong version." >&5 33288$as_echo "$as_me: WARNING: on the system, but the linker is picking up the wrong version." >&2;} 33289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 33290$as_echo "$as_me: WARNING: " >&2;} 33291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need to address this linker path issue. One way to do so is" >&5 33292$as_echo "$as_me: WARNING: You will need to address this linker path issue. One way to do so is" >&2;} 33293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to make sure the libevent system library path occurs before the" >&5 33294$as_echo "$as_me: WARNING: to make sure the libevent system library path occurs before the" >&2;} 33295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF library path." >&5 33296$as_echo "$as_me: WARNING: LSF library path." >&2;} 33297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 33298$as_echo "$as_me: WARNING: ===================================================================" >&2;} 33299 33300fi 33301 33302 fi 33303 33304 # need to add resulting flags to global ones so we can 33305 # test for thread support 33306 if test "$pmix_event_defaults" = "no"; then : 33307 33308 33309 33310 # Is the private index set? If not, set it. 33311 if test "x$pmix_scope_index" = "x"; then 33312 pmix_scope_index=1 33313 fi 33314 33315 # First, check to see if any of these variables are already set. 33316 # This is a simple sanity check to ensure we're not already 33317 # overwriting pre-existing variables (that have a non-empty 33318 # value). It's not a perfect check, but at least it's something. 33319 for pmix_var in pmix_tmp pmix_append; do 33320 pmix_str="pmix_str=\"\$$pmix_var\"" 33321 eval $pmix_str 33322 33323 if test "x$pmix_str" != "x"; then 33324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33325$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 33327$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 33328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 33329$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 33330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33331$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33332 as_fn_error $? "Cannot continue" "$LINENO" 5 33333 fi 33334 done 33335 33336 # Ok, we passed the simple sanity check. Save all these names so 33337 # that we can unset them at the end of the scope. 33338 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 33339 eval $pmix_str 33340 unset pmix_str 33341 33342 env | grep pmix_scope 33343 pmix_scope_index=`expr $pmix_scope_index + 1` 33344 33345 33346 for arg in $pmix_libevent_CPPFLAGS; do 33347 pmix_tmp=`echo $arg | cut -c1-2` 33348 pmix_append=1 33349 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 33350 for val in ${CPPFLAGS}; do 33351 if test "x$val" = "x$arg"; then : 33352 pmix_append=0 33353fi 33354 done 33355fi 33356 if test "$pmix_append" = "1"; then : 33357 if test -z "$CPPFLAGS"; then : 33358 CPPFLAGS=$arg 33359else 33360 CPPFLAGS="$CPPFLAGS $arg" 33361fi 33362fi 33363 done 33364 33365 33366 # Unwind the index 33367 pmix_scope_index=`expr $pmix_scope_index - 1` 33368 pmix_scope_test=`expr $pmix_scope_index \> 0` 33369 if test "$pmix_scope_test" = "0"; then 33370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33371$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33373$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33374 as_fn_error $? "Cannot continue" "$LINENO" 5 33375 fi 33376 33377 # Get the variable names from that index 33378 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33379 eval $pmix_str 33380 33381 # Iterate over all the variables and unset them all 33382 for pmix_var in $pmix_str; do 33383 unset $pmix_var 33384 done 33385 33386 33387 33388 33389 33390 # Is the private index set? If not, set it. 33391 if test "x$pmix_scope_index" = "x"; then 33392 pmix_scope_index=1 33393 fi 33394 33395 # First, check to see if any of these variables are already set. 33396 # This is a simple sanity check to ensure we're not already 33397 # overwriting pre-existing variables (that have a non-empty 33398 # value). It's not a perfect check, but at least it's something. 33399 for pmix_var in pmix_tmp pmix_append; do 33400 pmix_str="pmix_str=\"\$$pmix_var\"" 33401 eval $pmix_str 33402 33403 if test "x$pmix_str" != "x"; then 33404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33405$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 33407$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 33408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 33409$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 33410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33411$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33412 as_fn_error $? "Cannot continue" "$LINENO" 5 33413 fi 33414 done 33415 33416 # Ok, we passed the simple sanity check. Save all these names so 33417 # that we can unset them at the end of the scope. 33418 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 33419 eval $pmix_str 33420 unset pmix_str 33421 33422 env | grep pmix_scope 33423 pmix_scope_index=`expr $pmix_scope_index + 1` 33424 33425 33426 for arg in $pmix_libevent_LDFLAGS; do 33427 pmix_tmp=`echo $arg | cut -c1-2` 33428 pmix_append=1 33429 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 33430 for val in ${LDFLAGS}; do 33431 if test "x$val" = "x$arg"; then : 33432 pmix_append=0 33433fi 33434 done 33435fi 33436 if test "$pmix_append" = "1"; then : 33437 if test -z "$LDFLAGS"; then : 33438 LDFLAGS=$arg 33439else 33440 LDFLAGS="$LDFLAGS $arg" 33441fi 33442fi 33443 done 33444 33445 33446 # Unwind the index 33447 pmix_scope_index=`expr $pmix_scope_index - 1` 33448 pmix_scope_test=`expr $pmix_scope_index \> 0` 33449 if test "$pmix_scope_test" = "0"; then 33450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33451$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33453$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33454 as_fn_error $? "Cannot continue" "$LINENO" 5 33455 fi 33456 33457 # Get the variable names from that index 33458 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33459 eval $pmix_str 33460 33461 # Iterate over all the variables and unset them all 33462 for pmix_var in $pmix_str; do 33463 unset $pmix_var 33464 done 33465 33466 33467fi 33468 33469 33470 33471 # Is the private index set? If not, set it. 33472 if test "x$pmix_scope_index" = "x"; then 33473 pmix_scope_index=1 33474 fi 33475 33476 # First, check to see if any of these variables are already set. 33477 # This is a simple sanity check to ensure we're not already 33478 # overwriting pre-existing variables (that have a non-empty 33479 # value). It's not a perfect check, but at least it's something. 33480 for pmix_var in pmix_tmp pmix_append; do 33481 pmix_str="pmix_str=\"\$$pmix_var\"" 33482 eval $pmix_str 33483 33484 if test "x$pmix_str" != "x"; then 33485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33486$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 33488$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 33489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 33490$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 33491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33492$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33493 as_fn_error $? "Cannot continue" "$LINENO" 5 33494 fi 33495 done 33496 33497 # Ok, we passed the simple sanity check. Save all these names so 33498 # that we can unset them at the end of the scope. 33499 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 33500 eval $pmix_str 33501 unset pmix_str 33502 33503 env | grep pmix_scope 33504 pmix_scope_index=`expr $pmix_scope_index + 1` 33505 33506 33507 for arg in $pmix_libevent_LIBS; do 33508 pmix_tmp=`echo $arg | cut -c1-2` 33509 pmix_append=1 33510 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 33511 for val in ${LIBS}; do 33512 if test "x$val" = "x$arg"; then : 33513 pmix_append=0 33514fi 33515 done 33516fi 33517 if test "$pmix_append" = "1"; then : 33518 if test -z "$LIBS"; then : 33519 LIBS=$arg 33520else 33521 LIBS="$LIBS $arg" 33522fi 33523fi 33524 done 33525 33526 33527 # Unwind the index 33528 pmix_scope_index=`expr $pmix_scope_index - 1` 33529 pmix_scope_test=`expr $pmix_scope_index \> 0` 33530 if test "$pmix_scope_test" = "0"; then 33531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33532$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33534$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33535 as_fn_error $? "Cannot continue" "$LINENO" 5 33536 fi 33537 33538 # Get the variable names from that index 33539 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33540 eval $pmix_str 33541 33542 # Iterate over all the variables and unset them all 33543 for pmix_var in $pmix_str; do 33544 unset $pmix_var 33545 done 33546 33547 33548 33549 if test $pmix_libevent_support -eq 1; then 33550 # Ensure that this libevent has the symbol 33551 # "evthread_set_lock_callbacks", which will only exist if 33552 # libevent was configured with thread support. 33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_set_lock_callbacks in -levent_core" >&5 33554$as_echo_n "checking for evthread_set_lock_callbacks in -levent_core... " >&6; } 33555if ${ac_cv_lib_event_core_evthread_set_lock_callbacks+:} false; then : 33556 $as_echo_n "(cached) " >&6 33557else 33558 ac_check_lib_save_LIBS=$LIBS 33559LIBS="-levent_core $LIBS" 33560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33561/* end confdefs.h. */ 33562 33563/* Override any GCC internal prototype to avoid an error. 33564 Use char because int might match the return type of a GCC 33565 builtin and then its argument prototype would still apply. */ 33566#ifdef __cplusplus 33567extern "C" 33568#endif 33569char evthread_set_lock_callbacks (); 33570int 33571main () 33572{ 33573return evthread_set_lock_callbacks (); 33574 ; 33575 return 0; 33576} 33577_ACEOF 33578if ac_fn_c_try_link "$LINENO"; then : 33579 ac_cv_lib_event_core_evthread_set_lock_callbacks=yes 33580else 33581 ac_cv_lib_event_core_evthread_set_lock_callbacks=no 33582fi 33583rm -f core conftest.err conftest.$ac_objext \ 33584 conftest$ac_exeext conftest.$ac_ext 33585LIBS=$ac_check_lib_save_LIBS 33586fi 33587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_core_evthread_set_lock_callbacks" >&5 33588$as_echo "$ac_cv_lib_event_core_evthread_set_lock_callbacks" >&6; } 33589if test "x$ac_cv_lib_event_core_evthread_set_lock_callbacks" = xyes; then : 33590 cat >>confdefs.h <<_ACEOF 33591#define HAVE_LIBEVENT_CORE 1 33592_ACEOF 33593 33594 LIBS="-levent_core $LIBS" 33595 33596else 33597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libevent does not have thread support" >&5 33598$as_echo "$as_me: WARNING: External libevent does not have thread support" >&2;} 33599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIx requires libevent to be compiled with" >&5 33600$as_echo "$as_me: WARNING: PMIx requires libevent to be compiled with" >&2;} 33601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread support enabled" >&5 33602$as_echo "$as_me: WARNING: thread support enabled" >&2;} 33603 pmix_libevent_support=0 33604fi 33605 33606 fi 33607 if test $pmix_libevent_support -eq 1; then 33608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_use_pthreads in -levent_pthreads" >&5 33609$as_echo_n "checking for evthread_use_pthreads in -levent_pthreads... " >&6; } 33610if ${ac_cv_lib_event_pthreads_evthread_use_pthreads+:} false; then : 33611 $as_echo_n "(cached) " >&6 33612else 33613 ac_check_lib_save_LIBS=$LIBS 33614LIBS="-levent_pthreads $LIBS" 33615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33616/* end confdefs.h. */ 33617 33618/* Override any GCC internal prototype to avoid an error. 33619 Use char because int might match the return type of a GCC 33620 builtin and then its argument prototype would still apply. */ 33621#ifdef __cplusplus 33622extern "C" 33623#endif 33624char evthread_use_pthreads (); 33625int 33626main () 33627{ 33628return evthread_use_pthreads (); 33629 ; 33630 return 0; 33631} 33632_ACEOF 33633if ac_fn_c_try_link "$LINENO"; then : 33634 ac_cv_lib_event_pthreads_evthread_use_pthreads=yes 33635else 33636 ac_cv_lib_event_pthreads_evthread_use_pthreads=no 33637fi 33638rm -f core conftest.err conftest.$ac_objext \ 33639 conftest$ac_exeext conftest.$ac_ext 33640LIBS=$ac_check_lib_save_LIBS 33641fi 33642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_pthreads_evthread_use_pthreads" >&5 33643$as_echo "$ac_cv_lib_event_pthreads_evthread_use_pthreads" >&6; } 33644if test "x$ac_cv_lib_event_pthreads_evthread_use_pthreads" = xyes; then : 33645 cat >>confdefs.h <<_ACEOF 33646#define HAVE_LIBEVENT_PTHREADS 1 33647_ACEOF 33648 33649 LIBS="-levent_pthreads $LIBS" 33650 33651else 33652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libevent does not have thread support" >&5 33653$as_echo "$as_me: WARNING: External libevent does not have thread support" >&2;} 33654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIx requires libevent to be compiled with" >&5 33655$as_echo "$as_me: WARNING: PMIx requires libevent to be compiled with" >&2;} 33656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread support enabled" >&5 33657$as_echo "$as_me: WARNING: thread support enabled" >&2;} 33658 pmix_libevent_support=0 33659fi 33660 33661 fi 33662 fi 33663 33664 CPPFLAGS="$pmix_check_libevent_save_CPPFLAGS" 33665 LDFLAGS="$pmix_check_libevent_save_LDFLAGS" 33666 LIBS="$pmix_check_libevent_save_LIBS" 33667 33668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking will libevent support be built" >&5 33669$as_echo_n "checking will libevent support be built... " >&6; } 33670 if test $pmix_libevent_support -eq 1; then 33671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33672$as_echo "yes" >&6; } 33673 # Set output variables 33674 PMIX_EVENT_HEADER="<event.h>" 33675 PMIX_EVENT2_THREAD_HEADER="<event2/thread.h>" 33676 33677cat >>confdefs.h <<_ACEOF 33678#define PMIX_EVENT_HEADER $PMIX_EVENT_HEADER 33679_ACEOF 33680 33681 pmix_libevent_source=$pmix_event_dir 33682 if test "$pmix_event_defaults" = "no"; then : 33683 33684 33685 33686 # Is the private index set? If not, set it. 33687 if test "x$pmix_scope_index" = "x"; then 33688 pmix_scope_index=1 33689 fi 33690 33691 # First, check to see if any of these variables are already set. 33692 # This is a simple sanity check to ensure we're not already 33693 # overwriting pre-existing variables (that have a non-empty 33694 # value). It's not a perfect check, but at least it's something. 33695 for pmix_var in pmix_tmp pmix_append; do 33696 pmix_str="pmix_str=\"\$$pmix_var\"" 33697 eval $pmix_str 33698 33699 if test "x$pmix_str" != "x"; then 33700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33701$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 33703$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 33704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 33705$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 33706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33707$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33708 as_fn_error $? "Cannot continue" "$LINENO" 5 33709 fi 33710 done 33711 33712 # Ok, we passed the simple sanity check. Save all these names so 33713 # that we can unset them at the end of the scope. 33714 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 33715 eval $pmix_str 33716 unset pmix_str 33717 33718 env | grep pmix_scope 33719 pmix_scope_index=`expr $pmix_scope_index + 1` 33720 33721 33722 for arg in $pmix_libevent_CPPFLAGS; do 33723 pmix_tmp=`echo $arg | cut -c1-2` 33724 pmix_append=1 33725 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 33726 for val in ${PMIX_FINAL_CPPFLAGS}; do 33727 if test "x$val" = "x$arg"; then : 33728 pmix_append=0 33729fi 33730 done 33731fi 33732 if test "$pmix_append" = "1"; then : 33733 if test -z "$PMIX_FINAL_CPPFLAGS"; then : 33734 PMIX_FINAL_CPPFLAGS=$arg 33735else 33736 PMIX_FINAL_CPPFLAGS="$PMIX_FINAL_CPPFLAGS $arg" 33737fi 33738fi 33739 done 33740 33741 33742 # Unwind the index 33743 pmix_scope_index=`expr $pmix_scope_index - 1` 33744 pmix_scope_test=`expr $pmix_scope_index \> 0` 33745 if test "$pmix_scope_test" = "0"; then 33746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33747$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33749$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33750 as_fn_error $? "Cannot continue" "$LINENO" 5 33751 fi 33752 33753 # Get the variable names from that index 33754 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33755 eval $pmix_str 33756 33757 # Iterate over all the variables and unset them all 33758 for pmix_var in $pmix_str; do 33759 unset $pmix_var 33760 done 33761 33762 33763 33764 33765 33766 # Is the private index set? If not, set it. 33767 if test "x$pmix_scope_index" = "x"; then 33768 pmix_scope_index=1 33769 fi 33770 33771 # First, check to see if any of these variables are already set. 33772 # This is a simple sanity check to ensure we're not already 33773 # overwriting pre-existing variables (that have a non-empty 33774 # value). It's not a perfect check, but at least it's something. 33775 for pmix_var in pmix_tmp pmix_append; do 33776 pmix_str="pmix_str=\"\$$pmix_var\"" 33777 eval $pmix_str 33778 33779 if test "x$pmix_str" != "x"; then 33780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33781$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 33783$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 33784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 33785$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 33786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33787$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33788 as_fn_error $? "Cannot continue" "$LINENO" 5 33789 fi 33790 done 33791 33792 # Ok, we passed the simple sanity check. Save all these names so 33793 # that we can unset them at the end of the scope. 33794 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 33795 eval $pmix_str 33796 unset pmix_str 33797 33798 env | grep pmix_scope 33799 pmix_scope_index=`expr $pmix_scope_index + 1` 33800 33801 33802 for arg in $pmix_libevent_LDFLAGS; do 33803 pmix_tmp=`echo $arg | cut -c1-2` 33804 pmix_append=1 33805 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 33806 for val in ${PMIX_FINAL_LDFLAGS}; do 33807 if test "x$val" = "x$arg"; then : 33808 pmix_append=0 33809fi 33810 done 33811fi 33812 if test "$pmix_append" = "1"; then : 33813 if test -z "$PMIX_FINAL_LDFLAGS"; then : 33814 PMIX_FINAL_LDFLAGS=$arg 33815else 33816 PMIX_FINAL_LDFLAGS="$PMIX_FINAL_LDFLAGS $arg" 33817fi 33818fi 33819 done 33820 33821 33822 # Unwind the index 33823 pmix_scope_index=`expr $pmix_scope_index - 1` 33824 pmix_scope_test=`expr $pmix_scope_index \> 0` 33825 if test "$pmix_scope_test" = "0"; then 33826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33827$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33829$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33830 as_fn_error $? "Cannot continue" "$LINENO" 5 33831 fi 33832 33833 # Get the variable names from that index 33834 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33835 eval $pmix_str 33836 33837 # Iterate over all the variables and unset them all 33838 for pmix_var in $pmix_str; do 33839 unset $pmix_var 33840 done 33841 33842 33843fi 33844 33845 33846 33847 # Is the private index set? If not, set it. 33848 if test "x$pmix_scope_index" = "x"; then 33849 pmix_scope_index=1 33850 fi 33851 33852 # First, check to see if any of these variables are already set. 33853 # This is a simple sanity check to ensure we're not already 33854 # overwriting pre-existing variables (that have a non-empty 33855 # value). It's not a perfect check, but at least it's something. 33856 for pmix_var in pmix_tmp pmix_append; do 33857 pmix_str="pmix_str=\"\$$pmix_var\"" 33858 eval $pmix_str 33859 33860 if test "x$pmix_str" != "x"; then 33861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33862$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 33864$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 33865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 33866$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 33867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33868$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33869 as_fn_error $? "Cannot continue" "$LINENO" 5 33870 fi 33871 done 33872 33873 # Ok, we passed the simple sanity check. Save all these names so 33874 # that we can unset them at the end of the scope. 33875 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 33876 eval $pmix_str 33877 unset pmix_str 33878 33879 env | grep pmix_scope 33880 pmix_scope_index=`expr $pmix_scope_index + 1` 33881 33882 33883 for arg in $pmix_libevent_LIBS; do 33884 pmix_tmp=`echo $arg | cut -c1-2` 33885 pmix_append=1 33886 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 33887 for val in ${PMIX_FINAL_LIBS}; do 33888 if test "x$val" = "x$arg"; then : 33889 pmix_append=0 33890fi 33891 done 33892fi 33893 if test "$pmix_append" = "1"; then : 33894 if test -z "$PMIX_FINAL_LIBS"; then : 33895 PMIX_FINAL_LIBS=$arg 33896else 33897 PMIX_FINAL_LIBS="$PMIX_FINAL_LIBS $arg" 33898fi 33899fi 33900 done 33901 33902 33903 # Unwind the index 33904 pmix_scope_index=`expr $pmix_scope_index - 1` 33905 pmix_scope_test=`expr $pmix_scope_index \> 0` 33906 if test "$pmix_scope_test" = "0"; then 33907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33908$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33910$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33911 as_fn_error $? "Cannot continue" "$LINENO" 5 33912 fi 33913 33914 # Get the variable names from that index 33915 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33916 eval $pmix_str 33917 33918 # Iterate over all the variables and unset them all 33919 for pmix_var in $pmix_str; do 33920 unset $pmix_var 33921 done 33922 33923 33924 else 33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33926$as_echo "no" >&6; } 33927 fi 33928 33929 33930cat >>confdefs.h <<_ACEOF 33931#define PMIX_HAVE_LIBEVENT $pmix_libevent_support 33932_ACEOF 33933 33934 33935 33936 # Unwind the index 33937 pmix_scope_index=`expr $pmix_scope_index - 1` 33938 pmix_scope_test=`expr $pmix_scope_index \> 0` 33939 if test "$pmix_scope_test" = "0"; then 33940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 33941$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 33942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 33943$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 33944 as_fn_error $? "Cannot continue" "$LINENO" 5 33945 fi 33946 33947 # Get the variable names from that index 33948 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 33949 eval $pmix_str 33950 33951 # Iterate over all the variables and unset them all 33952 for pmix_var in $pmix_str; do 33953 unset $pmix_var 33954 done 33955 33956 33957fi 33958fi 33959 33960 if test $pmix_libevent_support -eq 1; then 33961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libevent header" >&5 33962$as_echo_n "checking libevent header... " >&6; } 33963 33964cat >>confdefs.h <<_ACEOF 33965#define PMIX_EVENT_HEADER $PMIX_EVENT_HEADER 33966_ACEOF 33967 33968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_EVENT_HEADER" >&5 33969$as_echo "$PMIX_EVENT_HEADER" >&6; } 33970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libevent2/thread header" >&5 33971$as_echo_n "checking libevent2/thread header... " >&6; } 33972 33973cat >>confdefs.h <<_ACEOF 33974#define PMIX_EVENT2_THREAD_HEADER $PMIX_EVENT2_THREAD_HEADER 33975_ACEOF 33976 33977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_EVENT2_THREAD_HEADER" >&5 33978$as_echo "$PMIX_EVENT2_THREAD_HEADER" >&6; } 33979 33980 33981 33982 33983 # Is the private index set? If not, set it. 33984 if test "x$pmix_scope_index" = "x"; then 33985 pmix_scope_index=1 33986 fi 33987 33988 # First, check to see if any of these variables are already set. 33989 # This is a simple sanity check to ensure we're not already 33990 # overwriting pre-existing variables (that have a non-empty 33991 # value). It's not a perfect check, but at least it's something. 33992 for pmix_var in pmix_summary_section pmix_summary_line pmix_summary_section_current; do 33993 pmix_str="pmix_str=\"\$$pmix_var\"" 33994 eval $pmix_str 33995 33996 if test "x$pmix_str" != "x"; then 33997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 33998$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 33999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 34000$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 34001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 34002$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 34003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34004$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34005 as_fn_error $? "Cannot continue" "$LINENO" 5 34006 fi 34007 done 34008 34009 # Ok, we passed the simple sanity check. Save all these names so 34010 # that we can unset them at the end of the scope. 34011 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_line pmix_summary_section_current\"" 34012 eval $pmix_str 34013 unset pmix_str 34014 34015 env | grep pmix_scope 34016 pmix_scope_index=`expr $pmix_scope_index + 1` 34017 34018 34019 pmix_summary_section=$(echo External Packages | tr ' ' '_') 34020 pmix_summary_line="Libevent: yes ($pmix_libevent_source)" 34021 pmix_summary_section_current=$(eval echo \$pmix_summary_values_$pmix_summary_section) 34022 34023 if test -z "$pmix_summary_section_current" ; then 34024 if test -z "$pmix_summary_sections" ; then 34025 pmix_summary_sections=$pmix_summary_section 34026 else 34027 pmix_summary_sections="$pmix_summary_sections $pmix_summary_section" 34028 fi 34029 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_line\" 34030 else 34031 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_section_current,$pmix_summary_line\" 34032 fi 34033 34034 34035 # Unwind the index 34036 pmix_scope_index=`expr $pmix_scope_index - 1` 34037 pmix_scope_test=`expr $pmix_scope_index \> 0` 34038 if test "$pmix_scope_test" = "0"; then 34039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 34040$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 34041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34042$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34043 as_fn_error $? "Cannot continue" "$LINENO" 5 34044 fi 34045 34046 # Get the variable names from that index 34047 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 34048 eval $pmix_str 34049 34050 # Iterate over all the variables and unset them all 34051 for pmix_var in $pmix_str; do 34052 unset $pmix_var 34053 done 34054 34055 34056 fi 34057 34058 34059 if test $pmix_libevent_support -eq 1 && test $pmix_libev_support -eq 1; then : 34060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both libevent and libev support have been specified." >&5 34061$as_echo "$as_me: WARNING: Both libevent and libev support have been specified." >&2;} 34062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only one can be configured against at a time. Please" >&5 34063$as_echo "$as_me: WARNING: Only one can be configured against at a time. Please" >&2;} 34064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: remove one from the configure command line." >&5 34065$as_echo "$as_me: WARNING: remove one from the configure command line." >&2;} 34066 as_fn_error $? "Cannot continue" "$LINENO" 5 34067fi 34068 34069 if test $pmix_libevent_support -eq 0 && test $pmix_libev_support -eq 0; then : 34070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Either libevent or libev support is required, but neither" >&5 34071$as_echo "$as_me: WARNING: Either libevent or libev support is required, but neither" >&2;} 34072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: was found. Please use the configure options to point us" >&5 34073$as_echo "$as_me: WARNING: was found. Please use the configure options to point us" >&2;} 34074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to where we can find one or the other library" >&5 34075$as_echo "$as_me: WARNING: to where we can find one or the other library" >&2;} 34076 as_fn_error $? "Cannot continue" "$LINENO" 5 34077fi 34078 34079 34080 ################################## 34081 # HWLOC 34082 ################################## 34083 pmix_show_title "HWLOC" 34084 34085 34086 34087# Check whether --with-hwloc-header was given. 34088if test "${with_hwloc_header+set}" = set; then : 34089 withval=$with_hwloc_header; 34090fi 34091 34092 34093 if test "$pmix_mode" = "embedded"; then : 34094 34095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc" >&5 34096$as_echo_n "checking for hwloc... " >&6; } 34097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed available (embedded mode)" >&5 34098$as_echo "assumed available (embedded mode)" >&6; } 34099 34100 if test -z "$with_hwloc_header" || test "$with_hwloc_header" = "yes"; then : 34101 PMIX_HWLOC_HEADER="<hwloc.h>" 34102else 34103 PMIX_HWLOC_HEADER="$with_hwloc_header" 34104fi 34105 34106 pmix_hwloc_support=1 34107 pmix_hwloc_source=embedded 34108 pmix_hwloc_support_will_build=yes 34109 34110else 34111 34112 34113 34114 # Is the private index set? If not, set it. 34115 if test "x$pmix_scope_index" = "x"; then 34116 pmix_scope_index=1 34117 fi 34118 34119 # First, check to see if any of these variables are already set. 34120 # This is a simple sanity check to ensure we're not already 34121 # overwriting pre-existing variables (that have a non-empty 34122 # value). It's not a perfect check, but at least it's something. 34123 for pmix_var in pmix_hwloc_dir pmix_hwloc_libdir pmix_hwloc_standard_lib_location pmix_hwloc_standard_header_location pmix_check_hwloc_save_CPPFLAGS pmix_check_hwloc_save_LDFLAGS pmix_check_hwloc_save_LIBS; do 34124 pmix_str="pmix_str=\"\$$pmix_var\"" 34125 eval $pmix_str 34126 34127 if test "x$pmix_str" != "x"; then 34128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 34129$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 34130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 34131$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 34132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 34133$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 34134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34135$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34136 as_fn_error $? "Cannot continue" "$LINENO" 5 34137 fi 34138 done 34139 34140 # Ok, we passed the simple sanity check. Save all these names so 34141 # that we can unset them at the end of the scope. 34142 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_hwloc_dir pmix_hwloc_libdir pmix_hwloc_standard_lib_location pmix_hwloc_standard_header_location pmix_check_hwloc_save_CPPFLAGS pmix_check_hwloc_save_LDFLAGS pmix_check_hwloc_save_LIBS\"" 34143 eval $pmix_str 34144 unset pmix_str 34145 34146 env | grep pmix_scope 34147 pmix_scope_index=`expr $pmix_scope_index + 1` 34148 34149 34150 34151# Check whether --with-hwloc was given. 34152if test "${with_hwloc+set}" = set; then : 34153 withval=$with_hwloc; 34154fi 34155 34156 34157 34158# Check whether --with-hwloc-libdir was given. 34159if test "${with_hwloc_libdir+set}" = set; then : 34160 withval=$with_hwloc_libdir; 34161fi 34162 34163 34164 pmix_hwloc_support=0 34165 pmix_check_hwloc_save_CPPFLAGS="$CPPFLAGS" 34166 pmix_check_hwloc_save_LDFLAGS="$LDFLAGS" 34167 pmix_check_hwloc_save_LIBS="$LIBS" 34168 pmix_hwloc_standard_header_location=yes 34169 pmix_hwloc_standard_lib_location=yes 34170 34171 if test "$with_hwloc" = "internal" || test "$with_hwloc" = "external"; then : 34172 with_hwloc= 34173fi 34174 34175 if test "$with_hwloc" != "no"; then 34176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc in" >&5 34177$as_echo_n "checking for hwloc in... " >&6; } 34178 if test ! -z "$with_hwloc" && test "$with_hwloc" != "yes"; then 34179 pmix_hwloc_dir=$with_hwloc/include 34180 pmix_hwloc_standard_header_location=no 34181 pmix_hwloc_standard_lib_location=no 34182 if test -z "$with_hwloc_libdir" || test "$with_hwloc_libdir" = "yes"; then : 34183 if test -d $with_hwloc/lib; then 34184 pmix_hwloc_libdir=$with_hwloc/lib 34185 elif test -d $with_hwloc/lib64; then 34186 pmix_hwloc_libdir=$with_hwloc/lib64 34187 else 34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_hwloc/lib or $with_hwloc/lib64" >&5 34189$as_echo "Could not find $with_hwloc/lib or $with_hwloc/lib64" >&6; } 34190 as_fn_error $? "Can not continue" "$LINENO" 5 34191 fi 34192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_hwloc_dir and $pmix_hwloc_libdir" >&5 34193$as_echo "$pmix_hwloc_dir and $pmix_hwloc_libdir" >&6; } 34194else 34195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_hwloc_libdir" >&5 34196$as_echo "$with_hwloc_libdir" >&6; } 34197fi 34198 else 34199 pmix_hwloc_dir=/usr/include 34200 if test -d /usr/lib; then 34201 pmix_hwloc_libdir=/usr/lib 34202 elif test -d /usr/lib64; then 34203 pmix_hwloc_libdir=/usr/lib64 34204 else 34205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34206$as_echo "not found" >&6; } 34207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find /usr/lib or /usr/lib64 - you may" >&5 34208$as_echo "$as_me: WARNING: Could not find /usr/lib or /usr/lib64 - you may" >&2;} 34209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: need to specify --with-hwloc_libdir=<path>" >&5 34210$as_echo "$as_me: WARNING: need to specify --with-hwloc_libdir=<path>" >&2;} 34211 as_fn_error $? "Can not continue" "$LINENO" 5 34212 fi 34213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 34214$as_echo "(default search paths)" >&6; } 34215 pmix_hwloc_standard_header_location=yes 34216 pmix_hwloc_standard_lib_location=yes 34217 fi 34218 if test ! -z "$with_hwloc_libdir" && test "$with_hwloc_libdir" != "yes"; then : 34219 pmix_hwloc_libdir="$with_hwloc_libdir" 34220 pmix_hwloc_standard_lib_location=no 34221fi 34222 34223 34224 pmix_check_package_pmix_hwloc_save_CPPFLAGS="$CPPFLAGS" 34225 pmix_check_package_pmix_hwloc_save_LDFLAGS="$LDFLAGS" 34226 pmix_check_package_pmix_hwloc_save_LIBS="$LIBS" 34227 34228 pmix_check_package_pmix_hwloc_orig_CPPFLAGS="$pmix_hwloc_CPPFLAGS" 34229 pmix_check_package_pmix_hwloc_orig_LDFLAGS="$pmix_hwloc_LDFLAGS" 34230 pmix_check_package_pmix_hwloc_orig_LIBS="$pmix_hwloc_LIBS" 34231 34232 34233 # This is stolen from autoconf to peek under the covers to get the 34234 # cache variable for the library check. one should not copy this 34235 # code into other places unless you want much pain and suffering 34236 34237 34238 # so this sucks, but there's no way to get through the progression 34239 # of header includes without killing off the cache variable and trying 34240 # again... 34241 unset ac_cv_header_hwloc_h 34242 pmix_check_package_header_happy="no" 34243 34244 # get rid of the trailing slash(es) 34245 hdir_prefix=$(echo $pmix_hwloc_dir | sed -e 'sX/*$XXg') 34246 34247 if test "$hdir_prefix" = "" || \ 34248 test "$hdir_prefix" = "/usr" || \ 34249 test "$hdir_prefix" = "/usr/local"; then : 34250 # try as is... 34251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 34252$as_echo "looking for header without includes" >&6; } 34253 for ac_header in hwloc.h 34254do : 34255 ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" 34256if test "x$ac_cv_header_hwloc_h" = xyes; then : 34257 cat >>confdefs.h <<_ACEOF 34258#define HAVE_HWLOC_H 1 34259_ACEOF 34260 pmix_check_package_header_happy="yes" 34261fi 34262 34263done 34264 34265 if test "$pmix_check_package_header_happy" = "no"; then : 34266 # no go on the as is - reset the cache and try again 34267 unset ac_cv_header_hwloc_h 34268fi 34269fi 34270 34271 if test "$pmix_check_package_header_happy" = "no"; then : 34272 if test "$hdir_prefix" != ""; then : 34273 pmix_hwloc_CPPFLAGS="$pmix_hwloc_CPPFLAGS -I$hdir_prefix" 34274 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 34275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 34276$as_echo "looking for header in $hdir_prefix" >&6; } 34277 for ac_header in hwloc.h 34278do : 34279 ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" 34280if test "x$ac_cv_header_hwloc_h" = xyes; then : 34281 cat >>confdefs.h <<_ACEOF 34282#define HAVE_HWLOC_H 1 34283_ACEOF 34284 pmix_check_package_header_happy="yes" 34285fi 34286 34287done 34288 34289 if test "$pmix_check_package_header_happy" = "no"; then : 34290 unset ac_cv_header_hwloc_h 34291 pmix_hwloc_CPPFLAGS="$pmix_hwloc_CPPFLAGS -I$hdir_prefix/include" 34292 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 34293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 34294$as_echo "looking for header in $hdir_prefix/include" >&6; } 34295 for ac_header in hwloc.h 34296do : 34297 ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" 34298if test "x$ac_cv_header_hwloc_h" = xyes; then : 34299 cat >>confdefs.h <<_ACEOF 34300#define HAVE_HWLOC_H 1 34301_ACEOF 34302 pmix_check_package_header_happy="yes" 34303fi 34304 34305done 34306 34307fi 34308fi 34309fi 34310 34311 if test "$pmix_check_package_header_happy" = "yes"; then : 34312 34313 # This is stolen from autoconf to peek under the covers to get the 34314 # cache variable for the library check. one should not copy this 34315 # code into other places unless you want much pain and suffering 34316 34317 # see comment above 34318 unset ac_cv_lib_hwloc_hwloc_topology_init 34319 pmix_check_package_lib_happy="no" 34320 34321 # get rid of the trailing slash(es) 34322 libdir_prefix=$(echo $pmix_hwloc_libdir | sed -e 'sX/*$XXg') 34323 34324 if test "$libdir_prefix" != ""; then : 34325 # libdir was specified - search only there 34326 pmix_hwloc_LDFLAGS="$pmix_hwloc_LDFLAGS -L$libdir_prefix" 34327 LDFLAGS="$LDFLAGS -L$libdir_prefix" 34328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hwloc_topology_init" >&5 34329$as_echo_n "checking for library containing hwloc_topology_init... " >&6; } 34330if ${ac_cv_search_hwloc_topology_init+:} false; then : 34331 $as_echo_n "(cached) " >&6 34332else 34333 ac_func_search_save_LIBS=$LIBS 34334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34335/* end confdefs.h. */ 34336 34337/* Override any GCC internal prototype to avoid an error. 34338 Use char because int might match the return type of a GCC 34339 builtin and then its argument prototype would still apply. */ 34340#ifdef __cplusplus 34341extern "C" 34342#endif 34343char hwloc_topology_init (); 34344int 34345main () 34346{ 34347return hwloc_topology_init (); 34348 ; 34349 return 0; 34350} 34351_ACEOF 34352for ac_lib in '' hwloc; do 34353 if test -z "$ac_lib"; then 34354 ac_res="none required" 34355 else 34356 ac_res=-l$ac_lib 34357 LIBS="-l$ac_lib -lhwloc $ac_func_search_save_LIBS" 34358 fi 34359 if ac_fn_c_try_link "$LINENO"; then : 34360 ac_cv_search_hwloc_topology_init=$ac_res 34361fi 34362rm -f core conftest.err conftest.$ac_objext \ 34363 conftest$ac_exeext 34364 if ${ac_cv_search_hwloc_topology_init+:} false; then : 34365 break 34366fi 34367done 34368if ${ac_cv_search_hwloc_topology_init+:} false; then : 34369 34370else 34371 ac_cv_search_hwloc_topology_init=no 34372fi 34373rm conftest.$ac_ext 34374LIBS=$ac_func_search_save_LIBS 34375fi 34376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 34377$as_echo "$ac_cv_search_hwloc_topology_init" >&6; } 34378ac_res=$ac_cv_search_hwloc_topology_init 34379if test "$ac_res" != no; then : 34380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 34381 pmix_check_package_lib_happy="yes" 34382else 34383 pmix_check_package_lib_happy="no" 34384fi 34385 34386 if test "$pmix_check_package_lib_happy" = "no"; then : 34387 LDFLAGS="$pmix_check_package_pmix_hwloc_save_LDFLAGS" 34388 pmix_hwloc_LDFLAGS="$pmix_check_package_pmix_hwloc_orig_LDFLAGS" 34389 unset ac_cv_lib_hwloc_hwloc_topology_init 34390fi 34391else 34392 # libdir was not specified - go through search path 34393 # get rid of the trailing slash(es) 34394 libdir_prefix=$(echo $pmix_hwloc_dir | sed -e 'sX/*$XXg') 34395 34396 # first try standard locations as otherwise our 34397 # searches with libdir_prefix locations might come 34398 # back positive and unnecessarily add an LDFLAG 34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 34400$as_echo "looking for library without search path" >&6; } 34401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hwloc_topology_init" >&5 34402$as_echo_n "checking for library containing hwloc_topology_init... " >&6; } 34403if ${ac_cv_search_hwloc_topology_init+:} false; then : 34404 $as_echo_n "(cached) " >&6 34405else 34406 ac_func_search_save_LIBS=$LIBS 34407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34408/* end confdefs.h. */ 34409 34410/* Override any GCC internal prototype to avoid an error. 34411 Use char because int might match the return type of a GCC 34412 builtin and then its argument prototype would still apply. */ 34413#ifdef __cplusplus 34414extern "C" 34415#endif 34416char hwloc_topology_init (); 34417int 34418main () 34419{ 34420return hwloc_topology_init (); 34421 ; 34422 return 0; 34423} 34424_ACEOF 34425for ac_lib in '' hwloc; do 34426 if test -z "$ac_lib"; then 34427 ac_res="none required" 34428 else 34429 ac_res=-l$ac_lib 34430 LIBS="-l$ac_lib -lhwloc $ac_func_search_save_LIBS" 34431 fi 34432 if ac_fn_c_try_link "$LINENO"; then : 34433 ac_cv_search_hwloc_topology_init=$ac_res 34434fi 34435rm -f core conftest.err conftest.$ac_objext \ 34436 conftest$ac_exeext 34437 if ${ac_cv_search_hwloc_topology_init+:} false; then : 34438 break 34439fi 34440done 34441if ${ac_cv_search_hwloc_topology_init+:} false; then : 34442 34443else 34444 ac_cv_search_hwloc_topology_init=no 34445fi 34446rm conftest.$ac_ext 34447LIBS=$ac_func_search_save_LIBS 34448fi 34449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 34450$as_echo "$ac_cv_search_hwloc_topology_init" >&6; } 34451ac_res=$ac_cv_search_hwloc_topology_init 34452if test "$ac_res" != no; then : 34453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 34454 pmix_check_package_lib_happy="yes" 34455else 34456 pmix_check_package_lib_happy="no" 34457fi 34458 34459 if test "$pmix_check_package_lib_happy" = "no"; then : 34460 # no go on the as is.. see what happens later... 34461 LDFLAGS="$pmix_check_package_pmix_hwloc_save_LDFLAGS" 34462 pmix_hwloc_LDFLAGS="$pmix_check_package_pmix_hwloc_orig_LDFLAGS" 34463 unset ac_cv_lib_hwloc_hwloc_topology_init 34464fi 34465 34466 if test "$pmix_check_package_lib_happy" = "no"; then : 34467 # if we didn't find it, check the libdir_prefix/lib64 directory 34468 if test "$libdir_prefix" != "" && \ 34469 test "$libdir_prefix" != "/usr" && \ 34470 test "$libdir_prefix" != "/usr/local"; then : 34471 pmix_hwloc_LDFLAGS="$pmix_hwloc_LDFLAGS -L$libdir_prefix/lib64" 34472 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 34473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 34474$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 34475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hwloc_topology_init" >&5 34476$as_echo_n "checking for library containing hwloc_topology_init... " >&6; } 34477if ${ac_cv_search_hwloc_topology_init+:} false; then : 34478 $as_echo_n "(cached) " >&6 34479else 34480 ac_func_search_save_LIBS=$LIBS 34481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34482/* end confdefs.h. */ 34483 34484/* Override any GCC internal prototype to avoid an error. 34485 Use char because int might match the return type of a GCC 34486 builtin and then its argument prototype would still apply. */ 34487#ifdef __cplusplus 34488extern "C" 34489#endif 34490char hwloc_topology_init (); 34491int 34492main () 34493{ 34494return hwloc_topology_init (); 34495 ; 34496 return 0; 34497} 34498_ACEOF 34499for ac_lib in '' hwloc; do 34500 if test -z "$ac_lib"; then 34501 ac_res="none required" 34502 else 34503 ac_res=-l$ac_lib 34504 LIBS="-l$ac_lib -lhwloc $ac_func_search_save_LIBS" 34505 fi 34506 if ac_fn_c_try_link "$LINENO"; then : 34507 ac_cv_search_hwloc_topology_init=$ac_res 34508fi 34509rm -f core conftest.err conftest.$ac_objext \ 34510 conftest$ac_exeext 34511 if ${ac_cv_search_hwloc_topology_init+:} false; then : 34512 break 34513fi 34514done 34515if ${ac_cv_search_hwloc_topology_init+:} false; then : 34516 34517else 34518 ac_cv_search_hwloc_topology_init=no 34519fi 34520rm conftest.$ac_ext 34521LIBS=$ac_func_search_save_LIBS 34522fi 34523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 34524$as_echo "$ac_cv_search_hwloc_topology_init" >&6; } 34525ac_res=$ac_cv_search_hwloc_topology_init 34526if test "$ac_res" != no; then : 34527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 34528 pmix_check_package_lib_happy="yes" 34529else 34530 pmix_check_package_lib_happy="no" 34531fi 34532 34533 if test "$pmix_check_package_lib_happy" = "no"; then : 34534 # no go on the as is.. see what happens later... 34535 LDFLAGS="$pmix_check_package_pmix_hwloc_save_LDFLAGS" 34536 pmix_hwloc_LDFLAGS="$pmix_check_package_pmix_hwloc_orig_LDFLAGS" 34537 unset ac_cv_lib_hwloc_hwloc_topology_init 34538fi 34539fi 34540fi 34541 34542 if test "$pmix_check_package_lib_happy" = "no"; then : 34543 # if we still haven't found it, check the libdir_prefix/lib directory 34544 if test "$libdir_prefix" != "" && \ 34545 test "$libdir_prefix" != "/usr" && \ 34546 test "$libdir_prefix" != "/usr/local"; then : 34547 pmix_hwloc_LDFLAGS="$pmix_hwloc_LDFLAGS -L$libdir_prefix/lib" 34548 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 34549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 34550$as_echo "looking for library in $libdir_prefix/lib" >&6; } 34551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hwloc_topology_init" >&5 34552$as_echo_n "checking for library containing hwloc_topology_init... " >&6; } 34553if ${ac_cv_search_hwloc_topology_init+:} false; then : 34554 $as_echo_n "(cached) " >&6 34555else 34556 ac_func_search_save_LIBS=$LIBS 34557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34558/* end confdefs.h. */ 34559 34560/* Override any GCC internal prototype to avoid an error. 34561 Use char because int might match the return type of a GCC 34562 builtin and then its argument prototype would still apply. */ 34563#ifdef __cplusplus 34564extern "C" 34565#endif 34566char hwloc_topology_init (); 34567int 34568main () 34569{ 34570return hwloc_topology_init (); 34571 ; 34572 return 0; 34573} 34574_ACEOF 34575for ac_lib in '' hwloc; do 34576 if test -z "$ac_lib"; then 34577 ac_res="none required" 34578 else 34579 ac_res=-l$ac_lib 34580 LIBS="-l$ac_lib -lhwloc $ac_func_search_save_LIBS" 34581 fi 34582 if ac_fn_c_try_link "$LINENO"; then : 34583 ac_cv_search_hwloc_topology_init=$ac_res 34584fi 34585rm -f core conftest.err conftest.$ac_objext \ 34586 conftest$ac_exeext 34587 if ${ac_cv_search_hwloc_topology_init+:} false; then : 34588 break 34589fi 34590done 34591if ${ac_cv_search_hwloc_topology_init+:} false; then : 34592 34593else 34594 ac_cv_search_hwloc_topology_init=no 34595fi 34596rm conftest.$ac_ext 34597LIBS=$ac_func_search_save_LIBS 34598fi 34599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 34600$as_echo "$ac_cv_search_hwloc_topology_init" >&6; } 34601ac_res=$ac_cv_search_hwloc_topology_init 34602if test "$ac_res" != no; then : 34603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 34604 pmix_check_package_lib_happy="yes" 34605else 34606 pmix_check_package_lib_happy="no" 34607fi 34608 34609 if test "$pmix_check_package_lib_happy" = "no"; then : 34610 # no go on the as is.. see what happens later... 34611 LDFLAGS="$pmix_check_package_pmix_hwloc_save_LDFLAGS" 34612 pmix_hwloc_LDFLAGS="$pmix_check_package_pmix_hwloc_orig_LDFLAGS" 34613 unset ac_cv_lib_hwloc_hwloc_topology_init 34614fi 34615fi 34616fi 34617 34618fi 34619 34620 34621 if test "$pmix_check_package_lib_happy" = "yes"; then : 34622 pmix_hwloc_LIBS="-lhwloc -lhwloc" 34623 pmix_check_package_happy="yes" 34624else 34625 pmix_check_package_happy="no" 34626fi 34627 if test "$pmix_check_package_lib_happy" = "yes"; then : 34628 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 34629 if test "$ac_cv_search_hwloc_topology_init" != "no" && 34630 test "$ac_cv_search_hwloc_topology_init" != "none required"; then : 34631 pmix_hwloc_LIBS="$ac_cv_search_hwloc_topology_init -lhwloc" 34632else 34633 pmix_hwloc_LIBS="-lhwloc" 34634fi 34635 pmix_check_package_happy="yes" 34636else 34637 pmix_check_package_happy="no" 34638fi 34639 34640 34641else 34642 pmix_check_package_happy="no" 34643fi 34644 34645 unset pmix_check_package_header_happy 34646 34647 34648 34649 if test "$pmix_check_package_happy" = "yes"; then : 34650 pmix_hwloc_support=1 34651else 34652 pmix_hwloc_CPPFLAGS="$pmix_check_package_pmix_hwloc_orig_CPPFLAGS" 34653 pmix_hwloc_LDFLAGS="$pmix_check_package_pmix_hwloc_orig_LDFLAGS" 34654 pmix_hwloc_LIBS="$pmix_check_package_pmix_hwloc_orig_LIBS" 34655 pmix_hwloc_support=0 34656fi 34657 34658 CPPFLAGS="$pmix_check_package_pmix_hwloc_save_CPPFLAGS" 34659 LDFLAGS="$pmix_check_package_pmix_hwloc_save_LDFLAGS" 34660 LIBS="$pmix_check_package_pmix_hwloc_save_LIBS" 34661 34662 34663 if test "$pmix_hwloc_standard_header_location" != "yes"; then : 34664 34665 34666 34667 # Is the private index set? If not, set it. 34668 if test "x$pmix_scope_index" = "x"; then 34669 pmix_scope_index=1 34670 fi 34671 34672 # First, check to see if any of these variables are already set. 34673 # This is a simple sanity check to ensure we're not already 34674 # overwriting pre-existing variables (that have a non-empty 34675 # value). It's not a perfect check, but at least it's something. 34676 for pmix_var in pmix_tmp pmix_append; do 34677 pmix_str="pmix_str=\"\$$pmix_var\"" 34678 eval $pmix_str 34679 34680 if test "x$pmix_str" != "x"; then 34681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 34682$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 34683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 34684$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 34685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 34686$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 34687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34688$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34689 as_fn_error $? "Cannot continue" "$LINENO" 5 34690 fi 34691 done 34692 34693 # Ok, we passed the simple sanity check. Save all these names so 34694 # that we can unset them at the end of the scope. 34695 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 34696 eval $pmix_str 34697 unset pmix_str 34698 34699 env | grep pmix_scope 34700 pmix_scope_index=`expr $pmix_scope_index + 1` 34701 34702 34703 for arg in $pmix_hwloc_CPPFLAGS; do 34704 pmix_tmp=`echo $arg | cut -c1-2` 34705 pmix_append=1 34706 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 34707 for val in ${CPPFLAGS}; do 34708 if test "x$val" = "x$arg"; then : 34709 pmix_append=0 34710fi 34711 done 34712fi 34713 if test "$pmix_append" = "1"; then : 34714 if test -z "$CPPFLAGS"; then : 34715 CPPFLAGS=$arg 34716else 34717 CPPFLAGS="$CPPFLAGS $arg" 34718fi 34719fi 34720 done 34721 34722 34723 # Unwind the index 34724 pmix_scope_index=`expr $pmix_scope_index - 1` 34725 pmix_scope_test=`expr $pmix_scope_index \> 0` 34726 if test "$pmix_scope_test" = "0"; then 34727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 34728$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 34729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34730$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34731 as_fn_error $? "Cannot continue" "$LINENO" 5 34732 fi 34733 34734 # Get the variable names from that index 34735 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 34736 eval $pmix_str 34737 34738 # Iterate over all the variables and unset them all 34739 for pmix_var in $pmix_str; do 34740 unset $pmix_var 34741 done 34742 34743 34744fi 34745 34746 if test "$pmix_hwloc_standard_lib_location" != "yes"; then : 34747 34748 34749 34750 # Is the private index set? If not, set it. 34751 if test "x$pmix_scope_index" = "x"; then 34752 pmix_scope_index=1 34753 fi 34754 34755 # First, check to see if any of these variables are already set. 34756 # This is a simple sanity check to ensure we're not already 34757 # overwriting pre-existing variables (that have a non-empty 34758 # value). It's not a perfect check, but at least it's something. 34759 for pmix_var in pmix_tmp pmix_append; do 34760 pmix_str="pmix_str=\"\$$pmix_var\"" 34761 eval $pmix_str 34762 34763 if test "x$pmix_str" != "x"; then 34764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 34765$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 34766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 34767$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 34768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 34769$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 34770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34771$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34772 as_fn_error $? "Cannot continue" "$LINENO" 5 34773 fi 34774 done 34775 34776 # Ok, we passed the simple sanity check. Save all these names so 34777 # that we can unset them at the end of the scope. 34778 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 34779 eval $pmix_str 34780 unset pmix_str 34781 34782 env | grep pmix_scope 34783 pmix_scope_index=`expr $pmix_scope_index + 1` 34784 34785 34786 for arg in $pmix_hwloc_LDFLAGS; do 34787 pmix_tmp=`echo $arg | cut -c1-2` 34788 pmix_append=1 34789 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 34790 for val in ${LDFLAGS}; do 34791 if test "x$val" = "x$arg"; then : 34792 pmix_append=0 34793fi 34794 done 34795fi 34796 if test "$pmix_append" = "1"; then : 34797 if test -z "$LDFLAGS"; then : 34798 LDFLAGS=$arg 34799else 34800 LDFLAGS="$LDFLAGS $arg" 34801fi 34802fi 34803 done 34804 34805 34806 # Unwind the index 34807 pmix_scope_index=`expr $pmix_scope_index - 1` 34808 pmix_scope_test=`expr $pmix_scope_index \> 0` 34809 if test "$pmix_scope_test" = "0"; then 34810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 34811$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 34812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34813$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34814 as_fn_error $? "Cannot continue" "$LINENO" 5 34815 fi 34816 34817 # Get the variable names from that index 34818 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 34819 eval $pmix_str 34820 34821 # Iterate over all the variables and unset them all 34822 for pmix_var in $pmix_str; do 34823 unset $pmix_var 34824 done 34825 34826 34827fi 34828 34829 34830 34831 # Is the private index set? If not, set it. 34832 if test "x$pmix_scope_index" = "x"; then 34833 pmix_scope_index=1 34834 fi 34835 34836 # First, check to see if any of these variables are already set. 34837 # This is a simple sanity check to ensure we're not already 34838 # overwriting pre-existing variables (that have a non-empty 34839 # value). It's not a perfect check, but at least it's something. 34840 for pmix_var in pmix_tmp pmix_append; do 34841 pmix_str="pmix_str=\"\$$pmix_var\"" 34842 eval $pmix_str 34843 34844 if test "x$pmix_str" != "x"; then 34845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 34846$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 34847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 34848$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 34849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 34850$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 34851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34852$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34853 as_fn_error $? "Cannot continue" "$LINENO" 5 34854 fi 34855 done 34856 34857 # Ok, we passed the simple sanity check. Save all these names so 34858 # that we can unset them at the end of the scope. 34859 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 34860 eval $pmix_str 34861 unset pmix_str 34862 34863 env | grep pmix_scope 34864 pmix_scope_index=`expr $pmix_scope_index + 1` 34865 34866 34867 for arg in $pmix_hwloc_LIBS; do 34868 pmix_tmp=`echo $arg | cut -c1-2` 34869 pmix_append=1 34870 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 34871 for val in ${LIBS}; do 34872 if test "x$val" = "x$arg"; then : 34873 pmix_append=0 34874fi 34875 done 34876fi 34877 if test "$pmix_append" = "1"; then : 34878 if test -z "$LIBS"; then : 34879 LIBS=$arg 34880else 34881 LIBS="$LIBS $arg" 34882fi 34883fi 34884 done 34885 34886 34887 # Unwind the index 34888 pmix_scope_index=`expr $pmix_scope_index - 1` 34889 pmix_scope_test=`expr $pmix_scope_index \> 0` 34890 if test "$pmix_scope_test" = "0"; then 34891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 34892$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 34893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34894$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34895 as_fn_error $? "Cannot continue" "$LINENO" 5 34896 fi 34897 34898 # Get the variable names from that index 34899 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 34900 eval $pmix_str 34901 34902 # Iterate over all the variables and unset them all 34903 for pmix_var in $pmix_str; do 34904 unset $pmix_var 34905 done 34906 34907 34908 fi 34909 34910 if test ! -z "$with_hwloc" && test "$with_hwloc" != "no" && test "$pmix_hwloc_support" != "1"; then 34911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HWLOC SUPPORT REQUESTED AND NOT FOUND" >&5 34912$as_echo "$as_me: WARNING: HWLOC SUPPORT REQUESTED AND NOT FOUND" >&2;} 34913 as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5 34914 fi 34915 34916 if test $pmix_hwloc_support = "1"; then 34917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external hwloc version is 1.5 or greater" >&5 34918$as_echo_n "checking if external hwloc version is 1.5 or greater... " >&6; } 34919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34920/* end confdefs.h. */ 34921#include <hwloc.h> 34922int 34923main () 34924{ 34925 34926 #if HWLOC_API_VERSION < 0x00010500 34927 #error "hwloc API version is less than 0x00010500" 34928 #endif 34929 34930 ; 34931 return 0; 34932} 34933_ACEOF 34934if ac_fn_c_try_compile "$LINENO"; then : 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34936$as_echo "yes" >&6; } 34937else 34938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34939$as_echo "no" >&6; } 34940 as_fn_error $? "Cannot continue" "$LINENO" 5 34941fi 34942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34943 fi 34944 34945 CPPFLAGS=$pmix_check_hwloc_save_CPPFLAGS 34946 LDFLAGS=$pmix_check_hwloc_save_LDFLAGS 34947 LIBS=$pmix_check_hwloc_save_LIBS 34948 34949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking will hwloc support be built" >&5 34950$as_echo_n "checking will hwloc support be built... " >&6; } 34951 if test "$pmix_hwloc_support" != "1"; then 34952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34953$as_echo "no" >&6; } 34954 pmix_hwloc_source=none 34955 pmix_hwloc_support_will_build=no 34956 else 34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34958$as_echo "yes" >&6; } 34959 pmix_hwloc_source=$pmix_hwloc_dir 34960 pmix_hwloc_support_will_build=yes 34961 if test "$pmix_hwloc_standard_header_location" != "yes"; then : 34962 34963 34964 34965 # Is the private index set? If not, set it. 34966 if test "x$pmix_scope_index" = "x"; then 34967 pmix_scope_index=1 34968 fi 34969 34970 # First, check to see if any of these variables are already set. 34971 # This is a simple sanity check to ensure we're not already 34972 # overwriting pre-existing variables (that have a non-empty 34973 # value). It's not a perfect check, but at least it's something. 34974 for pmix_var in pmix_tmp pmix_append; do 34975 pmix_str="pmix_str=\"\$$pmix_var\"" 34976 eval $pmix_str 34977 34978 if test "x$pmix_str" != "x"; then 34979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 34980$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 34981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 34982$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 34983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 34984$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 34985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 34986$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 34987 as_fn_error $? "Cannot continue" "$LINENO" 5 34988 fi 34989 done 34990 34991 # Ok, we passed the simple sanity check. Save all these names so 34992 # that we can unset them at the end of the scope. 34993 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 34994 eval $pmix_str 34995 unset pmix_str 34996 34997 env | grep pmix_scope 34998 pmix_scope_index=`expr $pmix_scope_index + 1` 34999 35000 35001 for arg in $pmix_hwloc_CPPFLAGS; do 35002 pmix_tmp=`echo $arg | cut -c1-2` 35003 pmix_append=1 35004 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 35005 for val in ${PMIX_FINAL_CPPFLAGS}; do 35006 if test "x$val" = "x$arg"; then : 35007 pmix_append=0 35008fi 35009 done 35010fi 35011 if test "$pmix_append" = "1"; then : 35012 if test -z "$PMIX_FINAL_CPPFLAGS"; then : 35013 PMIX_FINAL_CPPFLAGS=$arg 35014else 35015 PMIX_FINAL_CPPFLAGS="$PMIX_FINAL_CPPFLAGS $arg" 35016fi 35017fi 35018 done 35019 35020 35021 # Unwind the index 35022 pmix_scope_index=`expr $pmix_scope_index - 1` 35023 pmix_scope_test=`expr $pmix_scope_index \> 0` 35024 if test "$pmix_scope_test" = "0"; then 35025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 35026$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 35027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35028$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35029 as_fn_error $? "Cannot continue" "$LINENO" 5 35030 fi 35031 35032 # Get the variable names from that index 35033 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 35034 eval $pmix_str 35035 35036 # Iterate over all the variables and unset them all 35037 for pmix_var in $pmix_str; do 35038 unset $pmix_var 35039 done 35040 35041 35042fi 35043 35044 if test "$pmix_hwloc_standard_lib_location" != "yes"; then : 35045 35046 35047 35048 # Is the private index set? If not, set it. 35049 if test "x$pmix_scope_index" = "x"; then 35050 pmix_scope_index=1 35051 fi 35052 35053 # First, check to see if any of these variables are already set. 35054 # This is a simple sanity check to ensure we're not already 35055 # overwriting pre-existing variables (that have a non-empty 35056 # value). It's not a perfect check, but at least it's something. 35057 for pmix_var in pmix_tmp pmix_append; do 35058 pmix_str="pmix_str=\"\$$pmix_var\"" 35059 eval $pmix_str 35060 35061 if test "x$pmix_str" != "x"; then 35062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 35063$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 35064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 35065$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 35066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 35067$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 35068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35069$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35070 as_fn_error $? "Cannot continue" "$LINENO" 5 35071 fi 35072 done 35073 35074 # Ok, we passed the simple sanity check. Save all these names so 35075 # that we can unset them at the end of the scope. 35076 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 35077 eval $pmix_str 35078 unset pmix_str 35079 35080 env | grep pmix_scope 35081 pmix_scope_index=`expr $pmix_scope_index + 1` 35082 35083 35084 for arg in $pmix_hwloc_LDFLAGS; do 35085 pmix_tmp=`echo $arg | cut -c1-2` 35086 pmix_append=1 35087 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 35088 for val in ${PMIX_FINAL_LDFLAGS}; do 35089 if test "x$val" = "x$arg"; then : 35090 pmix_append=0 35091fi 35092 done 35093fi 35094 if test "$pmix_append" = "1"; then : 35095 if test -z "$PMIX_FINAL_LDFLAGS"; then : 35096 PMIX_FINAL_LDFLAGS=$arg 35097else 35098 PMIX_FINAL_LDFLAGS="$PMIX_FINAL_LDFLAGS $arg" 35099fi 35100fi 35101 done 35102 35103 35104 # Unwind the index 35105 pmix_scope_index=`expr $pmix_scope_index - 1` 35106 pmix_scope_test=`expr $pmix_scope_index \> 0` 35107 if test "$pmix_scope_test" = "0"; then 35108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 35109$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 35110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35111$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35112 as_fn_error $? "Cannot continue" "$LINENO" 5 35113 fi 35114 35115 # Get the variable names from that index 35116 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 35117 eval $pmix_str 35118 35119 # Iterate over all the variables and unset them all 35120 for pmix_var in $pmix_str; do 35121 unset $pmix_var 35122 done 35123 35124 35125fi 35126 35127 35128 35129 # Is the private index set? If not, set it. 35130 if test "x$pmix_scope_index" = "x"; then 35131 pmix_scope_index=1 35132 fi 35133 35134 # First, check to see if any of these variables are already set. 35135 # This is a simple sanity check to ensure we're not already 35136 # overwriting pre-existing variables (that have a non-empty 35137 # value). It's not a perfect check, but at least it's something. 35138 for pmix_var in pmix_tmp pmix_append; do 35139 pmix_str="pmix_str=\"\$$pmix_var\"" 35140 eval $pmix_str 35141 35142 if test "x$pmix_str" != "x"; then 35143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 35144$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 35145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 35146$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 35147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 35148$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 35149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35150$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35151 as_fn_error $? "Cannot continue" "$LINENO" 5 35152 fi 35153 done 35154 35155 # Ok, we passed the simple sanity check. Save all these names so 35156 # that we can unset them at the end of the scope. 35157 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\"" 35158 eval $pmix_str 35159 unset pmix_str 35160 35161 env | grep pmix_scope 35162 pmix_scope_index=`expr $pmix_scope_index + 1` 35163 35164 35165 for arg in $pmix_hwloc_LIBS; do 35166 pmix_tmp=`echo $arg | cut -c1-2` 35167 pmix_append=1 35168 if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then : 35169 for val in ${PMIX_FINAL_LIBS}; do 35170 if test "x$val" = "x$arg"; then : 35171 pmix_append=0 35172fi 35173 done 35174fi 35175 if test "$pmix_append" = "1"; then : 35176 if test -z "$PMIX_FINAL_LIBS"; then : 35177 PMIX_FINAL_LIBS=$arg 35178else 35179 PMIX_FINAL_LIBS="$PMIX_FINAL_LIBS $arg" 35180fi 35181fi 35182 done 35183 35184 35185 # Unwind the index 35186 pmix_scope_index=`expr $pmix_scope_index - 1` 35187 pmix_scope_test=`expr $pmix_scope_index \> 0` 35188 if test "$pmix_scope_test" = "0"; then 35189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 35190$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 35191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35192$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35193 as_fn_error $? "Cannot continue" "$LINENO" 5 35194 fi 35195 35196 # Get the variable names from that index 35197 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 35198 eval $pmix_str 35199 35200 # Iterate over all the variables and unset them all 35201 for pmix_var in $pmix_str; do 35202 unset $pmix_var 35203 done 35204 35205 35206 fi 35207 35208 # Set output variables 35209 PMIX_HWLOC_HEADER="<hwloc.h>" 35210 35211 35212 # Unwind the index 35213 pmix_scope_index=`expr $pmix_scope_index - 1` 35214 pmix_scope_test=`expr $pmix_scope_index \> 0` 35215 if test "$pmix_scope_test" = "0"; then 35216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 35217$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 35218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35219$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35220 as_fn_error $? "Cannot continue" "$LINENO" 5 35221 fi 35222 35223 # Get the variable names from that index 35224 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 35225 eval $pmix_str 35226 35227 # Iterate over all the variables and unset them all 35228 for pmix_var in $pmix_str; do 35229 unset $pmix_var 35230 done 35231 35232 35233fi 35234 35235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking hwloc header" >&5 35236$as_echo_n "checking hwloc header... " >&6; } 35237 35238cat >>confdefs.h <<_ACEOF 35239#define PMIX_HWLOC_HEADER $PMIX_HWLOC_HEADER 35240_ACEOF 35241 35242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_HWLOC_HEADER" >&5 35243$as_echo "$PMIX_HWLOC_HEADER" >&6; } 35244 35245 35246cat >>confdefs.h <<_ACEOF 35247#define PMIX_HAVE_HWLOC $pmix_hwloc_support 35248_ACEOF 35249 35250 35251 35252 35253 35254 # Is the private index set? If not, set it. 35255 if test "x$pmix_scope_index" = "x"; then 35256 pmix_scope_index=1 35257 fi 35258 35259 # First, check to see if any of these variables are already set. 35260 # This is a simple sanity check to ensure we're not already 35261 # overwriting pre-existing variables (that have a non-empty 35262 # value). It's not a perfect check, but at least it's something. 35263 for pmix_var in pmix_summary_section pmix_summary_line pmix_summary_section_current; do 35264 pmix_str="pmix_str=\"\$$pmix_var\"" 35265 eval $pmix_str 35266 35267 if test "x$pmix_str" != "x"; then 35268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 35269$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 35271$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 35272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 35273$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 35274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35275$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35276 as_fn_error $? "Cannot continue" "$LINENO" 5 35277 fi 35278 done 35279 35280 # Ok, we passed the simple sanity check. Save all these names so 35281 # that we can unset them at the end of the scope. 35282 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_line pmix_summary_section_current\"" 35283 eval $pmix_str 35284 unset pmix_str 35285 35286 env | grep pmix_scope 35287 pmix_scope_index=`expr $pmix_scope_index + 1` 35288 35289 35290 pmix_summary_section=$(echo External Packages | tr ' ' '_') 35291 pmix_summary_line="HWLOC: $pmix_hwloc_support_will_build ($pmix_hwloc_source)" 35292 pmix_summary_section_current=$(eval echo \$pmix_summary_values_$pmix_summary_section) 35293 35294 if test -z "$pmix_summary_section_current" ; then 35295 if test -z "$pmix_summary_sections" ; then 35296 pmix_summary_sections=$pmix_summary_section 35297 else 35298 pmix_summary_sections="$pmix_summary_sections $pmix_summary_section" 35299 fi 35300 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_line\" 35301 else 35302 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_section_current,$pmix_summary_line\" 35303 fi 35304 35305 35306 # Unwind the index 35307 pmix_scope_index=`expr $pmix_scope_index - 1` 35308 pmix_scope_test=`expr $pmix_scope_index \> 0` 35309 if test "$pmix_scope_test" = "0"; then 35310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 35311$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 35312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35313$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35314 as_fn_error $? "Cannot continue" "$LINENO" 5 35315 fi 35316 35317 # Get the variable names from that index 35318 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 35319 eval $pmix_str 35320 35321 # Iterate over all the variables and unset them all 35322 for pmix_var in $pmix_str; do 35323 unset $pmix_var 35324 done 35325 35326 35327 35328 35329 35330 ################################## 35331 # ZLIB 35332 ################################## 35333 pmix_show_title "ZLIB" 35334 35335 35336 35337 35338 # Is the private index set? If not, set it. 35339 if test "x$pmix_scope_index" = "x"; then 35340 pmix_scope_index=1 35341 fi 35342 35343 # First, check to see if any of these variables are already set. 35344 # This is a simple sanity check to ensure we're not already 35345 # overwriting pre-existing variables (that have a non-empty 35346 # value). It's not a perfect check, but at least it's something. 35347 for pmix_var in pmix_zlib_dir pmix_zlib_libdir pmix_zlib_standard_lib_location pmix_zlib_standard_header_location; do 35348 pmix_str="pmix_str=\"\$$pmix_var\"" 35349 eval $pmix_str 35350 35351 if test "x$pmix_str" != "x"; then 35352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 35353$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 35354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 35355$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 35356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 35357$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 35358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35359$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35360 as_fn_error $? "Cannot continue" "$LINENO" 5 35361 fi 35362 done 35363 35364 # Ok, we passed the simple sanity check. Save all these names so 35365 # that we can unset them at the end of the scope. 35366 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_zlib_dir pmix_zlib_libdir pmix_zlib_standard_lib_location pmix_zlib_standard_header_location\"" 35367 eval $pmix_str 35368 unset pmix_str 35369 35370 env | grep pmix_scope 35371 pmix_scope_index=`expr $pmix_scope_index + 1` 35372 35373 35374 35375# Check whether --with-zlib was given. 35376if test "${with_zlib+set}" = set; then : 35377 withval=$with_zlib; 35378fi 35379 35380 35381 35382# Check whether --with-zlib-libdir was given. 35383if test "${with_zlib_libdir+set}" = set; then : 35384 withval=$with_zlib_libdir; 35385fi 35386 35387 35388 pmix_zlib_support=0 35389 35390 if test "$with_zlib" != "no"; then 35391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib in" >&5 35392$as_echo_n "checking for zlib in... " >&6; } 35393 if test ! -z "$with_zlib" && test "$with_zlib" != "yes"; then 35394 pmix_zlib_dir=$with_zlib 35395 pmix_zlib_standard_header_location=no 35396 pmix_zlib_standard_lib_location=no 35397 if test -z "$with_zlib_libdir" || test "$with_zlib_libdir" = "yes"; then : 35398 if test -d $with_zlib/lib; then 35399 pmix_zlib_libdir=$with_zlib/lib 35400 elif test -d $with_zlib/lib64; then 35401 pmix_zlib_libdir=$with_zlib/lib64 35402 else 35403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_zlib/lib or $with_zlib/lib64" >&5 35404$as_echo "Could not find $with_zlib/lib or $with_zlib/lib64" >&6; } 35405 as_fn_error $? "Can not continue" "$LINENO" 5 35406 fi 35407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_zlib_dir and $pmix_zlib_libdir" >&5 35408$as_echo "$pmix_zlib_dir and $pmix_zlib_libdir" >&6; } 35409else 35410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_libdir" >&5 35411$as_echo "$with_zlib_libdir" >&6; } 35412fi 35413 else 35414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 35415$as_echo "(default search paths)" >&6; } 35416 pmix_zlib_standard_header_location=yes 35417 pmix_zlib_standard_lib_location=yes 35418 fi 35419 if test ! -z "$with_zlib_libdir" && test "$with_zlib_libdir" != "yes"; then : 35420 pmix_zlib_libdir="$with_zlib_libdir" 35421 pmix_zlib_standard_lib_location=no 35422fi 35423 35424 35425 pmix_check_package_pmix_zlib_save_CPPFLAGS="$CPPFLAGS" 35426 pmix_check_package_pmix_zlib_save_LDFLAGS="$LDFLAGS" 35427 pmix_check_package_pmix_zlib_save_LIBS="$LIBS" 35428 35429 pmix_check_package_pmix_zlib_orig_CPPFLAGS="$pmix_zlib_CPPFLAGS" 35430 pmix_check_package_pmix_zlib_orig_LDFLAGS="$pmix_zlib_LDFLAGS" 35431 pmix_check_package_pmix_zlib_orig_LIBS="$pmix_zlib_LIBS" 35432 35433 35434 # This is stolen from autoconf to peek under the covers to get the 35435 # cache variable for the library check. one should not copy this 35436 # code into other places unless you want much pain and suffering 35437 35438 35439 # so this sucks, but there's no way to get through the progression 35440 # of header includes without killing off the cache variable and trying 35441 # again... 35442 unset ac_cv_header_zlib_h 35443 pmix_check_package_header_happy="no" 35444 35445 # get rid of the trailing slash(es) 35446 hdir_prefix=$(echo $pmix_zlib_dir | sed -e 'sX/*$XXg') 35447 35448 if test "$hdir_prefix" = "" || \ 35449 test "$hdir_prefix" = "/usr" || \ 35450 test "$hdir_prefix" = "/usr/local"; then : 35451 # try as is... 35452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 35453$as_echo "looking for header without includes" >&6; } 35454 for ac_header in zlib.h 35455do : 35456 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 35457if test "x$ac_cv_header_zlib_h" = xyes; then : 35458 cat >>confdefs.h <<_ACEOF 35459#define HAVE_ZLIB_H 1 35460_ACEOF 35461 pmix_check_package_header_happy="yes" 35462fi 35463 35464done 35465 35466 if test "$pmix_check_package_header_happy" = "no"; then : 35467 # no go on the as is - reset the cache and try again 35468 unset ac_cv_header_zlib_h 35469fi 35470fi 35471 35472 if test "$pmix_check_package_header_happy" = "no"; then : 35473 if test "$hdir_prefix" != ""; then : 35474 pmix_zlib_CPPFLAGS="$pmix_zlib_CPPFLAGS -I$hdir_prefix" 35475 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 35476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 35477$as_echo "looking for header in $hdir_prefix" >&6; } 35478 for ac_header in zlib.h 35479do : 35480 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 35481if test "x$ac_cv_header_zlib_h" = xyes; then : 35482 cat >>confdefs.h <<_ACEOF 35483#define HAVE_ZLIB_H 1 35484_ACEOF 35485 pmix_check_package_header_happy="yes" 35486fi 35487 35488done 35489 35490 if test "$pmix_check_package_header_happy" = "no"; then : 35491 unset ac_cv_header_zlib_h 35492 pmix_zlib_CPPFLAGS="$pmix_zlib_CPPFLAGS -I$hdir_prefix/include" 35493 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 35494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 35495$as_echo "looking for header in $hdir_prefix/include" >&6; } 35496 for ac_header in zlib.h 35497do : 35498 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 35499if test "x$ac_cv_header_zlib_h" = xyes; then : 35500 cat >>confdefs.h <<_ACEOF 35501#define HAVE_ZLIB_H 1 35502_ACEOF 35503 pmix_check_package_header_happy="yes" 35504fi 35505 35506done 35507 35508fi 35509fi 35510fi 35511 35512 if test "$pmix_check_package_header_happy" = "yes"; then : 35513 35514 # This is stolen from autoconf to peek under the covers to get the 35515 # cache variable for the library check. one should not copy this 35516 # code into other places unless you want much pain and suffering 35517 35518 # see comment above 35519 unset ac_cv_lib_z_deflate 35520 pmix_check_package_lib_happy="no" 35521 35522 # get rid of the trailing slash(es) 35523 libdir_prefix=$(echo $pmix_zlib_libdir | sed -e 'sX/*$XXg') 35524 35525 if test "$libdir_prefix" != ""; then : 35526 # libdir was specified - search only there 35527 pmix_zlib_LDFLAGS="$pmix_zlib_LDFLAGS -L$libdir_prefix" 35528 LDFLAGS="$LDFLAGS -L$libdir_prefix" 35529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 35530$as_echo_n "checking for library containing deflate... " >&6; } 35531if ${ac_cv_search_deflate+:} false; then : 35532 $as_echo_n "(cached) " >&6 35533else 35534 ac_func_search_save_LIBS=$LIBS 35535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35536/* end confdefs.h. */ 35537 35538/* Override any GCC internal prototype to avoid an error. 35539 Use char because int might match the return type of a GCC 35540 builtin and then its argument prototype would still apply. */ 35541#ifdef __cplusplus 35542extern "C" 35543#endif 35544char deflate (); 35545int 35546main () 35547{ 35548return deflate (); 35549 ; 35550 return 0; 35551} 35552_ACEOF 35553for ac_lib in '' z; do 35554 if test -z "$ac_lib"; then 35555 ac_res="none required" 35556 else 35557 ac_res=-l$ac_lib 35558 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 35559 fi 35560 if ac_fn_c_try_link "$LINENO"; then : 35561 ac_cv_search_deflate=$ac_res 35562fi 35563rm -f core conftest.err conftest.$ac_objext \ 35564 conftest$ac_exeext 35565 if ${ac_cv_search_deflate+:} false; then : 35566 break 35567fi 35568done 35569if ${ac_cv_search_deflate+:} false; then : 35570 35571else 35572 ac_cv_search_deflate=no 35573fi 35574rm conftest.$ac_ext 35575LIBS=$ac_func_search_save_LIBS 35576fi 35577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 35578$as_echo "$ac_cv_search_deflate" >&6; } 35579ac_res=$ac_cv_search_deflate 35580if test "$ac_res" != no; then : 35581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 35582 pmix_check_package_lib_happy="yes" 35583else 35584 pmix_check_package_lib_happy="no" 35585fi 35586 35587 if test "$pmix_check_package_lib_happy" = "no"; then : 35588 LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS" 35589 pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS" 35590 unset ac_cv_lib_z_deflate 35591fi 35592else 35593 # libdir was not specified - go through search path 35594 # get rid of the trailing slash(es) 35595 libdir_prefix=$(echo $pmix_zlib_dir | sed -e 'sX/*$XXg') 35596 35597 # first try standard locations as otherwise our 35598 # searches with libdir_prefix locations might come 35599 # back positive and unnecessarily add an LDFLAG 35600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 35601$as_echo "looking for library without search path" >&6; } 35602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 35603$as_echo_n "checking for library containing deflate... " >&6; } 35604if ${ac_cv_search_deflate+:} false; then : 35605 $as_echo_n "(cached) " >&6 35606else 35607 ac_func_search_save_LIBS=$LIBS 35608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35609/* end confdefs.h. */ 35610 35611/* Override any GCC internal prototype to avoid an error. 35612 Use char because int might match the return type of a GCC 35613 builtin and then its argument prototype would still apply. */ 35614#ifdef __cplusplus 35615extern "C" 35616#endif 35617char deflate (); 35618int 35619main () 35620{ 35621return deflate (); 35622 ; 35623 return 0; 35624} 35625_ACEOF 35626for ac_lib in '' z; do 35627 if test -z "$ac_lib"; then 35628 ac_res="none required" 35629 else 35630 ac_res=-l$ac_lib 35631 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 35632 fi 35633 if ac_fn_c_try_link "$LINENO"; then : 35634 ac_cv_search_deflate=$ac_res 35635fi 35636rm -f core conftest.err conftest.$ac_objext \ 35637 conftest$ac_exeext 35638 if ${ac_cv_search_deflate+:} false; then : 35639 break 35640fi 35641done 35642if ${ac_cv_search_deflate+:} false; then : 35643 35644else 35645 ac_cv_search_deflate=no 35646fi 35647rm conftest.$ac_ext 35648LIBS=$ac_func_search_save_LIBS 35649fi 35650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 35651$as_echo "$ac_cv_search_deflate" >&6; } 35652ac_res=$ac_cv_search_deflate 35653if test "$ac_res" != no; then : 35654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 35655 pmix_check_package_lib_happy="yes" 35656else 35657 pmix_check_package_lib_happy="no" 35658fi 35659 35660 if test "$pmix_check_package_lib_happy" = "no"; then : 35661 # no go on the as is.. see what happens later... 35662 LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS" 35663 pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS" 35664 unset ac_cv_lib_z_deflate 35665fi 35666 35667 if test "$pmix_check_package_lib_happy" = "no"; then : 35668 # if we didn't find it, check the libdir_prefix/lib64 directory 35669 if test "$libdir_prefix" != "" && \ 35670 test "$libdir_prefix" != "/usr" && \ 35671 test "$libdir_prefix" != "/usr/local"; then : 35672 pmix_zlib_LDFLAGS="$pmix_zlib_LDFLAGS -L$libdir_prefix/lib64" 35673 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 35674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 35675$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 35676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 35677$as_echo_n "checking for library containing deflate... " >&6; } 35678if ${ac_cv_search_deflate+:} false; then : 35679 $as_echo_n "(cached) " >&6 35680else 35681 ac_func_search_save_LIBS=$LIBS 35682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35683/* end confdefs.h. */ 35684 35685/* Override any GCC internal prototype to avoid an error. 35686 Use char because int might match the return type of a GCC 35687 builtin and then its argument prototype would still apply. */ 35688#ifdef __cplusplus 35689extern "C" 35690#endif 35691char deflate (); 35692int 35693main () 35694{ 35695return deflate (); 35696 ; 35697 return 0; 35698} 35699_ACEOF 35700for ac_lib in '' z; do 35701 if test -z "$ac_lib"; then 35702 ac_res="none required" 35703 else 35704 ac_res=-l$ac_lib 35705 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 35706 fi 35707 if ac_fn_c_try_link "$LINENO"; then : 35708 ac_cv_search_deflate=$ac_res 35709fi 35710rm -f core conftest.err conftest.$ac_objext \ 35711 conftest$ac_exeext 35712 if ${ac_cv_search_deflate+:} false; then : 35713 break 35714fi 35715done 35716if ${ac_cv_search_deflate+:} false; then : 35717 35718else 35719 ac_cv_search_deflate=no 35720fi 35721rm conftest.$ac_ext 35722LIBS=$ac_func_search_save_LIBS 35723fi 35724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 35725$as_echo "$ac_cv_search_deflate" >&6; } 35726ac_res=$ac_cv_search_deflate 35727if test "$ac_res" != no; then : 35728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 35729 pmix_check_package_lib_happy="yes" 35730else 35731 pmix_check_package_lib_happy="no" 35732fi 35733 35734 if test "$pmix_check_package_lib_happy" = "no"; then : 35735 # no go on the as is.. see what happens later... 35736 LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS" 35737 pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS" 35738 unset ac_cv_lib_z_deflate 35739fi 35740fi 35741fi 35742 35743 if test "$pmix_check_package_lib_happy" = "no"; then : 35744 # if we still haven't found it, check the libdir_prefix/lib directory 35745 if test "$libdir_prefix" != "" && \ 35746 test "$libdir_prefix" != "/usr" && \ 35747 test "$libdir_prefix" != "/usr/local"; then : 35748 pmix_zlib_LDFLAGS="$pmix_zlib_LDFLAGS -L$libdir_prefix/lib" 35749 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 35750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 35751$as_echo "looking for library in $libdir_prefix/lib" >&6; } 35752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 35753$as_echo_n "checking for library containing deflate... " >&6; } 35754if ${ac_cv_search_deflate+:} false; then : 35755 $as_echo_n "(cached) " >&6 35756else 35757 ac_func_search_save_LIBS=$LIBS 35758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35759/* end confdefs.h. */ 35760 35761/* Override any GCC internal prototype to avoid an error. 35762 Use char because int might match the return type of a GCC 35763 builtin and then its argument prototype would still apply. */ 35764#ifdef __cplusplus 35765extern "C" 35766#endif 35767char deflate (); 35768int 35769main () 35770{ 35771return deflate (); 35772 ; 35773 return 0; 35774} 35775_ACEOF 35776for ac_lib in '' z; do 35777 if test -z "$ac_lib"; then 35778 ac_res="none required" 35779 else 35780 ac_res=-l$ac_lib 35781 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 35782 fi 35783 if ac_fn_c_try_link "$LINENO"; then : 35784 ac_cv_search_deflate=$ac_res 35785fi 35786rm -f core conftest.err conftest.$ac_objext \ 35787 conftest$ac_exeext 35788 if ${ac_cv_search_deflate+:} false; then : 35789 break 35790fi 35791done 35792if ${ac_cv_search_deflate+:} false; then : 35793 35794else 35795 ac_cv_search_deflate=no 35796fi 35797rm conftest.$ac_ext 35798LIBS=$ac_func_search_save_LIBS 35799fi 35800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 35801$as_echo "$ac_cv_search_deflate" >&6; } 35802ac_res=$ac_cv_search_deflate 35803if test "$ac_res" != no; then : 35804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 35805 pmix_check_package_lib_happy="yes" 35806else 35807 pmix_check_package_lib_happy="no" 35808fi 35809 35810 if test "$pmix_check_package_lib_happy" = "no"; then : 35811 # no go on the as is.. see what happens later... 35812 LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS" 35813 pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS" 35814 unset ac_cv_lib_z_deflate 35815fi 35816fi 35817fi 35818 35819fi 35820 35821 35822 if test "$pmix_check_package_lib_happy" = "yes"; then : 35823 pmix_zlib_LIBS="-lz -lz" 35824 pmix_check_package_happy="yes" 35825else 35826 pmix_check_package_happy="no" 35827fi 35828 if test "$pmix_check_package_lib_happy" = "yes"; then : 35829 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 35830 if test "$ac_cv_search_deflate" != "no" && 35831 test "$ac_cv_search_deflate" != "none required"; then : 35832 pmix_zlib_LIBS="$ac_cv_search_deflate -lz" 35833else 35834 pmix_zlib_LIBS="-lz" 35835fi 35836 pmix_check_package_happy="yes" 35837else 35838 pmix_check_package_happy="no" 35839fi 35840 35841 35842else 35843 pmix_check_package_happy="no" 35844fi 35845 35846 unset pmix_check_package_header_happy 35847 35848 35849 35850 if test "$pmix_check_package_happy" = "yes"; then : 35851 pmix_zlib_support=1 35852else 35853 pmix_zlib_CPPFLAGS="$pmix_check_package_pmix_zlib_orig_CPPFLAGS" 35854 pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS" 35855 pmix_zlib_LIBS="$pmix_check_package_pmix_zlib_orig_LIBS" 35856 pmix_zlib_support=0 35857fi 35858 35859 CPPFLAGS="$pmix_check_package_pmix_zlib_save_CPPFLAGS" 35860 LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS" 35861 LIBS="$pmix_check_package_pmix_zlib_save_LIBS" 35862 35863 if test $pmix_zlib_support = "1"; then 35864 LIBS="$LIBS -lz" 35865 PMIX_EMBEDDED_LIBS="$PMIX_EMBEDDED_LIBS -lz" 35866 if test "$pmix_zlib_standard_header_location" != "yes"; then 35867 PMIX_EMBEDDED_CPPFLAGS="$PMIX_EMBEDDED_CPPFLAGS $pmix_zlib_CPPFLAGS" 35868 CPPFLAGS="$CPPFLAGS $pmix_zlib_CPPFLAGS" 35869 fi 35870 if test "$pmix_zlib_standard_lib_location" != "yes"; then 35871 PMIX_EMBEDDED_LDFLAGS="$PMIX_EMBEDDED_LDFLAGS $pmix_zlib_LDFLAGS" 35872 LDFLAGS="$LDFLAGS $pmix_zlib_LDFLAGS" 35873 fi 35874 fi 35875 fi 35876 35877 if test ! -z "$with_zlib" && test "$with_zlib" != "no" && test "$pmix_zlib_support" != "1"; then 35878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&5 35879$as_echo "$as_me: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&2;} 35880 as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5 35881 fi 35882 35883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking will zlib support be built" >&5 35884$as_echo_n "checking will zlib support be built... " >&6; } 35885 if test "$pmix_zlib_support" != "1"; then 35886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35887$as_echo "no" >&6; } 35888 else 35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35890$as_echo "yes" >&6; } 35891 fi 35892 35893 35894cat >>confdefs.h <<_ACEOF 35895#define PMIX_HAVE_ZLIB $pmix_zlib_support 35896_ACEOF 35897 35898 35899 # Unwind the index 35900 pmix_scope_index=`expr $pmix_scope_index - 1` 35901 pmix_scope_test=`expr $pmix_scope_index \> 0` 35902 if test "$pmix_scope_test" = "0"; then 35903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 35904$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 35905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35906$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35907 as_fn_error $? "Cannot continue" "$LINENO" 5 35908 fi 35909 35910 # Get the variable names from that index 35911 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 35912 eval $pmix_str 35913 35914 # Iterate over all the variables and unset them all 35915 for pmix_var in $pmix_str; do 35916 unset $pmix_var 35917 done 35918 35919 35920 35921 35922 ################################## 35923 # Dstore Locking 35924 ################################## 35925 35926 pmix_show_title "Dstore Locking" 35927 35928 35929 35930 35931 35932 # Is the private index set? If not, set it. 35933 if test "x$pmix_scope_index" = "x"; then 35934 pmix_scope_index=1 35935 fi 35936 35937 # First, check to see if any of these variables are already set. 35938 # This is a simple sanity check to ensure we're not already 35939 # overwriting pre-existing variables (that have a non-empty 35940 # value). It's not a perfect check, but at least it's something. 35941 for pmix_var in orig_libs pmix_prefer_write_nonrecursive; do 35942 pmix_str="pmix_str=\"\$$pmix_var\"" 35943 eval $pmix_str 35944 35945 if test "x$pmix_str" != "x"; then 35946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 35947$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 35948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 35949$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 35950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 35951$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 35952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 35953$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 35954 as_fn_error $? "Cannot continue" "$LINENO" 5 35955 fi 35956 done 35957 35958 # Ok, we passed the simple sanity check. Save all these names so 35959 # that we can unset them at the end of the scope. 35960 pmix_str="pmix_scope_$pmix_scope_index=\"orig_libs pmix_prefer_write_nonrecursive\"" 35961 eval $pmix_str 35962 unset pmix_str 35963 35964 env | grep pmix_scope 35965 pmix_scope_index=`expr $pmix_scope_index + 1` 35966 35967 35968 orig_libs=$LIBS 35969 LIBS="-lpthread $LIBS" 35970 35971 _x_ac_pthread_lock_found=0 35972 _x_ac_fcntl_lock_found=0 35973 pmix_prefer_write_nonrecursive=0 35974 35975 ac_fn_c_check_member "$LINENO" "struct flock" "l_type" "ac_cv_member_struct_flock_l_type" "#include <fcntl.h> 35976" 35977if test "x$ac_cv_member_struct_flock_l_type" = xyes; then : 35978 pmix_fcntl_flock_happy=yes 35979 _x_ac_fcntl_lock_found=1 35980else 35981 pmix_fcntl_flock_happy=no 35982fi 35983 35984 35985 if test "$DSTORE_PTHREAD_LOCK" = "1"; then 35986 35987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pthread_process_shared" >&5 35988$as_echo_n "checking pthread_process_shared... " >&6; } 35989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35990/* end confdefs.h. */ 35991#include <pthread.h> 35992 #ifdef PTHREAD_PROCESS_SHARED 35993 yes 35994 #endif 35995 35996_ACEOF 35997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35998 $EGREP "yes" >/dev/null 2>&1; then : 35999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36000$as_echo "yes" >&6; } 36001 pmix_pthread_process_shared=yes 36002else 36003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36004$as_echo "no" >&6; } 36005 pmix_pthread_process_shared=no 36006fi 36007rm -f conftest* 36008 36009 36010 ac_fn_c_check_func "$LINENO" "pthread_rwlockattr_setkind_np" "ac_cv_func_pthread_rwlockattr_setkind_np" 36011if test "x$ac_cv_func_pthread_rwlockattr_setkind_np" = xyes; then : 36012 pmix_pthread_rwlockattr_setkind_np=yes 36013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36014/* end confdefs.h. */ 36015#include <pthread.h> 36016 #ifdef PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP 36017 yes 36018 #endif 36019 36020_ACEOF 36021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36022 $EGREP "yes" >/dev/null 2>&1; then : 36023 pmix_pthread_rwlock_prefer_writer_nonrecursive_np=yes 36024else 36025 pmix_pthread_rwlock_prefer_writer_nonrecursive_np=no 36026fi 36027rm -f conftest* 36028 36029else 36030 pmix_pthread_rwlockattr_setkind_np=no 36031fi 36032 36033 36034 ac_fn_c_check_func "$LINENO" "pthread_rwlockattr_setpshared" "ac_cv_func_pthread_rwlockattr_setpshared" 36035if test "x$ac_cv_func_pthread_rwlockattr_setpshared" = xyes; then : 36036 pmix_pthread_rwlockattr_setpshared=yes 36037 if test "$pmix_pthread_process_shared" = "yes"; then : 36038 _x_ac_pthread_lock_found=1 36039fi 36040 36041else 36042 pmix_pthread_rwlockattr_setpshared=no 36043fi 36044 36045 ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared" 36046if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then : 36047 pmix_pthread_mutexattr_setpshared=yes 36048else 36049 pmix_pthread_mutexattr_setpshared=no 36050fi 36051 36052 36053 if test "$pmix_pthread_rwlockattr_setkind_np" = "yes" && test "$pmix_pthread_rwlock_prefer_writer_nonrecursive_np" = "yes"; then : 36054 pmix_prefer_write_nonrecursive=1 36055else 36056 pmix_prefer_write_nonrecursive=0 36057fi 36058 36059 if test "$_x_ac_pthread_lock_found" = "0"; then 36060 if test "$_x_ac_fcntl_lock_found" = "1"; then 36061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dstore: pthread-based locking not found, will use fcntl-based locking." >&5 36062$as_echo "$as_me: WARNING: dstore: pthread-based locking not found, will use fcntl-based locking." >&2;} 36063 else 36064 as_fn_error $? "dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore" "$LINENO" 5 36065 fi 36066 fi 36067 else 36068 if test "$_x_ac_fcntl_lock_found" = "0"; then 36069 as_fn_error $? "dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore" "$LINENO" 5 36070 fi 36071 fi 36072 LIBS="$orig_libs" 36073 36074 36075cat >>confdefs.h <<_ACEOF 36076#define PMIX_PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP $pmix_prefer_write_nonrecursive 36077_ACEOF 36078 36079 if test "$_x_ac_pthread_lock_found" = "1"; then 36080 HAVE_DSTORE_PTHREAD_LOCK_TRUE= 36081 HAVE_DSTORE_PTHREAD_LOCK_FALSE='#' 36082else 36083 HAVE_DSTORE_PTHREAD_LOCK_TRUE='#' 36084 HAVE_DSTORE_PTHREAD_LOCK_FALSE= 36085fi 36086 36087 if test "$_x_ac_fcntl_lock_found" = "1"; then 36088 HAVE_DSTORE_FCNTL_LOCK_TRUE= 36089 HAVE_DSTORE_FCNTL_LOCK_FALSE='#' 36090else 36091 HAVE_DSTORE_FCNTL_LOCK_TRUE='#' 36092 HAVE_DSTORE_FCNTL_LOCK_FALSE= 36093fi 36094 36095 36096 36097 # Unwind the index 36098 pmix_scope_index=`expr $pmix_scope_index - 1` 36099 pmix_scope_test=`expr $pmix_scope_index \> 0` 36100 if test "$pmix_scope_test" = "0"; then 36101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 36102$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 36103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 36104$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 36105 as_fn_error $? "Cannot continue" "$LINENO" 5 36106 fi 36107 36108 # Get the variable names from that index 36109 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 36110 eval $pmix_str 36111 36112 # Iterate over all the variables and unset them all 36113 for pmix_var in $pmix_str; do 36114 unset $pmix_var 36115 done 36116 36117 36118 36119 36120 ################################## 36121 # MCA 36122 ################################## 36123 36124 pmix_show_title "Modular Component Architecture (MCA) setup" 36125 36126 # 36127 # Do we want to show component load error messages by default? 36128 # 36129 36130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default value of mca_base_component_show_load_errors" >&5 36131$as_echo_n "checking for default value of mca_base_component_show_load_errors... " >&6; } 36132 # Check whether --enable-show-load-errors-by-default was given. 36133if test "${enable_show_load_errors_by_default+set}" = set; then : 36134 enableval=$enable_show_load_errors_by_default; 36135fi 36136 36137 if test "$enable_show_load_errors_by_default" = "no" ; then 36138 PMIX_SHOW_LOAD_ERRORS_DEFAULT=0 36139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by default" >&5 36140$as_echo "disabled by default" >&6; } 36141 else 36142 PMIX_SHOW_LOAD_ERRORS_DEFAULT=$WANT_DEBUG 36143 if test "$WANT_DEBUG" = "1"; then 36144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled by default" >&5 36145$as_echo "enabled by default" >&6; } 36146 else 36147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by default" >&5 36148$as_echo "disabled by default" >&6; } 36149 fi 36150 fi 36151 36152cat >>confdefs.h <<_ACEOF 36153#define PMIX_SHOW_LOAD_ERRORS_DEFAULT $PMIX_SHOW_LOAD_ERRORS_DEFAULT 36154_ACEOF 36155 36156 36157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for subdir args" >&5 36158$as_echo_n "checking for subdir args... " >&6; } 36159 36160 36161 36162 # Is the private index set? If not, set it. 36163 if test "x$pmix_scope_index" = "x"; then 36164 pmix_scope_index=1 36165 fi 36166 36167 # First, check to see if any of these variables are already set. 36168 # This is a simple sanity check to ensure we're not already 36169 # overwriting pre-existing variables (that have a non-empty 36170 # value). It's not a perfect check, but at least it's something. 36171 for pmix_var in subdirs_str subdirs_skip subdirs_args subdirs_arg; do 36172 pmix_str="pmix_str=\"\$$pmix_var\"" 36173 eval $pmix_str 36174 36175 if test "x$pmix_str" != "x"; then 36176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 36177$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 36178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 36179$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 36180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 36181$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 36182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 36183$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 36184 as_fn_error $? "Cannot continue" "$LINENO" 5 36185 fi 36186 done 36187 36188 # Ok, we passed the simple sanity check. Save all these names so 36189 # that we can unset them at the end of the scope. 36190 pmix_str="pmix_scope_$pmix_scope_index=\"subdirs_str subdirs_skip subdirs_args subdirs_arg\"" 36191 eval $pmix_str 36192 unset pmix_str 36193 36194 env | grep pmix_scope 36195 pmix_scope_index=`expr $pmix_scope_index + 1` 36196 36197# 36198# Invoke configure in subdirectories. 36199# 36200# pmix_subdir_args is the name of the variable to assign the output to 36201# 36202 36203# 36204# Make a list of command line args --eliminate the --srcdir and 36205# --cache-file args, because we need to replace them with our own 36206# values when invoking the sub-configure script. Also eliminate 36207# the --with-platform as this will confuse any subdir with 36208# similar options 36209# 36210 36211subdirs_args= 36212subdirs_skip=no 36213 36214eval "set x $ac_configure_args" 36215shift 36216for subdirs_arg 36217do 36218 if test "$subdirs_skip" = "yes"; then 36219 subdirs_skip=no 36220 else 36221 case $subdirs_arg in 36222 -cache-file | --cache-file | -cache | --cache) 36223 subdirs_skip=yes 36224 ;; 36225 --config-cache | -C) 36226 ;; 36227 -cache-file=* | --cache-file=*) 36228 ;; 36229 -srcdir | --srcdir) 36230 subdirs_skip=yes 36231 ;; 36232 -srcdir=* | --srcdir=*) 36233 ;; 36234 -with-platform=* | --with-platform=*) 36235 ;; 36236 *) 36237 case $subdir_arg in 36238 *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36239 esac 36240 subdirs_args="$subdirs_args '$subdirs_arg'" 36241 ;; 36242 esac 36243 fi 36244done 36245 36246# 36247# Assign the output 36248# 36249 36250subdirs_str=pmix_subdir_args=\"$subdirs_args\" 36251eval "$subdirs_str" 36252 36253# 36254# Clean up 36255# 36256 36257 36258 # Unwind the index 36259 pmix_scope_index=`expr $pmix_scope_index - 1` 36260 pmix_scope_test=`expr $pmix_scope_index \> 0` 36261 if test "$pmix_scope_test" = "0"; then 36262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 36263$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 36264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 36265$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 36266 as_fn_error $? "Cannot continue" "$LINENO" 5 36267 fi 36268 36269 # Get the variable names from that index 36270 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 36271 eval $pmix_str 36272 36273 # Iterate over all the variables and unset them all 36274 for pmix_var in $pmix_str; do 36275 unset $pmix_var 36276 done 36277 36278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_subdir_args" >&5 36279$as_echo "$pmix_subdir_args" >&6; } 36280 36281 36282 36283 36284 # Find which components should be built as run-time loadable components 36285 # Acceptable combinations: 36286 # 36287 # [default -- no option given] 36288 # --enable-mca-dso 36289 # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]* 36290 # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]* 36291 # --disable-mca-dso 36292 # 36293 # Check whether --enable-mca-no-build was given. 36294if test "${enable_mca_no_build+set}" = set; then : 36295 enableval=$enable_mca_no_build; 36296fi 36297 36298 # Check whether --enable-mca-dso was given. 36299if test "${enable_mca_dso+set}" = set; then : 36300 enableval=$enable_mca_dso; 36301fi 36302 36303 # Check whether --enable-mca-static was given. 36304if test "${enable_mca_static+set}" = set; then : 36305 enableval=$enable_mca_static; 36306fi 36307 36308 # Check whether --enable-mca-direct was given. 36309if test "${enable_mca_direct+set}" = set; then : 36310 enableval=$enable_mca_direct; 36311fi 36312 36313 36314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be disabled" >&5 36315$as_echo_n "checking which components should be disabled... " >&6; } 36316 if test "$enable_mca_no_build" = "yes"; then 36317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36318$as_echo "yes" >&6; } 36319 as_fn_error $? "*** The enable-mca-no-build flag requires an explicit list 36320*** of type-component pairs. For example, --enable-mca-direct=pml-ob1" "$LINENO" 5 36321 else 36322 ifs_save="$IFS" 36323 IFS="${IFS}$PATH_SEPARATOR," 36324 msg= 36325 for item in $enable_mca_no_build; do 36326 type="`echo $item | cut -s -f1 -d-`" 36327 comp="`echo $item | cut -s -f2- -d-`" 36328 if test -z $type ; then 36329 type=$item 36330 fi 36331 if test -z $comp ; then 36332 str="`echo DISABLE_${type}=1 | sed s/-/_/g`" 36333 eval $str 36334 msg="$item $msg" 36335 else 36336 str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`" 36337 eval $str 36338 msg="$item $msg" 36339 fi 36340 done 36341 IFS="$ifs_save" 36342 fi 36343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 36344$as_echo "$msg" >&6; } 36345 unset msg 36346 36347 # 36348 # First, add all the mca-direct components / types into the mca-static 36349 # lists and create a list of component types that are direct compile, 36350 # in the form DIRECT_[type]=[component] 36351 # 36352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be direct-linked into the library" >&5 36353$as_echo_n "checking which components should be direct-linked into the library... " >&6; } 36354 if test "$enable_mca_direct" = "yes" ; then 36355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36356$as_echo "yes" >&6; } 36357 as_fn_error $? "*** The enable-mca-direct flag requires an explicit list of 36358*** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic" "$LINENO" 5 36359 elif test ! -z "$enable_mca_direct" && test "$enable_mca_direct" != "" ; then 36360 # 36361 # we need to add this into the static list, unless the static list 36362 # is everything 36363 # 36364 if test "$enable_mca_static" = "no" ; then 36365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Re-enabling static component support for direct call" >&5 36366$as_echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;} 36367 enable_mca_static="$enable_mca_direct" 36368 elif test -z "$enable_mca_static" ; then 36369 enable_mca_static="$enable_mca_direct" 36370 elif test "$enable_mca_static" != "yes" ; then 36371 enable_mca_static="$enable_mca_direct,$enable_mca_static" 36372 fi 36373 36374 ifs_save="$IFS" 36375 IFS="${IFS}$PATH_SEPARATOR," 36376 msg= 36377 for item in $enable_mca_direct; do 36378 type="`echo $item | cut -f1 -d-`" 36379 comp="`echo $item | cut -f2- -d-`" 36380 if test -z $type || test -z $comp ; then 36381 as_fn_error $? "*** The enable-mca-direct flag requires a 36382*** list of type-component pairs. Invalid input detected." "$LINENO" 5 36383 else 36384 str="`echo DIRECT_$type=$comp | sed s/-/_/g`" 36385 eval $str 36386 msg="$item $msg" 36387 fi 36388 done 36389 IFS="$ifs_save" 36390 fi 36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 36392$as_echo "$msg" >&6; } 36393 unset msg 36394 36395 # 36396 # Second, set the DSO_all and STATIC_all variables. conflict 36397 # resolution (prefer static) is done in the big loop below 36398 # 36399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be run-time loadable" >&5 36400$as_echo_n "checking which components should be run-time loadable... " >&6; } 36401 if test "$enable_static" != "no"; then 36402 DSO_all=0 36403 msg=none 36404 elif test -z "$enable_mca_dso" || test "$enable_mca_dso" = "yes"; then 36405 DSO_all=1 36406 msg=all 36407 elif test "$enable_mca_dso" = "no"; then 36408 DSO_all=0 36409 msg=none 36410 else 36411 DSO_all=0 36412 ifs_save="$IFS" 36413 IFS="${IFS}$PATH_SEPARATOR," 36414 msg= 36415 for item in $enable_mca_dso; do 36416 str="`echo DSO_$item=1 | sed s/-/_/g`" 36417 eval $str 36418 msg="$item $msg" 36419 done 36420 IFS="$ifs_save" 36421 fi 36422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 36423$as_echo "$msg" >&6; } 36424 unset msg 36425 if test "$enable_static" != "no"; then 36426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5 36427$as_echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;} 36428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building MCA components as DSOs automatically disabled" >&5 36429$as_echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;} 36430 fi 36431 36432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be static" >&5 36433$as_echo_n "checking which components should be static... " >&6; } 36434 if test "$enable_mca_static" = "yes"; then 36435 STATIC_all=1 36436 msg=all 36437 elif test -z "$enable_mca_static" || test "$enable_mca_static" = "no"; then 36438 STATIC_all=0 36439 msg=none 36440 else 36441 STATIC_all=0 36442 ifs_save="$IFS" 36443 IFS="${IFS}$PATH_SEPARATOR," 36444 msg= 36445 for item in $enable_mca_static; do 36446 str="`echo STATIC_$item=1 | sed s/-/_/g`" 36447 eval $str 36448 msg="$item $msg" 36449 done 36450 IFS="$ifs_save" 36451 fi 36452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 36453$as_echo "$msg" >&6; } 36454 unset msg 36455 36456 # now configure the PMIx project. Most 36457 # of the hard stuff is in here 36458 MCA_PROJECT_SUBDIRS= 36459 36460 # can't use a variable rename here because these need to be evaled 36461 # at auto* time. 36462 36463 pmix_show_subtitle "Configuring MCA" 36464 36465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks" >&5 36466$as_echo_n "checking for frameworks... " >&6; } 36467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: common, bfrops, gds, pcompress, pdl, pif, pinstalldirs, plog, pnet, preg, psec, psensor, pshmem, psquash, ptl" >&5 36468$as_echo "common, bfrops, gds, pcompress, pdl, pif, pinstalldirs, plog, pnet, preg, psec, psensor, pshmem, psquash, ptl" >&6; } 36469 36470 # iterate through the list of frameworks. There is something 36471 # funky with m4 foreach if the list is defined, but empty. It 36472 # will call the 3rd argument once with an empty value for the 36473 # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK 36474 # with an empty second argument. Grrr.... 36475 # if there isn't a project list, abort 36476 # 36477 # Also setup two variables for Makefiles: 36478 # MCA_project_FRAMEWORKS - list of frameworks in that project 36479 # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing 36480 # to more libraries) that must be included 36481 # in the project's main library 36482 36483 36484 MCA_pmix_FRAMEWORKS= 36485 MCA_pmix_FRAMEWORKS_SUBDIRS= 36486 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS= 36487 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS= 36488 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= 36489 MCA_pmix_FRAMEWORK_LIBS= 36490 36491 MCA_pmix_FRAMEWORKS="common $MCA_pmix_FRAMEWORKS" 36492 MCA_pmix_FRAMEWORKS_SUBDIRS="mca/common $MCA_pmix_FRAMEWORKS_SUBDIRS" 36493 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pmix_common_ALL_SUBDIRS) $MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS" 36494 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pmix_common_DSO_SUBDIRS) $MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS" 36495 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pmix_common_STATIC_SUBDIRS) $MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" 36496 36497 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_common_STATIC_LTLIBS)" 36498 36499 pmix_show_subsubtitle "Configuring MCA framework common" 36500 36501 36502 36503 36504 # setup for framework 36505 all_components= 36506 static_components= 36507 dso_components= 36508 static_ltlibs= 36509 36510 # Ensure that the directory where the #include file is to live 36511 # exists. Need to do this for VPATH builds, because the directory 36512 # may not exist yet. For the "common" type, it's not really a 36513 # component, so it doesn't have a base. 36514 outdir=src/mca/common 36515 as_dir=$outdir; as_fn_mkdir_p 36516 36517 # emit Makefile rule 36518 ac_config_files="$ac_config_files src/mca/common/Makefile" 36519 36520 36521 # remove any previously generated #include files 36522 outfile_real=$outdir/static-components.h 36523 outfile=$outfile_real.new 36524 rm -f $outfile $outfile.struct $outfile.extern 36525 touch $outfile.struct $outfile.extern 36526 36527 # print some nice messages about what we're about to do... 36528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework common" >&5 36529$as_echo_n "checking for no configure components in framework common... " >&6; } 36530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36531$as_echo "" >&6; } 36532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework common" >&5 36533$as_echo_n "checking for m4 configure components in framework common... " >&6; } 36534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dstore" >&5 36535$as_echo "dstore" >&6; } 36536 36537 # If there are components in the no configure list, but we're 36538 # doing one of the "special" selection logics, abort with a 36539 # reasonable message. 36540 36541 36542 36543 # run the configure logic for the no-config components 36544 36545 36546 # configure components that use built-in configuration scripts 36547 36548 36549 36550 best_mca_component_priority=0 36551 components_looking_for_succeed=1 36552 components_last_result=0 36553 36554 36555 pmix_show_subsubsubtitle "MCA component common:dstore (m4 configuration macro)" 36556 36557 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 36558 36559 36560 36561 component_path="$srcdir/src/mca/common/dstore" 36562 want_component=0 36563 36564 # build if: 36565 # - the component type is direct and we are that component 36566 # - there is no pmix_ignore file 36567 # - there is an pmix_ignore, but there is an empty pmix_unignore 36568 # - there is an pmix_ignore, but username is in pmix_unignore 36569 if test -d $component_path ; then 36570 # decide if we want the component to be built or not. This 36571 # is spread out because some of the logic is a little complex 36572 # and test's syntax isn't exactly the greatest. We want to 36573 # build the component by default. 36574 want_component=1 36575 if test -f $component_path/.pmix_ignore ; then 36576 # If there is an pmix_ignore file, don't build 36577 # the component. Note that this decision can be 36578 # overridden by the unignore logic below. 36579 want_component=0 36580 fi 36581 if test -f $component_path/.pmix_unignore ; then 36582 # if there is an empty pmix_unignore, that is 36583 # equivalent to having your userid in the unignore file. 36584 # If userid is in the file, unignore the ignore file. 36585 if test ! -s $component_path/.pmix_unignore ; then 36586 want_component=1 36587 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 36588 want_component=1 36589 fi 36590 fi 36591 # if this component type is direct and we are not it, we don't want 36592 # to be built. Otherwise, we do want to be built. 36593 if test ! -z "$DIRECT_common" ; then 36594 if test "$DIRECT_common" = "dstore" ; then 36595 want_component=1 36596 else 36597 want_component=0 36598 fi 36599 fi 36600 fi 36601 36602 # if we were explicitly disabled, don't build :) 36603 if test "$DISABLE_common" = "1"; then : 36604 want_component=0 36605fi 36606 if test "$DISABLE_common_dstore" = "1"; then : 36607 want_component=0 36608fi 36609 36610 if test "$want_component" = "1"; then : 36611 should_build=$components_looking_for_succeed 36612else 36613 should_build=0 36614fi 36615 36616 # Allow the component to override the build mode if it really wants to. 36617 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 36618 36619 SHARED_FRAMEWORK="$DSO_common" 36620 SHARED_COMPONENT="$DSO_common_dstore" 36621 36622 STATIC_FRAMEWORK="$STATIC_common" 36623 STATIC_COMPONENT="$STATIC_common_dstore" 36624 36625 shared_mode_override=static 36626 36627 # Setup for either shared or static 36628 if test "$STATIC_FRAMEWORK" = "1" || \ 36629 test "$STATIC_COMPONENT" = "1" || \ 36630 test "$STATIC_all" = "1" ; then 36631 compile_mode="static" 36632 elif test "$shared_mode_override" = "dso" || \ 36633 test "$SHARED_FRAMEWORK" = "1" || \ 36634 test "$SHARED_COMPONENT" = "1" || \ 36635 test "$DSO_all" = "1"; then 36636 compile_mode="dso" 36637 else 36638 compile_mode="static" 36639 fi 36640 36641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:dstore compile mode" >&5 36642$as_echo_n "checking for MCA component common:dstore compile mode... " >&6; } 36643 if test "$DIRECT_common" = "dstore" ; then 36644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 36645$as_echo "$compile_mode - direct" >&6; } 36646 else 36647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 36648$as_echo "$compile_mode" >&6; } 36649 fi 36650 36651 36652 # try to configure the component 36653 36654 ac_config_files="$ac_config_files src/mca/common/dstore/Makefile" 36655 36656 should_build=$should_build 36657 36658 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 36659 36660 if test "$should_build" = "1"; then : 36661 36662 36663 36664 # See if it dropped an output file for us to pick up some 36665 # shell variables in. 36666 infile="$srcdir/src/mca/common/dstore/post_configure.sh" 36667 36668 # Add this subdir to the mast list of all MCA component subdirs 36669 all_components="$all_components dstore" 36670 36671 if test "$compile_mode" = "dso" ; then 36672 dso_components="$dso_components dstore" 36673 else 36674 if test "common" = "common"; then 36675 # Static libraries in "common" frameworks are installed, and 36676 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 36677 # set. 36678 static_ltlibs="mca/common/dstore/lib${PMIX_LIB_PREFIX}mca_common_dstore.la $static_ltlibs" 36679 else 36680 # Other frameworks do not have to obey the 36681 # $FRAMEWORK_LIB_PREFIX prefix. 36682 static_ltlibs="mca/common/dstore/libmca_common_dstore.la $static_ltlibs" 36683 fi 36684 echo "extern const pmix_mca_base_component_t mca_common_dstore_component;" >> $outfile.extern 36685 echo " &mca_common_dstore_component, " >> $outfile.struct 36686 static_components="$static_components dstore" 36687 fi 36688 36689 # Output pretty results 36690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:dstore can compile" >&5 36691$as_echo_n "checking if MCA component common:dstore can compile... " >&6; } 36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36693$as_echo "yes" >&6; } 36694 36695 if test -f $infile; then 36696 # check for direct call header to include. This will be 36697 # AC_SUBSTed later. 36698 if test "$DIRECT_common" = "dstore" ; then 36699 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 36700 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 36701 str="MCA_pmix_common_DIRECT_CALL_HEADER=$line" 36702 eval $str 36703 else 36704as_fn_error $? "*** common component dstore was supposed to be direct-called, but 36705*** does not appear to support direct calling. 36706*** Aborting" "$LINENO" 5 36707 fi 36708 fi 36709 else 36710 # were we supposed to have found something in the 36711 # post_configure.sh, but the file didn't exist? 36712 if test "$DIRECT_common" = "dstore" ; then 36713as_fn_error $? "*** common component dstore was supposed to be direct-called, but 36714*** does not appear to support direct calling. 36715*** Aborting" "$LINENO" 5 36716 fi 36717 fi 36718 36719else 36720 36721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:dstore can compile" >&5 36722$as_echo_n "checking if MCA component common:dstore can compile... " >&6; } 36723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36724$as_echo "no" >&6; } 36725 36726 # If this component was requested as the default for this 36727 # type, then abort. 36728 if test "$with_common" = "dstore" ; then 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dstore\" failed to configure properly" >&5 36730$as_echo "$as_me: WARNING: MCA component \"dstore\" failed to configure properly" >&2;} 36731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 36732$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 36733 as_fn_error $? "Cannot continue" "$LINENO" 5 36734 fi 36735 36736 if test ! -z "$DIRECT_common" ; then 36737 if test "$DIRECT_common" = "dstore" ; then 36738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dstore\" failed to configure properly" >&5 36739$as_echo "$as_me: WARNING: MCA component \"dstore\" failed to configure properly" >&2;} 36740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 36741$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 36742 as_fn_error $? "Cannot continue" "$LINENO" 5 36743 fi 36744 fi 36745 36746 # add component to all component list 36747 all_components="$all_components dstore" 36748fi 36749 36750 36751 36752 # set the AM_CONDITIONAL on how we should build 36753 if test "$compile_mode" = "dso"; then : 36754 BUILD_pmix_common_dstore_DSO=1 36755else 36756 BUILD_pmix_common_dstore_DSO=0 36757fi 36758 if test "$BUILD_pmix_common_dstore_DSO" = "1"; then 36759 MCA_BUILD_pmix_common_dstore_DSO_TRUE= 36760 MCA_BUILD_pmix_common_dstore_DSO_FALSE='#' 36761else 36762 MCA_BUILD_pmix_common_dstore_DSO_TRUE='#' 36763 MCA_BUILD_pmix_common_dstore_DSO_FALSE= 36764fi 36765 36766 36767 if test "$should_build" = "1"; then : 36768 components_last_result=1 36769else 36770 components_last_result=0 36771fi 36772 36773 unset compile_mode 36774 36775 36776 36777 36778 36779 # configure components that provide their own configure script. 36780 # It would be really hard to run these for "find first that 36781 # works", so we don't :) 36782 36783 36784 36785 if test "1" != "0"; then : 36786 36787 for component_path in $srcdir/src/mca/common/* ; do 36788 component="`basename $component_path`" 36789 if test -d $component_path && test -x $component_path/configure ; then 36790 pmix_show_subsubsubtitle "MCA component common:$component (need to configure)" 36791 36792 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 36793 36794 36795 36796 component_path="$srcdir/src/mca/common/$component" 36797 want_component=0 36798 36799 # build if: 36800 # - the component type is direct and we are that component 36801 # - there is no pmix_ignore file 36802 # - there is an pmix_ignore, but there is an empty pmix_unignore 36803 # - there is an pmix_ignore, but username is in pmix_unignore 36804 if test -d $component_path ; then 36805 # decide if we want the component to be built or not. This 36806 # is spread out because some of the logic is a little complex 36807 # and test's syntax isn't exactly the greatest. We want to 36808 # build the component by default. 36809 want_component=1 36810 if test -f $component_path/.pmix_ignore ; then 36811 # If there is an pmix_ignore file, don't build 36812 # the component. Note that this decision can be 36813 # overridden by the unignore logic below. 36814 want_component=0 36815 fi 36816 if test -f $component_path/.pmix_unignore ; then 36817 # if there is an empty pmix_unignore, that is 36818 # equivalent to having your userid in the unignore file. 36819 # If userid is in the file, unignore the ignore file. 36820 if test ! -s $component_path/.pmix_unignore ; then 36821 want_component=1 36822 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 36823 want_component=1 36824 fi 36825 fi 36826 # if this component type is direct and we are not it, we don't want 36827 # to be built. Otherwise, we do want to be built. 36828 if test ! -z "$DIRECT_common" ; then 36829 if test "$DIRECT_common" = "$component" ; then 36830 want_component=1 36831 else 36832 want_component=0 36833 fi 36834 fi 36835 fi 36836 36837 # if we were explicitly disabled, don't build :) 36838 if test "$DISABLE_common" = "1"; then : 36839 want_component=0 36840fi 36841 str="DISABLED_COMPONENT_CHECK=\$DISABLE_common_$component" 36842 eval $str 36843 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 36844 want_component=0 36845 fi 36846 36847 if test "$want_component" = "1"; then : 36848 should_build=1 36849else 36850 should_build=0 36851fi 36852 36853 36854 SHARED_FRAMEWORK="$DSO_common" 36855 str="SHARED_COMPONENT=\$DSO_common_$component" 36856 eval $str 36857 36858 STATIC_FRAMEWORK="$STATIC_common" 36859 str="STATIC_COMPONENT=\$STATIC_common_$component" 36860 eval $str 36861 36862 shared_mode_override=static 36863 36864 # Setup for either shared or static 36865 if test "$STATIC_FRAMEWORK" = "1" || \ 36866 test "$STATIC_COMPONENT" = "1" || \ 36867 test "$STATIC_all" = "1" ; then 36868 compile_mode="static" 36869 elif test "$shared_mode_override" = "dso" || \ 36870 test "$SHARED_FRAMEWORK" = "1" || \ 36871 test "$SHARED_COMPONENT" = "1" || \ 36872 test "$DSO_all" = "1"; then 36873 compile_mode="dso" 36874 else 36875 compile_mode="static" 36876 fi 36877 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:$component compile mode" >&5 36879$as_echo_n "checking for MCA component common:$component compile mode... " >&6; } 36880 if test "$DIRECT_common" = "$component" ; then 36881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 36882$as_echo "$compile_mode - direct" >&6; } 36883 else 36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 36885$as_echo "$compile_mode" >&6; } 36886 fi 36887 36888 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 36889 36890 if test "$should_build" = "1" ; then 36891 36892 36893 36894 # Is the private index set? If not, set it. 36895 if test "x$pmix_scope_index" = "x"; then 36896 pmix_scope_index=1 36897 fi 36898 36899 # First, check to see if any of these variables are already set. 36900 # This is a simple sanity check to ensure we're not already 36901 # overwriting pre-existing variables (that have a non-empty 36902 # value). It's not a perfect check, but at least it's something. 36903 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 36904 pmix_str="pmix_str=\"\$$pmix_var\"" 36905 eval $pmix_str 36906 36907 if test "x$pmix_str" != "x"; then 36908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 36909$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 36910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 36911$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 36913$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 36914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 36915$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 36916 as_fn_error $? "Cannot continue" "$LINENO" 5 36917 fi 36918 done 36919 36920 # Ok, we passed the simple sanity check. Save all these names so 36921 # that we can unset them at the end of the scope. 36922 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 36923 eval $pmix_str 36924 unset pmix_str 36925 36926 env | grep pmix_scope 36927 pmix_scope_index=`expr $pmix_scope_index + 1` 36928 36929 36930# 36931# Invoke configure in a specific subdirectory. 36932# 36933# src/mca/common/$component is the directory to invoke in 36934# $pmix_subdir_args is the list of arguments to pass 36935# should_build=1 is actions to execute upon success 36936# should_build=0 is actions to execute upon failure 36937# 36938subdir_dir="src/mca/common/$component" 36939subdir_args="$pmix_subdir_args" 36940subdir_success="should_build=1" 36941subdir_failure="should_build=0" 36942 36943# 36944# Sanity checks 36945# 36946 36947if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 36948 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 36949$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 36950 36951 # 36952 # Gotta check where srcdir is for VPATH builds. If srcdir is not 36953 # ., then we need to mkdir the subdir. Otherwise, we can just cd 36954 # into it. 36955 # 36956 36957 case $srcdir in 36958 .) 36959 ;; 36960 *) 36961 { case $subdir_dir in 36962 [\\/]* | ?:[\\/]* ) total_dir=;; 36963 *) total_dir=.;; 36964 esac 36965 temp=$subdir_dir 36966 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 36967 case $dir_part in 36968 # Skip DOS drivespec 36969 ?:) total_dir=$dir_part ;; 36970 *) total_dir=$total_dir/$dir_part 36971 test -d "$total_dir" || 36972 mkdir "$total_dir" || 36973 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 36974 ;; 36975 esac 36976 done; } 36977 36978 if test -d ./$subdir_dir; then :; 36979 else 36980 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 36981 fi 36982 ;; 36983 esac 36984 36985 # 36986 # Move into the target directory 36987 # 36988 36989 subdir_parent=`pwd` 36990 cd $subdir_dir 36991 36992 # 36993 # Make a "../" for each directory in $subdir_dir. 36994 # 36995 36996 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 36997 # 36998 # Construct the --srcdir argument 36999 # 37000 37001 case $srcdir in 37002 .) 37003 # In place 37004 subdir_srcdir="$srcdir" 37005 ;; 37006 [\\/]* | ?:[\\/]* ) 37007 # Absolute path 37008 subdir_srcdir="$srcdir/$subdir_dir" 37009 ;; 37010 *) 37011 # Relative path 37012 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 37013 ;; 37014 esac 37015 37016 # 37017 # Construct the --cache-file argument 37018 # 37019 37020 # BWB - subdir caching is a pain since we change CFLAGS and all that. 37021 # Just disable it for now 37022 subdir_cache_file="/dev/null" 37023 37024 # 37025 # Invoke the configure script in the subdirectory 37026 # 37027 37028 sub_configure="$SHELL '$subdir_srcdir/configure'" 37029 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 37030$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 37031 eval "$sub_configure $subdir_args \ 37032 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 37033 if test "$?" = "0"; then 37034 eval $subdir_success 37035 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 37036$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 37037 else 37038 eval $subdir_failure 37039 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 37040$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 37041 fi 37042 37043 # 37044 # Go back to the topdir 37045 # 37046 37047 cd $subdir_parent 37048fi 37049 37050# 37051# Clean up 37052# 37053 37054 37055 # Unwind the index 37056 pmix_scope_index=`expr $pmix_scope_index - 1` 37057 pmix_scope_test=`expr $pmix_scope_index \> 0` 37058 if test "$pmix_scope_test" = "0"; then 37059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 37060$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 37061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 37062$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 37063 as_fn_error $? "Cannot continue" "$LINENO" 5 37064 fi 37065 37066 # Get the variable names from that index 37067 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 37068 eval $pmix_str 37069 37070 # Iterate over all the variables and unset them all 37071 for pmix_var in $pmix_str; do 37072 unset $pmix_var 37073 done 37074 37075 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 37076 fi 37077 37078 if test "$should_build" = "1" ; then 37079 # do some extra work to pass flags back from the 37080 # top-level configure, the way a configure.m4 37081 # component would. 37082 infile="$srcdir/src/mca/common/all_components/post_configure.sh" 37083 if test -f $infile; then 37084 37085 # First check for the ABORT tag 37086 line="`$GREP ABORT= $infile | cut -d= -f2-`" 37087 if test -n "$line" && test "$line" != "no"; then 37088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 37089$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 37090 as_fn_error $? "cannot continue" "$LINENO" 5 37091 fi 37092 fi 37093 37094 37095 37096 37097 # See if it dropped an output file for us to pick up some 37098 # shell variables in. 37099 infile="$srcdir/src/mca/common/$component/post_configure.sh" 37100 37101 # Add this subdir to the mast list of all MCA component subdirs 37102 all_components="$all_components $component" 37103 37104 if test "$compile_mode" = "dso" ; then 37105 dso_components="$dso_components $component" 37106 else 37107 if test "common" = "common"; then 37108 # Static libraries in "common" frameworks are installed, and 37109 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 37110 # set. 37111 static_ltlibs="mca/common/$component/lib${PMIX_LIB_PREFIX}mca_common_$component.la $static_ltlibs" 37112 else 37113 # Other frameworks do not have to obey the 37114 # $FRAMEWORK_LIB_PREFIX prefix. 37115 static_ltlibs="mca/common/$component/libmca_common_$component.la $static_ltlibs" 37116 fi 37117 echo "extern const pmix_mca_base_component_t mca_common_$component_component;" >> $outfile.extern 37118 echo " &mca_common_$component_component, " >> $outfile.struct 37119 static_components="$static_components $component" 37120 fi 37121 37122 # Output pretty results 37123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 37124$as_echo_n "checking if MCA component common:$component can compile... " >&6; } 37125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37126$as_echo "yes" >&6; } 37127 37128 if test -f $infile; then 37129 # check for direct call header to include. This will be 37130 # AC_SUBSTed later. 37131 if test "$DIRECT_common" = "$component" ; then 37132 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 37133 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 37134 str="MCA_pmix_common_DIRECT_CALL_HEADER=$line" 37135 eval $str 37136 else 37137as_fn_error $? "*** common component $component was supposed to be direct-called, but 37138*** does not appear to support direct calling. 37139*** Aborting" "$LINENO" 5 37140 fi 37141 fi 37142 else 37143 # were we supposed to have found something in the 37144 # post_configure.sh, but the file didn't exist? 37145 if test "$DIRECT_common" = "$component" ; then 37146as_fn_error $? "*** common component $component was supposed to be direct-called, but 37147*** does not appear to support direct calling. 37148*** Aborting" "$LINENO" 5 37149 fi 37150 fi 37151 37152 else 37153 37154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 37155$as_echo_n "checking if MCA component common:$component can compile... " >&6; } 37156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37157$as_echo "no" >&6; } 37158 37159 # If this component was requested as the default for this 37160 # type, then abort. 37161 if test "$with_common" = "$component" ; then 37162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 37163$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 37164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 37165$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 37166 as_fn_error $? "Cannot continue" "$LINENO" 5 37167 fi 37168 37169 if test ! -z "$DIRECT_common" ; then 37170 if test "$DIRECT_common" = "$component" ; then 37171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 37172$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 37174$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 37175 as_fn_error $? "Cannot continue" "$LINENO" 5 37176 fi 37177 fi 37178 37179 fi 37180 fi 37181 done 37182 37183fi 37184 37185 MCA_pmix_common_ALL_COMPONENTS="$all_components" 37186 MCA_pmix_common_STATIC_COMPONENTS="$static_components" 37187 MCA_pmix_common_DSO_COMPONENTS="$dso_components" 37188 MCA_pmix_common_STATIC_LTLIBS="$static_ltlibs" 37189 37190 37191 37192 37193 37194 37195 37196 MCA_pmix_common_ALL_SUBDIRS= 37197 for item in $all_components ; do 37198 MCA_pmix_common_ALL_SUBDIRS="$MCA_pmix_common_ALL_SUBDIRS mca/common/$item" 37199 done 37200 37201 37202 37203 MCA_pmix_common_STATIC_SUBDIRS= 37204 for item in $static_components ; do 37205 MCA_pmix_common_STATIC_SUBDIRS="$MCA_pmix_common_STATIC_SUBDIRS mca/common/$item" 37206 done 37207 37208 37209 37210 MCA_pmix_common_DSO_SUBDIRS= 37211 for item in $dso_components ; do 37212 MCA_pmix_common_DSO_SUBDIRS="$MCA_pmix_common_DSO_SUBDIRS mca/common/$item" 37213 done 37214 37215 37216 37217 # Create the final .h file that will be included in the type's 37218 # top-level glue. This lists all the static components. We don't 37219 # need to do this for "common". 37220 if test "common" != "common"; then 37221 cat > $outfile <<EOF 37222/* 37223 * \$HEADER\$ 37224 */ 37225#if defined(c_plusplus) || defined(__cplusplus) 37226extern "C" { 37227#endif 37228 37229`cat $outfile.extern` 37230 37231const pmix_mca_base_component_t *mca_common_base_static_components[] = { 37232`cat $outfile.struct` 37233 NULL 37234}; 37235 37236#if defined(c_plusplus) || defined(__cplusplus) 37237} 37238#endif 37239 37240EOF 37241 # Only replace the header file if a) it doesn't previously 37242 # exist, or b) the contents are different. Do this to not 37243 # trigger recompilation of certain .c files just because the 37244 # timestamp changed on $outfile_real (similar to the way AC 37245 # handles AC_CONFIG_HEADER files). 37246 diff $outfile $outfile_real > /dev/null 2>&1 37247 if test "$?" != "0"; then 37248 mv $outfile $outfile_real 37249 else 37250 rm -f $outfile 37251 fi 37252 fi 37253 rm -f $outfile.struct $outfile.extern 37254 37255 unset all_components static_components dso_components outfile outfile_real 37256 37257 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS bfrops" 37258 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/bfrops" 37259 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_bfrops_ALL_SUBDIRS)" 37260 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_bfrops_DSO_SUBDIRS)" 37261 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_bfrops_STATIC_SUBDIRS)" 37262 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/bfrops/libmca_bfrops.la" 37263 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_bfrops_STATIC_LTLIBS)" 37264 37265 pmix_show_subsubtitle "Configuring MCA framework bfrops" 37266 37267 37268 37269 37270 # setup for framework 37271 all_components= 37272 static_components= 37273 dso_components= 37274 static_ltlibs= 37275 37276 # Ensure that the directory where the #include file is to live 37277 # exists. Need to do this for VPATH builds, because the directory 37278 # may not exist yet. For the "common" type, it's not really a 37279 # component, so it doesn't have a base. 37280 outdir=src/mca/bfrops/base 37281 as_dir=$outdir; as_fn_mkdir_p 37282 37283 # emit Makefile rule 37284 ac_config_files="$ac_config_files src/mca/bfrops/Makefile" 37285 37286 37287 # remove any previously generated #include files 37288 outfile_real=$outdir/static-components.h 37289 outfile=$outfile_real.new 37290 rm -f $outfile $outfile.struct $outfile.extern 37291 touch $outfile.struct $outfile.extern 37292 37293 # print some nice messages about what we're about to do... 37294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework bfrops" >&5 37295$as_echo_n "checking for no configure components in framework bfrops... " >&6; } 37296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: v12, v20, v21, v3" >&5 37297$as_echo "v12, v20, v21, v3" >&6; } 37298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework bfrops" >&5 37299$as_echo_n "checking for m4 configure components in framework bfrops... " >&6; } 37300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 37301$as_echo "" >&6; } 37302 37303 # If there are components in the no configure list, but we're 37304 # doing one of the "special" selection logics, abort with a 37305 # reasonable message. 37306 37307 37308 37309 # run the configure logic for the no-config components 37310 37311 pmix_show_subsubsubtitle "MCA component bfrops:v12 (no configuration)" 37312 37313 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 37314 37315 37316 37317 component_path="$srcdir/src/mca/bfrops/v12" 37318 want_component=0 37319 37320 # build if: 37321 # - the component type is direct and we are that component 37322 # - there is no pmix_ignore file 37323 # - there is an pmix_ignore, but there is an empty pmix_unignore 37324 # - there is an pmix_ignore, but username is in pmix_unignore 37325 if test -d $component_path ; then 37326 # decide if we want the component to be built or not. This 37327 # is spread out because some of the logic is a little complex 37328 # and test's syntax isn't exactly the greatest. We want to 37329 # build the component by default. 37330 want_component=1 37331 if test -f $component_path/.pmix_ignore ; then 37332 # If there is an pmix_ignore file, don't build 37333 # the component. Note that this decision can be 37334 # overridden by the unignore logic below. 37335 want_component=0 37336 fi 37337 if test -f $component_path/.pmix_unignore ; then 37338 # if there is an empty pmix_unignore, that is 37339 # equivalent to having your userid in the unignore file. 37340 # If userid is in the file, unignore the ignore file. 37341 if test ! -s $component_path/.pmix_unignore ; then 37342 want_component=1 37343 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 37344 want_component=1 37345 fi 37346 fi 37347 # if this component type is direct and we are not it, we don't want 37348 # to be built. Otherwise, we do want to be built. 37349 if test ! -z "$DIRECT_bfrops" ; then 37350 if test "$DIRECT_bfrops" = "v12" ; then 37351 want_component=1 37352 else 37353 want_component=0 37354 fi 37355 fi 37356 fi 37357 37358 # if we were explicitly disabled, don't build :) 37359 if test "$DISABLE_bfrops" = "1"; then : 37360 want_component=0 37361fi 37362 if test "$DISABLE_bfrops_v12" = "1"; then : 37363 want_component=0 37364fi 37365 37366 if test "$want_component" = "1"; then : 37367 should_build=1 37368else 37369 should_build=0 37370fi 37371 37372 37373 SHARED_FRAMEWORK="$DSO_bfrops" 37374 SHARED_COMPONENT="$DSO_bfrops_v12" 37375 37376 STATIC_FRAMEWORK="$STATIC_bfrops" 37377 STATIC_COMPONENT="$STATIC_bfrops_v12" 37378 37379 shared_mode_override=static 37380 37381 # Setup for either shared or static 37382 if test "$STATIC_FRAMEWORK" = "1" || \ 37383 test "$STATIC_COMPONENT" = "1" || \ 37384 test "$STATIC_all" = "1" ; then 37385 compile_mode="static" 37386 elif test "$shared_mode_override" = "dso" || \ 37387 test "$SHARED_FRAMEWORK" = "1" || \ 37388 test "$SHARED_COMPONENT" = "1" || \ 37389 test "$DSO_all" = "1"; then 37390 compile_mode="dso" 37391 else 37392 compile_mode="static" 37393 fi 37394 37395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v12 compile mode" >&5 37396$as_echo_n "checking for MCA component bfrops:v12 compile mode... " >&6; } 37397 if test "$DIRECT_bfrops" = "v12" ; then 37398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 37399$as_echo "$compile_mode - direct" >&6; } 37400 else 37401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 37402$as_echo "$compile_mode" >&6; } 37403 fi 37404 37405 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 37406 37407 if test "$should_build" = "1" ; then 37408 37409 37410 37411 # See if it dropped an output file for us to pick up some 37412 # shell variables in. 37413 infile="$srcdir/src/mca/bfrops/v12/post_configure.sh" 37414 37415 # Add this subdir to the mast list of all MCA component subdirs 37416 all_components="$all_components v12" 37417 37418 if test "$compile_mode" = "dso" ; then 37419 dso_components="$dso_components v12" 37420 else 37421 if test "bfrops" = "common"; then 37422 # Static libraries in "common" frameworks are installed, and 37423 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 37424 # set. 37425 static_ltlibs="mca/bfrops/v12/lib${PMIX_LIB_PREFIX}mca_bfrops_v12.la $static_ltlibs" 37426 else 37427 # Other frameworks do not have to obey the 37428 # $FRAMEWORK_LIB_PREFIX prefix. 37429 static_ltlibs="mca/bfrops/v12/libmca_bfrops_v12.la $static_ltlibs" 37430 fi 37431 echo "extern const pmix_mca_base_component_t mca_bfrops_v12_component;" >> $outfile.extern 37432 echo " &mca_bfrops_v12_component, " >> $outfile.struct 37433 static_components="$static_components v12" 37434 fi 37435 37436 # Output pretty results 37437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v12 can compile" >&5 37438$as_echo_n "checking if MCA component bfrops:v12 can compile... " >&6; } 37439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37440$as_echo "yes" >&6; } 37441 37442 if test -f $infile; then 37443 # check for direct call header to include. This will be 37444 # AC_SUBSTed later. 37445 if test "$DIRECT_bfrops" = "v12" ; then 37446 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 37447 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 37448 str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line" 37449 eval $str 37450 else 37451as_fn_error $? "*** bfrops component v12 was supposed to be direct-called, but 37452*** does not appear to support direct calling. 37453*** Aborting" "$LINENO" 5 37454 fi 37455 fi 37456 else 37457 # were we supposed to have found something in the 37458 # post_configure.sh, but the file didn't exist? 37459 if test "$DIRECT_bfrops" = "v12" ; then 37460as_fn_error $? "*** bfrops component v12 was supposed to be direct-called, but 37461*** does not appear to support direct calling. 37462*** Aborting" "$LINENO" 5 37463 fi 37464 fi 37465 37466 else 37467 37468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v12 can compile" >&5 37469$as_echo_n "checking if MCA component bfrops:v12 can compile... " >&6; } 37470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37471$as_echo "no" >&6; } 37472 37473 # If this component was requested as the default for this 37474 # type, then abort. 37475 if test "$with_bfrops" = "v12" ; then 37476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v12\" failed to configure properly" >&5 37477$as_echo "$as_me: WARNING: MCA component \"v12\" failed to configure properly" >&2;} 37478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 37479$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 37480 as_fn_error $? "Cannot continue" "$LINENO" 5 37481 fi 37482 37483 if test ! -z "$DIRECT_bfrops" ; then 37484 if test "$DIRECT_bfrops" = "v12" ; then 37485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v12\" failed to configure properly" >&5 37486$as_echo "$as_me: WARNING: MCA component \"v12\" failed to configure properly" >&2;} 37487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 37488$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 37489 as_fn_error $? "Cannot continue" "$LINENO" 5 37490 fi 37491 fi 37492 37493 # add component to all component list 37494 all_components="$all_components v12" 37495 fi 37496 37497 # set the AM_CONDITIONAL on how we should build 37498 if test "$compile_mode" = "dso" ; then 37499 BUILD_pmix_bfrops_v12_DSO=1 37500 else 37501 BUILD_pmix_bfrops_v12_DSO=0 37502 fi 37503 if test "$BUILD_pmix_bfrops_v12_DSO" = "1"; then 37504 MCA_BUILD_pmix_bfrops_v12_DSO_TRUE= 37505 MCA_BUILD_pmix_bfrops_v12_DSO_FALSE='#' 37506else 37507 MCA_BUILD_pmix_bfrops_v12_DSO_TRUE='#' 37508 MCA_BUILD_pmix_bfrops_v12_DSO_FALSE= 37509fi 37510 37511 37512 ac_config_files="$ac_config_files src/mca/bfrops/v12/Makefile" 37513 37514 37515 unset compile_mode 37516 37517 pmix_show_subsubsubtitle "MCA component bfrops:v20 (no configuration)" 37518 37519 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 37520 37521 37522 37523 component_path="$srcdir/src/mca/bfrops/v20" 37524 want_component=0 37525 37526 # build if: 37527 # - the component type is direct and we are that component 37528 # - there is no pmix_ignore file 37529 # - there is an pmix_ignore, but there is an empty pmix_unignore 37530 # - there is an pmix_ignore, but username is in pmix_unignore 37531 if test -d $component_path ; then 37532 # decide if we want the component to be built or not. This 37533 # is spread out because some of the logic is a little complex 37534 # and test's syntax isn't exactly the greatest. We want to 37535 # build the component by default. 37536 want_component=1 37537 if test -f $component_path/.pmix_ignore ; then 37538 # If there is an pmix_ignore file, don't build 37539 # the component. Note that this decision can be 37540 # overridden by the unignore logic below. 37541 want_component=0 37542 fi 37543 if test -f $component_path/.pmix_unignore ; then 37544 # if there is an empty pmix_unignore, that is 37545 # equivalent to having your userid in the unignore file. 37546 # If userid is in the file, unignore the ignore file. 37547 if test ! -s $component_path/.pmix_unignore ; then 37548 want_component=1 37549 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 37550 want_component=1 37551 fi 37552 fi 37553 # if this component type is direct and we are not it, we don't want 37554 # to be built. Otherwise, we do want to be built. 37555 if test ! -z "$DIRECT_bfrops" ; then 37556 if test "$DIRECT_bfrops" = "v20" ; then 37557 want_component=1 37558 else 37559 want_component=0 37560 fi 37561 fi 37562 fi 37563 37564 # if we were explicitly disabled, don't build :) 37565 if test "$DISABLE_bfrops" = "1"; then : 37566 want_component=0 37567fi 37568 if test "$DISABLE_bfrops_v20" = "1"; then : 37569 want_component=0 37570fi 37571 37572 if test "$want_component" = "1"; then : 37573 should_build=1 37574else 37575 should_build=0 37576fi 37577 37578 37579 SHARED_FRAMEWORK="$DSO_bfrops" 37580 SHARED_COMPONENT="$DSO_bfrops_v20" 37581 37582 STATIC_FRAMEWORK="$STATIC_bfrops" 37583 STATIC_COMPONENT="$STATIC_bfrops_v20" 37584 37585 shared_mode_override=static 37586 37587 # Setup for either shared or static 37588 if test "$STATIC_FRAMEWORK" = "1" || \ 37589 test "$STATIC_COMPONENT" = "1" || \ 37590 test "$STATIC_all" = "1" ; then 37591 compile_mode="static" 37592 elif test "$shared_mode_override" = "dso" || \ 37593 test "$SHARED_FRAMEWORK" = "1" || \ 37594 test "$SHARED_COMPONENT" = "1" || \ 37595 test "$DSO_all" = "1"; then 37596 compile_mode="dso" 37597 else 37598 compile_mode="static" 37599 fi 37600 37601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v20 compile mode" >&5 37602$as_echo_n "checking for MCA component bfrops:v20 compile mode... " >&6; } 37603 if test "$DIRECT_bfrops" = "v20" ; then 37604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 37605$as_echo "$compile_mode - direct" >&6; } 37606 else 37607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 37608$as_echo "$compile_mode" >&6; } 37609 fi 37610 37611 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 37612 37613 if test "$should_build" = "1" ; then 37614 37615 37616 37617 # See if it dropped an output file for us to pick up some 37618 # shell variables in. 37619 infile="$srcdir/src/mca/bfrops/v20/post_configure.sh" 37620 37621 # Add this subdir to the mast list of all MCA component subdirs 37622 all_components="$all_components v20" 37623 37624 if test "$compile_mode" = "dso" ; then 37625 dso_components="$dso_components v20" 37626 else 37627 if test "bfrops" = "common"; then 37628 # Static libraries in "common" frameworks are installed, and 37629 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 37630 # set. 37631 static_ltlibs="mca/bfrops/v20/lib${PMIX_LIB_PREFIX}mca_bfrops_v20.la $static_ltlibs" 37632 else 37633 # Other frameworks do not have to obey the 37634 # $FRAMEWORK_LIB_PREFIX prefix. 37635 static_ltlibs="mca/bfrops/v20/libmca_bfrops_v20.la $static_ltlibs" 37636 fi 37637 echo "extern const pmix_mca_base_component_t mca_bfrops_v20_component;" >> $outfile.extern 37638 echo " &mca_bfrops_v20_component, " >> $outfile.struct 37639 static_components="$static_components v20" 37640 fi 37641 37642 # Output pretty results 37643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v20 can compile" >&5 37644$as_echo_n "checking if MCA component bfrops:v20 can compile... " >&6; } 37645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37646$as_echo "yes" >&6; } 37647 37648 if test -f $infile; then 37649 # check for direct call header to include. This will be 37650 # AC_SUBSTed later. 37651 if test "$DIRECT_bfrops" = "v20" ; then 37652 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 37653 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 37654 str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line" 37655 eval $str 37656 else 37657as_fn_error $? "*** bfrops component v20 was supposed to be direct-called, but 37658*** does not appear to support direct calling. 37659*** Aborting" "$LINENO" 5 37660 fi 37661 fi 37662 else 37663 # were we supposed to have found something in the 37664 # post_configure.sh, but the file didn't exist? 37665 if test "$DIRECT_bfrops" = "v20" ; then 37666as_fn_error $? "*** bfrops component v20 was supposed to be direct-called, but 37667*** does not appear to support direct calling. 37668*** Aborting" "$LINENO" 5 37669 fi 37670 fi 37671 37672 else 37673 37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v20 can compile" >&5 37675$as_echo_n "checking if MCA component bfrops:v20 can compile... " >&6; } 37676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37677$as_echo "no" >&6; } 37678 37679 # If this component was requested as the default for this 37680 # type, then abort. 37681 if test "$with_bfrops" = "v20" ; then 37682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v20\" failed to configure properly" >&5 37683$as_echo "$as_me: WARNING: MCA component \"v20\" failed to configure properly" >&2;} 37684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 37685$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 37686 as_fn_error $? "Cannot continue" "$LINENO" 5 37687 fi 37688 37689 if test ! -z "$DIRECT_bfrops" ; then 37690 if test "$DIRECT_bfrops" = "v20" ; then 37691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v20\" failed to configure properly" >&5 37692$as_echo "$as_me: WARNING: MCA component \"v20\" failed to configure properly" >&2;} 37693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 37694$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 37695 as_fn_error $? "Cannot continue" "$LINENO" 5 37696 fi 37697 fi 37698 37699 # add component to all component list 37700 all_components="$all_components v20" 37701 fi 37702 37703 # set the AM_CONDITIONAL on how we should build 37704 if test "$compile_mode" = "dso" ; then 37705 BUILD_pmix_bfrops_v20_DSO=1 37706 else 37707 BUILD_pmix_bfrops_v20_DSO=0 37708 fi 37709 if test "$BUILD_pmix_bfrops_v20_DSO" = "1"; then 37710 MCA_BUILD_pmix_bfrops_v20_DSO_TRUE= 37711 MCA_BUILD_pmix_bfrops_v20_DSO_FALSE='#' 37712else 37713 MCA_BUILD_pmix_bfrops_v20_DSO_TRUE='#' 37714 MCA_BUILD_pmix_bfrops_v20_DSO_FALSE= 37715fi 37716 37717 37718 ac_config_files="$ac_config_files src/mca/bfrops/v20/Makefile" 37719 37720 37721 unset compile_mode 37722 37723 pmix_show_subsubsubtitle "MCA component bfrops:v21 (no configuration)" 37724 37725 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 37726 37727 37728 37729 component_path="$srcdir/src/mca/bfrops/v21" 37730 want_component=0 37731 37732 # build if: 37733 # - the component type is direct and we are that component 37734 # - there is no pmix_ignore file 37735 # - there is an pmix_ignore, but there is an empty pmix_unignore 37736 # - there is an pmix_ignore, but username is in pmix_unignore 37737 if test -d $component_path ; then 37738 # decide if we want the component to be built or not. This 37739 # is spread out because some of the logic is a little complex 37740 # and test's syntax isn't exactly the greatest. We want to 37741 # build the component by default. 37742 want_component=1 37743 if test -f $component_path/.pmix_ignore ; then 37744 # If there is an pmix_ignore file, don't build 37745 # the component. Note that this decision can be 37746 # overridden by the unignore logic below. 37747 want_component=0 37748 fi 37749 if test -f $component_path/.pmix_unignore ; then 37750 # if there is an empty pmix_unignore, that is 37751 # equivalent to having your userid in the unignore file. 37752 # If userid is in the file, unignore the ignore file. 37753 if test ! -s $component_path/.pmix_unignore ; then 37754 want_component=1 37755 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 37756 want_component=1 37757 fi 37758 fi 37759 # if this component type is direct and we are not it, we don't want 37760 # to be built. Otherwise, we do want to be built. 37761 if test ! -z "$DIRECT_bfrops" ; then 37762 if test "$DIRECT_bfrops" = "v21" ; then 37763 want_component=1 37764 else 37765 want_component=0 37766 fi 37767 fi 37768 fi 37769 37770 # if we were explicitly disabled, don't build :) 37771 if test "$DISABLE_bfrops" = "1"; then : 37772 want_component=0 37773fi 37774 if test "$DISABLE_bfrops_v21" = "1"; then : 37775 want_component=0 37776fi 37777 37778 if test "$want_component" = "1"; then : 37779 should_build=1 37780else 37781 should_build=0 37782fi 37783 37784 37785 SHARED_FRAMEWORK="$DSO_bfrops" 37786 SHARED_COMPONENT="$DSO_bfrops_v21" 37787 37788 STATIC_FRAMEWORK="$STATIC_bfrops" 37789 STATIC_COMPONENT="$STATIC_bfrops_v21" 37790 37791 shared_mode_override=static 37792 37793 # Setup for either shared or static 37794 if test "$STATIC_FRAMEWORK" = "1" || \ 37795 test "$STATIC_COMPONENT" = "1" || \ 37796 test "$STATIC_all" = "1" ; then 37797 compile_mode="static" 37798 elif test "$shared_mode_override" = "dso" || \ 37799 test "$SHARED_FRAMEWORK" = "1" || \ 37800 test "$SHARED_COMPONENT" = "1" || \ 37801 test "$DSO_all" = "1"; then 37802 compile_mode="dso" 37803 else 37804 compile_mode="static" 37805 fi 37806 37807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v21 compile mode" >&5 37808$as_echo_n "checking for MCA component bfrops:v21 compile mode... " >&6; } 37809 if test "$DIRECT_bfrops" = "v21" ; then 37810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 37811$as_echo "$compile_mode - direct" >&6; } 37812 else 37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 37814$as_echo "$compile_mode" >&6; } 37815 fi 37816 37817 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 37818 37819 if test "$should_build" = "1" ; then 37820 37821 37822 37823 # See if it dropped an output file for us to pick up some 37824 # shell variables in. 37825 infile="$srcdir/src/mca/bfrops/v21/post_configure.sh" 37826 37827 # Add this subdir to the mast list of all MCA component subdirs 37828 all_components="$all_components v21" 37829 37830 if test "$compile_mode" = "dso" ; then 37831 dso_components="$dso_components v21" 37832 else 37833 if test "bfrops" = "common"; then 37834 # Static libraries in "common" frameworks are installed, and 37835 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 37836 # set. 37837 static_ltlibs="mca/bfrops/v21/lib${PMIX_LIB_PREFIX}mca_bfrops_v21.la $static_ltlibs" 37838 else 37839 # Other frameworks do not have to obey the 37840 # $FRAMEWORK_LIB_PREFIX prefix. 37841 static_ltlibs="mca/bfrops/v21/libmca_bfrops_v21.la $static_ltlibs" 37842 fi 37843 echo "extern const pmix_mca_base_component_t mca_bfrops_v21_component;" >> $outfile.extern 37844 echo " &mca_bfrops_v21_component, " >> $outfile.struct 37845 static_components="$static_components v21" 37846 fi 37847 37848 # Output pretty results 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v21 can compile" >&5 37850$as_echo_n "checking if MCA component bfrops:v21 can compile... " >&6; } 37851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37852$as_echo "yes" >&6; } 37853 37854 if test -f $infile; then 37855 # check for direct call header to include. This will be 37856 # AC_SUBSTed later. 37857 if test "$DIRECT_bfrops" = "v21" ; then 37858 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 37859 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 37860 str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line" 37861 eval $str 37862 else 37863as_fn_error $? "*** bfrops component v21 was supposed to be direct-called, but 37864*** does not appear to support direct calling. 37865*** Aborting" "$LINENO" 5 37866 fi 37867 fi 37868 else 37869 # were we supposed to have found something in the 37870 # post_configure.sh, but the file didn't exist? 37871 if test "$DIRECT_bfrops" = "v21" ; then 37872as_fn_error $? "*** bfrops component v21 was supposed to be direct-called, but 37873*** does not appear to support direct calling. 37874*** Aborting" "$LINENO" 5 37875 fi 37876 fi 37877 37878 else 37879 37880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v21 can compile" >&5 37881$as_echo_n "checking if MCA component bfrops:v21 can compile... " >&6; } 37882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37883$as_echo "no" >&6; } 37884 37885 # If this component was requested as the default for this 37886 # type, then abort. 37887 if test "$with_bfrops" = "v21" ; then 37888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v21\" failed to configure properly" >&5 37889$as_echo "$as_me: WARNING: MCA component \"v21\" failed to configure properly" >&2;} 37890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 37891$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 37892 as_fn_error $? "Cannot continue" "$LINENO" 5 37893 fi 37894 37895 if test ! -z "$DIRECT_bfrops" ; then 37896 if test "$DIRECT_bfrops" = "v21" ; then 37897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v21\" failed to configure properly" >&5 37898$as_echo "$as_me: WARNING: MCA component \"v21\" failed to configure properly" >&2;} 37899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 37900$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 37901 as_fn_error $? "Cannot continue" "$LINENO" 5 37902 fi 37903 fi 37904 37905 # add component to all component list 37906 all_components="$all_components v21" 37907 fi 37908 37909 # set the AM_CONDITIONAL on how we should build 37910 if test "$compile_mode" = "dso" ; then 37911 BUILD_pmix_bfrops_v21_DSO=1 37912 else 37913 BUILD_pmix_bfrops_v21_DSO=0 37914 fi 37915 if test "$BUILD_pmix_bfrops_v21_DSO" = "1"; then 37916 MCA_BUILD_pmix_bfrops_v21_DSO_TRUE= 37917 MCA_BUILD_pmix_bfrops_v21_DSO_FALSE='#' 37918else 37919 MCA_BUILD_pmix_bfrops_v21_DSO_TRUE='#' 37920 MCA_BUILD_pmix_bfrops_v21_DSO_FALSE= 37921fi 37922 37923 37924 ac_config_files="$ac_config_files src/mca/bfrops/v21/Makefile" 37925 37926 37927 unset compile_mode 37928 37929 pmix_show_subsubsubtitle "MCA component bfrops:v3 (no configuration)" 37930 37931 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 37932 37933 37934 37935 component_path="$srcdir/src/mca/bfrops/v3" 37936 want_component=0 37937 37938 # build if: 37939 # - the component type is direct and we are that component 37940 # - there is no pmix_ignore file 37941 # - there is an pmix_ignore, but there is an empty pmix_unignore 37942 # - there is an pmix_ignore, but username is in pmix_unignore 37943 if test -d $component_path ; then 37944 # decide if we want the component to be built or not. This 37945 # is spread out because some of the logic is a little complex 37946 # and test's syntax isn't exactly the greatest. We want to 37947 # build the component by default. 37948 want_component=1 37949 if test -f $component_path/.pmix_ignore ; then 37950 # If there is an pmix_ignore file, don't build 37951 # the component. Note that this decision can be 37952 # overridden by the unignore logic below. 37953 want_component=0 37954 fi 37955 if test -f $component_path/.pmix_unignore ; then 37956 # if there is an empty pmix_unignore, that is 37957 # equivalent to having your userid in the unignore file. 37958 # If userid is in the file, unignore the ignore file. 37959 if test ! -s $component_path/.pmix_unignore ; then 37960 want_component=1 37961 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 37962 want_component=1 37963 fi 37964 fi 37965 # if this component type is direct and we are not it, we don't want 37966 # to be built. Otherwise, we do want to be built. 37967 if test ! -z "$DIRECT_bfrops" ; then 37968 if test "$DIRECT_bfrops" = "v3" ; then 37969 want_component=1 37970 else 37971 want_component=0 37972 fi 37973 fi 37974 fi 37975 37976 # if we were explicitly disabled, don't build :) 37977 if test "$DISABLE_bfrops" = "1"; then : 37978 want_component=0 37979fi 37980 if test "$DISABLE_bfrops_v3" = "1"; then : 37981 want_component=0 37982fi 37983 37984 if test "$want_component" = "1"; then : 37985 should_build=1 37986else 37987 should_build=0 37988fi 37989 37990 37991 SHARED_FRAMEWORK="$DSO_bfrops" 37992 SHARED_COMPONENT="$DSO_bfrops_v3" 37993 37994 STATIC_FRAMEWORK="$STATIC_bfrops" 37995 STATIC_COMPONENT="$STATIC_bfrops_v3" 37996 37997 shared_mode_override=static 37998 37999 # Setup for either shared or static 38000 if test "$STATIC_FRAMEWORK" = "1" || \ 38001 test "$STATIC_COMPONENT" = "1" || \ 38002 test "$STATIC_all" = "1" ; then 38003 compile_mode="static" 38004 elif test "$shared_mode_override" = "dso" || \ 38005 test "$SHARED_FRAMEWORK" = "1" || \ 38006 test "$SHARED_COMPONENT" = "1" || \ 38007 test "$DSO_all" = "1"; then 38008 compile_mode="dso" 38009 else 38010 compile_mode="static" 38011 fi 38012 38013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v3 compile mode" >&5 38014$as_echo_n "checking for MCA component bfrops:v3 compile mode... " >&6; } 38015 if test "$DIRECT_bfrops" = "v3" ; then 38016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 38017$as_echo "$compile_mode - direct" >&6; } 38018 else 38019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 38020$as_echo "$compile_mode" >&6; } 38021 fi 38022 38023 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 38024 38025 if test "$should_build" = "1" ; then 38026 38027 38028 38029 # See if it dropped an output file for us to pick up some 38030 # shell variables in. 38031 infile="$srcdir/src/mca/bfrops/v3/post_configure.sh" 38032 38033 # Add this subdir to the mast list of all MCA component subdirs 38034 all_components="$all_components v3" 38035 38036 if test "$compile_mode" = "dso" ; then 38037 dso_components="$dso_components v3" 38038 else 38039 if test "bfrops" = "common"; then 38040 # Static libraries in "common" frameworks are installed, and 38041 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 38042 # set. 38043 static_ltlibs="mca/bfrops/v3/lib${PMIX_LIB_PREFIX}mca_bfrops_v3.la $static_ltlibs" 38044 else 38045 # Other frameworks do not have to obey the 38046 # $FRAMEWORK_LIB_PREFIX prefix. 38047 static_ltlibs="mca/bfrops/v3/libmca_bfrops_v3.la $static_ltlibs" 38048 fi 38049 echo "extern const pmix_mca_base_component_t mca_bfrops_v3_component;" >> $outfile.extern 38050 echo " &mca_bfrops_v3_component, " >> $outfile.struct 38051 static_components="$static_components v3" 38052 fi 38053 38054 # Output pretty results 38055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v3 can compile" >&5 38056$as_echo_n "checking if MCA component bfrops:v3 can compile... " >&6; } 38057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38058$as_echo "yes" >&6; } 38059 38060 if test -f $infile; then 38061 # check for direct call header to include. This will be 38062 # AC_SUBSTed later. 38063 if test "$DIRECT_bfrops" = "v3" ; then 38064 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 38065 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 38066 str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line" 38067 eval $str 38068 else 38069as_fn_error $? "*** bfrops component v3 was supposed to be direct-called, but 38070*** does not appear to support direct calling. 38071*** Aborting" "$LINENO" 5 38072 fi 38073 fi 38074 else 38075 # were we supposed to have found something in the 38076 # post_configure.sh, but the file didn't exist? 38077 if test "$DIRECT_bfrops" = "v3" ; then 38078as_fn_error $? "*** bfrops component v3 was supposed to be direct-called, but 38079*** does not appear to support direct calling. 38080*** Aborting" "$LINENO" 5 38081 fi 38082 fi 38083 38084 else 38085 38086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v3 can compile" >&5 38087$as_echo_n "checking if MCA component bfrops:v3 can compile... " >&6; } 38088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38089$as_echo "no" >&6; } 38090 38091 # If this component was requested as the default for this 38092 # type, then abort. 38093 if test "$with_bfrops" = "v3" ; then 38094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v3\" failed to configure properly" >&5 38095$as_echo "$as_me: WARNING: MCA component \"v3\" failed to configure properly" >&2;} 38096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 38097$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 38098 as_fn_error $? "Cannot continue" "$LINENO" 5 38099 fi 38100 38101 if test ! -z "$DIRECT_bfrops" ; then 38102 if test "$DIRECT_bfrops" = "v3" ; then 38103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v3\" failed to configure properly" >&5 38104$as_echo "$as_me: WARNING: MCA component \"v3\" failed to configure properly" >&2;} 38105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 38106$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 38107 as_fn_error $? "Cannot continue" "$LINENO" 5 38108 fi 38109 fi 38110 38111 # add component to all component list 38112 all_components="$all_components v3" 38113 fi 38114 38115 # set the AM_CONDITIONAL on how we should build 38116 if test "$compile_mode" = "dso" ; then 38117 BUILD_pmix_bfrops_v3_DSO=1 38118 else 38119 BUILD_pmix_bfrops_v3_DSO=0 38120 fi 38121 if test "$BUILD_pmix_bfrops_v3_DSO" = "1"; then 38122 MCA_BUILD_pmix_bfrops_v3_DSO_TRUE= 38123 MCA_BUILD_pmix_bfrops_v3_DSO_FALSE='#' 38124else 38125 MCA_BUILD_pmix_bfrops_v3_DSO_TRUE='#' 38126 MCA_BUILD_pmix_bfrops_v3_DSO_FALSE= 38127fi 38128 38129 38130 ac_config_files="$ac_config_files src/mca/bfrops/v3/Makefile" 38131 38132 38133 unset compile_mode 38134 38135 38136 # configure components that use built-in configuration scripts 38137 38138 38139 38140 best_mca_component_priority=0 38141 components_looking_for_succeed=1 38142 components_last_result=0 38143 38144 38145 # configure components that provide their own configure script. 38146 # It would be really hard to run these for "find first that 38147 # works", so we don't :) 38148 38149 38150 38151 if test "1" != "0"; then : 38152 38153 for component_path in $srcdir/src/mca/bfrops/* ; do 38154 component="`basename $component_path`" 38155 if test -d $component_path && test -x $component_path/configure ; then 38156 pmix_show_subsubsubtitle "MCA component bfrops:$component (need to configure)" 38157 38158 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 38159 38160 38161 38162 component_path="$srcdir/src/mca/bfrops/$component" 38163 want_component=0 38164 38165 # build if: 38166 # - the component type is direct and we are that component 38167 # - there is no pmix_ignore file 38168 # - there is an pmix_ignore, but there is an empty pmix_unignore 38169 # - there is an pmix_ignore, but username is in pmix_unignore 38170 if test -d $component_path ; then 38171 # decide if we want the component to be built or not. This 38172 # is spread out because some of the logic is a little complex 38173 # and test's syntax isn't exactly the greatest. We want to 38174 # build the component by default. 38175 want_component=1 38176 if test -f $component_path/.pmix_ignore ; then 38177 # If there is an pmix_ignore file, don't build 38178 # the component. Note that this decision can be 38179 # overridden by the unignore logic below. 38180 want_component=0 38181 fi 38182 if test -f $component_path/.pmix_unignore ; then 38183 # if there is an empty pmix_unignore, that is 38184 # equivalent to having your userid in the unignore file. 38185 # If userid is in the file, unignore the ignore file. 38186 if test ! -s $component_path/.pmix_unignore ; then 38187 want_component=1 38188 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 38189 want_component=1 38190 fi 38191 fi 38192 # if this component type is direct and we are not it, we don't want 38193 # to be built. Otherwise, we do want to be built. 38194 if test ! -z "$DIRECT_bfrops" ; then 38195 if test "$DIRECT_bfrops" = "$component" ; then 38196 want_component=1 38197 else 38198 want_component=0 38199 fi 38200 fi 38201 fi 38202 38203 # if we were explicitly disabled, don't build :) 38204 if test "$DISABLE_bfrops" = "1"; then : 38205 want_component=0 38206fi 38207 str="DISABLED_COMPONENT_CHECK=\$DISABLE_bfrops_$component" 38208 eval $str 38209 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 38210 want_component=0 38211 fi 38212 38213 if test "$want_component" = "1"; then : 38214 should_build=1 38215else 38216 should_build=0 38217fi 38218 38219 38220 SHARED_FRAMEWORK="$DSO_bfrops" 38221 str="SHARED_COMPONENT=\$DSO_bfrops_$component" 38222 eval $str 38223 38224 STATIC_FRAMEWORK="$STATIC_bfrops" 38225 str="STATIC_COMPONENT=\$STATIC_bfrops_$component" 38226 eval $str 38227 38228 shared_mode_override=static 38229 38230 # Setup for either shared or static 38231 if test "$STATIC_FRAMEWORK" = "1" || \ 38232 test "$STATIC_COMPONENT" = "1" || \ 38233 test "$STATIC_all" = "1" ; then 38234 compile_mode="static" 38235 elif test "$shared_mode_override" = "dso" || \ 38236 test "$SHARED_FRAMEWORK" = "1" || \ 38237 test "$SHARED_COMPONENT" = "1" || \ 38238 test "$DSO_all" = "1"; then 38239 compile_mode="dso" 38240 else 38241 compile_mode="static" 38242 fi 38243 38244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:$component compile mode" >&5 38245$as_echo_n "checking for MCA component bfrops:$component compile mode... " >&6; } 38246 if test "$DIRECT_bfrops" = "$component" ; then 38247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 38248$as_echo "$compile_mode - direct" >&6; } 38249 else 38250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 38251$as_echo "$compile_mode" >&6; } 38252 fi 38253 38254 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 38255 38256 if test "$should_build" = "1" ; then 38257 38258 38259 38260 # Is the private index set? If not, set it. 38261 if test "x$pmix_scope_index" = "x"; then 38262 pmix_scope_index=1 38263 fi 38264 38265 # First, check to see if any of these variables are already set. 38266 # This is a simple sanity check to ensure we're not already 38267 # overwriting pre-existing variables (that have a non-empty 38268 # value). It's not a perfect check, but at least it's something. 38269 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 38270 pmix_str="pmix_str=\"\$$pmix_var\"" 38271 eval $pmix_str 38272 38273 if test "x$pmix_str" != "x"; then 38274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 38275$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 38276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 38277$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 38278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 38279$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 38280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 38281$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 38282 as_fn_error $? "Cannot continue" "$LINENO" 5 38283 fi 38284 done 38285 38286 # Ok, we passed the simple sanity check. Save all these names so 38287 # that we can unset them at the end of the scope. 38288 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 38289 eval $pmix_str 38290 unset pmix_str 38291 38292 env | grep pmix_scope 38293 pmix_scope_index=`expr $pmix_scope_index + 1` 38294 38295 38296# 38297# Invoke configure in a specific subdirectory. 38298# 38299# src/mca/bfrops/$component is the directory to invoke in 38300# $pmix_subdir_args is the list of arguments to pass 38301# should_build=1 is actions to execute upon success 38302# should_build=0 is actions to execute upon failure 38303# 38304subdir_dir="src/mca/bfrops/$component" 38305subdir_args="$pmix_subdir_args" 38306subdir_success="should_build=1" 38307subdir_failure="should_build=0" 38308 38309# 38310# Sanity checks 38311# 38312 38313if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 38314 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 38315$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 38316 38317 # 38318 # Gotta check where srcdir is for VPATH builds. If srcdir is not 38319 # ., then we need to mkdir the subdir. Otherwise, we can just cd 38320 # into it. 38321 # 38322 38323 case $srcdir in 38324 .) 38325 ;; 38326 *) 38327 { case $subdir_dir in 38328 [\\/]* | ?:[\\/]* ) total_dir=;; 38329 *) total_dir=.;; 38330 esac 38331 temp=$subdir_dir 38332 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 38333 case $dir_part in 38334 # Skip DOS drivespec 38335 ?:) total_dir=$dir_part ;; 38336 *) total_dir=$total_dir/$dir_part 38337 test -d "$total_dir" || 38338 mkdir "$total_dir" || 38339 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 38340 ;; 38341 esac 38342 done; } 38343 38344 if test -d ./$subdir_dir; then :; 38345 else 38346 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 38347 fi 38348 ;; 38349 esac 38350 38351 # 38352 # Move into the target directory 38353 # 38354 38355 subdir_parent=`pwd` 38356 cd $subdir_dir 38357 38358 # 38359 # Make a "../" for each directory in $subdir_dir. 38360 # 38361 38362 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 38363 # 38364 # Construct the --srcdir argument 38365 # 38366 38367 case $srcdir in 38368 .) 38369 # In place 38370 subdir_srcdir="$srcdir" 38371 ;; 38372 [\\/]* | ?:[\\/]* ) 38373 # Absolute path 38374 subdir_srcdir="$srcdir/$subdir_dir" 38375 ;; 38376 *) 38377 # Relative path 38378 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 38379 ;; 38380 esac 38381 38382 # 38383 # Construct the --cache-file argument 38384 # 38385 38386 # BWB - subdir caching is a pain since we change CFLAGS and all that. 38387 # Just disable it for now 38388 subdir_cache_file="/dev/null" 38389 38390 # 38391 # Invoke the configure script in the subdirectory 38392 # 38393 38394 sub_configure="$SHELL '$subdir_srcdir/configure'" 38395 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 38396$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 38397 eval "$sub_configure $subdir_args \ 38398 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 38399 if test "$?" = "0"; then 38400 eval $subdir_success 38401 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 38402$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 38403 else 38404 eval $subdir_failure 38405 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 38406$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 38407 fi 38408 38409 # 38410 # Go back to the topdir 38411 # 38412 38413 cd $subdir_parent 38414fi 38415 38416# 38417# Clean up 38418# 38419 38420 38421 # Unwind the index 38422 pmix_scope_index=`expr $pmix_scope_index - 1` 38423 pmix_scope_test=`expr $pmix_scope_index \> 0` 38424 if test "$pmix_scope_test" = "0"; then 38425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 38426$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 38427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 38428$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 38429 as_fn_error $? "Cannot continue" "$LINENO" 5 38430 fi 38431 38432 # Get the variable names from that index 38433 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 38434 eval $pmix_str 38435 38436 # Iterate over all the variables and unset them all 38437 for pmix_var in $pmix_str; do 38438 unset $pmix_var 38439 done 38440 38441 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 38442 fi 38443 38444 if test "$should_build" = "1" ; then 38445 # do some extra work to pass flags back from the 38446 # top-level configure, the way a configure.m4 38447 # component would. 38448 infile="$srcdir/src/mca/bfrops/all_components/post_configure.sh" 38449 if test -f $infile; then 38450 38451 # First check for the ABORT tag 38452 line="`$GREP ABORT= $infile | cut -d= -f2-`" 38453 if test -n "$line" && test "$line" != "no"; then 38454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 38455$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 38456 as_fn_error $? "cannot continue" "$LINENO" 5 38457 fi 38458 fi 38459 38460 38461 38462 38463 # See if it dropped an output file for us to pick up some 38464 # shell variables in. 38465 infile="$srcdir/src/mca/bfrops/$component/post_configure.sh" 38466 38467 # Add this subdir to the mast list of all MCA component subdirs 38468 all_components="$all_components $component" 38469 38470 if test "$compile_mode" = "dso" ; then 38471 dso_components="$dso_components $component" 38472 else 38473 if test "bfrops" = "common"; then 38474 # Static libraries in "common" frameworks are installed, and 38475 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 38476 # set. 38477 static_ltlibs="mca/bfrops/$component/lib${PMIX_LIB_PREFIX}mca_bfrops_$component.la $static_ltlibs" 38478 else 38479 # Other frameworks do not have to obey the 38480 # $FRAMEWORK_LIB_PREFIX prefix. 38481 static_ltlibs="mca/bfrops/$component/libmca_bfrops_$component.la $static_ltlibs" 38482 fi 38483 echo "extern const pmix_mca_base_component_t mca_bfrops_$component_component;" >> $outfile.extern 38484 echo " &mca_bfrops_$component_component, " >> $outfile.struct 38485 static_components="$static_components $component" 38486 fi 38487 38488 # Output pretty results 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:$component can compile" >&5 38490$as_echo_n "checking if MCA component bfrops:$component can compile... " >&6; } 38491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38492$as_echo "yes" >&6; } 38493 38494 if test -f $infile; then 38495 # check for direct call header to include. This will be 38496 # AC_SUBSTed later. 38497 if test "$DIRECT_bfrops" = "$component" ; then 38498 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 38499 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 38500 str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line" 38501 eval $str 38502 else 38503as_fn_error $? "*** bfrops component $component was supposed to be direct-called, but 38504*** does not appear to support direct calling. 38505*** Aborting" "$LINENO" 5 38506 fi 38507 fi 38508 else 38509 # were we supposed to have found something in the 38510 # post_configure.sh, but the file didn't exist? 38511 if test "$DIRECT_bfrops" = "$component" ; then 38512as_fn_error $? "*** bfrops component $component was supposed to be direct-called, but 38513*** does not appear to support direct calling. 38514*** Aborting" "$LINENO" 5 38515 fi 38516 fi 38517 38518 else 38519 38520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:$component can compile" >&5 38521$as_echo_n "checking if MCA component bfrops:$component can compile... " >&6; } 38522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38523$as_echo "no" >&6; } 38524 38525 # If this component was requested as the default for this 38526 # type, then abort. 38527 if test "$with_bfrops" = "$component" ; then 38528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 38529$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 38531$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 38532 as_fn_error $? "Cannot continue" "$LINENO" 5 38533 fi 38534 38535 if test ! -z "$DIRECT_bfrops" ; then 38536 if test "$DIRECT_bfrops" = "$component" ; then 38537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 38538$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 38539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 38540$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 38541 as_fn_error $? "Cannot continue" "$LINENO" 5 38542 fi 38543 fi 38544 38545 fi 38546 fi 38547 done 38548 38549fi 38550 38551 MCA_pmix_bfrops_ALL_COMPONENTS="$all_components" 38552 MCA_pmix_bfrops_STATIC_COMPONENTS="$static_components" 38553 MCA_pmix_bfrops_DSO_COMPONENTS="$dso_components" 38554 MCA_pmix_bfrops_STATIC_LTLIBS="$static_ltlibs" 38555 38556 38557 38558 38559 38560 38561 38562 MCA_pmix_bfrops_ALL_SUBDIRS= 38563 for item in $all_components ; do 38564 MCA_pmix_bfrops_ALL_SUBDIRS="$MCA_pmix_bfrops_ALL_SUBDIRS mca/bfrops/$item" 38565 done 38566 38567 38568 38569 MCA_pmix_bfrops_STATIC_SUBDIRS= 38570 for item in $static_components ; do 38571 MCA_pmix_bfrops_STATIC_SUBDIRS="$MCA_pmix_bfrops_STATIC_SUBDIRS mca/bfrops/$item" 38572 done 38573 38574 38575 38576 MCA_pmix_bfrops_DSO_SUBDIRS= 38577 for item in $dso_components ; do 38578 MCA_pmix_bfrops_DSO_SUBDIRS="$MCA_pmix_bfrops_DSO_SUBDIRS mca/bfrops/$item" 38579 done 38580 38581 38582 38583 # Create the final .h file that will be included in the type's 38584 # top-level glue. This lists all the static components. We don't 38585 # need to do this for "common". 38586 if test "bfrops" != "common"; then 38587 cat > $outfile <<EOF 38588/* 38589 * \$HEADER\$ 38590 */ 38591#if defined(c_plusplus) || defined(__cplusplus) 38592extern "C" { 38593#endif 38594 38595`cat $outfile.extern` 38596 38597const pmix_mca_base_component_t *mca_bfrops_base_static_components[] = { 38598`cat $outfile.struct` 38599 NULL 38600}; 38601 38602#if defined(c_plusplus) || defined(__cplusplus) 38603} 38604#endif 38605 38606EOF 38607 # Only replace the header file if a) it doesn't previously 38608 # exist, or b) the contents are different. Do this to not 38609 # trigger recompilation of certain .c files just because the 38610 # timestamp changed on $outfile_real (similar to the way AC 38611 # handles AC_CONFIG_HEADER files). 38612 diff $outfile $outfile_real > /dev/null 2>&1 38613 if test "$?" != "0"; then 38614 mv $outfile $outfile_real 38615 else 38616 rm -f $outfile 38617 fi 38618 fi 38619 rm -f $outfile.struct $outfile.extern 38620 38621 unset all_components static_components dso_components outfile outfile_real 38622 38623 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS gds" 38624 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/gds" 38625 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_gds_ALL_SUBDIRS)" 38626 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_gds_DSO_SUBDIRS)" 38627 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_gds_STATIC_SUBDIRS)" 38628 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/gds/libmca_gds.la" 38629 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_gds_STATIC_LTLIBS)" 38630 38631 pmix_show_subsubtitle "Configuring MCA framework gds" 38632 38633 38634 38635 38636 # setup for framework 38637 all_components= 38638 static_components= 38639 dso_components= 38640 static_ltlibs= 38641 38642 # Ensure that the directory where the #include file is to live 38643 # exists. Need to do this for VPATH builds, because the directory 38644 # may not exist yet. For the "common" type, it's not really a 38645 # component, so it doesn't have a base. 38646 outdir=src/mca/gds/base 38647 as_dir=$outdir; as_fn_mkdir_p 38648 38649 # emit Makefile rule 38650 ac_config_files="$ac_config_files src/mca/gds/Makefile" 38651 38652 38653 # remove any previously generated #include files 38654 outfile_real=$outdir/static-components.h 38655 outfile=$outfile_real.new 38656 rm -f $outfile $outfile.struct $outfile.extern 38657 touch $outfile.struct $outfile.extern 38658 38659 # print some nice messages about what we're about to do... 38660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework gds" >&5 38661$as_echo_n "checking for no configure components in framework gds... " >&6; } 38662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: hash" >&5 38663$as_echo "hash" >&6; } 38664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework gds" >&5 38665$as_echo_n "checking for m4 configure components in framework gds... " >&6; } 38666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ds12, ds21" >&5 38667$as_echo "ds12, ds21" >&6; } 38668 38669 # If there are components in the no configure list, but we're 38670 # doing one of the "special" selection logics, abort with a 38671 # reasonable message. 38672 38673 38674 38675 # run the configure logic for the no-config components 38676 38677 pmix_show_subsubsubtitle "MCA component gds:hash (no configuration)" 38678 38679 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 38680 38681 38682 38683 component_path="$srcdir/src/mca/gds/hash" 38684 want_component=0 38685 38686 # build if: 38687 # - the component type is direct and we are that component 38688 # - there is no pmix_ignore file 38689 # - there is an pmix_ignore, but there is an empty pmix_unignore 38690 # - there is an pmix_ignore, but username is in pmix_unignore 38691 if test -d $component_path ; then 38692 # decide if we want the component to be built or not. This 38693 # is spread out because some of the logic is a little complex 38694 # and test's syntax isn't exactly the greatest. We want to 38695 # build the component by default. 38696 want_component=1 38697 if test -f $component_path/.pmix_ignore ; then 38698 # If there is an pmix_ignore file, don't build 38699 # the component. Note that this decision can be 38700 # overridden by the unignore logic below. 38701 want_component=0 38702 fi 38703 if test -f $component_path/.pmix_unignore ; then 38704 # if there is an empty pmix_unignore, that is 38705 # equivalent to having your userid in the unignore file. 38706 # If userid is in the file, unignore the ignore file. 38707 if test ! -s $component_path/.pmix_unignore ; then 38708 want_component=1 38709 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 38710 want_component=1 38711 fi 38712 fi 38713 # if this component type is direct and we are not it, we don't want 38714 # to be built. Otherwise, we do want to be built. 38715 if test ! -z "$DIRECT_gds" ; then 38716 if test "$DIRECT_gds" = "hash" ; then 38717 want_component=1 38718 else 38719 want_component=0 38720 fi 38721 fi 38722 fi 38723 38724 # if we were explicitly disabled, don't build :) 38725 if test "$DISABLE_gds" = "1"; then : 38726 want_component=0 38727fi 38728 if test "$DISABLE_gds_hash" = "1"; then : 38729 want_component=0 38730fi 38731 38732 if test "$want_component" = "1"; then : 38733 should_build=1 38734else 38735 should_build=0 38736fi 38737 38738 38739 SHARED_FRAMEWORK="$DSO_gds" 38740 SHARED_COMPONENT="$DSO_gds_hash" 38741 38742 STATIC_FRAMEWORK="$STATIC_gds" 38743 STATIC_COMPONENT="$STATIC_gds_hash" 38744 38745 shared_mode_override=static 38746 38747 # Setup for either shared or static 38748 if test "$STATIC_FRAMEWORK" = "1" || \ 38749 test "$STATIC_COMPONENT" = "1" || \ 38750 test "$STATIC_all" = "1" ; then 38751 compile_mode="static" 38752 elif test "$shared_mode_override" = "dso" || \ 38753 test "$SHARED_FRAMEWORK" = "1" || \ 38754 test "$SHARED_COMPONENT" = "1" || \ 38755 test "$DSO_all" = "1"; then 38756 compile_mode="dso" 38757 else 38758 compile_mode="static" 38759 fi 38760 38761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:hash compile mode" >&5 38762$as_echo_n "checking for MCA component gds:hash compile mode... " >&6; } 38763 if test "$DIRECT_gds" = "hash" ; then 38764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 38765$as_echo "$compile_mode - direct" >&6; } 38766 else 38767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 38768$as_echo "$compile_mode" >&6; } 38769 fi 38770 38771 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 38772 38773 if test "$should_build" = "1" ; then 38774 38775 38776 38777 # See if it dropped an output file for us to pick up some 38778 # shell variables in. 38779 infile="$srcdir/src/mca/gds/hash/post_configure.sh" 38780 38781 # Add this subdir to the mast list of all MCA component subdirs 38782 all_components="$all_components hash" 38783 38784 if test "$compile_mode" = "dso" ; then 38785 dso_components="$dso_components hash" 38786 else 38787 if test "gds" = "common"; then 38788 # Static libraries in "common" frameworks are installed, and 38789 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 38790 # set. 38791 static_ltlibs="mca/gds/hash/lib${PMIX_LIB_PREFIX}mca_gds_hash.la $static_ltlibs" 38792 else 38793 # Other frameworks do not have to obey the 38794 # $FRAMEWORK_LIB_PREFIX prefix. 38795 static_ltlibs="mca/gds/hash/libmca_gds_hash.la $static_ltlibs" 38796 fi 38797 echo "extern const pmix_mca_base_component_t mca_gds_hash_component;" >> $outfile.extern 38798 echo " &mca_gds_hash_component, " >> $outfile.struct 38799 static_components="$static_components hash" 38800 fi 38801 38802 # Output pretty results 38803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:hash can compile" >&5 38804$as_echo_n "checking if MCA component gds:hash can compile... " >&6; } 38805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38806$as_echo "yes" >&6; } 38807 38808 if test -f $infile; then 38809 # check for direct call header to include. This will be 38810 # AC_SUBSTed later. 38811 if test "$DIRECT_gds" = "hash" ; then 38812 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 38813 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 38814 str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line" 38815 eval $str 38816 else 38817as_fn_error $? "*** gds component hash was supposed to be direct-called, but 38818*** does not appear to support direct calling. 38819*** Aborting" "$LINENO" 5 38820 fi 38821 fi 38822 else 38823 # were we supposed to have found something in the 38824 # post_configure.sh, but the file didn't exist? 38825 if test "$DIRECT_gds" = "hash" ; then 38826as_fn_error $? "*** gds component hash was supposed to be direct-called, but 38827*** does not appear to support direct calling. 38828*** Aborting" "$LINENO" 5 38829 fi 38830 fi 38831 38832 else 38833 38834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:hash can compile" >&5 38835$as_echo_n "checking if MCA component gds:hash can compile... " >&6; } 38836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38837$as_echo "no" >&6; } 38838 38839 # If this component was requested as the default for this 38840 # type, then abort. 38841 if test "$with_gds" = "hash" ; then 38842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hash\" failed to configure properly" >&5 38843$as_echo "$as_me: WARNING: MCA component \"hash\" failed to configure properly" >&2;} 38844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 38845$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 38846 as_fn_error $? "Cannot continue" "$LINENO" 5 38847 fi 38848 38849 if test ! -z "$DIRECT_gds" ; then 38850 if test "$DIRECT_gds" = "hash" ; then 38851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hash\" failed to configure properly" >&5 38852$as_echo "$as_me: WARNING: MCA component \"hash\" failed to configure properly" >&2;} 38853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 38854$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 38855 as_fn_error $? "Cannot continue" "$LINENO" 5 38856 fi 38857 fi 38858 38859 # add component to all component list 38860 all_components="$all_components hash" 38861 fi 38862 38863 # set the AM_CONDITIONAL on how we should build 38864 if test "$compile_mode" = "dso" ; then 38865 BUILD_pmix_gds_hash_DSO=1 38866 else 38867 BUILD_pmix_gds_hash_DSO=0 38868 fi 38869 if test "$BUILD_pmix_gds_hash_DSO" = "1"; then 38870 MCA_BUILD_pmix_gds_hash_DSO_TRUE= 38871 MCA_BUILD_pmix_gds_hash_DSO_FALSE='#' 38872else 38873 MCA_BUILD_pmix_gds_hash_DSO_TRUE='#' 38874 MCA_BUILD_pmix_gds_hash_DSO_FALSE= 38875fi 38876 38877 38878 ac_config_files="$ac_config_files src/mca/gds/hash/Makefile" 38879 38880 38881 unset compile_mode 38882 38883 38884 # configure components that use built-in configuration scripts 38885 38886 38887 38888 best_mca_component_priority=0 38889 components_looking_for_succeed=1 38890 components_last_result=0 38891 38892 38893 pmix_show_subsubsubtitle "MCA component gds:ds12 (m4 configuration macro)" 38894 38895 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 38896 38897 38898 38899 component_path="$srcdir/src/mca/gds/ds12" 38900 want_component=0 38901 38902 # build if: 38903 # - the component type is direct and we are that component 38904 # - there is no pmix_ignore file 38905 # - there is an pmix_ignore, but there is an empty pmix_unignore 38906 # - there is an pmix_ignore, but username is in pmix_unignore 38907 if test -d $component_path ; then 38908 # decide if we want the component to be built or not. This 38909 # is spread out because some of the logic is a little complex 38910 # and test's syntax isn't exactly the greatest. We want to 38911 # build the component by default. 38912 want_component=1 38913 if test -f $component_path/.pmix_ignore ; then 38914 # If there is an pmix_ignore file, don't build 38915 # the component. Note that this decision can be 38916 # overridden by the unignore logic below. 38917 want_component=0 38918 fi 38919 if test -f $component_path/.pmix_unignore ; then 38920 # if there is an empty pmix_unignore, that is 38921 # equivalent to having your userid in the unignore file. 38922 # If userid is in the file, unignore the ignore file. 38923 if test ! -s $component_path/.pmix_unignore ; then 38924 want_component=1 38925 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 38926 want_component=1 38927 fi 38928 fi 38929 # if this component type is direct and we are not it, we don't want 38930 # to be built. Otherwise, we do want to be built. 38931 if test ! -z "$DIRECT_gds" ; then 38932 if test "$DIRECT_gds" = "ds12" ; then 38933 want_component=1 38934 else 38935 want_component=0 38936 fi 38937 fi 38938 fi 38939 38940 # if we were explicitly disabled, don't build :) 38941 if test "$DISABLE_gds" = "1"; then : 38942 want_component=0 38943fi 38944 if test "$DISABLE_gds_ds12" = "1"; then : 38945 want_component=0 38946fi 38947 38948 if test "$want_component" = "1"; then : 38949 should_build=$components_looking_for_succeed 38950else 38951 should_build=0 38952fi 38953 38954 # Allow the component to override the build mode if it really wants to. 38955 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 38956 38957 SHARED_FRAMEWORK="$DSO_gds" 38958 SHARED_COMPONENT="$DSO_gds_ds12" 38959 38960 STATIC_FRAMEWORK="$STATIC_gds" 38961 STATIC_COMPONENT="$STATIC_gds_ds12" 38962 38963 shared_mode_override=static 38964 38965 # Setup for either shared or static 38966 if test "$STATIC_FRAMEWORK" = "1" || \ 38967 test "$STATIC_COMPONENT" = "1" || \ 38968 test "$STATIC_all" = "1" ; then 38969 compile_mode="static" 38970 elif test "$shared_mode_override" = "dso" || \ 38971 test "$SHARED_FRAMEWORK" = "1" || \ 38972 test "$SHARED_COMPONENT" = "1" || \ 38973 test "$DSO_all" = "1"; then 38974 compile_mode="dso" 38975 else 38976 compile_mode="static" 38977 fi 38978 38979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:ds12 compile mode" >&5 38980$as_echo_n "checking for MCA component gds:ds12 compile mode... " >&6; } 38981 if test "$DIRECT_gds" = "ds12" ; then 38982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 38983$as_echo "$compile_mode - direct" >&6; } 38984 else 38985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 38986$as_echo "$compile_mode" >&6; } 38987 fi 38988 38989 38990 # try to configure the component 38991 38992 ac_config_files="$ac_config_files src/mca/gds/ds12/Makefile" 38993 38994 38995 if test "$pmix_fcntl_flock_happy" = "yes"; then : 38996 should_build=$should_build 38997else 38998 if test "$pmix_pthread_rwlockattr_setpshared" = "yes" && test "$pmix_pthread_process_shared" = "yes"; then : 38999 should_build=$should_build 39000else 39001 should_build=0 39002fi 39003fi 39004 39005 39006 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 39007 39008 if test "$should_build" = "1"; then : 39009 39010 39011 39012 # See if it dropped an output file for us to pick up some 39013 # shell variables in. 39014 infile="$srcdir/src/mca/gds/ds12/post_configure.sh" 39015 39016 # Add this subdir to the mast list of all MCA component subdirs 39017 all_components="$all_components ds12" 39018 39019 if test "$compile_mode" = "dso" ; then 39020 dso_components="$dso_components ds12" 39021 else 39022 if test "gds" = "common"; then 39023 # Static libraries in "common" frameworks are installed, and 39024 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 39025 # set. 39026 static_ltlibs="mca/gds/ds12/lib${PMIX_LIB_PREFIX}mca_gds_ds12.la $static_ltlibs" 39027 else 39028 # Other frameworks do not have to obey the 39029 # $FRAMEWORK_LIB_PREFIX prefix. 39030 static_ltlibs="mca/gds/ds12/libmca_gds_ds12.la $static_ltlibs" 39031 fi 39032 echo "extern const pmix_mca_base_component_t mca_gds_ds12_component;" >> $outfile.extern 39033 echo " &mca_gds_ds12_component, " >> $outfile.struct 39034 static_components="$static_components ds12" 39035 fi 39036 39037 # Output pretty results 39038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds12 can compile" >&5 39039$as_echo_n "checking if MCA component gds:ds12 can compile... " >&6; } 39040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39041$as_echo "yes" >&6; } 39042 39043 if test -f $infile; then 39044 # check for direct call header to include. This will be 39045 # AC_SUBSTed later. 39046 if test "$DIRECT_gds" = "ds12" ; then 39047 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 39048 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 39049 str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line" 39050 eval $str 39051 else 39052as_fn_error $? "*** gds component ds12 was supposed to be direct-called, but 39053*** does not appear to support direct calling. 39054*** Aborting" "$LINENO" 5 39055 fi 39056 fi 39057 else 39058 # were we supposed to have found something in the 39059 # post_configure.sh, but the file didn't exist? 39060 if test "$DIRECT_gds" = "ds12" ; then 39061as_fn_error $? "*** gds component ds12 was supposed to be direct-called, but 39062*** does not appear to support direct calling. 39063*** Aborting" "$LINENO" 5 39064 fi 39065 fi 39066 39067else 39068 39069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds12 can compile" >&5 39070$as_echo_n "checking if MCA component gds:ds12 can compile... " >&6; } 39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39072$as_echo "no" >&6; } 39073 39074 # If this component was requested as the default for this 39075 # type, then abort. 39076 if test "$with_gds" = "ds12" ; then 39077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds12\" failed to configure properly" >&5 39078$as_echo "$as_me: WARNING: MCA component \"ds12\" failed to configure properly" >&2;} 39079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 39080$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 39081 as_fn_error $? "Cannot continue" "$LINENO" 5 39082 fi 39083 39084 if test ! -z "$DIRECT_gds" ; then 39085 if test "$DIRECT_gds" = "ds12" ; then 39086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds12\" failed to configure properly" >&5 39087$as_echo "$as_me: WARNING: MCA component \"ds12\" failed to configure properly" >&2;} 39088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 39089$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 39090 as_fn_error $? "Cannot continue" "$LINENO" 5 39091 fi 39092 fi 39093 39094 # add component to all component list 39095 all_components="$all_components ds12" 39096fi 39097 39098 39099 39100 # set the AM_CONDITIONAL on how we should build 39101 if test "$compile_mode" = "dso"; then : 39102 BUILD_pmix_gds_ds12_DSO=1 39103else 39104 BUILD_pmix_gds_ds12_DSO=0 39105fi 39106 if test "$BUILD_pmix_gds_ds12_DSO" = "1"; then 39107 MCA_BUILD_pmix_gds_ds12_DSO_TRUE= 39108 MCA_BUILD_pmix_gds_ds12_DSO_FALSE='#' 39109else 39110 MCA_BUILD_pmix_gds_ds12_DSO_TRUE='#' 39111 MCA_BUILD_pmix_gds_ds12_DSO_FALSE= 39112fi 39113 39114 39115 if test "$should_build" = "1"; then : 39116 components_last_result=1 39117else 39118 components_last_result=0 39119fi 39120 39121 unset compile_mode 39122 39123 39124 39125 39126 39127 pmix_show_subsubsubtitle "MCA component gds:ds21 (m4 configuration macro)" 39128 39129 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 39130 39131 39132 39133 component_path="$srcdir/src/mca/gds/ds21" 39134 want_component=0 39135 39136 # build if: 39137 # - the component type is direct and we are that component 39138 # - there is no pmix_ignore file 39139 # - there is an pmix_ignore, but there is an empty pmix_unignore 39140 # - there is an pmix_ignore, but username is in pmix_unignore 39141 if test -d $component_path ; then 39142 # decide if we want the component to be built or not. This 39143 # is spread out because some of the logic is a little complex 39144 # and test's syntax isn't exactly the greatest. We want to 39145 # build the component by default. 39146 want_component=1 39147 if test -f $component_path/.pmix_ignore ; then 39148 # If there is an pmix_ignore file, don't build 39149 # the component. Note that this decision can be 39150 # overridden by the unignore logic below. 39151 want_component=0 39152 fi 39153 if test -f $component_path/.pmix_unignore ; then 39154 # if there is an empty pmix_unignore, that is 39155 # equivalent to having your userid in the unignore file. 39156 # If userid is in the file, unignore the ignore file. 39157 if test ! -s $component_path/.pmix_unignore ; then 39158 want_component=1 39159 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 39160 want_component=1 39161 fi 39162 fi 39163 # if this component type is direct and we are not it, we don't want 39164 # to be built. Otherwise, we do want to be built. 39165 if test ! -z "$DIRECT_gds" ; then 39166 if test "$DIRECT_gds" = "ds21" ; then 39167 want_component=1 39168 else 39169 want_component=0 39170 fi 39171 fi 39172 fi 39173 39174 # if we were explicitly disabled, don't build :) 39175 if test "$DISABLE_gds" = "1"; then : 39176 want_component=0 39177fi 39178 if test "$DISABLE_gds_ds21" = "1"; then : 39179 want_component=0 39180fi 39181 39182 if test "$want_component" = "1"; then : 39183 should_build=$components_looking_for_succeed 39184else 39185 should_build=0 39186fi 39187 39188 # Allow the component to override the build mode if it really wants to. 39189 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 39190 39191 SHARED_FRAMEWORK="$DSO_gds" 39192 SHARED_COMPONENT="$DSO_gds_ds21" 39193 39194 STATIC_FRAMEWORK="$STATIC_gds" 39195 STATIC_COMPONENT="$STATIC_gds_ds21" 39196 39197 shared_mode_override=static 39198 39199 # Setup for either shared or static 39200 if test "$STATIC_FRAMEWORK" = "1" || \ 39201 test "$STATIC_COMPONENT" = "1" || \ 39202 test "$STATIC_all" = "1" ; then 39203 compile_mode="static" 39204 elif test "$shared_mode_override" = "dso" || \ 39205 test "$SHARED_FRAMEWORK" = "1" || \ 39206 test "$SHARED_COMPONENT" = "1" || \ 39207 test "$DSO_all" = "1"; then 39208 compile_mode="dso" 39209 else 39210 compile_mode="static" 39211 fi 39212 39213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:ds21 compile mode" >&5 39214$as_echo_n "checking for MCA component gds:ds21 compile mode... " >&6; } 39215 if test "$DIRECT_gds" = "ds21" ; then 39216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 39217$as_echo "$compile_mode - direct" >&6; } 39218 else 39219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 39220$as_echo "$compile_mode" >&6; } 39221 fi 39222 39223 39224 # try to configure the component 39225 39226 ac_config_files="$ac_config_files src/mca/gds/ds21/Makefile" 39227 39228 39229 if test "$pmix_pthread_mutexattr_setpshared" = "yes" && test "$pmix_pthread_process_shared" = "yes"; then : 39230 should_build=$should_build 39231else 39232 should_build=0 39233fi 39234 39235 39236 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 39237 39238 if test "$should_build" = "1"; then : 39239 39240 39241 39242 # See if it dropped an output file for us to pick up some 39243 # shell variables in. 39244 infile="$srcdir/src/mca/gds/ds21/post_configure.sh" 39245 39246 # Add this subdir to the mast list of all MCA component subdirs 39247 all_components="$all_components ds21" 39248 39249 if test "$compile_mode" = "dso" ; then 39250 dso_components="$dso_components ds21" 39251 else 39252 if test "gds" = "common"; then 39253 # Static libraries in "common" frameworks are installed, and 39254 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 39255 # set. 39256 static_ltlibs="mca/gds/ds21/lib${PMIX_LIB_PREFIX}mca_gds_ds21.la $static_ltlibs" 39257 else 39258 # Other frameworks do not have to obey the 39259 # $FRAMEWORK_LIB_PREFIX prefix. 39260 static_ltlibs="mca/gds/ds21/libmca_gds_ds21.la $static_ltlibs" 39261 fi 39262 echo "extern const pmix_mca_base_component_t mca_gds_ds21_component;" >> $outfile.extern 39263 echo " &mca_gds_ds21_component, " >> $outfile.struct 39264 static_components="$static_components ds21" 39265 fi 39266 39267 # Output pretty results 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds21 can compile" >&5 39269$as_echo_n "checking if MCA component gds:ds21 can compile... " >&6; } 39270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39271$as_echo "yes" >&6; } 39272 39273 if test -f $infile; then 39274 # check for direct call header to include. This will be 39275 # AC_SUBSTed later. 39276 if test "$DIRECT_gds" = "ds21" ; then 39277 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 39278 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 39279 str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line" 39280 eval $str 39281 else 39282as_fn_error $? "*** gds component ds21 was supposed to be direct-called, but 39283*** does not appear to support direct calling. 39284*** Aborting" "$LINENO" 5 39285 fi 39286 fi 39287 else 39288 # were we supposed to have found something in the 39289 # post_configure.sh, but the file didn't exist? 39290 if test "$DIRECT_gds" = "ds21" ; then 39291as_fn_error $? "*** gds component ds21 was supposed to be direct-called, but 39292*** does not appear to support direct calling. 39293*** Aborting" "$LINENO" 5 39294 fi 39295 fi 39296 39297else 39298 39299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds21 can compile" >&5 39300$as_echo_n "checking if MCA component gds:ds21 can compile... " >&6; } 39301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39302$as_echo "no" >&6; } 39303 39304 # If this component was requested as the default for this 39305 # type, then abort. 39306 if test "$with_gds" = "ds21" ; then 39307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds21\" failed to configure properly" >&5 39308$as_echo "$as_me: WARNING: MCA component \"ds21\" failed to configure properly" >&2;} 39309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 39310$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 39311 as_fn_error $? "Cannot continue" "$LINENO" 5 39312 fi 39313 39314 if test ! -z "$DIRECT_gds" ; then 39315 if test "$DIRECT_gds" = "ds21" ; then 39316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds21\" failed to configure properly" >&5 39317$as_echo "$as_me: WARNING: MCA component \"ds21\" failed to configure properly" >&2;} 39318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 39319$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 39320 as_fn_error $? "Cannot continue" "$LINENO" 5 39321 fi 39322 fi 39323 39324 # add component to all component list 39325 all_components="$all_components ds21" 39326fi 39327 39328 39329 39330 # set the AM_CONDITIONAL on how we should build 39331 if test "$compile_mode" = "dso"; then : 39332 BUILD_pmix_gds_ds21_DSO=1 39333else 39334 BUILD_pmix_gds_ds21_DSO=0 39335fi 39336 if test "$BUILD_pmix_gds_ds21_DSO" = "1"; then 39337 MCA_BUILD_pmix_gds_ds21_DSO_TRUE= 39338 MCA_BUILD_pmix_gds_ds21_DSO_FALSE='#' 39339else 39340 MCA_BUILD_pmix_gds_ds21_DSO_TRUE='#' 39341 MCA_BUILD_pmix_gds_ds21_DSO_FALSE= 39342fi 39343 39344 39345 if test "$should_build" = "1"; then : 39346 components_last_result=1 39347else 39348 components_last_result=0 39349fi 39350 39351 unset compile_mode 39352 39353 39354 39355 39356 39357 # configure components that provide their own configure script. 39358 # It would be really hard to run these for "find first that 39359 # works", so we don't :) 39360 39361 39362 39363 if test "1" != "0"; then : 39364 39365 for component_path in $srcdir/src/mca/gds/* ; do 39366 component="`basename $component_path`" 39367 if test -d $component_path && test -x $component_path/configure ; then 39368 pmix_show_subsubsubtitle "MCA component gds:$component (need to configure)" 39369 39370 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 39371 39372 39373 39374 component_path="$srcdir/src/mca/gds/$component" 39375 want_component=0 39376 39377 # build if: 39378 # - the component type is direct and we are that component 39379 # - there is no pmix_ignore file 39380 # - there is an pmix_ignore, but there is an empty pmix_unignore 39381 # - there is an pmix_ignore, but username is in pmix_unignore 39382 if test -d $component_path ; then 39383 # decide if we want the component to be built or not. This 39384 # is spread out because some of the logic is a little complex 39385 # and test's syntax isn't exactly the greatest. We want to 39386 # build the component by default. 39387 want_component=1 39388 if test -f $component_path/.pmix_ignore ; then 39389 # If there is an pmix_ignore file, don't build 39390 # the component. Note that this decision can be 39391 # overridden by the unignore logic below. 39392 want_component=0 39393 fi 39394 if test -f $component_path/.pmix_unignore ; then 39395 # if there is an empty pmix_unignore, that is 39396 # equivalent to having your userid in the unignore file. 39397 # If userid is in the file, unignore the ignore file. 39398 if test ! -s $component_path/.pmix_unignore ; then 39399 want_component=1 39400 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 39401 want_component=1 39402 fi 39403 fi 39404 # if this component type is direct and we are not it, we don't want 39405 # to be built. Otherwise, we do want to be built. 39406 if test ! -z "$DIRECT_gds" ; then 39407 if test "$DIRECT_gds" = "$component" ; then 39408 want_component=1 39409 else 39410 want_component=0 39411 fi 39412 fi 39413 fi 39414 39415 # if we were explicitly disabled, don't build :) 39416 if test "$DISABLE_gds" = "1"; then : 39417 want_component=0 39418fi 39419 str="DISABLED_COMPONENT_CHECK=\$DISABLE_gds_$component" 39420 eval $str 39421 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 39422 want_component=0 39423 fi 39424 39425 if test "$want_component" = "1"; then : 39426 should_build=1 39427else 39428 should_build=0 39429fi 39430 39431 39432 SHARED_FRAMEWORK="$DSO_gds" 39433 str="SHARED_COMPONENT=\$DSO_gds_$component" 39434 eval $str 39435 39436 STATIC_FRAMEWORK="$STATIC_gds" 39437 str="STATIC_COMPONENT=\$STATIC_gds_$component" 39438 eval $str 39439 39440 shared_mode_override=static 39441 39442 # Setup for either shared or static 39443 if test "$STATIC_FRAMEWORK" = "1" || \ 39444 test "$STATIC_COMPONENT" = "1" || \ 39445 test "$STATIC_all" = "1" ; then 39446 compile_mode="static" 39447 elif test "$shared_mode_override" = "dso" || \ 39448 test "$SHARED_FRAMEWORK" = "1" || \ 39449 test "$SHARED_COMPONENT" = "1" || \ 39450 test "$DSO_all" = "1"; then 39451 compile_mode="dso" 39452 else 39453 compile_mode="static" 39454 fi 39455 39456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:$component compile mode" >&5 39457$as_echo_n "checking for MCA component gds:$component compile mode... " >&6; } 39458 if test "$DIRECT_gds" = "$component" ; then 39459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 39460$as_echo "$compile_mode - direct" >&6; } 39461 else 39462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 39463$as_echo "$compile_mode" >&6; } 39464 fi 39465 39466 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 39467 39468 if test "$should_build" = "1" ; then 39469 39470 39471 39472 # Is the private index set? If not, set it. 39473 if test "x$pmix_scope_index" = "x"; then 39474 pmix_scope_index=1 39475 fi 39476 39477 # First, check to see if any of these variables are already set. 39478 # This is a simple sanity check to ensure we're not already 39479 # overwriting pre-existing variables (that have a non-empty 39480 # value). It's not a perfect check, but at least it's something. 39481 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 39482 pmix_str="pmix_str=\"\$$pmix_var\"" 39483 eval $pmix_str 39484 39485 if test "x$pmix_str" != "x"; then 39486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 39487$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 39488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 39489$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 39490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 39491$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 39492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 39493$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 39494 as_fn_error $? "Cannot continue" "$LINENO" 5 39495 fi 39496 done 39497 39498 # Ok, we passed the simple sanity check. Save all these names so 39499 # that we can unset them at the end of the scope. 39500 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 39501 eval $pmix_str 39502 unset pmix_str 39503 39504 env | grep pmix_scope 39505 pmix_scope_index=`expr $pmix_scope_index + 1` 39506 39507 39508# 39509# Invoke configure in a specific subdirectory. 39510# 39511# src/mca/gds/$component is the directory to invoke in 39512# $pmix_subdir_args is the list of arguments to pass 39513# should_build=1 is actions to execute upon success 39514# should_build=0 is actions to execute upon failure 39515# 39516subdir_dir="src/mca/gds/$component" 39517subdir_args="$pmix_subdir_args" 39518subdir_success="should_build=1" 39519subdir_failure="should_build=0" 39520 39521# 39522# Sanity checks 39523# 39524 39525if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 39526 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 39527$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 39528 39529 # 39530 # Gotta check where srcdir is for VPATH builds. If srcdir is not 39531 # ., then we need to mkdir the subdir. Otherwise, we can just cd 39532 # into it. 39533 # 39534 39535 case $srcdir in 39536 .) 39537 ;; 39538 *) 39539 { case $subdir_dir in 39540 [\\/]* | ?:[\\/]* ) total_dir=;; 39541 *) total_dir=.;; 39542 esac 39543 temp=$subdir_dir 39544 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 39545 case $dir_part in 39546 # Skip DOS drivespec 39547 ?:) total_dir=$dir_part ;; 39548 *) total_dir=$total_dir/$dir_part 39549 test -d "$total_dir" || 39550 mkdir "$total_dir" || 39551 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 39552 ;; 39553 esac 39554 done; } 39555 39556 if test -d ./$subdir_dir; then :; 39557 else 39558 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 39559 fi 39560 ;; 39561 esac 39562 39563 # 39564 # Move into the target directory 39565 # 39566 39567 subdir_parent=`pwd` 39568 cd $subdir_dir 39569 39570 # 39571 # Make a "../" for each directory in $subdir_dir. 39572 # 39573 39574 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 39575 # 39576 # Construct the --srcdir argument 39577 # 39578 39579 case $srcdir in 39580 .) 39581 # In place 39582 subdir_srcdir="$srcdir" 39583 ;; 39584 [\\/]* | ?:[\\/]* ) 39585 # Absolute path 39586 subdir_srcdir="$srcdir/$subdir_dir" 39587 ;; 39588 *) 39589 # Relative path 39590 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 39591 ;; 39592 esac 39593 39594 # 39595 # Construct the --cache-file argument 39596 # 39597 39598 # BWB - subdir caching is a pain since we change CFLAGS and all that. 39599 # Just disable it for now 39600 subdir_cache_file="/dev/null" 39601 39602 # 39603 # Invoke the configure script in the subdirectory 39604 # 39605 39606 sub_configure="$SHELL '$subdir_srcdir/configure'" 39607 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 39608$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 39609 eval "$sub_configure $subdir_args \ 39610 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 39611 if test "$?" = "0"; then 39612 eval $subdir_success 39613 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 39614$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 39615 else 39616 eval $subdir_failure 39617 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 39618$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 39619 fi 39620 39621 # 39622 # Go back to the topdir 39623 # 39624 39625 cd $subdir_parent 39626fi 39627 39628# 39629# Clean up 39630# 39631 39632 39633 # Unwind the index 39634 pmix_scope_index=`expr $pmix_scope_index - 1` 39635 pmix_scope_test=`expr $pmix_scope_index \> 0` 39636 if test "$pmix_scope_test" = "0"; then 39637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 39638$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 39639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 39640$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 39641 as_fn_error $? "Cannot continue" "$LINENO" 5 39642 fi 39643 39644 # Get the variable names from that index 39645 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 39646 eval $pmix_str 39647 39648 # Iterate over all the variables and unset them all 39649 for pmix_var in $pmix_str; do 39650 unset $pmix_var 39651 done 39652 39653 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 39654 fi 39655 39656 if test "$should_build" = "1" ; then 39657 # do some extra work to pass flags back from the 39658 # top-level configure, the way a configure.m4 39659 # component would. 39660 infile="$srcdir/src/mca/gds/all_components/post_configure.sh" 39661 if test -f $infile; then 39662 39663 # First check for the ABORT tag 39664 line="`$GREP ABORT= $infile | cut -d= -f2-`" 39665 if test -n "$line" && test "$line" != "no"; then 39666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 39667$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 39668 as_fn_error $? "cannot continue" "$LINENO" 5 39669 fi 39670 fi 39671 39672 39673 39674 39675 # See if it dropped an output file for us to pick up some 39676 # shell variables in. 39677 infile="$srcdir/src/mca/gds/$component/post_configure.sh" 39678 39679 # Add this subdir to the mast list of all MCA component subdirs 39680 all_components="$all_components $component" 39681 39682 if test "$compile_mode" = "dso" ; then 39683 dso_components="$dso_components $component" 39684 else 39685 if test "gds" = "common"; then 39686 # Static libraries in "common" frameworks are installed, and 39687 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 39688 # set. 39689 static_ltlibs="mca/gds/$component/lib${PMIX_LIB_PREFIX}mca_gds_$component.la $static_ltlibs" 39690 else 39691 # Other frameworks do not have to obey the 39692 # $FRAMEWORK_LIB_PREFIX prefix. 39693 static_ltlibs="mca/gds/$component/libmca_gds_$component.la $static_ltlibs" 39694 fi 39695 echo "extern const pmix_mca_base_component_t mca_gds_$component_component;" >> $outfile.extern 39696 echo " &mca_gds_$component_component, " >> $outfile.struct 39697 static_components="$static_components $component" 39698 fi 39699 39700 # Output pretty results 39701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:$component can compile" >&5 39702$as_echo_n "checking if MCA component gds:$component can compile... " >&6; } 39703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39704$as_echo "yes" >&6; } 39705 39706 if test -f $infile; then 39707 # check for direct call header to include. This will be 39708 # AC_SUBSTed later. 39709 if test "$DIRECT_gds" = "$component" ; then 39710 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 39711 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 39712 str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line" 39713 eval $str 39714 else 39715as_fn_error $? "*** gds component $component was supposed to be direct-called, but 39716*** does not appear to support direct calling. 39717*** Aborting" "$LINENO" 5 39718 fi 39719 fi 39720 else 39721 # were we supposed to have found something in the 39722 # post_configure.sh, but the file didn't exist? 39723 if test "$DIRECT_gds" = "$component" ; then 39724as_fn_error $? "*** gds component $component was supposed to be direct-called, but 39725*** does not appear to support direct calling. 39726*** Aborting" "$LINENO" 5 39727 fi 39728 fi 39729 39730 else 39731 39732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:$component can compile" >&5 39733$as_echo_n "checking if MCA component gds:$component can compile... " >&6; } 39734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39735$as_echo "no" >&6; } 39736 39737 # If this component was requested as the default for this 39738 # type, then abort. 39739 if test "$with_gds" = "$component" ; then 39740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 39741$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 39742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 39743$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 39744 as_fn_error $? "Cannot continue" "$LINENO" 5 39745 fi 39746 39747 if test ! -z "$DIRECT_gds" ; then 39748 if test "$DIRECT_gds" = "$component" ; then 39749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 39750$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 39751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 39752$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 39753 as_fn_error $? "Cannot continue" "$LINENO" 5 39754 fi 39755 fi 39756 39757 fi 39758 fi 39759 done 39760 39761fi 39762 39763 MCA_pmix_gds_ALL_COMPONENTS="$all_components" 39764 MCA_pmix_gds_STATIC_COMPONENTS="$static_components" 39765 MCA_pmix_gds_DSO_COMPONENTS="$dso_components" 39766 MCA_pmix_gds_STATIC_LTLIBS="$static_ltlibs" 39767 39768 39769 39770 39771 39772 39773 39774 MCA_pmix_gds_ALL_SUBDIRS= 39775 for item in $all_components ; do 39776 MCA_pmix_gds_ALL_SUBDIRS="$MCA_pmix_gds_ALL_SUBDIRS mca/gds/$item" 39777 done 39778 39779 39780 39781 MCA_pmix_gds_STATIC_SUBDIRS= 39782 for item in $static_components ; do 39783 MCA_pmix_gds_STATIC_SUBDIRS="$MCA_pmix_gds_STATIC_SUBDIRS mca/gds/$item" 39784 done 39785 39786 39787 39788 MCA_pmix_gds_DSO_SUBDIRS= 39789 for item in $dso_components ; do 39790 MCA_pmix_gds_DSO_SUBDIRS="$MCA_pmix_gds_DSO_SUBDIRS mca/gds/$item" 39791 done 39792 39793 39794 39795 # Create the final .h file that will be included in the type's 39796 # top-level glue. This lists all the static components. We don't 39797 # need to do this for "common". 39798 if test "gds" != "common"; then 39799 cat > $outfile <<EOF 39800/* 39801 * \$HEADER\$ 39802 */ 39803#if defined(c_plusplus) || defined(__cplusplus) 39804extern "C" { 39805#endif 39806 39807`cat $outfile.extern` 39808 39809const pmix_mca_base_component_t *mca_gds_base_static_components[] = { 39810`cat $outfile.struct` 39811 NULL 39812}; 39813 39814#if defined(c_plusplus) || defined(__cplusplus) 39815} 39816#endif 39817 39818EOF 39819 # Only replace the header file if a) it doesn't previously 39820 # exist, or b) the contents are different. Do this to not 39821 # trigger recompilation of certain .c files just because the 39822 # timestamp changed on $outfile_real (similar to the way AC 39823 # handles AC_CONFIG_HEADER files). 39824 diff $outfile $outfile_real > /dev/null 2>&1 39825 if test "$?" != "0"; then 39826 mv $outfile $outfile_real 39827 else 39828 rm -f $outfile 39829 fi 39830 fi 39831 rm -f $outfile.struct $outfile.extern 39832 39833 unset all_components static_components dso_components outfile outfile_real 39834 39835 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pcompress" 39836 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pcompress" 39837 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pcompress_ALL_SUBDIRS)" 39838 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pcompress_DSO_SUBDIRS)" 39839 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pcompress_STATIC_SUBDIRS)" 39840 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pcompress/libmca_pcompress.la" 39841 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pcompress_STATIC_LTLIBS)" 39842 39843 pmix_show_subsubtitle "Configuring MCA framework pcompress" 39844 39845 39846 39847 39848 # setup for framework 39849 all_components= 39850 static_components= 39851 dso_components= 39852 static_ltlibs= 39853 39854 # Ensure that the directory where the #include file is to live 39855 # exists. Need to do this for VPATH builds, because the directory 39856 # may not exist yet. For the "common" type, it's not really a 39857 # component, so it doesn't have a base. 39858 outdir=src/mca/pcompress/base 39859 as_dir=$outdir; as_fn_mkdir_p 39860 39861 # emit Makefile rule 39862 ac_config_files="$ac_config_files src/mca/pcompress/Makefile" 39863 39864 39865 # remove any previously generated #include files 39866 outfile_real=$outdir/static-components.h 39867 outfile=$outfile_real.new 39868 rm -f $outfile $outfile.struct $outfile.extern 39869 touch $outfile.struct $outfile.extern 39870 39871 # print some nice messages about what we're about to do... 39872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pcompress" >&5 39873$as_echo_n "checking for no configure components in framework pcompress... " >&6; } 39874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 39875$as_echo "" >&6; } 39876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pcompress" >&5 39877$as_echo_n "checking for m4 configure components in framework pcompress... " >&6; } 39878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: zlib" >&5 39879$as_echo "zlib" >&6; } 39880 39881 # If there are components in the no configure list, but we're 39882 # doing one of the "special" selection logics, abort with a 39883 # reasonable message. 39884 39885 39886 39887 # run the configure logic for the no-config components 39888 39889 39890 # configure components that use built-in configuration scripts 39891 39892 39893 39894 best_mca_component_priority=0 39895 components_looking_for_succeed=1 39896 components_last_result=0 39897 39898 39899 pmix_show_subsubsubtitle "MCA component pcompress:zlib (m4 configuration macro)" 39900 39901 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 39902 39903 39904 39905 component_path="$srcdir/src/mca/pcompress/zlib" 39906 want_component=0 39907 39908 # build if: 39909 # - the component type is direct and we are that component 39910 # - there is no pmix_ignore file 39911 # - there is an pmix_ignore, but there is an empty pmix_unignore 39912 # - there is an pmix_ignore, but username is in pmix_unignore 39913 if test -d $component_path ; then 39914 # decide if we want the component to be built or not. This 39915 # is spread out because some of the logic is a little complex 39916 # and test's syntax isn't exactly the greatest. We want to 39917 # build the component by default. 39918 want_component=1 39919 if test -f $component_path/.pmix_ignore ; then 39920 # If there is an pmix_ignore file, don't build 39921 # the component. Note that this decision can be 39922 # overridden by the unignore logic below. 39923 want_component=0 39924 fi 39925 if test -f $component_path/.pmix_unignore ; then 39926 # if there is an empty pmix_unignore, that is 39927 # equivalent to having your userid in the unignore file. 39928 # If userid is in the file, unignore the ignore file. 39929 if test ! -s $component_path/.pmix_unignore ; then 39930 want_component=1 39931 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 39932 want_component=1 39933 fi 39934 fi 39935 # if this component type is direct and we are not it, we don't want 39936 # to be built. Otherwise, we do want to be built. 39937 if test ! -z "$DIRECT_pcompress" ; then 39938 if test "$DIRECT_pcompress" = "zlib" ; then 39939 want_component=1 39940 else 39941 want_component=0 39942 fi 39943 fi 39944 fi 39945 39946 # if we were explicitly disabled, don't build :) 39947 if test "$DISABLE_pcompress" = "1"; then : 39948 want_component=0 39949fi 39950 if test "$DISABLE_pcompress_zlib" = "1"; then : 39951 want_component=0 39952fi 39953 39954 if test "$want_component" = "1"; then : 39955 should_build=$components_looking_for_succeed 39956else 39957 should_build=0 39958fi 39959 39960 # Allow the component to override the build mode if it really wants to. 39961 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 39962 39963 SHARED_FRAMEWORK="$DSO_pcompress" 39964 SHARED_COMPONENT="$DSO_pcompress_zlib" 39965 39966 STATIC_FRAMEWORK="$STATIC_pcompress" 39967 STATIC_COMPONENT="$STATIC_pcompress_zlib" 39968 39969 shared_mode_override=static 39970 39971 # Setup for either shared or static 39972 if test "$STATIC_FRAMEWORK" = "1" || \ 39973 test "$STATIC_COMPONENT" = "1" || \ 39974 test "$STATIC_all" = "1" ; then 39975 compile_mode="static" 39976 elif test "$shared_mode_override" = "dso" || \ 39977 test "$SHARED_FRAMEWORK" = "1" || \ 39978 test "$SHARED_COMPONENT" = "1" || \ 39979 test "$DSO_all" = "1"; then 39980 compile_mode="dso" 39981 else 39982 compile_mode="static" 39983 fi 39984 39985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pcompress:zlib compile mode" >&5 39986$as_echo_n "checking for MCA component pcompress:zlib compile mode... " >&6; } 39987 if test "$DIRECT_pcompress" = "zlib" ; then 39988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 39989$as_echo "$compile_mode - direct" >&6; } 39990 else 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 39992$as_echo "$compile_mode" >&6; } 39993 fi 39994 39995 39996 # try to configure the component 39997 39998 ac_config_files="$ac_config_files src/mca/pcompress/zlib/Makefile" 39999 40000 40001 40002 40003 # Is the private index set? If not, set it. 40004 if test "x$pmix_scope_index" = "x"; then 40005 pmix_scope_index=1 40006 fi 40007 40008 # First, check to see if any of these variables are already set. 40009 # This is a simple sanity check to ensure we're not already 40010 # overwriting pre-existing variables (that have a non-empty 40011 # value). It's not a perfect check, but at least it's something. 40012 for pmix_var in pmix_zlib_dir pmix_zlib_libdir pmix_zlib_standard_lib_location pmix_zlib_standard_header_location pmix_check_zlib_save_CPPFLAGS pmix_check_zlib_save_LDFLAGS pmix_check_zlib_save_LIBS; do 40013 pmix_str="pmix_str=\"\$$pmix_var\"" 40014 eval $pmix_str 40015 40016 if test "x$pmix_str" != "x"; then 40017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 40018$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 40019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 40020$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 40021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 40022$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 40023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 40024$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 40025 as_fn_error $? "Cannot continue" "$LINENO" 5 40026 fi 40027 done 40028 40029 # Ok, we passed the simple sanity check. Save all these names so 40030 # that we can unset them at the end of the scope. 40031 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_zlib_dir pmix_zlib_libdir pmix_zlib_standard_lib_location pmix_zlib_standard_header_location pmix_check_zlib_save_CPPFLAGS pmix_check_zlib_save_LDFLAGS pmix_check_zlib_save_LIBS\"" 40032 eval $pmix_str 40033 unset pmix_str 40034 40035 env | grep pmix_scope 40036 pmix_scope_index=`expr $pmix_scope_index + 1` 40037 40038 40039 40040# Check whether --with-zlib was given. 40041if test "${with_zlib+set}" = set; then : 40042 withval=$with_zlib; 40043fi 40044 40045 40046 40047# Check whether --with-zlib-libdir was given. 40048if test "${with_zlib_libdir+set}" = set; then : 40049 withval=$with_zlib_libdir; 40050fi 40051 40052 40053 pmix_check_zlib_save_CPPFLAGS="$CPPFLAGS" 40054 pmix_check_zlib_save_LDFLAGS="$LDFLAGS" 40055 pmix_check_zlib_save_LIBS="$LIBS" 40056 40057 pmix_zlib_support=0 40058 40059 if test "$with_zlib" != "no"; then 40060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib in" >&5 40061$as_echo_n "checking for zlib in... " >&6; } 40062 if test ! -z "$with_zlib" && test "$with_zlib" != "yes"; then 40063 pmix_zlib_dir=$with_zlib 40064 pmix_zlib_source=$with_zlib 40065 pmix_zlib_standard_header_location=no 40066 pmix_zlib_standard_lib_location=no 40067 if test -z "$with_zlib_libdir" || test "$with_zlib_libdir" = "yes"; then : 40068 if test -d $with_zlib/lib; then 40069 pmix_zlib_libdir=$with_zlib/lib 40070 elif test -d $with_zlib/lib64; then 40071 pmix_zlib_libdir=$with_zlib/lib64 40072 else 40073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_zlib/lib or $with_zlib/lib64" >&5 40074$as_echo "Could not find $with_zlib/lib or $with_zlib/lib64" >&6; } 40075 as_fn_error $? "Can not continue" "$LINENO" 5 40076 fi 40077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_zlib_dir and $pmix_zlib_libdir" >&5 40078$as_echo "$pmix_zlib_dir and $pmix_zlib_libdir" >&6; } 40079else 40080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_libdir" >&5 40081$as_echo "$with_zlib_libdir" >&6; } 40082fi 40083 else 40084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 40085$as_echo "(default search paths)" >&6; } 40086 pmix_zlib_source=standard 40087 pmix_zlib_standard_header_location=yes 40088 pmix_zlib_standard_lib_location=yes 40089 fi 40090 if test ! -z "$with_zlib_libdir" && test "$with_zlib_libdir" != "yes"; then : 40091 pmix_zlib_libdir="$with_zlib_libdir" 40092 pmix_zlib_standard_lib_location=no 40093fi 40094 40095 40096 pmix_check_package_pcompress_zlib_save_CPPFLAGS="$CPPFLAGS" 40097 pmix_check_package_pcompress_zlib_save_LDFLAGS="$LDFLAGS" 40098 pmix_check_package_pcompress_zlib_save_LIBS="$LIBS" 40099 40100 pmix_check_package_pcompress_zlib_orig_CPPFLAGS="$pcompress_zlib_CPPFLAGS" 40101 pmix_check_package_pcompress_zlib_orig_LDFLAGS="$pcompress_zlib_LDFLAGS" 40102 pmix_check_package_pcompress_zlib_orig_LIBS="$pcompress_zlib_LIBS" 40103 40104 40105 # This is stolen from autoconf to peek under the covers to get the 40106 # cache variable for the library check. one should not copy this 40107 # code into other places unless you want much pain and suffering 40108 40109 40110 # so this sucks, but there's no way to get through the progression 40111 # of header includes without killing off the cache variable and trying 40112 # again... 40113 unset ac_cv_header_zlib_h 40114 pmix_check_package_header_happy="no" 40115 40116 # get rid of the trailing slash(es) 40117 hdir_prefix=$(echo $pmix_zlib_dir | sed -e 'sX/*$XXg') 40118 40119 if test "$hdir_prefix" = "" || \ 40120 test "$hdir_prefix" = "/usr" || \ 40121 test "$hdir_prefix" = "/usr/local"; then : 40122 # try as is... 40123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 40124$as_echo "looking for header without includes" >&6; } 40125 for ac_header in zlib.h 40126do : 40127 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 40128if test "x$ac_cv_header_zlib_h" = xyes; then : 40129 cat >>confdefs.h <<_ACEOF 40130#define HAVE_ZLIB_H 1 40131_ACEOF 40132 pmix_check_package_header_happy="yes" 40133fi 40134 40135done 40136 40137 if test "$pmix_check_package_header_happy" = "no"; then : 40138 # no go on the as is - reset the cache and try again 40139 unset ac_cv_header_zlib_h 40140fi 40141fi 40142 40143 if test "$pmix_check_package_header_happy" = "no"; then : 40144 if test "$hdir_prefix" != ""; then : 40145 pcompress_zlib_CPPFLAGS="$pcompress_zlib_CPPFLAGS -I$hdir_prefix" 40146 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 40147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 40148$as_echo "looking for header in $hdir_prefix" >&6; } 40149 for ac_header in zlib.h 40150do : 40151 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 40152if test "x$ac_cv_header_zlib_h" = xyes; then : 40153 cat >>confdefs.h <<_ACEOF 40154#define HAVE_ZLIB_H 1 40155_ACEOF 40156 pmix_check_package_header_happy="yes" 40157fi 40158 40159done 40160 40161 if test "$pmix_check_package_header_happy" = "no"; then : 40162 unset ac_cv_header_zlib_h 40163 pcompress_zlib_CPPFLAGS="$pcompress_zlib_CPPFLAGS -I$hdir_prefix/include" 40164 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 40165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 40166$as_echo "looking for header in $hdir_prefix/include" >&6; } 40167 for ac_header in zlib.h 40168do : 40169 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 40170if test "x$ac_cv_header_zlib_h" = xyes; then : 40171 cat >>confdefs.h <<_ACEOF 40172#define HAVE_ZLIB_H 1 40173_ACEOF 40174 pmix_check_package_header_happy="yes" 40175fi 40176 40177done 40178 40179fi 40180fi 40181fi 40182 40183 if test "$pmix_check_package_header_happy" = "yes"; then : 40184 40185 # This is stolen from autoconf to peek under the covers to get the 40186 # cache variable for the library check. one should not copy this 40187 # code into other places unless you want much pain and suffering 40188 40189 # see comment above 40190 unset ac_cv_lib_z_deflate 40191 pmix_check_package_lib_happy="no" 40192 40193 # get rid of the trailing slash(es) 40194 libdir_prefix=$(echo $pmix_zlib_libdir | sed -e 'sX/*$XXg') 40195 40196 if test "$libdir_prefix" != ""; then : 40197 # libdir was specified - search only there 40198 pcompress_zlib_LDFLAGS="$pcompress_zlib_LDFLAGS -L$libdir_prefix" 40199 LDFLAGS="$LDFLAGS -L$libdir_prefix" 40200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 40201$as_echo_n "checking for library containing deflate... " >&6; } 40202if ${ac_cv_search_deflate+:} false; then : 40203 $as_echo_n "(cached) " >&6 40204else 40205 ac_func_search_save_LIBS=$LIBS 40206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40207/* end confdefs.h. */ 40208 40209/* Override any GCC internal prototype to avoid an error. 40210 Use char because int might match the return type of a GCC 40211 builtin and then its argument prototype would still apply. */ 40212#ifdef __cplusplus 40213extern "C" 40214#endif 40215char deflate (); 40216int 40217main () 40218{ 40219return deflate (); 40220 ; 40221 return 0; 40222} 40223_ACEOF 40224for ac_lib in '' z; do 40225 if test -z "$ac_lib"; then 40226 ac_res="none required" 40227 else 40228 ac_res=-l$ac_lib 40229 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 40230 fi 40231 if ac_fn_c_try_link "$LINENO"; then : 40232 ac_cv_search_deflate=$ac_res 40233fi 40234rm -f core conftest.err conftest.$ac_objext \ 40235 conftest$ac_exeext 40236 if ${ac_cv_search_deflate+:} false; then : 40237 break 40238fi 40239done 40240if ${ac_cv_search_deflate+:} false; then : 40241 40242else 40243 ac_cv_search_deflate=no 40244fi 40245rm conftest.$ac_ext 40246LIBS=$ac_func_search_save_LIBS 40247fi 40248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 40249$as_echo "$ac_cv_search_deflate" >&6; } 40250ac_res=$ac_cv_search_deflate 40251if test "$ac_res" != no; then : 40252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 40253 pmix_check_package_lib_happy="yes" 40254else 40255 pmix_check_package_lib_happy="no" 40256fi 40257 40258 if test "$pmix_check_package_lib_happy" = "no"; then : 40259 LDFLAGS="$pmix_check_package_pcompress_zlib_save_LDFLAGS" 40260 pcompress_zlib_LDFLAGS="$pmix_check_package_pcompress_zlib_orig_LDFLAGS" 40261 unset ac_cv_lib_z_deflate 40262fi 40263else 40264 # libdir was not specified - go through search path 40265 # get rid of the trailing slash(es) 40266 libdir_prefix=$(echo $pmix_zlib_dir | sed -e 'sX/*$XXg') 40267 40268 # first try standard locations as otherwise our 40269 # searches with libdir_prefix locations might come 40270 # back positive and unnecessarily add an LDFLAG 40271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 40272$as_echo "looking for library without search path" >&6; } 40273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 40274$as_echo_n "checking for library containing deflate... " >&6; } 40275if ${ac_cv_search_deflate+:} false; then : 40276 $as_echo_n "(cached) " >&6 40277else 40278 ac_func_search_save_LIBS=$LIBS 40279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40280/* end confdefs.h. */ 40281 40282/* Override any GCC internal prototype to avoid an error. 40283 Use char because int might match the return type of a GCC 40284 builtin and then its argument prototype would still apply. */ 40285#ifdef __cplusplus 40286extern "C" 40287#endif 40288char deflate (); 40289int 40290main () 40291{ 40292return deflate (); 40293 ; 40294 return 0; 40295} 40296_ACEOF 40297for ac_lib in '' z; do 40298 if test -z "$ac_lib"; then 40299 ac_res="none required" 40300 else 40301 ac_res=-l$ac_lib 40302 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 40303 fi 40304 if ac_fn_c_try_link "$LINENO"; then : 40305 ac_cv_search_deflate=$ac_res 40306fi 40307rm -f core conftest.err conftest.$ac_objext \ 40308 conftest$ac_exeext 40309 if ${ac_cv_search_deflate+:} false; then : 40310 break 40311fi 40312done 40313if ${ac_cv_search_deflate+:} false; then : 40314 40315else 40316 ac_cv_search_deflate=no 40317fi 40318rm conftest.$ac_ext 40319LIBS=$ac_func_search_save_LIBS 40320fi 40321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 40322$as_echo "$ac_cv_search_deflate" >&6; } 40323ac_res=$ac_cv_search_deflate 40324if test "$ac_res" != no; then : 40325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 40326 pmix_check_package_lib_happy="yes" 40327else 40328 pmix_check_package_lib_happy="no" 40329fi 40330 40331 if test "$pmix_check_package_lib_happy" = "no"; then : 40332 # no go on the as is.. see what happens later... 40333 LDFLAGS="$pmix_check_package_pcompress_zlib_save_LDFLAGS" 40334 pcompress_zlib_LDFLAGS="$pmix_check_package_pcompress_zlib_orig_LDFLAGS" 40335 unset ac_cv_lib_z_deflate 40336fi 40337 40338 if test "$pmix_check_package_lib_happy" = "no"; then : 40339 # if we didn't find it, check the libdir_prefix/lib64 directory 40340 if test "$libdir_prefix" != "" && \ 40341 test "$libdir_prefix" != "/usr" && \ 40342 test "$libdir_prefix" != "/usr/local"; then : 40343 pcompress_zlib_LDFLAGS="$pcompress_zlib_LDFLAGS -L$libdir_prefix/lib64" 40344 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 40345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 40346$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 40347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 40348$as_echo_n "checking for library containing deflate... " >&6; } 40349if ${ac_cv_search_deflate+:} false; then : 40350 $as_echo_n "(cached) " >&6 40351else 40352 ac_func_search_save_LIBS=$LIBS 40353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40354/* end confdefs.h. */ 40355 40356/* Override any GCC internal prototype to avoid an error. 40357 Use char because int might match the return type of a GCC 40358 builtin and then its argument prototype would still apply. */ 40359#ifdef __cplusplus 40360extern "C" 40361#endif 40362char deflate (); 40363int 40364main () 40365{ 40366return deflate (); 40367 ; 40368 return 0; 40369} 40370_ACEOF 40371for ac_lib in '' z; do 40372 if test -z "$ac_lib"; then 40373 ac_res="none required" 40374 else 40375 ac_res=-l$ac_lib 40376 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 40377 fi 40378 if ac_fn_c_try_link "$LINENO"; then : 40379 ac_cv_search_deflate=$ac_res 40380fi 40381rm -f core conftest.err conftest.$ac_objext \ 40382 conftest$ac_exeext 40383 if ${ac_cv_search_deflate+:} false; then : 40384 break 40385fi 40386done 40387if ${ac_cv_search_deflate+:} false; then : 40388 40389else 40390 ac_cv_search_deflate=no 40391fi 40392rm conftest.$ac_ext 40393LIBS=$ac_func_search_save_LIBS 40394fi 40395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 40396$as_echo "$ac_cv_search_deflate" >&6; } 40397ac_res=$ac_cv_search_deflate 40398if test "$ac_res" != no; then : 40399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 40400 pmix_check_package_lib_happy="yes" 40401else 40402 pmix_check_package_lib_happy="no" 40403fi 40404 40405 if test "$pmix_check_package_lib_happy" = "no"; then : 40406 # no go on the as is.. see what happens later... 40407 LDFLAGS="$pmix_check_package_pcompress_zlib_save_LDFLAGS" 40408 pcompress_zlib_LDFLAGS="$pmix_check_package_pcompress_zlib_orig_LDFLAGS" 40409 unset ac_cv_lib_z_deflate 40410fi 40411fi 40412fi 40413 40414 if test "$pmix_check_package_lib_happy" = "no"; then : 40415 # if we still haven't found it, check the libdir_prefix/lib directory 40416 if test "$libdir_prefix" != "" && \ 40417 test "$libdir_prefix" != "/usr" && \ 40418 test "$libdir_prefix" != "/usr/local"; then : 40419 pcompress_zlib_LDFLAGS="$pcompress_zlib_LDFLAGS -L$libdir_prefix/lib" 40420 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 40421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 40422$as_echo "looking for library in $libdir_prefix/lib" >&6; } 40423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 40424$as_echo_n "checking for library containing deflate... " >&6; } 40425if ${ac_cv_search_deflate+:} false; then : 40426 $as_echo_n "(cached) " >&6 40427else 40428 ac_func_search_save_LIBS=$LIBS 40429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40430/* end confdefs.h. */ 40431 40432/* Override any GCC internal prototype to avoid an error. 40433 Use char because int might match the return type of a GCC 40434 builtin and then its argument prototype would still apply. */ 40435#ifdef __cplusplus 40436extern "C" 40437#endif 40438char deflate (); 40439int 40440main () 40441{ 40442return deflate (); 40443 ; 40444 return 0; 40445} 40446_ACEOF 40447for ac_lib in '' z; do 40448 if test -z "$ac_lib"; then 40449 ac_res="none required" 40450 else 40451 ac_res=-l$ac_lib 40452 LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS" 40453 fi 40454 if ac_fn_c_try_link "$LINENO"; then : 40455 ac_cv_search_deflate=$ac_res 40456fi 40457rm -f core conftest.err conftest.$ac_objext \ 40458 conftest$ac_exeext 40459 if ${ac_cv_search_deflate+:} false; then : 40460 break 40461fi 40462done 40463if ${ac_cv_search_deflate+:} false; then : 40464 40465else 40466 ac_cv_search_deflate=no 40467fi 40468rm conftest.$ac_ext 40469LIBS=$ac_func_search_save_LIBS 40470fi 40471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 40472$as_echo "$ac_cv_search_deflate" >&6; } 40473ac_res=$ac_cv_search_deflate 40474if test "$ac_res" != no; then : 40475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 40476 pmix_check_package_lib_happy="yes" 40477else 40478 pmix_check_package_lib_happy="no" 40479fi 40480 40481 if test "$pmix_check_package_lib_happy" = "no"; then : 40482 # no go on the as is.. see what happens later... 40483 LDFLAGS="$pmix_check_package_pcompress_zlib_save_LDFLAGS" 40484 pcompress_zlib_LDFLAGS="$pmix_check_package_pcompress_zlib_orig_LDFLAGS" 40485 unset ac_cv_lib_z_deflate 40486fi 40487fi 40488fi 40489 40490fi 40491 40492 40493 if test "$pmix_check_package_lib_happy" = "yes"; then : 40494 pcompress_zlib_LIBS="-lz -lz" 40495 pmix_check_package_happy="yes" 40496else 40497 pmix_check_package_happy="no" 40498fi 40499 if test "$pmix_check_package_lib_happy" = "yes"; then : 40500 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 40501 if test "$ac_cv_search_deflate" != "no" && 40502 test "$ac_cv_search_deflate" != "none required"; then : 40503 pcompress_zlib_LIBS="$ac_cv_search_deflate -lz" 40504else 40505 pcompress_zlib_LIBS="-lz" 40506fi 40507 pmix_check_package_happy="yes" 40508else 40509 pmix_check_package_happy="no" 40510fi 40511 40512 40513else 40514 pmix_check_package_happy="no" 40515fi 40516 40517 unset pmix_check_package_header_happy 40518 40519 40520 40521 if test "$pmix_check_package_happy" = "yes"; then : 40522 pmix_zlib_support=1 40523else 40524 pcompress_zlib_CPPFLAGS="$pmix_check_package_pcompress_zlib_orig_CPPFLAGS" 40525 pcompress_zlib_LDFLAGS="$pmix_check_package_pcompress_zlib_orig_LDFLAGS" 40526 pcompress_zlib_LIBS="$pmix_check_package_pcompress_zlib_orig_LIBS" 40527 pmix_zlib_support=0 40528fi 40529 40530 CPPFLAGS="$pmix_check_package_pcompress_zlib_save_CPPFLAGS" 40531 LDFLAGS="$pmix_check_package_pcompress_zlib_save_LDFLAGS" 40532 LIBS="$pmix_check_package_pcompress_zlib_save_LIBS" 40533 40534 fi 40535 40536 if test ! -z "$with_zlib" && test "$with_zlib" != "no" && test "$pmix_zlib_support" != "1"; then 40537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&5 40538$as_echo "$as_me: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&2;} 40539 as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5 40540 fi 40541 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking will zlib support be built" >&5 40543$as_echo_n "checking will zlib support be built... " >&6; } 40544 if test "$pmix_zlib_support" != "1"; then 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40546$as_echo "no" >&6; } 40547 else 40548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40549$as_echo "yes" >&6; } 40550 fi 40551 40552 CPPFLAGS="$pmix_check_zlib_save_CPPFLAGS" 40553 LDFLAGS="$pmix_check_zlib_save_LDFLAGS" 40554 LIBS="$pmix_check_zlib_save_LIBS" 40555 40556 if test "$pmix_zlib_support" = "1"; then : 40557 should_build=$should_build 40558 pcompress_zlib_LIBS=-lz 40559 40560 40561 40562 # Is the private index set? If not, set it. 40563 if test "x$pmix_scope_index" = "x"; then 40564 pmix_scope_index=1 40565 fi 40566 40567 # First, check to see if any of these variables are already set. 40568 # This is a simple sanity check to ensure we're not already 40569 # overwriting pre-existing variables (that have a non-empty 40570 # value). It's not a perfect check, but at least it's something. 40571 for pmix_var in pmix_summary_section pmix_summary_line pmix_summary_section_current; do 40572 pmix_str="pmix_str=\"\$$pmix_var\"" 40573 eval $pmix_str 40574 40575 if test "x$pmix_str" != "x"; then 40576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 40577$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 40578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 40579$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 40580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 40581$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 40582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 40583$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 40584 as_fn_error $? "Cannot continue" "$LINENO" 5 40585 fi 40586 done 40587 40588 # Ok, we passed the simple sanity check. Save all these names so 40589 # that we can unset them at the end of the scope. 40590 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_line pmix_summary_section_current\"" 40591 eval $pmix_str 40592 unset pmix_str 40593 40594 env | grep pmix_scope 40595 pmix_scope_index=`expr $pmix_scope_index + 1` 40596 40597 40598 pmix_summary_section=$(echo External Packages | tr ' ' '_') 40599 pmix_summary_line="ZLIB: yes ($pmix_zlib_source)" 40600 pmix_summary_section_current=$(eval echo \$pmix_summary_values_$pmix_summary_section) 40601 40602 if test -z "$pmix_summary_section_current" ; then 40603 if test -z "$pmix_summary_sections" ; then 40604 pmix_summary_sections=$pmix_summary_section 40605 else 40606 pmix_summary_sections="$pmix_summary_sections $pmix_summary_section" 40607 fi 40608 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_line\" 40609 else 40610 eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_section_current,$pmix_summary_line\" 40611 fi 40612 40613 40614 # Unwind the index 40615 pmix_scope_index=`expr $pmix_scope_index - 1` 40616 pmix_scope_test=`expr $pmix_scope_index \> 0` 40617 if test "$pmix_scope_test" = "0"; then 40618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 40619$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 40620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 40621$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 40622 as_fn_error $? "Cannot continue" "$LINENO" 5 40623 fi 40624 40625 # Get the variable names from that index 40626 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 40627 eval $pmix_str 40628 40629 # Iterate over all the variables and unset them all 40630 for pmix_var in $pmix_str; do 40631 unset $pmix_var 40632 done 40633 40634 40635else 40636 should_build=0 40637fi 40638 40639 # substitute in the things needed to build pcompress/zlib 40640 40641 40642 40643 40644 40645 PMIX_EMBEDDED_LIBS="$PMIX_EMBEDDED_LIBS $pcompress_zlib_LIBS" 40646 PMIX_EMBEDDED_LDFLAGS="$PMIX_EMBEDDED_LDFLAGS $pcompress_zlib_LDFLAGS" 40647 PMIX_EMBEDDED_CPPFLAGS="$PMIX_EMBEDDED_CPPFLAGS $pcompress_zlib_CPPFLAGS" 40648 40649 40650 # Unwind the index 40651 pmix_scope_index=`expr $pmix_scope_index - 1` 40652 pmix_scope_test=`expr $pmix_scope_index \> 0` 40653 if test "$pmix_scope_test" = "0"; then 40654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 40655$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 40656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 40657$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 40658 as_fn_error $? "Cannot continue" "$LINENO" 5 40659 fi 40660 40661 # Get the variable names from that index 40662 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 40663 eval $pmix_str 40664 40665 # Iterate over all the variables and unset them all 40666 for pmix_var in $pmix_str; do 40667 unset $pmix_var 40668 done 40669 40670 40671 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 40672 40673 if test "$should_build" = "1"; then : 40674 40675 40676 40677 # See if it dropped an output file for us to pick up some 40678 # shell variables in. 40679 infile="$srcdir/src/mca/pcompress/zlib/post_configure.sh" 40680 40681 # Add this subdir to the mast list of all MCA component subdirs 40682 all_components="$all_components zlib" 40683 40684 if test "$compile_mode" = "dso" ; then 40685 dso_components="$dso_components zlib" 40686 else 40687 if test "pcompress" = "common"; then 40688 # Static libraries in "common" frameworks are installed, and 40689 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 40690 # set. 40691 static_ltlibs="mca/pcompress/zlib/lib${PMIX_LIB_PREFIX}mca_pcompress_zlib.la $static_ltlibs" 40692 else 40693 # Other frameworks do not have to obey the 40694 # $FRAMEWORK_LIB_PREFIX prefix. 40695 static_ltlibs="mca/pcompress/zlib/libmca_pcompress_zlib.la $static_ltlibs" 40696 fi 40697 echo "extern const pmix_mca_base_component_t mca_pcompress_zlib_component;" >> $outfile.extern 40698 echo " &mca_pcompress_zlib_component, " >> $outfile.struct 40699 static_components="$static_components zlib" 40700 fi 40701 40702 # Output pretty results 40703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pcompress:zlib can compile" >&5 40704$as_echo_n "checking if MCA component pcompress:zlib can compile... " >&6; } 40705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40706$as_echo "yes" >&6; } 40707 40708 if test -f $infile; then 40709 # check for direct call header to include. This will be 40710 # AC_SUBSTed later. 40711 if test "$DIRECT_pcompress" = "zlib" ; then 40712 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 40713 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 40714 str="MCA_pmix_pcompress_DIRECT_CALL_HEADER=$line" 40715 eval $str 40716 else 40717as_fn_error $? "*** pcompress component zlib was supposed to be direct-called, but 40718*** does not appear to support direct calling. 40719*** Aborting" "$LINENO" 5 40720 fi 40721 fi 40722 else 40723 # were we supposed to have found something in the 40724 # post_configure.sh, but the file didn't exist? 40725 if test "$DIRECT_pcompress" = "zlib" ; then 40726as_fn_error $? "*** pcompress component zlib was supposed to be direct-called, but 40727*** does not appear to support direct calling. 40728*** Aborting" "$LINENO" 5 40729 fi 40730 fi 40731 40732else 40733 40734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pcompress:zlib can compile" >&5 40735$as_echo_n "checking if MCA component pcompress:zlib can compile... " >&6; } 40736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40737$as_echo "no" >&6; } 40738 40739 # If this component was requested as the default for this 40740 # type, then abort. 40741 if test "$with_pcompress" = "zlib" ; then 40742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"zlib\" failed to configure properly" >&5 40743$as_echo "$as_me: WARNING: MCA component \"zlib\" failed to configure properly" >&2;} 40744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 40745$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 40746 as_fn_error $? "Cannot continue" "$LINENO" 5 40747 fi 40748 40749 if test ! -z "$DIRECT_pcompress" ; then 40750 if test "$DIRECT_pcompress" = "zlib" ; then 40751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"zlib\" failed to configure properly" >&5 40752$as_echo "$as_me: WARNING: MCA component \"zlib\" failed to configure properly" >&2;} 40753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 40754$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 40755 as_fn_error $? "Cannot continue" "$LINENO" 5 40756 fi 40757 fi 40758 40759 # add component to all component list 40760 all_components="$all_components zlib" 40761fi 40762 40763 40764 40765 # set the AM_CONDITIONAL on how we should build 40766 if test "$compile_mode" = "dso"; then : 40767 BUILD_pmix_pcompress_zlib_DSO=1 40768else 40769 BUILD_pmix_pcompress_zlib_DSO=0 40770fi 40771 if test "$BUILD_pmix_pcompress_zlib_DSO" = "1"; then 40772 MCA_BUILD_pmix_pcompress_zlib_DSO_TRUE= 40773 MCA_BUILD_pmix_pcompress_zlib_DSO_FALSE='#' 40774else 40775 MCA_BUILD_pmix_pcompress_zlib_DSO_TRUE='#' 40776 MCA_BUILD_pmix_pcompress_zlib_DSO_FALSE= 40777fi 40778 40779 40780 if test "$should_build" = "1"; then : 40781 components_last_result=1 40782else 40783 components_last_result=0 40784fi 40785 40786 unset compile_mode 40787 40788 40789 40790 40791 40792 # configure components that provide their own configure script. 40793 # It would be really hard to run these for "find first that 40794 # works", so we don't :) 40795 40796 40797 40798 if test "1" != "0"; then : 40799 40800 for component_path in $srcdir/src/mca/pcompress/* ; do 40801 component="`basename $component_path`" 40802 if test -d $component_path && test -x $component_path/configure ; then 40803 pmix_show_subsubsubtitle "MCA component pcompress:$component (need to configure)" 40804 40805 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 40806 40807 40808 40809 component_path="$srcdir/src/mca/pcompress/$component" 40810 want_component=0 40811 40812 # build if: 40813 # - the component type is direct and we are that component 40814 # - there is no pmix_ignore file 40815 # - there is an pmix_ignore, but there is an empty pmix_unignore 40816 # - there is an pmix_ignore, but username is in pmix_unignore 40817 if test -d $component_path ; then 40818 # decide if we want the component to be built or not. This 40819 # is spread out because some of the logic is a little complex 40820 # and test's syntax isn't exactly the greatest. We want to 40821 # build the component by default. 40822 want_component=1 40823 if test -f $component_path/.pmix_ignore ; then 40824 # If there is an pmix_ignore file, don't build 40825 # the component. Note that this decision can be 40826 # overridden by the unignore logic below. 40827 want_component=0 40828 fi 40829 if test -f $component_path/.pmix_unignore ; then 40830 # if there is an empty pmix_unignore, that is 40831 # equivalent to having your userid in the unignore file. 40832 # If userid is in the file, unignore the ignore file. 40833 if test ! -s $component_path/.pmix_unignore ; then 40834 want_component=1 40835 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 40836 want_component=1 40837 fi 40838 fi 40839 # if this component type is direct and we are not it, we don't want 40840 # to be built. Otherwise, we do want to be built. 40841 if test ! -z "$DIRECT_pcompress" ; then 40842 if test "$DIRECT_pcompress" = "$component" ; then 40843 want_component=1 40844 else 40845 want_component=0 40846 fi 40847 fi 40848 fi 40849 40850 # if we were explicitly disabled, don't build :) 40851 if test "$DISABLE_pcompress" = "1"; then : 40852 want_component=0 40853fi 40854 str="DISABLED_COMPONENT_CHECK=\$DISABLE_pcompress_$component" 40855 eval $str 40856 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 40857 want_component=0 40858 fi 40859 40860 if test "$want_component" = "1"; then : 40861 should_build=1 40862else 40863 should_build=0 40864fi 40865 40866 40867 SHARED_FRAMEWORK="$DSO_pcompress" 40868 str="SHARED_COMPONENT=\$DSO_pcompress_$component" 40869 eval $str 40870 40871 STATIC_FRAMEWORK="$STATIC_pcompress" 40872 str="STATIC_COMPONENT=\$STATIC_pcompress_$component" 40873 eval $str 40874 40875 shared_mode_override=static 40876 40877 # Setup for either shared or static 40878 if test "$STATIC_FRAMEWORK" = "1" || \ 40879 test "$STATIC_COMPONENT" = "1" || \ 40880 test "$STATIC_all" = "1" ; then 40881 compile_mode="static" 40882 elif test "$shared_mode_override" = "dso" || \ 40883 test "$SHARED_FRAMEWORK" = "1" || \ 40884 test "$SHARED_COMPONENT" = "1" || \ 40885 test "$DSO_all" = "1"; then 40886 compile_mode="dso" 40887 else 40888 compile_mode="static" 40889 fi 40890 40891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pcompress:$component compile mode" >&5 40892$as_echo_n "checking for MCA component pcompress:$component compile mode... " >&6; } 40893 if test "$DIRECT_pcompress" = "$component" ; then 40894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 40895$as_echo "$compile_mode - direct" >&6; } 40896 else 40897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 40898$as_echo "$compile_mode" >&6; } 40899 fi 40900 40901 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 40902 40903 if test "$should_build" = "1" ; then 40904 40905 40906 40907 # Is the private index set? If not, set it. 40908 if test "x$pmix_scope_index" = "x"; then 40909 pmix_scope_index=1 40910 fi 40911 40912 # First, check to see if any of these variables are already set. 40913 # This is a simple sanity check to ensure we're not already 40914 # overwriting pre-existing variables (that have a non-empty 40915 # value). It's not a perfect check, but at least it's something. 40916 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 40917 pmix_str="pmix_str=\"\$$pmix_var\"" 40918 eval $pmix_str 40919 40920 if test "x$pmix_str" != "x"; then 40921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 40922$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 40923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 40924$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 40925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 40926$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 40927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 40928$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 40929 as_fn_error $? "Cannot continue" "$LINENO" 5 40930 fi 40931 done 40932 40933 # Ok, we passed the simple sanity check. Save all these names so 40934 # that we can unset them at the end of the scope. 40935 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 40936 eval $pmix_str 40937 unset pmix_str 40938 40939 env | grep pmix_scope 40940 pmix_scope_index=`expr $pmix_scope_index + 1` 40941 40942 40943# 40944# Invoke configure in a specific subdirectory. 40945# 40946# src/mca/pcompress/$component is the directory to invoke in 40947# $pmix_subdir_args is the list of arguments to pass 40948# should_build=1 is actions to execute upon success 40949# should_build=0 is actions to execute upon failure 40950# 40951subdir_dir="src/mca/pcompress/$component" 40952subdir_args="$pmix_subdir_args" 40953subdir_success="should_build=1" 40954subdir_failure="should_build=0" 40955 40956# 40957# Sanity checks 40958# 40959 40960if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 40961 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 40962$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 40963 40964 # 40965 # Gotta check where srcdir is for VPATH builds. If srcdir is not 40966 # ., then we need to mkdir the subdir. Otherwise, we can just cd 40967 # into it. 40968 # 40969 40970 case $srcdir in 40971 .) 40972 ;; 40973 *) 40974 { case $subdir_dir in 40975 [\\/]* | ?:[\\/]* ) total_dir=;; 40976 *) total_dir=.;; 40977 esac 40978 temp=$subdir_dir 40979 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 40980 case $dir_part in 40981 # Skip DOS drivespec 40982 ?:) total_dir=$dir_part ;; 40983 *) total_dir=$total_dir/$dir_part 40984 test -d "$total_dir" || 40985 mkdir "$total_dir" || 40986 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 40987 ;; 40988 esac 40989 done; } 40990 40991 if test -d ./$subdir_dir; then :; 40992 else 40993 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 40994 fi 40995 ;; 40996 esac 40997 40998 # 40999 # Move into the target directory 41000 # 41001 41002 subdir_parent=`pwd` 41003 cd $subdir_dir 41004 41005 # 41006 # Make a "../" for each directory in $subdir_dir. 41007 # 41008 41009 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 41010 # 41011 # Construct the --srcdir argument 41012 # 41013 41014 case $srcdir in 41015 .) 41016 # In place 41017 subdir_srcdir="$srcdir" 41018 ;; 41019 [\\/]* | ?:[\\/]* ) 41020 # Absolute path 41021 subdir_srcdir="$srcdir/$subdir_dir" 41022 ;; 41023 *) 41024 # Relative path 41025 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 41026 ;; 41027 esac 41028 41029 # 41030 # Construct the --cache-file argument 41031 # 41032 41033 # BWB - subdir caching is a pain since we change CFLAGS and all that. 41034 # Just disable it for now 41035 subdir_cache_file="/dev/null" 41036 41037 # 41038 # Invoke the configure script in the subdirectory 41039 # 41040 41041 sub_configure="$SHELL '$subdir_srcdir/configure'" 41042 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 41043$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 41044 eval "$sub_configure $subdir_args \ 41045 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 41046 if test "$?" = "0"; then 41047 eval $subdir_success 41048 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 41049$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 41050 else 41051 eval $subdir_failure 41052 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 41053$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 41054 fi 41055 41056 # 41057 # Go back to the topdir 41058 # 41059 41060 cd $subdir_parent 41061fi 41062 41063# 41064# Clean up 41065# 41066 41067 41068 # Unwind the index 41069 pmix_scope_index=`expr $pmix_scope_index - 1` 41070 pmix_scope_test=`expr $pmix_scope_index \> 0` 41071 if test "$pmix_scope_test" = "0"; then 41072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 41073$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 41074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 41075$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 41076 as_fn_error $? "Cannot continue" "$LINENO" 5 41077 fi 41078 41079 # Get the variable names from that index 41080 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 41081 eval $pmix_str 41082 41083 # Iterate over all the variables and unset them all 41084 for pmix_var in $pmix_str; do 41085 unset $pmix_var 41086 done 41087 41088 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 41089 fi 41090 41091 if test "$should_build" = "1" ; then 41092 # do some extra work to pass flags back from the 41093 # top-level configure, the way a configure.m4 41094 # component would. 41095 infile="$srcdir/src/mca/pcompress/all_components/post_configure.sh" 41096 if test -f $infile; then 41097 41098 # First check for the ABORT tag 41099 line="`$GREP ABORT= $infile | cut -d= -f2-`" 41100 if test -n "$line" && test "$line" != "no"; then 41101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 41102$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 41103 as_fn_error $? "cannot continue" "$LINENO" 5 41104 fi 41105 fi 41106 41107 41108 41109 41110 # See if it dropped an output file for us to pick up some 41111 # shell variables in. 41112 infile="$srcdir/src/mca/pcompress/$component/post_configure.sh" 41113 41114 # Add this subdir to the mast list of all MCA component subdirs 41115 all_components="$all_components $component" 41116 41117 if test "$compile_mode" = "dso" ; then 41118 dso_components="$dso_components $component" 41119 else 41120 if test "pcompress" = "common"; then 41121 # Static libraries in "common" frameworks are installed, and 41122 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 41123 # set. 41124 static_ltlibs="mca/pcompress/$component/lib${PMIX_LIB_PREFIX}mca_pcompress_$component.la $static_ltlibs" 41125 else 41126 # Other frameworks do not have to obey the 41127 # $FRAMEWORK_LIB_PREFIX prefix. 41128 static_ltlibs="mca/pcompress/$component/libmca_pcompress_$component.la $static_ltlibs" 41129 fi 41130 echo "extern const pmix_mca_base_component_t mca_pcompress_$component_component;" >> $outfile.extern 41131 echo " &mca_pcompress_$component_component, " >> $outfile.struct 41132 static_components="$static_components $component" 41133 fi 41134 41135 # Output pretty results 41136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pcompress:$component can compile" >&5 41137$as_echo_n "checking if MCA component pcompress:$component can compile... " >&6; } 41138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41139$as_echo "yes" >&6; } 41140 41141 if test -f $infile; then 41142 # check for direct call header to include. This will be 41143 # AC_SUBSTed later. 41144 if test "$DIRECT_pcompress" = "$component" ; then 41145 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 41146 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 41147 str="MCA_pmix_pcompress_DIRECT_CALL_HEADER=$line" 41148 eval $str 41149 else 41150as_fn_error $? "*** pcompress component $component was supposed to be direct-called, but 41151*** does not appear to support direct calling. 41152*** Aborting" "$LINENO" 5 41153 fi 41154 fi 41155 else 41156 # were we supposed to have found something in the 41157 # post_configure.sh, but the file didn't exist? 41158 if test "$DIRECT_pcompress" = "$component" ; then 41159as_fn_error $? "*** pcompress component $component was supposed to be direct-called, but 41160*** does not appear to support direct calling. 41161*** Aborting" "$LINENO" 5 41162 fi 41163 fi 41164 41165 else 41166 41167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pcompress:$component can compile" >&5 41168$as_echo_n "checking if MCA component pcompress:$component can compile... " >&6; } 41169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41170$as_echo "no" >&6; } 41171 41172 # If this component was requested as the default for this 41173 # type, then abort. 41174 if test "$with_pcompress" = "$component" ; then 41175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 41176$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 41177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 41178$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 41179 as_fn_error $? "Cannot continue" "$LINENO" 5 41180 fi 41181 41182 if test ! -z "$DIRECT_pcompress" ; then 41183 if test "$DIRECT_pcompress" = "$component" ; then 41184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 41185$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 41186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 41187$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 41188 as_fn_error $? "Cannot continue" "$LINENO" 5 41189 fi 41190 fi 41191 41192 fi 41193 fi 41194 done 41195 41196fi 41197 41198 MCA_pmix_pcompress_ALL_COMPONENTS="$all_components" 41199 MCA_pmix_pcompress_STATIC_COMPONENTS="$static_components" 41200 MCA_pmix_pcompress_DSO_COMPONENTS="$dso_components" 41201 MCA_pmix_pcompress_STATIC_LTLIBS="$static_ltlibs" 41202 41203 41204 41205 41206 41207 41208 41209 MCA_pmix_pcompress_ALL_SUBDIRS= 41210 for item in $all_components ; do 41211 MCA_pmix_pcompress_ALL_SUBDIRS="$MCA_pmix_pcompress_ALL_SUBDIRS mca/pcompress/$item" 41212 done 41213 41214 41215 41216 MCA_pmix_pcompress_STATIC_SUBDIRS= 41217 for item in $static_components ; do 41218 MCA_pmix_pcompress_STATIC_SUBDIRS="$MCA_pmix_pcompress_STATIC_SUBDIRS mca/pcompress/$item" 41219 done 41220 41221 41222 41223 MCA_pmix_pcompress_DSO_SUBDIRS= 41224 for item in $dso_components ; do 41225 MCA_pmix_pcompress_DSO_SUBDIRS="$MCA_pmix_pcompress_DSO_SUBDIRS mca/pcompress/$item" 41226 done 41227 41228 41229 41230 # Create the final .h file that will be included in the type's 41231 # top-level glue. This lists all the static components. We don't 41232 # need to do this for "common". 41233 if test "pcompress" != "common"; then 41234 cat > $outfile <<EOF 41235/* 41236 * \$HEADER\$ 41237 */ 41238#if defined(c_plusplus) || defined(__cplusplus) 41239extern "C" { 41240#endif 41241 41242`cat $outfile.extern` 41243 41244const pmix_mca_base_component_t *mca_pcompress_base_static_components[] = { 41245`cat $outfile.struct` 41246 NULL 41247}; 41248 41249#if defined(c_plusplus) || defined(__cplusplus) 41250} 41251#endif 41252 41253EOF 41254 # Only replace the header file if a) it doesn't previously 41255 # exist, or b) the contents are different. Do this to not 41256 # trigger recompilation of certain .c files just because the 41257 # timestamp changed on $outfile_real (similar to the way AC 41258 # handles AC_CONFIG_HEADER files). 41259 diff $outfile $outfile_real > /dev/null 2>&1 41260 if test "$?" != "0"; then 41261 mv $outfile $outfile_real 41262 else 41263 rm -f $outfile 41264 fi 41265 fi 41266 rm -f $outfile.struct $outfile.extern 41267 41268 unset all_components static_components dso_components outfile outfile_real 41269 41270 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pdl" 41271 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pdl" 41272 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pdl_ALL_SUBDIRS)" 41273 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pdl_DSO_SUBDIRS)" 41274 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pdl_STATIC_SUBDIRS)" 41275 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pdl/libmca_pdl.la" 41276 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pdl_STATIC_LTLIBS)" 41277 41278 PMIX_HAVE_PDL_SUPPORT=0 41279 41280 # If --disable-dlopen was used, then have all the components fail 41281 # (we still need to configure them all so that things like "make 41282 # dist" work", but we just want the MCA system to (artificially) 41283 # conclude that it can't build any of the components. 41284 if test $PMIX_ENABLE_DLOPEN_SUPPORT -eq 0; then : 41285 want_pdl=0 41286else 41287 want_pdl=1 41288fi 41289 41290 41291 pmix_show_subsubtitle "Configuring MCA framework pdl" 41292 41293 41294 41295 41296 # setup for framework 41297 all_components= 41298 static_components= 41299 dso_components= 41300 static_ltlibs= 41301 41302 # Ensure that the directory where the #include file is to live 41303 # exists. Need to do this for VPATH builds, because the directory 41304 # may not exist yet. For the "common" type, it's not really a 41305 # component, so it doesn't have a base. 41306 outdir=src/mca/pdl/base 41307 as_dir=$outdir; as_fn_mkdir_p 41308 41309 # emit Makefile rule 41310 ac_config_files="$ac_config_files src/mca/pdl/Makefile" 41311 41312 41313 # remove any previously generated #include files 41314 outfile_real=$outdir/static-components.h 41315 outfile=$outfile_real.new 41316 rm -f $outfile $outfile.struct $outfile.extern 41317 touch $outfile.struct $outfile.extern 41318 41319 # print some nice messages about what we're about to do... 41320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pdl" >&5 41321$as_echo_n "checking for no configure components in framework pdl... " >&6; } 41322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 41323$as_echo "" >&6; } 41324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pdl" >&5 41325$as_echo_n "checking for m4 configure components in framework pdl... " >&6; } 41326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pdlopen, plibltdl" >&5 41327$as_echo "pdlopen, plibltdl" >&6; } 41328 41329 # If there are components in the no configure list, but we're 41330 # doing one of the "special" selection logics, abort with a 41331 # reasonable message. 41332 41333 41334 41335 # run the configure logic for the no-config components 41336 41337 41338 # configure components that use built-in configuration scripts 41339 41340 41341 41342 41343 41344 41345 best_mca_component_priority=0 41346 components_looking_for_succeed=$want_pdl 41347 components_last_result=0 41348 41349 41350 pmix_show_subsubsubtitle "MCA component pdl:pdlopen (m4 configuration macro, priority 80)" 41351 41352 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 41353 41354 41355 41356 component_path="$srcdir/src/mca/pdl/pdlopen" 41357 want_component=0 41358 41359 # build if: 41360 # - the component type is direct and we are that component 41361 # - there is no pmix_ignore file 41362 # - there is an pmix_ignore, but there is an empty pmix_unignore 41363 # - there is an pmix_ignore, but username is in pmix_unignore 41364 if test -d $component_path ; then 41365 # decide if we want the component to be built or not. This 41366 # is spread out because some of the logic is a little complex 41367 # and test's syntax isn't exactly the greatest. We want to 41368 # build the component by default. 41369 want_component=1 41370 if test -f $component_path/.pmix_ignore ; then 41371 # If there is an pmix_ignore file, don't build 41372 # the component. Note that this decision can be 41373 # overridden by the unignore logic below. 41374 want_component=0 41375 fi 41376 if test -f $component_path/.pmix_unignore ; then 41377 # if there is an empty pmix_unignore, that is 41378 # equivalent to having your userid in the unignore file. 41379 # If userid is in the file, unignore the ignore file. 41380 if test ! -s $component_path/.pmix_unignore ; then 41381 want_component=1 41382 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 41383 want_component=1 41384 fi 41385 fi 41386 # if this component type is direct and we are not it, we don't want 41387 # to be built. Otherwise, we do want to be built. 41388 if test ! -z "$DIRECT_pdl" ; then 41389 if test "$DIRECT_pdl" = "pdlopen" ; then 41390 want_component=1 41391 else 41392 want_component=0 41393 fi 41394 fi 41395 fi 41396 41397 # if we were explicitly disabled, don't build :) 41398 if test "$DISABLE_pdl" = "1"; then : 41399 want_component=0 41400fi 41401 if test "$DISABLE_pdl_pdlopen" = "1"; then : 41402 want_component=0 41403fi 41404 41405 if test "$want_component" = "1"; then : 41406 should_build=$components_looking_for_succeed 41407else 41408 should_build=0 41409fi 41410 41411 # Allow the component to override the build mode if it really wants to. 41412 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 41413 41414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pdl:pdlopen compile mode" >&5 41415$as_echo_n "checking for MCA component pdl:pdlopen compile mode... " >&6; } 41416 compile_mode="static" 41417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 41418$as_echo "$compile_mode" >&6; } 41419 41420 41421 # try to configure the component 41422 41423 ac_config_files="$ac_config_files src/mca/pdl/pdlopen/Makefile" 41424 41425 41426 # Check whether --enable-dl-dlopen was given. 41427if test "${enable_dl_dlopen+set}" = set; then : 41428 enableval=$enable_dl_dlopen; 41429fi 41430 41431 41432 pmix_pdl_pdlopen_happy=no 41433 if test "$enable_dl_dlopen" != "no"; then : 41434 41435 pmix_check_package_pmix_pdl_pdlopen_save_CPPFLAGS="$CPPFLAGS" 41436 pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS="$LDFLAGS" 41437 pmix_check_package_pmix_pdl_pdlopen_save_LIBS="$LIBS" 41438 41439 pmix_check_package_pmix_pdl_pdlopen_orig_CPPFLAGS="$pmix_pdl_pdlopen_CPPFLAGS" 41440 pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS" 41441 pmix_check_package_pmix_pdl_pdlopen_orig_LIBS="$pmix_pdl_pdlopen_LIBS" 41442 41443 41444 # This is stolen from autoconf to peek under the covers to get the 41445 # cache variable for the library check. one should not copy this 41446 # code into other places unless you want much pain and suffering 41447 41448 41449 # so this sucks, but there's no way to get through the progression 41450 # of header includes without killing off the cache variable and trying 41451 # again... 41452 unset ac_cv_header_dlfcn_h 41453 pmix_check_package_header_happy="no" 41454 41455 # get rid of the trailing slash(es) 41456 hdir_prefix=$(echo | sed -e 'sX/*$XXg') 41457 41458 if test "$hdir_prefix" = "" || \ 41459 test "$hdir_prefix" = "/usr" || \ 41460 test "$hdir_prefix" = "/usr/local"; then : 41461 # try as is... 41462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 41463$as_echo "looking for header without includes" >&6; } 41464 for ac_header in dlfcn.h 41465do : 41466 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 41467if test "x$ac_cv_header_dlfcn_h" = xyes; then : 41468 cat >>confdefs.h <<_ACEOF 41469#define HAVE_DLFCN_H 1 41470_ACEOF 41471 pmix_check_package_header_happy="yes" 41472fi 41473 41474done 41475 41476 if test "$pmix_check_package_header_happy" = "no"; then : 41477 # no go on the as is - reset the cache and try again 41478 unset ac_cv_header_dlfcn_h 41479fi 41480fi 41481 41482 if test "$pmix_check_package_header_happy" = "no"; then : 41483 if test "$hdir_prefix" != ""; then : 41484 pmix_pdl_pdlopen_CPPFLAGS="$pmix_pdl_pdlopen_CPPFLAGS -I$hdir_prefix" 41485 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 41486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 41487$as_echo "looking for header in $hdir_prefix" >&6; } 41488 for ac_header in dlfcn.h 41489do : 41490 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 41491if test "x$ac_cv_header_dlfcn_h" = xyes; then : 41492 cat >>confdefs.h <<_ACEOF 41493#define HAVE_DLFCN_H 1 41494_ACEOF 41495 pmix_check_package_header_happy="yes" 41496fi 41497 41498done 41499 41500 if test "$pmix_check_package_header_happy" = "no"; then : 41501 unset ac_cv_header_dlfcn_h 41502 pmix_pdl_pdlopen_CPPFLAGS="$pmix_pdl_pdlopen_CPPFLAGS -I$hdir_prefix/include" 41503 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 41504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 41505$as_echo "looking for header in $hdir_prefix/include" >&6; } 41506 for ac_header in dlfcn.h 41507do : 41508 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 41509if test "x$ac_cv_header_dlfcn_h" = xyes; then : 41510 cat >>confdefs.h <<_ACEOF 41511#define HAVE_DLFCN_H 1 41512_ACEOF 41513 pmix_check_package_header_happy="yes" 41514fi 41515 41516done 41517 41518fi 41519fi 41520fi 41521 41522 if test "$pmix_check_package_header_happy" = "yes"; then : 41523 41524 # This is stolen from autoconf to peek under the covers to get the 41525 # cache variable for the library check. one should not copy this 41526 # code into other places unless you want much pain and suffering 41527 41528 # see comment above 41529 unset ac_cv_lib_dl_dlopen 41530 pmix_check_package_lib_happy="no" 41531 41532 # get rid of the trailing slash(es) 41533 libdir_prefix=$(echo | sed -e 'sX/*$XXg') 41534 41535 if test "$libdir_prefix" != ""; then : 41536 # libdir was specified - search only there 41537 pmix_pdl_pdlopen_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS -L$libdir_prefix" 41538 LDFLAGS="$LDFLAGS -L$libdir_prefix" 41539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 41540$as_echo_n "checking for library containing dlopen... " >&6; } 41541if ${ac_cv_search_dlopen+:} false; then : 41542 $as_echo_n "(cached) " >&6 41543else 41544 ac_func_search_save_LIBS=$LIBS 41545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41546/* end confdefs.h. */ 41547 41548/* Override any GCC internal prototype to avoid an error. 41549 Use char because int might match the return type of a GCC 41550 builtin and then its argument prototype would still apply. */ 41551#ifdef __cplusplus 41552extern "C" 41553#endif 41554char dlopen (); 41555int 41556main () 41557{ 41558return dlopen (); 41559 ; 41560 return 0; 41561} 41562_ACEOF 41563for ac_lib in '' dl; do 41564 if test -z "$ac_lib"; then 41565 ac_res="none required" 41566 else 41567 ac_res=-l$ac_lib 41568 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 41569 fi 41570 if ac_fn_c_try_link "$LINENO"; then : 41571 ac_cv_search_dlopen=$ac_res 41572fi 41573rm -f core conftest.err conftest.$ac_objext \ 41574 conftest$ac_exeext 41575 if ${ac_cv_search_dlopen+:} false; then : 41576 break 41577fi 41578done 41579if ${ac_cv_search_dlopen+:} false; then : 41580 41581else 41582 ac_cv_search_dlopen=no 41583fi 41584rm conftest.$ac_ext 41585LIBS=$ac_func_search_save_LIBS 41586fi 41587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 41588$as_echo "$ac_cv_search_dlopen" >&6; } 41589ac_res=$ac_cv_search_dlopen 41590if test "$ac_res" != no; then : 41591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 41592 pmix_check_package_lib_happy="yes" 41593else 41594 pmix_check_package_lib_happy="no" 41595fi 41596 41597 if test "$pmix_check_package_lib_happy" = "no"; then : 41598 LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS" 41599 pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS" 41600 unset ac_cv_lib_dl_dlopen 41601fi 41602else 41603 # libdir was not specified - go through search path 41604 # get rid of the trailing slash(es) 41605 libdir_prefix=$(echo | sed -e 'sX/*$XXg') 41606 41607 # first try standard locations as otherwise our 41608 # searches with libdir_prefix locations might come 41609 # back positive and unnecessarily add an LDFLAG 41610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 41611$as_echo "looking for library without search path" >&6; } 41612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 41613$as_echo_n "checking for library containing dlopen... " >&6; } 41614if ${ac_cv_search_dlopen+:} false; then : 41615 $as_echo_n "(cached) " >&6 41616else 41617 ac_func_search_save_LIBS=$LIBS 41618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41619/* end confdefs.h. */ 41620 41621/* Override any GCC internal prototype to avoid an error. 41622 Use char because int might match the return type of a GCC 41623 builtin and then its argument prototype would still apply. */ 41624#ifdef __cplusplus 41625extern "C" 41626#endif 41627char dlopen (); 41628int 41629main () 41630{ 41631return dlopen (); 41632 ; 41633 return 0; 41634} 41635_ACEOF 41636for ac_lib in '' dl; do 41637 if test -z "$ac_lib"; then 41638 ac_res="none required" 41639 else 41640 ac_res=-l$ac_lib 41641 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 41642 fi 41643 if ac_fn_c_try_link "$LINENO"; then : 41644 ac_cv_search_dlopen=$ac_res 41645fi 41646rm -f core conftest.err conftest.$ac_objext \ 41647 conftest$ac_exeext 41648 if ${ac_cv_search_dlopen+:} false; then : 41649 break 41650fi 41651done 41652if ${ac_cv_search_dlopen+:} false; then : 41653 41654else 41655 ac_cv_search_dlopen=no 41656fi 41657rm conftest.$ac_ext 41658LIBS=$ac_func_search_save_LIBS 41659fi 41660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 41661$as_echo "$ac_cv_search_dlopen" >&6; } 41662ac_res=$ac_cv_search_dlopen 41663if test "$ac_res" != no; then : 41664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 41665 pmix_check_package_lib_happy="yes" 41666else 41667 pmix_check_package_lib_happy="no" 41668fi 41669 41670 if test "$pmix_check_package_lib_happy" = "no"; then : 41671 # no go on the as is.. see what happens later... 41672 LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS" 41673 pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS" 41674 unset ac_cv_lib_dl_dlopen 41675fi 41676 41677 if test "$pmix_check_package_lib_happy" = "no"; then : 41678 # if we didn't find it, check the libdir_prefix/lib64 directory 41679 if test "$libdir_prefix" != "" && \ 41680 test "$libdir_prefix" != "/usr" && \ 41681 test "$libdir_prefix" != "/usr/local"; then : 41682 pmix_pdl_pdlopen_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS -L$libdir_prefix/lib64" 41683 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 41684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 41685$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 41686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 41687$as_echo_n "checking for library containing dlopen... " >&6; } 41688if ${ac_cv_search_dlopen+:} false; then : 41689 $as_echo_n "(cached) " >&6 41690else 41691 ac_func_search_save_LIBS=$LIBS 41692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41693/* end confdefs.h. */ 41694 41695/* Override any GCC internal prototype to avoid an error. 41696 Use char because int might match the return type of a GCC 41697 builtin and then its argument prototype would still apply. */ 41698#ifdef __cplusplus 41699extern "C" 41700#endif 41701char dlopen (); 41702int 41703main () 41704{ 41705return dlopen (); 41706 ; 41707 return 0; 41708} 41709_ACEOF 41710for ac_lib in '' dl; do 41711 if test -z "$ac_lib"; then 41712 ac_res="none required" 41713 else 41714 ac_res=-l$ac_lib 41715 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 41716 fi 41717 if ac_fn_c_try_link "$LINENO"; then : 41718 ac_cv_search_dlopen=$ac_res 41719fi 41720rm -f core conftest.err conftest.$ac_objext \ 41721 conftest$ac_exeext 41722 if ${ac_cv_search_dlopen+:} false; then : 41723 break 41724fi 41725done 41726if ${ac_cv_search_dlopen+:} false; then : 41727 41728else 41729 ac_cv_search_dlopen=no 41730fi 41731rm conftest.$ac_ext 41732LIBS=$ac_func_search_save_LIBS 41733fi 41734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 41735$as_echo "$ac_cv_search_dlopen" >&6; } 41736ac_res=$ac_cv_search_dlopen 41737if test "$ac_res" != no; then : 41738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 41739 pmix_check_package_lib_happy="yes" 41740else 41741 pmix_check_package_lib_happy="no" 41742fi 41743 41744 if test "$pmix_check_package_lib_happy" = "no"; then : 41745 # no go on the as is.. see what happens later... 41746 LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS" 41747 pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS" 41748 unset ac_cv_lib_dl_dlopen 41749fi 41750fi 41751fi 41752 41753 if test "$pmix_check_package_lib_happy" = "no"; then : 41754 # if we still haven't found it, check the libdir_prefix/lib directory 41755 if test "$libdir_prefix" != "" && \ 41756 test "$libdir_prefix" != "/usr" && \ 41757 test "$libdir_prefix" != "/usr/local"; then : 41758 pmix_pdl_pdlopen_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS -L$libdir_prefix/lib" 41759 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 41760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 41761$as_echo "looking for library in $libdir_prefix/lib" >&6; } 41762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 41763$as_echo_n "checking for library containing dlopen... " >&6; } 41764if ${ac_cv_search_dlopen+:} false; then : 41765 $as_echo_n "(cached) " >&6 41766else 41767 ac_func_search_save_LIBS=$LIBS 41768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41769/* end confdefs.h. */ 41770 41771/* Override any GCC internal prototype to avoid an error. 41772 Use char because int might match the return type of a GCC 41773 builtin and then its argument prototype would still apply. */ 41774#ifdef __cplusplus 41775extern "C" 41776#endif 41777char dlopen (); 41778int 41779main () 41780{ 41781return dlopen (); 41782 ; 41783 return 0; 41784} 41785_ACEOF 41786for ac_lib in '' dl; do 41787 if test -z "$ac_lib"; then 41788 ac_res="none required" 41789 else 41790 ac_res=-l$ac_lib 41791 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 41792 fi 41793 if ac_fn_c_try_link "$LINENO"; then : 41794 ac_cv_search_dlopen=$ac_res 41795fi 41796rm -f core conftest.err conftest.$ac_objext \ 41797 conftest$ac_exeext 41798 if ${ac_cv_search_dlopen+:} false; then : 41799 break 41800fi 41801done 41802if ${ac_cv_search_dlopen+:} false; then : 41803 41804else 41805 ac_cv_search_dlopen=no 41806fi 41807rm conftest.$ac_ext 41808LIBS=$ac_func_search_save_LIBS 41809fi 41810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 41811$as_echo "$ac_cv_search_dlopen" >&6; } 41812ac_res=$ac_cv_search_dlopen 41813if test "$ac_res" != no; then : 41814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 41815 pmix_check_package_lib_happy="yes" 41816else 41817 pmix_check_package_lib_happy="no" 41818fi 41819 41820 if test "$pmix_check_package_lib_happy" = "no"; then : 41821 # no go on the as is.. see what happens later... 41822 LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS" 41823 pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS" 41824 unset ac_cv_lib_dl_dlopen 41825fi 41826fi 41827fi 41828 41829fi 41830 41831 41832 if test "$pmix_check_package_lib_happy" = "yes"; then : 41833 pmix_pdl_pdlopen_LIBS="-ldl " 41834 pmix_check_package_happy="yes" 41835else 41836 pmix_check_package_happy="no" 41837fi 41838 if test "$pmix_check_package_lib_happy" = "yes"; then : 41839 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 41840 if test "$ac_cv_search_dlopen" != "no" && 41841 test "$ac_cv_search_dlopen" != "none required"; then : 41842 pmix_pdl_pdlopen_LIBS="$ac_cv_search_dlopen " 41843else 41844 pmix_pdl_pdlopen_LIBS="" 41845fi 41846 pmix_check_package_happy="yes" 41847else 41848 pmix_check_package_happy="no" 41849fi 41850 41851 41852else 41853 pmix_check_package_happy="no" 41854fi 41855 41856 unset pmix_check_package_header_happy 41857 41858 41859 41860 if test "$pmix_check_package_happy" = "yes"; then : 41861 pmix_pdl_pdlopen_happy=yes 41862else 41863 pmix_pdl_pdlopen_CPPFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_CPPFLAGS" 41864 pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS" 41865 pmix_pdl_pdlopen_LIBS="$pmix_check_package_pmix_pdl_pdlopen_orig_LIBS" 41866 pmix_pdl_pdlopen_happy=no 41867fi 41868 41869 CPPFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_CPPFLAGS" 41870 LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS" 41871 LIBS="$pmix_check_package_pmix_pdl_pdlopen_save_LIBS" 41872 41873 41874fi 41875 41876 if test "$pmix_pdl_pdlopen_happy" = "yes"; then : 41877 pmix_pdl_pdlopen_ADD_LIBS=$pmix_pdl_pdlopen_LIBS 41878 should_build=$should_build 41879else 41880 should_build=0 41881fi 41882 41883 41884 41885 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 41886 41887 if test "$should_build" = "1"; then : 41888 41889 41890 41891 # See if it dropped an output file for us to pick up some 41892 # shell variables in. 41893 infile="$srcdir/src/mca/pdl/pdlopen/post_configure.sh" 41894 41895 # Add this subdir to the mast list of all MCA component subdirs 41896 all_components="$all_components pdlopen" 41897 41898 if test "$compile_mode" = "dso" ; then 41899 dso_components="$dso_components pdlopen" 41900 else 41901 if test "pdl" = "common"; then 41902 # Static libraries in "common" frameworks are installed, and 41903 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 41904 # set. 41905 static_ltlibs="mca/pdl/pdlopen/lib${PMIX_LIB_PREFIX}mca_pdl_pdlopen.la $static_ltlibs" 41906 else 41907 # Other frameworks do not have to obey the 41908 # $FRAMEWORK_LIB_PREFIX prefix. 41909 static_ltlibs="mca/pdl/pdlopen/libmca_pdl_pdlopen.la $static_ltlibs" 41910 fi 41911 echo "extern const pmix_mca_base_component_t mca_pdl_pdlopen_component;" >> $outfile.extern 41912 echo " &mca_pdl_pdlopen_component, " >> $outfile.struct 41913 static_components="$static_components pdlopen" 41914 fi 41915 41916 # Output pretty results 41917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:pdlopen can compile" >&5 41918$as_echo_n "checking if MCA component pdl:pdlopen can compile... " >&6; } 41919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41920$as_echo "yes" >&6; } 41921 41922 if test -f $infile; then 41923 # check for direct call header to include. This will be 41924 # AC_SUBSTed later. 41925 if test "$DIRECT_pdl" = "pdlopen" ; then 41926 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 41927 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 41928 str="MCA_pmix_pdl_DIRECT_CALL_HEADER=$line" 41929 eval $str 41930 else 41931as_fn_error $? "*** pdl component pdlopen was supposed to be direct-called, but 41932*** does not appear to support direct calling. 41933*** Aborting" "$LINENO" 5 41934 fi 41935 fi 41936 else 41937 # were we supposed to have found something in the 41938 # post_configure.sh, but the file didn't exist? 41939 if test "$DIRECT_pdl" = "pdlopen" ; then 41940as_fn_error $? "*** pdl component pdlopen was supposed to be direct-called, but 41941*** does not appear to support direct calling. 41942*** Aborting" "$LINENO" 5 41943 fi 41944 fi 41945 41946else 41947 41948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:pdlopen can compile" >&5 41949$as_echo_n "checking if MCA component pdl:pdlopen can compile... " >&6; } 41950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41951$as_echo "no" >&6; } 41952 41953 # If this component was requested as the default for this 41954 # type, then abort. 41955 if test "$with_pdl" = "pdlopen" ; then 41956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pdlopen\" failed to configure properly" >&5 41957$as_echo "$as_me: WARNING: MCA component \"pdlopen\" failed to configure properly" >&2;} 41958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 41959$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 41960 as_fn_error $? "Cannot continue" "$LINENO" 5 41961 fi 41962 41963 if test ! -z "$DIRECT_pdl" ; then 41964 if test "$DIRECT_pdl" = "pdlopen" ; then 41965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pdlopen\" failed to configure properly" >&5 41966$as_echo "$as_me: WARNING: MCA component \"pdlopen\" failed to configure properly" >&2;} 41967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 41968$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 41969 as_fn_error $? "Cannot continue" "$LINENO" 5 41970 fi 41971 fi 41972 41973 # add component to all component list 41974 all_components="$all_components pdlopen" 41975fi 41976 41977 41978 # If we won, then do all the rest of the setup 41979 if test "$should_build" = "1"; then : 41980 41981 # Add some stuff to CPPFLAGS so that the rest of the source 41982 # tree can be built 41983 LDFLAGS="$LDFLAGS $pmix_pdl_pdlopen_ADD_LDFLAGS" 41984 LIBS="$LIBS $pmix_pdl_pdlopen_ADD_LIBS" 41985 41986fi 41987 41988 41989 # set the AM_CONDITIONAL on how we should build 41990 if test "$compile_mode" = "dso"; then : 41991 BUILD_pmix_pdl_pdlopen_DSO=1 41992else 41993 BUILD_pmix_pdl_pdlopen_DSO=0 41994fi 41995 if test "$BUILD_pmix_pdl_pdlopen_DSO" = "1"; then 41996 MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE= 41997 MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE='#' 41998else 41999 MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE='#' 42000 MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE= 42001fi 42002 42003 42004 if test "$should_build" = "1"; then : 42005 components_last_result=1 42006else 42007 components_last_result=0 42008fi 42009 42010 unset compile_mode 42011 42012 if test $components_last_result -eq 1; then : 42013 components_looking_for_succeed=0 42014fi 42015 42016 42017 42018 pmix_show_subsubsubtitle "MCA component pdl:plibltdl (m4 configuration macro, priority 50)" 42019 42020 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 42021 42022 42023 42024 component_path="$srcdir/src/mca/pdl/plibltdl" 42025 want_component=0 42026 42027 # build if: 42028 # - the component type is direct and we are that component 42029 # - there is no pmix_ignore file 42030 # - there is an pmix_ignore, but there is an empty pmix_unignore 42031 # - there is an pmix_ignore, but username is in pmix_unignore 42032 if test -d $component_path ; then 42033 # decide if we want the component to be built or not. This 42034 # is spread out because some of the logic is a little complex 42035 # and test's syntax isn't exactly the greatest. We want to 42036 # build the component by default. 42037 want_component=1 42038 if test -f $component_path/.pmix_ignore ; then 42039 # If there is an pmix_ignore file, don't build 42040 # the component. Note that this decision can be 42041 # overridden by the unignore logic below. 42042 want_component=0 42043 fi 42044 if test -f $component_path/.pmix_unignore ; then 42045 # if there is an empty pmix_unignore, that is 42046 # equivalent to having your userid in the unignore file. 42047 # If userid is in the file, unignore the ignore file. 42048 if test ! -s $component_path/.pmix_unignore ; then 42049 want_component=1 42050 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 42051 want_component=1 42052 fi 42053 fi 42054 # if this component type is direct and we are not it, we don't want 42055 # to be built. Otherwise, we do want to be built. 42056 if test ! -z "$DIRECT_pdl" ; then 42057 if test "$DIRECT_pdl" = "plibltdl" ; then 42058 want_component=1 42059 else 42060 want_component=0 42061 fi 42062 fi 42063 fi 42064 42065 # if we were explicitly disabled, don't build :) 42066 if test "$DISABLE_pdl" = "1"; then : 42067 want_component=0 42068fi 42069 if test "$DISABLE_pdl_plibltdl" = "1"; then : 42070 want_component=0 42071fi 42072 42073 if test "$want_component" = "1"; then : 42074 should_build=$components_looking_for_succeed 42075else 42076 should_build=0 42077fi 42078 42079 # Allow the component to override the build mode if it really wants to. 42080 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 42081 42082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pdl:plibltdl compile mode" >&5 42083$as_echo_n "checking for MCA component pdl:plibltdl compile mode... " >&6; } 42084 compile_mode="static" 42085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 42086$as_echo "$compile_mode" >&6; } 42087 42088 42089 # try to configure the component 42090 42091 42092 42093 # Is the private index set? If not, set it. 42094 if test "x$pmix_scope_index" = "x"; then 42095 pmix_scope_index=1 42096 fi 42097 42098 # First, check to see if any of these variables are already set. 42099 # This is a simple sanity check to ensure we're not already 42100 # overwriting pre-existing variables (that have a non-empty 42101 # value). It's not a perfect check, but at least it's something. 42102 for pmix_var in CPPFLAGS_save LDFLAGS_save LIBS_save; do 42103 pmix_str="pmix_str=\"\$$pmix_var\"" 42104 eval $pmix_str 42105 42106 if test "x$pmix_str" != "x"; then 42107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 42108$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 42109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 42110$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 42111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 42112$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 42113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 42114$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 42115 as_fn_error $? "Cannot continue" "$LINENO" 5 42116 fi 42117 done 42118 42119 # Ok, we passed the simple sanity check. Save all these names so 42120 # that we can unset them at the end of the scope. 42121 pmix_str="pmix_scope_$pmix_scope_index=\"CPPFLAGS_save LDFLAGS_save LIBS_save\"" 42122 eval $pmix_str 42123 unset pmix_str 42124 42125 env | grep pmix_scope 42126 pmix_scope_index=`expr $pmix_scope_index + 1` 42127 42128 ac_config_files="$ac_config_files src/mca/pdl/plibltdl/Makefile" 42129 42130 42131 # Add --with options 42132 42133# Check whether --with-plibltdl was given. 42134if test "${with_plibltdl+set}" = set; then : 42135 withval=$with_plibltdl; 42136fi 42137 42138 42139# Check whether --with-libltdl-libdir was given. 42140if test "${with_libltdl_libdir+set}" = set; then : 42141 withval=$with_libltdl_libdir; 42142fi 42143 42144 42145 # Sanity check the --with values 42146 42147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plibltdl value" >&5 42148$as_echo_n "checking --with-plibltdl value... " >&6; } 42149 if test "$with_libltdl" = "yes" || test "$with_libltdl" = "no" || test "x$with_libltdl" = "x"; then : 42150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5 42151$as_echo "simple ok (unspecified)" >&6; } 42152else 42153 if test ! -d "$with_libltdl"; then : 42154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42155$as_echo "not found" >&6; } 42156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libltdl not found" >&5 42157$as_echo "$as_me: WARNING: Directory $with_libltdl not found" >&2;} 42158 as_fn_error $? "Cannot continue" "$LINENO" 5 42159else 42160 if test "x`ls $with_libltdl/include/ltdl.h 2> /dev/null`" = "x"; then : 42161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42162$as_echo "not found" >&6; } 42163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libltdl/include/ltdl.h not found" >&5 42164$as_echo "$as_me: WARNING: Expected file $with_libltdl/include/ltdl.h not found" >&2;} 42165 as_fn_error $? "Cannot continue" "$LINENO" 5 42166else 42167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libltdl)" >&5 42168$as_echo "sanity check ok ($with_libltdl)" >&6; } 42169 42170fi 42171 42172 42173fi 42174 42175 42176fi 42177 42178 42179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plibltdl-libdir value" >&5 42180$as_echo_n "checking --with-plibltdl-libdir value... " >&6; } 42181 if test "$with_libltdl_libdir" = "yes" || test "$with_libltdl_libdir" = "no" || test "x$with_libltdl_libdir" = "x"; then : 42182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5 42183$as_echo "simple ok (unspecified)" >&6; } 42184else 42185 if test ! -d "$with_libltdl_libdir"; then : 42186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42187$as_echo "not found" >&6; } 42188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libltdl_libdir not found" >&5 42189$as_echo "$as_me: WARNING: Directory $with_libltdl_libdir not found" >&2;} 42190 as_fn_error $? "Cannot continue" "$LINENO" 5 42191else 42192 if test "x`ls $with_libltdl_libdir/libltdl.* 2> /dev/null`" = "x"; then : 42193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42194$as_echo "not found" >&6; } 42195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libltdl_libdir/libltdl.* not found" >&5 42196$as_echo "$as_me: WARNING: Expected file $with_libltdl_libdir/libltdl.* not found" >&2;} 42197 as_fn_error $? "Cannot continue" "$LINENO" 5 42198else 42199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libltdl_libdir)" >&5 42200$as_echo "sanity check ok ($with_libltdl_libdir)" >&6; } 42201 42202fi 42203 42204 42205fi 42206 42207 42208fi 42209 42210 42211 # Defaults 42212 pmix_check_plibltdl_dir_msg="compiler default" 42213 pmix_check_plibltdl_libdir_msg="linker default" 42214 42215 # Save directory names if supplied 42216 if test ! -z "$with_libltdl" && test "$with_libltdl" != "yes"; then : 42217 pmix_check_plibltdl_dir=$with_libltdl 42218 pmix_check_plibltdl_dir_msg="$pmix_check_plibltdl_dir (from --with-libltdl)" 42219fi 42220 if test ! -z "$with_libltdl_libdir" && test "$with_libltdl_libdir" != "yes"; then : 42221 pmix_check_plibltdl_libdir=$with_libltdl_libdir 42222 pmix_check_plibltdl_libdir_msg="$pmix_check_plibltdl_libdir (from --with-libltdl-libdir)" 42223fi 42224 42225 pmix_pdl_plibltdl_happy=no 42226 if test "$with_plibltdl" != "no"; then : 42227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl dir" >&5 42228$as_echo_n "checking for libltdl dir... " >&6; } 42229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_check_plibltdl_dir_msg" >&5 42230$as_echo "$pmix_check_plibltdl_dir_msg" >&6; } 42231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl library dir" >&5 42232$as_echo_n "checking for libltdl library dir... " >&6; } 42233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_check_plibltdl_libdir_msg" >&5 42234$as_echo "$pmix_check_plibltdl_libdir_msg" >&6; } 42235 42236 42237 pmix_check_package_pmix_pdl_plibltdl_save_CPPFLAGS="$CPPFLAGS" 42238 pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS="$LDFLAGS" 42239 pmix_check_package_pmix_pdl_plibltdl_save_LIBS="$LIBS" 42240 42241 pmix_check_package_pmix_pdl_plibltdl_orig_CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS" 42242 pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS" 42243 pmix_check_package_pmix_pdl_plibltdl_orig_LIBS="$pmix_pdl_plibltdl_LIBS" 42244 42245 42246 # This is stolen from autoconf to peek under the covers to get the 42247 # cache variable for the library check. one should not copy this 42248 # code into other places unless you want much pain and suffering 42249 42250 42251 # so this sucks, but there's no way to get through the progression 42252 # of header includes without killing off the cache variable and trying 42253 # again... 42254 unset ac_cv_header_ltdl_h 42255 pmix_check_package_header_happy="no" 42256 42257 # get rid of the trailing slash(es) 42258 hdir_prefix=$(echo $pmix_check_plibltdl_dir | sed -e 'sX/*$XXg') 42259 42260 if test "$hdir_prefix" = "" || \ 42261 test "$hdir_prefix" = "/usr" || \ 42262 test "$hdir_prefix" = "/usr/local"; then : 42263 # try as is... 42264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 42265$as_echo "looking for header without includes" >&6; } 42266 for ac_header in ltdl.h 42267do : 42268 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 42269if test "x$ac_cv_header_ltdl_h" = xyes; then : 42270 cat >>confdefs.h <<_ACEOF 42271#define HAVE_LTDL_H 1 42272_ACEOF 42273 pmix_check_package_header_happy="yes" 42274fi 42275 42276done 42277 42278 if test "$pmix_check_package_header_happy" = "no"; then : 42279 # no go on the as is - reset the cache and try again 42280 unset ac_cv_header_ltdl_h 42281fi 42282fi 42283 42284 if test "$pmix_check_package_header_happy" = "no"; then : 42285 if test "$hdir_prefix" != ""; then : 42286 pmix_pdl_plibltdl_CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS -I$hdir_prefix" 42287 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 42288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 42289$as_echo "looking for header in $hdir_prefix" >&6; } 42290 for ac_header in ltdl.h 42291do : 42292 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 42293if test "x$ac_cv_header_ltdl_h" = xyes; then : 42294 cat >>confdefs.h <<_ACEOF 42295#define HAVE_LTDL_H 1 42296_ACEOF 42297 pmix_check_package_header_happy="yes" 42298fi 42299 42300done 42301 42302 if test "$pmix_check_package_header_happy" = "no"; then : 42303 unset ac_cv_header_ltdl_h 42304 pmix_pdl_plibltdl_CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS -I$hdir_prefix/include" 42305 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 42306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 42307$as_echo "looking for header in $hdir_prefix/include" >&6; } 42308 for ac_header in ltdl.h 42309do : 42310 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 42311if test "x$ac_cv_header_ltdl_h" = xyes; then : 42312 cat >>confdefs.h <<_ACEOF 42313#define HAVE_LTDL_H 1 42314_ACEOF 42315 pmix_check_package_header_happy="yes" 42316fi 42317 42318done 42319 42320fi 42321fi 42322fi 42323 42324 if test "$pmix_check_package_header_happy" = "yes"; then : 42325 42326 # This is stolen from autoconf to peek under the covers to get the 42327 # cache variable for the library check. one should not copy this 42328 # code into other places unless you want much pain and suffering 42329 42330 # see comment above 42331 unset ac_cv_lib_ltdl_lt_dlopen 42332 pmix_check_package_lib_happy="no" 42333 42334 # get rid of the trailing slash(es) 42335 libdir_prefix=$(echo $pmix_check_plibltdl_libdir | sed -e 'sX/*$XXg') 42336 42337 if test "$libdir_prefix" != ""; then : 42338 # libdir was specified - search only there 42339 pmix_pdl_plibltdl_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS -L$libdir_prefix" 42340 LDFLAGS="$LDFLAGS -L$libdir_prefix" 42341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5 42342$as_echo_n "checking for library containing lt_dlopen... " >&6; } 42343if ${ac_cv_search_lt_dlopen+:} false; then : 42344 $as_echo_n "(cached) " >&6 42345else 42346 ac_func_search_save_LIBS=$LIBS 42347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42348/* end confdefs.h. */ 42349 42350/* Override any GCC internal prototype to avoid an error. 42351 Use char because int might match the return type of a GCC 42352 builtin and then its argument prototype would still apply. */ 42353#ifdef __cplusplus 42354extern "C" 42355#endif 42356char lt_dlopen (); 42357int 42358main () 42359{ 42360return lt_dlopen (); 42361 ; 42362 return 0; 42363} 42364_ACEOF 42365for ac_lib in '' ltdl; do 42366 if test -z "$ac_lib"; then 42367 ac_res="none required" 42368 else 42369 ac_res=-l$ac_lib 42370 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 42371 fi 42372 if ac_fn_c_try_link "$LINENO"; then : 42373 ac_cv_search_lt_dlopen=$ac_res 42374fi 42375rm -f core conftest.err conftest.$ac_objext \ 42376 conftest$ac_exeext 42377 if ${ac_cv_search_lt_dlopen+:} false; then : 42378 break 42379fi 42380done 42381if ${ac_cv_search_lt_dlopen+:} false; then : 42382 42383else 42384 ac_cv_search_lt_dlopen=no 42385fi 42386rm conftest.$ac_ext 42387LIBS=$ac_func_search_save_LIBS 42388fi 42389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 42390$as_echo "$ac_cv_search_lt_dlopen" >&6; } 42391ac_res=$ac_cv_search_lt_dlopen 42392if test "$ac_res" != no; then : 42393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 42394 pmix_check_package_lib_happy="yes" 42395else 42396 pmix_check_package_lib_happy="no" 42397fi 42398 42399 if test "$pmix_check_package_lib_happy" = "no"; then : 42400 LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS" 42401 pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS" 42402 unset ac_cv_lib_ltdl_lt_dlopen 42403fi 42404else 42405 # libdir was not specified - go through search path 42406 # get rid of the trailing slash(es) 42407 libdir_prefix=$(echo $pmix_check_plibltdl_dir | sed -e 'sX/*$XXg') 42408 42409 # first try standard locations as otherwise our 42410 # searches with libdir_prefix locations might come 42411 # back positive and unnecessarily add an LDFLAG 42412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 42413$as_echo "looking for library without search path" >&6; } 42414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5 42415$as_echo_n "checking for library containing lt_dlopen... " >&6; } 42416if ${ac_cv_search_lt_dlopen+:} false; then : 42417 $as_echo_n "(cached) " >&6 42418else 42419 ac_func_search_save_LIBS=$LIBS 42420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42421/* end confdefs.h. */ 42422 42423/* Override any GCC internal prototype to avoid an error. 42424 Use char because int might match the return type of a GCC 42425 builtin and then its argument prototype would still apply. */ 42426#ifdef __cplusplus 42427extern "C" 42428#endif 42429char lt_dlopen (); 42430int 42431main () 42432{ 42433return lt_dlopen (); 42434 ; 42435 return 0; 42436} 42437_ACEOF 42438for ac_lib in '' ltdl; do 42439 if test -z "$ac_lib"; then 42440 ac_res="none required" 42441 else 42442 ac_res=-l$ac_lib 42443 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 42444 fi 42445 if ac_fn_c_try_link "$LINENO"; then : 42446 ac_cv_search_lt_dlopen=$ac_res 42447fi 42448rm -f core conftest.err conftest.$ac_objext \ 42449 conftest$ac_exeext 42450 if ${ac_cv_search_lt_dlopen+:} false; then : 42451 break 42452fi 42453done 42454if ${ac_cv_search_lt_dlopen+:} false; then : 42455 42456else 42457 ac_cv_search_lt_dlopen=no 42458fi 42459rm conftest.$ac_ext 42460LIBS=$ac_func_search_save_LIBS 42461fi 42462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 42463$as_echo "$ac_cv_search_lt_dlopen" >&6; } 42464ac_res=$ac_cv_search_lt_dlopen 42465if test "$ac_res" != no; then : 42466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 42467 pmix_check_package_lib_happy="yes" 42468else 42469 pmix_check_package_lib_happy="no" 42470fi 42471 42472 if test "$pmix_check_package_lib_happy" = "no"; then : 42473 # no go on the as is.. see what happens later... 42474 LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS" 42475 pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS" 42476 unset ac_cv_lib_ltdl_lt_dlopen 42477fi 42478 42479 if test "$pmix_check_package_lib_happy" = "no"; then : 42480 # if we didn't find it, check the libdir_prefix/lib64 directory 42481 if test "$libdir_prefix" != "" && \ 42482 test "$libdir_prefix" != "/usr" && \ 42483 test "$libdir_prefix" != "/usr/local"; then : 42484 pmix_pdl_plibltdl_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS -L$libdir_prefix/lib64" 42485 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 42486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 42487$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 42488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5 42489$as_echo_n "checking for library containing lt_dlopen... " >&6; } 42490if ${ac_cv_search_lt_dlopen+:} false; then : 42491 $as_echo_n "(cached) " >&6 42492else 42493 ac_func_search_save_LIBS=$LIBS 42494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42495/* end confdefs.h. */ 42496 42497/* Override any GCC internal prototype to avoid an error. 42498 Use char because int might match the return type of a GCC 42499 builtin and then its argument prototype would still apply. */ 42500#ifdef __cplusplus 42501extern "C" 42502#endif 42503char lt_dlopen (); 42504int 42505main () 42506{ 42507return lt_dlopen (); 42508 ; 42509 return 0; 42510} 42511_ACEOF 42512for ac_lib in '' ltdl; do 42513 if test -z "$ac_lib"; then 42514 ac_res="none required" 42515 else 42516 ac_res=-l$ac_lib 42517 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 42518 fi 42519 if ac_fn_c_try_link "$LINENO"; then : 42520 ac_cv_search_lt_dlopen=$ac_res 42521fi 42522rm -f core conftest.err conftest.$ac_objext \ 42523 conftest$ac_exeext 42524 if ${ac_cv_search_lt_dlopen+:} false; then : 42525 break 42526fi 42527done 42528if ${ac_cv_search_lt_dlopen+:} false; then : 42529 42530else 42531 ac_cv_search_lt_dlopen=no 42532fi 42533rm conftest.$ac_ext 42534LIBS=$ac_func_search_save_LIBS 42535fi 42536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 42537$as_echo "$ac_cv_search_lt_dlopen" >&6; } 42538ac_res=$ac_cv_search_lt_dlopen 42539if test "$ac_res" != no; then : 42540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 42541 pmix_check_package_lib_happy="yes" 42542else 42543 pmix_check_package_lib_happy="no" 42544fi 42545 42546 if test "$pmix_check_package_lib_happy" = "no"; then : 42547 # no go on the as is.. see what happens later... 42548 LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS" 42549 pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS" 42550 unset ac_cv_lib_ltdl_lt_dlopen 42551fi 42552fi 42553fi 42554 42555 if test "$pmix_check_package_lib_happy" = "no"; then : 42556 # if we still haven't found it, check the libdir_prefix/lib directory 42557 if test "$libdir_prefix" != "" && \ 42558 test "$libdir_prefix" != "/usr" && \ 42559 test "$libdir_prefix" != "/usr/local"; then : 42560 pmix_pdl_plibltdl_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS -L$libdir_prefix/lib" 42561 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 42562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 42563$as_echo "looking for library in $libdir_prefix/lib" >&6; } 42564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5 42565$as_echo_n "checking for library containing lt_dlopen... " >&6; } 42566if ${ac_cv_search_lt_dlopen+:} false; then : 42567 $as_echo_n "(cached) " >&6 42568else 42569 ac_func_search_save_LIBS=$LIBS 42570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42571/* end confdefs.h. */ 42572 42573/* Override any GCC internal prototype to avoid an error. 42574 Use char because int might match the return type of a GCC 42575 builtin and then its argument prototype would still apply. */ 42576#ifdef __cplusplus 42577extern "C" 42578#endif 42579char lt_dlopen (); 42580int 42581main () 42582{ 42583return lt_dlopen (); 42584 ; 42585 return 0; 42586} 42587_ACEOF 42588for ac_lib in '' ltdl; do 42589 if test -z "$ac_lib"; then 42590 ac_res="none required" 42591 else 42592 ac_res=-l$ac_lib 42593 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 42594 fi 42595 if ac_fn_c_try_link "$LINENO"; then : 42596 ac_cv_search_lt_dlopen=$ac_res 42597fi 42598rm -f core conftest.err conftest.$ac_objext \ 42599 conftest$ac_exeext 42600 if ${ac_cv_search_lt_dlopen+:} false; then : 42601 break 42602fi 42603done 42604if ${ac_cv_search_lt_dlopen+:} false; then : 42605 42606else 42607 ac_cv_search_lt_dlopen=no 42608fi 42609rm conftest.$ac_ext 42610LIBS=$ac_func_search_save_LIBS 42611fi 42612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 42613$as_echo "$ac_cv_search_lt_dlopen" >&6; } 42614ac_res=$ac_cv_search_lt_dlopen 42615if test "$ac_res" != no; then : 42616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 42617 pmix_check_package_lib_happy="yes" 42618else 42619 pmix_check_package_lib_happy="no" 42620fi 42621 42622 if test "$pmix_check_package_lib_happy" = "no"; then : 42623 # no go on the as is.. see what happens later... 42624 LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS" 42625 pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS" 42626 unset ac_cv_lib_ltdl_lt_dlopen 42627fi 42628fi 42629fi 42630 42631fi 42632 42633 42634 if test "$pmix_check_package_lib_happy" = "yes"; then : 42635 pmix_pdl_plibltdl_LIBS="-lltdl " 42636 pmix_check_package_happy="yes" 42637else 42638 pmix_check_package_happy="no" 42639fi 42640 if test "$pmix_check_package_lib_happy" = "yes"; then : 42641 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 42642 if test "$ac_cv_search_lt_dlopen" != "no" && 42643 test "$ac_cv_search_lt_dlopen" != "none required"; then : 42644 pmix_pdl_plibltdl_LIBS="$ac_cv_search_lt_dlopen " 42645else 42646 pmix_pdl_plibltdl_LIBS="" 42647fi 42648 pmix_check_package_happy="yes" 42649else 42650 pmix_check_package_happy="no" 42651fi 42652 42653 42654else 42655 pmix_check_package_happy="no" 42656fi 42657 42658 unset pmix_check_package_header_happy 42659 42660 42661 42662 if test "$pmix_check_package_happy" = "yes"; then : 42663 pmix_pdl_plibltdl_happy=yes 42664else 42665 pmix_pdl_plibltdl_CPPFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_CPPFLAGS" 42666 pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS" 42667 pmix_pdl_plibltdl_LIBS="$pmix_check_package_pmix_pdl_plibltdl_orig_LIBS" 42668 pmix_pdl_plibltdl_happy=no 42669fi 42670 42671 CPPFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_CPPFLAGS" 42672 LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS" 42673 LIBS="$pmix_check_package_pmix_pdl_plibltdl_save_LIBS" 42674 42675 42676fi 42677 42678 # If we have plibltdl, do we have lt_dladvise? 42679 pmix_pdl_plibltdl_have_lt_dladvise=0 42680 if test "$pmix_pdl_plibltdl_happy" = "yes"; then : 42681 CPPFLAGS_save=$CPPFLAGS 42682 LDFLAGS_save=$LDFLAGS 42683 LIBS_save=$LIBS 42684 42685 CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS $CPPFLAGS" 42686 LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS $LDFLAGS" 42687 LIBS="$pmix_pdl_plibltdl_LIBS $LIBS" 42688 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init" 42689if test "x$ac_cv_func_lt_dladvise_init" = xyes; then : 42690 pmix_pdl_plibltdl_have_lt_dladvise=1 42691fi 42692 42693 CPPFLAGS=$CPPFLAGS_save 42694 LDFLAGS=$LDFLAGS_save 42695 LIBS=$LIBS_save 42696 42697fi 42698 42699cat >>confdefs.h <<_ACEOF 42700#define PMIX_PDL_PLIBLTDL_HAVE_LT_DLADVISE $pmix_pdl_plibltdl_have_lt_dladvise 42701_ACEOF 42702 42703 42704 if test "$pmix_pdl_plibltdl_happy" = "yes"; then : 42705 pmix_pdl_plibltdl_ADD_CPPFLAGS=$pmix_pdl_plibltdl_CPPFLAGS 42706 pmix_pdl_plibltdl_ADD_LDFLAGS=$pmix_pdl_plibltdl_LDFLAGS 42707 pmix_pdl_plibltdl_ADD_LIBS=$pmix_pdl_plibltdl_LIBS 42708 should_build=$should_build 42709else 42710 if test ! -z "$with_libltdl" && \ 42711 test "$with_libltdl" != "no"; then : 42712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl support requested (via --with-libltdl) but not found." >&5 42713$as_echo "$as_me: WARNING: libltdl support requested (via --with-libltdl) but not found." >&2;} 42714 as_fn_error $? "Cannot continue." "$LINENO" 5 42715fi 42716 should_build=0 42717fi 42718 42719 42720 42721 42722 42723 42724 # Unwind the index 42725 pmix_scope_index=`expr $pmix_scope_index - 1` 42726 pmix_scope_test=`expr $pmix_scope_index \> 0` 42727 if test "$pmix_scope_test" = "0"; then 42728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 42729$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 42730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 42731$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 42732 as_fn_error $? "Cannot continue" "$LINENO" 5 42733 fi 42734 42735 # Get the variable names from that index 42736 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 42737 eval $pmix_str 42738 42739 # Iterate over all the variables and unset them all 42740 for pmix_var in $pmix_str; do 42741 unset $pmix_var 42742 done 42743 42744 42745 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 42746 42747 if test "$should_build" = "1"; then : 42748 42749 42750 42751 # See if it dropped an output file for us to pick up some 42752 # shell variables in. 42753 infile="$srcdir/src/mca/pdl/plibltdl/post_configure.sh" 42754 42755 # Add this subdir to the mast list of all MCA component subdirs 42756 all_components="$all_components plibltdl" 42757 42758 if test "$compile_mode" = "dso" ; then 42759 dso_components="$dso_components plibltdl" 42760 else 42761 if test "pdl" = "common"; then 42762 # Static libraries in "common" frameworks are installed, and 42763 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 42764 # set. 42765 static_ltlibs="mca/pdl/plibltdl/lib${PMIX_LIB_PREFIX}mca_pdl_plibltdl.la $static_ltlibs" 42766 else 42767 # Other frameworks do not have to obey the 42768 # $FRAMEWORK_LIB_PREFIX prefix. 42769 static_ltlibs="mca/pdl/plibltdl/libmca_pdl_plibltdl.la $static_ltlibs" 42770 fi 42771 echo "extern const pmix_mca_base_component_t mca_pdl_plibltdl_component;" >> $outfile.extern 42772 echo " &mca_pdl_plibltdl_component, " >> $outfile.struct 42773 static_components="$static_components plibltdl" 42774 fi 42775 42776 # Output pretty results 42777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:plibltdl can compile" >&5 42778$as_echo_n "checking if MCA component pdl:plibltdl can compile... " >&6; } 42779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42780$as_echo "yes" >&6; } 42781 42782 if test -f $infile; then 42783 # check for direct call header to include. This will be 42784 # AC_SUBSTed later. 42785 if test "$DIRECT_pdl" = "plibltdl" ; then 42786 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 42787 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 42788 str="MCA_pmix_pdl_DIRECT_CALL_HEADER=$line" 42789 eval $str 42790 else 42791as_fn_error $? "*** pdl component plibltdl was supposed to be direct-called, but 42792*** does not appear to support direct calling. 42793*** Aborting" "$LINENO" 5 42794 fi 42795 fi 42796 else 42797 # were we supposed to have found something in the 42798 # post_configure.sh, but the file didn't exist? 42799 if test "$DIRECT_pdl" = "plibltdl" ; then 42800as_fn_error $? "*** pdl component plibltdl was supposed to be direct-called, but 42801*** does not appear to support direct calling. 42802*** Aborting" "$LINENO" 5 42803 fi 42804 fi 42805 42806else 42807 42808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:plibltdl can compile" >&5 42809$as_echo_n "checking if MCA component pdl:plibltdl can compile... " >&6; } 42810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42811$as_echo "no" >&6; } 42812 42813 # If this component was requested as the default for this 42814 # type, then abort. 42815 if test "$with_pdl" = "plibltdl" ; then 42816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"plibltdl\" failed to configure properly" >&5 42817$as_echo "$as_me: WARNING: MCA component \"plibltdl\" failed to configure properly" >&2;} 42818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 42819$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 42820 as_fn_error $? "Cannot continue" "$LINENO" 5 42821 fi 42822 42823 if test ! -z "$DIRECT_pdl" ; then 42824 if test "$DIRECT_pdl" = "plibltdl" ; then 42825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"plibltdl\" failed to configure properly" >&5 42826$as_echo "$as_me: WARNING: MCA component \"plibltdl\" failed to configure properly" >&2;} 42827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 42828$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 42829 as_fn_error $? "Cannot continue" "$LINENO" 5 42830 fi 42831 fi 42832 42833 # add component to all component list 42834 all_components="$all_components plibltdl" 42835fi 42836 42837 42838 # If we won, then do all the rest of the setup 42839 if test "$should_build" = "1"; then : 42840 42841 # Add some stuff to CPPFLAGS so that the rest of the source 42842 # tree can be built 42843 LDFLAGS="$LDFLAGS $pmix_pdl_plibltdl_ADD_LDFLAGS" 42844 LIBS="$LIBS $pmix_pdl_plibltdl_ADD_LIBS" 42845 42846fi 42847 42848 42849 # set the AM_CONDITIONAL on how we should build 42850 if test "$compile_mode" = "dso"; then : 42851 BUILD_pmix_pdl_plibltdl_DSO=1 42852else 42853 BUILD_pmix_pdl_plibltdl_DSO=0 42854fi 42855 if test "$BUILD_pmix_pdl_plibltdl_DSO" = "1"; then 42856 MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE= 42857 MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE='#' 42858else 42859 MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE='#' 42860 MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE= 42861fi 42862 42863 42864 if test "$should_build" = "1"; then : 42865 components_last_result=1 42866else 42867 components_last_result=0 42868fi 42869 42870 unset compile_mode 42871 42872 if test $components_last_result -eq 1; then : 42873 components_looking_for_succeed=0 42874fi 42875 42876 42877 42878 # configure components that provide their own configure script. 42879 # It would be really hard to run these for "find first that 42880 # works", so we don't :) 42881 42882 42883 MCA_pmix_pdl_ALL_COMPONENTS="$all_components" 42884 MCA_pmix_pdl_STATIC_COMPONENTS="$static_components" 42885 MCA_pmix_pdl_DSO_COMPONENTS="$dso_components" 42886 MCA_pmix_pdl_STATIC_LTLIBS="$static_ltlibs" 42887 42888 42889 42890 42891 42892 42893 42894 MCA_pmix_pdl_ALL_SUBDIRS= 42895 for item in $all_components ; do 42896 MCA_pmix_pdl_ALL_SUBDIRS="$MCA_pmix_pdl_ALL_SUBDIRS mca/pdl/$item" 42897 done 42898 42899 42900 42901 MCA_pmix_pdl_STATIC_SUBDIRS= 42902 for item in $static_components ; do 42903 MCA_pmix_pdl_STATIC_SUBDIRS="$MCA_pmix_pdl_STATIC_SUBDIRS mca/pdl/$item" 42904 done 42905 42906 42907 42908 MCA_pmix_pdl_DSO_SUBDIRS= 42909 for item in $dso_components ; do 42910 MCA_pmix_pdl_DSO_SUBDIRS="$MCA_pmix_pdl_DSO_SUBDIRS mca/pdl/$item" 42911 done 42912 42913 42914 42915 # Create the final .h file that will be included in the type's 42916 # top-level glue. This lists all the static components. We don't 42917 # need to do this for "common". 42918 if test "pdl" != "common"; then 42919 cat > $outfile <<EOF 42920/* 42921 * \$HEADER\$ 42922 */ 42923#if defined(c_plusplus) || defined(__cplusplus) 42924extern "C" { 42925#endif 42926 42927`cat $outfile.extern` 42928 42929const pmix_mca_base_component_t *mca_pdl_base_static_components[] = { 42930`cat $outfile.struct` 42931 NULL 42932}; 42933 42934#if defined(c_plusplus) || defined(__cplusplus) 42935} 42936#endif 42937 42938EOF 42939 # Only replace the header file if a) it doesn't previously 42940 # exist, or b) the contents are different. Do this to not 42941 # trigger recompilation of certain .c files just because the 42942 # timestamp changed on $outfile_real (similar to the way AC 42943 # handles AC_CONFIG_HEADER files). 42944 diff $outfile $outfile_real > /dev/null 2>&1 42945 if test "$?" != "0"; then 42946 mv $outfile $outfile_real 42947 else 42948 rm -f $outfile 42949 fi 42950 fi 42951 rm -f $outfile.struct $outfile.extern 42952 42953 unset all_components static_components dso_components outfile outfile_real 42954 42955 42956 # If we found no suitable static pdl component and dlopen support 42957 # was not specifically disabled, this is an error. 42958 if test "$MCA_pmix_pdl_STATIC_COMPONENTS" = "" && \ 42959 test $PMIX_ENABLE_DLOPEN_SUPPORT -eq 1; then : 42960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find a suitable static pmix pdl component" >&5 42961$as_echo "$as_me: WARNING: Did not find a suitable static pmix pdl component" >&2;} 42962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You might need to install libltld (and its headers) or" >&5 42963$as_echo "$as_me: WARNING: You might need to install libltld (and its headers) or" >&2;} 42964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: specify --disable-dlopen to configure." >&5 42965$as_echo "$as_me: WARNING: specify --disable-dlopen to configure." >&2;} 42966 as_fn_error $? "Cannot continue" "$LINENO" 5 42967fi 42968 42969 # If we have a winning component (which, per above, will only 42970 # happen if --disable-dlopen was *not* specified), do some more 42971 # logic. 42972 if test "$MCA_pmix_pdl_STATIC_COMPONENTS" != ""; then : 42973 # We had a winner -- w00t! 42974 42975 PMIX_HAVE_PDL_SUPPORT=1 42976 # If we added any -L flags to ADD_LDFLAGS, then we (might) 42977 # need to add those directories to LD_LIBRARY_PATH. 42978 # Otherwise, if we try to AC RUN_IFELSE anything here in 42979 # configure, it might die because it can't find the libraries 42980 # we just linked against. 42981 42982 42983 # Is the private index set? If not, set it. 42984 if test "x$pmix_scope_index" = "x"; then 42985 pmix_scope_index=1 42986 fi 42987 42988 # First, check to see if any of these variables are already set. 42989 # This is a simple sanity check to ensure we're not already 42990 # overwriting pre-existing variables (that have a non-empty 42991 # value). It's not a perfect check, but at least it's something. 42992 for pmix_var in pmix_pdl_base_found_l pmix_pdl_base_token pmix_pdl_base_tmp pmix_pdl_base_dir; do 42993 pmix_str="pmix_str=\"\$$pmix_var\"" 42994 eval $pmix_str 42995 42996 if test "x$pmix_str" != "x"; then 42997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 42998$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 42999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 43000$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 43001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 43002$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 43003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 43004$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 43005 as_fn_error $? "Cannot continue" "$LINENO" 5 43006 fi 43007 done 43008 43009 # Ok, we passed the simple sanity check. Save all these names so 43010 # that we can unset them at the end of the scope. 43011 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_pdl_base_found_l pmix_pdl_base_token pmix_pdl_base_tmp pmix_pdl_base_dir\"" 43012 eval $pmix_str 43013 unset pmix_str 43014 43015 env | grep pmix_scope 43016 pmix_scope_index=`expr $pmix_scope_index + 1` 43017 43018 pmix_pdl_base_found_l=0 43019 eval "pmix_pdl_base_tmp=\$pmix_pdl_${pmix_pdl_winner}_ADD_LIBS" 43020 for pmix_pdl_base_token in $pmix_pdl_base_tmp; do 43021 case $pmix_pdl_base_token in 43022 -l*) pmix_pdl_base_found_l=1 ;; 43023 esac 43024 done 43025 if test $pmix_pdl_base_found_l -eq 1; then : 43026 eval "pmix_pdl_base_tmp=\$pmix_pdl_${pmix_pdl_winner}_ADD_LDFLAGS" 43027 for pmix_pdl_base_token in $pmix_pdl_base_tmp; do 43028 case $pmix_pdl_base_token in 43029 -L*) 43030 pmix_pdl_base_dir=`echo $pmix_pdl_base_token | cut -c3-` 43031 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$pmix_pdl_base_dir 43032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adding to LD_LIBRARY_PATH: $pmix_pdl_base_dir" >&5 43033$as_echo "$as_me: WARNING: Adding to LD_LIBRARY_PATH: $pmix_pdl_base_dir" >&2;} 43034 ;; 43035 esac 43036 done 43037fi 43038 43039 # Unwind the index 43040 pmix_scope_index=`expr $pmix_scope_index - 1` 43041 pmix_scope_test=`expr $pmix_scope_index \> 0` 43042 if test "$pmix_scope_test" = "0"; then 43043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 43044$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 43045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 43046$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 43047 as_fn_error $? "Cannot continue" "$LINENO" 5 43048 fi 43049 43050 # Get the variable names from that index 43051 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 43052 eval $pmix_str 43053 43054 # Iterate over all the variables and unset them all 43055 for pmix_var in $pmix_str; do 43056 unset $pmix_var 43057 done 43058 43059 43060fi 43061 43062 43063cat >>confdefs.h <<_ACEOF 43064#define PMIX_HAVE_PDL_SUPPORT $PMIX_HAVE_PDL_SUPPORT 43065_ACEOF 43066 43067 43068 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pif" 43069 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pif" 43070 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pif_ALL_SUBDIRS)" 43071 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pif_DSO_SUBDIRS)" 43072 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pif_STATIC_SUBDIRS)" 43073 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pif/libmca_pif.la" 43074 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pif_STATIC_LTLIBS)" 43075 43076 pmix_show_subsubtitle "Configuring MCA framework pif" 43077 43078 43079 43080 43081 # setup for framework 43082 all_components= 43083 static_components= 43084 dso_components= 43085 static_ltlibs= 43086 43087 # Ensure that the directory where the #include file is to live 43088 # exists. Need to do this for VPATH builds, because the directory 43089 # may not exist yet. For the "common" type, it's not really a 43090 # component, so it doesn't have a base. 43091 outdir=src/mca/pif/base 43092 as_dir=$outdir; as_fn_mkdir_p 43093 43094 # emit Makefile rule 43095 ac_config_files="$ac_config_files src/mca/pif/Makefile" 43096 43097 43098 # remove any previously generated #include files 43099 outfile_real=$outdir/static-components.h 43100 outfile=$outfile_real.new 43101 rm -f $outfile $outfile.struct $outfile.extern 43102 touch $outfile.struct $outfile.extern 43103 43104 # print some nice messages about what we're about to do... 43105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pif" >&5 43106$as_echo_n "checking for no configure components in framework pif... " >&6; } 43107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 43108$as_echo "" >&6; } 43109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pif" >&5 43110$as_echo_n "checking for m4 configure components in framework pif... " >&6; } 43111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsdx_ipv4, bsdx_ipv6, linux_ipv6, posix_ipv4, solaris_ipv6" >&5 43112$as_echo "bsdx_ipv4, bsdx_ipv6, linux_ipv6, posix_ipv4, solaris_ipv6" >&6; } 43113 43114 # If there are components in the no configure list, but we're 43115 # doing one of the "special" selection logics, abort with a 43116 # reasonable message. 43117 43118 43119 43120 # run the configure logic for the no-config components 43121 43122 43123 # configure components that use built-in configuration scripts 43124 43125 43126 43127 best_mca_component_priority=0 43128 components_looking_for_succeed=1 43129 components_last_result=0 43130 43131 43132 pmix_show_subsubsubtitle "MCA component pif:bsdx_ipv4 (m4 configuration macro)" 43133 43134 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 43135 43136 43137 43138 component_path="$srcdir/src/mca/pif/bsdx_ipv4" 43139 want_component=0 43140 43141 # build if: 43142 # - the component type is direct and we are that component 43143 # - there is no pmix_ignore file 43144 # - there is an pmix_ignore, but there is an empty pmix_unignore 43145 # - there is an pmix_ignore, but username is in pmix_unignore 43146 if test -d $component_path ; then 43147 # decide if we want the component to be built or not. This 43148 # is spread out because some of the logic is a little complex 43149 # and test's syntax isn't exactly the greatest. We want to 43150 # build the component by default. 43151 want_component=1 43152 if test -f $component_path/.pmix_ignore ; then 43153 # If there is an pmix_ignore file, don't build 43154 # the component. Note that this decision can be 43155 # overridden by the unignore logic below. 43156 want_component=0 43157 fi 43158 if test -f $component_path/.pmix_unignore ; then 43159 # if there is an empty pmix_unignore, that is 43160 # equivalent to having your userid in the unignore file. 43161 # If userid is in the file, unignore the ignore file. 43162 if test ! -s $component_path/.pmix_unignore ; then 43163 want_component=1 43164 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 43165 want_component=1 43166 fi 43167 fi 43168 # if this component type is direct and we are not it, we don't want 43169 # to be built. Otherwise, we do want to be built. 43170 if test ! -z "$DIRECT_pif" ; then 43171 if test "$DIRECT_pif" = "bsdx_ipv4" ; then 43172 want_component=1 43173 else 43174 want_component=0 43175 fi 43176 fi 43177 fi 43178 43179 # if we were explicitly disabled, don't build :) 43180 if test "$DISABLE_pif" = "1"; then : 43181 want_component=0 43182fi 43183 if test "$DISABLE_pif_bsdx_ipv4" = "1"; then : 43184 want_component=0 43185fi 43186 43187 if test "$want_component" = "1"; then : 43188 should_build=$components_looking_for_succeed 43189else 43190 should_build=0 43191fi 43192 43193 # Allow the component to override the build mode if it really wants to. 43194 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 43195 43196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:bsdx_ipv4 compile mode" >&5 43197$as_echo_n "checking for MCA component pif:bsdx_ipv4 compile mode... " >&6; } 43198 compile_mode="static" 43199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 43200$as_echo "$compile_mode" >&6; } 43201 43202 43203 # try to configure the component 43204 43205 ac_config_files="$ac_config_files src/mca/pif/bsdx_ipv4/Makefile" 43206 43207 43208 43209 43210 # If we found struct sockaddr and we're on any of the BSDs, we're 43211 # happy. I.e., this: 43212 #if defined(__NetBSD__) || defined(__FreeBSD__) || \ 43213 # defined(__OpenBSD__) || defined(__DragonFly__) 43214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5 43215$as_echo_n "checking struct sockaddr... " >&6; } 43216 if test "$pmix_found_sockaddr" = "yes"; then : 43217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5 43218$as_echo "yes (cached)" >&6; } 43219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NetBSD, FreeBSD, OpenBSD, or DragonFly" >&5 43220$as_echo_n "checking NetBSD, FreeBSD, OpenBSD, or DragonFly... " >&6; } 43221 if test "$pmix_found_netbsd" = "yes" || \ 43222 test "$pmix_found_freebsd" = "yes" || \ 43223 test "$pmix_found_openbsd" = "yes" || \ 43224 test "$pmix_found_dragonfly" = "yes"; then : 43225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43226$as_echo "yes" >&6; } 43227 should_build=$should_build 43228else 43229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43230$as_echo "no" >&6; } 43231 should_build=0 43232fi 43233else 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5 43235$as_echo "no (cached)" >&6; } 43236 should_build=0 43237fi 43238 43239 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 43240 43241 if test "$should_build" = "1"; then : 43242 43243 43244 43245 # See if it dropped an output file for us to pick up some 43246 # shell variables in. 43247 infile="$srcdir/src/mca/pif/bsdx_ipv4/post_configure.sh" 43248 43249 # Add this subdir to the mast list of all MCA component subdirs 43250 all_components="$all_components bsdx_ipv4" 43251 43252 if test "$compile_mode" = "dso" ; then 43253 dso_components="$dso_components bsdx_ipv4" 43254 else 43255 if test "pif" = "common"; then 43256 # Static libraries in "common" frameworks are installed, and 43257 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 43258 # set. 43259 static_ltlibs="mca/pif/bsdx_ipv4/lib${PMIX_LIB_PREFIX}mca_pif_bsdx_ipv4.la $static_ltlibs" 43260 else 43261 # Other frameworks do not have to obey the 43262 # $FRAMEWORK_LIB_PREFIX prefix. 43263 static_ltlibs="mca/pif/bsdx_ipv4/libmca_pif_bsdx_ipv4.la $static_ltlibs" 43264 fi 43265 echo "extern const pmix_mca_base_component_t mca_pif_bsdx_ipv4_component;" >> $outfile.extern 43266 echo " &mca_pif_bsdx_ipv4_component, " >> $outfile.struct 43267 static_components="$static_components bsdx_ipv4" 43268 fi 43269 43270 # Output pretty results 43271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv4 can compile" >&5 43272$as_echo_n "checking if MCA component pif:bsdx_ipv4 can compile... " >&6; } 43273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43274$as_echo "yes" >&6; } 43275 43276 if test -f $infile; then 43277 # check for direct call header to include. This will be 43278 # AC_SUBSTed later. 43279 if test "$DIRECT_pif" = "bsdx_ipv4" ; then 43280 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 43281 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 43282 str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line" 43283 eval $str 43284 else 43285as_fn_error $? "*** pif component bsdx_ipv4 was supposed to be direct-called, but 43286*** does not appear to support direct calling. 43287*** Aborting" "$LINENO" 5 43288 fi 43289 fi 43290 else 43291 # were we supposed to have found something in the 43292 # post_configure.sh, but the file didn't exist? 43293 if test "$DIRECT_pif" = "bsdx_ipv4" ; then 43294as_fn_error $? "*** pif component bsdx_ipv4 was supposed to be direct-called, but 43295*** does not appear to support direct calling. 43296*** Aborting" "$LINENO" 5 43297 fi 43298 fi 43299 43300else 43301 43302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv4 can compile" >&5 43303$as_echo_n "checking if MCA component pif:bsdx_ipv4 can compile... " >&6; } 43304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43305$as_echo "no" >&6; } 43306 43307 # If this component was requested as the default for this 43308 # type, then abort. 43309 if test "$with_pif" = "bsdx_ipv4" ; then 43310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&5 43311$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&2;} 43312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 43313$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 43314 as_fn_error $? "Cannot continue" "$LINENO" 5 43315 fi 43316 43317 if test ! -z "$DIRECT_pif" ; then 43318 if test "$DIRECT_pif" = "bsdx_ipv4" ; then 43319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&5 43320$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&2;} 43321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 43322$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 43323 as_fn_error $? "Cannot continue" "$LINENO" 5 43324 fi 43325 fi 43326 43327 # add component to all component list 43328 all_components="$all_components bsdx_ipv4" 43329fi 43330 43331 43332 43333 # set the AM_CONDITIONAL on how we should build 43334 if test "$compile_mode" = "dso"; then : 43335 BUILD_pmix_pif_bsdx_ipv4_DSO=1 43336else 43337 BUILD_pmix_pif_bsdx_ipv4_DSO=0 43338fi 43339 if test "$BUILD_pmix_pif_bsdx_ipv4_DSO" = "1"; then 43340 MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE= 43341 MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE='#' 43342else 43343 MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE='#' 43344 MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE= 43345fi 43346 43347 43348 if test "$should_build" = "1"; then : 43349 components_last_result=1 43350else 43351 components_last_result=0 43352fi 43353 43354 unset compile_mode 43355 43356 43357 43358 43359 43360 pmix_show_subsubsubtitle "MCA component pif:bsdx_ipv6 (m4 configuration macro)" 43361 43362 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 43363 43364 43365 43366 component_path="$srcdir/src/mca/pif/bsdx_ipv6" 43367 want_component=0 43368 43369 # build if: 43370 # - the component type is direct and we are that component 43371 # - there is no pmix_ignore file 43372 # - there is an pmix_ignore, but there is an empty pmix_unignore 43373 # - there is an pmix_ignore, but username is in pmix_unignore 43374 if test -d $component_path ; then 43375 # decide if we want the component to be built or not. This 43376 # is spread out because some of the logic is a little complex 43377 # and test's syntax isn't exactly the greatest. We want to 43378 # build the component by default. 43379 want_component=1 43380 if test -f $component_path/.pmix_ignore ; then 43381 # If there is an pmix_ignore file, don't build 43382 # the component. Note that this decision can be 43383 # overridden by the unignore logic below. 43384 want_component=0 43385 fi 43386 if test -f $component_path/.pmix_unignore ; then 43387 # if there is an empty pmix_unignore, that is 43388 # equivalent to having your userid in the unignore file. 43389 # If userid is in the file, unignore the ignore file. 43390 if test ! -s $component_path/.pmix_unignore ; then 43391 want_component=1 43392 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 43393 want_component=1 43394 fi 43395 fi 43396 # if this component type is direct and we are not it, we don't want 43397 # to be built. Otherwise, we do want to be built. 43398 if test ! -z "$DIRECT_pif" ; then 43399 if test "$DIRECT_pif" = "bsdx_ipv6" ; then 43400 want_component=1 43401 else 43402 want_component=0 43403 fi 43404 fi 43405 fi 43406 43407 # if we were explicitly disabled, don't build :) 43408 if test "$DISABLE_pif" = "1"; then : 43409 want_component=0 43410fi 43411 if test "$DISABLE_pif_bsdx_ipv6" = "1"; then : 43412 want_component=0 43413fi 43414 43415 if test "$want_component" = "1"; then : 43416 should_build=$components_looking_for_succeed 43417else 43418 should_build=0 43419fi 43420 43421 # Allow the component to override the build mode if it really wants to. 43422 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 43423 43424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:bsdx_ipv6 compile mode" >&5 43425$as_echo_n "checking for MCA component pif:bsdx_ipv6 compile mode... " >&6; } 43426 compile_mode="static" 43427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 43428$as_echo "$compile_mode" >&6; } 43429 43430 43431 # try to configure the component 43432 43433 ac_config_files="$ac_config_files src/mca/pif/bsdx_ipv6/Makefile" 43434 43435 43436 43437 43438 # If we found struct sockaddr and we're on any of the BSDs, we're 43439 # happy. I.e., this: 43440 #if defined( __NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || \ 43441 # defined(__386BSD__) || defined(__bsdi__) || defined(__APPLE__) 43442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5 43443$as_echo_n "checking struct sockaddr... " >&6; } 43444 if test "$pmix_found_sockaddr" = "yes"; then : 43445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5 43446$as_echo "yes (cached)" >&6; } 43447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking some flavor of BSD" >&5 43448$as_echo_n "checking some flavor of BSD... " >&6; } 43449 if test "$pmix_found_netbsd" = "yes" || \ 43450 test "$pmix_found_freebsd" = "yes" || \ 43451 test "$pmix_found_openbsd" = "yes" || \ 43452 test "$pmix_found_386bsd" = "yes" || \ 43453 test "$pmix_found_bsdi" = "yes" || 43454 test "$pmix_found_apple" = "yes"; then : 43455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43456$as_echo "yes" >&6; } 43457 should_build=$should_build 43458else 43459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43460$as_echo "no" >&6; } 43461 should_build=0 43462fi 43463else 43464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5 43465$as_echo "no (cached)" >&6; } 43466 should_build=0 43467fi 43468 43469 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 43470 43471 if test "$should_build" = "1"; then : 43472 43473 43474 43475 # See if it dropped an output file for us to pick up some 43476 # shell variables in. 43477 infile="$srcdir/src/mca/pif/bsdx_ipv6/post_configure.sh" 43478 43479 # Add this subdir to the mast list of all MCA component subdirs 43480 all_components="$all_components bsdx_ipv6" 43481 43482 if test "$compile_mode" = "dso" ; then 43483 dso_components="$dso_components bsdx_ipv6" 43484 else 43485 if test "pif" = "common"; then 43486 # Static libraries in "common" frameworks are installed, and 43487 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 43488 # set. 43489 static_ltlibs="mca/pif/bsdx_ipv6/lib${PMIX_LIB_PREFIX}mca_pif_bsdx_ipv6.la $static_ltlibs" 43490 else 43491 # Other frameworks do not have to obey the 43492 # $FRAMEWORK_LIB_PREFIX prefix. 43493 static_ltlibs="mca/pif/bsdx_ipv6/libmca_pif_bsdx_ipv6.la $static_ltlibs" 43494 fi 43495 echo "extern const pmix_mca_base_component_t mca_pif_bsdx_ipv6_component;" >> $outfile.extern 43496 echo " &mca_pif_bsdx_ipv6_component, " >> $outfile.struct 43497 static_components="$static_components bsdx_ipv6" 43498 fi 43499 43500 # Output pretty results 43501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv6 can compile" >&5 43502$as_echo_n "checking if MCA component pif:bsdx_ipv6 can compile... " >&6; } 43503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43504$as_echo "yes" >&6; } 43505 43506 if test -f $infile; then 43507 # check for direct call header to include. This will be 43508 # AC_SUBSTed later. 43509 if test "$DIRECT_pif" = "bsdx_ipv6" ; then 43510 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 43511 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 43512 str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line" 43513 eval $str 43514 else 43515as_fn_error $? "*** pif component bsdx_ipv6 was supposed to be direct-called, but 43516*** does not appear to support direct calling. 43517*** Aborting" "$LINENO" 5 43518 fi 43519 fi 43520 else 43521 # were we supposed to have found something in the 43522 # post_configure.sh, but the file didn't exist? 43523 if test "$DIRECT_pif" = "bsdx_ipv6" ; then 43524as_fn_error $? "*** pif component bsdx_ipv6 was supposed to be direct-called, but 43525*** does not appear to support direct calling. 43526*** Aborting" "$LINENO" 5 43527 fi 43528 fi 43529 43530else 43531 43532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv6 can compile" >&5 43533$as_echo_n "checking if MCA component pif:bsdx_ipv6 can compile... " >&6; } 43534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43535$as_echo "no" >&6; } 43536 43537 # If this component was requested as the default for this 43538 # type, then abort. 43539 if test "$with_pif" = "bsdx_ipv6" ; then 43540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&5 43541$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&2;} 43542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 43543$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 43544 as_fn_error $? "Cannot continue" "$LINENO" 5 43545 fi 43546 43547 if test ! -z "$DIRECT_pif" ; then 43548 if test "$DIRECT_pif" = "bsdx_ipv6" ; then 43549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&5 43550$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&2;} 43551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 43552$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 43553 as_fn_error $? "Cannot continue" "$LINENO" 5 43554 fi 43555 fi 43556 43557 # add component to all component list 43558 all_components="$all_components bsdx_ipv6" 43559fi 43560 43561 43562 43563 # set the AM_CONDITIONAL on how we should build 43564 if test "$compile_mode" = "dso"; then : 43565 BUILD_pmix_pif_bsdx_ipv6_DSO=1 43566else 43567 BUILD_pmix_pif_bsdx_ipv6_DSO=0 43568fi 43569 if test "$BUILD_pmix_pif_bsdx_ipv6_DSO" = "1"; then 43570 MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE= 43571 MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE='#' 43572else 43573 MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE='#' 43574 MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE= 43575fi 43576 43577 43578 if test "$should_build" = "1"; then : 43579 components_last_result=1 43580else 43581 components_last_result=0 43582fi 43583 43584 unset compile_mode 43585 43586 43587 43588 43589 43590 pmix_show_subsubsubtitle "MCA component pif:linux_ipv6 (m4 configuration macro)" 43591 43592 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 43593 43594 43595 43596 component_path="$srcdir/src/mca/pif/linux_ipv6" 43597 want_component=0 43598 43599 # build if: 43600 # - the component type is direct and we are that component 43601 # - there is no pmix_ignore file 43602 # - there is an pmix_ignore, but there is an empty pmix_unignore 43603 # - there is an pmix_ignore, but username is in pmix_unignore 43604 if test -d $component_path ; then 43605 # decide if we want the component to be built or not. This 43606 # is spread out because some of the logic is a little complex 43607 # and test's syntax isn't exactly the greatest. We want to 43608 # build the component by default. 43609 want_component=1 43610 if test -f $component_path/.pmix_ignore ; then 43611 # If there is an pmix_ignore file, don't build 43612 # the component. Note that this decision can be 43613 # overridden by the unignore logic below. 43614 want_component=0 43615 fi 43616 if test -f $component_path/.pmix_unignore ; then 43617 # if there is an empty pmix_unignore, that is 43618 # equivalent to having your userid in the unignore file. 43619 # If userid is in the file, unignore the ignore file. 43620 if test ! -s $component_path/.pmix_unignore ; then 43621 want_component=1 43622 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 43623 want_component=1 43624 fi 43625 fi 43626 # if this component type is direct and we are not it, we don't want 43627 # to be built. Otherwise, we do want to be built. 43628 if test ! -z "$DIRECT_pif" ; then 43629 if test "$DIRECT_pif" = "linux_ipv6" ; then 43630 want_component=1 43631 else 43632 want_component=0 43633 fi 43634 fi 43635 fi 43636 43637 # if we were explicitly disabled, don't build :) 43638 if test "$DISABLE_pif" = "1"; then : 43639 want_component=0 43640fi 43641 if test "$DISABLE_pif_linux_ipv6" = "1"; then : 43642 want_component=0 43643fi 43644 43645 if test "$want_component" = "1"; then : 43646 should_build=$components_looking_for_succeed 43647else 43648 should_build=0 43649fi 43650 43651 # Allow the component to override the build mode if it really wants to. 43652 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 43653 43654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:linux_ipv6 compile mode" >&5 43655$as_echo_n "checking for MCA component pif:linux_ipv6 compile mode... " >&6; } 43656 compile_mode="static" 43657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 43658$as_echo "$compile_mode" >&6; } 43659 43660 43661 # try to configure the component 43662 43663 ac_config_files="$ac_config_files src/mca/pif/linux_ipv6/Makefile" 43664 43665 43666 43667 43668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on Linux with TCP" >&5 43669$as_echo_n "checking if we are on Linux with TCP... " >&6; } 43670 # If we have struct sockaddr and we're on Linux, then we're 43671 # happy. 43672 if test "$pmix_found_sockaddr" = "yes" && test "$pmix_found_linux" = "yes"; then : 43673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43674$as_echo "yes" >&6; } 43675 should_build=$should_build 43676else 43677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43678$as_echo "no" >&6; } 43679 should_build=0 43680fi 43681 43682 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 43683 43684 if test "$should_build" = "1"; then : 43685 43686 43687 43688 # See if it dropped an output file for us to pick up some 43689 # shell variables in. 43690 infile="$srcdir/src/mca/pif/linux_ipv6/post_configure.sh" 43691 43692 # Add this subdir to the mast list of all MCA component subdirs 43693 all_components="$all_components linux_ipv6" 43694 43695 if test "$compile_mode" = "dso" ; then 43696 dso_components="$dso_components linux_ipv6" 43697 else 43698 if test "pif" = "common"; then 43699 # Static libraries in "common" frameworks are installed, and 43700 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 43701 # set. 43702 static_ltlibs="mca/pif/linux_ipv6/lib${PMIX_LIB_PREFIX}mca_pif_linux_ipv6.la $static_ltlibs" 43703 else 43704 # Other frameworks do not have to obey the 43705 # $FRAMEWORK_LIB_PREFIX prefix. 43706 static_ltlibs="mca/pif/linux_ipv6/libmca_pif_linux_ipv6.la $static_ltlibs" 43707 fi 43708 echo "extern const pmix_mca_base_component_t mca_pif_linux_ipv6_component;" >> $outfile.extern 43709 echo " &mca_pif_linux_ipv6_component, " >> $outfile.struct 43710 static_components="$static_components linux_ipv6" 43711 fi 43712 43713 # Output pretty results 43714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:linux_ipv6 can compile" >&5 43715$as_echo_n "checking if MCA component pif:linux_ipv6 can compile... " >&6; } 43716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43717$as_echo "yes" >&6; } 43718 43719 if test -f $infile; then 43720 # check for direct call header to include. This will be 43721 # AC_SUBSTed later. 43722 if test "$DIRECT_pif" = "linux_ipv6" ; then 43723 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 43724 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 43725 str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line" 43726 eval $str 43727 else 43728as_fn_error $? "*** pif component linux_ipv6 was supposed to be direct-called, but 43729*** does not appear to support direct calling. 43730*** Aborting" "$LINENO" 5 43731 fi 43732 fi 43733 else 43734 # were we supposed to have found something in the 43735 # post_configure.sh, but the file didn't exist? 43736 if test "$DIRECT_pif" = "linux_ipv6" ; then 43737as_fn_error $? "*** pif component linux_ipv6 was supposed to be direct-called, but 43738*** does not appear to support direct calling. 43739*** Aborting" "$LINENO" 5 43740 fi 43741 fi 43742 43743else 43744 43745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:linux_ipv6 can compile" >&5 43746$as_echo_n "checking if MCA component pif:linux_ipv6 can compile... " >&6; } 43747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43748$as_echo "no" >&6; } 43749 43750 # If this component was requested as the default for this 43751 # type, then abort. 43752 if test "$with_pif" = "linux_ipv6" ; then 43753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&5 43754$as_echo "$as_me: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&2;} 43755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 43756$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 43757 as_fn_error $? "Cannot continue" "$LINENO" 5 43758 fi 43759 43760 if test ! -z "$DIRECT_pif" ; then 43761 if test "$DIRECT_pif" = "linux_ipv6" ; then 43762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&5 43763$as_echo "$as_me: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&2;} 43764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 43765$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 43766 as_fn_error $? "Cannot continue" "$LINENO" 5 43767 fi 43768 fi 43769 43770 # add component to all component list 43771 all_components="$all_components linux_ipv6" 43772fi 43773 43774 43775 43776 # set the AM_CONDITIONAL on how we should build 43777 if test "$compile_mode" = "dso"; then : 43778 BUILD_pmix_pif_linux_ipv6_DSO=1 43779else 43780 BUILD_pmix_pif_linux_ipv6_DSO=0 43781fi 43782 if test "$BUILD_pmix_pif_linux_ipv6_DSO" = "1"; then 43783 MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE= 43784 MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE='#' 43785else 43786 MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE='#' 43787 MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE= 43788fi 43789 43790 43791 if test "$should_build" = "1"; then : 43792 components_last_result=1 43793else 43794 components_last_result=0 43795fi 43796 43797 unset compile_mode 43798 43799 43800 43801 43802 43803 pmix_show_subsubsubtitle "MCA component pif:posix_ipv4 (m4 configuration macro)" 43804 43805 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 43806 43807 43808 43809 component_path="$srcdir/src/mca/pif/posix_ipv4" 43810 want_component=0 43811 43812 # build if: 43813 # - the component type is direct and we are that component 43814 # - there is no pmix_ignore file 43815 # - there is an pmix_ignore, but there is an empty pmix_unignore 43816 # - there is an pmix_ignore, but username is in pmix_unignore 43817 if test -d $component_path ; then 43818 # decide if we want the component to be built or not. This 43819 # is spread out because some of the logic is a little complex 43820 # and test's syntax isn't exactly the greatest. We want to 43821 # build the component by default. 43822 want_component=1 43823 if test -f $component_path/.pmix_ignore ; then 43824 # If there is an pmix_ignore file, don't build 43825 # the component. Note that this decision can be 43826 # overridden by the unignore logic below. 43827 want_component=0 43828 fi 43829 if test -f $component_path/.pmix_unignore ; then 43830 # if there is an empty pmix_unignore, that is 43831 # equivalent to having your userid in the unignore file. 43832 # If userid is in the file, unignore the ignore file. 43833 if test ! -s $component_path/.pmix_unignore ; then 43834 want_component=1 43835 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 43836 want_component=1 43837 fi 43838 fi 43839 # if this component type is direct and we are not it, we don't want 43840 # to be built. Otherwise, we do want to be built. 43841 if test ! -z "$DIRECT_pif" ; then 43842 if test "$DIRECT_pif" = "posix_ipv4" ; then 43843 want_component=1 43844 else 43845 want_component=0 43846 fi 43847 fi 43848 fi 43849 43850 # if we were explicitly disabled, don't build :) 43851 if test "$DISABLE_pif" = "1"; then : 43852 want_component=0 43853fi 43854 if test "$DISABLE_pif_posix_ipv4" = "1"; then : 43855 want_component=0 43856fi 43857 43858 if test "$want_component" = "1"; then : 43859 should_build=$components_looking_for_succeed 43860else 43861 should_build=0 43862fi 43863 43864 # Allow the component to override the build mode if it really wants to. 43865 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 43866 43867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:posix_ipv4 compile mode" >&5 43868$as_echo_n "checking for MCA component pif:posix_ipv4 compile mode... " >&6; } 43869 compile_mode="static" 43870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 43871$as_echo "$compile_mode" >&6; } 43872 43873 43874 # try to configure the component 43875 43876 ac_config_files="$ac_config_files src/mca/pif/posix_ipv4/Makefile" 43877 43878 43879 43880 43881 # Is the private index set? If not, set it. 43882 if test "x$pmix_scope_index" = "x"; then 43883 pmix_scope_index=1 43884 fi 43885 43886 # First, check to see if any of these variables are already set. 43887 # This is a simple sanity check to ensure we're not already 43888 # overwriting pre-existing variables (that have a non-empty 43889 # value). It's not a perfect check, but at least it's something. 43890 for pmix_var in pmix_pif_posix_ipv4_happy; do 43891 pmix_str="pmix_str=\"\$$pmix_var\"" 43892 eval $pmix_str 43893 43894 if test "x$pmix_str" != "x"; then 43895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 43896$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 43897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 43898$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 43899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 43900$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 43901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 43902$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 43903 as_fn_error $? "Cannot continue" "$LINENO" 5 43904 fi 43905 done 43906 43907 # Ok, we passed the simple sanity check. Save all these names so 43908 # that we can unset them at the end of the scope. 43909 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_pif_posix_ipv4_happy\"" 43910 eval $pmix_str 43911 unset pmix_str 43912 43913 env | grep pmix_scope 43914 pmix_scope_index=`expr $pmix_scope_index + 1` 43915 43916 pmix_pif_posix_ipv4_happy=no 43917 43918 43919 43920 # If we found struct sockaddr and we're NOT on most of the BSDs, 43921 # we're happy. I.e., if posix but not: 43922 #if defined(__NetBSD__) || defined(__FreeBSD__) || \ 43923 # defined(__OpenBSD__) || defined(__DragonFly__) 43924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5 43925$as_echo_n "checking struct sockaddr... " >&6; } 43926 if test "$pmix_found_sockaddr" = "yes"; then : 43927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5 43928$as_echo "yes (cached)" >&6; } 43929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking not NetBSD, FreeBSD, OpenBSD, or DragonFly" >&5 43930$as_echo_n "checking not NetBSD, FreeBSD, OpenBSD, or DragonFly... " >&6; } 43931 if test "$pmix_found_netbsd" = "no" && test "$pmix_found_freebsd" = "no" && test "$pmix_found_openbsd" = "no" && test "$pmix_found_dragonfly" = "no"; then : 43932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43933$as_echo "yes" >&6; } 43934 pmix_pif_posix_ipv4_happy=yes 43935else 43936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43937$as_echo "no" >&6; } 43938 43939fi 43940else 43941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5 43942$as_echo "no (cached)" >&6; } 43943 43944fi 43945 43946 if test "$pmix_pif_posix_ipv4_happy" = "yes"; then : 43947 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#include <net/if.h> 43948" 43949if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : 43950 43951cat >>confdefs.h <<_ACEOF 43952#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 43953_ACEOF 43954 43955 43956fi 43957 43958 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_mtu" "ac_cv_member_struct_ifreq_ifr_mtu" "#include <net/if.h> 43959" 43960if test "x$ac_cv_member_struct_ifreq_ifr_mtu" = xyes; then : 43961 43962cat >>confdefs.h <<_ACEOF 43963#define HAVE_STRUCT_IFREQ_IFR_MTU 1 43964_ACEOF 43965 43966 43967fi 43968 43969 43970fi 43971 43972 if test "$pmix_pif_posix_ipv4_happy" = "yes"; then : 43973 should_build=$should_build 43974else 43975 should_build=0 43976fi; 43977 43978 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 43979 43980 if test "$should_build" = "1"; then : 43981 43982 43983 43984 # See if it dropped an output file for us to pick up some 43985 # shell variables in. 43986 infile="$srcdir/src/mca/pif/posix_ipv4/post_configure.sh" 43987 43988 # Add this subdir to the mast list of all MCA component subdirs 43989 all_components="$all_components posix_ipv4" 43990 43991 if test "$compile_mode" = "dso" ; then 43992 dso_components="$dso_components posix_ipv4" 43993 else 43994 if test "pif" = "common"; then 43995 # Static libraries in "common" frameworks are installed, and 43996 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 43997 # set. 43998 static_ltlibs="mca/pif/posix_ipv4/lib${PMIX_LIB_PREFIX}mca_pif_posix_ipv4.la $static_ltlibs" 43999 else 44000 # Other frameworks do not have to obey the 44001 # $FRAMEWORK_LIB_PREFIX prefix. 44002 static_ltlibs="mca/pif/posix_ipv4/libmca_pif_posix_ipv4.la $static_ltlibs" 44003 fi 44004 echo "extern const pmix_mca_base_component_t mca_pif_posix_ipv4_component;" >> $outfile.extern 44005 echo " &mca_pif_posix_ipv4_component, " >> $outfile.struct 44006 static_components="$static_components posix_ipv4" 44007 fi 44008 44009 # Output pretty results 44010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:posix_ipv4 can compile" >&5 44011$as_echo_n "checking if MCA component pif:posix_ipv4 can compile... " >&6; } 44012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44013$as_echo "yes" >&6; } 44014 44015 if test -f $infile; then 44016 # check for direct call header to include. This will be 44017 # AC_SUBSTed later. 44018 if test "$DIRECT_pif" = "posix_ipv4" ; then 44019 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 44020 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 44021 str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line" 44022 eval $str 44023 else 44024as_fn_error $? "*** pif component posix_ipv4 was supposed to be direct-called, but 44025*** does not appear to support direct calling. 44026*** Aborting" "$LINENO" 5 44027 fi 44028 fi 44029 else 44030 # were we supposed to have found something in the 44031 # post_configure.sh, but the file didn't exist? 44032 if test "$DIRECT_pif" = "posix_ipv4" ; then 44033as_fn_error $? "*** pif component posix_ipv4 was supposed to be direct-called, but 44034*** does not appear to support direct calling. 44035*** Aborting" "$LINENO" 5 44036 fi 44037 fi 44038 44039else 44040 44041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:posix_ipv4 can compile" >&5 44042$as_echo_n "checking if MCA component pif:posix_ipv4 can compile... " >&6; } 44043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44044$as_echo "no" >&6; } 44045 44046 # If this component was requested as the default for this 44047 # type, then abort. 44048 if test "$with_pif" = "posix_ipv4" ; then 44049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&5 44050$as_echo "$as_me: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&2;} 44051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 44052$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 44053 as_fn_error $? "Cannot continue" "$LINENO" 5 44054 fi 44055 44056 if test ! -z "$DIRECT_pif" ; then 44057 if test "$DIRECT_pif" = "posix_ipv4" ; then 44058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&5 44059$as_echo "$as_me: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&2;} 44060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 44061$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 44062 as_fn_error $? "Cannot continue" "$LINENO" 5 44063 fi 44064 fi 44065 44066 # add component to all component list 44067 all_components="$all_components posix_ipv4" 44068fi 44069 44070 44071 44072 # set the AM_CONDITIONAL on how we should build 44073 if test "$compile_mode" = "dso"; then : 44074 BUILD_pmix_pif_posix_ipv4_DSO=1 44075else 44076 BUILD_pmix_pif_posix_ipv4_DSO=0 44077fi 44078 if test "$BUILD_pmix_pif_posix_ipv4_DSO" = "1"; then 44079 MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE= 44080 MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE='#' 44081else 44082 MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE='#' 44083 MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE= 44084fi 44085 44086 44087 if test "$should_build" = "1"; then : 44088 components_last_result=1 44089else 44090 components_last_result=0 44091fi 44092 44093 unset compile_mode 44094 44095 44096 44097 44098 44099 pmix_show_subsubsubtitle "MCA component pif:solaris_ipv6 (m4 configuration macro)" 44100 44101 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 44102 44103 44104 44105 component_path="$srcdir/src/mca/pif/solaris_ipv6" 44106 want_component=0 44107 44108 # build if: 44109 # - the component type is direct and we are that component 44110 # - there is no pmix_ignore file 44111 # - there is an pmix_ignore, but there is an empty pmix_unignore 44112 # - there is an pmix_ignore, but username is in pmix_unignore 44113 if test -d $component_path ; then 44114 # decide if we want the component to be built or not. This 44115 # is spread out because some of the logic is a little complex 44116 # and test's syntax isn't exactly the greatest. We want to 44117 # build the component by default. 44118 want_component=1 44119 if test -f $component_path/.pmix_ignore ; then 44120 # If there is an pmix_ignore file, don't build 44121 # the component. Note that this decision can be 44122 # overridden by the unignore logic below. 44123 want_component=0 44124 fi 44125 if test -f $component_path/.pmix_unignore ; then 44126 # if there is an empty pmix_unignore, that is 44127 # equivalent to having your userid in the unignore file. 44128 # If userid is in the file, unignore the ignore file. 44129 if test ! -s $component_path/.pmix_unignore ; then 44130 want_component=1 44131 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 44132 want_component=1 44133 fi 44134 fi 44135 # if this component type is direct and we are not it, we don't want 44136 # to be built. Otherwise, we do want to be built. 44137 if test ! -z "$DIRECT_pif" ; then 44138 if test "$DIRECT_pif" = "solaris_ipv6" ; then 44139 want_component=1 44140 else 44141 want_component=0 44142 fi 44143 fi 44144 fi 44145 44146 # if we were explicitly disabled, don't build :) 44147 if test "$DISABLE_pif" = "1"; then : 44148 want_component=0 44149fi 44150 if test "$DISABLE_pif_solaris_ipv6" = "1"; then : 44151 want_component=0 44152fi 44153 44154 if test "$want_component" = "1"; then : 44155 should_build=$components_looking_for_succeed 44156else 44157 should_build=0 44158fi 44159 44160 # Allow the component to override the build mode if it really wants to. 44161 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 44162 44163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:solaris_ipv6 compile mode" >&5 44164$as_echo_n "checking for MCA component pif:solaris_ipv6 compile mode... " >&6; } 44165 compile_mode="static" 44166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 44167$as_echo "$compile_mode" >&6; } 44168 44169 44170 # try to configure the component 44171 44172 ac_config_files="$ac_config_files src/mca/pif/solaris_ipv6/Makefile" 44173 44174 44175 44176 44177 # check to see if we are on a solaris machine 44178 if test "$pmix_found_sun" = "yes"; then : 44179 should_build=$should_build 44180else 44181 should_build=0 44182fi 44183 44184 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 44185 44186 if test "$should_build" = "1"; then : 44187 44188 44189 44190 # See if it dropped an output file for us to pick up some 44191 # shell variables in. 44192 infile="$srcdir/src/mca/pif/solaris_ipv6/post_configure.sh" 44193 44194 # Add this subdir to the mast list of all MCA component subdirs 44195 all_components="$all_components solaris_ipv6" 44196 44197 if test "$compile_mode" = "dso" ; then 44198 dso_components="$dso_components solaris_ipv6" 44199 else 44200 if test "pif" = "common"; then 44201 # Static libraries in "common" frameworks are installed, and 44202 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 44203 # set. 44204 static_ltlibs="mca/pif/solaris_ipv6/lib${PMIX_LIB_PREFIX}mca_pif_solaris_ipv6.la $static_ltlibs" 44205 else 44206 # Other frameworks do not have to obey the 44207 # $FRAMEWORK_LIB_PREFIX prefix. 44208 static_ltlibs="mca/pif/solaris_ipv6/libmca_pif_solaris_ipv6.la $static_ltlibs" 44209 fi 44210 echo "extern const pmix_mca_base_component_t mca_pif_solaris_ipv6_component;" >> $outfile.extern 44211 echo " &mca_pif_solaris_ipv6_component, " >> $outfile.struct 44212 static_components="$static_components solaris_ipv6" 44213 fi 44214 44215 # Output pretty results 44216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:solaris_ipv6 can compile" >&5 44217$as_echo_n "checking if MCA component pif:solaris_ipv6 can compile... " >&6; } 44218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44219$as_echo "yes" >&6; } 44220 44221 if test -f $infile; then 44222 # check for direct call header to include. This will be 44223 # AC_SUBSTed later. 44224 if test "$DIRECT_pif" = "solaris_ipv6" ; then 44225 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 44226 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 44227 str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line" 44228 eval $str 44229 else 44230as_fn_error $? "*** pif component solaris_ipv6 was supposed to be direct-called, but 44231*** does not appear to support direct calling. 44232*** Aborting" "$LINENO" 5 44233 fi 44234 fi 44235 else 44236 # were we supposed to have found something in the 44237 # post_configure.sh, but the file didn't exist? 44238 if test "$DIRECT_pif" = "solaris_ipv6" ; then 44239as_fn_error $? "*** pif component solaris_ipv6 was supposed to be direct-called, but 44240*** does not appear to support direct calling. 44241*** Aborting" "$LINENO" 5 44242 fi 44243 fi 44244 44245else 44246 44247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:solaris_ipv6 can compile" >&5 44248$as_echo_n "checking if MCA component pif:solaris_ipv6 can compile... " >&6; } 44249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44250$as_echo "no" >&6; } 44251 44252 # If this component was requested as the default for this 44253 # type, then abort. 44254 if test "$with_pif" = "solaris_ipv6" ; then 44255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&5 44256$as_echo "$as_me: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&2;} 44257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 44258$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 44259 as_fn_error $? "Cannot continue" "$LINENO" 5 44260 fi 44261 44262 if test ! -z "$DIRECT_pif" ; then 44263 if test "$DIRECT_pif" = "solaris_ipv6" ; then 44264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&5 44265$as_echo "$as_me: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&2;} 44266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 44267$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 44268 as_fn_error $? "Cannot continue" "$LINENO" 5 44269 fi 44270 fi 44271 44272 # add component to all component list 44273 all_components="$all_components solaris_ipv6" 44274fi 44275 44276 44277 44278 # set the AM_CONDITIONAL on how we should build 44279 if test "$compile_mode" = "dso"; then : 44280 BUILD_pmix_pif_solaris_ipv6_DSO=1 44281else 44282 BUILD_pmix_pif_solaris_ipv6_DSO=0 44283fi 44284 if test "$BUILD_pmix_pif_solaris_ipv6_DSO" = "1"; then 44285 MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE= 44286 MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE='#' 44287else 44288 MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE='#' 44289 MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE= 44290fi 44291 44292 44293 if test "$should_build" = "1"; then : 44294 components_last_result=1 44295else 44296 components_last_result=0 44297fi 44298 44299 unset compile_mode 44300 44301 44302 44303 44304 44305 # configure components that provide their own configure script. 44306 # It would be really hard to run these for "find first that 44307 # works", so we don't :) 44308 44309 44310 44311 if test "1" != "0"; then : 44312 44313 for component_path in $srcdir/src/mca/pif/* ; do 44314 component="`basename $component_path`" 44315 if test -d $component_path && test -x $component_path/configure ; then 44316 pmix_show_subsubsubtitle "MCA component pif:$component (need to configure)" 44317 44318 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 44319 44320 44321 44322 component_path="$srcdir/src/mca/pif/$component" 44323 want_component=0 44324 44325 # build if: 44326 # - the component type is direct and we are that component 44327 # - there is no pmix_ignore file 44328 # - there is an pmix_ignore, but there is an empty pmix_unignore 44329 # - there is an pmix_ignore, but username is in pmix_unignore 44330 if test -d $component_path ; then 44331 # decide if we want the component to be built or not. This 44332 # is spread out because some of the logic is a little complex 44333 # and test's syntax isn't exactly the greatest. We want to 44334 # build the component by default. 44335 want_component=1 44336 if test -f $component_path/.pmix_ignore ; then 44337 # If there is an pmix_ignore file, don't build 44338 # the component. Note that this decision can be 44339 # overridden by the unignore logic below. 44340 want_component=0 44341 fi 44342 if test -f $component_path/.pmix_unignore ; then 44343 # if there is an empty pmix_unignore, that is 44344 # equivalent to having your userid in the unignore file. 44345 # If userid is in the file, unignore the ignore file. 44346 if test ! -s $component_path/.pmix_unignore ; then 44347 want_component=1 44348 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 44349 want_component=1 44350 fi 44351 fi 44352 # if this component type is direct and we are not it, we don't want 44353 # to be built. Otherwise, we do want to be built. 44354 if test ! -z "$DIRECT_pif" ; then 44355 if test "$DIRECT_pif" = "$component" ; then 44356 want_component=1 44357 else 44358 want_component=0 44359 fi 44360 fi 44361 fi 44362 44363 # if we were explicitly disabled, don't build :) 44364 if test "$DISABLE_pif" = "1"; then : 44365 want_component=0 44366fi 44367 str="DISABLED_COMPONENT_CHECK=\$DISABLE_pif_$component" 44368 eval $str 44369 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 44370 want_component=0 44371 fi 44372 44373 if test "$want_component" = "1"; then : 44374 should_build=1 44375else 44376 should_build=0 44377fi 44378 44379 44380 SHARED_FRAMEWORK="$DSO_pif" 44381 str="SHARED_COMPONENT=\$DSO_pif_$component" 44382 eval $str 44383 44384 STATIC_FRAMEWORK="$STATIC_pif" 44385 str="STATIC_COMPONENT=\$STATIC_pif_$component" 44386 eval $str 44387 44388 shared_mode_override=static 44389 44390 # Setup for either shared or static 44391 if test "$STATIC_FRAMEWORK" = "1" || \ 44392 test "$STATIC_COMPONENT" = "1" || \ 44393 test "$STATIC_all" = "1" ; then 44394 compile_mode="static" 44395 elif test "$shared_mode_override" = "dso" || \ 44396 test "$SHARED_FRAMEWORK" = "1" || \ 44397 test "$SHARED_COMPONENT" = "1" || \ 44398 test "$DSO_all" = "1"; then 44399 compile_mode="dso" 44400 else 44401 compile_mode="static" 44402 fi 44403 44404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:$component compile mode" >&5 44405$as_echo_n "checking for MCA component pif:$component compile mode... " >&6; } 44406 if test "$DIRECT_pif" = "$component" ; then 44407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 44408$as_echo "$compile_mode - direct" >&6; } 44409 else 44410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 44411$as_echo "$compile_mode" >&6; } 44412 fi 44413 44414 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 44415 44416 if test "$should_build" = "1" ; then 44417 44418 44419 44420 # Is the private index set? If not, set it. 44421 if test "x$pmix_scope_index" = "x"; then 44422 pmix_scope_index=1 44423 fi 44424 44425 # First, check to see if any of these variables are already set. 44426 # This is a simple sanity check to ensure we're not already 44427 # overwriting pre-existing variables (that have a non-empty 44428 # value). It's not a perfect check, but at least it's something. 44429 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 44430 pmix_str="pmix_str=\"\$$pmix_var\"" 44431 eval $pmix_str 44432 44433 if test "x$pmix_str" != "x"; then 44434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 44435$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 44436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 44437$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 44438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 44439$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 44440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 44441$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 44442 as_fn_error $? "Cannot continue" "$LINENO" 5 44443 fi 44444 done 44445 44446 # Ok, we passed the simple sanity check. Save all these names so 44447 # that we can unset them at the end of the scope. 44448 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 44449 eval $pmix_str 44450 unset pmix_str 44451 44452 env | grep pmix_scope 44453 pmix_scope_index=`expr $pmix_scope_index + 1` 44454 44455 44456# 44457# Invoke configure in a specific subdirectory. 44458# 44459# src/mca/pif/$component is the directory to invoke in 44460# $pmix_subdir_args is the list of arguments to pass 44461# should_build=1 is actions to execute upon success 44462# should_build=0 is actions to execute upon failure 44463# 44464subdir_dir="src/mca/pif/$component" 44465subdir_args="$pmix_subdir_args" 44466subdir_success="should_build=1" 44467subdir_failure="should_build=0" 44468 44469# 44470# Sanity checks 44471# 44472 44473if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 44474 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 44475$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 44476 44477 # 44478 # Gotta check where srcdir is for VPATH builds. If srcdir is not 44479 # ., then we need to mkdir the subdir. Otherwise, we can just cd 44480 # into it. 44481 # 44482 44483 case $srcdir in 44484 .) 44485 ;; 44486 *) 44487 { case $subdir_dir in 44488 [\\/]* | ?:[\\/]* ) total_dir=;; 44489 *) total_dir=.;; 44490 esac 44491 temp=$subdir_dir 44492 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 44493 case $dir_part in 44494 # Skip DOS drivespec 44495 ?:) total_dir=$dir_part ;; 44496 *) total_dir=$total_dir/$dir_part 44497 test -d "$total_dir" || 44498 mkdir "$total_dir" || 44499 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 44500 ;; 44501 esac 44502 done; } 44503 44504 if test -d ./$subdir_dir; then :; 44505 else 44506 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 44507 fi 44508 ;; 44509 esac 44510 44511 # 44512 # Move into the target directory 44513 # 44514 44515 subdir_parent=`pwd` 44516 cd $subdir_dir 44517 44518 # 44519 # Make a "../" for each directory in $subdir_dir. 44520 # 44521 44522 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 44523 # 44524 # Construct the --srcdir argument 44525 # 44526 44527 case $srcdir in 44528 .) 44529 # In place 44530 subdir_srcdir="$srcdir" 44531 ;; 44532 [\\/]* | ?:[\\/]* ) 44533 # Absolute path 44534 subdir_srcdir="$srcdir/$subdir_dir" 44535 ;; 44536 *) 44537 # Relative path 44538 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 44539 ;; 44540 esac 44541 44542 # 44543 # Construct the --cache-file argument 44544 # 44545 44546 # BWB - subdir caching is a pain since we change CFLAGS and all that. 44547 # Just disable it for now 44548 subdir_cache_file="/dev/null" 44549 44550 # 44551 # Invoke the configure script in the subdirectory 44552 # 44553 44554 sub_configure="$SHELL '$subdir_srcdir/configure'" 44555 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 44556$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 44557 eval "$sub_configure $subdir_args \ 44558 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 44559 if test "$?" = "0"; then 44560 eval $subdir_success 44561 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 44562$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 44563 else 44564 eval $subdir_failure 44565 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 44566$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 44567 fi 44568 44569 # 44570 # Go back to the topdir 44571 # 44572 44573 cd $subdir_parent 44574fi 44575 44576# 44577# Clean up 44578# 44579 44580 44581 # Unwind the index 44582 pmix_scope_index=`expr $pmix_scope_index - 1` 44583 pmix_scope_test=`expr $pmix_scope_index \> 0` 44584 if test "$pmix_scope_test" = "0"; then 44585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 44586$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 44587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 44588$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 44589 as_fn_error $? "Cannot continue" "$LINENO" 5 44590 fi 44591 44592 # Get the variable names from that index 44593 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 44594 eval $pmix_str 44595 44596 # Iterate over all the variables and unset them all 44597 for pmix_var in $pmix_str; do 44598 unset $pmix_var 44599 done 44600 44601 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 44602 fi 44603 44604 if test "$should_build" = "1" ; then 44605 # do some extra work to pass flags back from the 44606 # top-level configure, the way a configure.m4 44607 # component would. 44608 infile="$srcdir/src/mca/pif/all_components/post_configure.sh" 44609 if test -f $infile; then 44610 44611 # First check for the ABORT tag 44612 line="`$GREP ABORT= $infile | cut -d= -f2-`" 44613 if test -n "$line" && test "$line" != "no"; then 44614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 44615$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 44616 as_fn_error $? "cannot continue" "$LINENO" 5 44617 fi 44618 fi 44619 44620 44621 44622 44623 # See if it dropped an output file for us to pick up some 44624 # shell variables in. 44625 infile="$srcdir/src/mca/pif/$component/post_configure.sh" 44626 44627 # Add this subdir to the mast list of all MCA component subdirs 44628 all_components="$all_components $component" 44629 44630 if test "$compile_mode" = "dso" ; then 44631 dso_components="$dso_components $component" 44632 else 44633 if test "pif" = "common"; then 44634 # Static libraries in "common" frameworks are installed, and 44635 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 44636 # set. 44637 static_ltlibs="mca/pif/$component/lib${PMIX_LIB_PREFIX}mca_pif_$component.la $static_ltlibs" 44638 else 44639 # Other frameworks do not have to obey the 44640 # $FRAMEWORK_LIB_PREFIX prefix. 44641 static_ltlibs="mca/pif/$component/libmca_pif_$component.la $static_ltlibs" 44642 fi 44643 echo "extern const pmix_mca_base_component_t mca_pif_$component_component;" >> $outfile.extern 44644 echo " &mca_pif_$component_component, " >> $outfile.struct 44645 static_components="$static_components $component" 44646 fi 44647 44648 # Output pretty results 44649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:$component can compile" >&5 44650$as_echo_n "checking if MCA component pif:$component can compile... " >&6; } 44651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44652$as_echo "yes" >&6; } 44653 44654 if test -f $infile; then 44655 # check for direct call header to include. This will be 44656 # AC_SUBSTed later. 44657 if test "$DIRECT_pif" = "$component" ; then 44658 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 44659 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 44660 str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line" 44661 eval $str 44662 else 44663as_fn_error $? "*** pif component $component was supposed to be direct-called, but 44664*** does not appear to support direct calling. 44665*** Aborting" "$LINENO" 5 44666 fi 44667 fi 44668 else 44669 # were we supposed to have found something in the 44670 # post_configure.sh, but the file didn't exist? 44671 if test "$DIRECT_pif" = "$component" ; then 44672as_fn_error $? "*** pif component $component was supposed to be direct-called, but 44673*** does not appear to support direct calling. 44674*** Aborting" "$LINENO" 5 44675 fi 44676 fi 44677 44678 else 44679 44680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:$component can compile" >&5 44681$as_echo_n "checking if MCA component pif:$component can compile... " >&6; } 44682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44683$as_echo "no" >&6; } 44684 44685 # If this component was requested as the default for this 44686 # type, then abort. 44687 if test "$with_pif" = "$component" ; then 44688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 44689$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 44690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 44691$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 44692 as_fn_error $? "Cannot continue" "$LINENO" 5 44693 fi 44694 44695 if test ! -z "$DIRECT_pif" ; then 44696 if test "$DIRECT_pif" = "$component" ; then 44697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 44698$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 44699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 44700$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 44701 as_fn_error $? "Cannot continue" "$LINENO" 5 44702 fi 44703 fi 44704 44705 fi 44706 fi 44707 done 44708 44709fi 44710 44711 MCA_pmix_pif_ALL_COMPONENTS="$all_components" 44712 MCA_pmix_pif_STATIC_COMPONENTS="$static_components" 44713 MCA_pmix_pif_DSO_COMPONENTS="$dso_components" 44714 MCA_pmix_pif_STATIC_LTLIBS="$static_ltlibs" 44715 44716 44717 44718 44719 44720 44721 44722 MCA_pmix_pif_ALL_SUBDIRS= 44723 for item in $all_components ; do 44724 MCA_pmix_pif_ALL_SUBDIRS="$MCA_pmix_pif_ALL_SUBDIRS mca/pif/$item" 44725 done 44726 44727 44728 44729 MCA_pmix_pif_STATIC_SUBDIRS= 44730 for item in $static_components ; do 44731 MCA_pmix_pif_STATIC_SUBDIRS="$MCA_pmix_pif_STATIC_SUBDIRS mca/pif/$item" 44732 done 44733 44734 44735 44736 MCA_pmix_pif_DSO_SUBDIRS= 44737 for item in $dso_components ; do 44738 MCA_pmix_pif_DSO_SUBDIRS="$MCA_pmix_pif_DSO_SUBDIRS mca/pif/$item" 44739 done 44740 44741 44742 44743 # Create the final .h file that will be included in the type's 44744 # top-level glue. This lists all the static components. We don't 44745 # need to do this for "common". 44746 if test "pif" != "common"; then 44747 cat > $outfile <<EOF 44748/* 44749 * \$HEADER\$ 44750 */ 44751#if defined(c_plusplus) || defined(__cplusplus) 44752extern "C" { 44753#endif 44754 44755`cat $outfile.extern` 44756 44757const pmix_mca_base_component_t *mca_pif_base_static_components[] = { 44758`cat $outfile.struct` 44759 NULL 44760}; 44761 44762#if defined(c_plusplus) || defined(__cplusplus) 44763} 44764#endif 44765 44766EOF 44767 # Only replace the header file if a) it doesn't previously 44768 # exist, or b) the contents are different. Do this to not 44769 # trigger recompilation of certain .c files just because the 44770 # timestamp changed on $outfile_real (similar to the way AC 44771 # handles AC_CONFIG_HEADER files). 44772 diff $outfile $outfile_real > /dev/null 2>&1 44773 if test "$?" != "0"; then 44774 mv $outfile $outfile_real 44775 else 44776 rm -f $outfile 44777 fi 44778 fi 44779 rm -f $outfile.struct $outfile.extern 44780 44781 unset all_components static_components dso_components outfile outfile_real 44782 44783 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pinstalldirs" 44784 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pinstalldirs" 44785 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pinstalldirs_ALL_SUBDIRS)" 44786 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pinstalldirs_DSO_SUBDIRS)" 44787 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pinstalldirs_STATIC_SUBDIRS)" 44788 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pinstalldirs/libmca_pinstalldirs.la" 44789 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pinstalldirs_STATIC_LTLIBS)" 44790 44791 pmix_show_subsubtitle "Configuring MCA framework pinstalldirs" 44792 44793 44794 44795 44796 # setup for framework 44797 all_components= 44798 static_components= 44799 dso_components= 44800 static_ltlibs= 44801 44802 # Ensure that the directory where the #include file is to live 44803 # exists. Need to do this for VPATH builds, because the directory 44804 # may not exist yet. For the "common" type, it's not really a 44805 # component, so it doesn't have a base. 44806 outdir=src/mca/pinstalldirs/base 44807 as_dir=$outdir; as_fn_mkdir_p 44808 44809 # emit Makefile rule 44810 ac_config_files="$ac_config_files src/mca/pinstalldirs/Makefile" 44811 44812 44813 # remove any previously generated #include files 44814 outfile_real=$outdir/static-components.h 44815 outfile=$outfile_real.new 44816 rm -f $outfile $outfile.struct $outfile.extern 44817 touch $outfile.struct $outfile.extern 44818 44819 # print some nice messages about what we're about to do... 44820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pinstalldirs" >&5 44821$as_echo_n "checking for no configure components in framework pinstalldirs... " >&6; } 44822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 44823$as_echo "" >&6; } 44824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pinstalldirs" >&5 44825$as_echo_n "checking for m4 configure components in framework pinstalldirs... " >&6; } 44826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: config, env" >&5 44827$as_echo "config, env" >&6; } 44828 44829 # If there are components in the no configure list, but we're 44830 # doing one of the "special" selection logics, abort with a 44831 # reasonable message. 44832 44833 44834 44835 # run the configure logic for the no-config components 44836 44837 44838 # configure components that use built-in configuration scripts 44839 44840 44841 44842 44843 44844 44845 best_mca_component_priority=0 44846 components_looking_for_succeed=1 44847 components_last_result=0 44848 44849 44850 pmix_show_subsubsubtitle "MCA component pinstalldirs:env (m4 configuration macro, priority 10)" 44851 44852 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 44853 44854 44855 44856 component_path="$srcdir/src/mca/pinstalldirs/env" 44857 want_component=0 44858 44859 # build if: 44860 # - the component type is direct and we are that component 44861 # - there is no pmix_ignore file 44862 # - there is an pmix_ignore, but there is an empty pmix_unignore 44863 # - there is an pmix_ignore, but username is in pmix_unignore 44864 if test -d $component_path ; then 44865 # decide if we want the component to be built or not. This 44866 # is spread out because some of the logic is a little complex 44867 # and test's syntax isn't exactly the greatest. We want to 44868 # build the component by default. 44869 want_component=1 44870 if test -f $component_path/.pmix_ignore ; then 44871 # If there is an pmix_ignore file, don't build 44872 # the component. Note that this decision can be 44873 # overridden by the unignore logic below. 44874 want_component=0 44875 fi 44876 if test -f $component_path/.pmix_unignore ; then 44877 # if there is an empty pmix_unignore, that is 44878 # equivalent to having your userid in the unignore file. 44879 # If userid is in the file, unignore the ignore file. 44880 if test ! -s $component_path/.pmix_unignore ; then 44881 want_component=1 44882 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 44883 want_component=1 44884 fi 44885 fi 44886 # if this component type is direct and we are not it, we don't want 44887 # to be built. Otherwise, we do want to be built. 44888 if test ! -z "$DIRECT_pinstalldirs" ; then 44889 if test "$DIRECT_pinstalldirs" = "env" ; then 44890 want_component=1 44891 else 44892 want_component=0 44893 fi 44894 fi 44895 fi 44896 44897 # if we were explicitly disabled, don't build :) 44898 if test "$DISABLE_pinstalldirs" = "1"; then : 44899 want_component=0 44900fi 44901 if test "$DISABLE_pinstalldirs_env" = "1"; then : 44902 want_component=0 44903fi 44904 44905 if test "$want_component" = "1"; then : 44906 should_build=$components_looking_for_succeed 44907else 44908 should_build=0 44909fi 44910 44911 # Allow the component to override the build mode if it really wants to. 44912 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 44913 44914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pinstalldirs:env compile mode" >&5 44915$as_echo_n "checking for MCA component pinstalldirs:env compile mode... " >&6; } 44916 compile_mode="static" 44917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 44918$as_echo "$compile_mode" >&6; } 44919 44920 44921 # try to configure the component 44922 44923 ac_config_files="$ac_config_files src/mca/pinstalldirs/env/Makefile" 44924 44925 44926 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 44927 44928 if test "$should_build" = "1"; then : 44929 44930 44931 44932 # See if it dropped an output file for us to pick up some 44933 # shell variables in. 44934 infile="$srcdir/src/mca/pinstalldirs/env/post_configure.sh" 44935 44936 # Add this subdir to the mast list of all MCA component subdirs 44937 all_components="$all_components env" 44938 44939 if test "$compile_mode" = "dso" ; then 44940 dso_components="$dso_components env" 44941 else 44942 if test "pinstalldirs" = "common"; then 44943 # Static libraries in "common" frameworks are installed, and 44944 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 44945 # set. 44946 static_ltlibs="mca/pinstalldirs/env/lib${PMIX_LIB_PREFIX}mca_pinstalldirs_env.la $static_ltlibs" 44947 else 44948 # Other frameworks do not have to obey the 44949 # $FRAMEWORK_LIB_PREFIX prefix. 44950 static_ltlibs="mca/pinstalldirs/env/libmca_pinstalldirs_env.la $static_ltlibs" 44951 fi 44952 echo "extern const pmix_mca_base_component_t mca_pinstalldirs_env_component;" >> $outfile.extern 44953 echo " &mca_pinstalldirs_env_component, " >> $outfile.struct 44954 static_components="$static_components env" 44955 fi 44956 44957 # Output pretty results 44958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:env can compile" >&5 44959$as_echo_n "checking if MCA component pinstalldirs:env can compile... " >&6; } 44960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44961$as_echo "yes" >&6; } 44962 44963 if test -f $infile; then 44964 # check for direct call header to include. This will be 44965 # AC_SUBSTed later. 44966 if test "$DIRECT_pinstalldirs" = "env" ; then 44967 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 44968 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 44969 str="MCA_pmix_pinstalldirs_DIRECT_CALL_HEADER=$line" 44970 eval $str 44971 else 44972as_fn_error $? "*** pinstalldirs component env was supposed to be direct-called, but 44973*** does not appear to support direct calling. 44974*** Aborting" "$LINENO" 5 44975 fi 44976 fi 44977 else 44978 # were we supposed to have found something in the 44979 # post_configure.sh, but the file didn't exist? 44980 if test "$DIRECT_pinstalldirs" = "env" ; then 44981as_fn_error $? "*** pinstalldirs component env was supposed to be direct-called, but 44982*** does not appear to support direct calling. 44983*** Aborting" "$LINENO" 5 44984 fi 44985 fi 44986 44987else 44988 44989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:env can compile" >&5 44990$as_echo_n "checking if MCA component pinstalldirs:env can compile... " >&6; } 44991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44992$as_echo "no" >&6; } 44993 44994 # If this component was requested as the default for this 44995 # type, then abort. 44996 if test "$with_pinstalldirs" = "env" ; then 44997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5 44998$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} 44999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 45000$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 45001 as_fn_error $? "Cannot continue" "$LINENO" 5 45002 fi 45003 45004 if test ! -z "$DIRECT_pinstalldirs" ; then 45005 if test "$DIRECT_pinstalldirs" = "env" ; then 45006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5 45007$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} 45008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 45009$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 45010 as_fn_error $? "Cannot continue" "$LINENO" 5 45011 fi 45012 fi 45013 45014 # add component to all component list 45015 all_components="$all_components env" 45016fi 45017 45018 45019 45020 # set the AM_CONDITIONAL on how we should build 45021 if test "$compile_mode" = "dso"; then : 45022 BUILD_pmix_pinstalldirs_env_DSO=1 45023else 45024 BUILD_pmix_pinstalldirs_env_DSO=0 45025fi 45026 if test "$BUILD_pmix_pinstalldirs_env_DSO" = "1"; then 45027 MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE= 45028 MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE='#' 45029else 45030 MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE='#' 45031 MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE= 45032fi 45033 45034 45035 if test "$should_build" = "1"; then : 45036 components_last_result=1 45037else 45038 components_last_result=0 45039fi 45040 45041 unset compile_mode 45042 45043 45044 45045 45046 45047 pmix_show_subsubsubtitle "MCA component pinstalldirs:config (m4 configuration macro, priority 0)" 45048 45049 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 45050 45051 45052 45053 component_path="$srcdir/src/mca/pinstalldirs/config" 45054 want_component=0 45055 45056 # build if: 45057 # - the component type is direct and we are that component 45058 # - there is no pmix_ignore file 45059 # - there is an pmix_ignore, but there is an empty pmix_unignore 45060 # - there is an pmix_ignore, but username is in pmix_unignore 45061 if test -d $component_path ; then 45062 # decide if we want the component to be built or not. This 45063 # is spread out because some of the logic is a little complex 45064 # and test's syntax isn't exactly the greatest. We want to 45065 # build the component by default. 45066 want_component=1 45067 if test -f $component_path/.pmix_ignore ; then 45068 # If there is an pmix_ignore file, don't build 45069 # the component. Note that this decision can be 45070 # overridden by the unignore logic below. 45071 want_component=0 45072 fi 45073 if test -f $component_path/.pmix_unignore ; then 45074 # if there is an empty pmix_unignore, that is 45075 # equivalent to having your userid in the unignore file. 45076 # If userid is in the file, unignore the ignore file. 45077 if test ! -s $component_path/.pmix_unignore ; then 45078 want_component=1 45079 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 45080 want_component=1 45081 fi 45082 fi 45083 # if this component type is direct and we are not it, we don't want 45084 # to be built. Otherwise, we do want to be built. 45085 if test ! -z "$DIRECT_pinstalldirs" ; then 45086 if test "$DIRECT_pinstalldirs" = "config" ; then 45087 want_component=1 45088 else 45089 want_component=0 45090 fi 45091 fi 45092 fi 45093 45094 # if we were explicitly disabled, don't build :) 45095 if test "$DISABLE_pinstalldirs" = "1"; then : 45096 want_component=0 45097fi 45098 if test "$DISABLE_pinstalldirs_config" = "1"; then : 45099 want_component=0 45100fi 45101 45102 if test "$want_component" = "1"; then : 45103 should_build=$components_looking_for_succeed 45104else 45105 should_build=0 45106fi 45107 45108 # Allow the component to override the build mode if it really wants to. 45109 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 45110 45111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pinstalldirs:config compile mode" >&5 45112$as_echo_n "checking for MCA component pinstalldirs:config compile mode... " >&6; } 45113 compile_mode="static" 45114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 45115$as_echo "$compile_mode" >&6; } 45116 45117 45118 # try to configure the component 45119 45120 ac_config_files="$ac_config_files src/mca/pinstalldirs/config/Makefile src/mca/pinstalldirs/config/pinstall_dirs.h" 45121 45122 45123 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 45124 45125 if test "$should_build" = "1"; then : 45126 45127 45128 45129 # See if it dropped an output file for us to pick up some 45130 # shell variables in. 45131 infile="$srcdir/src/mca/pinstalldirs/config/post_configure.sh" 45132 45133 # Add this subdir to the mast list of all MCA component subdirs 45134 all_components="$all_components config" 45135 45136 if test "$compile_mode" = "dso" ; then 45137 dso_components="$dso_components config" 45138 else 45139 if test "pinstalldirs" = "common"; then 45140 # Static libraries in "common" frameworks are installed, and 45141 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 45142 # set. 45143 static_ltlibs="mca/pinstalldirs/config/lib${PMIX_LIB_PREFIX}mca_pinstalldirs_config.la $static_ltlibs" 45144 else 45145 # Other frameworks do not have to obey the 45146 # $FRAMEWORK_LIB_PREFIX prefix. 45147 static_ltlibs="mca/pinstalldirs/config/libmca_pinstalldirs_config.la $static_ltlibs" 45148 fi 45149 echo "extern const pmix_mca_base_component_t mca_pinstalldirs_config_component;" >> $outfile.extern 45150 echo " &mca_pinstalldirs_config_component, " >> $outfile.struct 45151 static_components="$static_components config" 45152 fi 45153 45154 # Output pretty results 45155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:config can compile" >&5 45156$as_echo_n "checking if MCA component pinstalldirs:config can compile... " >&6; } 45157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45158$as_echo "yes" >&6; } 45159 45160 if test -f $infile; then 45161 # check for direct call header to include. This will be 45162 # AC_SUBSTed later. 45163 if test "$DIRECT_pinstalldirs" = "config" ; then 45164 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 45165 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 45166 str="MCA_pmix_pinstalldirs_DIRECT_CALL_HEADER=$line" 45167 eval $str 45168 else 45169as_fn_error $? "*** pinstalldirs component config was supposed to be direct-called, but 45170*** does not appear to support direct calling. 45171*** Aborting" "$LINENO" 5 45172 fi 45173 fi 45174 else 45175 # were we supposed to have found something in the 45176 # post_configure.sh, but the file didn't exist? 45177 if test "$DIRECT_pinstalldirs" = "config" ; then 45178as_fn_error $? "*** pinstalldirs component config was supposed to be direct-called, but 45179*** does not appear to support direct calling. 45180*** Aborting" "$LINENO" 5 45181 fi 45182 fi 45183 45184else 45185 45186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:config can compile" >&5 45187$as_echo_n "checking if MCA component pinstalldirs:config can compile... " >&6; } 45188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45189$as_echo "no" >&6; } 45190 45191 # If this component was requested as the default for this 45192 # type, then abort. 45193 if test "$with_pinstalldirs" = "config" ; then 45194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5 45195$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} 45196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 45197$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 45198 as_fn_error $? "Cannot continue" "$LINENO" 5 45199 fi 45200 45201 if test ! -z "$DIRECT_pinstalldirs" ; then 45202 if test "$DIRECT_pinstalldirs" = "config" ; then 45203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5 45204$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} 45205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 45206$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 45207 as_fn_error $? "Cannot continue" "$LINENO" 5 45208 fi 45209 fi 45210 45211 # add component to all component list 45212 all_components="$all_components config" 45213fi 45214 45215 45216 45217 # set the AM_CONDITIONAL on how we should build 45218 if test "$compile_mode" = "dso"; then : 45219 BUILD_pmix_pinstalldirs_config_DSO=1 45220else 45221 BUILD_pmix_pinstalldirs_config_DSO=0 45222fi 45223 if test "$BUILD_pmix_pinstalldirs_config_DSO" = "1"; then 45224 MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE= 45225 MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE='#' 45226else 45227 MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE='#' 45228 MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE= 45229fi 45230 45231 45232 if test "$should_build" = "1"; then : 45233 components_last_result=1 45234else 45235 components_last_result=0 45236fi 45237 45238 unset compile_mode 45239 45240 45241 45242 45243 45244 # configure components that provide their own configure script. 45245 # It would be really hard to run these for "find first that 45246 # works", so we don't :) 45247 45248 45249 MCA_pmix_pinstalldirs_ALL_COMPONENTS="$all_components" 45250 MCA_pmix_pinstalldirs_STATIC_COMPONENTS="$static_components" 45251 MCA_pmix_pinstalldirs_DSO_COMPONENTS="$dso_components" 45252 MCA_pmix_pinstalldirs_STATIC_LTLIBS="$static_ltlibs" 45253 45254 45255 45256 45257 45258 45259 45260 MCA_pmix_pinstalldirs_ALL_SUBDIRS= 45261 for item in $all_components ; do 45262 MCA_pmix_pinstalldirs_ALL_SUBDIRS="$MCA_pmix_pinstalldirs_ALL_SUBDIRS mca/pinstalldirs/$item" 45263 done 45264 45265 45266 45267 MCA_pmix_pinstalldirs_STATIC_SUBDIRS= 45268 for item in $static_components ; do 45269 MCA_pmix_pinstalldirs_STATIC_SUBDIRS="$MCA_pmix_pinstalldirs_STATIC_SUBDIRS mca/pinstalldirs/$item" 45270 done 45271 45272 45273 45274 MCA_pmix_pinstalldirs_DSO_SUBDIRS= 45275 for item in $dso_components ; do 45276 MCA_pmix_pinstalldirs_DSO_SUBDIRS="$MCA_pmix_pinstalldirs_DSO_SUBDIRS mca/pinstalldirs/$item" 45277 done 45278 45279 45280 45281 # Create the final .h file that will be included in the type's 45282 # top-level glue. This lists all the static components. We don't 45283 # need to do this for "common". 45284 if test "pinstalldirs" != "common"; then 45285 cat > $outfile <<EOF 45286/* 45287 * \$HEADER\$ 45288 */ 45289#if defined(c_plusplus) || defined(__cplusplus) 45290extern "C" { 45291#endif 45292 45293`cat $outfile.extern` 45294 45295const pmix_mca_base_component_t *mca_pinstalldirs_base_static_components[] = { 45296`cat $outfile.struct` 45297 NULL 45298}; 45299 45300#if defined(c_plusplus) || defined(__cplusplus) 45301} 45302#endif 45303 45304EOF 45305 # Only replace the header file if a) it doesn't previously 45306 # exist, or b) the contents are different. Do this to not 45307 # trigger recompilation of certain .c files just because the 45308 # timestamp changed on $outfile_real (similar to the way AC 45309 # handles AC_CONFIG_HEADER files). 45310 diff $outfile $outfile_real > /dev/null 2>&1 45311 if test "$?" != "0"; then 45312 mv $outfile $outfile_real 45313 else 45314 rm -f $outfile 45315 fi 45316 fi 45317 rm -f $outfile.struct $outfile.extern 45318 45319 unset all_components static_components dso_components outfile outfile_real 45320 45321 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS plog" 45322 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/plog" 45323 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_plog_ALL_SUBDIRS)" 45324 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_plog_DSO_SUBDIRS)" 45325 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_plog_STATIC_SUBDIRS)" 45326 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/plog/libmca_plog.la" 45327 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_plog_STATIC_LTLIBS)" 45328 45329 pmix_show_subsubtitle "Configuring MCA framework plog" 45330 45331 45332 45333 45334 # setup for framework 45335 all_components= 45336 static_components= 45337 dso_components= 45338 static_ltlibs= 45339 45340 # Ensure that the directory where the #include file is to live 45341 # exists. Need to do this for VPATH builds, because the directory 45342 # may not exist yet. For the "common" type, it's not really a 45343 # component, so it doesn't have a base. 45344 outdir=src/mca/plog/base 45345 as_dir=$outdir; as_fn_mkdir_p 45346 45347 # emit Makefile rule 45348 ac_config_files="$ac_config_files src/mca/plog/Makefile" 45349 45350 45351 # remove any previously generated #include files 45352 outfile_real=$outdir/static-components.h 45353 outfile=$outfile_real.new 45354 rm -f $outfile $outfile.struct $outfile.extern 45355 touch $outfile.struct $outfile.extern 45356 45357 # print some nice messages about what we're about to do... 45358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework plog" >&5 45359$as_echo_n "checking for no configure components in framework plog... " >&6; } 45360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default, stdfd" >&5 45361$as_echo "default, stdfd" >&6; } 45362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework plog" >&5 45363$as_echo_n "checking for m4 configure components in framework plog... " >&6; } 45364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5 45365$as_echo "syslog" >&6; } 45366 45367 # If there are components in the no configure list, but we're 45368 # doing one of the "special" selection logics, abort with a 45369 # reasonable message. 45370 45371 45372 45373 # run the configure logic for the no-config components 45374 45375 pmix_show_subsubsubtitle "MCA component plog:default (no configuration)" 45376 45377 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 45378 45379 45380 45381 component_path="$srcdir/src/mca/plog/default" 45382 want_component=0 45383 45384 # build if: 45385 # - the component type is direct and we are that component 45386 # - there is no pmix_ignore file 45387 # - there is an pmix_ignore, but there is an empty pmix_unignore 45388 # - there is an pmix_ignore, but username is in pmix_unignore 45389 if test -d $component_path ; then 45390 # decide if we want the component to be built or not. This 45391 # is spread out because some of the logic is a little complex 45392 # and test's syntax isn't exactly the greatest. We want to 45393 # build the component by default. 45394 want_component=1 45395 if test -f $component_path/.pmix_ignore ; then 45396 # If there is an pmix_ignore file, don't build 45397 # the component. Note that this decision can be 45398 # overridden by the unignore logic below. 45399 want_component=0 45400 fi 45401 if test -f $component_path/.pmix_unignore ; then 45402 # if there is an empty pmix_unignore, that is 45403 # equivalent to having your userid in the unignore file. 45404 # If userid is in the file, unignore the ignore file. 45405 if test ! -s $component_path/.pmix_unignore ; then 45406 want_component=1 45407 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 45408 want_component=1 45409 fi 45410 fi 45411 # if this component type is direct and we are not it, we don't want 45412 # to be built. Otherwise, we do want to be built. 45413 if test ! -z "$DIRECT_plog" ; then 45414 if test "$DIRECT_plog" = "default" ; then 45415 want_component=1 45416 else 45417 want_component=0 45418 fi 45419 fi 45420 fi 45421 45422 # if we were explicitly disabled, don't build :) 45423 if test "$DISABLE_plog" = "1"; then : 45424 want_component=0 45425fi 45426 if test "$DISABLE_plog_default" = "1"; then : 45427 want_component=0 45428fi 45429 45430 if test "$want_component" = "1"; then : 45431 should_build=1 45432else 45433 should_build=0 45434fi 45435 45436 45437 SHARED_FRAMEWORK="$DSO_plog" 45438 SHARED_COMPONENT="$DSO_plog_default" 45439 45440 STATIC_FRAMEWORK="$STATIC_plog" 45441 STATIC_COMPONENT="$STATIC_plog_default" 45442 45443 shared_mode_override=static 45444 45445 # Setup for either shared or static 45446 if test "$STATIC_FRAMEWORK" = "1" || \ 45447 test "$STATIC_COMPONENT" = "1" || \ 45448 test "$STATIC_all" = "1" ; then 45449 compile_mode="static" 45450 elif test "$shared_mode_override" = "dso" || \ 45451 test "$SHARED_FRAMEWORK" = "1" || \ 45452 test "$SHARED_COMPONENT" = "1" || \ 45453 test "$DSO_all" = "1"; then 45454 compile_mode="dso" 45455 else 45456 compile_mode="static" 45457 fi 45458 45459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plog:default compile mode" >&5 45460$as_echo_n "checking for MCA component plog:default compile mode... " >&6; } 45461 if test "$DIRECT_plog" = "default" ; then 45462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 45463$as_echo "$compile_mode - direct" >&6; } 45464 else 45465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 45466$as_echo "$compile_mode" >&6; } 45467 fi 45468 45469 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 45470 45471 if test "$should_build" = "1" ; then 45472 45473 45474 45475 # See if it dropped an output file for us to pick up some 45476 # shell variables in. 45477 infile="$srcdir/src/mca/plog/default/post_configure.sh" 45478 45479 # Add this subdir to the mast list of all MCA component subdirs 45480 all_components="$all_components default" 45481 45482 if test "$compile_mode" = "dso" ; then 45483 dso_components="$dso_components default" 45484 else 45485 if test "plog" = "common"; then 45486 # Static libraries in "common" frameworks are installed, and 45487 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 45488 # set. 45489 static_ltlibs="mca/plog/default/lib${PMIX_LIB_PREFIX}mca_plog_default.la $static_ltlibs" 45490 else 45491 # Other frameworks do not have to obey the 45492 # $FRAMEWORK_LIB_PREFIX prefix. 45493 static_ltlibs="mca/plog/default/libmca_plog_default.la $static_ltlibs" 45494 fi 45495 echo "extern const pmix_mca_base_component_t mca_plog_default_component;" >> $outfile.extern 45496 echo " &mca_plog_default_component, " >> $outfile.struct 45497 static_components="$static_components default" 45498 fi 45499 45500 # Output pretty results 45501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:default can compile" >&5 45502$as_echo_n "checking if MCA component plog:default can compile... " >&6; } 45503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45504$as_echo "yes" >&6; } 45505 45506 if test -f $infile; then 45507 # check for direct call header to include. This will be 45508 # AC_SUBSTed later. 45509 if test "$DIRECT_plog" = "default" ; then 45510 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 45511 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 45512 str="MCA_pmix_plog_DIRECT_CALL_HEADER=$line" 45513 eval $str 45514 else 45515as_fn_error $? "*** plog component default was supposed to be direct-called, but 45516*** does not appear to support direct calling. 45517*** Aborting" "$LINENO" 5 45518 fi 45519 fi 45520 else 45521 # were we supposed to have found something in the 45522 # post_configure.sh, but the file didn't exist? 45523 if test "$DIRECT_plog" = "default" ; then 45524as_fn_error $? "*** plog component default was supposed to be direct-called, but 45525*** does not appear to support direct calling. 45526*** Aborting" "$LINENO" 5 45527 fi 45528 fi 45529 45530 else 45531 45532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:default can compile" >&5 45533$as_echo_n "checking if MCA component plog:default can compile... " >&6; } 45534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45535$as_echo "no" >&6; } 45536 45537 # If this component was requested as the default for this 45538 # type, then abort. 45539 if test "$with_plog" = "default" ; then 45540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5 45541$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} 45542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 45543$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 45544 as_fn_error $? "Cannot continue" "$LINENO" 5 45545 fi 45546 45547 if test ! -z "$DIRECT_plog" ; then 45548 if test "$DIRECT_plog" = "default" ; then 45549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5 45550$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} 45551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 45552$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 45553 as_fn_error $? "Cannot continue" "$LINENO" 5 45554 fi 45555 fi 45556 45557 # add component to all component list 45558 all_components="$all_components default" 45559 fi 45560 45561 # set the AM_CONDITIONAL on how we should build 45562 if test "$compile_mode" = "dso" ; then 45563 BUILD_pmix_plog_default_DSO=1 45564 else 45565 BUILD_pmix_plog_default_DSO=0 45566 fi 45567 if test "$BUILD_pmix_plog_default_DSO" = "1"; then 45568 MCA_BUILD_pmix_plog_default_DSO_TRUE= 45569 MCA_BUILD_pmix_plog_default_DSO_FALSE='#' 45570else 45571 MCA_BUILD_pmix_plog_default_DSO_TRUE='#' 45572 MCA_BUILD_pmix_plog_default_DSO_FALSE= 45573fi 45574 45575 45576 ac_config_files="$ac_config_files src/mca/plog/default/Makefile" 45577 45578 45579 unset compile_mode 45580 45581 pmix_show_subsubsubtitle "MCA component plog:stdfd (no configuration)" 45582 45583 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 45584 45585 45586 45587 component_path="$srcdir/src/mca/plog/stdfd" 45588 want_component=0 45589 45590 # build if: 45591 # - the component type is direct and we are that component 45592 # - there is no pmix_ignore file 45593 # - there is an pmix_ignore, but there is an empty pmix_unignore 45594 # - there is an pmix_ignore, but username is in pmix_unignore 45595 if test -d $component_path ; then 45596 # decide if we want the component to be built or not. This 45597 # is spread out because some of the logic is a little complex 45598 # and test's syntax isn't exactly the greatest. We want to 45599 # build the component by default. 45600 want_component=1 45601 if test -f $component_path/.pmix_ignore ; then 45602 # If there is an pmix_ignore file, don't build 45603 # the component. Note that this decision can be 45604 # overridden by the unignore logic below. 45605 want_component=0 45606 fi 45607 if test -f $component_path/.pmix_unignore ; then 45608 # if there is an empty pmix_unignore, that is 45609 # equivalent to having your userid in the unignore file. 45610 # If userid is in the file, unignore the ignore file. 45611 if test ! -s $component_path/.pmix_unignore ; then 45612 want_component=1 45613 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 45614 want_component=1 45615 fi 45616 fi 45617 # if this component type is direct and we are not it, we don't want 45618 # to be built. Otherwise, we do want to be built. 45619 if test ! -z "$DIRECT_plog" ; then 45620 if test "$DIRECT_plog" = "stdfd" ; then 45621 want_component=1 45622 else 45623 want_component=0 45624 fi 45625 fi 45626 fi 45627 45628 # if we were explicitly disabled, don't build :) 45629 if test "$DISABLE_plog" = "1"; then : 45630 want_component=0 45631fi 45632 if test "$DISABLE_plog_stdfd" = "1"; then : 45633 want_component=0 45634fi 45635 45636 if test "$want_component" = "1"; then : 45637 should_build=1 45638else 45639 should_build=0 45640fi 45641 45642 45643 SHARED_FRAMEWORK="$DSO_plog" 45644 SHARED_COMPONENT="$DSO_plog_stdfd" 45645 45646 STATIC_FRAMEWORK="$STATIC_plog" 45647 STATIC_COMPONENT="$STATIC_plog_stdfd" 45648 45649 shared_mode_override=static 45650 45651 # Setup for either shared or static 45652 if test "$STATIC_FRAMEWORK" = "1" || \ 45653 test "$STATIC_COMPONENT" = "1" || \ 45654 test "$STATIC_all" = "1" ; then 45655 compile_mode="static" 45656 elif test "$shared_mode_override" = "dso" || \ 45657 test "$SHARED_FRAMEWORK" = "1" || \ 45658 test "$SHARED_COMPONENT" = "1" || \ 45659 test "$DSO_all" = "1"; then 45660 compile_mode="dso" 45661 else 45662 compile_mode="static" 45663 fi 45664 45665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plog:stdfd compile mode" >&5 45666$as_echo_n "checking for MCA component plog:stdfd compile mode... " >&6; } 45667 if test "$DIRECT_plog" = "stdfd" ; then 45668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 45669$as_echo "$compile_mode - direct" >&6; } 45670 else 45671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 45672$as_echo "$compile_mode" >&6; } 45673 fi 45674 45675 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 45676 45677 if test "$should_build" = "1" ; then 45678 45679 45680 45681 # See if it dropped an output file for us to pick up some 45682 # shell variables in. 45683 infile="$srcdir/src/mca/plog/stdfd/post_configure.sh" 45684 45685 # Add this subdir to the mast list of all MCA component subdirs 45686 all_components="$all_components stdfd" 45687 45688 if test "$compile_mode" = "dso" ; then 45689 dso_components="$dso_components stdfd" 45690 else 45691 if test "plog" = "common"; then 45692 # Static libraries in "common" frameworks are installed, and 45693 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 45694 # set. 45695 static_ltlibs="mca/plog/stdfd/lib${PMIX_LIB_PREFIX}mca_plog_stdfd.la $static_ltlibs" 45696 else 45697 # Other frameworks do not have to obey the 45698 # $FRAMEWORK_LIB_PREFIX prefix. 45699 static_ltlibs="mca/plog/stdfd/libmca_plog_stdfd.la $static_ltlibs" 45700 fi 45701 echo "extern const pmix_mca_base_component_t mca_plog_stdfd_component;" >> $outfile.extern 45702 echo " &mca_plog_stdfd_component, " >> $outfile.struct 45703 static_components="$static_components stdfd" 45704 fi 45705 45706 # Output pretty results 45707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:stdfd can compile" >&5 45708$as_echo_n "checking if MCA component plog:stdfd can compile... " >&6; } 45709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45710$as_echo "yes" >&6; } 45711 45712 if test -f $infile; then 45713 # check for direct call header to include. This will be 45714 # AC_SUBSTed later. 45715 if test "$DIRECT_plog" = "stdfd" ; then 45716 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 45717 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 45718 str="MCA_pmix_plog_DIRECT_CALL_HEADER=$line" 45719 eval $str 45720 else 45721as_fn_error $? "*** plog component stdfd was supposed to be direct-called, but 45722*** does not appear to support direct calling. 45723*** Aborting" "$LINENO" 5 45724 fi 45725 fi 45726 else 45727 # were we supposed to have found something in the 45728 # post_configure.sh, but the file didn't exist? 45729 if test "$DIRECT_plog" = "stdfd" ; then 45730as_fn_error $? "*** plog component stdfd was supposed to be direct-called, but 45731*** does not appear to support direct calling. 45732*** Aborting" "$LINENO" 5 45733 fi 45734 fi 45735 45736 else 45737 45738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:stdfd can compile" >&5 45739$as_echo_n "checking if MCA component plog:stdfd can compile... " >&6; } 45740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45741$as_echo "no" >&6; } 45742 45743 # If this component was requested as the default for this 45744 # type, then abort. 45745 if test "$with_plog" = "stdfd" ; then 45746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"stdfd\" failed to configure properly" >&5 45747$as_echo "$as_me: WARNING: MCA component \"stdfd\" failed to configure properly" >&2;} 45748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 45749$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 45750 as_fn_error $? "Cannot continue" "$LINENO" 5 45751 fi 45752 45753 if test ! -z "$DIRECT_plog" ; then 45754 if test "$DIRECT_plog" = "stdfd" ; then 45755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"stdfd\" failed to configure properly" >&5 45756$as_echo "$as_me: WARNING: MCA component \"stdfd\" failed to configure properly" >&2;} 45757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 45758$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 45759 as_fn_error $? "Cannot continue" "$LINENO" 5 45760 fi 45761 fi 45762 45763 # add component to all component list 45764 all_components="$all_components stdfd" 45765 fi 45766 45767 # set the AM_CONDITIONAL on how we should build 45768 if test "$compile_mode" = "dso" ; then 45769 BUILD_pmix_plog_stdfd_DSO=1 45770 else 45771 BUILD_pmix_plog_stdfd_DSO=0 45772 fi 45773 if test "$BUILD_pmix_plog_stdfd_DSO" = "1"; then 45774 MCA_BUILD_pmix_plog_stdfd_DSO_TRUE= 45775 MCA_BUILD_pmix_plog_stdfd_DSO_FALSE='#' 45776else 45777 MCA_BUILD_pmix_plog_stdfd_DSO_TRUE='#' 45778 MCA_BUILD_pmix_plog_stdfd_DSO_FALSE= 45779fi 45780 45781 45782 ac_config_files="$ac_config_files src/mca/plog/stdfd/Makefile" 45783 45784 45785 unset compile_mode 45786 45787 45788 # configure components that use built-in configuration scripts 45789 45790 45791 45792 best_mca_component_priority=0 45793 components_looking_for_succeed=1 45794 components_last_result=0 45795 45796 45797 pmix_show_subsubsubtitle "MCA component plog:syslog (m4 configuration macro)" 45798 45799 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 45800 45801 45802 45803 component_path="$srcdir/src/mca/plog/syslog" 45804 want_component=0 45805 45806 # build if: 45807 # - the component type is direct and we are that component 45808 # - there is no pmix_ignore file 45809 # - there is an pmix_ignore, but there is an empty pmix_unignore 45810 # - there is an pmix_ignore, but username is in pmix_unignore 45811 if test -d $component_path ; then 45812 # decide if we want the component to be built or not. This 45813 # is spread out because some of the logic is a little complex 45814 # and test's syntax isn't exactly the greatest. We want to 45815 # build the component by default. 45816 want_component=1 45817 if test -f $component_path/.pmix_ignore ; then 45818 # If there is an pmix_ignore file, don't build 45819 # the component. Note that this decision can be 45820 # overridden by the unignore logic below. 45821 want_component=0 45822 fi 45823 if test -f $component_path/.pmix_unignore ; then 45824 # if there is an empty pmix_unignore, that is 45825 # equivalent to having your userid in the unignore file. 45826 # If userid is in the file, unignore the ignore file. 45827 if test ! -s $component_path/.pmix_unignore ; then 45828 want_component=1 45829 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 45830 want_component=1 45831 fi 45832 fi 45833 # if this component type is direct and we are not it, we don't want 45834 # to be built. Otherwise, we do want to be built. 45835 if test ! -z "$DIRECT_plog" ; then 45836 if test "$DIRECT_plog" = "syslog" ; then 45837 want_component=1 45838 else 45839 want_component=0 45840 fi 45841 fi 45842 fi 45843 45844 # if we were explicitly disabled, don't build :) 45845 if test "$DISABLE_plog" = "1"; then : 45846 want_component=0 45847fi 45848 if test "$DISABLE_plog_syslog" = "1"; then : 45849 want_component=0 45850fi 45851 45852 if test "$want_component" = "1"; then : 45853 should_build=$components_looking_for_succeed 45854else 45855 should_build=0 45856fi 45857 45858 # Allow the component to override the build mode if it really wants to. 45859 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 45860 45861 SHARED_FRAMEWORK="$DSO_plog" 45862 SHARED_COMPONENT="$DSO_plog_syslog" 45863 45864 STATIC_FRAMEWORK="$STATIC_plog" 45865 STATIC_COMPONENT="$STATIC_plog_syslog" 45866 45867 shared_mode_override=static 45868 45869 # Setup for either shared or static 45870 if test "$STATIC_FRAMEWORK" = "1" || \ 45871 test "$STATIC_COMPONENT" = "1" || \ 45872 test "$STATIC_all" = "1" ; then 45873 compile_mode="static" 45874 elif test "$shared_mode_override" = "dso" || \ 45875 test "$SHARED_FRAMEWORK" = "1" || \ 45876 test "$SHARED_COMPONENT" = "1" || \ 45877 test "$DSO_all" = "1"; then 45878 compile_mode="dso" 45879 else 45880 compile_mode="static" 45881 fi 45882 45883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plog:syslog compile mode" >&5 45884$as_echo_n "checking for MCA component plog:syslog compile mode... " >&6; } 45885 if test "$DIRECT_plog" = "syslog" ; then 45886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 45887$as_echo "$compile_mode - direct" >&6; } 45888 else 45889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 45890$as_echo "$compile_mode" >&6; } 45891 fi 45892 45893 45894 # try to configure the component 45895 45896 ac_config_files="$ac_config_files src/mca/plog/syslog/Makefile" 45897 45898 45899 45900 45901 # Is the private index set? If not, set it. 45902 if test "x$pmix_scope_index" = "x"; then 45903 pmix_scope_index=1 45904 fi 45905 45906 # First, check to see if any of these variables are already set. 45907 # This is a simple sanity check to ensure we're not already 45908 # overwriting pre-existing variables (that have a non-empty 45909 # value). It's not a perfect check, but at least it's something. 45910 for pmix_var in pmix_plog_syslog_happy; do 45911 pmix_str="pmix_str=\"\$$pmix_var\"" 45912 eval $pmix_str 45913 45914 if test "x$pmix_str" != "x"; then 45915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 45916$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 45917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 45918$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 45919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 45920$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 45921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 45922$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 45923 as_fn_error $? "Cannot continue" "$LINENO" 5 45924 fi 45925 done 45926 45927 # Ok, we passed the simple sanity check. Save all these names so 45928 # that we can unset them at the end of the scope. 45929 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_plog_syslog_happy\"" 45930 eval $pmix_str 45931 unset pmix_str 45932 45933 env | grep pmix_scope 45934 pmix_scope_index=`expr $pmix_scope_index + 1` 45935 45936 45937 # if syslog.h is not compilable, 45938 # disable this component. 45939 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 45940if test "x$ac_cv_header_syslog_h" = xyes; then : 45941 pmix_plog_syslog_happy=1 45942else 45943 pmix_plog_syslog_happy=0 45944fi 45945 45946 45947 45948 if test $pmix_plog_syslog_happy -eq 1; then : 45949 should_build=$should_build 45950else 45951 should_build=0 45952fi 45953 45954 45955 # Unwind the index 45956 pmix_scope_index=`expr $pmix_scope_index - 1` 45957 pmix_scope_test=`expr $pmix_scope_index \> 0` 45958 if test "$pmix_scope_test" = "0"; then 45959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 45960$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 45961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 45962$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 45963 as_fn_error $? "Cannot continue" "$LINENO" 5 45964 fi 45965 45966 # Get the variable names from that index 45967 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 45968 eval $pmix_str 45969 45970 # Iterate over all the variables and unset them all 45971 for pmix_var in $pmix_str; do 45972 unset $pmix_var 45973 done 45974 45975 45976 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 45977 45978 if test "$should_build" = "1"; then : 45979 45980 45981 45982 # See if it dropped an output file for us to pick up some 45983 # shell variables in. 45984 infile="$srcdir/src/mca/plog/syslog/post_configure.sh" 45985 45986 # Add this subdir to the mast list of all MCA component subdirs 45987 all_components="$all_components syslog" 45988 45989 if test "$compile_mode" = "dso" ; then 45990 dso_components="$dso_components syslog" 45991 else 45992 if test "plog" = "common"; then 45993 # Static libraries in "common" frameworks are installed, and 45994 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 45995 # set. 45996 static_ltlibs="mca/plog/syslog/lib${PMIX_LIB_PREFIX}mca_plog_syslog.la $static_ltlibs" 45997 else 45998 # Other frameworks do not have to obey the 45999 # $FRAMEWORK_LIB_PREFIX prefix. 46000 static_ltlibs="mca/plog/syslog/libmca_plog_syslog.la $static_ltlibs" 46001 fi 46002 echo "extern const pmix_mca_base_component_t mca_plog_syslog_component;" >> $outfile.extern 46003 echo " &mca_plog_syslog_component, " >> $outfile.struct 46004 static_components="$static_components syslog" 46005 fi 46006 46007 # Output pretty results 46008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:syslog can compile" >&5 46009$as_echo_n "checking if MCA component plog:syslog can compile... " >&6; } 46010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46011$as_echo "yes" >&6; } 46012 46013 if test -f $infile; then 46014 # check for direct call header to include. This will be 46015 # AC_SUBSTed later. 46016 if test "$DIRECT_plog" = "syslog" ; then 46017 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 46018 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 46019 str="MCA_pmix_plog_DIRECT_CALL_HEADER=$line" 46020 eval $str 46021 else 46022as_fn_error $? "*** plog component syslog was supposed to be direct-called, but 46023*** does not appear to support direct calling. 46024*** Aborting" "$LINENO" 5 46025 fi 46026 fi 46027 else 46028 # were we supposed to have found something in the 46029 # post_configure.sh, but the file didn't exist? 46030 if test "$DIRECT_plog" = "syslog" ; then 46031as_fn_error $? "*** plog component syslog was supposed to be direct-called, but 46032*** does not appear to support direct calling. 46033*** Aborting" "$LINENO" 5 46034 fi 46035 fi 46036 46037else 46038 46039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:syslog can compile" >&5 46040$as_echo_n "checking if MCA component plog:syslog can compile... " >&6; } 46041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46042$as_echo "no" >&6; } 46043 46044 # If this component was requested as the default for this 46045 # type, then abort. 46046 if test "$with_plog" = "syslog" ; then 46047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"syslog\" failed to configure properly" >&5 46048$as_echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;} 46049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 46050$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 46051 as_fn_error $? "Cannot continue" "$LINENO" 5 46052 fi 46053 46054 if test ! -z "$DIRECT_plog" ; then 46055 if test "$DIRECT_plog" = "syslog" ; then 46056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"syslog\" failed to configure properly" >&5 46057$as_echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;} 46058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 46059$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 46060 as_fn_error $? "Cannot continue" "$LINENO" 5 46061 fi 46062 fi 46063 46064 # add component to all component list 46065 all_components="$all_components syslog" 46066fi 46067 46068 46069 46070 # set the AM_CONDITIONAL on how we should build 46071 if test "$compile_mode" = "dso"; then : 46072 BUILD_pmix_plog_syslog_DSO=1 46073else 46074 BUILD_pmix_plog_syslog_DSO=0 46075fi 46076 if test "$BUILD_pmix_plog_syslog_DSO" = "1"; then 46077 MCA_BUILD_pmix_plog_syslog_DSO_TRUE= 46078 MCA_BUILD_pmix_plog_syslog_DSO_FALSE='#' 46079else 46080 MCA_BUILD_pmix_plog_syslog_DSO_TRUE='#' 46081 MCA_BUILD_pmix_plog_syslog_DSO_FALSE= 46082fi 46083 46084 46085 if test "$should_build" = "1"; then : 46086 components_last_result=1 46087else 46088 components_last_result=0 46089fi 46090 46091 unset compile_mode 46092 46093 46094 46095 46096 46097 # configure components that provide their own configure script. 46098 # It would be really hard to run these for "find first that 46099 # works", so we don't :) 46100 46101 46102 46103 if test "1" != "0"; then : 46104 46105 for component_path in $srcdir/src/mca/plog/* ; do 46106 component="`basename $component_path`" 46107 if test -d $component_path && test -x $component_path/configure ; then 46108 pmix_show_subsubsubtitle "MCA component plog:$component (need to configure)" 46109 46110 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 46111 46112 46113 46114 component_path="$srcdir/src/mca/plog/$component" 46115 want_component=0 46116 46117 # build if: 46118 # - the component type is direct and we are that component 46119 # - there is no pmix_ignore file 46120 # - there is an pmix_ignore, but there is an empty pmix_unignore 46121 # - there is an pmix_ignore, but username is in pmix_unignore 46122 if test -d $component_path ; then 46123 # decide if we want the component to be built or not. This 46124 # is spread out because some of the logic is a little complex 46125 # and test's syntax isn't exactly the greatest. We want to 46126 # build the component by default. 46127 want_component=1 46128 if test -f $component_path/.pmix_ignore ; then 46129 # If there is an pmix_ignore file, don't build 46130 # the component. Note that this decision can be 46131 # overridden by the unignore logic below. 46132 want_component=0 46133 fi 46134 if test -f $component_path/.pmix_unignore ; then 46135 # if there is an empty pmix_unignore, that is 46136 # equivalent to having your userid in the unignore file. 46137 # If userid is in the file, unignore the ignore file. 46138 if test ! -s $component_path/.pmix_unignore ; then 46139 want_component=1 46140 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 46141 want_component=1 46142 fi 46143 fi 46144 # if this component type is direct and we are not it, we don't want 46145 # to be built. Otherwise, we do want to be built. 46146 if test ! -z "$DIRECT_plog" ; then 46147 if test "$DIRECT_plog" = "$component" ; then 46148 want_component=1 46149 else 46150 want_component=0 46151 fi 46152 fi 46153 fi 46154 46155 # if we were explicitly disabled, don't build :) 46156 if test "$DISABLE_plog" = "1"; then : 46157 want_component=0 46158fi 46159 str="DISABLED_COMPONENT_CHECK=\$DISABLE_plog_$component" 46160 eval $str 46161 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 46162 want_component=0 46163 fi 46164 46165 if test "$want_component" = "1"; then : 46166 should_build=1 46167else 46168 should_build=0 46169fi 46170 46171 46172 SHARED_FRAMEWORK="$DSO_plog" 46173 str="SHARED_COMPONENT=\$DSO_plog_$component" 46174 eval $str 46175 46176 STATIC_FRAMEWORK="$STATIC_plog" 46177 str="STATIC_COMPONENT=\$STATIC_plog_$component" 46178 eval $str 46179 46180 shared_mode_override=static 46181 46182 # Setup for either shared or static 46183 if test "$STATIC_FRAMEWORK" = "1" || \ 46184 test "$STATIC_COMPONENT" = "1" || \ 46185 test "$STATIC_all" = "1" ; then 46186 compile_mode="static" 46187 elif test "$shared_mode_override" = "dso" || \ 46188 test "$SHARED_FRAMEWORK" = "1" || \ 46189 test "$SHARED_COMPONENT" = "1" || \ 46190 test "$DSO_all" = "1"; then 46191 compile_mode="dso" 46192 else 46193 compile_mode="static" 46194 fi 46195 46196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plog:$component compile mode" >&5 46197$as_echo_n "checking for MCA component plog:$component compile mode... " >&6; } 46198 if test "$DIRECT_plog" = "$component" ; then 46199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 46200$as_echo "$compile_mode - direct" >&6; } 46201 else 46202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 46203$as_echo "$compile_mode" >&6; } 46204 fi 46205 46206 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 46207 46208 if test "$should_build" = "1" ; then 46209 46210 46211 46212 # Is the private index set? If not, set it. 46213 if test "x$pmix_scope_index" = "x"; then 46214 pmix_scope_index=1 46215 fi 46216 46217 # First, check to see if any of these variables are already set. 46218 # This is a simple sanity check to ensure we're not already 46219 # overwriting pre-existing variables (that have a non-empty 46220 # value). It's not a perfect check, but at least it's something. 46221 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 46222 pmix_str="pmix_str=\"\$$pmix_var\"" 46223 eval $pmix_str 46224 46225 if test "x$pmix_str" != "x"; then 46226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 46227$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 46228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 46229$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 46230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 46231$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 46232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 46233$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 46234 as_fn_error $? "Cannot continue" "$LINENO" 5 46235 fi 46236 done 46237 46238 # Ok, we passed the simple sanity check. Save all these names so 46239 # that we can unset them at the end of the scope. 46240 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 46241 eval $pmix_str 46242 unset pmix_str 46243 46244 env | grep pmix_scope 46245 pmix_scope_index=`expr $pmix_scope_index + 1` 46246 46247 46248# 46249# Invoke configure in a specific subdirectory. 46250# 46251# src/mca/plog/$component is the directory to invoke in 46252# $pmix_subdir_args is the list of arguments to pass 46253# should_build=1 is actions to execute upon success 46254# should_build=0 is actions to execute upon failure 46255# 46256subdir_dir="src/mca/plog/$component" 46257subdir_args="$pmix_subdir_args" 46258subdir_success="should_build=1" 46259subdir_failure="should_build=0" 46260 46261# 46262# Sanity checks 46263# 46264 46265if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 46266 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 46267$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 46268 46269 # 46270 # Gotta check where srcdir is for VPATH builds. If srcdir is not 46271 # ., then we need to mkdir the subdir. Otherwise, we can just cd 46272 # into it. 46273 # 46274 46275 case $srcdir in 46276 .) 46277 ;; 46278 *) 46279 { case $subdir_dir in 46280 [\\/]* | ?:[\\/]* ) total_dir=;; 46281 *) total_dir=.;; 46282 esac 46283 temp=$subdir_dir 46284 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 46285 case $dir_part in 46286 # Skip DOS drivespec 46287 ?:) total_dir=$dir_part ;; 46288 *) total_dir=$total_dir/$dir_part 46289 test -d "$total_dir" || 46290 mkdir "$total_dir" || 46291 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 46292 ;; 46293 esac 46294 done; } 46295 46296 if test -d ./$subdir_dir; then :; 46297 else 46298 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 46299 fi 46300 ;; 46301 esac 46302 46303 # 46304 # Move into the target directory 46305 # 46306 46307 subdir_parent=`pwd` 46308 cd $subdir_dir 46309 46310 # 46311 # Make a "../" for each directory in $subdir_dir. 46312 # 46313 46314 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 46315 # 46316 # Construct the --srcdir argument 46317 # 46318 46319 case $srcdir in 46320 .) 46321 # In place 46322 subdir_srcdir="$srcdir" 46323 ;; 46324 [\\/]* | ?:[\\/]* ) 46325 # Absolute path 46326 subdir_srcdir="$srcdir/$subdir_dir" 46327 ;; 46328 *) 46329 # Relative path 46330 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 46331 ;; 46332 esac 46333 46334 # 46335 # Construct the --cache-file argument 46336 # 46337 46338 # BWB - subdir caching is a pain since we change CFLAGS and all that. 46339 # Just disable it for now 46340 subdir_cache_file="/dev/null" 46341 46342 # 46343 # Invoke the configure script in the subdirectory 46344 # 46345 46346 sub_configure="$SHELL '$subdir_srcdir/configure'" 46347 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 46348$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 46349 eval "$sub_configure $subdir_args \ 46350 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 46351 if test "$?" = "0"; then 46352 eval $subdir_success 46353 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 46354$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 46355 else 46356 eval $subdir_failure 46357 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 46358$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 46359 fi 46360 46361 # 46362 # Go back to the topdir 46363 # 46364 46365 cd $subdir_parent 46366fi 46367 46368# 46369# Clean up 46370# 46371 46372 46373 # Unwind the index 46374 pmix_scope_index=`expr $pmix_scope_index - 1` 46375 pmix_scope_test=`expr $pmix_scope_index \> 0` 46376 if test "$pmix_scope_test" = "0"; then 46377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 46378$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 46379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 46380$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 46381 as_fn_error $? "Cannot continue" "$LINENO" 5 46382 fi 46383 46384 # Get the variable names from that index 46385 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 46386 eval $pmix_str 46387 46388 # Iterate over all the variables and unset them all 46389 for pmix_var in $pmix_str; do 46390 unset $pmix_var 46391 done 46392 46393 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 46394 fi 46395 46396 if test "$should_build" = "1" ; then 46397 # do some extra work to pass flags back from the 46398 # top-level configure, the way a configure.m4 46399 # component would. 46400 infile="$srcdir/src/mca/plog/all_components/post_configure.sh" 46401 if test -f $infile; then 46402 46403 # First check for the ABORT tag 46404 line="`$GREP ABORT= $infile | cut -d= -f2-`" 46405 if test -n "$line" && test "$line" != "no"; then 46406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 46407$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 46408 as_fn_error $? "cannot continue" "$LINENO" 5 46409 fi 46410 fi 46411 46412 46413 46414 46415 # See if it dropped an output file for us to pick up some 46416 # shell variables in. 46417 infile="$srcdir/src/mca/plog/$component/post_configure.sh" 46418 46419 # Add this subdir to the mast list of all MCA component subdirs 46420 all_components="$all_components $component" 46421 46422 if test "$compile_mode" = "dso" ; then 46423 dso_components="$dso_components $component" 46424 else 46425 if test "plog" = "common"; then 46426 # Static libraries in "common" frameworks are installed, and 46427 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 46428 # set. 46429 static_ltlibs="mca/plog/$component/lib${PMIX_LIB_PREFIX}mca_plog_$component.la $static_ltlibs" 46430 else 46431 # Other frameworks do not have to obey the 46432 # $FRAMEWORK_LIB_PREFIX prefix. 46433 static_ltlibs="mca/plog/$component/libmca_plog_$component.la $static_ltlibs" 46434 fi 46435 echo "extern const pmix_mca_base_component_t mca_plog_$component_component;" >> $outfile.extern 46436 echo " &mca_plog_$component_component, " >> $outfile.struct 46437 static_components="$static_components $component" 46438 fi 46439 46440 # Output pretty results 46441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:$component can compile" >&5 46442$as_echo_n "checking if MCA component plog:$component can compile... " >&6; } 46443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46444$as_echo "yes" >&6; } 46445 46446 if test -f $infile; then 46447 # check for direct call header to include. This will be 46448 # AC_SUBSTed later. 46449 if test "$DIRECT_plog" = "$component" ; then 46450 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 46451 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 46452 str="MCA_pmix_plog_DIRECT_CALL_HEADER=$line" 46453 eval $str 46454 else 46455as_fn_error $? "*** plog component $component was supposed to be direct-called, but 46456*** does not appear to support direct calling. 46457*** Aborting" "$LINENO" 5 46458 fi 46459 fi 46460 else 46461 # were we supposed to have found something in the 46462 # post_configure.sh, but the file didn't exist? 46463 if test "$DIRECT_plog" = "$component" ; then 46464as_fn_error $? "*** plog component $component was supposed to be direct-called, but 46465*** does not appear to support direct calling. 46466*** Aborting" "$LINENO" 5 46467 fi 46468 fi 46469 46470 else 46471 46472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plog:$component can compile" >&5 46473$as_echo_n "checking if MCA component plog:$component can compile... " >&6; } 46474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46475$as_echo "no" >&6; } 46476 46477 # If this component was requested as the default for this 46478 # type, then abort. 46479 if test "$with_plog" = "$component" ; then 46480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 46481$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 46482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 46483$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 46484 as_fn_error $? "Cannot continue" "$LINENO" 5 46485 fi 46486 46487 if test ! -z "$DIRECT_plog" ; then 46488 if test "$DIRECT_plog" = "$component" ; then 46489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 46490$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 46491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 46492$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 46493 as_fn_error $? "Cannot continue" "$LINENO" 5 46494 fi 46495 fi 46496 46497 fi 46498 fi 46499 done 46500 46501fi 46502 46503 MCA_pmix_plog_ALL_COMPONENTS="$all_components" 46504 MCA_pmix_plog_STATIC_COMPONENTS="$static_components" 46505 MCA_pmix_plog_DSO_COMPONENTS="$dso_components" 46506 MCA_pmix_plog_STATIC_LTLIBS="$static_ltlibs" 46507 46508 46509 46510 46511 46512 46513 46514 MCA_pmix_plog_ALL_SUBDIRS= 46515 for item in $all_components ; do 46516 MCA_pmix_plog_ALL_SUBDIRS="$MCA_pmix_plog_ALL_SUBDIRS mca/plog/$item" 46517 done 46518 46519 46520 46521 MCA_pmix_plog_STATIC_SUBDIRS= 46522 for item in $static_components ; do 46523 MCA_pmix_plog_STATIC_SUBDIRS="$MCA_pmix_plog_STATIC_SUBDIRS mca/plog/$item" 46524 done 46525 46526 46527 46528 MCA_pmix_plog_DSO_SUBDIRS= 46529 for item in $dso_components ; do 46530 MCA_pmix_plog_DSO_SUBDIRS="$MCA_pmix_plog_DSO_SUBDIRS mca/plog/$item" 46531 done 46532 46533 46534 46535 # Create the final .h file that will be included in the type's 46536 # top-level glue. This lists all the static components. We don't 46537 # need to do this for "common". 46538 if test "plog" != "common"; then 46539 cat > $outfile <<EOF 46540/* 46541 * \$HEADER\$ 46542 */ 46543#if defined(c_plusplus) || defined(__cplusplus) 46544extern "C" { 46545#endif 46546 46547`cat $outfile.extern` 46548 46549const pmix_mca_base_component_t *mca_plog_base_static_components[] = { 46550`cat $outfile.struct` 46551 NULL 46552}; 46553 46554#if defined(c_plusplus) || defined(__cplusplus) 46555} 46556#endif 46557 46558EOF 46559 # Only replace the header file if a) it doesn't previously 46560 # exist, or b) the contents are different. Do this to not 46561 # trigger recompilation of certain .c files just because the 46562 # timestamp changed on $outfile_real (similar to the way AC 46563 # handles AC_CONFIG_HEADER files). 46564 diff $outfile $outfile_real > /dev/null 2>&1 46565 if test "$?" != "0"; then 46566 mv $outfile $outfile_real 46567 else 46568 rm -f $outfile 46569 fi 46570 fi 46571 rm -f $outfile.struct $outfile.extern 46572 46573 unset all_components static_components dso_components outfile outfile_real 46574 46575 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pnet" 46576 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pnet" 46577 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pnet_ALL_SUBDIRS)" 46578 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pnet_DSO_SUBDIRS)" 46579 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pnet_STATIC_SUBDIRS)" 46580 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pnet/libmca_pnet.la" 46581 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pnet_STATIC_LTLIBS)" 46582 46583 pmix_show_subsubtitle "Configuring MCA framework pnet" 46584 46585 46586 46587 46588 # setup for framework 46589 all_components= 46590 static_components= 46591 dso_components= 46592 static_ltlibs= 46593 46594 # Ensure that the directory where the #include file is to live 46595 # exists. Need to do this for VPATH builds, because the directory 46596 # may not exist yet. For the "common" type, it's not really a 46597 # component, so it doesn't have a base. 46598 outdir=src/mca/pnet/base 46599 as_dir=$outdir; as_fn_mkdir_p 46600 46601 # emit Makefile rule 46602 ac_config_files="$ac_config_files src/mca/pnet/Makefile" 46603 46604 46605 # remove any previously generated #include files 46606 outfile_real=$outdir/static-components.h 46607 outfile=$outfile_real.new 46608 rm -f $outfile $outfile.struct $outfile.extern 46609 touch $outfile.struct $outfile.extern 46610 46611 # print some nice messages about what we're about to do... 46612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pnet" >&5 46613$as_echo_n "checking for no configure components in framework pnet... " >&6; } 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 46615$as_echo "" >&6; } 46616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pnet" >&5 46617$as_echo_n "checking for m4 configure components in framework pnet... " >&6; } 46618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 46619$as_echo "" >&6; } 46620 46621 # If there are components in the no configure list, but we're 46622 # doing one of the "special" selection logics, abort with a 46623 # reasonable message. 46624 46625 46626 46627 # run the configure logic for the no-config components 46628 46629 46630 # configure components that use built-in configuration scripts 46631 46632 46633 46634 best_mca_component_priority=0 46635 components_looking_for_succeed=1 46636 components_last_result=0 46637 46638 46639 # configure components that provide their own configure script. 46640 # It would be really hard to run these for "find first that 46641 # works", so we don't :) 46642 46643 46644 46645 if test "1" != "0"; then : 46646 46647 for component_path in $srcdir/src/mca/pnet/* ; do 46648 component="`basename $component_path`" 46649 if test -d $component_path && test -x $component_path/configure ; then 46650 pmix_show_subsubsubtitle "MCA component pnet:$component (need to configure)" 46651 46652 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 46653 46654 46655 46656 component_path="$srcdir/src/mca/pnet/$component" 46657 want_component=0 46658 46659 # build if: 46660 # - the component type is direct and we are that component 46661 # - there is no pmix_ignore file 46662 # - there is an pmix_ignore, but there is an empty pmix_unignore 46663 # - there is an pmix_ignore, but username is in pmix_unignore 46664 if test -d $component_path ; then 46665 # decide if we want the component to be built or not. This 46666 # is spread out because some of the logic is a little complex 46667 # and test's syntax isn't exactly the greatest. We want to 46668 # build the component by default. 46669 want_component=1 46670 if test -f $component_path/.pmix_ignore ; then 46671 # If there is an pmix_ignore file, don't build 46672 # the component. Note that this decision can be 46673 # overridden by the unignore logic below. 46674 want_component=0 46675 fi 46676 if test -f $component_path/.pmix_unignore ; then 46677 # if there is an empty pmix_unignore, that is 46678 # equivalent to having your userid in the unignore file. 46679 # If userid is in the file, unignore the ignore file. 46680 if test ! -s $component_path/.pmix_unignore ; then 46681 want_component=1 46682 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 46683 want_component=1 46684 fi 46685 fi 46686 # if this component type is direct and we are not it, we don't want 46687 # to be built. Otherwise, we do want to be built. 46688 if test ! -z "$DIRECT_pnet" ; then 46689 if test "$DIRECT_pnet" = "$component" ; then 46690 want_component=1 46691 else 46692 want_component=0 46693 fi 46694 fi 46695 fi 46696 46697 # if we were explicitly disabled, don't build :) 46698 if test "$DISABLE_pnet" = "1"; then : 46699 want_component=0 46700fi 46701 str="DISABLED_COMPONENT_CHECK=\$DISABLE_pnet_$component" 46702 eval $str 46703 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 46704 want_component=0 46705 fi 46706 46707 if test "$want_component" = "1"; then : 46708 should_build=1 46709else 46710 should_build=0 46711fi 46712 46713 46714 SHARED_FRAMEWORK="$DSO_pnet" 46715 str="SHARED_COMPONENT=\$DSO_pnet_$component" 46716 eval $str 46717 46718 STATIC_FRAMEWORK="$STATIC_pnet" 46719 str="STATIC_COMPONENT=\$STATIC_pnet_$component" 46720 eval $str 46721 46722 shared_mode_override=static 46723 46724 # Setup for either shared or static 46725 if test "$STATIC_FRAMEWORK" = "1" || \ 46726 test "$STATIC_COMPONENT" = "1" || \ 46727 test "$STATIC_all" = "1" ; then 46728 compile_mode="static" 46729 elif test "$shared_mode_override" = "dso" || \ 46730 test "$SHARED_FRAMEWORK" = "1" || \ 46731 test "$SHARED_COMPONENT" = "1" || \ 46732 test "$DSO_all" = "1"; then 46733 compile_mode="dso" 46734 else 46735 compile_mode="static" 46736 fi 46737 46738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pnet:$component compile mode" >&5 46739$as_echo_n "checking for MCA component pnet:$component compile mode... " >&6; } 46740 if test "$DIRECT_pnet" = "$component" ; then 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 46742$as_echo "$compile_mode - direct" >&6; } 46743 else 46744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 46745$as_echo "$compile_mode" >&6; } 46746 fi 46747 46748 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 46749 46750 if test "$should_build" = "1" ; then 46751 46752 46753 46754 # Is the private index set? If not, set it. 46755 if test "x$pmix_scope_index" = "x"; then 46756 pmix_scope_index=1 46757 fi 46758 46759 # First, check to see if any of these variables are already set. 46760 # This is a simple sanity check to ensure we're not already 46761 # overwriting pre-existing variables (that have a non-empty 46762 # value). It's not a perfect check, but at least it's something. 46763 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 46764 pmix_str="pmix_str=\"\$$pmix_var\"" 46765 eval $pmix_str 46766 46767 if test "x$pmix_str" != "x"; then 46768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 46769$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 46770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 46771$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 46772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 46773$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 46774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 46775$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 46776 as_fn_error $? "Cannot continue" "$LINENO" 5 46777 fi 46778 done 46779 46780 # Ok, we passed the simple sanity check. Save all these names so 46781 # that we can unset them at the end of the scope. 46782 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 46783 eval $pmix_str 46784 unset pmix_str 46785 46786 env | grep pmix_scope 46787 pmix_scope_index=`expr $pmix_scope_index + 1` 46788 46789 46790# 46791# Invoke configure in a specific subdirectory. 46792# 46793# src/mca/pnet/$component is the directory to invoke in 46794# $pmix_subdir_args is the list of arguments to pass 46795# should_build=1 is actions to execute upon success 46796# should_build=0 is actions to execute upon failure 46797# 46798subdir_dir="src/mca/pnet/$component" 46799subdir_args="$pmix_subdir_args" 46800subdir_success="should_build=1" 46801subdir_failure="should_build=0" 46802 46803# 46804# Sanity checks 46805# 46806 46807if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 46808 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 46809$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 46810 46811 # 46812 # Gotta check where srcdir is for VPATH builds. If srcdir is not 46813 # ., then we need to mkdir the subdir. Otherwise, we can just cd 46814 # into it. 46815 # 46816 46817 case $srcdir in 46818 .) 46819 ;; 46820 *) 46821 { case $subdir_dir in 46822 [\\/]* | ?:[\\/]* ) total_dir=;; 46823 *) total_dir=.;; 46824 esac 46825 temp=$subdir_dir 46826 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 46827 case $dir_part in 46828 # Skip DOS drivespec 46829 ?:) total_dir=$dir_part ;; 46830 *) total_dir=$total_dir/$dir_part 46831 test -d "$total_dir" || 46832 mkdir "$total_dir" || 46833 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 46834 ;; 46835 esac 46836 done; } 46837 46838 if test -d ./$subdir_dir; then :; 46839 else 46840 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 46841 fi 46842 ;; 46843 esac 46844 46845 # 46846 # Move into the target directory 46847 # 46848 46849 subdir_parent=`pwd` 46850 cd $subdir_dir 46851 46852 # 46853 # Make a "../" for each directory in $subdir_dir. 46854 # 46855 46856 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 46857 # 46858 # Construct the --srcdir argument 46859 # 46860 46861 case $srcdir in 46862 .) 46863 # In place 46864 subdir_srcdir="$srcdir" 46865 ;; 46866 [\\/]* | ?:[\\/]* ) 46867 # Absolute path 46868 subdir_srcdir="$srcdir/$subdir_dir" 46869 ;; 46870 *) 46871 # Relative path 46872 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 46873 ;; 46874 esac 46875 46876 # 46877 # Construct the --cache-file argument 46878 # 46879 46880 # BWB - subdir caching is a pain since we change CFLAGS and all that. 46881 # Just disable it for now 46882 subdir_cache_file="/dev/null" 46883 46884 # 46885 # Invoke the configure script in the subdirectory 46886 # 46887 46888 sub_configure="$SHELL '$subdir_srcdir/configure'" 46889 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 46890$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 46891 eval "$sub_configure $subdir_args \ 46892 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 46893 if test "$?" = "0"; then 46894 eval $subdir_success 46895 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 46896$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 46897 else 46898 eval $subdir_failure 46899 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 46900$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 46901 fi 46902 46903 # 46904 # Go back to the topdir 46905 # 46906 46907 cd $subdir_parent 46908fi 46909 46910# 46911# Clean up 46912# 46913 46914 46915 # Unwind the index 46916 pmix_scope_index=`expr $pmix_scope_index - 1` 46917 pmix_scope_test=`expr $pmix_scope_index \> 0` 46918 if test "$pmix_scope_test" = "0"; then 46919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 46920$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 46921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 46922$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 46923 as_fn_error $? "Cannot continue" "$LINENO" 5 46924 fi 46925 46926 # Get the variable names from that index 46927 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 46928 eval $pmix_str 46929 46930 # Iterate over all the variables and unset them all 46931 for pmix_var in $pmix_str; do 46932 unset $pmix_var 46933 done 46934 46935 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 46936 fi 46937 46938 if test "$should_build" = "1" ; then 46939 # do some extra work to pass flags back from the 46940 # top-level configure, the way a configure.m4 46941 # component would. 46942 infile="$srcdir/src/mca/pnet/all_components/post_configure.sh" 46943 if test -f $infile; then 46944 46945 # First check for the ABORT tag 46946 line="`$GREP ABORT= $infile | cut -d= -f2-`" 46947 if test -n "$line" && test "$line" != "no"; then 46948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 46949$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 46950 as_fn_error $? "cannot continue" "$LINENO" 5 46951 fi 46952 fi 46953 46954 46955 46956 46957 # See if it dropped an output file for us to pick up some 46958 # shell variables in. 46959 infile="$srcdir/src/mca/pnet/$component/post_configure.sh" 46960 46961 # Add this subdir to the mast list of all MCA component subdirs 46962 all_components="$all_components $component" 46963 46964 if test "$compile_mode" = "dso" ; then 46965 dso_components="$dso_components $component" 46966 else 46967 if test "pnet" = "common"; then 46968 # Static libraries in "common" frameworks are installed, and 46969 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 46970 # set. 46971 static_ltlibs="mca/pnet/$component/lib${PMIX_LIB_PREFIX}mca_pnet_$component.la $static_ltlibs" 46972 else 46973 # Other frameworks do not have to obey the 46974 # $FRAMEWORK_LIB_PREFIX prefix. 46975 static_ltlibs="mca/pnet/$component/libmca_pnet_$component.la $static_ltlibs" 46976 fi 46977 echo "extern const pmix_mca_base_component_t mca_pnet_$component_component;" >> $outfile.extern 46978 echo " &mca_pnet_$component_component, " >> $outfile.struct 46979 static_components="$static_components $component" 46980 fi 46981 46982 # Output pretty results 46983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pnet:$component can compile" >&5 46984$as_echo_n "checking if MCA component pnet:$component can compile... " >&6; } 46985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46986$as_echo "yes" >&6; } 46987 46988 if test -f $infile; then 46989 # check for direct call header to include. This will be 46990 # AC_SUBSTed later. 46991 if test "$DIRECT_pnet" = "$component" ; then 46992 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 46993 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 46994 str="MCA_pmix_pnet_DIRECT_CALL_HEADER=$line" 46995 eval $str 46996 else 46997as_fn_error $? "*** pnet component $component was supposed to be direct-called, but 46998*** does not appear to support direct calling. 46999*** Aborting" "$LINENO" 5 47000 fi 47001 fi 47002 else 47003 # were we supposed to have found something in the 47004 # post_configure.sh, but the file didn't exist? 47005 if test "$DIRECT_pnet" = "$component" ; then 47006as_fn_error $? "*** pnet component $component was supposed to be direct-called, but 47007*** does not appear to support direct calling. 47008*** Aborting" "$LINENO" 5 47009 fi 47010 fi 47011 47012 else 47013 47014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pnet:$component can compile" >&5 47015$as_echo_n "checking if MCA component pnet:$component can compile... " >&6; } 47016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47017$as_echo "no" >&6; } 47018 47019 # If this component was requested as the default for this 47020 # type, then abort. 47021 if test "$with_pnet" = "$component" ; then 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 47023$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 47024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 47025$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 47026 as_fn_error $? "Cannot continue" "$LINENO" 5 47027 fi 47028 47029 if test ! -z "$DIRECT_pnet" ; then 47030 if test "$DIRECT_pnet" = "$component" ; then 47031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 47032$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 47033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 47034$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 47035 as_fn_error $? "Cannot continue" "$LINENO" 5 47036 fi 47037 fi 47038 47039 fi 47040 fi 47041 done 47042 47043fi 47044 47045 MCA_pmix_pnet_ALL_COMPONENTS="$all_components" 47046 MCA_pmix_pnet_STATIC_COMPONENTS="$static_components" 47047 MCA_pmix_pnet_DSO_COMPONENTS="$dso_components" 47048 MCA_pmix_pnet_STATIC_LTLIBS="$static_ltlibs" 47049 47050 47051 47052 47053 47054 47055 47056 MCA_pmix_pnet_ALL_SUBDIRS= 47057 for item in $all_components ; do 47058 MCA_pmix_pnet_ALL_SUBDIRS="$MCA_pmix_pnet_ALL_SUBDIRS mca/pnet/$item" 47059 done 47060 47061 47062 47063 MCA_pmix_pnet_STATIC_SUBDIRS= 47064 for item in $static_components ; do 47065 MCA_pmix_pnet_STATIC_SUBDIRS="$MCA_pmix_pnet_STATIC_SUBDIRS mca/pnet/$item" 47066 done 47067 47068 47069 47070 MCA_pmix_pnet_DSO_SUBDIRS= 47071 for item in $dso_components ; do 47072 MCA_pmix_pnet_DSO_SUBDIRS="$MCA_pmix_pnet_DSO_SUBDIRS mca/pnet/$item" 47073 done 47074 47075 47076 47077 # Create the final .h file that will be included in the type's 47078 # top-level glue. This lists all the static components. We don't 47079 # need to do this for "common". 47080 if test "pnet" != "common"; then 47081 cat > $outfile <<EOF 47082/* 47083 * \$HEADER\$ 47084 */ 47085#if defined(c_plusplus) || defined(__cplusplus) 47086extern "C" { 47087#endif 47088 47089`cat $outfile.extern` 47090 47091const pmix_mca_base_component_t *mca_pnet_base_static_components[] = { 47092`cat $outfile.struct` 47093 NULL 47094}; 47095 47096#if defined(c_plusplus) || defined(__cplusplus) 47097} 47098#endif 47099 47100EOF 47101 # Only replace the header file if a) it doesn't previously 47102 # exist, or b) the contents are different. Do this to not 47103 # trigger recompilation of certain .c files just because the 47104 # timestamp changed on $outfile_real (similar to the way AC 47105 # handles AC_CONFIG_HEADER files). 47106 diff $outfile $outfile_real > /dev/null 2>&1 47107 if test "$?" != "0"; then 47108 mv $outfile $outfile_real 47109 else 47110 rm -f $outfile 47111 fi 47112 fi 47113 rm -f $outfile.struct $outfile.extern 47114 47115 unset all_components static_components dso_components outfile outfile_real 47116 47117 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS preg" 47118 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/preg" 47119 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_preg_ALL_SUBDIRS)" 47120 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_preg_DSO_SUBDIRS)" 47121 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_preg_STATIC_SUBDIRS)" 47122 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/preg/libmca_preg.la" 47123 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_preg_STATIC_LTLIBS)" 47124 47125 pmix_show_subsubtitle "Configuring MCA framework preg" 47126 47127 47128 47129 47130 # setup for framework 47131 all_components= 47132 static_components= 47133 dso_components= 47134 static_ltlibs= 47135 47136 # Ensure that the directory where the #include file is to live 47137 # exists. Need to do this for VPATH builds, because the directory 47138 # may not exist yet. For the "common" type, it's not really a 47139 # component, so it doesn't have a base. 47140 outdir=src/mca/preg/base 47141 as_dir=$outdir; as_fn_mkdir_p 47142 47143 # emit Makefile rule 47144 ac_config_files="$ac_config_files src/mca/preg/Makefile" 47145 47146 47147 # remove any previously generated #include files 47148 outfile_real=$outdir/static-components.h 47149 outfile=$outfile_real.new 47150 rm -f $outfile $outfile.struct $outfile.extern 47151 touch $outfile.struct $outfile.extern 47152 47153 # print some nice messages about what we're about to do... 47154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework preg" >&5 47155$as_echo_n "checking for no configure components in framework preg... " >&6; } 47156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compress, native" >&5 47157$as_echo "compress, native" >&6; } 47158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework preg" >&5 47159$as_echo_n "checking for m4 configure components in framework preg... " >&6; } 47160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 47161$as_echo "" >&6; } 47162 47163 # If there are components in the no configure list, but we're 47164 # doing one of the "special" selection logics, abort with a 47165 # reasonable message. 47166 47167 47168 47169 # run the configure logic for the no-config components 47170 47171 pmix_show_subsubsubtitle "MCA component preg:compress (no configuration)" 47172 47173 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 47174 47175 47176 47177 component_path="$srcdir/src/mca/preg/compress" 47178 want_component=0 47179 47180 # build if: 47181 # - the component type is direct and we are that component 47182 # - there is no pmix_ignore file 47183 # - there is an pmix_ignore, but there is an empty pmix_unignore 47184 # - there is an pmix_ignore, but username is in pmix_unignore 47185 if test -d $component_path ; then 47186 # decide if we want the component to be built or not. This 47187 # is spread out because some of the logic is a little complex 47188 # and test's syntax isn't exactly the greatest. We want to 47189 # build the component by default. 47190 want_component=1 47191 if test -f $component_path/.pmix_ignore ; then 47192 # If there is an pmix_ignore file, don't build 47193 # the component. Note that this decision can be 47194 # overridden by the unignore logic below. 47195 want_component=0 47196 fi 47197 if test -f $component_path/.pmix_unignore ; then 47198 # if there is an empty pmix_unignore, that is 47199 # equivalent to having your userid in the unignore file. 47200 # If userid is in the file, unignore the ignore file. 47201 if test ! -s $component_path/.pmix_unignore ; then 47202 want_component=1 47203 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 47204 want_component=1 47205 fi 47206 fi 47207 # if this component type is direct and we are not it, we don't want 47208 # to be built. Otherwise, we do want to be built. 47209 if test ! -z "$DIRECT_preg" ; then 47210 if test "$DIRECT_preg" = "compress" ; then 47211 want_component=1 47212 else 47213 want_component=0 47214 fi 47215 fi 47216 fi 47217 47218 # if we were explicitly disabled, don't build :) 47219 if test "$DISABLE_preg" = "1"; then : 47220 want_component=0 47221fi 47222 if test "$DISABLE_preg_compress" = "1"; then : 47223 want_component=0 47224fi 47225 47226 if test "$want_component" = "1"; then : 47227 should_build=1 47228else 47229 should_build=0 47230fi 47231 47232 47233 SHARED_FRAMEWORK="$DSO_preg" 47234 SHARED_COMPONENT="$DSO_preg_compress" 47235 47236 STATIC_FRAMEWORK="$STATIC_preg" 47237 STATIC_COMPONENT="$STATIC_preg_compress" 47238 47239 shared_mode_override=static 47240 47241 # Setup for either shared or static 47242 if test "$STATIC_FRAMEWORK" = "1" || \ 47243 test "$STATIC_COMPONENT" = "1" || \ 47244 test "$STATIC_all" = "1" ; then 47245 compile_mode="static" 47246 elif test "$shared_mode_override" = "dso" || \ 47247 test "$SHARED_FRAMEWORK" = "1" || \ 47248 test "$SHARED_COMPONENT" = "1" || \ 47249 test "$DSO_all" = "1"; then 47250 compile_mode="dso" 47251 else 47252 compile_mode="static" 47253 fi 47254 47255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component preg:compress compile mode" >&5 47256$as_echo_n "checking for MCA component preg:compress compile mode... " >&6; } 47257 if test "$DIRECT_preg" = "compress" ; then 47258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 47259$as_echo "$compile_mode - direct" >&6; } 47260 else 47261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 47262$as_echo "$compile_mode" >&6; } 47263 fi 47264 47265 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 47266 47267 if test "$should_build" = "1" ; then 47268 47269 47270 47271 # See if it dropped an output file for us to pick up some 47272 # shell variables in. 47273 infile="$srcdir/src/mca/preg/compress/post_configure.sh" 47274 47275 # Add this subdir to the mast list of all MCA component subdirs 47276 all_components="$all_components compress" 47277 47278 if test "$compile_mode" = "dso" ; then 47279 dso_components="$dso_components compress" 47280 else 47281 if test "preg" = "common"; then 47282 # Static libraries in "common" frameworks are installed, and 47283 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 47284 # set. 47285 static_ltlibs="mca/preg/compress/lib${PMIX_LIB_PREFIX}mca_preg_compress.la $static_ltlibs" 47286 else 47287 # Other frameworks do not have to obey the 47288 # $FRAMEWORK_LIB_PREFIX prefix. 47289 static_ltlibs="mca/preg/compress/libmca_preg_compress.la $static_ltlibs" 47290 fi 47291 echo "extern const pmix_mca_base_component_t mca_preg_compress_component;" >> $outfile.extern 47292 echo " &mca_preg_compress_component, " >> $outfile.struct 47293 static_components="$static_components compress" 47294 fi 47295 47296 # Output pretty results 47297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:compress can compile" >&5 47298$as_echo_n "checking if MCA component preg:compress can compile... " >&6; } 47299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47300$as_echo "yes" >&6; } 47301 47302 if test -f $infile; then 47303 # check for direct call header to include. This will be 47304 # AC_SUBSTed later. 47305 if test "$DIRECT_preg" = "compress" ; then 47306 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 47307 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 47308 str="MCA_pmix_preg_DIRECT_CALL_HEADER=$line" 47309 eval $str 47310 else 47311as_fn_error $? "*** preg component compress was supposed to be direct-called, but 47312*** does not appear to support direct calling. 47313*** Aborting" "$LINENO" 5 47314 fi 47315 fi 47316 else 47317 # were we supposed to have found something in the 47318 # post_configure.sh, but the file didn't exist? 47319 if test "$DIRECT_preg" = "compress" ; then 47320as_fn_error $? "*** preg component compress was supposed to be direct-called, but 47321*** does not appear to support direct calling. 47322*** Aborting" "$LINENO" 5 47323 fi 47324 fi 47325 47326 else 47327 47328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:compress can compile" >&5 47329$as_echo_n "checking if MCA component preg:compress can compile... " >&6; } 47330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47331$as_echo "no" >&6; } 47332 47333 # If this component was requested as the default for this 47334 # type, then abort. 47335 if test "$with_preg" = "compress" ; then 47336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"compress\" failed to configure properly" >&5 47337$as_echo "$as_me: WARNING: MCA component \"compress\" failed to configure properly" >&2;} 47338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 47339$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 47340 as_fn_error $? "Cannot continue" "$LINENO" 5 47341 fi 47342 47343 if test ! -z "$DIRECT_preg" ; then 47344 if test "$DIRECT_preg" = "compress" ; then 47345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"compress\" failed to configure properly" >&5 47346$as_echo "$as_me: WARNING: MCA component \"compress\" failed to configure properly" >&2;} 47347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 47348$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 47349 as_fn_error $? "Cannot continue" "$LINENO" 5 47350 fi 47351 fi 47352 47353 # add component to all component list 47354 all_components="$all_components compress" 47355 fi 47356 47357 # set the AM_CONDITIONAL on how we should build 47358 if test "$compile_mode" = "dso" ; then 47359 BUILD_pmix_preg_compress_DSO=1 47360 else 47361 BUILD_pmix_preg_compress_DSO=0 47362 fi 47363 if test "$BUILD_pmix_preg_compress_DSO" = "1"; then 47364 MCA_BUILD_pmix_preg_compress_DSO_TRUE= 47365 MCA_BUILD_pmix_preg_compress_DSO_FALSE='#' 47366else 47367 MCA_BUILD_pmix_preg_compress_DSO_TRUE='#' 47368 MCA_BUILD_pmix_preg_compress_DSO_FALSE= 47369fi 47370 47371 47372 ac_config_files="$ac_config_files src/mca/preg/compress/Makefile" 47373 47374 47375 unset compile_mode 47376 47377 pmix_show_subsubsubtitle "MCA component preg:native (no configuration)" 47378 47379 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 47380 47381 47382 47383 component_path="$srcdir/src/mca/preg/native" 47384 want_component=0 47385 47386 # build if: 47387 # - the component type is direct and we are that component 47388 # - there is no pmix_ignore file 47389 # - there is an pmix_ignore, but there is an empty pmix_unignore 47390 # - there is an pmix_ignore, but username is in pmix_unignore 47391 if test -d $component_path ; then 47392 # decide if we want the component to be built or not. This 47393 # is spread out because some of the logic is a little complex 47394 # and test's syntax isn't exactly the greatest. We want to 47395 # build the component by default. 47396 want_component=1 47397 if test -f $component_path/.pmix_ignore ; then 47398 # If there is an pmix_ignore file, don't build 47399 # the component. Note that this decision can be 47400 # overridden by the unignore logic below. 47401 want_component=0 47402 fi 47403 if test -f $component_path/.pmix_unignore ; then 47404 # if there is an empty pmix_unignore, that is 47405 # equivalent to having your userid in the unignore file. 47406 # If userid is in the file, unignore the ignore file. 47407 if test ! -s $component_path/.pmix_unignore ; then 47408 want_component=1 47409 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 47410 want_component=1 47411 fi 47412 fi 47413 # if this component type is direct and we are not it, we don't want 47414 # to be built. Otherwise, we do want to be built. 47415 if test ! -z "$DIRECT_preg" ; then 47416 if test "$DIRECT_preg" = "native" ; then 47417 want_component=1 47418 else 47419 want_component=0 47420 fi 47421 fi 47422 fi 47423 47424 # if we were explicitly disabled, don't build :) 47425 if test "$DISABLE_preg" = "1"; then : 47426 want_component=0 47427fi 47428 if test "$DISABLE_preg_native" = "1"; then : 47429 want_component=0 47430fi 47431 47432 if test "$want_component" = "1"; then : 47433 should_build=1 47434else 47435 should_build=0 47436fi 47437 47438 47439 SHARED_FRAMEWORK="$DSO_preg" 47440 SHARED_COMPONENT="$DSO_preg_native" 47441 47442 STATIC_FRAMEWORK="$STATIC_preg" 47443 STATIC_COMPONENT="$STATIC_preg_native" 47444 47445 shared_mode_override=static 47446 47447 # Setup for either shared or static 47448 if test "$STATIC_FRAMEWORK" = "1" || \ 47449 test "$STATIC_COMPONENT" = "1" || \ 47450 test "$STATIC_all" = "1" ; then 47451 compile_mode="static" 47452 elif test "$shared_mode_override" = "dso" || \ 47453 test "$SHARED_FRAMEWORK" = "1" || \ 47454 test "$SHARED_COMPONENT" = "1" || \ 47455 test "$DSO_all" = "1"; then 47456 compile_mode="dso" 47457 else 47458 compile_mode="static" 47459 fi 47460 47461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component preg:native compile mode" >&5 47462$as_echo_n "checking for MCA component preg:native compile mode... " >&6; } 47463 if test "$DIRECT_preg" = "native" ; then 47464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 47465$as_echo "$compile_mode - direct" >&6; } 47466 else 47467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 47468$as_echo "$compile_mode" >&6; } 47469 fi 47470 47471 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 47472 47473 if test "$should_build" = "1" ; then 47474 47475 47476 47477 # See if it dropped an output file for us to pick up some 47478 # shell variables in. 47479 infile="$srcdir/src/mca/preg/native/post_configure.sh" 47480 47481 # Add this subdir to the mast list of all MCA component subdirs 47482 all_components="$all_components native" 47483 47484 if test "$compile_mode" = "dso" ; then 47485 dso_components="$dso_components native" 47486 else 47487 if test "preg" = "common"; then 47488 # Static libraries in "common" frameworks are installed, and 47489 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 47490 # set. 47491 static_ltlibs="mca/preg/native/lib${PMIX_LIB_PREFIX}mca_preg_native.la $static_ltlibs" 47492 else 47493 # Other frameworks do not have to obey the 47494 # $FRAMEWORK_LIB_PREFIX prefix. 47495 static_ltlibs="mca/preg/native/libmca_preg_native.la $static_ltlibs" 47496 fi 47497 echo "extern const pmix_mca_base_component_t mca_preg_native_component;" >> $outfile.extern 47498 echo " &mca_preg_native_component, " >> $outfile.struct 47499 static_components="$static_components native" 47500 fi 47501 47502 # Output pretty results 47503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:native can compile" >&5 47504$as_echo_n "checking if MCA component preg:native can compile... " >&6; } 47505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47506$as_echo "yes" >&6; } 47507 47508 if test -f $infile; then 47509 # check for direct call header to include. This will be 47510 # AC_SUBSTed later. 47511 if test "$DIRECT_preg" = "native" ; then 47512 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 47513 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 47514 str="MCA_pmix_preg_DIRECT_CALL_HEADER=$line" 47515 eval $str 47516 else 47517as_fn_error $? "*** preg component native was supposed to be direct-called, but 47518*** does not appear to support direct calling. 47519*** Aborting" "$LINENO" 5 47520 fi 47521 fi 47522 else 47523 # were we supposed to have found something in the 47524 # post_configure.sh, but the file didn't exist? 47525 if test "$DIRECT_preg" = "native" ; then 47526as_fn_error $? "*** preg component native was supposed to be direct-called, but 47527*** does not appear to support direct calling. 47528*** Aborting" "$LINENO" 5 47529 fi 47530 fi 47531 47532 else 47533 47534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:native can compile" >&5 47535$as_echo_n "checking if MCA component preg:native can compile... " >&6; } 47536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47537$as_echo "no" >&6; } 47538 47539 # If this component was requested as the default for this 47540 # type, then abort. 47541 if test "$with_preg" = "native" ; then 47542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5 47543$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;} 47544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 47545$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 47546 as_fn_error $? "Cannot continue" "$LINENO" 5 47547 fi 47548 47549 if test ! -z "$DIRECT_preg" ; then 47550 if test "$DIRECT_preg" = "native" ; then 47551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5 47552$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;} 47553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 47554$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 47555 as_fn_error $? "Cannot continue" "$LINENO" 5 47556 fi 47557 fi 47558 47559 # add component to all component list 47560 all_components="$all_components native" 47561 fi 47562 47563 # set the AM_CONDITIONAL on how we should build 47564 if test "$compile_mode" = "dso" ; then 47565 BUILD_pmix_preg_native_DSO=1 47566 else 47567 BUILD_pmix_preg_native_DSO=0 47568 fi 47569 if test "$BUILD_pmix_preg_native_DSO" = "1"; then 47570 MCA_BUILD_pmix_preg_native_DSO_TRUE= 47571 MCA_BUILD_pmix_preg_native_DSO_FALSE='#' 47572else 47573 MCA_BUILD_pmix_preg_native_DSO_TRUE='#' 47574 MCA_BUILD_pmix_preg_native_DSO_FALSE= 47575fi 47576 47577 47578 ac_config_files="$ac_config_files src/mca/preg/native/Makefile" 47579 47580 47581 unset compile_mode 47582 47583 47584 # configure components that use built-in configuration scripts 47585 47586 47587 47588 best_mca_component_priority=0 47589 components_looking_for_succeed=1 47590 components_last_result=0 47591 47592 47593 # configure components that provide their own configure script. 47594 # It would be really hard to run these for "find first that 47595 # works", so we don't :) 47596 47597 47598 47599 if test "1" != "0"; then : 47600 47601 for component_path in $srcdir/src/mca/preg/* ; do 47602 component="`basename $component_path`" 47603 if test -d $component_path && test -x $component_path/configure ; then 47604 pmix_show_subsubsubtitle "MCA component preg:$component (need to configure)" 47605 47606 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 47607 47608 47609 47610 component_path="$srcdir/src/mca/preg/$component" 47611 want_component=0 47612 47613 # build if: 47614 # - the component type is direct and we are that component 47615 # - there is no pmix_ignore file 47616 # - there is an pmix_ignore, but there is an empty pmix_unignore 47617 # - there is an pmix_ignore, but username is in pmix_unignore 47618 if test -d $component_path ; then 47619 # decide if we want the component to be built or not. This 47620 # is spread out because some of the logic is a little complex 47621 # and test's syntax isn't exactly the greatest. We want to 47622 # build the component by default. 47623 want_component=1 47624 if test -f $component_path/.pmix_ignore ; then 47625 # If there is an pmix_ignore file, don't build 47626 # the component. Note that this decision can be 47627 # overridden by the unignore logic below. 47628 want_component=0 47629 fi 47630 if test -f $component_path/.pmix_unignore ; then 47631 # if there is an empty pmix_unignore, that is 47632 # equivalent to having your userid in the unignore file. 47633 # If userid is in the file, unignore the ignore file. 47634 if test ! -s $component_path/.pmix_unignore ; then 47635 want_component=1 47636 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 47637 want_component=1 47638 fi 47639 fi 47640 # if this component type is direct and we are not it, we don't want 47641 # to be built. Otherwise, we do want to be built. 47642 if test ! -z "$DIRECT_preg" ; then 47643 if test "$DIRECT_preg" = "$component" ; then 47644 want_component=1 47645 else 47646 want_component=0 47647 fi 47648 fi 47649 fi 47650 47651 # if we were explicitly disabled, don't build :) 47652 if test "$DISABLE_preg" = "1"; then : 47653 want_component=0 47654fi 47655 str="DISABLED_COMPONENT_CHECK=\$DISABLE_preg_$component" 47656 eval $str 47657 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 47658 want_component=0 47659 fi 47660 47661 if test "$want_component" = "1"; then : 47662 should_build=1 47663else 47664 should_build=0 47665fi 47666 47667 47668 SHARED_FRAMEWORK="$DSO_preg" 47669 str="SHARED_COMPONENT=\$DSO_preg_$component" 47670 eval $str 47671 47672 STATIC_FRAMEWORK="$STATIC_preg" 47673 str="STATIC_COMPONENT=\$STATIC_preg_$component" 47674 eval $str 47675 47676 shared_mode_override=static 47677 47678 # Setup for either shared or static 47679 if test "$STATIC_FRAMEWORK" = "1" || \ 47680 test "$STATIC_COMPONENT" = "1" || \ 47681 test "$STATIC_all" = "1" ; then 47682 compile_mode="static" 47683 elif test "$shared_mode_override" = "dso" || \ 47684 test "$SHARED_FRAMEWORK" = "1" || \ 47685 test "$SHARED_COMPONENT" = "1" || \ 47686 test "$DSO_all" = "1"; then 47687 compile_mode="dso" 47688 else 47689 compile_mode="static" 47690 fi 47691 47692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component preg:$component compile mode" >&5 47693$as_echo_n "checking for MCA component preg:$component compile mode... " >&6; } 47694 if test "$DIRECT_preg" = "$component" ; then 47695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 47696$as_echo "$compile_mode - direct" >&6; } 47697 else 47698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 47699$as_echo "$compile_mode" >&6; } 47700 fi 47701 47702 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 47703 47704 if test "$should_build" = "1" ; then 47705 47706 47707 47708 # Is the private index set? If not, set it. 47709 if test "x$pmix_scope_index" = "x"; then 47710 pmix_scope_index=1 47711 fi 47712 47713 # First, check to see if any of these variables are already set. 47714 # This is a simple sanity check to ensure we're not already 47715 # overwriting pre-existing variables (that have a non-empty 47716 # value). It's not a perfect check, but at least it's something. 47717 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 47718 pmix_str="pmix_str=\"\$$pmix_var\"" 47719 eval $pmix_str 47720 47721 if test "x$pmix_str" != "x"; then 47722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 47723$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 47724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 47725$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 47726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 47727$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 47728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 47729$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 47730 as_fn_error $? "Cannot continue" "$LINENO" 5 47731 fi 47732 done 47733 47734 # Ok, we passed the simple sanity check. Save all these names so 47735 # that we can unset them at the end of the scope. 47736 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 47737 eval $pmix_str 47738 unset pmix_str 47739 47740 env | grep pmix_scope 47741 pmix_scope_index=`expr $pmix_scope_index + 1` 47742 47743 47744# 47745# Invoke configure in a specific subdirectory. 47746# 47747# src/mca/preg/$component is the directory to invoke in 47748# $pmix_subdir_args is the list of arguments to pass 47749# should_build=1 is actions to execute upon success 47750# should_build=0 is actions to execute upon failure 47751# 47752subdir_dir="src/mca/preg/$component" 47753subdir_args="$pmix_subdir_args" 47754subdir_success="should_build=1" 47755subdir_failure="should_build=0" 47756 47757# 47758# Sanity checks 47759# 47760 47761if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 47762 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 47763$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 47764 47765 # 47766 # Gotta check where srcdir is for VPATH builds. If srcdir is not 47767 # ., then we need to mkdir the subdir. Otherwise, we can just cd 47768 # into it. 47769 # 47770 47771 case $srcdir in 47772 .) 47773 ;; 47774 *) 47775 { case $subdir_dir in 47776 [\\/]* | ?:[\\/]* ) total_dir=;; 47777 *) total_dir=.;; 47778 esac 47779 temp=$subdir_dir 47780 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 47781 case $dir_part in 47782 # Skip DOS drivespec 47783 ?:) total_dir=$dir_part ;; 47784 *) total_dir=$total_dir/$dir_part 47785 test -d "$total_dir" || 47786 mkdir "$total_dir" || 47787 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 47788 ;; 47789 esac 47790 done; } 47791 47792 if test -d ./$subdir_dir; then :; 47793 else 47794 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 47795 fi 47796 ;; 47797 esac 47798 47799 # 47800 # Move into the target directory 47801 # 47802 47803 subdir_parent=`pwd` 47804 cd $subdir_dir 47805 47806 # 47807 # Make a "../" for each directory in $subdir_dir. 47808 # 47809 47810 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 47811 # 47812 # Construct the --srcdir argument 47813 # 47814 47815 case $srcdir in 47816 .) 47817 # In place 47818 subdir_srcdir="$srcdir" 47819 ;; 47820 [\\/]* | ?:[\\/]* ) 47821 # Absolute path 47822 subdir_srcdir="$srcdir/$subdir_dir" 47823 ;; 47824 *) 47825 # Relative path 47826 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 47827 ;; 47828 esac 47829 47830 # 47831 # Construct the --cache-file argument 47832 # 47833 47834 # BWB - subdir caching is a pain since we change CFLAGS and all that. 47835 # Just disable it for now 47836 subdir_cache_file="/dev/null" 47837 47838 # 47839 # Invoke the configure script in the subdirectory 47840 # 47841 47842 sub_configure="$SHELL '$subdir_srcdir/configure'" 47843 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 47844$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 47845 eval "$sub_configure $subdir_args \ 47846 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 47847 if test "$?" = "0"; then 47848 eval $subdir_success 47849 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 47850$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 47851 else 47852 eval $subdir_failure 47853 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 47854$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 47855 fi 47856 47857 # 47858 # Go back to the topdir 47859 # 47860 47861 cd $subdir_parent 47862fi 47863 47864# 47865# Clean up 47866# 47867 47868 47869 # Unwind the index 47870 pmix_scope_index=`expr $pmix_scope_index - 1` 47871 pmix_scope_test=`expr $pmix_scope_index \> 0` 47872 if test "$pmix_scope_test" = "0"; then 47873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 47874$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 47875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 47876$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 47877 as_fn_error $? "Cannot continue" "$LINENO" 5 47878 fi 47879 47880 # Get the variable names from that index 47881 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 47882 eval $pmix_str 47883 47884 # Iterate over all the variables and unset them all 47885 for pmix_var in $pmix_str; do 47886 unset $pmix_var 47887 done 47888 47889 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 47890 fi 47891 47892 if test "$should_build" = "1" ; then 47893 # do some extra work to pass flags back from the 47894 # top-level configure, the way a configure.m4 47895 # component would. 47896 infile="$srcdir/src/mca/preg/all_components/post_configure.sh" 47897 if test -f $infile; then 47898 47899 # First check for the ABORT tag 47900 line="`$GREP ABORT= $infile | cut -d= -f2-`" 47901 if test -n "$line" && test "$line" != "no"; then 47902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 47903$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 47904 as_fn_error $? "cannot continue" "$LINENO" 5 47905 fi 47906 fi 47907 47908 47909 47910 47911 # See if it dropped an output file for us to pick up some 47912 # shell variables in. 47913 infile="$srcdir/src/mca/preg/$component/post_configure.sh" 47914 47915 # Add this subdir to the mast list of all MCA component subdirs 47916 all_components="$all_components $component" 47917 47918 if test "$compile_mode" = "dso" ; then 47919 dso_components="$dso_components $component" 47920 else 47921 if test "preg" = "common"; then 47922 # Static libraries in "common" frameworks are installed, and 47923 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 47924 # set. 47925 static_ltlibs="mca/preg/$component/lib${PMIX_LIB_PREFIX}mca_preg_$component.la $static_ltlibs" 47926 else 47927 # Other frameworks do not have to obey the 47928 # $FRAMEWORK_LIB_PREFIX prefix. 47929 static_ltlibs="mca/preg/$component/libmca_preg_$component.la $static_ltlibs" 47930 fi 47931 echo "extern const pmix_mca_base_component_t mca_preg_$component_component;" >> $outfile.extern 47932 echo " &mca_preg_$component_component, " >> $outfile.struct 47933 static_components="$static_components $component" 47934 fi 47935 47936 # Output pretty results 47937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:$component can compile" >&5 47938$as_echo_n "checking if MCA component preg:$component can compile... " >&6; } 47939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47940$as_echo "yes" >&6; } 47941 47942 if test -f $infile; then 47943 # check for direct call header to include. This will be 47944 # AC_SUBSTed later. 47945 if test "$DIRECT_preg" = "$component" ; then 47946 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 47947 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 47948 str="MCA_pmix_preg_DIRECT_CALL_HEADER=$line" 47949 eval $str 47950 else 47951as_fn_error $? "*** preg component $component was supposed to be direct-called, but 47952*** does not appear to support direct calling. 47953*** Aborting" "$LINENO" 5 47954 fi 47955 fi 47956 else 47957 # were we supposed to have found something in the 47958 # post_configure.sh, but the file didn't exist? 47959 if test "$DIRECT_preg" = "$component" ; then 47960as_fn_error $? "*** preg component $component was supposed to be direct-called, but 47961*** does not appear to support direct calling. 47962*** Aborting" "$LINENO" 5 47963 fi 47964 fi 47965 47966 else 47967 47968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:$component can compile" >&5 47969$as_echo_n "checking if MCA component preg:$component can compile... " >&6; } 47970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47971$as_echo "no" >&6; } 47972 47973 # If this component was requested as the default for this 47974 # type, then abort. 47975 if test "$with_preg" = "$component" ; then 47976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 47977$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 47978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 47979$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 47980 as_fn_error $? "Cannot continue" "$LINENO" 5 47981 fi 47982 47983 if test ! -z "$DIRECT_preg" ; then 47984 if test "$DIRECT_preg" = "$component" ; then 47985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 47986$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 47987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 47988$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 47989 as_fn_error $? "Cannot continue" "$LINENO" 5 47990 fi 47991 fi 47992 47993 fi 47994 fi 47995 done 47996 47997fi 47998 47999 MCA_pmix_preg_ALL_COMPONENTS="$all_components" 48000 MCA_pmix_preg_STATIC_COMPONENTS="$static_components" 48001 MCA_pmix_preg_DSO_COMPONENTS="$dso_components" 48002 MCA_pmix_preg_STATIC_LTLIBS="$static_ltlibs" 48003 48004 48005 48006 48007 48008 48009 48010 MCA_pmix_preg_ALL_SUBDIRS= 48011 for item in $all_components ; do 48012 MCA_pmix_preg_ALL_SUBDIRS="$MCA_pmix_preg_ALL_SUBDIRS mca/preg/$item" 48013 done 48014 48015 48016 48017 MCA_pmix_preg_STATIC_SUBDIRS= 48018 for item in $static_components ; do 48019 MCA_pmix_preg_STATIC_SUBDIRS="$MCA_pmix_preg_STATIC_SUBDIRS mca/preg/$item" 48020 done 48021 48022 48023 48024 MCA_pmix_preg_DSO_SUBDIRS= 48025 for item in $dso_components ; do 48026 MCA_pmix_preg_DSO_SUBDIRS="$MCA_pmix_preg_DSO_SUBDIRS mca/preg/$item" 48027 done 48028 48029 48030 48031 # Create the final .h file that will be included in the type's 48032 # top-level glue. This lists all the static components. We don't 48033 # need to do this for "common". 48034 if test "preg" != "common"; then 48035 cat > $outfile <<EOF 48036/* 48037 * \$HEADER\$ 48038 */ 48039#if defined(c_plusplus) || defined(__cplusplus) 48040extern "C" { 48041#endif 48042 48043`cat $outfile.extern` 48044 48045const pmix_mca_base_component_t *mca_preg_base_static_components[] = { 48046`cat $outfile.struct` 48047 NULL 48048}; 48049 48050#if defined(c_plusplus) || defined(__cplusplus) 48051} 48052#endif 48053 48054EOF 48055 # Only replace the header file if a) it doesn't previously 48056 # exist, or b) the contents are different. Do this to not 48057 # trigger recompilation of certain .c files just because the 48058 # timestamp changed on $outfile_real (similar to the way AC 48059 # handles AC_CONFIG_HEADER files). 48060 diff $outfile $outfile_real > /dev/null 2>&1 48061 if test "$?" != "0"; then 48062 mv $outfile $outfile_real 48063 else 48064 rm -f $outfile 48065 fi 48066 fi 48067 rm -f $outfile.struct $outfile.extern 48068 48069 unset all_components static_components dso_components outfile outfile_real 48070 48071 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS psec" 48072 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/psec" 48073 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_psec_ALL_SUBDIRS)" 48074 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_psec_DSO_SUBDIRS)" 48075 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_psec_STATIC_SUBDIRS)" 48076 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/psec/libmca_psec.la" 48077 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_psec_STATIC_LTLIBS)" 48078 48079 pmix_show_subsubtitle "Configuring MCA framework psec" 48080 48081 48082 48083 48084 # setup for framework 48085 all_components= 48086 static_components= 48087 dso_components= 48088 static_ltlibs= 48089 48090 # Ensure that the directory where the #include file is to live 48091 # exists. Need to do this for VPATH builds, because the directory 48092 # may not exist yet. For the "common" type, it's not really a 48093 # component, so it doesn't have a base. 48094 outdir=src/mca/psec/base 48095 as_dir=$outdir; as_fn_mkdir_p 48096 48097 # emit Makefile rule 48098 ac_config_files="$ac_config_files src/mca/psec/Makefile" 48099 48100 48101 # remove any previously generated #include files 48102 outfile_real=$outdir/static-components.h 48103 outfile=$outfile_real.new 48104 rm -f $outfile $outfile.struct $outfile.extern 48105 touch $outfile.struct $outfile.extern 48106 48107 # print some nice messages about what we're about to do... 48108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework psec" >&5 48109$as_echo_n "checking for no configure components in framework psec... " >&6; } 48110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dummy_handshake, native, none" >&5 48111$as_echo "dummy_handshake, native, none" >&6; } 48112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework psec" >&5 48113$as_echo_n "checking for m4 configure components in framework psec... " >&6; } 48114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: munge" >&5 48115$as_echo "munge" >&6; } 48116 48117 # If there are components in the no configure list, but we're 48118 # doing one of the "special" selection logics, abort with a 48119 # reasonable message. 48120 48121 48122 48123 # run the configure logic for the no-config components 48124 48125 pmix_show_subsubsubtitle "MCA component psec:dummy_handshake (no configuration)" 48126 48127 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 48128 48129 48130 48131 component_path="$srcdir/src/mca/psec/dummy_handshake" 48132 want_component=0 48133 48134 # build if: 48135 # - the component type is direct and we are that component 48136 # - there is no pmix_ignore file 48137 # - there is an pmix_ignore, but there is an empty pmix_unignore 48138 # - there is an pmix_ignore, but username is in pmix_unignore 48139 if test -d $component_path ; then 48140 # decide if we want the component to be built or not. This 48141 # is spread out because some of the logic is a little complex 48142 # and test's syntax isn't exactly the greatest. We want to 48143 # build the component by default. 48144 want_component=1 48145 if test -f $component_path/.pmix_ignore ; then 48146 # If there is an pmix_ignore file, don't build 48147 # the component. Note that this decision can be 48148 # overridden by the unignore logic below. 48149 want_component=0 48150 fi 48151 if test -f $component_path/.pmix_unignore ; then 48152 # if there is an empty pmix_unignore, that is 48153 # equivalent to having your userid in the unignore file. 48154 # If userid is in the file, unignore the ignore file. 48155 if test ! -s $component_path/.pmix_unignore ; then 48156 want_component=1 48157 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 48158 want_component=1 48159 fi 48160 fi 48161 # if this component type is direct and we are not it, we don't want 48162 # to be built. Otherwise, we do want to be built. 48163 if test ! -z "$DIRECT_psec" ; then 48164 if test "$DIRECT_psec" = "dummy_handshake" ; then 48165 want_component=1 48166 else 48167 want_component=0 48168 fi 48169 fi 48170 fi 48171 48172 # if we were explicitly disabled, don't build :) 48173 if test "$DISABLE_psec" = "1"; then : 48174 want_component=0 48175fi 48176 if test "$DISABLE_psec_dummy_handshake" = "1"; then : 48177 want_component=0 48178fi 48179 48180 if test "$want_component" = "1"; then : 48181 should_build=1 48182else 48183 should_build=0 48184fi 48185 48186 48187 SHARED_FRAMEWORK="$DSO_psec" 48188 SHARED_COMPONENT="$DSO_psec_dummy_handshake" 48189 48190 STATIC_FRAMEWORK="$STATIC_psec" 48191 STATIC_COMPONENT="$STATIC_psec_dummy_handshake" 48192 48193 shared_mode_override=static 48194 48195 # Setup for either shared or static 48196 if test "$STATIC_FRAMEWORK" = "1" || \ 48197 test "$STATIC_COMPONENT" = "1" || \ 48198 test "$STATIC_all" = "1" ; then 48199 compile_mode="static" 48200 elif test "$shared_mode_override" = "dso" || \ 48201 test "$SHARED_FRAMEWORK" = "1" || \ 48202 test "$SHARED_COMPONENT" = "1" || \ 48203 test "$DSO_all" = "1"; then 48204 compile_mode="dso" 48205 else 48206 compile_mode="static" 48207 fi 48208 48209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:dummy_handshake compile mode" >&5 48210$as_echo_n "checking for MCA component psec:dummy_handshake compile mode... " >&6; } 48211 if test "$DIRECT_psec" = "dummy_handshake" ; then 48212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 48213$as_echo "$compile_mode - direct" >&6; } 48214 else 48215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 48216$as_echo "$compile_mode" >&6; } 48217 fi 48218 48219 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 48220 48221 if test "$should_build" = "1" ; then 48222 48223 48224 48225 # See if it dropped an output file for us to pick up some 48226 # shell variables in. 48227 infile="$srcdir/src/mca/psec/dummy_handshake/post_configure.sh" 48228 48229 # Add this subdir to the mast list of all MCA component subdirs 48230 all_components="$all_components dummy_handshake" 48231 48232 if test "$compile_mode" = "dso" ; then 48233 dso_components="$dso_components dummy_handshake" 48234 else 48235 if test "psec" = "common"; then 48236 # Static libraries in "common" frameworks are installed, and 48237 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 48238 # set. 48239 static_ltlibs="mca/psec/dummy_handshake/lib${PMIX_LIB_PREFIX}mca_psec_dummy_handshake.la $static_ltlibs" 48240 else 48241 # Other frameworks do not have to obey the 48242 # $FRAMEWORK_LIB_PREFIX prefix. 48243 static_ltlibs="mca/psec/dummy_handshake/libmca_psec_dummy_handshake.la $static_ltlibs" 48244 fi 48245 echo "extern const pmix_mca_base_component_t mca_psec_dummy_handshake_component;" >> $outfile.extern 48246 echo " &mca_psec_dummy_handshake_component, " >> $outfile.struct 48247 static_components="$static_components dummy_handshake" 48248 fi 48249 48250 # Output pretty results 48251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:dummy_handshake can compile" >&5 48252$as_echo_n "checking if MCA component psec:dummy_handshake can compile... " >&6; } 48253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48254$as_echo "yes" >&6; } 48255 48256 if test -f $infile; then 48257 # check for direct call header to include. This will be 48258 # AC_SUBSTed later. 48259 if test "$DIRECT_psec" = "dummy_handshake" ; then 48260 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 48261 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 48262 str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line" 48263 eval $str 48264 else 48265as_fn_error $? "*** psec component dummy_handshake was supposed to be direct-called, but 48266*** does not appear to support direct calling. 48267*** Aborting" "$LINENO" 5 48268 fi 48269 fi 48270 else 48271 # were we supposed to have found something in the 48272 # post_configure.sh, but the file didn't exist? 48273 if test "$DIRECT_psec" = "dummy_handshake" ; then 48274as_fn_error $? "*** psec component dummy_handshake was supposed to be direct-called, but 48275*** does not appear to support direct calling. 48276*** Aborting" "$LINENO" 5 48277 fi 48278 fi 48279 48280 else 48281 48282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:dummy_handshake can compile" >&5 48283$as_echo_n "checking if MCA component psec:dummy_handshake can compile... " >&6; } 48284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48285$as_echo "no" >&6; } 48286 48287 # If this component was requested as the default for this 48288 # type, then abort. 48289 if test "$with_psec" = "dummy_handshake" ; then 48290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&5 48291$as_echo "$as_me: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&2;} 48292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 48293$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 48294 as_fn_error $? "Cannot continue" "$LINENO" 5 48295 fi 48296 48297 if test ! -z "$DIRECT_psec" ; then 48298 if test "$DIRECT_psec" = "dummy_handshake" ; then 48299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&5 48300$as_echo "$as_me: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&2;} 48301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 48302$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 48303 as_fn_error $? "Cannot continue" "$LINENO" 5 48304 fi 48305 fi 48306 48307 # add component to all component list 48308 all_components="$all_components dummy_handshake" 48309 fi 48310 48311 # set the AM_CONDITIONAL on how we should build 48312 if test "$compile_mode" = "dso" ; then 48313 BUILD_pmix_psec_dummy_handshake_DSO=1 48314 else 48315 BUILD_pmix_psec_dummy_handshake_DSO=0 48316 fi 48317 if test "$BUILD_pmix_psec_dummy_handshake_DSO" = "1"; then 48318 MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE= 48319 MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE='#' 48320else 48321 MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE='#' 48322 MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE= 48323fi 48324 48325 48326 ac_config_files="$ac_config_files src/mca/psec/dummy_handshake/Makefile" 48327 48328 48329 unset compile_mode 48330 48331 pmix_show_subsubsubtitle "MCA component psec:native (no configuration)" 48332 48333 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 48334 48335 48336 48337 component_path="$srcdir/src/mca/psec/native" 48338 want_component=0 48339 48340 # build if: 48341 # - the component type is direct and we are that component 48342 # - there is no pmix_ignore file 48343 # - there is an pmix_ignore, but there is an empty pmix_unignore 48344 # - there is an pmix_ignore, but username is in pmix_unignore 48345 if test -d $component_path ; then 48346 # decide if we want the component to be built or not. This 48347 # is spread out because some of the logic is a little complex 48348 # and test's syntax isn't exactly the greatest. We want to 48349 # build the component by default. 48350 want_component=1 48351 if test -f $component_path/.pmix_ignore ; then 48352 # If there is an pmix_ignore file, don't build 48353 # the component. Note that this decision can be 48354 # overridden by the unignore logic below. 48355 want_component=0 48356 fi 48357 if test -f $component_path/.pmix_unignore ; then 48358 # if there is an empty pmix_unignore, that is 48359 # equivalent to having your userid in the unignore file. 48360 # If userid is in the file, unignore the ignore file. 48361 if test ! -s $component_path/.pmix_unignore ; then 48362 want_component=1 48363 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 48364 want_component=1 48365 fi 48366 fi 48367 # if this component type is direct and we are not it, we don't want 48368 # to be built. Otherwise, we do want to be built. 48369 if test ! -z "$DIRECT_psec" ; then 48370 if test "$DIRECT_psec" = "native" ; then 48371 want_component=1 48372 else 48373 want_component=0 48374 fi 48375 fi 48376 fi 48377 48378 # if we were explicitly disabled, don't build :) 48379 if test "$DISABLE_psec" = "1"; then : 48380 want_component=0 48381fi 48382 if test "$DISABLE_psec_native" = "1"; then : 48383 want_component=0 48384fi 48385 48386 if test "$want_component" = "1"; then : 48387 should_build=1 48388else 48389 should_build=0 48390fi 48391 48392 48393 SHARED_FRAMEWORK="$DSO_psec" 48394 SHARED_COMPONENT="$DSO_psec_native" 48395 48396 STATIC_FRAMEWORK="$STATIC_psec" 48397 STATIC_COMPONENT="$STATIC_psec_native" 48398 48399 shared_mode_override=static 48400 48401 # Setup for either shared or static 48402 if test "$STATIC_FRAMEWORK" = "1" || \ 48403 test "$STATIC_COMPONENT" = "1" || \ 48404 test "$STATIC_all" = "1" ; then 48405 compile_mode="static" 48406 elif test "$shared_mode_override" = "dso" || \ 48407 test "$SHARED_FRAMEWORK" = "1" || \ 48408 test "$SHARED_COMPONENT" = "1" || \ 48409 test "$DSO_all" = "1"; then 48410 compile_mode="dso" 48411 else 48412 compile_mode="static" 48413 fi 48414 48415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:native compile mode" >&5 48416$as_echo_n "checking for MCA component psec:native compile mode... " >&6; } 48417 if test "$DIRECT_psec" = "native" ; then 48418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 48419$as_echo "$compile_mode - direct" >&6; } 48420 else 48421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 48422$as_echo "$compile_mode" >&6; } 48423 fi 48424 48425 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 48426 48427 if test "$should_build" = "1" ; then 48428 48429 48430 48431 # See if it dropped an output file for us to pick up some 48432 # shell variables in. 48433 infile="$srcdir/src/mca/psec/native/post_configure.sh" 48434 48435 # Add this subdir to the mast list of all MCA component subdirs 48436 all_components="$all_components native" 48437 48438 if test "$compile_mode" = "dso" ; then 48439 dso_components="$dso_components native" 48440 else 48441 if test "psec" = "common"; then 48442 # Static libraries in "common" frameworks are installed, and 48443 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 48444 # set. 48445 static_ltlibs="mca/psec/native/lib${PMIX_LIB_PREFIX}mca_psec_native.la $static_ltlibs" 48446 else 48447 # Other frameworks do not have to obey the 48448 # $FRAMEWORK_LIB_PREFIX prefix. 48449 static_ltlibs="mca/psec/native/libmca_psec_native.la $static_ltlibs" 48450 fi 48451 echo "extern const pmix_mca_base_component_t mca_psec_native_component;" >> $outfile.extern 48452 echo " &mca_psec_native_component, " >> $outfile.struct 48453 static_components="$static_components native" 48454 fi 48455 48456 # Output pretty results 48457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:native can compile" >&5 48458$as_echo_n "checking if MCA component psec:native can compile... " >&6; } 48459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48460$as_echo "yes" >&6; } 48461 48462 if test -f $infile; then 48463 # check for direct call header to include. This will be 48464 # AC_SUBSTed later. 48465 if test "$DIRECT_psec" = "native" ; then 48466 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 48467 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 48468 str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line" 48469 eval $str 48470 else 48471as_fn_error $? "*** psec component native was supposed to be direct-called, but 48472*** does not appear to support direct calling. 48473*** Aborting" "$LINENO" 5 48474 fi 48475 fi 48476 else 48477 # were we supposed to have found something in the 48478 # post_configure.sh, but the file didn't exist? 48479 if test "$DIRECT_psec" = "native" ; then 48480as_fn_error $? "*** psec component native was supposed to be direct-called, but 48481*** does not appear to support direct calling. 48482*** Aborting" "$LINENO" 5 48483 fi 48484 fi 48485 48486 else 48487 48488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:native can compile" >&5 48489$as_echo_n "checking if MCA component psec:native can compile... " >&6; } 48490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48491$as_echo "no" >&6; } 48492 48493 # If this component was requested as the default for this 48494 # type, then abort. 48495 if test "$with_psec" = "native" ; then 48496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5 48497$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;} 48498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 48499$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 48500 as_fn_error $? "Cannot continue" "$LINENO" 5 48501 fi 48502 48503 if test ! -z "$DIRECT_psec" ; then 48504 if test "$DIRECT_psec" = "native" ; then 48505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5 48506$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;} 48507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 48508$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 48509 as_fn_error $? "Cannot continue" "$LINENO" 5 48510 fi 48511 fi 48512 48513 # add component to all component list 48514 all_components="$all_components native" 48515 fi 48516 48517 # set the AM_CONDITIONAL on how we should build 48518 if test "$compile_mode" = "dso" ; then 48519 BUILD_pmix_psec_native_DSO=1 48520 else 48521 BUILD_pmix_psec_native_DSO=0 48522 fi 48523 if test "$BUILD_pmix_psec_native_DSO" = "1"; then 48524 MCA_BUILD_pmix_psec_native_DSO_TRUE= 48525 MCA_BUILD_pmix_psec_native_DSO_FALSE='#' 48526else 48527 MCA_BUILD_pmix_psec_native_DSO_TRUE='#' 48528 MCA_BUILD_pmix_psec_native_DSO_FALSE= 48529fi 48530 48531 48532 ac_config_files="$ac_config_files src/mca/psec/native/Makefile" 48533 48534 48535 unset compile_mode 48536 48537 pmix_show_subsubsubtitle "MCA component psec:none (no configuration)" 48538 48539 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 48540 48541 48542 48543 component_path="$srcdir/src/mca/psec/none" 48544 want_component=0 48545 48546 # build if: 48547 # - the component type is direct and we are that component 48548 # - there is no pmix_ignore file 48549 # - there is an pmix_ignore, but there is an empty pmix_unignore 48550 # - there is an pmix_ignore, but username is in pmix_unignore 48551 if test -d $component_path ; then 48552 # decide if we want the component to be built or not. This 48553 # is spread out because some of the logic is a little complex 48554 # and test's syntax isn't exactly the greatest. We want to 48555 # build the component by default. 48556 want_component=1 48557 if test -f $component_path/.pmix_ignore ; then 48558 # If there is an pmix_ignore file, don't build 48559 # the component. Note that this decision can be 48560 # overridden by the unignore logic below. 48561 want_component=0 48562 fi 48563 if test -f $component_path/.pmix_unignore ; then 48564 # if there is an empty pmix_unignore, that is 48565 # equivalent to having your userid in the unignore file. 48566 # If userid is in the file, unignore the ignore file. 48567 if test ! -s $component_path/.pmix_unignore ; then 48568 want_component=1 48569 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 48570 want_component=1 48571 fi 48572 fi 48573 # if this component type is direct and we are not it, we don't want 48574 # to be built. Otherwise, we do want to be built. 48575 if test ! -z "$DIRECT_psec" ; then 48576 if test "$DIRECT_psec" = "none" ; then 48577 want_component=1 48578 else 48579 want_component=0 48580 fi 48581 fi 48582 fi 48583 48584 # if we were explicitly disabled, don't build :) 48585 if test "$DISABLE_psec" = "1"; then : 48586 want_component=0 48587fi 48588 if test "$DISABLE_psec_none" = "1"; then : 48589 want_component=0 48590fi 48591 48592 if test "$want_component" = "1"; then : 48593 should_build=1 48594else 48595 should_build=0 48596fi 48597 48598 48599 SHARED_FRAMEWORK="$DSO_psec" 48600 SHARED_COMPONENT="$DSO_psec_none" 48601 48602 STATIC_FRAMEWORK="$STATIC_psec" 48603 STATIC_COMPONENT="$STATIC_psec_none" 48604 48605 shared_mode_override=static 48606 48607 # Setup for either shared or static 48608 if test "$STATIC_FRAMEWORK" = "1" || \ 48609 test "$STATIC_COMPONENT" = "1" || \ 48610 test "$STATIC_all" = "1" ; then 48611 compile_mode="static" 48612 elif test "$shared_mode_override" = "dso" || \ 48613 test "$SHARED_FRAMEWORK" = "1" || \ 48614 test "$SHARED_COMPONENT" = "1" || \ 48615 test "$DSO_all" = "1"; then 48616 compile_mode="dso" 48617 else 48618 compile_mode="static" 48619 fi 48620 48621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:none compile mode" >&5 48622$as_echo_n "checking for MCA component psec:none compile mode... " >&6; } 48623 if test "$DIRECT_psec" = "none" ; then 48624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 48625$as_echo "$compile_mode - direct" >&6; } 48626 else 48627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 48628$as_echo "$compile_mode" >&6; } 48629 fi 48630 48631 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 48632 48633 if test "$should_build" = "1" ; then 48634 48635 48636 48637 # See if it dropped an output file for us to pick up some 48638 # shell variables in. 48639 infile="$srcdir/src/mca/psec/none/post_configure.sh" 48640 48641 # Add this subdir to the mast list of all MCA component subdirs 48642 all_components="$all_components none" 48643 48644 if test "$compile_mode" = "dso" ; then 48645 dso_components="$dso_components none" 48646 else 48647 if test "psec" = "common"; then 48648 # Static libraries in "common" frameworks are installed, and 48649 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 48650 # set. 48651 static_ltlibs="mca/psec/none/lib${PMIX_LIB_PREFIX}mca_psec_none.la $static_ltlibs" 48652 else 48653 # Other frameworks do not have to obey the 48654 # $FRAMEWORK_LIB_PREFIX prefix. 48655 static_ltlibs="mca/psec/none/libmca_psec_none.la $static_ltlibs" 48656 fi 48657 echo "extern const pmix_mca_base_component_t mca_psec_none_component;" >> $outfile.extern 48658 echo " &mca_psec_none_component, " >> $outfile.struct 48659 static_components="$static_components none" 48660 fi 48661 48662 # Output pretty results 48663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:none can compile" >&5 48664$as_echo_n "checking if MCA component psec:none can compile... " >&6; } 48665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48666$as_echo "yes" >&6; } 48667 48668 if test -f $infile; then 48669 # check for direct call header to include. This will be 48670 # AC_SUBSTed later. 48671 if test "$DIRECT_psec" = "none" ; then 48672 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 48673 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 48674 str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line" 48675 eval $str 48676 else 48677as_fn_error $? "*** psec component none was supposed to be direct-called, but 48678*** does not appear to support direct calling. 48679*** Aborting" "$LINENO" 5 48680 fi 48681 fi 48682 else 48683 # were we supposed to have found something in the 48684 # post_configure.sh, but the file didn't exist? 48685 if test "$DIRECT_psec" = "none" ; then 48686as_fn_error $? "*** psec component none was supposed to be direct-called, but 48687*** does not appear to support direct calling. 48688*** Aborting" "$LINENO" 5 48689 fi 48690 fi 48691 48692 else 48693 48694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:none can compile" >&5 48695$as_echo_n "checking if MCA component psec:none can compile... " >&6; } 48696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48697$as_echo "no" >&6; } 48698 48699 # If this component was requested as the default for this 48700 # type, then abort. 48701 if test "$with_psec" = "none" ; then 48702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5 48703$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} 48704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 48705$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 48706 as_fn_error $? "Cannot continue" "$LINENO" 5 48707 fi 48708 48709 if test ! -z "$DIRECT_psec" ; then 48710 if test "$DIRECT_psec" = "none" ; then 48711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5 48712$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} 48713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 48714$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 48715 as_fn_error $? "Cannot continue" "$LINENO" 5 48716 fi 48717 fi 48718 48719 # add component to all component list 48720 all_components="$all_components none" 48721 fi 48722 48723 # set the AM_CONDITIONAL on how we should build 48724 if test "$compile_mode" = "dso" ; then 48725 BUILD_pmix_psec_none_DSO=1 48726 else 48727 BUILD_pmix_psec_none_DSO=0 48728 fi 48729 if test "$BUILD_pmix_psec_none_DSO" = "1"; then 48730 MCA_BUILD_pmix_psec_none_DSO_TRUE= 48731 MCA_BUILD_pmix_psec_none_DSO_FALSE='#' 48732else 48733 MCA_BUILD_pmix_psec_none_DSO_TRUE='#' 48734 MCA_BUILD_pmix_psec_none_DSO_FALSE= 48735fi 48736 48737 48738 ac_config_files="$ac_config_files src/mca/psec/none/Makefile" 48739 48740 48741 unset compile_mode 48742 48743 48744 # configure components that use built-in configuration scripts 48745 48746 48747 48748 best_mca_component_priority=0 48749 components_looking_for_succeed=1 48750 components_last_result=0 48751 48752 48753 pmix_show_subsubsubtitle "MCA component psec:munge (m4 configuration macro)" 48754 48755 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" 48756 48757 48758 48759 component_path="$srcdir/src/mca/psec/munge" 48760 want_component=0 48761 48762 # build if: 48763 # - the component type is direct and we are that component 48764 # - there is no pmix_ignore file 48765 # - there is an pmix_ignore, but there is an empty pmix_unignore 48766 # - there is an pmix_ignore, but username is in pmix_unignore 48767 if test -d $component_path ; then 48768 # decide if we want the component to be built or not. This 48769 # is spread out because some of the logic is a little complex 48770 # and test's syntax isn't exactly the greatest. We want to 48771 # build the component by default. 48772 want_component=1 48773 if test -f $component_path/.pmix_ignore ; then 48774 # If there is an pmix_ignore file, don't build 48775 # the component. Note that this decision can be 48776 # overridden by the unignore logic below. 48777 want_component=0 48778 fi 48779 if test -f $component_path/.pmix_unignore ; then 48780 # if there is an empty pmix_unignore, that is 48781 # equivalent to having your userid in the unignore file. 48782 # If userid is in the file, unignore the ignore file. 48783 if test ! -s $component_path/.pmix_unignore ; then 48784 want_component=1 48785 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 48786 want_component=1 48787 fi 48788 fi 48789 # if this component type is direct and we are not it, we don't want 48790 # to be built. Otherwise, we do want to be built. 48791 if test ! -z "$DIRECT_psec" ; then 48792 if test "$DIRECT_psec" = "munge" ; then 48793 want_component=1 48794 else 48795 want_component=0 48796 fi 48797 fi 48798 fi 48799 48800 # if we were explicitly disabled, don't build :) 48801 if test "$DISABLE_psec" = "1"; then : 48802 want_component=0 48803fi 48804 if test "$DISABLE_psec_munge" = "1"; then : 48805 want_component=0 48806fi 48807 48808 if test "$want_component" = "1"; then : 48809 should_build=$components_looking_for_succeed 48810else 48811 should_build=0 48812fi 48813 48814 # Allow the component to override the build mode if it really wants to. 48815 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE 48816 48817 SHARED_FRAMEWORK="$DSO_psec" 48818 SHARED_COMPONENT="$DSO_psec_munge" 48819 48820 STATIC_FRAMEWORK="$STATIC_psec" 48821 STATIC_COMPONENT="$STATIC_psec_munge" 48822 48823 shared_mode_override=static 48824 48825 # Setup for either shared or static 48826 if test "$STATIC_FRAMEWORK" = "1" || \ 48827 test "$STATIC_COMPONENT" = "1" || \ 48828 test "$STATIC_all" = "1" ; then 48829 compile_mode="static" 48830 elif test "$shared_mode_override" = "dso" || \ 48831 test "$SHARED_FRAMEWORK" = "1" || \ 48832 test "$SHARED_COMPONENT" = "1" || \ 48833 test "$DSO_all" = "1"; then 48834 compile_mode="dso" 48835 else 48836 compile_mode="static" 48837 fi 48838 48839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:munge compile mode" >&5 48840$as_echo_n "checking for MCA component psec:munge compile mode... " >&6; } 48841 if test "$DIRECT_psec" = "munge" ; then 48842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 48843$as_echo "$compile_mode - direct" >&6; } 48844 else 48845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 48846$as_echo "$compile_mode" >&6; } 48847 fi 48848 48849 48850 # try to configure the component 48851 48852 ac_config_files="$ac_config_files src/mca/psec/munge/Makefile" 48853 48854 48855 48856 48857 # Is the private index set? If not, set it. 48858 if test "x$pmix_scope_index" = "x"; then 48859 pmix_scope_index=1 48860 fi 48861 48862 # First, check to see if any of these variables are already set. 48863 # This is a simple sanity check to ensure we're not already 48864 # overwriting pre-existing variables (that have a non-empty 48865 # value). It's not a perfect check, but at least it's something. 48866 for pmix_var in psec_munge_support psec_munge_dir psec_munge_libdir save_cpp save_ld; do 48867 pmix_str="pmix_str=\"\$$pmix_var\"" 48868 eval $pmix_str 48869 48870 if test "x$pmix_str" != "x"; then 48871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 48872$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 48873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 48874$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 48875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 48876$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 48877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 48878$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 48879 as_fn_error $? "Cannot continue" "$LINENO" 5 48880 fi 48881 done 48882 48883 # Ok, we passed the simple sanity check. Save all these names so 48884 # that we can unset them at the end of the scope. 48885 pmix_str="pmix_scope_$pmix_scope_index=\"psec_munge_support psec_munge_dir psec_munge_libdir save_cpp save_ld\"" 48886 eval $pmix_str 48887 unset pmix_str 48888 48889 env | grep pmix_scope 48890 pmix_scope_index=`expr $pmix_scope_index + 1` 48891 48892 48893 48894# Check whether --with-munge was given. 48895if test "${with_munge+set}" = set; then : 48896 withval=$with_munge; 48897fi 48898 48899 48900 48901# Check whether --with-munge-libdir was given. 48902if test "${with_munge_libdir+set}" = set; then : 48903 withval=$with_munge_libdir; 48904fi 48905 48906 48907 psec_munge_support=0 48908 if test ! -z "$with_munge" && test "$with_munge" != "no"; then 48909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munge in" >&5 48910$as_echo_n "checking for munge in... " >&6; } 48911 if test -n "$with_munge" && test "$with_munge" != "yes"; then 48912 if test -d $with_munge/include/munge; then 48913 psec_munge_dir=$with_munge/include/munge 48914 else 48915 psec_munge_dir=$with_munge 48916 fi 48917 if test -d $with_munge/lib; then 48918 psec_munge_libdir=$with_munge/lib 48919 elif -d $with_munge/lib64; then 48920 psec_munge_libdir=$with_munge/lib64 48921 else 48922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_munge/lib or $with_munge/lib64" >&5 48923$as_echo "Could not find $with_munge/lib or $with_munge/lib64" >&6; } 48924 as_fn_error $? "Can not continue" "$LINENO" 5 48925 fi 48926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $psec_munge_dir and $psec_munge_libdir" >&5 48927$as_echo "$psec_munge_dir and $psec_munge_libdir" >&6; } 48928 else 48929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 48930$as_echo "(default search paths)" >&6; } 48931 psec_munge_dir= 48932 fi 48933 if test -n "$with_munge_libdir" && test "$with_munge_libdir" != "yes"; then : 48934 psec_munge_libdir="$with_munge_libdir" 48935fi 48936 48937 save_cpp=$CPPFLAGS 48938 save_ld=$LDFLAGS 48939 48940 48941 pmix_check_package_psec_munge_save_CPPFLAGS="$CPPFLAGS" 48942 pmix_check_package_psec_munge_save_LDFLAGS="$LDFLAGS" 48943 pmix_check_package_psec_munge_save_LIBS="$LIBS" 48944 48945 pmix_check_package_psec_munge_orig_CPPFLAGS="$psec_munge_CPPFLAGS" 48946 pmix_check_package_psec_munge_orig_LDFLAGS="$psec_munge_LDFLAGS" 48947 pmix_check_package_psec_munge_orig_LIBS="$psec_munge_LIBS" 48948 48949 48950 # This is stolen from autoconf to peek under the covers to get the 48951 # cache variable for the library check. one should not copy this 48952 # code into other places unless you want much pain and suffering 48953 48954 48955 # so this sucks, but there's no way to get through the progression 48956 # of header includes without killing off the cache variable and trying 48957 # again... 48958 unset ac_cv_header_munge_h 48959 pmix_check_package_header_happy="no" 48960 48961 # get rid of the trailing slash(es) 48962 hdir_prefix=$(echo $psec_munge_dir | sed -e 'sX/*$XXg') 48963 48964 if test "$hdir_prefix" = "" || \ 48965 test "$hdir_prefix" = "/usr" || \ 48966 test "$hdir_prefix" = "/usr/local"; then : 48967 # try as is... 48968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5 48969$as_echo "looking for header without includes" >&6; } 48970 for ac_header in munge.h 48971do : 48972 ac_fn_c_check_header_mongrel "$LINENO" "munge.h" "ac_cv_header_munge_h" "$ac_includes_default" 48973if test "x$ac_cv_header_munge_h" = xyes; then : 48974 cat >>confdefs.h <<_ACEOF 48975#define HAVE_MUNGE_H 1 48976_ACEOF 48977 pmix_check_package_header_happy="yes" 48978fi 48979 48980done 48981 48982 if test "$pmix_check_package_header_happy" = "no"; then : 48983 # no go on the as is - reset the cache and try again 48984 unset ac_cv_header_munge_h 48985fi 48986fi 48987 48988 if test "$pmix_check_package_header_happy" = "no"; then : 48989 if test "$hdir_prefix" != ""; then : 48990 psec_munge_CPPFLAGS="$psec_munge_CPPFLAGS -I$hdir_prefix" 48991 CPPFLAGS="$CPPFLAGS -I$hdir_prefix" 48992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5 48993$as_echo "looking for header in $hdir_prefix" >&6; } 48994 for ac_header in munge.h 48995do : 48996 ac_fn_c_check_header_mongrel "$LINENO" "munge.h" "ac_cv_header_munge_h" "$ac_includes_default" 48997if test "x$ac_cv_header_munge_h" = xyes; then : 48998 cat >>confdefs.h <<_ACEOF 48999#define HAVE_MUNGE_H 1 49000_ACEOF 49001 pmix_check_package_header_happy="yes" 49002fi 49003 49004done 49005 49006 if test "$pmix_check_package_header_happy" = "no"; then : 49007 unset ac_cv_header_munge_h 49008 psec_munge_CPPFLAGS="$psec_munge_CPPFLAGS -I$hdir_prefix/include" 49009 CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include" 49010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5 49011$as_echo "looking for header in $hdir_prefix/include" >&6; } 49012 for ac_header in munge.h 49013do : 49014 ac_fn_c_check_header_mongrel "$LINENO" "munge.h" "ac_cv_header_munge_h" "$ac_includes_default" 49015if test "x$ac_cv_header_munge_h" = xyes; then : 49016 cat >>confdefs.h <<_ACEOF 49017#define HAVE_MUNGE_H 1 49018_ACEOF 49019 pmix_check_package_header_happy="yes" 49020fi 49021 49022done 49023 49024fi 49025fi 49026fi 49027 49028 if test "$pmix_check_package_header_happy" = "yes"; then : 49029 49030 # This is stolen from autoconf to peek under the covers to get the 49031 # cache variable for the library check. one should not copy this 49032 # code into other places unless you want much pain and suffering 49033 49034 # see comment above 49035 unset ac_cv_lib_munge_munge_encode 49036 pmix_check_package_lib_happy="no" 49037 49038 # get rid of the trailing slash(es) 49039 libdir_prefix=$(echo $psec_munge_libdir | sed -e 'sX/*$XXg') 49040 49041 if test "$libdir_prefix" != ""; then : 49042 # libdir was specified - search only there 49043 psec_munge_LDFLAGS="$psec_munge_LDFLAGS -L$libdir_prefix" 49044 LDFLAGS="$LDFLAGS -L$libdir_prefix" 49045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5 49046$as_echo_n "checking for library containing munge_encode... " >&6; } 49047if ${ac_cv_search_munge_encode+:} false; then : 49048 $as_echo_n "(cached) " >&6 49049else 49050 ac_func_search_save_LIBS=$LIBS 49051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49052/* end confdefs.h. */ 49053 49054/* Override any GCC internal prototype to avoid an error. 49055 Use char because int might match the return type of a GCC 49056 builtin and then its argument prototype would still apply. */ 49057#ifdef __cplusplus 49058extern "C" 49059#endif 49060char munge_encode (); 49061int 49062main () 49063{ 49064return munge_encode (); 49065 ; 49066 return 0; 49067} 49068_ACEOF 49069for ac_lib in '' munge; do 49070 if test -z "$ac_lib"; then 49071 ac_res="none required" 49072 else 49073 ac_res=-l$ac_lib 49074 LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS" 49075 fi 49076 if ac_fn_c_try_link "$LINENO"; then : 49077 ac_cv_search_munge_encode=$ac_res 49078fi 49079rm -f core conftest.err conftest.$ac_objext \ 49080 conftest$ac_exeext 49081 if ${ac_cv_search_munge_encode+:} false; then : 49082 break 49083fi 49084done 49085if ${ac_cv_search_munge_encode+:} false; then : 49086 49087else 49088 ac_cv_search_munge_encode=no 49089fi 49090rm conftest.$ac_ext 49091LIBS=$ac_func_search_save_LIBS 49092fi 49093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5 49094$as_echo "$ac_cv_search_munge_encode" >&6; } 49095ac_res=$ac_cv_search_munge_encode 49096if test "$ac_res" != no; then : 49097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 49098 pmix_check_package_lib_happy="yes" 49099else 49100 pmix_check_package_lib_happy="no" 49101fi 49102 49103 if test "$pmix_check_package_lib_happy" = "no"; then : 49104 LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS" 49105 psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS" 49106 unset ac_cv_lib_munge_munge_encode 49107fi 49108else 49109 # libdir was not specified - go through search path 49110 # get rid of the trailing slash(es) 49111 libdir_prefix=$(echo $psec_munge_dir | sed -e 'sX/*$XXg') 49112 49113 # first try standard locations as otherwise our 49114 # searches with libdir_prefix locations might come 49115 # back positive and unnecessarily add an LDFLAG 49116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5 49117$as_echo "looking for library without search path" >&6; } 49118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5 49119$as_echo_n "checking for library containing munge_encode... " >&6; } 49120if ${ac_cv_search_munge_encode+:} false; then : 49121 $as_echo_n "(cached) " >&6 49122else 49123 ac_func_search_save_LIBS=$LIBS 49124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49125/* end confdefs.h. */ 49126 49127/* Override any GCC internal prototype to avoid an error. 49128 Use char because int might match the return type of a GCC 49129 builtin and then its argument prototype would still apply. */ 49130#ifdef __cplusplus 49131extern "C" 49132#endif 49133char munge_encode (); 49134int 49135main () 49136{ 49137return munge_encode (); 49138 ; 49139 return 0; 49140} 49141_ACEOF 49142for ac_lib in '' munge; do 49143 if test -z "$ac_lib"; then 49144 ac_res="none required" 49145 else 49146 ac_res=-l$ac_lib 49147 LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS" 49148 fi 49149 if ac_fn_c_try_link "$LINENO"; then : 49150 ac_cv_search_munge_encode=$ac_res 49151fi 49152rm -f core conftest.err conftest.$ac_objext \ 49153 conftest$ac_exeext 49154 if ${ac_cv_search_munge_encode+:} false; then : 49155 break 49156fi 49157done 49158if ${ac_cv_search_munge_encode+:} false; then : 49159 49160else 49161 ac_cv_search_munge_encode=no 49162fi 49163rm conftest.$ac_ext 49164LIBS=$ac_func_search_save_LIBS 49165fi 49166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5 49167$as_echo "$ac_cv_search_munge_encode" >&6; } 49168ac_res=$ac_cv_search_munge_encode 49169if test "$ac_res" != no; then : 49170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 49171 pmix_check_package_lib_happy="yes" 49172else 49173 pmix_check_package_lib_happy="no" 49174fi 49175 49176 if test "$pmix_check_package_lib_happy" = "no"; then : 49177 # no go on the as is.. see what happens later... 49178 LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS" 49179 psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS" 49180 unset ac_cv_lib_munge_munge_encode 49181fi 49182 49183 if test "$pmix_check_package_lib_happy" = "no"; then : 49184 # if we didn't find it, check the libdir_prefix/lib64 directory 49185 if test "$libdir_prefix" != "" && \ 49186 test "$libdir_prefix" != "/usr" && \ 49187 test "$libdir_prefix" != "/usr/local"; then : 49188 psec_munge_LDFLAGS="$psec_munge_LDFLAGS -L$libdir_prefix/lib64" 49189 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64" 49190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5 49191$as_echo "looking for library in $libdir_prefix/lib64" >&6; } 49192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5 49193$as_echo_n "checking for library containing munge_encode... " >&6; } 49194if ${ac_cv_search_munge_encode+:} false; then : 49195 $as_echo_n "(cached) " >&6 49196else 49197 ac_func_search_save_LIBS=$LIBS 49198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49199/* end confdefs.h. */ 49200 49201/* Override any GCC internal prototype to avoid an error. 49202 Use char because int might match the return type of a GCC 49203 builtin and then its argument prototype would still apply. */ 49204#ifdef __cplusplus 49205extern "C" 49206#endif 49207char munge_encode (); 49208int 49209main () 49210{ 49211return munge_encode (); 49212 ; 49213 return 0; 49214} 49215_ACEOF 49216for ac_lib in '' munge; do 49217 if test -z "$ac_lib"; then 49218 ac_res="none required" 49219 else 49220 ac_res=-l$ac_lib 49221 LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS" 49222 fi 49223 if ac_fn_c_try_link "$LINENO"; then : 49224 ac_cv_search_munge_encode=$ac_res 49225fi 49226rm -f core conftest.err conftest.$ac_objext \ 49227 conftest$ac_exeext 49228 if ${ac_cv_search_munge_encode+:} false; then : 49229 break 49230fi 49231done 49232if ${ac_cv_search_munge_encode+:} false; then : 49233 49234else 49235 ac_cv_search_munge_encode=no 49236fi 49237rm conftest.$ac_ext 49238LIBS=$ac_func_search_save_LIBS 49239fi 49240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5 49241$as_echo "$ac_cv_search_munge_encode" >&6; } 49242ac_res=$ac_cv_search_munge_encode 49243if test "$ac_res" != no; then : 49244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 49245 pmix_check_package_lib_happy="yes" 49246else 49247 pmix_check_package_lib_happy="no" 49248fi 49249 49250 if test "$pmix_check_package_lib_happy" = "no"; then : 49251 # no go on the as is.. see what happens later... 49252 LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS" 49253 psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS" 49254 unset ac_cv_lib_munge_munge_encode 49255fi 49256fi 49257fi 49258 49259 if test "$pmix_check_package_lib_happy" = "no"; then : 49260 # if we still haven't found it, check the libdir_prefix/lib directory 49261 if test "$libdir_prefix" != "" && \ 49262 test "$libdir_prefix" != "/usr" && \ 49263 test "$libdir_prefix" != "/usr/local"; then : 49264 psec_munge_LDFLAGS="$psec_munge_LDFLAGS -L$libdir_prefix/lib" 49265 LDFLAGS="$LDFLAGS -L$libdir_prefix/lib" 49266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5 49267$as_echo "looking for library in $libdir_prefix/lib" >&6; } 49268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5 49269$as_echo_n "checking for library containing munge_encode... " >&6; } 49270if ${ac_cv_search_munge_encode+:} false; then : 49271 $as_echo_n "(cached) " >&6 49272else 49273 ac_func_search_save_LIBS=$LIBS 49274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49275/* end confdefs.h. */ 49276 49277/* Override any GCC internal prototype to avoid an error. 49278 Use char because int might match the return type of a GCC 49279 builtin and then its argument prototype would still apply. */ 49280#ifdef __cplusplus 49281extern "C" 49282#endif 49283char munge_encode (); 49284int 49285main () 49286{ 49287return munge_encode (); 49288 ; 49289 return 0; 49290} 49291_ACEOF 49292for ac_lib in '' munge; do 49293 if test -z "$ac_lib"; then 49294 ac_res="none required" 49295 else 49296 ac_res=-l$ac_lib 49297 LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS" 49298 fi 49299 if ac_fn_c_try_link "$LINENO"; then : 49300 ac_cv_search_munge_encode=$ac_res 49301fi 49302rm -f core conftest.err conftest.$ac_objext \ 49303 conftest$ac_exeext 49304 if ${ac_cv_search_munge_encode+:} false; then : 49305 break 49306fi 49307done 49308if ${ac_cv_search_munge_encode+:} false; then : 49309 49310else 49311 ac_cv_search_munge_encode=no 49312fi 49313rm conftest.$ac_ext 49314LIBS=$ac_func_search_save_LIBS 49315fi 49316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5 49317$as_echo "$ac_cv_search_munge_encode" >&6; } 49318ac_res=$ac_cv_search_munge_encode 49319if test "$ac_res" != no; then : 49320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 49321 pmix_check_package_lib_happy="yes" 49322else 49323 pmix_check_package_lib_happy="no" 49324fi 49325 49326 if test "$pmix_check_package_lib_happy" = "no"; then : 49327 # no go on the as is.. see what happens later... 49328 LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS" 49329 psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS" 49330 unset ac_cv_lib_munge_munge_encode 49331fi 49332fi 49333fi 49334 49335fi 49336 49337 49338 if test "$pmix_check_package_lib_happy" = "yes"; then : 49339 psec_munge_LIBS="-lmunge -lmunge" 49340 pmix_check_package_happy="yes" 49341else 49342 pmix_check_package_happy="no" 49343fi 49344 if test "$pmix_check_package_lib_happy" = "yes"; then : 49345 # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function] 49346 if test "$ac_cv_search_munge_encode" != "no" && 49347 test "$ac_cv_search_munge_encode" != "none required"; then : 49348 psec_munge_LIBS="$ac_cv_search_munge_encode -lmunge" 49349else 49350 psec_munge_LIBS="-lmunge" 49351fi 49352 pmix_check_package_happy="yes" 49353else 49354 pmix_check_package_happy="no" 49355fi 49356 49357 49358else 49359 pmix_check_package_happy="no" 49360fi 49361 49362 unset pmix_check_package_header_happy 49363 49364 49365 49366 if test "$pmix_check_package_happy" = "yes"; then : 49367 psec_munge_support=1 49368else 49369 psec_munge_CPPFLAGS="$pmix_check_package_psec_munge_orig_CPPFLAGS" 49370 psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS" 49371 psec_munge_LIBS="$pmix_check_package_psec_munge_orig_LIBS" 49372 psec_munge_support=0 49373fi 49374 49375 CPPFLAGS="$pmix_check_package_psec_munge_save_CPPFLAGS" 49376 LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS" 49377 LIBS="$pmix_check_package_psec_munge_save_LIBS" 49378 49379 49380 CPPFLAGS=$save_cpp 49381 LDFLAGS=$save_ld 49382 fi 49383 49384 if test -n "$with_munge" && test "$with_munge" != "no" && test "$psec_munge_support" != "1"; then 49385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MUNGE SUPPORT REQUESTED AND NOT FOUND." >&5 49386$as_echo "$as_me: WARNING: MUNGE SUPPORT REQUESTED AND NOT FOUND." >&2;} 49387 as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5 49388 fi 49389 49390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking will munge support be built" >&5 49391$as_echo_n "checking will munge support be built... " >&6; } 49392 if test "$psec_munge_support" != "1"; then : 49393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49394$as_echo "no" >&6; } 49395 should_build=0 49396else 49397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49398$as_echo "yes" >&6; } 49399 should_build=$should_build 49400fi 49401 49402 # set build flags to use in makefile 49403 49404 49405 49406 49407 49408 # Unwind the index 49409 pmix_scope_index=`expr $pmix_scope_index - 1` 49410 pmix_scope_test=`expr $pmix_scope_index \> 0` 49411 if test "$pmix_scope_test" = "0"; then 49412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 49413$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 49414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 49415$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 49416 as_fn_error $? "Cannot continue" "$LINENO" 5 49417 fi 49418 49419 # Get the variable names from that index 49420 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 49421 eval $pmix_str 49422 49423 # Iterate over all the variables and unset them all 49424 for pmix_var in $pmix_str; do 49425 unset $pmix_var 49426 done 49427 49428 49429 pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" 49430 49431 if test "$should_build" = "1"; then : 49432 49433 49434 49435 # See if it dropped an output file for us to pick up some 49436 # shell variables in. 49437 infile="$srcdir/src/mca/psec/munge/post_configure.sh" 49438 49439 # Add this subdir to the mast list of all MCA component subdirs 49440 all_components="$all_components munge" 49441 49442 if test "$compile_mode" = "dso" ; then 49443 dso_components="$dso_components munge" 49444 else 49445 if test "psec" = "common"; then 49446 # Static libraries in "common" frameworks are installed, and 49447 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 49448 # set. 49449 static_ltlibs="mca/psec/munge/lib${PMIX_LIB_PREFIX}mca_psec_munge.la $static_ltlibs" 49450 else 49451 # Other frameworks do not have to obey the 49452 # $FRAMEWORK_LIB_PREFIX prefix. 49453 static_ltlibs="mca/psec/munge/libmca_psec_munge.la $static_ltlibs" 49454 fi 49455 echo "extern const pmix_mca_base_component_t mca_psec_munge_component;" >> $outfile.extern 49456 echo " &mca_psec_munge_component, " >> $outfile.struct 49457 static_components="$static_components munge" 49458 fi 49459 49460 # Output pretty results 49461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:munge can compile" >&5 49462$as_echo_n "checking if MCA component psec:munge can compile... " >&6; } 49463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49464$as_echo "yes" >&6; } 49465 49466 if test -f $infile; then 49467 # check for direct call header to include. This will be 49468 # AC_SUBSTed later. 49469 if test "$DIRECT_psec" = "munge" ; then 49470 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 49471 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 49472 str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line" 49473 eval $str 49474 else 49475as_fn_error $? "*** psec component munge was supposed to be direct-called, but 49476*** does not appear to support direct calling. 49477*** Aborting" "$LINENO" 5 49478 fi 49479 fi 49480 else 49481 # were we supposed to have found something in the 49482 # post_configure.sh, but the file didn't exist? 49483 if test "$DIRECT_psec" = "munge" ; then 49484as_fn_error $? "*** psec component munge was supposed to be direct-called, but 49485*** does not appear to support direct calling. 49486*** Aborting" "$LINENO" 5 49487 fi 49488 fi 49489 49490else 49491 49492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:munge can compile" >&5 49493$as_echo_n "checking if MCA component psec:munge can compile... " >&6; } 49494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49495$as_echo "no" >&6; } 49496 49497 # If this component was requested as the default for this 49498 # type, then abort. 49499 if test "$with_psec" = "munge" ; then 49500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"munge\" failed to configure properly" >&5 49501$as_echo "$as_me: WARNING: MCA component \"munge\" failed to configure properly" >&2;} 49502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 49503$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 49504 as_fn_error $? "Cannot continue" "$LINENO" 5 49505 fi 49506 49507 if test ! -z "$DIRECT_psec" ; then 49508 if test "$DIRECT_psec" = "munge" ; then 49509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"munge\" failed to configure properly" >&5 49510$as_echo "$as_me: WARNING: MCA component \"munge\" failed to configure properly" >&2;} 49511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 49512$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 49513 as_fn_error $? "Cannot continue" "$LINENO" 5 49514 fi 49515 fi 49516 49517 # add component to all component list 49518 all_components="$all_components munge" 49519fi 49520 49521 49522 49523 # set the AM_CONDITIONAL on how we should build 49524 if test "$compile_mode" = "dso"; then : 49525 BUILD_pmix_psec_munge_DSO=1 49526else 49527 BUILD_pmix_psec_munge_DSO=0 49528fi 49529 if test "$BUILD_pmix_psec_munge_DSO" = "1"; then 49530 MCA_BUILD_pmix_psec_munge_DSO_TRUE= 49531 MCA_BUILD_pmix_psec_munge_DSO_FALSE='#' 49532else 49533 MCA_BUILD_pmix_psec_munge_DSO_TRUE='#' 49534 MCA_BUILD_pmix_psec_munge_DSO_FALSE= 49535fi 49536 49537 49538 if test "$should_build" = "1"; then : 49539 components_last_result=1 49540else 49541 components_last_result=0 49542fi 49543 49544 unset compile_mode 49545 49546 49547 49548 49549 49550 # configure components that provide their own configure script. 49551 # It would be really hard to run these for "find first that 49552 # works", so we don't :) 49553 49554 49555 49556 if test "1" != "0"; then : 49557 49558 for component_path in $srcdir/src/mca/psec/* ; do 49559 component="`basename $component_path`" 49560 if test -d $component_path && test -x $component_path/configure ; then 49561 pmix_show_subsubsubtitle "MCA component psec:$component (need to configure)" 49562 49563 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 49564 49565 49566 49567 component_path="$srcdir/src/mca/psec/$component" 49568 want_component=0 49569 49570 # build if: 49571 # - the component type is direct and we are that component 49572 # - there is no pmix_ignore file 49573 # - there is an pmix_ignore, but there is an empty pmix_unignore 49574 # - there is an pmix_ignore, but username is in pmix_unignore 49575 if test -d $component_path ; then 49576 # decide if we want the component to be built or not. This 49577 # is spread out because some of the logic is a little complex 49578 # and test's syntax isn't exactly the greatest. We want to 49579 # build the component by default. 49580 want_component=1 49581 if test -f $component_path/.pmix_ignore ; then 49582 # If there is an pmix_ignore file, don't build 49583 # the component. Note that this decision can be 49584 # overridden by the unignore logic below. 49585 want_component=0 49586 fi 49587 if test -f $component_path/.pmix_unignore ; then 49588 # if there is an empty pmix_unignore, that is 49589 # equivalent to having your userid in the unignore file. 49590 # If userid is in the file, unignore the ignore file. 49591 if test ! -s $component_path/.pmix_unignore ; then 49592 want_component=1 49593 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 49594 want_component=1 49595 fi 49596 fi 49597 # if this component type is direct and we are not it, we don't want 49598 # to be built. Otherwise, we do want to be built. 49599 if test ! -z "$DIRECT_psec" ; then 49600 if test "$DIRECT_psec" = "$component" ; then 49601 want_component=1 49602 else 49603 want_component=0 49604 fi 49605 fi 49606 fi 49607 49608 # if we were explicitly disabled, don't build :) 49609 if test "$DISABLE_psec" = "1"; then : 49610 want_component=0 49611fi 49612 str="DISABLED_COMPONENT_CHECK=\$DISABLE_psec_$component" 49613 eval $str 49614 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 49615 want_component=0 49616 fi 49617 49618 if test "$want_component" = "1"; then : 49619 should_build=1 49620else 49621 should_build=0 49622fi 49623 49624 49625 SHARED_FRAMEWORK="$DSO_psec" 49626 str="SHARED_COMPONENT=\$DSO_psec_$component" 49627 eval $str 49628 49629 STATIC_FRAMEWORK="$STATIC_psec" 49630 str="STATIC_COMPONENT=\$STATIC_psec_$component" 49631 eval $str 49632 49633 shared_mode_override=static 49634 49635 # Setup for either shared or static 49636 if test "$STATIC_FRAMEWORK" = "1" || \ 49637 test "$STATIC_COMPONENT" = "1" || \ 49638 test "$STATIC_all" = "1" ; then 49639 compile_mode="static" 49640 elif test "$shared_mode_override" = "dso" || \ 49641 test "$SHARED_FRAMEWORK" = "1" || \ 49642 test "$SHARED_COMPONENT" = "1" || \ 49643 test "$DSO_all" = "1"; then 49644 compile_mode="dso" 49645 else 49646 compile_mode="static" 49647 fi 49648 49649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:$component compile mode" >&5 49650$as_echo_n "checking for MCA component psec:$component compile mode... " >&6; } 49651 if test "$DIRECT_psec" = "$component" ; then 49652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 49653$as_echo "$compile_mode - direct" >&6; } 49654 else 49655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 49656$as_echo "$compile_mode" >&6; } 49657 fi 49658 49659 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 49660 49661 if test "$should_build" = "1" ; then 49662 49663 49664 49665 # Is the private index set? If not, set it. 49666 if test "x$pmix_scope_index" = "x"; then 49667 pmix_scope_index=1 49668 fi 49669 49670 # First, check to see if any of these variables are already set. 49671 # This is a simple sanity check to ensure we're not already 49672 # overwriting pre-existing variables (that have a non-empty 49673 # value). It's not a perfect check, but at least it's something. 49674 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 49675 pmix_str="pmix_str=\"\$$pmix_var\"" 49676 eval $pmix_str 49677 49678 if test "x$pmix_str" != "x"; then 49679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 49680$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 49681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 49682$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 49683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 49684$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 49685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 49686$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 49687 as_fn_error $? "Cannot continue" "$LINENO" 5 49688 fi 49689 done 49690 49691 # Ok, we passed the simple sanity check. Save all these names so 49692 # that we can unset them at the end of the scope. 49693 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 49694 eval $pmix_str 49695 unset pmix_str 49696 49697 env | grep pmix_scope 49698 pmix_scope_index=`expr $pmix_scope_index + 1` 49699 49700 49701# 49702# Invoke configure in a specific subdirectory. 49703# 49704# src/mca/psec/$component is the directory to invoke in 49705# $pmix_subdir_args is the list of arguments to pass 49706# should_build=1 is actions to execute upon success 49707# should_build=0 is actions to execute upon failure 49708# 49709subdir_dir="src/mca/psec/$component" 49710subdir_args="$pmix_subdir_args" 49711subdir_success="should_build=1" 49712subdir_failure="should_build=0" 49713 49714# 49715# Sanity checks 49716# 49717 49718if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 49719 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 49720$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 49721 49722 # 49723 # Gotta check where srcdir is for VPATH builds. If srcdir is not 49724 # ., then we need to mkdir the subdir. Otherwise, we can just cd 49725 # into it. 49726 # 49727 49728 case $srcdir in 49729 .) 49730 ;; 49731 *) 49732 { case $subdir_dir in 49733 [\\/]* | ?:[\\/]* ) total_dir=;; 49734 *) total_dir=.;; 49735 esac 49736 temp=$subdir_dir 49737 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 49738 case $dir_part in 49739 # Skip DOS drivespec 49740 ?:) total_dir=$dir_part ;; 49741 *) total_dir=$total_dir/$dir_part 49742 test -d "$total_dir" || 49743 mkdir "$total_dir" || 49744 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 49745 ;; 49746 esac 49747 done; } 49748 49749 if test -d ./$subdir_dir; then :; 49750 else 49751 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 49752 fi 49753 ;; 49754 esac 49755 49756 # 49757 # Move into the target directory 49758 # 49759 49760 subdir_parent=`pwd` 49761 cd $subdir_dir 49762 49763 # 49764 # Make a "../" for each directory in $subdir_dir. 49765 # 49766 49767 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 49768 # 49769 # Construct the --srcdir argument 49770 # 49771 49772 case $srcdir in 49773 .) 49774 # In place 49775 subdir_srcdir="$srcdir" 49776 ;; 49777 [\\/]* | ?:[\\/]* ) 49778 # Absolute path 49779 subdir_srcdir="$srcdir/$subdir_dir" 49780 ;; 49781 *) 49782 # Relative path 49783 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 49784 ;; 49785 esac 49786 49787 # 49788 # Construct the --cache-file argument 49789 # 49790 49791 # BWB - subdir caching is a pain since we change CFLAGS and all that. 49792 # Just disable it for now 49793 subdir_cache_file="/dev/null" 49794 49795 # 49796 # Invoke the configure script in the subdirectory 49797 # 49798 49799 sub_configure="$SHELL '$subdir_srcdir/configure'" 49800 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 49801$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 49802 eval "$sub_configure $subdir_args \ 49803 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 49804 if test "$?" = "0"; then 49805 eval $subdir_success 49806 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 49807$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 49808 else 49809 eval $subdir_failure 49810 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 49811$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 49812 fi 49813 49814 # 49815 # Go back to the topdir 49816 # 49817 49818 cd $subdir_parent 49819fi 49820 49821# 49822# Clean up 49823# 49824 49825 49826 # Unwind the index 49827 pmix_scope_index=`expr $pmix_scope_index - 1` 49828 pmix_scope_test=`expr $pmix_scope_index \> 0` 49829 if test "$pmix_scope_test" = "0"; then 49830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 49831$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 49832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 49833$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 49834 as_fn_error $? "Cannot continue" "$LINENO" 5 49835 fi 49836 49837 # Get the variable names from that index 49838 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 49839 eval $pmix_str 49840 49841 # Iterate over all the variables and unset them all 49842 for pmix_var in $pmix_str; do 49843 unset $pmix_var 49844 done 49845 49846 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 49847 fi 49848 49849 if test "$should_build" = "1" ; then 49850 # do some extra work to pass flags back from the 49851 # top-level configure, the way a configure.m4 49852 # component would. 49853 infile="$srcdir/src/mca/psec/all_components/post_configure.sh" 49854 if test -f $infile; then 49855 49856 # First check for the ABORT tag 49857 line="`$GREP ABORT= $infile | cut -d= -f2-`" 49858 if test -n "$line" && test "$line" != "no"; then 49859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 49860$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 49861 as_fn_error $? "cannot continue" "$LINENO" 5 49862 fi 49863 fi 49864 49865 49866 49867 49868 # See if it dropped an output file for us to pick up some 49869 # shell variables in. 49870 infile="$srcdir/src/mca/psec/$component/post_configure.sh" 49871 49872 # Add this subdir to the mast list of all MCA component subdirs 49873 all_components="$all_components $component" 49874 49875 if test "$compile_mode" = "dso" ; then 49876 dso_components="$dso_components $component" 49877 else 49878 if test "psec" = "common"; then 49879 # Static libraries in "common" frameworks are installed, and 49880 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 49881 # set. 49882 static_ltlibs="mca/psec/$component/lib${PMIX_LIB_PREFIX}mca_psec_$component.la $static_ltlibs" 49883 else 49884 # Other frameworks do not have to obey the 49885 # $FRAMEWORK_LIB_PREFIX prefix. 49886 static_ltlibs="mca/psec/$component/libmca_psec_$component.la $static_ltlibs" 49887 fi 49888 echo "extern const pmix_mca_base_component_t mca_psec_$component_component;" >> $outfile.extern 49889 echo " &mca_psec_$component_component, " >> $outfile.struct 49890 static_components="$static_components $component" 49891 fi 49892 49893 # Output pretty results 49894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:$component can compile" >&5 49895$as_echo_n "checking if MCA component psec:$component can compile... " >&6; } 49896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49897$as_echo "yes" >&6; } 49898 49899 if test -f $infile; then 49900 # check for direct call header to include. This will be 49901 # AC_SUBSTed later. 49902 if test "$DIRECT_psec" = "$component" ; then 49903 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 49904 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 49905 str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line" 49906 eval $str 49907 else 49908as_fn_error $? "*** psec component $component was supposed to be direct-called, but 49909*** does not appear to support direct calling. 49910*** Aborting" "$LINENO" 5 49911 fi 49912 fi 49913 else 49914 # were we supposed to have found something in the 49915 # post_configure.sh, but the file didn't exist? 49916 if test "$DIRECT_psec" = "$component" ; then 49917as_fn_error $? "*** psec component $component was supposed to be direct-called, but 49918*** does not appear to support direct calling. 49919*** Aborting" "$LINENO" 5 49920 fi 49921 fi 49922 49923 else 49924 49925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:$component can compile" >&5 49926$as_echo_n "checking if MCA component psec:$component can compile... " >&6; } 49927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49928$as_echo "no" >&6; } 49929 49930 # If this component was requested as the default for this 49931 # type, then abort. 49932 if test "$with_psec" = "$component" ; then 49933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 49934$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 49935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 49936$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 49937 as_fn_error $? "Cannot continue" "$LINENO" 5 49938 fi 49939 49940 if test ! -z "$DIRECT_psec" ; then 49941 if test "$DIRECT_psec" = "$component" ; then 49942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 49943$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 49944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 49945$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 49946 as_fn_error $? "Cannot continue" "$LINENO" 5 49947 fi 49948 fi 49949 49950 fi 49951 fi 49952 done 49953 49954fi 49955 49956 MCA_pmix_psec_ALL_COMPONENTS="$all_components" 49957 MCA_pmix_psec_STATIC_COMPONENTS="$static_components" 49958 MCA_pmix_psec_DSO_COMPONENTS="$dso_components" 49959 MCA_pmix_psec_STATIC_LTLIBS="$static_ltlibs" 49960 49961 49962 49963 49964 49965 49966 49967 MCA_pmix_psec_ALL_SUBDIRS= 49968 for item in $all_components ; do 49969 MCA_pmix_psec_ALL_SUBDIRS="$MCA_pmix_psec_ALL_SUBDIRS mca/psec/$item" 49970 done 49971 49972 49973 49974 MCA_pmix_psec_STATIC_SUBDIRS= 49975 for item in $static_components ; do 49976 MCA_pmix_psec_STATIC_SUBDIRS="$MCA_pmix_psec_STATIC_SUBDIRS mca/psec/$item" 49977 done 49978 49979 49980 49981 MCA_pmix_psec_DSO_SUBDIRS= 49982 for item in $dso_components ; do 49983 MCA_pmix_psec_DSO_SUBDIRS="$MCA_pmix_psec_DSO_SUBDIRS mca/psec/$item" 49984 done 49985 49986 49987 49988 # Create the final .h file that will be included in the type's 49989 # top-level glue. This lists all the static components. We don't 49990 # need to do this for "common". 49991 if test "psec" != "common"; then 49992 cat > $outfile <<EOF 49993/* 49994 * \$HEADER\$ 49995 */ 49996#if defined(c_plusplus) || defined(__cplusplus) 49997extern "C" { 49998#endif 49999 50000`cat $outfile.extern` 50001 50002const pmix_mca_base_component_t *mca_psec_base_static_components[] = { 50003`cat $outfile.struct` 50004 NULL 50005}; 50006 50007#if defined(c_plusplus) || defined(__cplusplus) 50008} 50009#endif 50010 50011EOF 50012 # Only replace the header file if a) it doesn't previously 50013 # exist, or b) the contents are different. Do this to not 50014 # trigger recompilation of certain .c files just because the 50015 # timestamp changed on $outfile_real (similar to the way AC 50016 # handles AC_CONFIG_HEADER files). 50017 diff $outfile $outfile_real > /dev/null 2>&1 50018 if test "$?" != "0"; then 50019 mv $outfile $outfile_real 50020 else 50021 rm -f $outfile 50022 fi 50023 fi 50024 rm -f $outfile.struct $outfile.extern 50025 50026 unset all_components static_components dso_components outfile outfile_real 50027 50028 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS psensor" 50029 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/psensor" 50030 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_psensor_ALL_SUBDIRS)" 50031 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_psensor_DSO_SUBDIRS)" 50032 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_psensor_STATIC_SUBDIRS)" 50033 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/psensor/libmca_psensor.la" 50034 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_psensor_STATIC_LTLIBS)" 50035 50036 pmix_show_subsubtitle "Configuring MCA framework psensor" 50037 50038 50039 50040 50041 # setup for framework 50042 all_components= 50043 static_components= 50044 dso_components= 50045 static_ltlibs= 50046 50047 # Ensure that the directory where the #include file is to live 50048 # exists. Need to do this for VPATH builds, because the directory 50049 # may not exist yet. For the "common" type, it's not really a 50050 # component, so it doesn't have a base. 50051 outdir=src/mca/psensor/base 50052 as_dir=$outdir; as_fn_mkdir_p 50053 50054 # emit Makefile rule 50055 ac_config_files="$ac_config_files src/mca/psensor/Makefile" 50056 50057 50058 # remove any previously generated #include files 50059 outfile_real=$outdir/static-components.h 50060 outfile=$outfile_real.new 50061 rm -f $outfile $outfile.struct $outfile.extern 50062 touch $outfile.struct $outfile.extern 50063 50064 # print some nice messages about what we're about to do... 50065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework psensor" >&5 50066$as_echo_n "checking for no configure components in framework psensor... " >&6; } 50067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file, heartbeat" >&5 50068$as_echo "file, heartbeat" >&6; } 50069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework psensor" >&5 50070$as_echo_n "checking for m4 configure components in framework psensor... " >&6; } 50071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 50072$as_echo "" >&6; } 50073 50074 # If there are components in the no configure list, but we're 50075 # doing one of the "special" selection logics, abort with a 50076 # reasonable message. 50077 50078 50079 50080 # run the configure logic for the no-config components 50081 50082 pmix_show_subsubsubtitle "MCA component psensor:file (no configuration)" 50083 50084 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 50085 50086 50087 50088 component_path="$srcdir/src/mca/psensor/file" 50089 want_component=0 50090 50091 # build if: 50092 # - the component type is direct and we are that component 50093 # - there is no pmix_ignore file 50094 # - there is an pmix_ignore, but there is an empty pmix_unignore 50095 # - there is an pmix_ignore, but username is in pmix_unignore 50096 if test -d $component_path ; then 50097 # decide if we want the component to be built or not. This 50098 # is spread out because some of the logic is a little complex 50099 # and test's syntax isn't exactly the greatest. We want to 50100 # build the component by default. 50101 want_component=1 50102 if test -f $component_path/.pmix_ignore ; then 50103 # If there is an pmix_ignore file, don't build 50104 # the component. Note that this decision can be 50105 # overridden by the unignore logic below. 50106 want_component=0 50107 fi 50108 if test -f $component_path/.pmix_unignore ; then 50109 # if there is an empty pmix_unignore, that is 50110 # equivalent to having your userid in the unignore file. 50111 # If userid is in the file, unignore the ignore file. 50112 if test ! -s $component_path/.pmix_unignore ; then 50113 want_component=1 50114 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 50115 want_component=1 50116 fi 50117 fi 50118 # if this component type is direct and we are not it, we don't want 50119 # to be built. Otherwise, we do want to be built. 50120 if test ! -z "$DIRECT_psensor" ; then 50121 if test "$DIRECT_psensor" = "file" ; then 50122 want_component=1 50123 else 50124 want_component=0 50125 fi 50126 fi 50127 fi 50128 50129 # if we were explicitly disabled, don't build :) 50130 if test "$DISABLE_psensor" = "1"; then : 50131 want_component=0 50132fi 50133 if test "$DISABLE_psensor_file" = "1"; then : 50134 want_component=0 50135fi 50136 50137 if test "$want_component" = "1"; then : 50138 should_build=1 50139else 50140 should_build=0 50141fi 50142 50143 50144 SHARED_FRAMEWORK="$DSO_psensor" 50145 SHARED_COMPONENT="$DSO_psensor_file" 50146 50147 STATIC_FRAMEWORK="$STATIC_psensor" 50148 STATIC_COMPONENT="$STATIC_psensor_file" 50149 50150 shared_mode_override=static 50151 50152 # Setup for either shared or static 50153 if test "$STATIC_FRAMEWORK" = "1" || \ 50154 test "$STATIC_COMPONENT" = "1" || \ 50155 test "$STATIC_all" = "1" ; then 50156 compile_mode="static" 50157 elif test "$shared_mode_override" = "dso" || \ 50158 test "$SHARED_FRAMEWORK" = "1" || \ 50159 test "$SHARED_COMPONENT" = "1" || \ 50160 test "$DSO_all" = "1"; then 50161 compile_mode="dso" 50162 else 50163 compile_mode="static" 50164 fi 50165 50166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psensor:file compile mode" >&5 50167$as_echo_n "checking for MCA component psensor:file compile mode... " >&6; } 50168 if test "$DIRECT_psensor" = "file" ; then 50169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 50170$as_echo "$compile_mode - direct" >&6; } 50171 else 50172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 50173$as_echo "$compile_mode" >&6; } 50174 fi 50175 50176 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 50177 50178 if test "$should_build" = "1" ; then 50179 50180 50181 50182 # See if it dropped an output file for us to pick up some 50183 # shell variables in. 50184 infile="$srcdir/src/mca/psensor/file/post_configure.sh" 50185 50186 # Add this subdir to the mast list of all MCA component subdirs 50187 all_components="$all_components file" 50188 50189 if test "$compile_mode" = "dso" ; then 50190 dso_components="$dso_components file" 50191 else 50192 if test "psensor" = "common"; then 50193 # Static libraries in "common" frameworks are installed, and 50194 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 50195 # set. 50196 static_ltlibs="mca/psensor/file/lib${PMIX_LIB_PREFIX}mca_psensor_file.la $static_ltlibs" 50197 else 50198 # Other frameworks do not have to obey the 50199 # $FRAMEWORK_LIB_PREFIX prefix. 50200 static_ltlibs="mca/psensor/file/libmca_psensor_file.la $static_ltlibs" 50201 fi 50202 echo "extern const pmix_mca_base_component_t mca_psensor_file_component;" >> $outfile.extern 50203 echo " &mca_psensor_file_component, " >> $outfile.struct 50204 static_components="$static_components file" 50205 fi 50206 50207 # Output pretty results 50208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:file can compile" >&5 50209$as_echo_n "checking if MCA component psensor:file can compile... " >&6; } 50210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50211$as_echo "yes" >&6; } 50212 50213 if test -f $infile; then 50214 # check for direct call header to include. This will be 50215 # AC_SUBSTed later. 50216 if test "$DIRECT_psensor" = "file" ; then 50217 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 50218 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 50219 str="MCA_pmix_psensor_DIRECT_CALL_HEADER=$line" 50220 eval $str 50221 else 50222as_fn_error $? "*** psensor component file was supposed to be direct-called, but 50223*** does not appear to support direct calling. 50224*** Aborting" "$LINENO" 5 50225 fi 50226 fi 50227 else 50228 # were we supposed to have found something in the 50229 # post_configure.sh, but the file didn't exist? 50230 if test "$DIRECT_psensor" = "file" ; then 50231as_fn_error $? "*** psensor component file was supposed to be direct-called, but 50232*** does not appear to support direct calling. 50233*** Aborting" "$LINENO" 5 50234 fi 50235 fi 50236 50237 else 50238 50239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:file can compile" >&5 50240$as_echo_n "checking if MCA component psensor:file can compile... " >&6; } 50241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50242$as_echo "no" >&6; } 50243 50244 # If this component was requested as the default for this 50245 # type, then abort. 50246 if test "$with_psensor" = "file" ; then 50247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"file\" failed to configure properly" >&5 50248$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;} 50249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 50250$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 50251 as_fn_error $? "Cannot continue" "$LINENO" 5 50252 fi 50253 50254 if test ! -z "$DIRECT_psensor" ; then 50255 if test "$DIRECT_psensor" = "file" ; then 50256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"file\" failed to configure properly" >&5 50257$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;} 50258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 50259$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 50260 as_fn_error $? "Cannot continue" "$LINENO" 5 50261 fi 50262 fi 50263 50264 # add component to all component list 50265 all_components="$all_components file" 50266 fi 50267 50268 # set the AM_CONDITIONAL on how we should build 50269 if test "$compile_mode" = "dso" ; then 50270 BUILD_pmix_psensor_file_DSO=1 50271 else 50272 BUILD_pmix_psensor_file_DSO=0 50273 fi 50274 if test "$BUILD_pmix_psensor_file_DSO" = "1"; then 50275 MCA_BUILD_pmix_psensor_file_DSO_TRUE= 50276 MCA_BUILD_pmix_psensor_file_DSO_FALSE='#' 50277else 50278 MCA_BUILD_pmix_psensor_file_DSO_TRUE='#' 50279 MCA_BUILD_pmix_psensor_file_DSO_FALSE= 50280fi 50281 50282 50283 ac_config_files="$ac_config_files src/mca/psensor/file/Makefile" 50284 50285 50286 unset compile_mode 50287 50288 pmix_show_subsubsubtitle "MCA component psensor:heartbeat (no configuration)" 50289 50290 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 50291 50292 50293 50294 component_path="$srcdir/src/mca/psensor/heartbeat" 50295 want_component=0 50296 50297 # build if: 50298 # - the component type is direct and we are that component 50299 # - there is no pmix_ignore file 50300 # - there is an pmix_ignore, but there is an empty pmix_unignore 50301 # - there is an pmix_ignore, but username is in pmix_unignore 50302 if test -d $component_path ; then 50303 # decide if we want the component to be built or not. This 50304 # is spread out because some of the logic is a little complex 50305 # and test's syntax isn't exactly the greatest. We want to 50306 # build the component by default. 50307 want_component=1 50308 if test -f $component_path/.pmix_ignore ; then 50309 # If there is an pmix_ignore file, don't build 50310 # the component. Note that this decision can be 50311 # overridden by the unignore logic below. 50312 want_component=0 50313 fi 50314 if test -f $component_path/.pmix_unignore ; then 50315 # if there is an empty pmix_unignore, that is 50316 # equivalent to having your userid in the unignore file. 50317 # If userid is in the file, unignore the ignore file. 50318 if test ! -s $component_path/.pmix_unignore ; then 50319 want_component=1 50320 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 50321 want_component=1 50322 fi 50323 fi 50324 # if this component type is direct and we are not it, we don't want 50325 # to be built. Otherwise, we do want to be built. 50326 if test ! -z "$DIRECT_psensor" ; then 50327 if test "$DIRECT_psensor" = "heartbeat" ; then 50328 want_component=1 50329 else 50330 want_component=0 50331 fi 50332 fi 50333 fi 50334 50335 # if we were explicitly disabled, don't build :) 50336 if test "$DISABLE_psensor" = "1"; then : 50337 want_component=0 50338fi 50339 if test "$DISABLE_psensor_heartbeat" = "1"; then : 50340 want_component=0 50341fi 50342 50343 if test "$want_component" = "1"; then : 50344 should_build=1 50345else 50346 should_build=0 50347fi 50348 50349 50350 SHARED_FRAMEWORK="$DSO_psensor" 50351 SHARED_COMPONENT="$DSO_psensor_heartbeat" 50352 50353 STATIC_FRAMEWORK="$STATIC_psensor" 50354 STATIC_COMPONENT="$STATIC_psensor_heartbeat" 50355 50356 shared_mode_override=static 50357 50358 # Setup for either shared or static 50359 if test "$STATIC_FRAMEWORK" = "1" || \ 50360 test "$STATIC_COMPONENT" = "1" || \ 50361 test "$STATIC_all" = "1" ; then 50362 compile_mode="static" 50363 elif test "$shared_mode_override" = "dso" || \ 50364 test "$SHARED_FRAMEWORK" = "1" || \ 50365 test "$SHARED_COMPONENT" = "1" || \ 50366 test "$DSO_all" = "1"; then 50367 compile_mode="dso" 50368 else 50369 compile_mode="static" 50370 fi 50371 50372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psensor:heartbeat compile mode" >&5 50373$as_echo_n "checking for MCA component psensor:heartbeat compile mode... " >&6; } 50374 if test "$DIRECT_psensor" = "heartbeat" ; then 50375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 50376$as_echo "$compile_mode - direct" >&6; } 50377 else 50378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 50379$as_echo "$compile_mode" >&6; } 50380 fi 50381 50382 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 50383 50384 if test "$should_build" = "1" ; then 50385 50386 50387 50388 # See if it dropped an output file for us to pick up some 50389 # shell variables in. 50390 infile="$srcdir/src/mca/psensor/heartbeat/post_configure.sh" 50391 50392 # Add this subdir to the mast list of all MCA component subdirs 50393 all_components="$all_components heartbeat" 50394 50395 if test "$compile_mode" = "dso" ; then 50396 dso_components="$dso_components heartbeat" 50397 else 50398 if test "psensor" = "common"; then 50399 # Static libraries in "common" frameworks are installed, and 50400 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 50401 # set. 50402 static_ltlibs="mca/psensor/heartbeat/lib${PMIX_LIB_PREFIX}mca_psensor_heartbeat.la $static_ltlibs" 50403 else 50404 # Other frameworks do not have to obey the 50405 # $FRAMEWORK_LIB_PREFIX prefix. 50406 static_ltlibs="mca/psensor/heartbeat/libmca_psensor_heartbeat.la $static_ltlibs" 50407 fi 50408 echo "extern const pmix_mca_base_component_t mca_psensor_heartbeat_component;" >> $outfile.extern 50409 echo " &mca_psensor_heartbeat_component, " >> $outfile.struct 50410 static_components="$static_components heartbeat" 50411 fi 50412 50413 # Output pretty results 50414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:heartbeat can compile" >&5 50415$as_echo_n "checking if MCA component psensor:heartbeat can compile... " >&6; } 50416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50417$as_echo "yes" >&6; } 50418 50419 if test -f $infile; then 50420 # check for direct call header to include. This will be 50421 # AC_SUBSTed later. 50422 if test "$DIRECT_psensor" = "heartbeat" ; then 50423 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 50424 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 50425 str="MCA_pmix_psensor_DIRECT_CALL_HEADER=$line" 50426 eval $str 50427 else 50428as_fn_error $? "*** psensor component heartbeat was supposed to be direct-called, but 50429*** does not appear to support direct calling. 50430*** Aborting" "$LINENO" 5 50431 fi 50432 fi 50433 else 50434 # were we supposed to have found something in the 50435 # post_configure.sh, but the file didn't exist? 50436 if test "$DIRECT_psensor" = "heartbeat" ; then 50437as_fn_error $? "*** psensor component heartbeat was supposed to be direct-called, but 50438*** does not appear to support direct calling. 50439*** Aborting" "$LINENO" 5 50440 fi 50441 fi 50442 50443 else 50444 50445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:heartbeat can compile" >&5 50446$as_echo_n "checking if MCA component psensor:heartbeat can compile... " >&6; } 50447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50448$as_echo "no" >&6; } 50449 50450 # If this component was requested as the default for this 50451 # type, then abort. 50452 if test "$with_psensor" = "heartbeat" ; then 50453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"heartbeat\" failed to configure properly" >&5 50454$as_echo "$as_me: WARNING: MCA component \"heartbeat\" failed to configure properly" >&2;} 50455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 50456$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 50457 as_fn_error $? "Cannot continue" "$LINENO" 5 50458 fi 50459 50460 if test ! -z "$DIRECT_psensor" ; then 50461 if test "$DIRECT_psensor" = "heartbeat" ; then 50462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"heartbeat\" failed to configure properly" >&5 50463$as_echo "$as_me: WARNING: MCA component \"heartbeat\" failed to configure properly" >&2;} 50464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 50465$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 50466 as_fn_error $? "Cannot continue" "$LINENO" 5 50467 fi 50468 fi 50469 50470 # add component to all component list 50471 all_components="$all_components heartbeat" 50472 fi 50473 50474 # set the AM_CONDITIONAL on how we should build 50475 if test "$compile_mode" = "dso" ; then 50476 BUILD_pmix_psensor_heartbeat_DSO=1 50477 else 50478 BUILD_pmix_psensor_heartbeat_DSO=0 50479 fi 50480 if test "$BUILD_pmix_psensor_heartbeat_DSO" = "1"; then 50481 MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE= 50482 MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE='#' 50483else 50484 MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE='#' 50485 MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE= 50486fi 50487 50488 50489 ac_config_files="$ac_config_files src/mca/psensor/heartbeat/Makefile" 50490 50491 50492 unset compile_mode 50493 50494 50495 # configure components that use built-in configuration scripts 50496 50497 50498 50499 best_mca_component_priority=0 50500 components_looking_for_succeed=1 50501 components_last_result=0 50502 50503 50504 # configure components that provide their own configure script. 50505 # It would be really hard to run these for "find first that 50506 # works", so we don't :) 50507 50508 50509 50510 if test "1" != "0"; then : 50511 50512 for component_path in $srcdir/src/mca/psensor/* ; do 50513 component="`basename $component_path`" 50514 if test -d $component_path && test -x $component_path/configure ; then 50515 pmix_show_subsubsubtitle "MCA component psensor:$component (need to configure)" 50516 50517 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 50518 50519 50520 50521 component_path="$srcdir/src/mca/psensor/$component" 50522 want_component=0 50523 50524 # build if: 50525 # - the component type is direct and we are that component 50526 # - there is no pmix_ignore file 50527 # - there is an pmix_ignore, but there is an empty pmix_unignore 50528 # - there is an pmix_ignore, but username is in pmix_unignore 50529 if test -d $component_path ; then 50530 # decide if we want the component to be built or not. This 50531 # is spread out because some of the logic is a little complex 50532 # and test's syntax isn't exactly the greatest. We want to 50533 # build the component by default. 50534 want_component=1 50535 if test -f $component_path/.pmix_ignore ; then 50536 # If there is an pmix_ignore file, don't build 50537 # the component. Note that this decision can be 50538 # overridden by the unignore logic below. 50539 want_component=0 50540 fi 50541 if test -f $component_path/.pmix_unignore ; then 50542 # if there is an empty pmix_unignore, that is 50543 # equivalent to having your userid in the unignore file. 50544 # If userid is in the file, unignore the ignore file. 50545 if test ! -s $component_path/.pmix_unignore ; then 50546 want_component=1 50547 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 50548 want_component=1 50549 fi 50550 fi 50551 # if this component type is direct and we are not it, we don't want 50552 # to be built. Otherwise, we do want to be built. 50553 if test ! -z "$DIRECT_psensor" ; then 50554 if test "$DIRECT_psensor" = "$component" ; then 50555 want_component=1 50556 else 50557 want_component=0 50558 fi 50559 fi 50560 fi 50561 50562 # if we were explicitly disabled, don't build :) 50563 if test "$DISABLE_psensor" = "1"; then : 50564 want_component=0 50565fi 50566 str="DISABLED_COMPONENT_CHECK=\$DISABLE_psensor_$component" 50567 eval $str 50568 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 50569 want_component=0 50570 fi 50571 50572 if test "$want_component" = "1"; then : 50573 should_build=1 50574else 50575 should_build=0 50576fi 50577 50578 50579 SHARED_FRAMEWORK="$DSO_psensor" 50580 str="SHARED_COMPONENT=\$DSO_psensor_$component" 50581 eval $str 50582 50583 STATIC_FRAMEWORK="$STATIC_psensor" 50584 str="STATIC_COMPONENT=\$STATIC_psensor_$component" 50585 eval $str 50586 50587 shared_mode_override=static 50588 50589 # Setup for either shared or static 50590 if test "$STATIC_FRAMEWORK" = "1" || \ 50591 test "$STATIC_COMPONENT" = "1" || \ 50592 test "$STATIC_all" = "1" ; then 50593 compile_mode="static" 50594 elif test "$shared_mode_override" = "dso" || \ 50595 test "$SHARED_FRAMEWORK" = "1" || \ 50596 test "$SHARED_COMPONENT" = "1" || \ 50597 test "$DSO_all" = "1"; then 50598 compile_mode="dso" 50599 else 50600 compile_mode="static" 50601 fi 50602 50603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psensor:$component compile mode" >&5 50604$as_echo_n "checking for MCA component psensor:$component compile mode... " >&6; } 50605 if test "$DIRECT_psensor" = "$component" ; then 50606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 50607$as_echo "$compile_mode - direct" >&6; } 50608 else 50609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 50610$as_echo "$compile_mode" >&6; } 50611 fi 50612 50613 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 50614 50615 if test "$should_build" = "1" ; then 50616 50617 50618 50619 # Is the private index set? If not, set it. 50620 if test "x$pmix_scope_index" = "x"; then 50621 pmix_scope_index=1 50622 fi 50623 50624 # First, check to see if any of these variables are already set. 50625 # This is a simple sanity check to ensure we're not already 50626 # overwriting pre-existing variables (that have a non-empty 50627 # value). It's not a perfect check, but at least it's something. 50628 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 50629 pmix_str="pmix_str=\"\$$pmix_var\"" 50630 eval $pmix_str 50631 50632 if test "x$pmix_str" != "x"; then 50633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 50634$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 50635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 50636$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 50637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 50638$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 50639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 50640$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 50641 as_fn_error $? "Cannot continue" "$LINENO" 5 50642 fi 50643 done 50644 50645 # Ok, we passed the simple sanity check. Save all these names so 50646 # that we can unset them at the end of the scope. 50647 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 50648 eval $pmix_str 50649 unset pmix_str 50650 50651 env | grep pmix_scope 50652 pmix_scope_index=`expr $pmix_scope_index + 1` 50653 50654 50655# 50656# Invoke configure in a specific subdirectory. 50657# 50658# src/mca/psensor/$component is the directory to invoke in 50659# $pmix_subdir_args is the list of arguments to pass 50660# should_build=1 is actions to execute upon success 50661# should_build=0 is actions to execute upon failure 50662# 50663subdir_dir="src/mca/psensor/$component" 50664subdir_args="$pmix_subdir_args" 50665subdir_success="should_build=1" 50666subdir_failure="should_build=0" 50667 50668# 50669# Sanity checks 50670# 50671 50672if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 50673 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 50674$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 50675 50676 # 50677 # Gotta check where srcdir is for VPATH builds. If srcdir is not 50678 # ., then we need to mkdir the subdir. Otherwise, we can just cd 50679 # into it. 50680 # 50681 50682 case $srcdir in 50683 .) 50684 ;; 50685 *) 50686 { case $subdir_dir in 50687 [\\/]* | ?:[\\/]* ) total_dir=;; 50688 *) total_dir=.;; 50689 esac 50690 temp=$subdir_dir 50691 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 50692 case $dir_part in 50693 # Skip DOS drivespec 50694 ?:) total_dir=$dir_part ;; 50695 *) total_dir=$total_dir/$dir_part 50696 test -d "$total_dir" || 50697 mkdir "$total_dir" || 50698 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 50699 ;; 50700 esac 50701 done; } 50702 50703 if test -d ./$subdir_dir; then :; 50704 else 50705 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 50706 fi 50707 ;; 50708 esac 50709 50710 # 50711 # Move into the target directory 50712 # 50713 50714 subdir_parent=`pwd` 50715 cd $subdir_dir 50716 50717 # 50718 # Make a "../" for each directory in $subdir_dir. 50719 # 50720 50721 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 50722 # 50723 # Construct the --srcdir argument 50724 # 50725 50726 case $srcdir in 50727 .) 50728 # In place 50729 subdir_srcdir="$srcdir" 50730 ;; 50731 [\\/]* | ?:[\\/]* ) 50732 # Absolute path 50733 subdir_srcdir="$srcdir/$subdir_dir" 50734 ;; 50735 *) 50736 # Relative path 50737 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 50738 ;; 50739 esac 50740 50741 # 50742 # Construct the --cache-file argument 50743 # 50744 50745 # BWB - subdir caching is a pain since we change CFLAGS and all that. 50746 # Just disable it for now 50747 subdir_cache_file="/dev/null" 50748 50749 # 50750 # Invoke the configure script in the subdirectory 50751 # 50752 50753 sub_configure="$SHELL '$subdir_srcdir/configure'" 50754 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 50755$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 50756 eval "$sub_configure $subdir_args \ 50757 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 50758 if test "$?" = "0"; then 50759 eval $subdir_success 50760 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 50761$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 50762 else 50763 eval $subdir_failure 50764 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 50765$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 50766 fi 50767 50768 # 50769 # Go back to the topdir 50770 # 50771 50772 cd $subdir_parent 50773fi 50774 50775# 50776# Clean up 50777# 50778 50779 50780 # Unwind the index 50781 pmix_scope_index=`expr $pmix_scope_index - 1` 50782 pmix_scope_test=`expr $pmix_scope_index \> 0` 50783 if test "$pmix_scope_test" = "0"; then 50784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 50785$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 50786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 50787$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 50788 as_fn_error $? "Cannot continue" "$LINENO" 5 50789 fi 50790 50791 # Get the variable names from that index 50792 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 50793 eval $pmix_str 50794 50795 # Iterate over all the variables and unset them all 50796 for pmix_var in $pmix_str; do 50797 unset $pmix_var 50798 done 50799 50800 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 50801 fi 50802 50803 if test "$should_build" = "1" ; then 50804 # do some extra work to pass flags back from the 50805 # top-level configure, the way a configure.m4 50806 # component would. 50807 infile="$srcdir/src/mca/psensor/all_components/post_configure.sh" 50808 if test -f $infile; then 50809 50810 # First check for the ABORT tag 50811 line="`$GREP ABORT= $infile | cut -d= -f2-`" 50812 if test -n "$line" && test "$line" != "no"; then 50813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 50814$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 50815 as_fn_error $? "cannot continue" "$LINENO" 5 50816 fi 50817 fi 50818 50819 50820 50821 50822 # See if it dropped an output file for us to pick up some 50823 # shell variables in. 50824 infile="$srcdir/src/mca/psensor/$component/post_configure.sh" 50825 50826 # Add this subdir to the mast list of all MCA component subdirs 50827 all_components="$all_components $component" 50828 50829 if test "$compile_mode" = "dso" ; then 50830 dso_components="$dso_components $component" 50831 else 50832 if test "psensor" = "common"; then 50833 # Static libraries in "common" frameworks are installed, and 50834 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 50835 # set. 50836 static_ltlibs="mca/psensor/$component/lib${PMIX_LIB_PREFIX}mca_psensor_$component.la $static_ltlibs" 50837 else 50838 # Other frameworks do not have to obey the 50839 # $FRAMEWORK_LIB_PREFIX prefix. 50840 static_ltlibs="mca/psensor/$component/libmca_psensor_$component.la $static_ltlibs" 50841 fi 50842 echo "extern const pmix_mca_base_component_t mca_psensor_$component_component;" >> $outfile.extern 50843 echo " &mca_psensor_$component_component, " >> $outfile.struct 50844 static_components="$static_components $component" 50845 fi 50846 50847 # Output pretty results 50848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:$component can compile" >&5 50849$as_echo_n "checking if MCA component psensor:$component can compile... " >&6; } 50850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50851$as_echo "yes" >&6; } 50852 50853 if test -f $infile; then 50854 # check for direct call header to include. This will be 50855 # AC_SUBSTed later. 50856 if test "$DIRECT_psensor" = "$component" ; then 50857 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 50858 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 50859 str="MCA_pmix_psensor_DIRECT_CALL_HEADER=$line" 50860 eval $str 50861 else 50862as_fn_error $? "*** psensor component $component was supposed to be direct-called, but 50863*** does not appear to support direct calling. 50864*** Aborting" "$LINENO" 5 50865 fi 50866 fi 50867 else 50868 # were we supposed to have found something in the 50869 # post_configure.sh, but the file didn't exist? 50870 if test "$DIRECT_psensor" = "$component" ; then 50871as_fn_error $? "*** psensor component $component was supposed to be direct-called, but 50872*** does not appear to support direct calling. 50873*** Aborting" "$LINENO" 5 50874 fi 50875 fi 50876 50877 else 50878 50879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:$component can compile" >&5 50880$as_echo_n "checking if MCA component psensor:$component can compile... " >&6; } 50881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50882$as_echo "no" >&6; } 50883 50884 # If this component was requested as the default for this 50885 # type, then abort. 50886 if test "$with_psensor" = "$component" ; then 50887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 50888$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 50889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 50890$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 50891 as_fn_error $? "Cannot continue" "$LINENO" 5 50892 fi 50893 50894 if test ! -z "$DIRECT_psensor" ; then 50895 if test "$DIRECT_psensor" = "$component" ; then 50896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 50897$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 50898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 50899$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 50900 as_fn_error $? "Cannot continue" "$LINENO" 5 50901 fi 50902 fi 50903 50904 fi 50905 fi 50906 done 50907 50908fi 50909 50910 MCA_pmix_psensor_ALL_COMPONENTS="$all_components" 50911 MCA_pmix_psensor_STATIC_COMPONENTS="$static_components" 50912 MCA_pmix_psensor_DSO_COMPONENTS="$dso_components" 50913 MCA_pmix_psensor_STATIC_LTLIBS="$static_ltlibs" 50914 50915 50916 50917 50918 50919 50920 50921 MCA_pmix_psensor_ALL_SUBDIRS= 50922 for item in $all_components ; do 50923 MCA_pmix_psensor_ALL_SUBDIRS="$MCA_pmix_psensor_ALL_SUBDIRS mca/psensor/$item" 50924 done 50925 50926 50927 50928 MCA_pmix_psensor_STATIC_SUBDIRS= 50929 for item in $static_components ; do 50930 MCA_pmix_psensor_STATIC_SUBDIRS="$MCA_pmix_psensor_STATIC_SUBDIRS mca/psensor/$item" 50931 done 50932 50933 50934 50935 MCA_pmix_psensor_DSO_SUBDIRS= 50936 for item in $dso_components ; do 50937 MCA_pmix_psensor_DSO_SUBDIRS="$MCA_pmix_psensor_DSO_SUBDIRS mca/psensor/$item" 50938 done 50939 50940 50941 50942 # Create the final .h file that will be included in the type's 50943 # top-level glue. This lists all the static components. We don't 50944 # need to do this for "common". 50945 if test "psensor" != "common"; then 50946 cat > $outfile <<EOF 50947/* 50948 * \$HEADER\$ 50949 */ 50950#if defined(c_plusplus) || defined(__cplusplus) 50951extern "C" { 50952#endif 50953 50954`cat $outfile.extern` 50955 50956const pmix_mca_base_component_t *mca_psensor_base_static_components[] = { 50957`cat $outfile.struct` 50958 NULL 50959}; 50960 50961#if defined(c_plusplus) || defined(__cplusplus) 50962} 50963#endif 50964 50965EOF 50966 # Only replace the header file if a) it doesn't previously 50967 # exist, or b) the contents are different. Do this to not 50968 # trigger recompilation of certain .c files just because the 50969 # timestamp changed on $outfile_real (similar to the way AC 50970 # handles AC_CONFIG_HEADER files). 50971 diff $outfile $outfile_real > /dev/null 2>&1 50972 if test "$?" != "0"; then 50973 mv $outfile $outfile_real 50974 else 50975 rm -f $outfile 50976 fi 50977 fi 50978 rm -f $outfile.struct $outfile.extern 50979 50980 unset all_components static_components dso_components outfile outfile_real 50981 50982 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pshmem" 50983 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pshmem" 50984 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pshmem_ALL_SUBDIRS)" 50985 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pshmem_DSO_SUBDIRS)" 50986 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pshmem_STATIC_SUBDIRS)" 50987 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pshmem/libmca_pshmem.la" 50988 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pshmem_STATIC_LTLIBS)" 50989 50990 pmix_show_subsubtitle "Configuring MCA framework pshmem" 50991 50992 50993 50994 50995 # setup for framework 50996 all_components= 50997 static_components= 50998 dso_components= 50999 static_ltlibs= 51000 51001 # Ensure that the directory where the #include file is to live 51002 # exists. Need to do this for VPATH builds, because the directory 51003 # may not exist yet. For the "common" type, it's not really a 51004 # component, so it doesn't have a base. 51005 outdir=src/mca/pshmem/base 51006 as_dir=$outdir; as_fn_mkdir_p 51007 51008 # emit Makefile rule 51009 ac_config_files="$ac_config_files src/mca/pshmem/Makefile" 51010 51011 51012 # remove any previously generated #include files 51013 outfile_real=$outdir/static-components.h 51014 outfile=$outfile_real.new 51015 rm -f $outfile $outfile.struct $outfile.extern 51016 touch $outfile.struct $outfile.extern 51017 51018 # print some nice messages about what we're about to do... 51019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pshmem" >&5 51020$as_echo_n "checking for no configure components in framework pshmem... " >&6; } 51021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mmap" >&5 51022$as_echo "mmap" >&6; } 51023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pshmem" >&5 51024$as_echo_n "checking for m4 configure components in framework pshmem... " >&6; } 51025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 51026$as_echo "" >&6; } 51027 51028 # If there are components in the no configure list, but we're 51029 # doing one of the "special" selection logics, abort with a 51030 # reasonable message. 51031 51032 51033 51034 # run the configure logic for the no-config components 51035 51036 pmix_show_subsubsubtitle "MCA component pshmem:mmap (no configuration)" 51037 51038 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 51039 51040 51041 51042 component_path="$srcdir/src/mca/pshmem/mmap" 51043 want_component=0 51044 51045 # build if: 51046 # - the component type is direct and we are that component 51047 # - there is no pmix_ignore file 51048 # - there is an pmix_ignore, but there is an empty pmix_unignore 51049 # - there is an pmix_ignore, but username is in pmix_unignore 51050 if test -d $component_path ; then 51051 # decide if we want the component to be built or not. This 51052 # is spread out because some of the logic is a little complex 51053 # and test's syntax isn't exactly the greatest. We want to 51054 # build the component by default. 51055 want_component=1 51056 if test -f $component_path/.pmix_ignore ; then 51057 # If there is an pmix_ignore file, don't build 51058 # the component. Note that this decision can be 51059 # overridden by the unignore logic below. 51060 want_component=0 51061 fi 51062 if test -f $component_path/.pmix_unignore ; then 51063 # if there is an empty pmix_unignore, that is 51064 # equivalent to having your userid in the unignore file. 51065 # If userid is in the file, unignore the ignore file. 51066 if test ! -s $component_path/.pmix_unignore ; then 51067 want_component=1 51068 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 51069 want_component=1 51070 fi 51071 fi 51072 # if this component type is direct and we are not it, we don't want 51073 # to be built. Otherwise, we do want to be built. 51074 if test ! -z "$DIRECT_pshmem" ; then 51075 if test "$DIRECT_pshmem" = "mmap" ; then 51076 want_component=1 51077 else 51078 want_component=0 51079 fi 51080 fi 51081 fi 51082 51083 # if we were explicitly disabled, don't build :) 51084 if test "$DISABLE_pshmem" = "1"; then : 51085 want_component=0 51086fi 51087 if test "$DISABLE_pshmem_mmap" = "1"; then : 51088 want_component=0 51089fi 51090 51091 if test "$want_component" = "1"; then : 51092 should_build=1 51093else 51094 should_build=0 51095fi 51096 51097 51098 SHARED_FRAMEWORK="$DSO_pshmem" 51099 SHARED_COMPONENT="$DSO_pshmem_mmap" 51100 51101 STATIC_FRAMEWORK="$STATIC_pshmem" 51102 STATIC_COMPONENT="$STATIC_pshmem_mmap" 51103 51104 shared_mode_override=static 51105 51106 # Setup for either shared or static 51107 if test "$STATIC_FRAMEWORK" = "1" || \ 51108 test "$STATIC_COMPONENT" = "1" || \ 51109 test "$STATIC_all" = "1" ; then 51110 compile_mode="static" 51111 elif test "$shared_mode_override" = "dso" || \ 51112 test "$SHARED_FRAMEWORK" = "1" || \ 51113 test "$SHARED_COMPONENT" = "1" || \ 51114 test "$DSO_all" = "1"; then 51115 compile_mode="dso" 51116 else 51117 compile_mode="static" 51118 fi 51119 51120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pshmem:mmap compile mode" >&5 51121$as_echo_n "checking for MCA component pshmem:mmap compile mode... " >&6; } 51122 if test "$DIRECT_pshmem" = "mmap" ; then 51123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 51124$as_echo "$compile_mode - direct" >&6; } 51125 else 51126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 51127$as_echo "$compile_mode" >&6; } 51128 fi 51129 51130 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 51131 51132 if test "$should_build" = "1" ; then 51133 51134 51135 51136 # See if it dropped an output file for us to pick up some 51137 # shell variables in. 51138 infile="$srcdir/src/mca/pshmem/mmap/post_configure.sh" 51139 51140 # Add this subdir to the mast list of all MCA component subdirs 51141 all_components="$all_components mmap" 51142 51143 if test "$compile_mode" = "dso" ; then 51144 dso_components="$dso_components mmap" 51145 else 51146 if test "pshmem" = "common"; then 51147 # Static libraries in "common" frameworks are installed, and 51148 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 51149 # set. 51150 static_ltlibs="mca/pshmem/mmap/lib${PMIX_LIB_PREFIX}mca_pshmem_mmap.la $static_ltlibs" 51151 else 51152 # Other frameworks do not have to obey the 51153 # $FRAMEWORK_LIB_PREFIX prefix. 51154 static_ltlibs="mca/pshmem/mmap/libmca_pshmem_mmap.la $static_ltlibs" 51155 fi 51156 echo "extern const pmix_mca_base_component_t mca_pshmem_mmap_component;" >> $outfile.extern 51157 echo " &mca_pshmem_mmap_component, " >> $outfile.struct 51158 static_components="$static_components mmap" 51159 fi 51160 51161 # Output pretty results 51162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:mmap can compile" >&5 51163$as_echo_n "checking if MCA component pshmem:mmap can compile... " >&6; } 51164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51165$as_echo "yes" >&6; } 51166 51167 if test -f $infile; then 51168 # check for direct call header to include. This will be 51169 # AC_SUBSTed later. 51170 if test "$DIRECT_pshmem" = "mmap" ; then 51171 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 51172 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 51173 str="MCA_pmix_pshmem_DIRECT_CALL_HEADER=$line" 51174 eval $str 51175 else 51176as_fn_error $? "*** pshmem component mmap was supposed to be direct-called, but 51177*** does not appear to support direct calling. 51178*** Aborting" "$LINENO" 5 51179 fi 51180 fi 51181 else 51182 # were we supposed to have found something in the 51183 # post_configure.sh, but the file didn't exist? 51184 if test "$DIRECT_pshmem" = "mmap" ; then 51185as_fn_error $? "*** pshmem component mmap was supposed to be direct-called, but 51186*** does not appear to support direct calling. 51187*** Aborting" "$LINENO" 5 51188 fi 51189 fi 51190 51191 else 51192 51193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:mmap can compile" >&5 51194$as_echo_n "checking if MCA component pshmem:mmap can compile... " >&6; } 51195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51196$as_echo "no" >&6; } 51197 51198 # If this component was requested as the default for this 51199 # type, then abort. 51200 if test "$with_pshmem" = "mmap" ; then 51201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5 51202$as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;} 51203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 51204$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 51205 as_fn_error $? "Cannot continue" "$LINENO" 5 51206 fi 51207 51208 if test ! -z "$DIRECT_pshmem" ; then 51209 if test "$DIRECT_pshmem" = "mmap" ; then 51210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5 51211$as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;} 51212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 51213$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 51214 as_fn_error $? "Cannot continue" "$LINENO" 5 51215 fi 51216 fi 51217 51218 # add component to all component list 51219 all_components="$all_components mmap" 51220 fi 51221 51222 # set the AM_CONDITIONAL on how we should build 51223 if test "$compile_mode" = "dso" ; then 51224 BUILD_pmix_pshmem_mmap_DSO=1 51225 else 51226 BUILD_pmix_pshmem_mmap_DSO=0 51227 fi 51228 if test "$BUILD_pmix_pshmem_mmap_DSO" = "1"; then 51229 MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE= 51230 MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE='#' 51231else 51232 MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE='#' 51233 MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE= 51234fi 51235 51236 51237 ac_config_files="$ac_config_files src/mca/pshmem/mmap/Makefile" 51238 51239 51240 unset compile_mode 51241 51242 51243 # configure components that use built-in configuration scripts 51244 51245 51246 51247 best_mca_component_priority=0 51248 components_looking_for_succeed=1 51249 components_last_result=0 51250 51251 51252 # configure components that provide their own configure script. 51253 # It would be really hard to run these for "find first that 51254 # works", so we don't :) 51255 51256 51257 51258 if test "1" != "0"; then : 51259 51260 for component_path in $srcdir/src/mca/pshmem/* ; do 51261 component="`basename $component_path`" 51262 if test -d $component_path && test -x $component_path/configure ; then 51263 pmix_show_subsubsubtitle "MCA component pshmem:$component (need to configure)" 51264 51265 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 51266 51267 51268 51269 component_path="$srcdir/src/mca/pshmem/$component" 51270 want_component=0 51271 51272 # build if: 51273 # - the component type is direct and we are that component 51274 # - there is no pmix_ignore file 51275 # - there is an pmix_ignore, but there is an empty pmix_unignore 51276 # - there is an pmix_ignore, but username is in pmix_unignore 51277 if test -d $component_path ; then 51278 # decide if we want the component to be built or not. This 51279 # is spread out because some of the logic is a little complex 51280 # and test's syntax isn't exactly the greatest. We want to 51281 # build the component by default. 51282 want_component=1 51283 if test -f $component_path/.pmix_ignore ; then 51284 # If there is an pmix_ignore file, don't build 51285 # the component. Note that this decision can be 51286 # overridden by the unignore logic below. 51287 want_component=0 51288 fi 51289 if test -f $component_path/.pmix_unignore ; then 51290 # if there is an empty pmix_unignore, that is 51291 # equivalent to having your userid in the unignore file. 51292 # If userid is in the file, unignore the ignore file. 51293 if test ! -s $component_path/.pmix_unignore ; then 51294 want_component=1 51295 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 51296 want_component=1 51297 fi 51298 fi 51299 # if this component type is direct and we are not it, we don't want 51300 # to be built. Otherwise, we do want to be built. 51301 if test ! -z "$DIRECT_pshmem" ; then 51302 if test "$DIRECT_pshmem" = "$component" ; then 51303 want_component=1 51304 else 51305 want_component=0 51306 fi 51307 fi 51308 fi 51309 51310 # if we were explicitly disabled, don't build :) 51311 if test "$DISABLE_pshmem" = "1"; then : 51312 want_component=0 51313fi 51314 str="DISABLED_COMPONENT_CHECK=\$DISABLE_pshmem_$component" 51315 eval $str 51316 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 51317 want_component=0 51318 fi 51319 51320 if test "$want_component" = "1"; then : 51321 should_build=1 51322else 51323 should_build=0 51324fi 51325 51326 51327 SHARED_FRAMEWORK="$DSO_pshmem" 51328 str="SHARED_COMPONENT=\$DSO_pshmem_$component" 51329 eval $str 51330 51331 STATIC_FRAMEWORK="$STATIC_pshmem" 51332 str="STATIC_COMPONENT=\$STATIC_pshmem_$component" 51333 eval $str 51334 51335 shared_mode_override=static 51336 51337 # Setup for either shared or static 51338 if test "$STATIC_FRAMEWORK" = "1" || \ 51339 test "$STATIC_COMPONENT" = "1" || \ 51340 test "$STATIC_all" = "1" ; then 51341 compile_mode="static" 51342 elif test "$shared_mode_override" = "dso" || \ 51343 test "$SHARED_FRAMEWORK" = "1" || \ 51344 test "$SHARED_COMPONENT" = "1" || \ 51345 test "$DSO_all" = "1"; then 51346 compile_mode="dso" 51347 else 51348 compile_mode="static" 51349 fi 51350 51351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pshmem:$component compile mode" >&5 51352$as_echo_n "checking for MCA component pshmem:$component compile mode... " >&6; } 51353 if test "$DIRECT_pshmem" = "$component" ; then 51354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 51355$as_echo "$compile_mode - direct" >&6; } 51356 else 51357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 51358$as_echo "$compile_mode" >&6; } 51359 fi 51360 51361 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 51362 51363 if test "$should_build" = "1" ; then 51364 51365 51366 51367 # Is the private index set? If not, set it. 51368 if test "x$pmix_scope_index" = "x"; then 51369 pmix_scope_index=1 51370 fi 51371 51372 # First, check to see if any of these variables are already set. 51373 # This is a simple sanity check to ensure we're not already 51374 # overwriting pre-existing variables (that have a non-empty 51375 # value). It's not a perfect check, but at least it's something. 51376 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 51377 pmix_str="pmix_str=\"\$$pmix_var\"" 51378 eval $pmix_str 51379 51380 if test "x$pmix_str" != "x"; then 51381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 51382$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 51383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 51384$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 51385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 51386$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 51387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 51388$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 51389 as_fn_error $? "Cannot continue" "$LINENO" 5 51390 fi 51391 done 51392 51393 # Ok, we passed the simple sanity check. Save all these names so 51394 # that we can unset them at the end of the scope. 51395 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 51396 eval $pmix_str 51397 unset pmix_str 51398 51399 env | grep pmix_scope 51400 pmix_scope_index=`expr $pmix_scope_index + 1` 51401 51402 51403# 51404# Invoke configure in a specific subdirectory. 51405# 51406# src/mca/pshmem/$component is the directory to invoke in 51407# $pmix_subdir_args is the list of arguments to pass 51408# should_build=1 is actions to execute upon success 51409# should_build=0 is actions to execute upon failure 51410# 51411subdir_dir="src/mca/pshmem/$component" 51412subdir_args="$pmix_subdir_args" 51413subdir_success="should_build=1" 51414subdir_failure="should_build=0" 51415 51416# 51417# Sanity checks 51418# 51419 51420if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 51421 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 51422$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 51423 51424 # 51425 # Gotta check where srcdir is for VPATH builds. If srcdir is not 51426 # ., then we need to mkdir the subdir. Otherwise, we can just cd 51427 # into it. 51428 # 51429 51430 case $srcdir in 51431 .) 51432 ;; 51433 *) 51434 { case $subdir_dir in 51435 [\\/]* | ?:[\\/]* ) total_dir=;; 51436 *) total_dir=.;; 51437 esac 51438 temp=$subdir_dir 51439 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 51440 case $dir_part in 51441 # Skip DOS drivespec 51442 ?:) total_dir=$dir_part ;; 51443 *) total_dir=$total_dir/$dir_part 51444 test -d "$total_dir" || 51445 mkdir "$total_dir" || 51446 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 51447 ;; 51448 esac 51449 done; } 51450 51451 if test -d ./$subdir_dir; then :; 51452 else 51453 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 51454 fi 51455 ;; 51456 esac 51457 51458 # 51459 # Move into the target directory 51460 # 51461 51462 subdir_parent=`pwd` 51463 cd $subdir_dir 51464 51465 # 51466 # Make a "../" for each directory in $subdir_dir. 51467 # 51468 51469 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 51470 # 51471 # Construct the --srcdir argument 51472 # 51473 51474 case $srcdir in 51475 .) 51476 # In place 51477 subdir_srcdir="$srcdir" 51478 ;; 51479 [\\/]* | ?:[\\/]* ) 51480 # Absolute path 51481 subdir_srcdir="$srcdir/$subdir_dir" 51482 ;; 51483 *) 51484 # Relative path 51485 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 51486 ;; 51487 esac 51488 51489 # 51490 # Construct the --cache-file argument 51491 # 51492 51493 # BWB - subdir caching is a pain since we change CFLAGS and all that. 51494 # Just disable it for now 51495 subdir_cache_file="/dev/null" 51496 51497 # 51498 # Invoke the configure script in the subdirectory 51499 # 51500 51501 sub_configure="$SHELL '$subdir_srcdir/configure'" 51502 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 51503$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 51504 eval "$sub_configure $subdir_args \ 51505 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 51506 if test "$?" = "0"; then 51507 eval $subdir_success 51508 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 51509$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 51510 else 51511 eval $subdir_failure 51512 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 51513$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 51514 fi 51515 51516 # 51517 # Go back to the topdir 51518 # 51519 51520 cd $subdir_parent 51521fi 51522 51523# 51524# Clean up 51525# 51526 51527 51528 # Unwind the index 51529 pmix_scope_index=`expr $pmix_scope_index - 1` 51530 pmix_scope_test=`expr $pmix_scope_index \> 0` 51531 if test "$pmix_scope_test" = "0"; then 51532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 51533$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 51534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 51535$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 51536 as_fn_error $? "Cannot continue" "$LINENO" 5 51537 fi 51538 51539 # Get the variable names from that index 51540 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 51541 eval $pmix_str 51542 51543 # Iterate over all the variables and unset them all 51544 for pmix_var in $pmix_str; do 51545 unset $pmix_var 51546 done 51547 51548 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 51549 fi 51550 51551 if test "$should_build" = "1" ; then 51552 # do some extra work to pass flags back from the 51553 # top-level configure, the way a configure.m4 51554 # component would. 51555 infile="$srcdir/src/mca/pshmem/all_components/post_configure.sh" 51556 if test -f $infile; then 51557 51558 # First check for the ABORT tag 51559 line="`$GREP ABORT= $infile | cut -d= -f2-`" 51560 if test -n "$line" && test "$line" != "no"; then 51561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 51562$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 51563 as_fn_error $? "cannot continue" "$LINENO" 5 51564 fi 51565 fi 51566 51567 51568 51569 51570 # See if it dropped an output file for us to pick up some 51571 # shell variables in. 51572 infile="$srcdir/src/mca/pshmem/$component/post_configure.sh" 51573 51574 # Add this subdir to the mast list of all MCA component subdirs 51575 all_components="$all_components $component" 51576 51577 if test "$compile_mode" = "dso" ; then 51578 dso_components="$dso_components $component" 51579 else 51580 if test "pshmem" = "common"; then 51581 # Static libraries in "common" frameworks are installed, and 51582 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 51583 # set. 51584 static_ltlibs="mca/pshmem/$component/lib${PMIX_LIB_PREFIX}mca_pshmem_$component.la $static_ltlibs" 51585 else 51586 # Other frameworks do not have to obey the 51587 # $FRAMEWORK_LIB_PREFIX prefix. 51588 static_ltlibs="mca/pshmem/$component/libmca_pshmem_$component.la $static_ltlibs" 51589 fi 51590 echo "extern const pmix_mca_base_component_t mca_pshmem_$component_component;" >> $outfile.extern 51591 echo " &mca_pshmem_$component_component, " >> $outfile.struct 51592 static_components="$static_components $component" 51593 fi 51594 51595 # Output pretty results 51596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:$component can compile" >&5 51597$as_echo_n "checking if MCA component pshmem:$component can compile... " >&6; } 51598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51599$as_echo "yes" >&6; } 51600 51601 if test -f $infile; then 51602 # check for direct call header to include. This will be 51603 # AC_SUBSTed later. 51604 if test "$DIRECT_pshmem" = "$component" ; then 51605 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 51606 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 51607 str="MCA_pmix_pshmem_DIRECT_CALL_HEADER=$line" 51608 eval $str 51609 else 51610as_fn_error $? "*** pshmem component $component was supposed to be direct-called, but 51611*** does not appear to support direct calling. 51612*** Aborting" "$LINENO" 5 51613 fi 51614 fi 51615 else 51616 # were we supposed to have found something in the 51617 # post_configure.sh, but the file didn't exist? 51618 if test "$DIRECT_pshmem" = "$component" ; then 51619as_fn_error $? "*** pshmem component $component was supposed to be direct-called, but 51620*** does not appear to support direct calling. 51621*** Aborting" "$LINENO" 5 51622 fi 51623 fi 51624 51625 else 51626 51627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:$component can compile" >&5 51628$as_echo_n "checking if MCA component pshmem:$component can compile... " >&6; } 51629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51630$as_echo "no" >&6; } 51631 51632 # If this component was requested as the default for this 51633 # type, then abort. 51634 if test "$with_pshmem" = "$component" ; then 51635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 51636$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 51637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 51638$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 51639 as_fn_error $? "Cannot continue" "$LINENO" 5 51640 fi 51641 51642 if test ! -z "$DIRECT_pshmem" ; then 51643 if test "$DIRECT_pshmem" = "$component" ; then 51644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 51645$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 51646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 51647$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 51648 as_fn_error $? "Cannot continue" "$LINENO" 5 51649 fi 51650 fi 51651 51652 fi 51653 fi 51654 done 51655 51656fi 51657 51658 MCA_pmix_pshmem_ALL_COMPONENTS="$all_components" 51659 MCA_pmix_pshmem_STATIC_COMPONENTS="$static_components" 51660 MCA_pmix_pshmem_DSO_COMPONENTS="$dso_components" 51661 MCA_pmix_pshmem_STATIC_LTLIBS="$static_ltlibs" 51662 51663 51664 51665 51666 51667 51668 51669 MCA_pmix_pshmem_ALL_SUBDIRS= 51670 for item in $all_components ; do 51671 MCA_pmix_pshmem_ALL_SUBDIRS="$MCA_pmix_pshmem_ALL_SUBDIRS mca/pshmem/$item" 51672 done 51673 51674 51675 51676 MCA_pmix_pshmem_STATIC_SUBDIRS= 51677 for item in $static_components ; do 51678 MCA_pmix_pshmem_STATIC_SUBDIRS="$MCA_pmix_pshmem_STATIC_SUBDIRS mca/pshmem/$item" 51679 done 51680 51681 51682 51683 MCA_pmix_pshmem_DSO_SUBDIRS= 51684 for item in $dso_components ; do 51685 MCA_pmix_pshmem_DSO_SUBDIRS="$MCA_pmix_pshmem_DSO_SUBDIRS mca/pshmem/$item" 51686 done 51687 51688 51689 51690 # Create the final .h file that will be included in the type's 51691 # top-level glue. This lists all the static components. We don't 51692 # need to do this for "common". 51693 if test "pshmem" != "common"; then 51694 cat > $outfile <<EOF 51695/* 51696 * \$HEADER\$ 51697 */ 51698#if defined(c_plusplus) || defined(__cplusplus) 51699extern "C" { 51700#endif 51701 51702`cat $outfile.extern` 51703 51704const pmix_mca_base_component_t *mca_pshmem_base_static_components[] = { 51705`cat $outfile.struct` 51706 NULL 51707}; 51708 51709#if defined(c_plusplus) || defined(__cplusplus) 51710} 51711#endif 51712 51713EOF 51714 # Only replace the header file if a) it doesn't previously 51715 # exist, or b) the contents are different. Do this to not 51716 # trigger recompilation of certain .c files just because the 51717 # timestamp changed on $outfile_real (similar to the way AC 51718 # handles AC_CONFIG_HEADER files). 51719 diff $outfile $outfile_real > /dev/null 2>&1 51720 if test "$?" != "0"; then 51721 mv $outfile $outfile_real 51722 else 51723 rm -f $outfile 51724 fi 51725 fi 51726 rm -f $outfile.struct $outfile.extern 51727 51728 unset all_components static_components dso_components outfile outfile_real 51729 51730 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS psquash" 51731 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/psquash" 51732 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_psquash_ALL_SUBDIRS)" 51733 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_psquash_DSO_SUBDIRS)" 51734 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_psquash_STATIC_SUBDIRS)" 51735 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/psquash/libmca_psquash.la" 51736 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_psquash_STATIC_LTLIBS)" 51737 51738 pmix_show_subsubtitle "Configuring MCA framework psquash" 51739 51740 51741 51742 51743 # setup for framework 51744 all_components= 51745 static_components= 51746 dso_components= 51747 static_ltlibs= 51748 51749 # Ensure that the directory where the #include file is to live 51750 # exists. Need to do this for VPATH builds, because the directory 51751 # may not exist yet. For the "common" type, it's not really a 51752 # component, so it doesn't have a base. 51753 outdir=src/mca/psquash/base 51754 as_dir=$outdir; as_fn_mkdir_p 51755 51756 # emit Makefile rule 51757 ac_config_files="$ac_config_files src/mca/psquash/Makefile" 51758 51759 51760 # remove any previously generated #include files 51761 outfile_real=$outdir/static-components.h 51762 outfile=$outfile_real.new 51763 rm -f $outfile $outfile.struct $outfile.extern 51764 touch $outfile.struct $outfile.extern 51765 51766 # print some nice messages about what we're about to do... 51767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework psquash" >&5 51768$as_echo_n "checking for no configure components in framework psquash... " >&6; } 51769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: flex128, native" >&5 51770$as_echo "flex128, native" >&6; } 51771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework psquash" >&5 51772$as_echo_n "checking for m4 configure components in framework psquash... " >&6; } 51773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 51774$as_echo "" >&6; } 51775 51776 # If there are components in the no configure list, but we're 51777 # doing one of the "special" selection logics, abort with a 51778 # reasonable message. 51779 51780 51781 51782 # run the configure logic for the no-config components 51783 51784 pmix_show_subsubsubtitle "MCA component psquash:flex128 (no configuration)" 51785 51786 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 51787 51788 51789 51790 component_path="$srcdir/src/mca/psquash/flex128" 51791 want_component=0 51792 51793 # build if: 51794 # - the component type is direct and we are that component 51795 # - there is no pmix_ignore file 51796 # - there is an pmix_ignore, but there is an empty pmix_unignore 51797 # - there is an pmix_ignore, but username is in pmix_unignore 51798 if test -d $component_path ; then 51799 # decide if we want the component to be built or not. This 51800 # is spread out because some of the logic is a little complex 51801 # and test's syntax isn't exactly the greatest. We want to 51802 # build the component by default. 51803 want_component=1 51804 if test -f $component_path/.pmix_ignore ; then 51805 # If there is an pmix_ignore file, don't build 51806 # the component. Note that this decision can be 51807 # overridden by the unignore logic below. 51808 want_component=0 51809 fi 51810 if test -f $component_path/.pmix_unignore ; then 51811 # if there is an empty pmix_unignore, that is 51812 # equivalent to having your userid in the unignore file. 51813 # If userid is in the file, unignore the ignore file. 51814 if test ! -s $component_path/.pmix_unignore ; then 51815 want_component=1 51816 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 51817 want_component=1 51818 fi 51819 fi 51820 # if this component type is direct and we are not it, we don't want 51821 # to be built. Otherwise, we do want to be built. 51822 if test ! -z "$DIRECT_psquash" ; then 51823 if test "$DIRECT_psquash" = "flex128" ; then 51824 want_component=1 51825 else 51826 want_component=0 51827 fi 51828 fi 51829 fi 51830 51831 # if we were explicitly disabled, don't build :) 51832 if test "$DISABLE_psquash" = "1"; then : 51833 want_component=0 51834fi 51835 if test "$DISABLE_psquash_flex128" = "1"; then : 51836 want_component=0 51837fi 51838 51839 if test "$want_component" = "1"; then : 51840 should_build=1 51841else 51842 should_build=0 51843fi 51844 51845 51846 SHARED_FRAMEWORK="$DSO_psquash" 51847 SHARED_COMPONENT="$DSO_psquash_flex128" 51848 51849 STATIC_FRAMEWORK="$STATIC_psquash" 51850 STATIC_COMPONENT="$STATIC_psquash_flex128" 51851 51852 shared_mode_override=static 51853 51854 # Setup for either shared or static 51855 if test "$STATIC_FRAMEWORK" = "1" || \ 51856 test "$STATIC_COMPONENT" = "1" || \ 51857 test "$STATIC_all" = "1" ; then 51858 compile_mode="static" 51859 elif test "$shared_mode_override" = "dso" || \ 51860 test "$SHARED_FRAMEWORK" = "1" || \ 51861 test "$SHARED_COMPONENT" = "1" || \ 51862 test "$DSO_all" = "1"; then 51863 compile_mode="dso" 51864 else 51865 compile_mode="static" 51866 fi 51867 51868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psquash:flex128 compile mode" >&5 51869$as_echo_n "checking for MCA component psquash:flex128 compile mode... " >&6; } 51870 if test "$DIRECT_psquash" = "flex128" ; then 51871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 51872$as_echo "$compile_mode - direct" >&6; } 51873 else 51874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 51875$as_echo "$compile_mode" >&6; } 51876 fi 51877 51878 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 51879 51880 if test "$should_build" = "1" ; then 51881 51882 51883 51884 # See if it dropped an output file for us to pick up some 51885 # shell variables in. 51886 infile="$srcdir/src/mca/psquash/flex128/post_configure.sh" 51887 51888 # Add this subdir to the mast list of all MCA component subdirs 51889 all_components="$all_components flex128" 51890 51891 if test "$compile_mode" = "dso" ; then 51892 dso_components="$dso_components flex128" 51893 else 51894 if test "psquash" = "common"; then 51895 # Static libraries in "common" frameworks are installed, and 51896 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 51897 # set. 51898 static_ltlibs="mca/psquash/flex128/lib${PMIX_LIB_PREFIX}mca_psquash_flex128.la $static_ltlibs" 51899 else 51900 # Other frameworks do not have to obey the 51901 # $FRAMEWORK_LIB_PREFIX prefix. 51902 static_ltlibs="mca/psquash/flex128/libmca_psquash_flex128.la $static_ltlibs" 51903 fi 51904 echo "extern const pmix_mca_base_component_t mca_psquash_flex128_component;" >> $outfile.extern 51905 echo " &mca_psquash_flex128_component, " >> $outfile.struct 51906 static_components="$static_components flex128" 51907 fi 51908 51909 # Output pretty results 51910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psquash:flex128 can compile" >&5 51911$as_echo_n "checking if MCA component psquash:flex128 can compile... " >&6; } 51912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51913$as_echo "yes" >&6; } 51914 51915 if test -f $infile; then 51916 # check for direct call header to include. This will be 51917 # AC_SUBSTed later. 51918 if test "$DIRECT_psquash" = "flex128" ; then 51919 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 51920 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 51921 str="MCA_pmix_psquash_DIRECT_CALL_HEADER=$line" 51922 eval $str 51923 else 51924as_fn_error $? "*** psquash component flex128 was supposed to be direct-called, but 51925*** does not appear to support direct calling. 51926*** Aborting" "$LINENO" 5 51927 fi 51928 fi 51929 else 51930 # were we supposed to have found something in the 51931 # post_configure.sh, but the file didn't exist? 51932 if test "$DIRECT_psquash" = "flex128" ; then 51933as_fn_error $? "*** psquash component flex128 was supposed to be direct-called, but 51934*** does not appear to support direct calling. 51935*** Aborting" "$LINENO" 5 51936 fi 51937 fi 51938 51939 else 51940 51941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psquash:flex128 can compile" >&5 51942$as_echo_n "checking if MCA component psquash:flex128 can compile... " >&6; } 51943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51944$as_echo "no" >&6; } 51945 51946 # If this component was requested as the default for this 51947 # type, then abort. 51948 if test "$with_psquash" = "flex128" ; then 51949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"flex128\" failed to configure properly" >&5 51950$as_echo "$as_me: WARNING: MCA component \"flex128\" failed to configure properly" >&2;} 51951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 51952$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 51953 as_fn_error $? "Cannot continue" "$LINENO" 5 51954 fi 51955 51956 if test ! -z "$DIRECT_psquash" ; then 51957 if test "$DIRECT_psquash" = "flex128" ; then 51958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"flex128\" failed to configure properly" >&5 51959$as_echo "$as_me: WARNING: MCA component \"flex128\" failed to configure properly" >&2;} 51960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 51961$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 51962 as_fn_error $? "Cannot continue" "$LINENO" 5 51963 fi 51964 fi 51965 51966 # add component to all component list 51967 all_components="$all_components flex128" 51968 fi 51969 51970 # set the AM_CONDITIONAL on how we should build 51971 if test "$compile_mode" = "dso" ; then 51972 BUILD_pmix_psquash_flex128_DSO=1 51973 else 51974 BUILD_pmix_psquash_flex128_DSO=0 51975 fi 51976 if test "$BUILD_pmix_psquash_flex128_DSO" = "1"; then 51977 MCA_BUILD_pmix_psquash_flex128_DSO_TRUE= 51978 MCA_BUILD_pmix_psquash_flex128_DSO_FALSE='#' 51979else 51980 MCA_BUILD_pmix_psquash_flex128_DSO_TRUE='#' 51981 MCA_BUILD_pmix_psquash_flex128_DSO_FALSE= 51982fi 51983 51984 51985 ac_config_files="$ac_config_files src/mca/psquash/flex128/Makefile" 51986 51987 51988 unset compile_mode 51989 51990 pmix_show_subsubsubtitle "MCA component psquash:native (no configuration)" 51991 51992 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 51993 51994 51995 51996 component_path="$srcdir/src/mca/psquash/native" 51997 want_component=0 51998 51999 # build if: 52000 # - the component type is direct and we are that component 52001 # - there is no pmix_ignore file 52002 # - there is an pmix_ignore, but there is an empty pmix_unignore 52003 # - there is an pmix_ignore, but username is in pmix_unignore 52004 if test -d $component_path ; then 52005 # decide if we want the component to be built or not. This 52006 # is spread out because some of the logic is a little complex 52007 # and test's syntax isn't exactly the greatest. We want to 52008 # build the component by default. 52009 want_component=1 52010 if test -f $component_path/.pmix_ignore ; then 52011 # If there is an pmix_ignore file, don't build 52012 # the component. Note that this decision can be 52013 # overridden by the unignore logic below. 52014 want_component=0 52015 fi 52016 if test -f $component_path/.pmix_unignore ; then 52017 # if there is an empty pmix_unignore, that is 52018 # equivalent to having your userid in the unignore file. 52019 # If userid is in the file, unignore the ignore file. 52020 if test ! -s $component_path/.pmix_unignore ; then 52021 want_component=1 52022 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 52023 want_component=1 52024 fi 52025 fi 52026 # if this component type is direct and we are not it, we don't want 52027 # to be built. Otherwise, we do want to be built. 52028 if test ! -z "$DIRECT_psquash" ; then 52029 if test "$DIRECT_psquash" = "native" ; then 52030 want_component=1 52031 else 52032 want_component=0 52033 fi 52034 fi 52035 fi 52036 52037 # if we were explicitly disabled, don't build :) 52038 if test "$DISABLE_psquash" = "1"; then : 52039 want_component=0 52040fi 52041 if test "$DISABLE_psquash_native" = "1"; then : 52042 want_component=0 52043fi 52044 52045 if test "$want_component" = "1"; then : 52046 should_build=1 52047else 52048 should_build=0 52049fi 52050 52051 52052 SHARED_FRAMEWORK="$DSO_psquash" 52053 SHARED_COMPONENT="$DSO_psquash_native" 52054 52055 STATIC_FRAMEWORK="$STATIC_psquash" 52056 STATIC_COMPONENT="$STATIC_psquash_native" 52057 52058 shared_mode_override=static 52059 52060 # Setup for either shared or static 52061 if test "$STATIC_FRAMEWORK" = "1" || \ 52062 test "$STATIC_COMPONENT" = "1" || \ 52063 test "$STATIC_all" = "1" ; then 52064 compile_mode="static" 52065 elif test "$shared_mode_override" = "dso" || \ 52066 test "$SHARED_FRAMEWORK" = "1" || \ 52067 test "$SHARED_COMPONENT" = "1" || \ 52068 test "$DSO_all" = "1"; then 52069 compile_mode="dso" 52070 else 52071 compile_mode="static" 52072 fi 52073 52074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psquash:native compile mode" >&5 52075$as_echo_n "checking for MCA component psquash:native compile mode... " >&6; } 52076 if test "$DIRECT_psquash" = "native" ; then 52077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 52078$as_echo "$compile_mode - direct" >&6; } 52079 else 52080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 52081$as_echo "$compile_mode" >&6; } 52082 fi 52083 52084 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 52085 52086 if test "$should_build" = "1" ; then 52087 52088 52089 52090 # See if it dropped an output file for us to pick up some 52091 # shell variables in. 52092 infile="$srcdir/src/mca/psquash/native/post_configure.sh" 52093 52094 # Add this subdir to the mast list of all MCA component subdirs 52095 all_components="$all_components native" 52096 52097 if test "$compile_mode" = "dso" ; then 52098 dso_components="$dso_components native" 52099 else 52100 if test "psquash" = "common"; then 52101 # Static libraries in "common" frameworks are installed, and 52102 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 52103 # set. 52104 static_ltlibs="mca/psquash/native/lib${PMIX_LIB_PREFIX}mca_psquash_native.la $static_ltlibs" 52105 else 52106 # Other frameworks do not have to obey the 52107 # $FRAMEWORK_LIB_PREFIX prefix. 52108 static_ltlibs="mca/psquash/native/libmca_psquash_native.la $static_ltlibs" 52109 fi 52110 echo "extern const pmix_mca_base_component_t mca_psquash_native_component;" >> $outfile.extern 52111 echo " &mca_psquash_native_component, " >> $outfile.struct 52112 static_components="$static_components native" 52113 fi 52114 52115 # Output pretty results 52116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psquash:native can compile" >&5 52117$as_echo_n "checking if MCA component psquash:native can compile... " >&6; } 52118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52119$as_echo "yes" >&6; } 52120 52121 if test -f $infile; then 52122 # check for direct call header to include. This will be 52123 # AC_SUBSTed later. 52124 if test "$DIRECT_psquash" = "native" ; then 52125 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 52126 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 52127 str="MCA_pmix_psquash_DIRECT_CALL_HEADER=$line" 52128 eval $str 52129 else 52130as_fn_error $? "*** psquash component native was supposed to be direct-called, but 52131*** does not appear to support direct calling. 52132*** Aborting" "$LINENO" 5 52133 fi 52134 fi 52135 else 52136 # were we supposed to have found something in the 52137 # post_configure.sh, but the file didn't exist? 52138 if test "$DIRECT_psquash" = "native" ; then 52139as_fn_error $? "*** psquash component native was supposed to be direct-called, but 52140*** does not appear to support direct calling. 52141*** Aborting" "$LINENO" 5 52142 fi 52143 fi 52144 52145 else 52146 52147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psquash:native can compile" >&5 52148$as_echo_n "checking if MCA component psquash:native can compile... " >&6; } 52149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52150$as_echo "no" >&6; } 52151 52152 # If this component was requested as the default for this 52153 # type, then abort. 52154 if test "$with_psquash" = "native" ; then 52155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5 52156$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;} 52157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 52158$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 52159 as_fn_error $? "Cannot continue" "$LINENO" 5 52160 fi 52161 52162 if test ! -z "$DIRECT_psquash" ; then 52163 if test "$DIRECT_psquash" = "native" ; then 52164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5 52165$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;} 52166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 52167$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 52168 as_fn_error $? "Cannot continue" "$LINENO" 5 52169 fi 52170 fi 52171 52172 # add component to all component list 52173 all_components="$all_components native" 52174 fi 52175 52176 # set the AM_CONDITIONAL on how we should build 52177 if test "$compile_mode" = "dso" ; then 52178 BUILD_pmix_psquash_native_DSO=1 52179 else 52180 BUILD_pmix_psquash_native_DSO=0 52181 fi 52182 if test "$BUILD_pmix_psquash_native_DSO" = "1"; then 52183 MCA_BUILD_pmix_psquash_native_DSO_TRUE= 52184 MCA_BUILD_pmix_psquash_native_DSO_FALSE='#' 52185else 52186 MCA_BUILD_pmix_psquash_native_DSO_TRUE='#' 52187 MCA_BUILD_pmix_psquash_native_DSO_FALSE= 52188fi 52189 52190 52191 ac_config_files="$ac_config_files src/mca/psquash/native/Makefile" 52192 52193 52194 unset compile_mode 52195 52196 52197 # configure components that use built-in configuration scripts 52198 52199 52200 52201 best_mca_component_priority=0 52202 components_looking_for_succeed=1 52203 components_last_result=0 52204 52205 52206 # configure components that provide their own configure script. 52207 # It would be really hard to run these for "find first that 52208 # works", so we don't :) 52209 52210 52211 52212 if test "1" != "0"; then : 52213 52214 for component_path in $srcdir/src/mca/psquash/* ; do 52215 component="`basename $component_path`" 52216 if test -d $component_path && test -x $component_path/configure ; then 52217 pmix_show_subsubsubtitle "MCA component psquash:$component (need to configure)" 52218 52219 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 52220 52221 52222 52223 component_path="$srcdir/src/mca/psquash/$component" 52224 want_component=0 52225 52226 # build if: 52227 # - the component type is direct and we are that component 52228 # - there is no pmix_ignore file 52229 # - there is an pmix_ignore, but there is an empty pmix_unignore 52230 # - there is an pmix_ignore, but username is in pmix_unignore 52231 if test -d $component_path ; then 52232 # decide if we want the component to be built or not. This 52233 # is spread out because some of the logic is a little complex 52234 # and test's syntax isn't exactly the greatest. We want to 52235 # build the component by default. 52236 want_component=1 52237 if test -f $component_path/.pmix_ignore ; then 52238 # If there is an pmix_ignore file, don't build 52239 # the component. Note that this decision can be 52240 # overridden by the unignore logic below. 52241 want_component=0 52242 fi 52243 if test -f $component_path/.pmix_unignore ; then 52244 # if there is an empty pmix_unignore, that is 52245 # equivalent to having your userid in the unignore file. 52246 # If userid is in the file, unignore the ignore file. 52247 if test ! -s $component_path/.pmix_unignore ; then 52248 want_component=1 52249 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 52250 want_component=1 52251 fi 52252 fi 52253 # if this component type is direct and we are not it, we don't want 52254 # to be built. Otherwise, we do want to be built. 52255 if test ! -z "$DIRECT_psquash" ; then 52256 if test "$DIRECT_psquash" = "$component" ; then 52257 want_component=1 52258 else 52259 want_component=0 52260 fi 52261 fi 52262 fi 52263 52264 # if we were explicitly disabled, don't build :) 52265 if test "$DISABLE_psquash" = "1"; then : 52266 want_component=0 52267fi 52268 str="DISABLED_COMPONENT_CHECK=\$DISABLE_psquash_$component" 52269 eval $str 52270 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 52271 want_component=0 52272 fi 52273 52274 if test "$want_component" = "1"; then : 52275 should_build=1 52276else 52277 should_build=0 52278fi 52279 52280 52281 SHARED_FRAMEWORK="$DSO_psquash" 52282 str="SHARED_COMPONENT=\$DSO_psquash_$component" 52283 eval $str 52284 52285 STATIC_FRAMEWORK="$STATIC_psquash" 52286 str="STATIC_COMPONENT=\$STATIC_psquash_$component" 52287 eval $str 52288 52289 shared_mode_override=static 52290 52291 # Setup for either shared or static 52292 if test "$STATIC_FRAMEWORK" = "1" || \ 52293 test "$STATIC_COMPONENT" = "1" || \ 52294 test "$STATIC_all" = "1" ; then 52295 compile_mode="static" 52296 elif test "$shared_mode_override" = "dso" || \ 52297 test "$SHARED_FRAMEWORK" = "1" || \ 52298 test "$SHARED_COMPONENT" = "1" || \ 52299 test "$DSO_all" = "1"; then 52300 compile_mode="dso" 52301 else 52302 compile_mode="static" 52303 fi 52304 52305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psquash:$component compile mode" >&5 52306$as_echo_n "checking for MCA component psquash:$component compile mode... " >&6; } 52307 if test "$DIRECT_psquash" = "$component" ; then 52308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 52309$as_echo "$compile_mode - direct" >&6; } 52310 else 52311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 52312$as_echo "$compile_mode" >&6; } 52313 fi 52314 52315 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 52316 52317 if test "$should_build" = "1" ; then 52318 52319 52320 52321 # Is the private index set? If not, set it. 52322 if test "x$pmix_scope_index" = "x"; then 52323 pmix_scope_index=1 52324 fi 52325 52326 # First, check to see if any of these variables are already set. 52327 # This is a simple sanity check to ensure we're not already 52328 # overwriting pre-existing variables (that have a non-empty 52329 # value). It's not a perfect check, but at least it's something. 52330 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 52331 pmix_str="pmix_str=\"\$$pmix_var\"" 52332 eval $pmix_str 52333 52334 if test "x$pmix_str" != "x"; then 52335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 52336$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 52337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 52338$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 52339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 52340$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 52341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 52342$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 52343 as_fn_error $? "Cannot continue" "$LINENO" 5 52344 fi 52345 done 52346 52347 # Ok, we passed the simple sanity check. Save all these names so 52348 # that we can unset them at the end of the scope. 52349 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 52350 eval $pmix_str 52351 unset pmix_str 52352 52353 env | grep pmix_scope 52354 pmix_scope_index=`expr $pmix_scope_index + 1` 52355 52356 52357# 52358# Invoke configure in a specific subdirectory. 52359# 52360# src/mca/psquash/$component is the directory to invoke in 52361# $pmix_subdir_args is the list of arguments to pass 52362# should_build=1 is actions to execute upon success 52363# should_build=0 is actions to execute upon failure 52364# 52365subdir_dir="src/mca/psquash/$component" 52366subdir_args="$pmix_subdir_args" 52367subdir_success="should_build=1" 52368subdir_failure="should_build=0" 52369 52370# 52371# Sanity checks 52372# 52373 52374if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 52375 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 52376$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 52377 52378 # 52379 # Gotta check where srcdir is for VPATH builds. If srcdir is not 52380 # ., then we need to mkdir the subdir. Otherwise, we can just cd 52381 # into it. 52382 # 52383 52384 case $srcdir in 52385 .) 52386 ;; 52387 *) 52388 { case $subdir_dir in 52389 [\\/]* | ?:[\\/]* ) total_dir=;; 52390 *) total_dir=.;; 52391 esac 52392 temp=$subdir_dir 52393 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 52394 case $dir_part in 52395 # Skip DOS drivespec 52396 ?:) total_dir=$dir_part ;; 52397 *) total_dir=$total_dir/$dir_part 52398 test -d "$total_dir" || 52399 mkdir "$total_dir" || 52400 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 52401 ;; 52402 esac 52403 done; } 52404 52405 if test -d ./$subdir_dir; then :; 52406 else 52407 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 52408 fi 52409 ;; 52410 esac 52411 52412 # 52413 # Move into the target directory 52414 # 52415 52416 subdir_parent=`pwd` 52417 cd $subdir_dir 52418 52419 # 52420 # Make a "../" for each directory in $subdir_dir. 52421 # 52422 52423 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 52424 # 52425 # Construct the --srcdir argument 52426 # 52427 52428 case $srcdir in 52429 .) 52430 # In place 52431 subdir_srcdir="$srcdir" 52432 ;; 52433 [\\/]* | ?:[\\/]* ) 52434 # Absolute path 52435 subdir_srcdir="$srcdir/$subdir_dir" 52436 ;; 52437 *) 52438 # Relative path 52439 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 52440 ;; 52441 esac 52442 52443 # 52444 # Construct the --cache-file argument 52445 # 52446 52447 # BWB - subdir caching is a pain since we change CFLAGS and all that. 52448 # Just disable it for now 52449 subdir_cache_file="/dev/null" 52450 52451 # 52452 # Invoke the configure script in the subdirectory 52453 # 52454 52455 sub_configure="$SHELL '$subdir_srcdir/configure'" 52456 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 52457$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 52458 eval "$sub_configure $subdir_args \ 52459 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 52460 if test "$?" = "0"; then 52461 eval $subdir_success 52462 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 52463$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 52464 else 52465 eval $subdir_failure 52466 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 52467$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 52468 fi 52469 52470 # 52471 # Go back to the topdir 52472 # 52473 52474 cd $subdir_parent 52475fi 52476 52477# 52478# Clean up 52479# 52480 52481 52482 # Unwind the index 52483 pmix_scope_index=`expr $pmix_scope_index - 1` 52484 pmix_scope_test=`expr $pmix_scope_index \> 0` 52485 if test "$pmix_scope_test" = "0"; then 52486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 52487$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 52488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 52489$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 52490 as_fn_error $? "Cannot continue" "$LINENO" 5 52491 fi 52492 52493 # Get the variable names from that index 52494 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 52495 eval $pmix_str 52496 52497 # Iterate over all the variables and unset them all 52498 for pmix_var in $pmix_str; do 52499 unset $pmix_var 52500 done 52501 52502 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 52503 fi 52504 52505 if test "$should_build" = "1" ; then 52506 # do some extra work to pass flags back from the 52507 # top-level configure, the way a configure.m4 52508 # component would. 52509 infile="$srcdir/src/mca/psquash/all_components/post_configure.sh" 52510 if test -f $infile; then 52511 52512 # First check for the ABORT tag 52513 line="`$GREP ABORT= $infile | cut -d= -f2-`" 52514 if test -n "$line" && test "$line" != "no"; then 52515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 52516$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 52517 as_fn_error $? "cannot continue" "$LINENO" 5 52518 fi 52519 fi 52520 52521 52522 52523 52524 # See if it dropped an output file for us to pick up some 52525 # shell variables in. 52526 infile="$srcdir/src/mca/psquash/$component/post_configure.sh" 52527 52528 # Add this subdir to the mast list of all MCA component subdirs 52529 all_components="$all_components $component" 52530 52531 if test "$compile_mode" = "dso" ; then 52532 dso_components="$dso_components $component" 52533 else 52534 if test "psquash" = "common"; then 52535 # Static libraries in "common" frameworks are installed, and 52536 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 52537 # set. 52538 static_ltlibs="mca/psquash/$component/lib${PMIX_LIB_PREFIX}mca_psquash_$component.la $static_ltlibs" 52539 else 52540 # Other frameworks do not have to obey the 52541 # $FRAMEWORK_LIB_PREFIX prefix. 52542 static_ltlibs="mca/psquash/$component/libmca_psquash_$component.la $static_ltlibs" 52543 fi 52544 echo "extern const pmix_mca_base_component_t mca_psquash_$component_component;" >> $outfile.extern 52545 echo " &mca_psquash_$component_component, " >> $outfile.struct 52546 static_components="$static_components $component" 52547 fi 52548 52549 # Output pretty results 52550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psquash:$component can compile" >&5 52551$as_echo_n "checking if MCA component psquash:$component can compile... " >&6; } 52552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52553$as_echo "yes" >&6; } 52554 52555 if test -f $infile; then 52556 # check for direct call header to include. This will be 52557 # AC_SUBSTed later. 52558 if test "$DIRECT_psquash" = "$component" ; then 52559 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 52560 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 52561 str="MCA_pmix_psquash_DIRECT_CALL_HEADER=$line" 52562 eval $str 52563 else 52564as_fn_error $? "*** psquash component $component was supposed to be direct-called, but 52565*** does not appear to support direct calling. 52566*** Aborting" "$LINENO" 5 52567 fi 52568 fi 52569 else 52570 # were we supposed to have found something in the 52571 # post_configure.sh, but the file didn't exist? 52572 if test "$DIRECT_psquash" = "$component" ; then 52573as_fn_error $? "*** psquash component $component was supposed to be direct-called, but 52574*** does not appear to support direct calling. 52575*** Aborting" "$LINENO" 5 52576 fi 52577 fi 52578 52579 else 52580 52581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psquash:$component can compile" >&5 52582$as_echo_n "checking if MCA component psquash:$component can compile... " >&6; } 52583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52584$as_echo "no" >&6; } 52585 52586 # If this component was requested as the default for this 52587 # type, then abort. 52588 if test "$with_psquash" = "$component" ; then 52589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 52590$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 52591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 52592$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 52593 as_fn_error $? "Cannot continue" "$LINENO" 5 52594 fi 52595 52596 if test ! -z "$DIRECT_psquash" ; then 52597 if test "$DIRECT_psquash" = "$component" ; then 52598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 52599$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 52600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 52601$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 52602 as_fn_error $? "Cannot continue" "$LINENO" 5 52603 fi 52604 fi 52605 52606 fi 52607 fi 52608 done 52609 52610fi 52611 52612 MCA_pmix_psquash_ALL_COMPONENTS="$all_components" 52613 MCA_pmix_psquash_STATIC_COMPONENTS="$static_components" 52614 MCA_pmix_psquash_DSO_COMPONENTS="$dso_components" 52615 MCA_pmix_psquash_STATIC_LTLIBS="$static_ltlibs" 52616 52617 52618 52619 52620 52621 52622 52623 MCA_pmix_psquash_ALL_SUBDIRS= 52624 for item in $all_components ; do 52625 MCA_pmix_psquash_ALL_SUBDIRS="$MCA_pmix_psquash_ALL_SUBDIRS mca/psquash/$item" 52626 done 52627 52628 52629 52630 MCA_pmix_psquash_STATIC_SUBDIRS= 52631 for item in $static_components ; do 52632 MCA_pmix_psquash_STATIC_SUBDIRS="$MCA_pmix_psquash_STATIC_SUBDIRS mca/psquash/$item" 52633 done 52634 52635 52636 52637 MCA_pmix_psquash_DSO_SUBDIRS= 52638 for item in $dso_components ; do 52639 MCA_pmix_psquash_DSO_SUBDIRS="$MCA_pmix_psquash_DSO_SUBDIRS mca/psquash/$item" 52640 done 52641 52642 52643 52644 # Create the final .h file that will be included in the type's 52645 # top-level glue. This lists all the static components. We don't 52646 # need to do this for "common". 52647 if test "psquash" != "common"; then 52648 cat > $outfile <<EOF 52649/* 52650 * \$HEADER\$ 52651 */ 52652#if defined(c_plusplus) || defined(__cplusplus) 52653extern "C" { 52654#endif 52655 52656`cat $outfile.extern` 52657 52658const pmix_mca_base_component_t *mca_psquash_base_static_components[] = { 52659`cat $outfile.struct` 52660 NULL 52661}; 52662 52663#if defined(c_plusplus) || defined(__cplusplus) 52664} 52665#endif 52666 52667EOF 52668 # Only replace the header file if a) it doesn't previously 52669 # exist, or b) the contents are different. Do this to not 52670 # trigger recompilation of certain .c files just because the 52671 # timestamp changed on $outfile_real (similar to the way AC 52672 # handles AC_CONFIG_HEADER files). 52673 diff $outfile $outfile_real > /dev/null 2>&1 52674 if test "$?" != "0"; then 52675 mv $outfile $outfile_real 52676 else 52677 rm -f $outfile 52678 fi 52679 fi 52680 rm -f $outfile.struct $outfile.extern 52681 52682 unset all_components static_components dso_components outfile outfile_real 52683 52684 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS ptl" 52685 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/ptl" 52686 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_ptl_ALL_SUBDIRS)" 52687 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_ptl_DSO_SUBDIRS)" 52688 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_ptl_STATIC_SUBDIRS)" 52689 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/ptl/libmca_ptl.la" 52690 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_ptl_STATIC_LTLIBS)" 52691 52692 pmix_show_subsubtitle "Configuring MCA framework ptl" 52693 52694 52695 52696 52697 # setup for framework 52698 all_components= 52699 static_components= 52700 dso_components= 52701 static_ltlibs= 52702 52703 # Ensure that the directory where the #include file is to live 52704 # exists. Need to do this for VPATH builds, because the directory 52705 # may not exist yet. For the "common" type, it's not really a 52706 # component, so it doesn't have a base. 52707 outdir=src/mca/ptl/base 52708 as_dir=$outdir; as_fn_mkdir_p 52709 52710 # emit Makefile rule 52711 ac_config_files="$ac_config_files src/mca/ptl/Makefile" 52712 52713 52714 # remove any previously generated #include files 52715 outfile_real=$outdir/static-components.h 52716 outfile=$outfile_real.new 52717 rm -f $outfile $outfile.struct $outfile.extern 52718 touch $outfile.struct $outfile.extern 52719 52720 # print some nice messages about what we're about to do... 52721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework ptl" >&5 52722$as_echo_n "checking for no configure components in framework ptl... " >&6; } 52723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcp, usock" >&5 52724$as_echo "tcp, usock" >&6; } 52725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework ptl" >&5 52726$as_echo_n "checking for m4 configure components in framework ptl... " >&6; } 52727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 52728$as_echo "" >&6; } 52729 52730 # If there are components in the no configure list, but we're 52731 # doing one of the "special" selection logics, abort with a 52732 # reasonable message. 52733 52734 52735 52736 # run the configure logic for the no-config components 52737 52738 pmix_show_subsubsubtitle "MCA component ptl:tcp (no configuration)" 52739 52740 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 52741 52742 52743 52744 component_path="$srcdir/src/mca/ptl/tcp" 52745 want_component=0 52746 52747 # build if: 52748 # - the component type is direct and we are that component 52749 # - there is no pmix_ignore file 52750 # - there is an pmix_ignore, but there is an empty pmix_unignore 52751 # - there is an pmix_ignore, but username is in pmix_unignore 52752 if test -d $component_path ; then 52753 # decide if we want the component to be built or not. This 52754 # is spread out because some of the logic is a little complex 52755 # and test's syntax isn't exactly the greatest. We want to 52756 # build the component by default. 52757 want_component=1 52758 if test -f $component_path/.pmix_ignore ; then 52759 # If there is an pmix_ignore file, don't build 52760 # the component. Note that this decision can be 52761 # overridden by the unignore logic below. 52762 want_component=0 52763 fi 52764 if test -f $component_path/.pmix_unignore ; then 52765 # if there is an empty pmix_unignore, that is 52766 # equivalent to having your userid in the unignore file. 52767 # If userid is in the file, unignore the ignore file. 52768 if test ! -s $component_path/.pmix_unignore ; then 52769 want_component=1 52770 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 52771 want_component=1 52772 fi 52773 fi 52774 # if this component type is direct and we are not it, we don't want 52775 # to be built. Otherwise, we do want to be built. 52776 if test ! -z "$DIRECT_ptl" ; then 52777 if test "$DIRECT_ptl" = "tcp" ; then 52778 want_component=1 52779 else 52780 want_component=0 52781 fi 52782 fi 52783 fi 52784 52785 # if we were explicitly disabled, don't build :) 52786 if test "$DISABLE_ptl" = "1"; then : 52787 want_component=0 52788fi 52789 if test "$DISABLE_ptl_tcp" = "1"; then : 52790 want_component=0 52791fi 52792 52793 if test "$want_component" = "1"; then : 52794 should_build=1 52795else 52796 should_build=0 52797fi 52798 52799 52800 SHARED_FRAMEWORK="$DSO_ptl" 52801 SHARED_COMPONENT="$DSO_ptl_tcp" 52802 52803 STATIC_FRAMEWORK="$STATIC_ptl" 52804 STATIC_COMPONENT="$STATIC_ptl_tcp" 52805 52806 shared_mode_override=static 52807 52808 # Setup for either shared or static 52809 if test "$STATIC_FRAMEWORK" = "1" || \ 52810 test "$STATIC_COMPONENT" = "1" || \ 52811 test "$STATIC_all" = "1" ; then 52812 compile_mode="static" 52813 elif test "$shared_mode_override" = "dso" || \ 52814 test "$SHARED_FRAMEWORK" = "1" || \ 52815 test "$SHARED_COMPONENT" = "1" || \ 52816 test "$DSO_all" = "1"; then 52817 compile_mode="dso" 52818 else 52819 compile_mode="static" 52820 fi 52821 52822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ptl:tcp compile mode" >&5 52823$as_echo_n "checking for MCA component ptl:tcp compile mode... " >&6; } 52824 if test "$DIRECT_ptl" = "tcp" ; then 52825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 52826$as_echo "$compile_mode - direct" >&6; } 52827 else 52828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 52829$as_echo "$compile_mode" >&6; } 52830 fi 52831 52832 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 52833 52834 if test "$should_build" = "1" ; then 52835 52836 52837 52838 # See if it dropped an output file for us to pick up some 52839 # shell variables in. 52840 infile="$srcdir/src/mca/ptl/tcp/post_configure.sh" 52841 52842 # Add this subdir to the mast list of all MCA component subdirs 52843 all_components="$all_components tcp" 52844 52845 if test "$compile_mode" = "dso" ; then 52846 dso_components="$dso_components tcp" 52847 else 52848 if test "ptl" = "common"; then 52849 # Static libraries in "common" frameworks are installed, and 52850 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 52851 # set. 52852 static_ltlibs="mca/ptl/tcp/lib${PMIX_LIB_PREFIX}mca_ptl_tcp.la $static_ltlibs" 52853 else 52854 # Other frameworks do not have to obey the 52855 # $FRAMEWORK_LIB_PREFIX prefix. 52856 static_ltlibs="mca/ptl/tcp/libmca_ptl_tcp.la $static_ltlibs" 52857 fi 52858 echo "extern const pmix_mca_base_component_t mca_ptl_tcp_component;" >> $outfile.extern 52859 echo " &mca_ptl_tcp_component, " >> $outfile.struct 52860 static_components="$static_components tcp" 52861 fi 52862 52863 # Output pretty results 52864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:tcp can compile" >&5 52865$as_echo_n "checking if MCA component ptl:tcp can compile... " >&6; } 52866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52867$as_echo "yes" >&6; } 52868 52869 if test -f $infile; then 52870 # check for direct call header to include. This will be 52871 # AC_SUBSTed later. 52872 if test "$DIRECT_ptl" = "tcp" ; then 52873 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 52874 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 52875 str="MCA_pmix_ptl_DIRECT_CALL_HEADER=$line" 52876 eval $str 52877 else 52878as_fn_error $? "*** ptl component tcp was supposed to be direct-called, but 52879*** does not appear to support direct calling. 52880*** Aborting" "$LINENO" 5 52881 fi 52882 fi 52883 else 52884 # were we supposed to have found something in the 52885 # post_configure.sh, but the file didn't exist? 52886 if test "$DIRECT_ptl" = "tcp" ; then 52887as_fn_error $? "*** ptl component tcp was supposed to be direct-called, but 52888*** does not appear to support direct calling. 52889*** Aborting" "$LINENO" 5 52890 fi 52891 fi 52892 52893 else 52894 52895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:tcp can compile" >&5 52896$as_echo_n "checking if MCA component ptl:tcp can compile... " >&6; } 52897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52898$as_echo "no" >&6; } 52899 52900 # If this component was requested as the default for this 52901 # type, then abort. 52902 if test "$with_ptl" = "tcp" ; then 52903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5 52904$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} 52905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 52906$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 52907 as_fn_error $? "Cannot continue" "$LINENO" 5 52908 fi 52909 52910 if test ! -z "$DIRECT_ptl" ; then 52911 if test "$DIRECT_ptl" = "tcp" ; then 52912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5 52913$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} 52914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 52915$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 52916 as_fn_error $? "Cannot continue" "$LINENO" 5 52917 fi 52918 fi 52919 52920 # add component to all component list 52921 all_components="$all_components tcp" 52922 fi 52923 52924 # set the AM_CONDITIONAL on how we should build 52925 if test "$compile_mode" = "dso" ; then 52926 BUILD_pmix_ptl_tcp_DSO=1 52927 else 52928 BUILD_pmix_ptl_tcp_DSO=0 52929 fi 52930 if test "$BUILD_pmix_ptl_tcp_DSO" = "1"; then 52931 MCA_BUILD_pmix_ptl_tcp_DSO_TRUE= 52932 MCA_BUILD_pmix_ptl_tcp_DSO_FALSE='#' 52933else 52934 MCA_BUILD_pmix_ptl_tcp_DSO_TRUE='#' 52935 MCA_BUILD_pmix_ptl_tcp_DSO_FALSE= 52936fi 52937 52938 52939 ac_config_files="$ac_config_files src/mca/ptl/tcp/Makefile" 52940 52941 52942 unset compile_mode 52943 52944 pmix_show_subsubsubtitle "MCA component ptl:usock (no configuration)" 52945 52946 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1" 52947 52948 52949 52950 component_path="$srcdir/src/mca/ptl/usock" 52951 want_component=0 52952 52953 # build if: 52954 # - the component type is direct and we are that component 52955 # - there is no pmix_ignore file 52956 # - there is an pmix_ignore, but there is an empty pmix_unignore 52957 # - there is an pmix_ignore, but username is in pmix_unignore 52958 if test -d $component_path ; then 52959 # decide if we want the component to be built or not. This 52960 # is spread out because some of the logic is a little complex 52961 # and test's syntax isn't exactly the greatest. We want to 52962 # build the component by default. 52963 want_component=1 52964 if test -f $component_path/.pmix_ignore ; then 52965 # If there is an pmix_ignore file, don't build 52966 # the component. Note that this decision can be 52967 # overridden by the unignore logic below. 52968 want_component=0 52969 fi 52970 if test -f $component_path/.pmix_unignore ; then 52971 # if there is an empty pmix_unignore, that is 52972 # equivalent to having your userid in the unignore file. 52973 # If userid is in the file, unignore the ignore file. 52974 if test ! -s $component_path/.pmix_unignore ; then 52975 want_component=1 52976 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 52977 want_component=1 52978 fi 52979 fi 52980 # if this component type is direct and we are not it, we don't want 52981 # to be built. Otherwise, we do want to be built. 52982 if test ! -z "$DIRECT_ptl" ; then 52983 if test "$DIRECT_ptl" = "usock" ; then 52984 want_component=1 52985 else 52986 want_component=0 52987 fi 52988 fi 52989 fi 52990 52991 # if we were explicitly disabled, don't build :) 52992 if test "$DISABLE_ptl" = "1"; then : 52993 want_component=0 52994fi 52995 if test "$DISABLE_ptl_usock" = "1"; then : 52996 want_component=0 52997fi 52998 52999 if test "$want_component" = "1"; then : 53000 should_build=1 53001else 53002 should_build=0 53003fi 53004 53005 53006 SHARED_FRAMEWORK="$DSO_ptl" 53007 SHARED_COMPONENT="$DSO_ptl_usock" 53008 53009 STATIC_FRAMEWORK="$STATIC_ptl" 53010 STATIC_COMPONENT="$STATIC_ptl_usock" 53011 53012 shared_mode_override=static 53013 53014 # Setup for either shared or static 53015 if test "$STATIC_FRAMEWORK" = "1" || \ 53016 test "$STATIC_COMPONENT" = "1" || \ 53017 test "$STATIC_all" = "1" ; then 53018 compile_mode="static" 53019 elif test "$shared_mode_override" = "dso" || \ 53020 test "$SHARED_FRAMEWORK" = "1" || \ 53021 test "$SHARED_COMPONENT" = "1" || \ 53022 test "$DSO_all" = "1"; then 53023 compile_mode="dso" 53024 else 53025 compile_mode="static" 53026 fi 53027 53028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ptl:usock compile mode" >&5 53029$as_echo_n "checking for MCA component ptl:usock compile mode... " >&6; } 53030 if test "$DIRECT_ptl" = "usock" ; then 53031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 53032$as_echo "$compile_mode - direct" >&6; } 53033 else 53034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 53035$as_echo "$compile_mode" >&6; } 53036 fi 53037 53038 pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" 53039 53040 if test "$should_build" = "1" ; then 53041 53042 53043 53044 # See if it dropped an output file for us to pick up some 53045 # shell variables in. 53046 infile="$srcdir/src/mca/ptl/usock/post_configure.sh" 53047 53048 # Add this subdir to the mast list of all MCA component subdirs 53049 all_components="$all_components usock" 53050 53051 if test "$compile_mode" = "dso" ; then 53052 dso_components="$dso_components usock" 53053 else 53054 if test "ptl" = "common"; then 53055 # Static libraries in "common" frameworks are installed, and 53056 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 53057 # set. 53058 static_ltlibs="mca/ptl/usock/lib${PMIX_LIB_PREFIX}mca_ptl_usock.la $static_ltlibs" 53059 else 53060 # Other frameworks do not have to obey the 53061 # $FRAMEWORK_LIB_PREFIX prefix. 53062 static_ltlibs="mca/ptl/usock/libmca_ptl_usock.la $static_ltlibs" 53063 fi 53064 echo "extern const pmix_mca_base_component_t mca_ptl_usock_component;" >> $outfile.extern 53065 echo " &mca_ptl_usock_component, " >> $outfile.struct 53066 static_components="$static_components usock" 53067 fi 53068 53069 # Output pretty results 53070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:usock can compile" >&5 53071$as_echo_n "checking if MCA component ptl:usock can compile... " >&6; } 53072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53073$as_echo "yes" >&6; } 53074 53075 if test -f $infile; then 53076 # check for direct call header to include. This will be 53077 # AC_SUBSTed later. 53078 if test "$DIRECT_ptl" = "usock" ; then 53079 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 53080 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 53081 str="MCA_pmix_ptl_DIRECT_CALL_HEADER=$line" 53082 eval $str 53083 else 53084as_fn_error $? "*** ptl component usock was supposed to be direct-called, but 53085*** does not appear to support direct calling. 53086*** Aborting" "$LINENO" 5 53087 fi 53088 fi 53089 else 53090 # were we supposed to have found something in the 53091 # post_configure.sh, but the file didn't exist? 53092 if test "$DIRECT_ptl" = "usock" ; then 53093as_fn_error $? "*** ptl component usock was supposed to be direct-called, but 53094*** does not appear to support direct calling. 53095*** Aborting" "$LINENO" 5 53096 fi 53097 fi 53098 53099 else 53100 53101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:usock can compile" >&5 53102$as_echo_n "checking if MCA component ptl:usock can compile... " >&6; } 53103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53104$as_echo "no" >&6; } 53105 53106 # If this component was requested as the default for this 53107 # type, then abort. 53108 if test "$with_ptl" = "usock" ; then 53109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"usock\" failed to configure properly" >&5 53110$as_echo "$as_me: WARNING: MCA component \"usock\" failed to configure properly" >&2;} 53111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 53112$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 53113 as_fn_error $? "Cannot continue" "$LINENO" 5 53114 fi 53115 53116 if test ! -z "$DIRECT_ptl" ; then 53117 if test "$DIRECT_ptl" = "usock" ; then 53118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"usock\" failed to configure properly" >&5 53119$as_echo "$as_me: WARNING: MCA component \"usock\" failed to configure properly" >&2;} 53120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 53121$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 53122 as_fn_error $? "Cannot continue" "$LINENO" 5 53123 fi 53124 fi 53125 53126 # add component to all component list 53127 all_components="$all_components usock" 53128 fi 53129 53130 # set the AM_CONDITIONAL on how we should build 53131 if test "$compile_mode" = "dso" ; then 53132 BUILD_pmix_ptl_usock_DSO=1 53133 else 53134 BUILD_pmix_ptl_usock_DSO=0 53135 fi 53136 if test "$BUILD_pmix_ptl_usock_DSO" = "1"; then 53137 MCA_BUILD_pmix_ptl_usock_DSO_TRUE= 53138 MCA_BUILD_pmix_ptl_usock_DSO_FALSE='#' 53139else 53140 MCA_BUILD_pmix_ptl_usock_DSO_TRUE='#' 53141 MCA_BUILD_pmix_ptl_usock_DSO_FALSE= 53142fi 53143 53144 53145 ac_config_files="$ac_config_files src/mca/ptl/usock/Makefile" 53146 53147 53148 unset compile_mode 53149 53150 53151 # configure components that use built-in configuration scripts 53152 53153 53154 53155 best_mca_component_priority=0 53156 components_looking_for_succeed=1 53157 components_last_result=0 53158 53159 53160 # configure components that provide their own configure script. 53161 # It would be really hard to run these for "find first that 53162 # works", so we don't :) 53163 53164 53165 53166 if test "1" != "0"; then : 53167 53168 for component_path in $srcdir/src/mca/ptl/* ; do 53169 component="`basename $component_path`" 53170 if test -d $component_path && test -x $component_path/configure ; then 53171 pmix_show_subsubsubtitle "MCA component ptl:$component (need to configure)" 53172 53173 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" 53174 53175 53176 53177 component_path="$srcdir/src/mca/ptl/$component" 53178 want_component=0 53179 53180 # build if: 53181 # - the component type is direct and we are that component 53182 # - there is no pmix_ignore file 53183 # - there is an pmix_ignore, but there is an empty pmix_unignore 53184 # - there is an pmix_ignore, but username is in pmix_unignore 53185 if test -d $component_path ; then 53186 # decide if we want the component to be built or not. This 53187 # is spread out because some of the logic is a little complex 53188 # and test's syntax isn't exactly the greatest. We want to 53189 # build the component by default. 53190 want_component=1 53191 if test -f $component_path/.pmix_ignore ; then 53192 # If there is an pmix_ignore file, don't build 53193 # the component. Note that this decision can be 53194 # overridden by the unignore logic below. 53195 want_component=0 53196 fi 53197 if test -f $component_path/.pmix_unignore ; then 53198 # if there is an empty pmix_unignore, that is 53199 # equivalent to having your userid in the unignore file. 53200 # If userid is in the file, unignore the ignore file. 53201 if test ! -s $component_path/.pmix_unignore ; then 53202 want_component=1 53203 elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then 53204 want_component=1 53205 fi 53206 fi 53207 # if this component type is direct and we are not it, we don't want 53208 # to be built. Otherwise, we do want to be built. 53209 if test ! -z "$DIRECT_ptl" ; then 53210 if test "$DIRECT_ptl" = "$component" ; then 53211 want_component=1 53212 else 53213 want_component=0 53214 fi 53215 fi 53216 fi 53217 53218 # if we were explicitly disabled, don't build :) 53219 if test "$DISABLE_ptl" = "1"; then : 53220 want_component=0 53221fi 53222 str="DISABLED_COMPONENT_CHECK=\$DISABLE_ptl_$component" 53223 eval $str 53224 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then 53225 want_component=0 53226 fi 53227 53228 if test "$want_component" = "1"; then : 53229 should_build=1 53230else 53231 should_build=0 53232fi 53233 53234 53235 SHARED_FRAMEWORK="$DSO_ptl" 53236 str="SHARED_COMPONENT=\$DSO_ptl_$component" 53237 eval $str 53238 53239 STATIC_FRAMEWORK="$STATIC_ptl" 53240 str="STATIC_COMPONENT=\$STATIC_ptl_$component" 53241 eval $str 53242 53243 shared_mode_override=static 53244 53245 # Setup for either shared or static 53246 if test "$STATIC_FRAMEWORK" = "1" || \ 53247 test "$STATIC_COMPONENT" = "1" || \ 53248 test "$STATIC_all" = "1" ; then 53249 compile_mode="static" 53250 elif test "$shared_mode_override" = "dso" || \ 53251 test "$SHARED_FRAMEWORK" = "1" || \ 53252 test "$SHARED_COMPONENT" = "1" || \ 53253 test "$DSO_all" = "1"; then 53254 compile_mode="dso" 53255 else 53256 compile_mode="static" 53257 fi 53258 53259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ptl:$component compile mode" >&5 53260$as_echo_n "checking for MCA component ptl:$component compile mode... " >&6; } 53261 if test "$DIRECT_ptl" = "$component" ; then 53262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 53263$as_echo "$compile_mode - direct" >&6; } 53264 else 53265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 53266$as_echo "$compile_mode" >&6; } 53267 fi 53268 53269 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" 53270 53271 if test "$should_build" = "1" ; then 53272 53273 53274 53275 # Is the private index set? If not, set it. 53276 if test "x$pmix_scope_index" = "x"; then 53277 pmix_scope_index=1 53278 fi 53279 53280 # First, check to see if any of these variables are already set. 53281 # This is a simple sanity check to ensure we're not already 53282 # overwriting pre-existing variables (that have a non-empty 53283 # value). It's not a perfect check, but at least it's something. 53284 for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do 53285 pmix_str="pmix_str=\"\$$pmix_var\"" 53286 eval $pmix_str 53287 53288 if test "x$pmix_str" != "x"; then 53289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 53290$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 53291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 53292$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 53293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 53294$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 53295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 53296$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 53297 as_fn_error $? "Cannot continue" "$LINENO" 5 53298 fi 53299 done 53300 53301 # Ok, we passed the simple sanity check. Save all these names so 53302 # that we can unset them at the end of the scope. 53303 pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" 53304 eval $pmix_str 53305 unset pmix_str 53306 53307 env | grep pmix_scope 53308 pmix_scope_index=`expr $pmix_scope_index + 1` 53309 53310 53311# 53312# Invoke configure in a specific subdirectory. 53313# 53314# src/mca/ptl/$component is the directory to invoke in 53315# $pmix_subdir_args is the list of arguments to pass 53316# should_build=1 is actions to execute upon success 53317# should_build=0 is actions to execute upon failure 53318# 53319subdir_dir="src/mca/ptl/$component" 53320subdir_args="$pmix_subdir_args" 53321subdir_success="should_build=1" 53322subdir_failure="should_build=0" 53323 53324# 53325# Sanity checks 53326# 53327 53328if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then 53329 { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5 53330$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;} 53331 53332 # 53333 # Gotta check where srcdir is for VPATH builds. If srcdir is not 53334 # ., then we need to mkdir the subdir. Otherwise, we can just cd 53335 # into it. 53336 # 53337 53338 case $srcdir in 53339 .) 53340 ;; 53341 *) 53342 { case $subdir_dir in 53343 [\\/]* | ?:[\\/]* ) total_dir=;; 53344 *) total_dir=.;; 53345 esac 53346 temp=$subdir_dir 53347 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do 53348 case $dir_part in 53349 # Skip DOS drivespec 53350 ?:) total_dir=$dir_part ;; 53351 *) total_dir=$total_dir/$dir_part 53352 test -d "$total_dir" || 53353 mkdir "$total_dir" || 53354 as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 53355 ;; 53356 esac 53357 done; } 53358 53359 if test -d ./$subdir_dir; then :; 53360 else 53361 as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 53362 fi 53363 ;; 53364 esac 53365 53366 # 53367 # Move into the target directory 53368 # 53369 53370 subdir_parent=`pwd` 53371 cd $subdir_dir 53372 53373 # 53374 # Make a "../" for each directory in $subdir_dir. 53375 # 53376 53377 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 53378 # 53379 # Construct the --srcdir argument 53380 # 53381 53382 case $srcdir in 53383 .) 53384 # In place 53385 subdir_srcdir="$srcdir" 53386 ;; 53387 [\\/]* | ?:[\\/]* ) 53388 # Absolute path 53389 subdir_srcdir="$srcdir/$subdir_dir" 53390 ;; 53391 *) 53392 # Relative path 53393 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" 53394 ;; 53395 esac 53396 53397 # 53398 # Construct the --cache-file argument 53399 # 53400 53401 # BWB - subdir caching is a pain since we change CFLAGS and all that. 53402 # Just disable it for now 53403 subdir_cache_file="/dev/null" 53404 53405 # 53406 # Invoke the configure script in the subdirectory 53407 # 53408 53409 sub_configure="$SHELL '$subdir_srcdir/configure'" 53410 { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 53411$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} 53412 eval "$sub_configure $subdir_args \ 53413 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" 53414 if test "$?" = "0"; then 53415 eval $subdir_success 53416 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 53417$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} 53418 else 53419 eval $subdir_failure 53420 { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 53421$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} 53422 fi 53423 53424 # 53425 # Go back to the topdir 53426 # 53427 53428 cd $subdir_parent 53429fi 53430 53431# 53432# Clean up 53433# 53434 53435 53436 # Unwind the index 53437 pmix_scope_index=`expr $pmix_scope_index - 1` 53438 pmix_scope_test=`expr $pmix_scope_index \> 0` 53439 if test "$pmix_scope_test" = "0"; then 53440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 53441$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 53442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 53443$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 53444 as_fn_error $? "Cannot continue" "$LINENO" 5 53445 fi 53446 53447 # Get the variable names from that index 53448 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 53449 eval $pmix_str 53450 53451 # Iterate over all the variables and unset them all 53452 for pmix_var in $pmix_str; do 53453 unset $pmix_var 53454 done 53455 53456 pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" 53457 fi 53458 53459 if test "$should_build" = "1" ; then 53460 # do some extra work to pass flags back from the 53461 # top-level configure, the way a configure.m4 53462 # component would. 53463 infile="$srcdir/src/mca/ptl/all_components/post_configure.sh" 53464 if test -f $infile; then 53465 53466 # First check for the ABORT tag 53467 line="`$GREP ABORT= $infile | cut -d= -f2-`" 53468 if test -n "$line" && test "$line" != "no"; then 53469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 53470$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} 53471 as_fn_error $? "cannot continue" "$LINENO" 5 53472 fi 53473 fi 53474 53475 53476 53477 53478 # See if it dropped an output file for us to pick up some 53479 # shell variables in. 53480 infile="$srcdir/src/mca/ptl/$component/post_configure.sh" 53481 53482 # Add this subdir to the mast list of all MCA component subdirs 53483 all_components="$all_components $component" 53484 53485 if test "$compile_mode" = "dso" ; then 53486 dso_components="$dso_components $component" 53487 else 53488 if test "ptl" = "common"; then 53489 # Static libraries in "common" frameworks are installed, and 53490 # therefore must obey the $FRAMEWORK_LIB_PREFIX that was 53491 # set. 53492 static_ltlibs="mca/ptl/$component/lib${PMIX_LIB_PREFIX}mca_ptl_$component.la $static_ltlibs" 53493 else 53494 # Other frameworks do not have to obey the 53495 # $FRAMEWORK_LIB_PREFIX prefix. 53496 static_ltlibs="mca/ptl/$component/libmca_ptl_$component.la $static_ltlibs" 53497 fi 53498 echo "extern const pmix_mca_base_component_t mca_ptl_$component_component;" >> $outfile.extern 53499 echo " &mca_ptl_$component_component, " >> $outfile.struct 53500 static_components="$static_components $component" 53501 fi 53502 53503 # Output pretty results 53504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:$component can compile" >&5 53505$as_echo_n "checking if MCA component ptl:$component can compile... " >&6; } 53506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53507$as_echo "yes" >&6; } 53508 53509 if test -f $infile; then 53510 # check for direct call header to include. This will be 53511 # AC_SUBSTed later. 53512 if test "$DIRECT_ptl" = "$component" ; then 53513 if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then 53514 line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" 53515 str="MCA_pmix_ptl_DIRECT_CALL_HEADER=$line" 53516 eval $str 53517 else 53518as_fn_error $? "*** ptl component $component was supposed to be direct-called, but 53519*** does not appear to support direct calling. 53520*** Aborting" "$LINENO" 5 53521 fi 53522 fi 53523 else 53524 # were we supposed to have found something in the 53525 # post_configure.sh, but the file didn't exist? 53526 if test "$DIRECT_ptl" = "$component" ; then 53527as_fn_error $? "*** ptl component $component was supposed to be direct-called, but 53528*** does not appear to support direct calling. 53529*** Aborting" "$LINENO" 5 53530 fi 53531 fi 53532 53533 else 53534 53535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:$component can compile" >&5 53536$as_echo_n "checking if MCA component ptl:$component can compile... " >&6; } 53537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53538$as_echo "no" >&6; } 53539 53540 # If this component was requested as the default for this 53541 # type, then abort. 53542 if test "$with_ptl" = "$component" ; then 53543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 53544$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 53545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 53546$as_echo "$as_me: WARNING: This component was selected as the default" >&2;} 53547 as_fn_error $? "Cannot continue" "$LINENO" 5 53548 fi 53549 53550 if test ! -z "$DIRECT_ptl" ; then 53551 if test "$DIRECT_ptl" = "$component" ; then 53552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 53553$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} 53554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 53555$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} 53556 as_fn_error $? "Cannot continue" "$LINENO" 5 53557 fi 53558 fi 53559 53560 fi 53561 fi 53562 done 53563 53564fi 53565 53566 MCA_pmix_ptl_ALL_COMPONENTS="$all_components" 53567 MCA_pmix_ptl_STATIC_COMPONENTS="$static_components" 53568 MCA_pmix_ptl_DSO_COMPONENTS="$dso_components" 53569 MCA_pmix_ptl_STATIC_LTLIBS="$static_ltlibs" 53570 53571 53572 53573 53574 53575 53576 53577 MCA_pmix_ptl_ALL_SUBDIRS= 53578 for item in $all_components ; do 53579 MCA_pmix_ptl_ALL_SUBDIRS="$MCA_pmix_ptl_ALL_SUBDIRS mca/ptl/$item" 53580 done 53581 53582 53583 53584 MCA_pmix_ptl_STATIC_SUBDIRS= 53585 for item in $static_components ; do 53586 MCA_pmix_ptl_STATIC_SUBDIRS="$MCA_pmix_ptl_STATIC_SUBDIRS mca/ptl/$item" 53587 done 53588 53589 53590 53591 MCA_pmix_ptl_DSO_SUBDIRS= 53592 for item in $dso_components ; do 53593 MCA_pmix_ptl_DSO_SUBDIRS="$MCA_pmix_ptl_DSO_SUBDIRS mca/ptl/$item" 53594 done 53595 53596 53597 53598 # Create the final .h file that will be included in the type's 53599 # top-level glue. This lists all the static components. We don't 53600 # need to do this for "common". 53601 if test "ptl" != "common"; then 53602 cat > $outfile <<EOF 53603/* 53604 * \$HEADER\$ 53605 */ 53606#if defined(c_plusplus) || defined(__cplusplus) 53607extern "C" { 53608#endif 53609 53610`cat $outfile.extern` 53611 53612const pmix_mca_base_component_t *mca_ptl_base_static_components[] = { 53613`cat $outfile.struct` 53614 NULL 53615}; 53616 53617#if defined(c_plusplus) || defined(__cplusplus) 53618} 53619#endif 53620 53621EOF 53622 # Only replace the header file if a) it doesn't previously 53623 # exist, or b) the contents are different. Do this to not 53624 # trigger recompilation of certain .c files just because the 53625 # timestamp changed on $outfile_real (similar to the way AC 53626 # handles AC_CONFIG_HEADER files). 53627 diff $outfile $outfile_real > /dev/null 2>&1 53628 if test "$?" != "0"; then 53629 mv $outfile $outfile_real 53630 else 53631 rm -f $outfile 53632 fi 53633 fi 53634 rm -f $outfile.struct $outfile.extern 53635 53636 unset all_components static_components dso_components outfile outfile_real 53637 53638 53639 53640 53641 53642 53643 53644 53645 53646 53647 53648 53649 53650 53651 ############################################################################ 53652 # final compiler config 53653 ############################################################################ 53654 53655 pmix_show_subtitle "Set path-related compiler flags" 53656 53657 # 53658 # This is needed for VPATH builds, so that it will -I the appropriate 53659 # include directory. We delayed doing it until now just so that 53660 # '-I$(top_srcdir)' doesn't show up in any of the configure output -- 53661 # purely aesthetic. 53662 # 53663 # Because pmix_config.h is created by AC_CONFIG_HEADERS, we 53664 # don't need to -I the builddir for pmix/include. However, if we 53665 # are VPATH building, we do need to include the source directories. 53666 # 53667 if test "$PMIX_top_builddir" != "$PMIX_top_srcdir"; then 53668 # Note the embedded m4 directives here -- we must embed them 53669 # rather than have successive assignments to these shell 53670 # variables, lest the $(foo) names try to get evaluated here. 53671 # Yuck! 53672 cpp_includes="$PMIX_top_builddir $PMIX_top_srcdir $PMIX_top_srcdir/src $PMIX_top_builddir/include" 53673 else 53674 cpp_includes="$PMIX_top_srcdir $PMIX_top_srcdir/src" 53675 fi 53676 CPP_INCLUDES="$(echo $cpp_includes | $SED 's/[^ \]* */'"$pmix_cc_iquote"'&/g')" 53677 CPPFLAGS="$CPP_INCLUDES -I$PMIX_top_srcdir/include $CPPFLAGS $PMIX_FINAL_CPPFLAGS" 53678 LDFLAGS="$LDFLAGS $PMIX_FINAL_LDFLAGS" 53679 LIBS="$LIBS $PMIX_FINAL_LIBS" 53680 53681 ############################################################################ 53682 # pmixdatadir, pmixlibdir, and pmixinclude are essentially the same as 53683 # pkg*dir, but will always be */pmix. 53684 pmixdatadir='${datadir}/pmix' 53685 pmixlibdir='${libdir}/pmix' 53686 pmixincludedir='${includedir}/pmix' 53687 53688 53689 53690 53691 ############################################################################ 53692 # setup "make check" 53693 ############################################################################ 53694 PMIX_BUILT_TEST_PREFIX=$PMIX_top_builddir 53695 53696 # expose the mca component library paths in the build system 53697 pathfile=$PMIX_top_srcdir/config/mca_library_paths.txt 53698 PMIX_COMPONENT_LIBRARY_PATHS=`cat $pathfile` 53699 53700 ac_config_files="$ac_config_files test/run_tests00.pl" 53701 53702 ac_config_files="$ac_config_files test/run_tests01.pl" 53703 53704 ac_config_files="$ac_config_files test/run_tests02.pl" 53705 53706 ac_config_files="$ac_config_files test/run_tests03.pl" 53707 53708 ac_config_files="$ac_config_files test/run_tests04.pl" 53709 53710 ac_config_files="$ac_config_files test/run_tests05.pl" 53711 53712 ac_config_files="$ac_config_files test/run_tests06.pl" 53713 53714 ac_config_files="$ac_config_files test/run_tests07.pl" 53715 53716 ac_config_files="$ac_config_files test/run_tests08.pl" 53717 53718 ac_config_files="$ac_config_files test/run_tests09.pl" 53719 53720 ac_config_files="$ac_config_files test/run_tests10.pl" 53721 53722 ac_config_files="$ac_config_files test/run_tests11.pl" 53723 53724 ac_config_files="$ac_config_files test/run_tests12.pl" 53725 53726 ac_config_files="$ac_config_files test/run_tests13.pl" 53727 53728# AC_CONFIG_FILES(pmix_config_prefix[test/run_tests14.pl], [chmod +x test/run_tests14.pl]) 53729# AC_CONFIG_FILES(pmix_config_prefix[test/run_tests15.pl], [chmod +x test/run_tests15.pl]) 53730 53731 53732 ############################################################################ 53733 # final output 53734 ############################################################################ 53735 53736 pmix_show_subtitle "Final output" 53737 53738 ac_config_headers="$ac_config_headers include/pmix_common.h" 53739 53740 53741 ac_config_files="$ac_config_files Makefile config/Makefile etc/Makefile include/Makefile src/Makefile src/util/keyval/Makefile src/mca/base/Makefile src/tools/pevent/Makefile src/tools/pmix_info/Makefile src/tools/plookup/Makefile src/tools/pps/Makefile" 53742 53743 53744 # publish any embedded flags so external wrappers can use them 53745 53746 53747 53748 53749 # Success 53750 53751 53752 53753# Run the AM_CONDITIONALs 53754 53755 if test "$pmix_did_am_conditionals" != "yes"; then : 53756 53757 if test "x$pmix_mode" = "xembedded"; then 53758 PMIX_EMBEDDED_MODE_TRUE= 53759 PMIX_EMBEDDED_MODE_FALSE='#' 53760else 53761 PMIX_EMBEDDED_MODE_TRUE='#' 53762 PMIX_EMBEDDED_MODE_FALSE= 53763fi 53764 53765 if test "x$pmix_tests" = "xyes"; then 53766 PMIX_TESTS_EXAMPLES_TRUE= 53767 PMIX_TESTS_EXAMPLES_FALSE='#' 53768else 53769 PMIX_TESTS_EXAMPLES_TRUE='#' 53770 PMIX_TESTS_EXAMPLES_FALSE= 53771fi 53772 53773 if test "$WANT_TIMING" = "1"; then 53774 PMIX_COMPILE_TIMING_TRUE= 53775 PMIX_COMPILE_TIMING_FALSE='#' 53776else 53777 PMIX_COMPILE_TIMING_TRUE='#' 53778 PMIX_COMPILE_TIMING_FALSE= 53779fi 53780 53781 if test "$pmix_munge_support" = "1"; then 53782 PMIX_WANT_MUNGE_TRUE= 53783 PMIX_WANT_MUNGE_FALSE='#' 53784else 53785 PMIX_WANT_MUNGE_TRUE='#' 53786 PMIX_WANT_MUNGE_FALSE= 53787fi 53788 53789 if test "$pmix_sasl_support" = "1"; then 53790 PMIX_WANT_SASL_TRUE= 53791 PMIX_WANT_SASL_FALSE='#' 53792else 53793 PMIX_WANT_SASL_TRUE='#' 53794 PMIX_WANT_SASL_FALSE= 53795fi 53796 53797 if test "x$enable_dstore" != "xno"; then 53798 WANT_DSTORE_TRUE= 53799 WANT_DSTORE_FALSE='#' 53800else 53801 WANT_DSTORE_TRUE='#' 53802 WANT_DSTORE_FALSE= 53803fi 53804 53805 if test "x$pmix_install_primary_headers" = "xyes"; then 53806 WANT_PRIMARY_HEADERS_TRUE= 53807 WANT_PRIMARY_HEADERS_FALSE='#' 53808else 53809 WANT_PRIMARY_HEADERS_TRUE='#' 53810 WANT_PRIMARY_HEADERS_FALSE= 53811fi 53812 53813 if test "$WANT_INSTALL_HEADERS" = 1; then 53814 WANT_INSTALL_HEADERS_TRUE= 53815 WANT_INSTALL_HEADERS_FALSE='#' 53816else 53817 WANT_INSTALL_HEADERS_TRUE='#' 53818 WANT_INSTALL_HEADERS_FALSE= 53819fi 53820 53821 if test "$WANT_PMI_BACKWARD" = 1; then 53822 WANT_PMI_BACKWARD_TRUE= 53823 WANT_PMI_BACKWARD_FALSE='#' 53824else 53825 WANT_PMI_BACKWARD_TRUE='#' 53826 WANT_PMI_BACKWARD_FALSE= 53827fi 53828 53829 if test "$pmix_need_libpmix" = "1"; then 53830 NEED_LIBPMIX_TRUE= 53831 NEED_LIBPMIX_FALSE='#' 53832else 53833 NEED_LIBPMIX_TRUE='#' 53834 NEED_LIBPMIX_FALSE= 53835fi 53836 53837 53838fi 53839 pmix_did_am_conditionals=yes 53840 53841 53842#################################################################### 53843# Setup C compiler 53844#################################################################### 53845 53846 53847if test -z "$CC_FOR_BUILD"; then : 53848 53849 CC_FOR_BUILD=$CC 53850 53851 53852fi 53853 53854# restore any user-provided Werror flags 53855if test ! -z "$PMIX_CFLAGS_cache"; then : 53856 CFLAGS="$CFLAGS $PMIX_CFLAGS_cache" 53857fi 53858 53859# Delay setting pickyness until here so we 53860# don't break configure code tests 53861#if test "$WANT_PICKY_COMPILER" = "1"; then 53862# CFLAGS="$CFLAGS -Wall -Wextra -Werror" 53863#fi 53864 53865# Cleanup duplicate flags 53866 53867 # 1 is the variable name to be uniq-ized 53868 pmix_name=CFLAGS 53869 53870 # Go through each item in the variable and only keep the unique ones 53871 53872 pmix_count=0 53873 for val in ${CFLAGS}; do 53874 pmix_done=0 53875 pmix_i=1 53876 pmix_found=0 53877 53878 # Loop over every token we've seen so far 53879 53880 pmix_done="`expr $pmix_i \> $pmix_count`" 53881 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 53882 53883 # Have we seen this token already? Prefix the comparison 53884 # with "x" so that "-Lfoo" values won't be cause an error. 53885 53886 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 53887 pmix_found=`eval $pmix_eval` 53888 53889 # Check the ending condition 53890 53891 pmix_done="`expr $pmix_i \>= $pmix_count`" 53892 53893 # Increment the counter 53894 53895 pmix_i="`expr $pmix_i + 1`" 53896 done 53897 53898 # Check for special cases where we do want to allow repeated 53899 # arguments (per 53900 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 53901 # and 53902 # https://github.com/open-mpi/ompi/issues/324). 53903 53904 case $val in 53905 -Xclang|-Xg) 53906 pmix_found=0 53907 pmix_i=`expr $pmix_count + 1` 53908 ;; 53909 -framework) 53910 pmix_found=0 53911 pmix_i=`expr $pmix_count + 1` 53912 ;; 53913 --param) 53914 pmix_found=0 53915 pmix_i=`expr $pmix_count + 1` 53916 ;; 53917 esac 53918 53919 # If we didn't find the token, add it to the "array" 53920 53921 if test "$pmix_found" = "0"; then 53922 pmix_eval="pmix_array_$pmix_i=$val" 53923 eval $pmix_eval 53924 pmix_count="`expr $pmix_count + 1`" 53925 else 53926 pmix_i="`expr $pmix_i - 1`" 53927 fi 53928 done 53929 53930 # Take all the items in the "array" and assemble them back into a 53931 # single variable 53932 53933 pmix_i=1 53934 pmix_done="`expr $pmix_i \> $pmix_count`" 53935 pmix_newval= 53936 while test "$pmix_done" = "0"; do 53937 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 53938 eval $pmix_eval 53939 53940 pmix_eval="unset pmix_array_$pmix_i" 53941 eval $pmix_eval 53942 53943 pmix_done="`expr $pmix_i \>= $pmix_count`" 53944 pmix_i="`expr $pmix_i + 1`" 53945 done 53946 53947 # Done; do the assignment 53948 53949 pmix_newval="`echo $pmix_newval`" 53950 pmix_eval="$pmix_name=\"$pmix_newval\"" 53951 eval $pmix_eval 53952 53953 # Clean up 53954 53955 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 53956 53957 53958 # 1 is the variable name to be uniq-ized 53959 pmix_name=CPPFLAGS 53960 53961 # Go through each item in the variable and only keep the unique ones 53962 53963 pmix_count=0 53964 for val in ${CPPFLAGS}; do 53965 pmix_done=0 53966 pmix_i=1 53967 pmix_found=0 53968 53969 # Loop over every token we've seen so far 53970 53971 pmix_done="`expr $pmix_i \> $pmix_count`" 53972 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 53973 53974 # Have we seen this token already? Prefix the comparison 53975 # with "x" so that "-Lfoo" values won't be cause an error. 53976 53977 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 53978 pmix_found=`eval $pmix_eval` 53979 53980 # Check the ending condition 53981 53982 pmix_done="`expr $pmix_i \>= $pmix_count`" 53983 53984 # Increment the counter 53985 53986 pmix_i="`expr $pmix_i + 1`" 53987 done 53988 53989 # Check for special cases where we do want to allow repeated 53990 # arguments (per 53991 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 53992 # and 53993 # https://github.com/open-mpi/ompi/issues/324). 53994 53995 case $val in 53996 -Xclang|-Xg) 53997 pmix_found=0 53998 pmix_i=`expr $pmix_count + 1` 53999 ;; 54000 -framework) 54001 pmix_found=0 54002 pmix_i=`expr $pmix_count + 1` 54003 ;; 54004 --param) 54005 pmix_found=0 54006 pmix_i=`expr $pmix_count + 1` 54007 ;; 54008 esac 54009 54010 # If we didn't find the token, add it to the "array" 54011 54012 if test "$pmix_found" = "0"; then 54013 pmix_eval="pmix_array_$pmix_i=$val" 54014 eval $pmix_eval 54015 pmix_count="`expr $pmix_count + 1`" 54016 else 54017 pmix_i="`expr $pmix_i - 1`" 54018 fi 54019 done 54020 54021 # Take all the items in the "array" and assemble them back into a 54022 # single variable 54023 54024 pmix_i=1 54025 pmix_done="`expr $pmix_i \> $pmix_count`" 54026 pmix_newval= 54027 while test "$pmix_done" = "0"; do 54028 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 54029 eval $pmix_eval 54030 54031 pmix_eval="unset pmix_array_$pmix_i" 54032 eval $pmix_eval 54033 54034 pmix_done="`expr $pmix_i \>= $pmix_count`" 54035 pmix_i="`expr $pmix_i + 1`" 54036 done 54037 54038 # Done; do the assignment 54039 54040 pmix_newval="`echo $pmix_newval`" 54041 pmix_eval="$pmix_name=\"$pmix_newval\"" 54042 eval $pmix_eval 54043 54044 # Clean up 54045 54046 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 54047 54048 54049 # 1 is the variable name to be uniq-ized 54050 pmix_name=LDFLAGS 54051 54052 # Go through each item in the variable and only keep the unique ones 54053 54054 pmix_count=0 54055 for val in ${LDFLAGS}; do 54056 pmix_done=0 54057 pmix_i=1 54058 pmix_found=0 54059 54060 # Loop over every token we've seen so far 54061 54062 pmix_done="`expr $pmix_i \> $pmix_count`" 54063 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 54064 54065 # Have we seen this token already? Prefix the comparison 54066 # with "x" so that "-Lfoo" values won't be cause an error. 54067 54068 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 54069 pmix_found=`eval $pmix_eval` 54070 54071 # Check the ending condition 54072 54073 pmix_done="`expr $pmix_i \>= $pmix_count`" 54074 54075 # Increment the counter 54076 54077 pmix_i="`expr $pmix_i + 1`" 54078 done 54079 54080 # Check for special cases where we do want to allow repeated 54081 # arguments (per 54082 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 54083 # and 54084 # https://github.com/open-mpi/ompi/issues/324). 54085 54086 case $val in 54087 -Xclang|-Xg) 54088 pmix_found=0 54089 pmix_i=`expr $pmix_count + 1` 54090 ;; 54091 -framework) 54092 pmix_found=0 54093 pmix_i=`expr $pmix_count + 1` 54094 ;; 54095 --param) 54096 pmix_found=0 54097 pmix_i=`expr $pmix_count + 1` 54098 ;; 54099 esac 54100 54101 # If we didn't find the token, add it to the "array" 54102 54103 if test "$pmix_found" = "0"; then 54104 pmix_eval="pmix_array_$pmix_i=$val" 54105 eval $pmix_eval 54106 pmix_count="`expr $pmix_count + 1`" 54107 else 54108 pmix_i="`expr $pmix_i - 1`" 54109 fi 54110 done 54111 54112 # Take all the items in the "array" and assemble them back into a 54113 # single variable 54114 54115 pmix_i=1 54116 pmix_done="`expr $pmix_i \> $pmix_count`" 54117 pmix_newval= 54118 while test "$pmix_done" = "0"; do 54119 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 54120 eval $pmix_eval 54121 54122 pmix_eval="unset pmix_array_$pmix_i" 54123 eval $pmix_eval 54124 54125 pmix_done="`expr $pmix_i \>= $pmix_count`" 54126 pmix_i="`expr $pmix_i + 1`" 54127 done 54128 54129 # Done; do the assignment 54130 54131 pmix_newval="`echo $pmix_newval`" 54132 pmix_eval="$pmix_name=\"$pmix_newval\"" 54133 eval $pmix_eval 54134 54135 # Clean up 54136 54137 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 54138 54139 54140 # 1 is the variable name to be uniq-ized 54141 pmix_name=LIBS 54142 54143 # Go through each item in the variable and only keep the unique ones 54144 54145 pmix_count=0 54146 for val in ${LIBS}; do 54147 pmix_done=0 54148 pmix_i=1 54149 pmix_found=0 54150 54151 # Loop over every token we've seen so far 54152 54153 pmix_done="`expr $pmix_i \> $pmix_count`" 54154 while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do 54155 54156 # Have we seen this token already? Prefix the comparison 54157 # with "x" so that "-Lfoo" values won't be cause an error. 54158 54159 pmix_eval="expr x$val = x\$pmix_array_$pmix_i" 54160 pmix_found=`eval $pmix_eval` 54161 54162 # Check the ending condition 54163 54164 pmix_done="`expr $pmix_i \>= $pmix_count`" 54165 54166 # Increment the counter 54167 54168 pmix_i="`expr $pmix_i + 1`" 54169 done 54170 54171 # Check for special cases where we do want to allow repeated 54172 # arguments (per 54173 # https://www.open-mpi.org/community/lists/devel/2012/08/11362.php 54174 # and 54175 # https://github.com/open-mpi/ompi/issues/324). 54176 54177 case $val in 54178 -Xclang|-Xg) 54179 pmix_found=0 54180 pmix_i=`expr $pmix_count + 1` 54181 ;; 54182 -framework) 54183 pmix_found=0 54184 pmix_i=`expr $pmix_count + 1` 54185 ;; 54186 --param) 54187 pmix_found=0 54188 pmix_i=`expr $pmix_count + 1` 54189 ;; 54190 esac 54191 54192 # If we didn't find the token, add it to the "array" 54193 54194 if test "$pmix_found" = "0"; then 54195 pmix_eval="pmix_array_$pmix_i=$val" 54196 eval $pmix_eval 54197 pmix_count="`expr $pmix_count + 1`" 54198 else 54199 pmix_i="`expr $pmix_i - 1`" 54200 fi 54201 done 54202 54203 # Take all the items in the "array" and assemble them back into a 54204 # single variable 54205 54206 pmix_i=1 54207 pmix_done="`expr $pmix_i \> $pmix_count`" 54208 pmix_newval= 54209 while test "$pmix_done" = "0"; do 54210 pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\"" 54211 eval $pmix_eval 54212 54213 pmix_eval="unset pmix_array_$pmix_i" 54214 eval $pmix_eval 54215 54216 pmix_done="`expr $pmix_i \>= $pmix_count`" 54217 pmix_i="`expr $pmix_i + 1`" 54218 done 54219 54220 # Done; do the assignment 54221 54222 pmix_newval="`echo $pmix_newval`" 54223 pmix_eval="$pmix_name=\"$pmix_newval\"" 54224 eval $pmix_eval 54225 54226 # Clean up 54227 54228 unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count 54229 54230 54231# 54232# Delayed the substitution of CFLAGS and CXXFLAGS until now because 54233# they may have been modified throughout the course of this script. 54234# 54235 54236 54237 54238 54239pmix_show_title "Final compiler flags" 54240 54241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final CPPFLAGS" >&5 54242$as_echo_n "checking final CPPFLAGS... " >&6; } 54243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPFLAGS" >&5 54244$as_echo "$CPPFLAGS" >&6; } 54245 54246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final CFLAGS" >&5 54247$as_echo_n "checking final CFLAGS... " >&6; } 54248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 54249$as_echo "$CFLAGS" >&6; } 54250 54251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final LDFLAGS" >&5 54252$as_echo_n "checking final LDFLAGS... " >&6; } 54253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDFLAGS" >&5 54254$as_echo "$LDFLAGS" >&6; } 54255 54256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final LIBS" >&5 54257$as_echo_n "checking final LIBS... " >&6; } 54258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5 54259$as_echo "$LIBS" >&6; } 54260 54261#################################################################### 54262# Setup variables for pkg-config file (maint/pmix.pc.in) 54263#################################################################### 54264 54265# 54266# Dependencies that themselves have a pkg-config file available. 54267# 54268PC_REQUIRES="" 54269if test "$pmix_hwloc_support_will_build" = "yes" && test "$pmix_hwloc_source" != "embedded"; then : 54270 PC_REQUIRES="$PC_REQUIRES hwloc" 54271fi 54272if test $pmix_libevent_support -eq 1 && test "$pmix_libevent_source" != "embedded"; then : 54273 PC_REQUIRES="$PC_REQUIRES libevent" 54274fi 54275if test "$pmix_zlib_support" = "1"; then : 54276 PC_REQUIRES="$PC_REQUIRES zlib" 54277fi 54278PC_REQUIRES="$PC_REQUIRES" 54279 54280 54281# 54282# Dependencies that don't have a pkg-config file available. 54283# In this case we need to manually add -L<path> and -l<lib> 54284# to the PC_PRIVATE_LIBS variable. 54285# 54286PC_PRIVATE_LIBS="" 54287if test $pmix_libev_support -eq 1; then : 54288 PC_PRIVATE_LIBS="$PC_PRIVATE_LIBS $pmix_libev_LDFLAGS $pmix_libev_LIBS" 54289fi 54290PC_PRIVATE_LIBS="$PC_PRIVATE_LIBS" 54291 54292 54293#################################################################### 54294# -Werror for CI scripts 54295#################################################################### 54296 54297# Check whether --enable-werror was given. 54298if test "${enable_werror+set}" = set; then : 54299 enableval=$enable_werror; 54300 CFLAGS="$CFLAGS -Werror" 54301 54302fi 54303 54304 54305#################################################################### 54306# Version information 54307#################################################################### 54308 54309# PMIX_VERSION was setup by PMIX_SETUP_CORE above. 54310 54311# Make configure depend on the VERSION file, since it's used in AC_INIT 54312CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION' 54313 54314 54315. $srcdir/VERSION 54316 54317 54318 54319 54320 54321ac_config_files="$ac_config_files contrib/Makefile examples/Makefile test/Makefile test/simple/Makefile maint/pmix.pc" 54322 54323 54324pmix_show_title "Configuration complete" 54325 54326cat >confcache <<\_ACEOF 54327# This file is a shell script that caches the results of configure 54328# tests run on this system so they can be shared between configure 54329# scripts and configure runs, see configure's option --config-cache. 54330# It is not useful on other systems. If it contains results you don't 54331# want to keep, you may remove or edit it. 54332# 54333# config.status only pays attention to the cache file if you give it 54334# the --recheck option to rerun configure. 54335# 54336# `ac_cv_env_foo' variables (set or unset) will be overridden when 54337# loading this file, other *unset* `ac_cv_foo' will be assigned the 54338# following values. 54339 54340_ACEOF 54341 54342# The following way of writing the cache mishandles newlines in values, 54343# but we know of no workaround that is simple, portable, and efficient. 54344# So, we kill variables containing newlines. 54345# Ultrix sh set writes to stderr and can't be redirected directly, 54346# and sets the high bit in the cache file unless we assign to the vars. 54347( 54348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 54349 eval ac_val=\$$ac_var 54350 case $ac_val in #( 54351 *${as_nl}*) 54352 case $ac_var in #( 54353 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 54354$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 54355 esac 54356 case $ac_var in #( 54357 _ | IFS | as_nl) ;; #( 54358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 54359 *) { eval $ac_var=; unset $ac_var;} ;; 54360 esac ;; 54361 esac 54362 done 54363 54364 (set) 2>&1 | 54365 case $as_nl`(ac_space=' '; set) 2>&1` in #( 54366 *${as_nl}ac_space=\ *) 54367 # `set' does not quote correctly, so add quotes: double-quote 54368 # substitution turns \\\\ into \\, and sed turns \\ into \. 54369 sed -n \ 54370 "s/'/'\\\\''/g; 54371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 54372 ;; #( 54373 *) 54374 # `set' quotes correctly as required by POSIX, so do not add quotes. 54375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 54376 ;; 54377 esac | 54378 sort 54379) | 54380 sed ' 54381 /^ac_cv_env_/b end 54382 t clear 54383 :clear 54384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 54385 t end 54386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 54387 :end' >>confcache 54388if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 54389 if test -w "$cache_file"; then 54390 if test "x$cache_file" != "x/dev/null"; then 54391 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 54392$as_echo "$as_me: updating cache $cache_file" >&6;} 54393 if test ! -f "$cache_file" || test -h "$cache_file"; then 54394 cat confcache >"$cache_file" 54395 else 54396 case $cache_file in #( 54397 */* | ?:*) 54398 mv -f confcache "$cache_file"$$ && 54399 mv -f "$cache_file"$$ "$cache_file" ;; #( 54400 *) 54401 mv -f confcache "$cache_file" ;; 54402 esac 54403 fi 54404 fi 54405 else 54406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 54407$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 54408 fi 54409fi 54410rm -f confcache 54411 54412test "x$prefix" = xNONE && prefix=$ac_default_prefix 54413# Let make expand exec_prefix. 54414test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 54415 54416DEFS=-DHAVE_CONFIG_H 54417 54418ac_libobjs= 54419ac_ltlibobjs= 54420U= 54421for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 54422 # 1. Remove the extension, and $U if already installed. 54423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 54424 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 54425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 54426 # will be set to the directory where LIBOBJS objects are built. 54427 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 54428 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 54429done 54430LIBOBJS=$ac_libobjs 54431 54432LTLIBOBJS=$ac_ltlibobjs 54433 54434 54435if test -z "${SOURCE_DATE_EPOCH_SET_TRUE}" && test -z "${SOURCE_DATE_EPOCH_SET_FALSE}"; then 54436 as_fn_error $? "conditional \"SOURCE_DATE_EPOCH_SET\" was never defined. 54437Usually this means the macro was only invoked conditionally." "$LINENO" 5 54438fi 54439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 54440$as_echo_n "checking that generated files are newer than configure... " >&6; } 54441 if test -n "$am_sleep_pid"; then 54442 # Hide warnings about reused PIDs. 54443 wait $am_sleep_pid 2>/dev/null 54444 fi 54445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 54446$as_echo "done" >&6; } 54447 if test -n "$EXEEXT"; then 54448 am__EXEEXT_TRUE= 54449 am__EXEEXT_FALSE='#' 54450else 54451 am__EXEEXT_TRUE='#' 54452 am__EXEEXT_FALSE= 54453fi 54454 54455if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 54456 as_fn_error $? "conditional \"AMDEP\" was never defined. 54457Usually this means the macro was only invoked conditionally." "$LINENO" 5 54458fi 54459if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 54460 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 54461Usually this means the macro was only invoked conditionally." "$LINENO" 5 54462fi 54463if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then 54464 as_fn_error $? "conditional \"WANT_INSTALL_HEADERS\" was never defined. 54465Usually this means the macro was only invoked conditionally." "$LINENO" 5 54466fi 54467if test -z "${PMIX_INSTALL_BINARIES_TRUE}" && test -z "${PMIX_INSTALL_BINARIES_FALSE}"; then 54468 as_fn_error $? "conditional \"PMIX_INSTALL_BINARIES\" was never defined. 54469Usually this means the macro was only invoked conditionally." "$LINENO" 5 54470fi 54471if test -z "${MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE}" && test -z "${MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE}"; then 54472 as_fn_error $? "conditional \"MCA_BUILD_PSEC_DUMMY_HANDSHAKE\" was never defined. 54473Usually this means the macro was only invoked conditionally." "$LINENO" 5 54474fi 54475if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 54476 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 54477Usually this means the macro was only invoked conditionally." "$LINENO" 5 54478fi 54479if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 54480 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 54481Usually this means the macro was only invoked conditionally." "$LINENO" 5 54482fi 54483if test -z "${PMIX_DESTRUCTOR_USE_FINI_TRUE}" && test -z "${PMIX_DESTRUCTOR_USE_FINI_FALSE}"; then 54484 as_fn_error $? "conditional \"PMIX_DESTRUCTOR_USE_FINI\" was never defined. 54485Usually this means the macro was only invoked conditionally." "$LINENO" 5 54486fi 54487 54488if test -z "${WANT_HIDDEN_TRUE}" && test -z "${WANT_HIDDEN_FALSE}"; then 54489 as_fn_error $? "conditional \"WANT_HIDDEN\" was never defined. 54490Usually this means the macro was only invoked conditionally." "$LINENO" 5 54491fi 54492if test -z "${HAVE_DSTORE_PTHREAD_LOCK_TRUE}" && test -z "${HAVE_DSTORE_PTHREAD_LOCK_FALSE}"; then 54493 as_fn_error $? "conditional \"HAVE_DSTORE_PTHREAD_LOCK\" was never defined. 54494Usually this means the macro was only invoked conditionally." "$LINENO" 5 54495fi 54496if test -z "${HAVE_DSTORE_FCNTL_LOCK_TRUE}" && test -z "${HAVE_DSTORE_FCNTL_LOCK_FALSE}"; then 54497 as_fn_error $? "conditional \"HAVE_DSTORE_FCNTL_LOCK\" was never defined. 54498Usually this means the macro was only invoked conditionally." "$LINENO" 5 54499fi 54500if test -z "${MCA_BUILD_pmix_common_dstore_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_common_dstore_DSO_FALSE}"; then 54501 as_fn_error $? "conditional \"MCA_BUILD_pmix_common_dstore_DSO\" was never defined. 54502Usually this means the macro was only invoked conditionally." "$LINENO" 5 54503fi 54504if test -z "${MCA_BUILD_pmix_bfrops_v12_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v12_DSO_FALSE}"; then 54505 as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v12_DSO\" was never defined. 54506Usually this means the macro was only invoked conditionally." "$LINENO" 5 54507fi 54508if test -z "${MCA_BUILD_pmix_bfrops_v20_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v20_DSO_FALSE}"; then 54509 as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v20_DSO\" was never defined. 54510Usually this means the macro was only invoked conditionally." "$LINENO" 5 54511fi 54512if test -z "${MCA_BUILD_pmix_bfrops_v21_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v21_DSO_FALSE}"; then 54513 as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v21_DSO\" was never defined. 54514Usually this means the macro was only invoked conditionally." "$LINENO" 5 54515fi 54516if test -z "${MCA_BUILD_pmix_bfrops_v3_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v3_DSO_FALSE}"; then 54517 as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v3_DSO\" was never defined. 54518Usually this means the macro was only invoked conditionally." "$LINENO" 5 54519fi 54520if test -z "${MCA_BUILD_pmix_gds_hash_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_gds_hash_DSO_FALSE}"; then 54521 as_fn_error $? "conditional \"MCA_BUILD_pmix_gds_hash_DSO\" was never defined. 54522Usually this means the macro was only invoked conditionally." "$LINENO" 5 54523fi 54524if test -z "${MCA_BUILD_pmix_gds_ds12_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_gds_ds12_DSO_FALSE}"; then 54525 as_fn_error $? "conditional \"MCA_BUILD_pmix_gds_ds12_DSO\" was never defined. 54526Usually this means the macro was only invoked conditionally." "$LINENO" 5 54527fi 54528if test -z "${MCA_BUILD_pmix_gds_ds21_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_gds_ds21_DSO_FALSE}"; then 54529 as_fn_error $? "conditional \"MCA_BUILD_pmix_gds_ds21_DSO\" was never defined. 54530Usually this means the macro was only invoked conditionally." "$LINENO" 5 54531fi 54532if test -z "${MCA_BUILD_pmix_pcompress_zlib_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pcompress_zlib_DSO_FALSE}"; then 54533 as_fn_error $? "conditional \"MCA_BUILD_pmix_pcompress_zlib_DSO\" was never defined. 54534Usually this means the macro was only invoked conditionally." "$LINENO" 5 54535fi 54536if test -z "${MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE}"; then 54537 as_fn_error $? "conditional \"MCA_BUILD_pmix_pdl_pdlopen_DSO\" was never defined. 54538Usually this means the macro was only invoked conditionally." "$LINENO" 5 54539fi 54540if test -z "${MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE}"; then 54541 as_fn_error $? "conditional \"MCA_BUILD_pmix_pdl_plibltdl_DSO\" was never defined. 54542Usually this means the macro was only invoked conditionally." "$LINENO" 5 54543fi 54544if test -z "${MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE}"; then 54545 as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_bsdx_ipv4_DSO\" was never defined. 54546Usually this means the macro was only invoked conditionally." "$LINENO" 5 54547fi 54548if test -z "${MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE}"; then 54549 as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_bsdx_ipv6_DSO\" was never defined. 54550Usually this means the macro was only invoked conditionally." "$LINENO" 5 54551fi 54552if test -z "${MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE}"; then 54553 as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_linux_ipv6_DSO\" was never defined. 54554Usually this means the macro was only invoked conditionally." "$LINENO" 5 54555fi 54556if test -z "${MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE}"; then 54557 as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_posix_ipv4_DSO\" was never defined. 54558Usually this means the macro was only invoked conditionally." "$LINENO" 5 54559fi 54560if test -z "${MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE}"; then 54561 as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_solaris_ipv6_DSO\" was never defined. 54562Usually this means the macro was only invoked conditionally." "$LINENO" 5 54563fi 54564if test -z "${MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE}"; then 54565 as_fn_error $? "conditional \"MCA_BUILD_pmix_pinstalldirs_env_DSO\" was never defined. 54566Usually this means the macro was only invoked conditionally." "$LINENO" 5 54567fi 54568if test -z "${MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE}"; then 54569 as_fn_error $? "conditional \"MCA_BUILD_pmix_pinstalldirs_config_DSO\" was never defined. 54570Usually this means the macro was only invoked conditionally." "$LINENO" 5 54571fi 54572if test -z "${MCA_BUILD_pmix_plog_default_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_plog_default_DSO_FALSE}"; then 54573 as_fn_error $? "conditional \"MCA_BUILD_pmix_plog_default_DSO\" was never defined. 54574Usually this means the macro was only invoked conditionally." "$LINENO" 5 54575fi 54576if test -z "${MCA_BUILD_pmix_plog_stdfd_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_plog_stdfd_DSO_FALSE}"; then 54577 as_fn_error $? "conditional \"MCA_BUILD_pmix_plog_stdfd_DSO\" was never defined. 54578Usually this means the macro was only invoked conditionally." "$LINENO" 5 54579fi 54580if test -z "${MCA_BUILD_pmix_plog_syslog_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_plog_syslog_DSO_FALSE}"; then 54581 as_fn_error $? "conditional \"MCA_BUILD_pmix_plog_syslog_DSO\" was never defined. 54582Usually this means the macro was only invoked conditionally." "$LINENO" 5 54583fi 54584if test -z "${MCA_BUILD_pmix_preg_compress_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_preg_compress_DSO_FALSE}"; then 54585 as_fn_error $? "conditional \"MCA_BUILD_pmix_preg_compress_DSO\" was never defined. 54586Usually this means the macro was only invoked conditionally." "$LINENO" 5 54587fi 54588if test -z "${MCA_BUILD_pmix_preg_native_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_preg_native_DSO_FALSE}"; then 54589 as_fn_error $? "conditional \"MCA_BUILD_pmix_preg_native_DSO\" was never defined. 54590Usually this means the macro was only invoked conditionally." "$LINENO" 5 54591fi 54592if test -z "${MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE}"; then 54593 as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_dummy_handshake_DSO\" was never defined. 54594Usually this means the macro was only invoked conditionally." "$LINENO" 5 54595fi 54596if test -z "${MCA_BUILD_pmix_psec_native_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_native_DSO_FALSE}"; then 54597 as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_native_DSO\" was never defined. 54598Usually this means the macro was only invoked conditionally." "$LINENO" 5 54599fi 54600if test -z "${MCA_BUILD_pmix_psec_none_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_none_DSO_FALSE}"; then 54601 as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_none_DSO\" was never defined. 54602Usually this means the macro was only invoked conditionally." "$LINENO" 5 54603fi 54604if test -z "${MCA_BUILD_pmix_psec_munge_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_munge_DSO_FALSE}"; then 54605 as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_munge_DSO\" was never defined. 54606Usually this means the macro was only invoked conditionally." "$LINENO" 5 54607fi 54608if test -z "${MCA_BUILD_pmix_psensor_file_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psensor_file_DSO_FALSE}"; then 54609 as_fn_error $? "conditional \"MCA_BUILD_pmix_psensor_file_DSO\" was never defined. 54610Usually this means the macro was only invoked conditionally." "$LINENO" 5 54611fi 54612if test -z "${MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE}"; then 54613 as_fn_error $? "conditional \"MCA_BUILD_pmix_psensor_heartbeat_DSO\" was never defined. 54614Usually this means the macro was only invoked conditionally." "$LINENO" 5 54615fi 54616if test -z "${MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE}"; then 54617 as_fn_error $? "conditional \"MCA_BUILD_pmix_pshmem_mmap_DSO\" was never defined. 54618Usually this means the macro was only invoked conditionally." "$LINENO" 5 54619fi 54620if test -z "${MCA_BUILD_pmix_psquash_flex128_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psquash_flex128_DSO_FALSE}"; then 54621 as_fn_error $? "conditional \"MCA_BUILD_pmix_psquash_flex128_DSO\" was never defined. 54622Usually this means the macro was only invoked conditionally." "$LINENO" 5 54623fi 54624if test -z "${MCA_BUILD_pmix_psquash_native_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psquash_native_DSO_FALSE}"; then 54625 as_fn_error $? "conditional \"MCA_BUILD_pmix_psquash_native_DSO\" was never defined. 54626Usually this means the macro was only invoked conditionally." "$LINENO" 5 54627fi 54628if test -z "${MCA_BUILD_pmix_ptl_tcp_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_ptl_tcp_DSO_FALSE}"; then 54629 as_fn_error $? "conditional \"MCA_BUILD_pmix_ptl_tcp_DSO\" was never defined. 54630Usually this means the macro was only invoked conditionally." "$LINENO" 5 54631fi 54632if test -z "${MCA_BUILD_pmix_ptl_usock_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_ptl_usock_DSO_FALSE}"; then 54633 as_fn_error $? "conditional \"MCA_BUILD_pmix_ptl_usock_DSO\" was never defined. 54634Usually this means the macro was only invoked conditionally." "$LINENO" 5 54635fi 54636if test -z "${PMIX_EMBEDDED_MODE_TRUE}" && test -z "${PMIX_EMBEDDED_MODE_FALSE}"; then 54637 as_fn_error $? "conditional \"PMIX_EMBEDDED_MODE\" was never defined. 54638Usually this means the macro was only invoked conditionally." "$LINENO" 5 54639fi 54640if test -z "${PMIX_TESTS_EXAMPLES_TRUE}" && test -z "${PMIX_TESTS_EXAMPLES_FALSE}"; then 54641 as_fn_error $? "conditional \"PMIX_TESTS_EXAMPLES\" was never defined. 54642Usually this means the macro was only invoked conditionally." "$LINENO" 5 54643fi 54644if test -z "${PMIX_COMPILE_TIMING_TRUE}" && test -z "${PMIX_COMPILE_TIMING_FALSE}"; then 54645 as_fn_error $? "conditional \"PMIX_COMPILE_TIMING\" was never defined. 54646Usually this means the macro was only invoked conditionally." "$LINENO" 5 54647fi 54648if test -z "${PMIX_WANT_MUNGE_TRUE}" && test -z "${PMIX_WANT_MUNGE_FALSE}"; then 54649 as_fn_error $? "conditional \"PMIX_WANT_MUNGE\" was never defined. 54650Usually this means the macro was only invoked conditionally." "$LINENO" 5 54651fi 54652if test -z "${PMIX_WANT_SASL_TRUE}" && test -z "${PMIX_WANT_SASL_FALSE}"; then 54653 as_fn_error $? "conditional \"PMIX_WANT_SASL\" was never defined. 54654Usually this means the macro was only invoked conditionally." "$LINENO" 5 54655fi 54656if test -z "${WANT_DSTORE_TRUE}" && test -z "${WANT_DSTORE_FALSE}"; then 54657 as_fn_error $? "conditional \"WANT_DSTORE\" was never defined. 54658Usually this means the macro was only invoked conditionally." "$LINENO" 5 54659fi 54660if test -z "${WANT_PRIMARY_HEADERS_TRUE}" && test -z "${WANT_PRIMARY_HEADERS_FALSE}"; then 54661 as_fn_error $? "conditional \"WANT_PRIMARY_HEADERS\" was never defined. 54662Usually this means the macro was only invoked conditionally." "$LINENO" 5 54663fi 54664if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then 54665 as_fn_error $? "conditional \"WANT_INSTALL_HEADERS\" was never defined. 54666Usually this means the macro was only invoked conditionally." "$LINENO" 5 54667fi 54668if test -z "${WANT_PMI_BACKWARD_TRUE}" && test -z "${WANT_PMI_BACKWARD_FALSE}"; then 54669 as_fn_error $? "conditional \"WANT_PMI_BACKWARD\" was never defined. 54670Usually this means the macro was only invoked conditionally." "$LINENO" 5 54671fi 54672if test -z "${NEED_LIBPMIX_TRUE}" && test -z "${NEED_LIBPMIX_FALSE}"; then 54673 as_fn_error $? "conditional \"NEED_LIBPMIX\" was never defined. 54674Usually this means the macro was only invoked conditionally." "$LINENO" 5 54675fi 54676 54677: "${CONFIG_STATUS=./config.status}" 54678ac_write_fail=0 54679ac_clean_files_save=$ac_clean_files 54680ac_clean_files="$ac_clean_files $CONFIG_STATUS" 54681{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 54682$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 54683as_write_fail=0 54684cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 54685#! $SHELL 54686# Generated by $as_me. 54687# Run this file to recreate the current configuration. 54688# Compiler output produced by configure, useful for debugging 54689# configure, is in config.log if it exists. 54690 54691debug=false 54692ac_cs_recheck=false 54693ac_cs_silent=false 54694 54695SHELL=\${CONFIG_SHELL-$SHELL} 54696export SHELL 54697_ASEOF 54698cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 54699## -------------------- ## 54700## M4sh Initialization. ## 54701## -------------------- ## 54702 54703# Be more Bourne compatible 54704DUALCASE=1; export DUALCASE # for MKS sh 54705if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 54706 emulate sh 54707 NULLCMD=: 54708 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 54709 # is contrary to our usage. Disable this feature. 54710 alias -g '${1+"$@"}'='"$@"' 54711 setopt NO_GLOB_SUBST 54712else 54713 case `(set -o) 2>/dev/null` in #( 54714 *posix*) : 54715 set -o posix ;; #( 54716 *) : 54717 ;; 54718esac 54719fi 54720 54721 54722as_nl=' 54723' 54724export as_nl 54725# Printing a long string crashes Solaris 7 /usr/bin/printf. 54726as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 54727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 54728as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 54729# Prefer a ksh shell builtin over an external printf program on Solaris, 54730# but without wasting forks for bash or zsh. 54731if test -z "$BASH_VERSION$ZSH_VERSION" \ 54732 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 54733 as_echo='print -r --' 54734 as_echo_n='print -rn --' 54735elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 54736 as_echo='printf %s\n' 54737 as_echo_n='printf %s' 54738else 54739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54741 as_echo_n='/usr/ucb/echo -n' 54742 else 54743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 54744 as_echo_n_body='eval 54745 arg=$1; 54746 case $arg in #( 54747 *"$as_nl"*) 54748 expr "X$arg" : "X\\(.*\\)$as_nl"; 54749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 54750 esac; 54751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 54752 ' 54753 export as_echo_n_body 54754 as_echo_n='sh -c $as_echo_n_body as_echo' 54755 fi 54756 export as_echo_body 54757 as_echo='sh -c $as_echo_body as_echo' 54758fi 54759 54760# The user is always right. 54761if test "${PATH_SEPARATOR+set}" != set; then 54762 PATH_SEPARATOR=: 54763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 54764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 54765 PATH_SEPARATOR=';' 54766 } 54767fi 54768 54769 54770# IFS 54771# We need space, tab and new line, in precisely that order. Quoting is 54772# there to prevent editors from complaining about space-tab. 54773# (If _AS_PATH_WALK were called with IFS unset, it would disable word 54774# splitting by setting IFS to empty value.) 54775IFS=" "" $as_nl" 54776 54777# Find who we are. Look in the path if we contain no directory separator. 54778as_myself= 54779case $0 in #(( 54780 *[\\/]* ) as_myself=$0 ;; 54781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 54782for as_dir in $PATH 54783do 54784 IFS=$as_save_IFS 54785 test -z "$as_dir" && as_dir=. 54786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 54787 done 54788IFS=$as_save_IFS 54789 54790 ;; 54791esac 54792# We did not find ourselves, most probably we were run as `sh COMMAND' 54793# in which case we are not to be found in the path. 54794if test "x$as_myself" = x; then 54795 as_myself=$0 54796fi 54797if test ! -f "$as_myself"; then 54798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 54799 exit 1 54800fi 54801 54802# Unset variables that we do not need and which cause bugs (e.g. in 54803# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 54804# suppresses any "Segmentation fault" message there. '((' could 54805# trigger a bug in pdksh 5.2.14. 54806for as_var in BASH_ENV ENV MAIL MAILPATH 54807do eval test x\${$as_var+set} = xset \ 54808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 54809done 54810PS1='$ ' 54811PS2='> ' 54812PS4='+ ' 54813 54814# NLS nuisances. 54815LC_ALL=C 54816export LC_ALL 54817LANGUAGE=C 54818export LANGUAGE 54819 54820# CDPATH. 54821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 54822 54823 54824# as_fn_error STATUS ERROR [LINENO LOG_FD] 54825# ---------------------------------------- 54826# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 54827# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 54828# script with STATUS, using 1 if that was 0. 54829as_fn_error () 54830{ 54831 as_status=$1; test $as_status -eq 0 && as_status=1 54832 if test "$4"; then 54833 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 54834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 54835 fi 54836 $as_echo "$as_me: error: $2" >&2 54837 as_fn_exit $as_status 54838} # as_fn_error 54839 54840 54841# as_fn_set_status STATUS 54842# ----------------------- 54843# Set $? to STATUS, without forking. 54844as_fn_set_status () 54845{ 54846 return $1 54847} # as_fn_set_status 54848 54849# as_fn_exit STATUS 54850# ----------------- 54851# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 54852as_fn_exit () 54853{ 54854 set +e 54855 as_fn_set_status $1 54856 exit $1 54857} # as_fn_exit 54858 54859# as_fn_unset VAR 54860# --------------- 54861# Portably unset VAR. 54862as_fn_unset () 54863{ 54864 { eval $1=; unset $1;} 54865} 54866as_unset=as_fn_unset 54867# as_fn_append VAR VALUE 54868# ---------------------- 54869# Append the text in VALUE to the end of the definition contained in VAR. Take 54870# advantage of any shell optimizations that allow amortized linear growth over 54871# repeated appends, instead of the typical quadratic growth present in naive 54872# implementations. 54873if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 54874 eval 'as_fn_append () 54875 { 54876 eval $1+=\$2 54877 }' 54878else 54879 as_fn_append () 54880 { 54881 eval $1=\$$1\$2 54882 } 54883fi # as_fn_append 54884 54885# as_fn_arith ARG... 54886# ------------------ 54887# Perform arithmetic evaluation on the ARGs, and store the result in the 54888# global $as_val. Take advantage of shells that can avoid forks. The arguments 54889# must be portable across $(()) and expr. 54890if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 54891 eval 'as_fn_arith () 54892 { 54893 as_val=$(( $* )) 54894 }' 54895else 54896 as_fn_arith () 54897 { 54898 as_val=`expr "$@" || test $? -eq 1` 54899 } 54900fi # as_fn_arith 54901 54902 54903if expr a : '\(a\)' >/dev/null 2>&1 && 54904 test "X`expr 00001 : '.*\(...\)'`" = X001; then 54905 as_expr=expr 54906else 54907 as_expr=false 54908fi 54909 54910if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 54911 as_basename=basename 54912else 54913 as_basename=false 54914fi 54915 54916if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 54917 as_dirname=dirname 54918else 54919 as_dirname=false 54920fi 54921 54922as_me=`$as_basename -- "$0" || 54923$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 54924 X"$0" : 'X\(//\)$' \| \ 54925 X"$0" : 'X\(/\)' \| . 2>/dev/null || 54926$as_echo X/"$0" | 54927 sed '/^.*\/\([^/][^/]*\)\/*$/{ 54928 s//\1/ 54929 q 54930 } 54931 /^X\/\(\/\/\)$/{ 54932 s//\1/ 54933 q 54934 } 54935 /^X\/\(\/\).*/{ 54936 s//\1/ 54937 q 54938 } 54939 s/.*/./; q'` 54940 54941# Avoid depending upon Character Ranges. 54942as_cr_letters='abcdefghijklmnopqrstuvwxyz' 54943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 54944as_cr_Letters=$as_cr_letters$as_cr_LETTERS 54945as_cr_digits='0123456789' 54946as_cr_alnum=$as_cr_Letters$as_cr_digits 54947 54948ECHO_C= ECHO_N= ECHO_T= 54949case `echo -n x` in #((((( 54950-n*) 54951 case `echo 'xy\c'` in 54952 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 54953 xy) ECHO_C='\c';; 54954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 54955 ECHO_T=' ';; 54956 esac;; 54957*) 54958 ECHO_N='-n';; 54959esac 54960 54961rm -f conf$$ conf$$.exe conf$$.file 54962if test -d conf$$.dir; then 54963 rm -f conf$$.dir/conf$$.file 54964else 54965 rm -f conf$$.dir 54966 mkdir conf$$.dir 2>/dev/null 54967fi 54968if (echo >conf$$.file) 2>/dev/null; then 54969 if ln -s conf$$.file conf$$ 2>/dev/null; then 54970 as_ln_s='ln -s' 54971 # ... but there are two gotchas: 54972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 54973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 54974 # In both cases, we have to default to `cp -pR'. 54975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 54976 as_ln_s='cp -pR' 54977 elif ln conf$$.file conf$$ 2>/dev/null; then 54978 as_ln_s=ln 54979 else 54980 as_ln_s='cp -pR' 54981 fi 54982else 54983 as_ln_s='cp -pR' 54984fi 54985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 54986rmdir conf$$.dir 2>/dev/null 54987 54988 54989# as_fn_mkdir_p 54990# ------------- 54991# Create "$as_dir" as a directory, including parents if necessary. 54992as_fn_mkdir_p () 54993{ 54994 54995 case $as_dir in #( 54996 -*) as_dir=./$as_dir;; 54997 esac 54998 test -d "$as_dir" || eval $as_mkdir_p || { 54999 as_dirs= 55000 while :; do 55001 case $as_dir in #( 55002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 55003 *) as_qdir=$as_dir;; 55004 esac 55005 as_dirs="'$as_qdir' $as_dirs" 55006 as_dir=`$as_dirname -- "$as_dir" || 55007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 55008 X"$as_dir" : 'X\(//\)[^/]' \| \ 55009 X"$as_dir" : 'X\(//\)$' \| \ 55010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 55011$as_echo X"$as_dir" | 55012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 55013 s//\1/ 55014 q 55015 } 55016 /^X\(\/\/\)[^/].*/{ 55017 s//\1/ 55018 q 55019 } 55020 /^X\(\/\/\)$/{ 55021 s//\1/ 55022 q 55023 } 55024 /^X\(\/\).*/{ 55025 s//\1/ 55026 q 55027 } 55028 s/.*/./; q'` 55029 test -d "$as_dir" && break 55030 done 55031 test -z "$as_dirs" || eval "mkdir $as_dirs" 55032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 55033 55034 55035} # as_fn_mkdir_p 55036if mkdir -p . 2>/dev/null; then 55037 as_mkdir_p='mkdir -p "$as_dir"' 55038else 55039 test -d ./-p && rmdir ./-p 55040 as_mkdir_p=false 55041fi 55042 55043 55044# as_fn_executable_p FILE 55045# ----------------------- 55046# Test if FILE is an executable regular file. 55047as_fn_executable_p () 55048{ 55049 test -f "$1" && test -x "$1" 55050} # as_fn_executable_p 55051as_test_x='test -x' 55052as_executable_p=as_fn_executable_p 55053 55054# Sed expression to map a string onto a valid CPP name. 55055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 55056 55057# Sed expression to map a string onto a valid variable name. 55058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 55059 55060 55061exec 6>&1 55062## ----------------------------------- ## 55063## Main body of $CONFIG_STATUS script. ## 55064## ----------------------------------- ## 55065_ASEOF 55066test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 55067 55068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55069# Save the log message, to keep $0 and so on meaningful, and to 55070# report actual input values of CONFIG_FILES etc. instead of their 55071# values after options handling. 55072ac_log=" 55073This file was extended by pmix $as_me 3.2.3, which was 55074generated by GNU Autoconf 2.69. Invocation command line was 55075 55076 CONFIG_FILES = $CONFIG_FILES 55077 CONFIG_HEADERS = $CONFIG_HEADERS 55078 CONFIG_LINKS = $CONFIG_LINKS 55079 CONFIG_COMMANDS = $CONFIG_COMMANDS 55080 $ $0 $@ 55081 55082on `(hostname || uname -n) 2>/dev/null | sed 1q` 55083" 55084 55085_ACEOF 55086 55087case $ac_config_files in *" 55088"*) set x $ac_config_files; shift; ac_config_files=$*;; 55089esac 55090 55091case $ac_config_headers in *" 55092"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 55093esac 55094 55095 55096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55097# Files that config.status was made for. 55098config_files="$ac_config_files" 55099config_headers="$ac_config_headers" 55100config_commands="$ac_config_commands" 55101 55102_ACEOF 55103 55104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55105ac_cs_usage="\ 55106\`$as_me' instantiates files and other configuration actions 55107from templates according to the current configuration. Unless the files 55108and actions are specified as TAGs, all are instantiated by default. 55109 55110Usage: $0 [OPTION]... [TAG]... 55111 55112 -h, --help print this help, then exit 55113 -V, --version print version number and configuration settings, then exit 55114 --config print configuration, then exit 55115 -q, --quiet, --silent 55116 do not print progress messages 55117 -d, --debug don't remove temporary files 55118 --recheck update $as_me by reconfiguring in the same conditions 55119 --file=FILE[:TEMPLATE] 55120 instantiate the configuration file FILE 55121 --header=FILE[:TEMPLATE] 55122 instantiate the configuration header FILE 55123 55124Configuration files: 55125$config_files 55126 55127Configuration headers: 55128$config_headers 55129 55130Configuration commands: 55131$config_commands 55132 55133Report bugs to <https://github.com/pmix/pmix/issues>." 55134 55135_ACEOF 55136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55137ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 55138ac_cs_version="\\ 55139pmix config.status 3.2.3 55140configured by $0, generated by GNU Autoconf 2.69, 55141 with options \\"\$ac_cs_config\\" 55142 55143Copyright (C) 2012 Free Software Foundation, Inc. 55144This config.status script is free software; the Free Software Foundation 55145gives unlimited permission to copy, distribute and modify it." 55146 55147ac_pwd='$ac_pwd' 55148srcdir='$srcdir' 55149INSTALL='$INSTALL' 55150MKDIR_P='$MKDIR_P' 55151AWK='$AWK' 55152test -n "\$AWK" || AWK=awk 55153_ACEOF 55154 55155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55156# The default lists apply if the user does not specify any file. 55157ac_need_defaults=: 55158while test $# != 0 55159do 55160 case $1 in 55161 --*=?*) 55162 ac_option=`expr "X$1" : 'X\([^=]*\)='` 55163 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 55164 ac_shift=: 55165 ;; 55166 --*=) 55167 ac_option=`expr "X$1" : 'X\([^=]*\)='` 55168 ac_optarg= 55169 ac_shift=: 55170 ;; 55171 *) 55172 ac_option=$1 55173 ac_optarg=$2 55174 ac_shift=shift 55175 ;; 55176 esac 55177 55178 case $ac_option in 55179 # Handling of the options. 55180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 55181 ac_cs_recheck=: ;; 55182 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 55183 $as_echo "$ac_cs_version"; exit ;; 55184 --config | --confi | --conf | --con | --co | --c ) 55185 $as_echo "$ac_cs_config"; exit ;; 55186 --debug | --debu | --deb | --de | --d | -d ) 55187 debug=: ;; 55188 --file | --fil | --fi | --f ) 55189 $ac_shift 55190 case $ac_optarg in 55191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 55192 '') as_fn_error $? "missing file argument" ;; 55193 esac 55194 as_fn_append CONFIG_FILES " '$ac_optarg'" 55195 ac_need_defaults=false;; 55196 --header | --heade | --head | --hea ) 55197 $ac_shift 55198 case $ac_optarg in 55199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 55200 esac 55201 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 55202 ac_need_defaults=false;; 55203 --he | --h) 55204 # Conflict between --help and --header 55205 as_fn_error $? "ambiguous option: \`$1' 55206Try \`$0 --help' for more information.";; 55207 --help | --hel | -h ) 55208 $as_echo "$ac_cs_usage"; exit ;; 55209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 55210 | -silent | --silent | --silen | --sile | --sil | --si | --s) 55211 ac_cs_silent=: ;; 55212 55213 # This is an error. 55214 -*) as_fn_error $? "unrecognized option: \`$1' 55215Try \`$0 --help' for more information." ;; 55216 55217 *) as_fn_append ac_config_targets " $1" 55218 ac_need_defaults=false ;; 55219 55220 esac 55221 shift 55222done 55223 55224ac_configure_extra_args= 55225 55226if $ac_cs_silent; then 55227 exec 6>/dev/null 55228 ac_configure_extra_args="$ac_configure_extra_args --silent" 55229fi 55230 55231_ACEOF 55232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55233if \$ac_cs_recheck; then 55234 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 55235 shift 55236 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 55237 CONFIG_SHELL='$SHELL' 55238 export CONFIG_SHELL 55239 exec "\$@" 55240fi 55241 55242_ACEOF 55243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55244exec 5>>config.log 55245{ 55246 echo 55247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 55248## Running $as_me. ## 55249_ASBOX 55250 $as_echo "$ac_log" 55251} >&5 55252 55253_ACEOF 55254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55255# 55256# INIT-COMMANDS 55257# 55258AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 55259 55260 55261# The HP-UX ksh and POSIX shell print the target directory to stdout 55262# if CDPATH is set. 55263(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 55264 55265sed_quote_subst='$sed_quote_subst' 55266double_quote_subst='$double_quote_subst' 55267delay_variable_subst='$delay_variable_subst' 55268enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 55269enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 55270macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 55271macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 55272pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 55273enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 55274shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 55275SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 55276ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 55277PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 55278host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 55279host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 55280host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 55281build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 55282build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 55283build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 55284SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 55285Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 55286GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 55287EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 55288FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 55289LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 55290NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 55291LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 55292max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 55293ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 55294exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 55295lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 55296lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 55297lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 55298lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 55299lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 55300reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 55301reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 55302OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 55303deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 55304file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 55305file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 55306want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 55307DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 55308sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 55309AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 55310AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 55311archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 55312STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 55313RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 55314old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 55315old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 55316old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 55317lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 55318CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 55319CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 55320compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 55321GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 55322lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 55323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 55324lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 55325lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 55326lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 55327lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 55328nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 55329lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 55330lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 55331objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 55332MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 55333lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 55334lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 55335lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 55336lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 55337lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 55338need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 55339MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 55340DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 55341NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 55342LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 55343OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 55344OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 55345libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 55346shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 55347extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 55348archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 55349enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 55350export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 55351whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 55352compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 55353old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 55354old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 55355archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 55356archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 55357module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 55358module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 55359with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 55360allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 55361no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 55362hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 55363hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 55364hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 55365hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 55366hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 55367hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 55368hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 55369inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 55370link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 55371always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 55372export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 55373exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 55374include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 55375prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 55376postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 55377file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 55378variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 55379need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 55380need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 55381version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 55382runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 55383shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 55384shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 55385libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 55386library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 55387soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 55388install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 55389postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 55390postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 55391finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 55392finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 55393hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 55394sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 55395configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 55396configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 55397hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 55398enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 55399enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 55400enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 55401old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 55402striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 55403 55404LTCC='$LTCC' 55405LTCFLAGS='$LTCFLAGS' 55406compiler='$compiler_DEFAULT' 55407 55408# A function that is used when there is no print builtin or printf. 55409func_fallback_echo () 55410{ 55411 eval 'cat <<_LTECHO_EOF 55412\$1 55413_LTECHO_EOF' 55414} 55415 55416# Quote evaled strings. 55417for var in SHELL \ 55418ECHO \ 55419PATH_SEPARATOR \ 55420SED \ 55421GREP \ 55422EGREP \ 55423FGREP \ 55424LD \ 55425NM \ 55426LN_S \ 55427lt_SP2NL \ 55428lt_NL2SP \ 55429reload_flag \ 55430OBJDUMP \ 55431deplibs_check_method \ 55432file_magic_cmd \ 55433file_magic_glob \ 55434want_nocaseglob \ 55435DLLTOOL \ 55436sharedlib_from_linklib_cmd \ 55437AR \ 55438AR_FLAGS \ 55439archiver_list_spec \ 55440STRIP \ 55441RANLIB \ 55442CC \ 55443CFLAGS \ 55444compiler \ 55445lt_cv_sys_global_symbol_pipe \ 55446lt_cv_sys_global_symbol_to_cdecl \ 55447lt_cv_sys_global_symbol_to_import \ 55448lt_cv_sys_global_symbol_to_c_name_address \ 55449lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 55450lt_cv_nm_interface \ 55451nm_file_list_spec \ 55452lt_cv_truncate_bin \ 55453lt_prog_compiler_no_builtin_flag \ 55454lt_prog_compiler_pic \ 55455lt_prog_compiler_wl \ 55456lt_prog_compiler_static \ 55457lt_cv_prog_compiler_c_o \ 55458need_locks \ 55459MANIFEST_TOOL \ 55460DSYMUTIL \ 55461NMEDIT \ 55462LIPO \ 55463OTOOL \ 55464OTOOL64 \ 55465shrext_cmds \ 55466export_dynamic_flag_spec \ 55467whole_archive_flag_spec \ 55468compiler_needs_object \ 55469with_gnu_ld \ 55470allow_undefined_flag \ 55471no_undefined_flag \ 55472hardcode_libdir_flag_spec \ 55473hardcode_libdir_separator \ 55474exclude_expsyms \ 55475include_expsyms \ 55476file_list_spec \ 55477variables_saved_for_relink \ 55478libname_spec \ 55479library_names_spec \ 55480soname_spec \ 55481install_override_mode \ 55482finish_eval \ 55483old_striplib \ 55484striplib; do 55485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 55486 *[\\\\\\\`\\"\\\$]*) 55487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 55488 ;; 55489 *) 55490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 55491 ;; 55492 esac 55493done 55494 55495# Double-quote double-evaled strings. 55496for var in reload_cmds \ 55497old_postinstall_cmds \ 55498old_postuninstall_cmds \ 55499old_archive_cmds \ 55500extract_expsyms_cmds \ 55501old_archive_from_new_cmds \ 55502old_archive_from_expsyms_cmds \ 55503archive_cmds \ 55504archive_expsym_cmds \ 55505module_cmds \ 55506module_expsym_cmds \ 55507export_symbols_cmds \ 55508prelink_cmds \ 55509postlink_cmds \ 55510postinstall_cmds \ 55511postuninstall_cmds \ 55512finish_cmds \ 55513sys_lib_search_path_spec \ 55514configure_time_dlsearch_path \ 55515configure_time_lt_sys_library_path; do 55516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 55517 *[\\\\\\\`\\"\\\$]*) 55518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 55519 ;; 55520 *) 55521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 55522 ;; 55523 esac 55524done 55525 55526ac_aux_dir='$ac_aux_dir' 55527 55528# See if we are running on zsh, and set the options that allow our 55529# commands through without removal of \ escapes INIT. 55530if test -n "\${ZSH_VERSION+set}"; then 55531 setopt NO_GLOB_SUBST 55532fi 55533 55534 55535 PACKAGE='$PACKAGE' 55536 VERSION='$VERSION' 55537 RM='$RM' 55538 ofile='$ofile' 55539 55540 55541 55542 55543_ACEOF 55544 55545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55546 55547# Handling of arguments. 55548for ac_config_target in $ac_config_targets 55549do 55550 case $ac_config_target in 55551 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 55552 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 55553 "include/pmix_version.h") CONFIG_FILES="$CONFIG_FILES include/pmix_version.h" ;; 55554 "src/include/pmix_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pmix_config.h" ;; 55555 "src/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/common/Makefile" ;; 55556 "src/mca/common/dstore/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/common/dstore/Makefile" ;; 55557 "src/mca/bfrops/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/Makefile" ;; 55558 "src/mca/bfrops/v12/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v12/Makefile" ;; 55559 "src/mca/bfrops/v20/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v20/Makefile" ;; 55560 "src/mca/bfrops/v21/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v21/Makefile" ;; 55561 "src/mca/bfrops/v3/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v3/Makefile" ;; 55562 "src/mca/gds/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/Makefile" ;; 55563 "src/mca/gds/hash/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/hash/Makefile" ;; 55564 "src/mca/gds/ds12/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/ds12/Makefile" ;; 55565 "src/mca/gds/ds21/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/ds21/Makefile" ;; 55566 "src/mca/pcompress/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pcompress/Makefile" ;; 55567 "src/mca/pcompress/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pcompress/zlib/Makefile" ;; 55568 "src/mca/pdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pdl/Makefile" ;; 55569 "src/mca/pdl/pdlopen/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pdl/pdlopen/Makefile" ;; 55570 "src/mca/pdl/plibltdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pdl/plibltdl/Makefile" ;; 55571 "src/mca/pif/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/Makefile" ;; 55572 "src/mca/pif/bsdx_ipv4/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/bsdx_ipv4/Makefile" ;; 55573 "src/mca/pif/bsdx_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/bsdx_ipv6/Makefile" ;; 55574 "src/mca/pif/linux_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/linux_ipv6/Makefile" ;; 55575 "src/mca/pif/posix_ipv4/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/posix_ipv4/Makefile" ;; 55576 "src/mca/pif/solaris_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/solaris_ipv6/Makefile" ;; 55577 "src/mca/pinstalldirs/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/Makefile" ;; 55578 "src/mca/pinstalldirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/env/Makefile" ;; 55579 "src/mca/pinstalldirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/config/Makefile" ;; 55580 "src/mca/pinstalldirs/config/pinstall_dirs.h") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/config/pinstall_dirs.h" ;; 55581 "src/mca/plog/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/plog/Makefile" ;; 55582 "src/mca/plog/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/plog/default/Makefile" ;; 55583 "src/mca/plog/stdfd/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/plog/stdfd/Makefile" ;; 55584 "src/mca/plog/syslog/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/plog/syslog/Makefile" ;; 55585 "src/mca/pnet/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pnet/Makefile" ;; 55586 "src/mca/preg/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/preg/Makefile" ;; 55587 "src/mca/preg/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/preg/compress/Makefile" ;; 55588 "src/mca/preg/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/preg/native/Makefile" ;; 55589 "src/mca/psec/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/Makefile" ;; 55590 "src/mca/psec/dummy_handshake/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/dummy_handshake/Makefile" ;; 55591 "src/mca/psec/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/native/Makefile" ;; 55592 "src/mca/psec/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/none/Makefile" ;; 55593 "src/mca/psec/munge/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/munge/Makefile" ;; 55594 "src/mca/psensor/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psensor/Makefile" ;; 55595 "src/mca/psensor/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psensor/file/Makefile" ;; 55596 "src/mca/psensor/heartbeat/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psensor/heartbeat/Makefile" ;; 55597 "src/mca/pshmem/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pshmem/Makefile" ;; 55598 "src/mca/pshmem/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pshmem/mmap/Makefile" ;; 55599 "src/mca/psquash/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psquash/Makefile" ;; 55600 "src/mca/psquash/flex128/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psquash/flex128/Makefile" ;; 55601 "src/mca/psquash/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psquash/native/Makefile" ;; 55602 "src/mca/ptl/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/ptl/Makefile" ;; 55603 "src/mca/ptl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/ptl/tcp/Makefile" ;; 55604 "src/mca/ptl/usock/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/ptl/usock/Makefile" ;; 55605 "test/run_tests00.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests00.pl" ;; 55606 "test/run_tests01.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests01.pl" ;; 55607 "test/run_tests02.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests02.pl" ;; 55608 "test/run_tests03.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests03.pl" ;; 55609 "test/run_tests04.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests04.pl" ;; 55610 "test/run_tests05.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests05.pl" ;; 55611 "test/run_tests06.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests06.pl" ;; 55612 "test/run_tests07.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests07.pl" ;; 55613 "test/run_tests08.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests08.pl" ;; 55614 "test/run_tests09.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests09.pl" ;; 55615 "test/run_tests10.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests10.pl" ;; 55616 "test/run_tests11.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests11.pl" ;; 55617 "test/run_tests12.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests12.pl" ;; 55618 "test/run_tests13.pl") CONFIG_FILES="$CONFIG_FILES test/run_tests13.pl" ;; 55619 "include/pmix_common.h") CONFIG_HEADERS="$CONFIG_HEADERS include/pmix_common.h" ;; 55620 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 55621 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 55622 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 55623 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 55624 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 55625 "src/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/keyval/Makefile" ;; 55626 "src/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/base/Makefile" ;; 55627 "src/tools/pevent/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pevent/Makefile" ;; 55628 "src/tools/pmix_info/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pmix_info/Makefile" ;; 55629 "src/tools/plookup/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/plookup/Makefile" ;; 55630 "src/tools/pps/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pps/Makefile" ;; 55631 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 55632 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 55633 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 55634 "test/simple/Makefile") CONFIG_FILES="$CONFIG_FILES test/simple/Makefile" ;; 55635 "maint/pmix.pc") CONFIG_FILES="$CONFIG_FILES maint/pmix.pc" ;; 55636 55637 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 55638 esac 55639done 55640 55641 55642# If the user did not use the arguments to specify the items to instantiate, 55643# then the envvar interface is used. Set only those that are not. 55644# We use the long form for the default assignment because of an extremely 55645# bizarre bug on SunOS 4.1.3. 55646if $ac_need_defaults; then 55647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 55648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 55649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 55650fi 55651 55652# Have a temporary directory for convenience. Make it in the build tree 55653# simply because there is no reason against having it here, and in addition, 55654# creating and moving files from /tmp can sometimes cause problems. 55655# Hook for its removal unless debugging. 55656# Note that there is a small window in which the directory will not be cleaned: 55657# after its creation but before its name has been assigned to `$tmp'. 55658$debug || 55659{ 55660 tmp= ac_tmp= 55661 trap 'exit_status=$? 55662 : "${ac_tmp:=$tmp}" 55663 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 55664' 0 55665 trap 'as_fn_exit 1' 1 2 13 15 55666} 55667# Create a (secure) tmp directory for tmp files. 55668 55669{ 55670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 55671 test -d "$tmp" 55672} || 55673{ 55674 tmp=./conf$$-$RANDOM 55675 (umask 077 && mkdir "$tmp") 55676} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 55677ac_tmp=$tmp 55678 55679# Set up the scripts for CONFIG_FILES section. 55680# No need to generate them if there are no CONFIG_FILES. 55681# This happens for instance with `./config.status config.h'. 55682if test -n "$CONFIG_FILES"; then 55683 55684 55685ac_cr=`echo X | tr X '\015'` 55686# On cygwin, bash can eat \r inside `` if the user requested igncr. 55687# But we know of no other shell where ac_cr would be empty at this 55688# point, so we can use a bashism as a fallback. 55689if test "x$ac_cr" = x; then 55690 eval ac_cr=\$\'\\r\' 55691fi 55692ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 55693if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 55694 ac_cs_awk_cr='\\r' 55695else 55696 ac_cs_awk_cr=$ac_cr 55697fi 55698 55699echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 55700_ACEOF 55701 55702 55703{ 55704 echo "cat >conf$$subs.awk <<_ACEOF" && 55705 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 55706 echo "_ACEOF" 55707} >conf$$subs.sh || 55708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 55709ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 55710ac_delim='%!_!# ' 55711for ac_last_try in false false false false false :; do 55712 . ./conf$$subs.sh || 55713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 55714 55715 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 55716 if test $ac_delim_n = $ac_delim_num; then 55717 break 55718 elif $ac_last_try; then 55719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 55720 else 55721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 55722 fi 55723done 55724rm -f conf$$subs.sh 55725 55726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55727cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 55728_ACEOF 55729sed -n ' 55730h 55731s/^/S["/; s/!.*/"]=/ 55732p 55733g 55734s/^[^!]*!// 55735:repl 55736t repl 55737s/'"$ac_delim"'$// 55738t delim 55739:nl 55740h 55741s/\(.\{148\}\)..*/\1/ 55742t more1 55743s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 55744p 55745n 55746b repl 55747:more1 55748s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 55749p 55750g 55751s/.\{148\}// 55752t nl 55753:delim 55754h 55755s/\(.\{148\}\)..*/\1/ 55756t more2 55757s/["\\]/\\&/g; s/^/"/; s/$/"/ 55758p 55759b 55760:more2 55761s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 55762p 55763g 55764s/.\{148\}// 55765t delim 55766' <conf$$subs.awk | sed ' 55767/^[^""]/{ 55768 N 55769 s/\n// 55770} 55771' >>$CONFIG_STATUS || ac_write_fail=1 55772rm -f conf$$subs.awk 55773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55774_ACAWK 55775cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 55776 for (key in S) S_is_set[key] = 1 55777 FS = "" 55778 55779} 55780{ 55781 line = $ 0 55782 nfields = split(line, field, "@") 55783 substed = 0 55784 len = length(field[1]) 55785 for (i = 2; i < nfields; i++) { 55786 key = field[i] 55787 keylen = length(key) 55788 if (S_is_set[key]) { 55789 value = S[key] 55790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 55791 len += length(value) + length(field[++i]) 55792 substed = 1 55793 } else 55794 len += 1 + keylen 55795 } 55796 55797 print line 55798} 55799 55800_ACAWK 55801_ACEOF 55802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55803if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 55804 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 55805else 55806 cat 55807fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 55808 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 55809_ACEOF 55810 55811# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 55812# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 55813# trailing colons and then remove the whole line if VPATH becomes empty 55814# (actually we leave an empty line to preserve line numbers). 55815if test "x$srcdir" = x.; then 55816 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 55817h 55818s/// 55819s/^/:/ 55820s/[ ]*$/:/ 55821s/:\$(srcdir):/:/g 55822s/:\${srcdir}:/:/g 55823s/:@srcdir@:/:/g 55824s/^:*// 55825s/:*$// 55826x 55827s/\(=[ ]*\).*/\1/ 55828G 55829s/\n// 55830s/^[^=]*=[ ]*$// 55831}' 55832fi 55833 55834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55835fi # test -n "$CONFIG_FILES" 55836 55837# Set up the scripts for CONFIG_HEADERS section. 55838# No need to generate them if there are no CONFIG_HEADERS. 55839# This happens for instance with `./config.status Makefile'. 55840if test -n "$CONFIG_HEADERS"; then 55841cat >"$ac_tmp/defines.awk" <<\_ACAWK || 55842BEGIN { 55843_ACEOF 55844 55845# Transform confdefs.h into an awk script `defines.awk', embedded as 55846# here-document in config.status, that substitutes the proper values into 55847# config.h.in to produce config.h. 55848 55849# Create a delimiter string that does not exist in confdefs.h, to ease 55850# handling of long lines. 55851ac_delim='%!_!# ' 55852for ac_last_try in false false :; do 55853 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 55854 if test -z "$ac_tt"; then 55855 break 55856 elif $ac_last_try; then 55857 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 55858 else 55859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 55860 fi 55861done 55862 55863# For the awk script, D is an array of macro values keyed by name, 55864# likewise P contains macro parameters if any. Preserve backslash 55865# newline sequences. 55866 55867ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 55868sed -n ' 55869s/.\{148\}/&'"$ac_delim"'/g 55870t rset 55871:rset 55872s/^[ ]*#[ ]*define[ ][ ]*/ / 55873t def 55874d 55875:def 55876s/\\$// 55877t bsnl 55878s/["\\]/\\&/g 55879s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 55880D["\1"]=" \3"/p 55881s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 55882d 55883:bsnl 55884s/["\\]/\\&/g 55885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 55886D["\1"]=" \3\\\\\\n"\\/p 55887t cont 55888s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 55889t cont 55890d 55891:cont 55892n 55893s/.\{148\}/&'"$ac_delim"'/g 55894t clear 55895:clear 55896s/\\$// 55897t bsnlc 55898s/["\\]/\\&/g; s/^/"/; s/$/"/p 55899d 55900:bsnlc 55901s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 55902b cont 55903' <confdefs.h | sed ' 55904s/'"$ac_delim"'/"\\\ 55905"/g' >>$CONFIG_STATUS || ac_write_fail=1 55906 55907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 55908 for (key in D) D_is_set[key] = 1 55909 FS = "" 55910} 55911/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 55912 line = \$ 0 55913 split(line, arg, " ") 55914 if (arg[1] == "#") { 55915 defundef = arg[2] 55916 mac1 = arg[3] 55917 } else { 55918 defundef = substr(arg[1], 2) 55919 mac1 = arg[2] 55920 } 55921 split(mac1, mac2, "(") #) 55922 macro = mac2[1] 55923 prefix = substr(line, 1, index(line, defundef) - 1) 55924 if (D_is_set[macro]) { 55925 # Preserve the white space surrounding the "#". 55926 print prefix "define", macro P[macro] D[macro] 55927 next 55928 } else { 55929 # Replace #undef with comments. This is necessary, for example, 55930 # in the case of _POSIX_SOURCE, which is predefined and required 55931 # on some systems where configure will not decide to define it. 55932 if (defundef == "undef") { 55933 print "/*", prefix defundef, macro, "*/" 55934 next 55935 } 55936 } 55937} 55938{ print } 55939_ACAWK 55940_ACEOF 55941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55942 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 55943fi # test -n "$CONFIG_HEADERS" 55944 55945 55946eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 55947shift 55948for ac_tag 55949do 55950 case $ac_tag in 55951 :[FHLC]) ac_mode=$ac_tag; continue;; 55952 esac 55953 case $ac_mode$ac_tag in 55954 :[FHL]*:*);; 55955 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 55956 :[FH]-) ac_tag=-:-;; 55957 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 55958 esac 55959 ac_save_IFS=$IFS 55960 IFS=: 55961 set x $ac_tag 55962 IFS=$ac_save_IFS 55963 shift 55964 ac_file=$1 55965 shift 55966 55967 case $ac_mode in 55968 :L) ac_source=$1;; 55969 :[FH]) 55970 ac_file_inputs= 55971 for ac_f 55972 do 55973 case $ac_f in 55974 -) ac_f="$ac_tmp/stdin";; 55975 *) # Look for the file first in the build tree, then in the source tree 55976 # (if the path is not absolute). The absolute path cannot be DOS-style, 55977 # because $ac_f cannot contain `:'. 55978 test -f "$ac_f" || 55979 case $ac_f in 55980 [\\/$]*) false;; 55981 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 55982 esac || 55983 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 55984 esac 55985 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 55986 as_fn_append ac_file_inputs " '$ac_f'" 55987 done 55988 55989 # Let's still pretend it is `configure' which instantiates (i.e., don't 55990 # use $as_me), people would be surprised to read: 55991 # /* config.h. Generated by config.status. */ 55992 configure_input='Generated from '` 55993 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 55994 `' by configure.' 55995 if test x"$ac_file" != x-; then 55996 configure_input="$ac_file. $configure_input" 55997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 55998$as_echo "$as_me: creating $ac_file" >&6;} 55999 fi 56000 # Neutralize special characters interpreted by sed in replacement strings. 56001 case $configure_input in #( 56002 *\&* | *\|* | *\\* ) 56003 ac_sed_conf_input=`$as_echo "$configure_input" | 56004 sed 's/[\\\\&|]/\\\\&/g'`;; #( 56005 *) ac_sed_conf_input=$configure_input;; 56006 esac 56007 56008 case $ac_tag in 56009 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 56010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 56011 esac 56012 ;; 56013 esac 56014 56015 ac_dir=`$as_dirname -- "$ac_file" || 56016$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 56017 X"$ac_file" : 'X\(//\)[^/]' \| \ 56018 X"$ac_file" : 'X\(//\)$' \| \ 56019 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 56020$as_echo X"$ac_file" | 56021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 56022 s//\1/ 56023 q 56024 } 56025 /^X\(\/\/\)[^/].*/{ 56026 s//\1/ 56027 q 56028 } 56029 /^X\(\/\/\)$/{ 56030 s//\1/ 56031 q 56032 } 56033 /^X\(\/\).*/{ 56034 s//\1/ 56035 q 56036 } 56037 s/.*/./; q'` 56038 as_dir="$ac_dir"; as_fn_mkdir_p 56039 ac_builddir=. 56040 56041case "$ac_dir" in 56042.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 56043*) 56044 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 56045 # A ".." for each directory in $ac_dir_suffix. 56046 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 56047 case $ac_top_builddir_sub in 56048 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 56049 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 56050 esac ;; 56051esac 56052ac_abs_top_builddir=$ac_pwd 56053ac_abs_builddir=$ac_pwd$ac_dir_suffix 56054# for backward compatibility: 56055ac_top_builddir=$ac_top_build_prefix 56056 56057case $srcdir in 56058 .) # We are building in place. 56059 ac_srcdir=. 56060 ac_top_srcdir=$ac_top_builddir_sub 56061 ac_abs_top_srcdir=$ac_pwd ;; 56062 [\\/]* | ?:[\\/]* ) # Absolute name. 56063 ac_srcdir=$srcdir$ac_dir_suffix; 56064 ac_top_srcdir=$srcdir 56065 ac_abs_top_srcdir=$srcdir ;; 56066 *) # Relative name. 56067 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 56068 ac_top_srcdir=$ac_top_build_prefix$srcdir 56069 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 56070esac 56071ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 56072 56073 56074 case $ac_mode in 56075 :F) 56076 # 56077 # CONFIG_FILE 56078 # 56079 56080 case $INSTALL in 56081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 56082 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 56083 esac 56084 ac_MKDIR_P=$MKDIR_P 56085 case $MKDIR_P in 56086 [\\/$]* | ?:[\\/]* ) ;; 56087 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 56088 esac 56089_ACEOF 56090 56091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56092# If the template does not know about datarootdir, expand it. 56093# FIXME: This hack should be removed a few years after 2.60. 56094ac_datarootdir_hack=; ac_datarootdir_seen= 56095ac_sed_dataroot=' 56096/datarootdir/ { 56097 p 56098 q 56099} 56100/@datadir@/p 56101/@docdir@/p 56102/@infodir@/p 56103/@localedir@/p 56104/@mandir@/p' 56105case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 56106*datarootdir*) ac_datarootdir_seen=yes;; 56107*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 56108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 56109$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 56110_ACEOF 56111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56112 ac_datarootdir_hack=' 56113 s&@datadir@&$datadir&g 56114 s&@docdir@&$docdir&g 56115 s&@infodir@&$infodir&g 56116 s&@localedir@&$localedir&g 56117 s&@mandir@&$mandir&g 56118 s&\\\${datarootdir}&$datarootdir&g' ;; 56119esac 56120_ACEOF 56121 56122# Neutralize VPATH when `$srcdir' = `.'. 56123# Shell code in configure.ac might set extrasub. 56124# FIXME: do we really want to maintain this feature? 56125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56126ac_sed_extra="$ac_vpsub 56127$extrasub 56128_ACEOF 56129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56130:t 56131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 56132s|@configure_input@|$ac_sed_conf_input|;t t 56133s&@top_builddir@&$ac_top_builddir_sub&;t t 56134s&@top_build_prefix@&$ac_top_build_prefix&;t t 56135s&@srcdir@&$ac_srcdir&;t t 56136s&@abs_srcdir@&$ac_abs_srcdir&;t t 56137s&@top_srcdir@&$ac_top_srcdir&;t t 56138s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 56139s&@builddir@&$ac_builddir&;t t 56140s&@abs_builddir@&$ac_abs_builddir&;t t 56141s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 56142s&@INSTALL@&$ac_INSTALL&;t t 56143s&@MKDIR_P@&$ac_MKDIR_P&;t t 56144$ac_datarootdir_hack 56145" 56146eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 56147 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 56148 56149test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 56150 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 56151 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 56152 "$ac_tmp/out"`; test -z "$ac_out"; } && 56153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 56154which seems to be undefined. Please make sure it is defined" >&5 56155$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 56156which seems to be undefined. Please make sure it is defined" >&2;} 56157 56158 rm -f "$ac_tmp/stdin" 56159 case $ac_file in 56160 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 56161 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 56162 esac \ 56163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 56164 ;; 56165 :H) 56166 # 56167 # CONFIG_HEADER 56168 # 56169 if test x"$ac_file" != x-; then 56170 { 56171 $as_echo "/* $configure_input */" \ 56172 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 56173 } >"$ac_tmp/config.h" \ 56174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 56175 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 56176 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 56177$as_echo "$as_me: $ac_file is unchanged" >&6;} 56178 else 56179 rm -f "$ac_file" 56180 mv "$ac_tmp/config.h" "$ac_file" \ 56181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 56182 fi 56183 else 56184 $as_echo "/* $configure_input */" \ 56185 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 56186 || as_fn_error $? "could not create -" "$LINENO" 5 56187 fi 56188# Compute "$ac_file"'s index in $config_headers. 56189_am_arg="$ac_file" 56190_am_stamp_count=1 56191for _am_header in $config_headers :; do 56192 case $_am_header in 56193 $_am_arg | $_am_arg:* ) 56194 break ;; 56195 * ) 56196 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 56197 esac 56198done 56199echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 56200$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 56201 X"$_am_arg" : 'X\(//\)[^/]' \| \ 56202 X"$_am_arg" : 'X\(//\)$' \| \ 56203 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 56204$as_echo X"$_am_arg" | 56205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 56206 s//\1/ 56207 q 56208 } 56209 /^X\(\/\/\)[^/].*/{ 56210 s//\1/ 56211 q 56212 } 56213 /^X\(\/\/\)$/{ 56214 s//\1/ 56215 q 56216 } 56217 /^X\(\/\).*/{ 56218 s//\1/ 56219 q 56220 } 56221 s/.*/./; q'`/stamp-h$_am_stamp_count 56222 ;; 56223 56224 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 56225$as_echo "$as_me: executing $ac_file commands" >&6;} 56226 ;; 56227 esac 56228 56229 56230 case $ac_file$ac_mode in 56231 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 56232 # Older Autoconf quotes --file arguments for eval, but not when files 56233 # are listed without --file. Let's play safe and only enable the eval 56234 # if we detect the quoting. 56235 case $CONFIG_FILES in 56236 *\'*) eval set x "$CONFIG_FILES" ;; 56237 *) set x $CONFIG_FILES ;; 56238 esac 56239 shift 56240 for mf 56241 do 56242 # Strip MF so we end up with the name of the file. 56243 mf=`echo "$mf" | sed -e 's/:.*$//'` 56244 # Check whether this is an Automake generated Makefile or not. 56245 # We used to match only the files named 'Makefile.in', but 56246 # some people rename them; so instead we look at the file content. 56247 # Grep'ing the first line is not enough: some people post-process 56248 # each Makefile.in and add a new line on top of each file to say so. 56249 # Grep'ing the whole file is not good either: AIX grep has a line 56250 # limit of 2048, but all sed's we know have understand at least 4000. 56251 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 56252 dirpart=`$as_dirname -- "$mf" || 56253$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 56254 X"$mf" : 'X\(//\)[^/]' \| \ 56255 X"$mf" : 'X\(//\)$' \| \ 56256 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 56257$as_echo X"$mf" | 56258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 56259 s//\1/ 56260 q 56261 } 56262 /^X\(\/\/\)[^/].*/{ 56263 s//\1/ 56264 q 56265 } 56266 /^X\(\/\/\)$/{ 56267 s//\1/ 56268 q 56269 } 56270 /^X\(\/\).*/{ 56271 s//\1/ 56272 q 56273 } 56274 s/.*/./; q'` 56275 else 56276 continue 56277 fi 56278 # Extract the definition of DEPDIR, am__include, and am__quote 56279 # from the Makefile without running 'make'. 56280 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 56281 test -z "$DEPDIR" && continue 56282 am__include=`sed -n 's/^am__include = //p' < "$mf"` 56283 test -z "$am__include" && continue 56284 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 56285 # Find all dependency output files, they are included files with 56286 # $(DEPDIR) in their names. We invoke sed twice because it is the 56287 # simplest approach to changing $(DEPDIR) to its actual value in the 56288 # expansion. 56289 for file in `sed -n " 56290 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 56291 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 56292 # Make sure the directory exists. 56293 test -f "$dirpart/$file" && continue 56294 fdir=`$as_dirname -- "$file" || 56295$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 56296 X"$file" : 'X\(//\)[^/]' \| \ 56297 X"$file" : 'X\(//\)$' \| \ 56298 X"$file" : 'X\(/\)' \| . 2>/dev/null || 56299$as_echo X"$file" | 56300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 56301 s//\1/ 56302 q 56303 } 56304 /^X\(\/\/\)[^/].*/{ 56305 s//\1/ 56306 q 56307 } 56308 /^X\(\/\/\)$/{ 56309 s//\1/ 56310 q 56311 } 56312 /^X\(\/\).*/{ 56313 s//\1/ 56314 q 56315 } 56316 s/.*/./; q'` 56317 as_dir=$dirpart/$fdir; as_fn_mkdir_p 56318 # echo "creating $dirpart/$file" 56319 echo '# dummy' > "$dirpart/$file" 56320 done 56321 done 56322} 56323 ;; 56324 "libtool":C) 56325 56326 # See if we are running on zsh, and set the options that allow our 56327 # commands through without removal of \ escapes. 56328 if test -n "${ZSH_VERSION+set}"; then 56329 setopt NO_GLOB_SUBST 56330 fi 56331 56332 cfgfile=${ofile}T 56333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 56334 $RM "$cfgfile" 56335 56336 cat <<_LT_EOF >> "$cfgfile" 56337#! $SHELL 56338# Generated automatically by $as_me ($PACKAGE) $VERSION 56339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 56340# NOTE: Changes made to this file will be lost: look at ltmain.sh. 56341 56342# Provide generalized library-building support services. 56343# Written by Gordon Matzigkeit, 1996 56344 56345# Copyright (C) 2014 Free Software Foundation, Inc. 56346# This is free software; see the source for copying conditions. There is NO 56347# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 56348 56349# GNU Libtool is free software; you can redistribute it and/or modify 56350# it under the terms of the GNU General Public License as published by 56351# the Free Software Foundation; either version 2 of of the License, or 56352# (at your option) any later version. 56353# 56354# As a special exception to the GNU General Public License, if you 56355# distribute this file as part of a program or library that is built 56356# using GNU Libtool, you may include this file under the same 56357# distribution terms that you use for the rest of that program. 56358# 56359# GNU Libtool is distributed in the hope that it will be useful, but 56360# WITHOUT ANY WARRANTY; without even the implied warranty of 56361# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 56362# GNU General Public License for more details. 56363# 56364# You should have received a copy of the GNU General Public License 56365# along with this program. If not, see <http://www.gnu.org/licenses/>. 56366 56367 56368# The names of the tagged configurations supported by this script. 56369available_tags='' 56370 56371# Configured defaults for sys_lib_dlsearch_path munging. 56372: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 56373 56374# ### BEGIN LIBTOOL CONFIG 56375 56376# Whether or not to build shared libraries. 56377build_libtool_libs=$enable_shared 56378 56379# Whether or not to build static libraries. 56380build_old_libs=$enable_static 56381 56382# Which release of libtool.m4 was used? 56383macro_version=$macro_version 56384macro_revision=$macro_revision 56385 56386# What type of objects to build. 56387pic_mode=$pic_mode 56388 56389# Whether or not to optimize for fast installation. 56390fast_install=$enable_fast_install 56391 56392# Shared archive member basename,for filename based shared library versioning on AIX. 56393shared_archive_member_spec=$shared_archive_member_spec 56394 56395# Shell to use when invoking shell scripts. 56396SHELL=$lt_SHELL 56397 56398# An echo program that protects backslashes. 56399ECHO=$lt_ECHO 56400 56401# The PATH separator for the build system. 56402PATH_SEPARATOR=$lt_PATH_SEPARATOR 56403 56404# The host system. 56405host_alias=$host_alias 56406host=$host 56407host_os=$host_os 56408 56409# The build system. 56410build_alias=$build_alias 56411build=$build 56412build_os=$build_os 56413 56414# A sed program that does not truncate output. 56415SED=$lt_SED 56416 56417# Sed that helps us avoid accidentally triggering echo(1) options like -n. 56418Xsed="\$SED -e 1s/^X//" 56419 56420# A grep program that handles long lines. 56421GREP=$lt_GREP 56422 56423# An ERE matcher. 56424EGREP=$lt_EGREP 56425 56426# A literal string matcher. 56427FGREP=$lt_FGREP 56428 56429# A BSD- or MS-compatible name lister. 56430NM=$lt_NM 56431 56432# Whether we need soft or hard links. 56433LN_S=$lt_LN_S 56434 56435# What is the maximum length of a command? 56436max_cmd_len=$max_cmd_len 56437 56438# Object file suffix (normally "o"). 56439objext=$ac_objext 56440 56441# Executable file suffix (normally ""). 56442exeext=$exeext 56443 56444# whether the shell understands "unset". 56445lt_unset=$lt_unset 56446 56447# turn spaces into newlines. 56448SP2NL=$lt_lt_SP2NL 56449 56450# turn newlines into spaces. 56451NL2SP=$lt_lt_NL2SP 56452 56453# convert \$build file names to \$host format. 56454to_host_file_cmd=$lt_cv_to_host_file_cmd 56455 56456# convert \$build files to toolchain format. 56457to_tool_file_cmd=$lt_cv_to_tool_file_cmd 56458 56459# An object symbol dumper. 56460OBJDUMP=$lt_OBJDUMP 56461 56462# Method to check whether dependent libraries are shared objects. 56463deplibs_check_method=$lt_deplibs_check_method 56464 56465# Command to use when deplibs_check_method = "file_magic". 56466file_magic_cmd=$lt_file_magic_cmd 56467 56468# How to find potential files when deplibs_check_method = "file_magic". 56469file_magic_glob=$lt_file_magic_glob 56470 56471# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 56472want_nocaseglob=$lt_want_nocaseglob 56473 56474# DLL creation program. 56475DLLTOOL=$lt_DLLTOOL 56476 56477# Command to associate shared and link libraries. 56478sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 56479 56480# The archiver. 56481AR=$lt_AR 56482 56483# Flags to create an archive. 56484AR_FLAGS=$lt_AR_FLAGS 56485 56486# How to feed a file listing to the archiver. 56487archiver_list_spec=$lt_archiver_list_spec 56488 56489# A symbol stripping program. 56490STRIP=$lt_STRIP 56491 56492# Commands used to install an old-style archive. 56493RANLIB=$lt_RANLIB 56494old_postinstall_cmds=$lt_old_postinstall_cmds 56495old_postuninstall_cmds=$lt_old_postuninstall_cmds 56496 56497# Whether to use a lock for old archive extraction. 56498lock_old_archive_extraction=$lock_old_archive_extraction 56499 56500# A C compiler. 56501LTCC=$lt_CC 56502 56503# LTCC compiler flags. 56504LTCFLAGS=$lt_CFLAGS 56505 56506# Take the output of nm and produce a listing of raw symbols and C names. 56507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 56508 56509# Transform the output of nm in a proper C declaration. 56510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 56511 56512# Transform the output of nm into a list of symbols to manually relocate. 56513global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 56514 56515# Transform the output of nm in a C name address pair. 56516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 56517 56518# Transform the output of nm in a C name address pair when lib prefix is needed. 56519global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 56520 56521# The name lister interface. 56522nm_interface=$lt_lt_cv_nm_interface 56523 56524# Specify filename containing input files for \$NM. 56525nm_file_list_spec=$lt_nm_file_list_spec 56526 56527# The root where to search for dependent libraries,and where our libraries should be installed. 56528lt_sysroot=$lt_sysroot 56529 56530# Command to truncate a binary pipe. 56531lt_truncate_bin=$lt_lt_cv_truncate_bin 56532 56533# The name of the directory that contains temporary libtool files. 56534objdir=$objdir 56535 56536# Used to examine libraries when file_magic_cmd begins with "file". 56537MAGIC_CMD=$MAGIC_CMD 56538 56539# Must we lock files when doing compilation? 56540need_locks=$lt_need_locks 56541 56542# Manifest tool. 56543MANIFEST_TOOL=$lt_MANIFEST_TOOL 56544 56545# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 56546DSYMUTIL=$lt_DSYMUTIL 56547 56548# Tool to change global to local symbols on Mac OS X. 56549NMEDIT=$lt_NMEDIT 56550 56551# Tool to manipulate fat objects and archives on Mac OS X. 56552LIPO=$lt_LIPO 56553 56554# ldd/readelf like tool for Mach-O binaries on Mac OS X. 56555OTOOL=$lt_OTOOL 56556 56557# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 56558OTOOL64=$lt_OTOOL64 56559 56560# Old archive suffix (normally "a"). 56561libext=$libext 56562 56563# Shared library suffix (normally ".so"). 56564shrext_cmds=$lt_shrext_cmds 56565 56566# The commands to extract the exported symbol list from a shared archive. 56567extract_expsyms_cmds=$lt_extract_expsyms_cmds 56568 56569# Variables whose values should be saved in libtool wrapper scripts and 56570# restored at link time. 56571variables_saved_for_relink=$lt_variables_saved_for_relink 56572 56573# Do we need the "lib" prefix for modules? 56574need_lib_prefix=$need_lib_prefix 56575 56576# Do we need a version for libraries? 56577need_version=$need_version 56578 56579# Library versioning type. 56580version_type=$version_type 56581 56582# Shared library runtime path variable. 56583runpath_var=$runpath_var 56584 56585# Shared library path variable. 56586shlibpath_var=$shlibpath_var 56587 56588# Is shlibpath searched before the hard-coded library search path? 56589shlibpath_overrides_runpath=$shlibpath_overrides_runpath 56590 56591# Format of library name prefix. 56592libname_spec=$lt_libname_spec 56593 56594# List of archive names. First name is the real one, the rest are links. 56595# The last name is the one that the linker finds with -lNAME 56596library_names_spec=$lt_library_names_spec 56597 56598# The coded name of the library, if different from the real name. 56599soname_spec=$lt_soname_spec 56600 56601# Permission mode override for installation of shared libraries. 56602install_override_mode=$lt_install_override_mode 56603 56604# Command to use after installation of a shared archive. 56605postinstall_cmds=$lt_postinstall_cmds 56606 56607# Command to use after uninstallation of a shared archive. 56608postuninstall_cmds=$lt_postuninstall_cmds 56609 56610# Commands used to finish a libtool library installation in a directory. 56611finish_cmds=$lt_finish_cmds 56612 56613# As "finish_cmds", except a single script fragment to be evaled but 56614# not shown. 56615finish_eval=$lt_finish_eval 56616 56617# Whether we should hardcode library paths into libraries. 56618hardcode_into_libs=$hardcode_into_libs 56619 56620# Compile-time system search path for libraries. 56621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 56622 56623# Detected run-time system search path for libraries. 56624sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 56625 56626# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 56627configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 56628 56629# Whether dlopen is supported. 56630dlopen_support=$enable_dlopen 56631 56632# Whether dlopen of programs is supported. 56633dlopen_self=$enable_dlopen_self 56634 56635# Whether dlopen of statically linked programs is supported. 56636dlopen_self_static=$enable_dlopen_self_static 56637 56638# Commands to strip libraries. 56639old_striplib=$lt_old_striplib 56640striplib=$lt_striplib 56641 56642 56643# The linker used to build libraries. 56644LD=$lt_LD 56645 56646# How to create reloadable object files. 56647reload_flag=$lt_reload_flag 56648reload_cmds=$lt_reload_cmds 56649 56650# Commands used to build an old-style archive. 56651old_archive_cmds=$lt_old_archive_cmds 56652 56653# A language specific compiler. 56654CC=$lt_compiler 56655 56656# Is the compiler the GNU compiler? 56657with_gcc=$GCC 56658 56659# Compiler flag to turn off builtin functions. 56660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 56661 56662# Additional compiler flags for building library objects. 56663pic_flag=$lt_lt_prog_compiler_pic 56664 56665# How to pass a linker flag through the compiler. 56666wl=$lt_lt_prog_compiler_wl 56667 56668# Compiler flag to prevent dynamic linking. 56669link_static_flag=$lt_lt_prog_compiler_static 56670 56671# Does compiler simultaneously support -c and -o options? 56672compiler_c_o=$lt_lt_cv_prog_compiler_c_o 56673 56674# Whether or not to add -lc for building shared libraries. 56675build_libtool_need_lc=$archive_cmds_need_lc 56676 56677# Whether or not to disallow shared libs when runtime libs are static. 56678allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 56679 56680# Compiler flag to allow reflexive dlopens. 56681export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 56682 56683# Compiler flag to generate shared objects directly from archives. 56684whole_archive_flag_spec=$lt_whole_archive_flag_spec 56685 56686# Whether the compiler copes with passing no objects directly. 56687compiler_needs_object=$lt_compiler_needs_object 56688 56689# Create an old-style archive from a shared archive. 56690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 56691 56692# Create a temporary old-style archive to link instead of a shared archive. 56693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 56694 56695# Commands used to build a shared archive. 56696archive_cmds=$lt_archive_cmds 56697archive_expsym_cmds=$lt_archive_expsym_cmds 56698 56699# Commands used to build a loadable module if different from building 56700# a shared archive. 56701module_cmds=$lt_module_cmds 56702module_expsym_cmds=$lt_module_expsym_cmds 56703 56704# Whether we are building with GNU ld or not. 56705with_gnu_ld=$lt_with_gnu_ld 56706 56707# Flag that allows shared libraries with undefined symbols to be built. 56708allow_undefined_flag=$lt_allow_undefined_flag 56709 56710# Flag that enforces no undefined symbols. 56711no_undefined_flag=$lt_no_undefined_flag 56712 56713# Flag to hardcode \$libdir into a binary during linking. 56714# This must work even if \$libdir does not exist 56715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 56716 56717# Whether we need a single "-rpath" flag with a separated argument. 56718hardcode_libdir_separator=$lt_hardcode_libdir_separator 56719 56720# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 56721# DIR into the resulting binary. 56722hardcode_direct=$hardcode_direct 56723 56724# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 56725# DIR into the resulting binary and the resulting library dependency is 56726# "absolute",i.e impossible to change by setting \$shlibpath_var if the 56727# library is relocated. 56728hardcode_direct_absolute=$hardcode_direct_absolute 56729 56730# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 56731# into the resulting binary. 56732hardcode_minus_L=$hardcode_minus_L 56733 56734# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 56735# into the resulting binary. 56736hardcode_shlibpath_var=$hardcode_shlibpath_var 56737 56738# Set to "yes" if building a shared library automatically hardcodes DIR 56739# into the library and all subsequent libraries and executables linked 56740# against it. 56741hardcode_automatic=$hardcode_automatic 56742 56743# Set to yes if linker adds runtime paths of dependent libraries 56744# to runtime path list. 56745inherit_rpath=$inherit_rpath 56746 56747# Whether libtool must link a program against all its dependency libraries. 56748link_all_deplibs=$link_all_deplibs 56749 56750# Set to "yes" if exported symbols are required. 56751always_export_symbols=$always_export_symbols 56752 56753# The commands to list exported symbols. 56754export_symbols_cmds=$lt_export_symbols_cmds 56755 56756# Symbols that should not be listed in the preloaded symbols. 56757exclude_expsyms=$lt_exclude_expsyms 56758 56759# Symbols that must always be exported. 56760include_expsyms=$lt_include_expsyms 56761 56762# Commands necessary for linking programs (against libraries) with templates. 56763prelink_cmds=$lt_prelink_cmds 56764 56765# Commands necessary for finishing linking programs. 56766postlink_cmds=$lt_postlink_cmds 56767 56768# Specify filename containing input files. 56769file_list_spec=$lt_file_list_spec 56770 56771# How to hardcode a shared library path into an executable. 56772hardcode_action=$hardcode_action 56773 56774# ### END LIBTOOL CONFIG 56775 56776_LT_EOF 56777 56778 cat <<'_LT_EOF' >> "$cfgfile" 56779 56780# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 56781 56782# func_munge_path_list VARIABLE PATH 56783# ----------------------------------- 56784# VARIABLE is name of variable containing _space_ separated list of 56785# directories to be munged by the contents of PATH, which is string 56786# having a format: 56787# "DIR[:DIR]:" 56788# string "DIR[ DIR]" will be prepended to VARIABLE 56789# ":DIR[:DIR]" 56790# string "DIR[ DIR]" will be appended to VARIABLE 56791# "DIRP[:DIRP]::[DIRA:]DIRA" 56792# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 56793# "DIRA[ DIRA]" will be appended to VARIABLE 56794# "DIR[:DIR]" 56795# VARIABLE will be replaced by "DIR[ DIR]" 56796func_munge_path_list () 56797{ 56798 case x$2 in 56799 x) 56800 ;; 56801 *:) 56802 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 56803 ;; 56804 x:*) 56805 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 56806 ;; 56807 *::*) 56808 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 56809 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 56810 ;; 56811 *) 56812 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 56813 ;; 56814 esac 56815} 56816 56817 56818# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 56819func_cc_basename () 56820{ 56821 for cc_temp in $*""; do 56822 case $cc_temp in 56823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 56824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 56825 \-*) ;; 56826 *) break;; 56827 esac 56828 done 56829 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 56830} 56831 56832 56833# ### END FUNCTIONS SHARED WITH CONFIGURE 56834 56835_LT_EOF 56836 56837 case $host_os in 56838 aix3*) 56839 cat <<\_LT_EOF >> "$cfgfile" 56840# AIX sometimes has problems with the GCC collect2 program. For some 56841# reason, if we set the COLLECT_NAMES environment variable, the problems 56842# vanish in a puff of smoke. 56843if test set != "${COLLECT_NAMES+set}"; then 56844 COLLECT_NAMES= 56845 export COLLECT_NAMES 56846fi 56847_LT_EOF 56848 ;; 56849 esac 56850 56851 56852ltmain=$ac_aux_dir/ltmain.sh 56853 56854 56855 # We use sed instead of cat because bash on DJGPP gets confused if 56856 # if finds mixed CR/LF and LF-only lines. Since sed operates in 56857 # text mode, it properly converts lines to CR/LF. This bash problem 56858 # is reportedly fixed, but why not run on old versions too? 56859 sed '$q' "$ltmain" >> "$cfgfile" \ 56860 || (rm -f "$cfgfile"; exit 1) 56861 56862 mv -f "$cfgfile" "$ofile" || 56863 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 56864 chmod +x "$ofile" 56865 56866 ;; 56867 "test/run_tests00.pl":F) chmod +x test/run_tests00.pl ;; 56868 "test/run_tests01.pl":F) chmod +x test/run_tests01.pl ;; 56869 "test/run_tests02.pl":F) chmod +x test/run_tests02.pl ;; 56870 "test/run_tests03.pl":F) chmod +x test/run_tests03.pl ;; 56871 "test/run_tests04.pl":F) chmod +x test/run_tests04.pl ;; 56872 "test/run_tests05.pl":F) chmod +x test/run_tests05.pl ;; 56873 "test/run_tests06.pl":F) chmod +x test/run_tests06.pl ;; 56874 "test/run_tests07.pl":F) chmod +x test/run_tests07.pl ;; 56875 "test/run_tests08.pl":F) chmod +x test/run_tests08.pl ;; 56876 "test/run_tests09.pl":F) chmod +x test/run_tests09.pl ;; 56877 "test/run_tests10.pl":F) chmod +x test/run_tests10.pl ;; 56878 "test/run_tests11.pl":F) chmod +x test/run_tests11.pl ;; 56879 "test/run_tests12.pl":F) chmod +x test/run_tests12.pl ;; 56880 "test/run_tests13.pl":F) chmod +x test/run_tests13.pl ;; 56881 56882 esac 56883done # for ac_tag 56884 56885 56886as_fn_exit 0 56887_ACEOF 56888ac_clean_files=$ac_clean_files_save 56889 56890test $ac_write_fail = 0 || 56891 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 56892 56893 56894# configure is writing to config.log, and then calls config.status. 56895# config.status does its own redirection, appending to config.log. 56896# Unfortunately, on DOS this fails, as config.log is still kept open 56897# by configure, so config.status won't be able to write to it; its 56898# output is simply discarded. So we exec the FD to /dev/null, 56899# effectively closing config.log, so it can be properly (re)opened and 56900# appended to by config.status. When coming back to configure, we 56901# need to make the FD available again. 56902if test "$no_create" != yes; then 56903 ac_cs_success=: 56904 ac_config_status_args= 56905 test "$silent" = yes && 56906 ac_config_status_args="$ac_config_status_args --quiet" 56907 exec 5>/dev/null 56908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 56909 exec 5>>config.log 56910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 56911 # would make configure fail if this is the last instruction. 56912 $ac_cs_success || as_fn_exit 1 56913fi 56914if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 56915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 56916$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 56917fi 56918 56919 56920 56921 56922 56923 # Is the private index set? If not, set it. 56924 if test "x$pmix_scope_index" = "x"; then 56925 pmix_scope_index=1 56926 fi 56927 56928 # First, check to see if any of these variables are already set. 56929 # This is a simple sanity check to ensure we're not already 56930 # overwriting pre-existing variables (that have a non-empty 56931 # value). It's not a perfect check, but at least it's something. 56932 for pmix_var in pmix_summary_section pmix_summary_section_name; do 56933 pmix_str="pmix_str=\"\$$pmix_var\"" 56934 eval $pmix_str 56935 56936 if test "x$pmix_str" != "x"; then 56937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5 56938$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} 56939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5 56940$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;} 56941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5 56942$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;} 56943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 56944$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 56945 as_fn_error $? "Cannot continue" "$LINENO" 5 56946 fi 56947 done 56948 56949 # Ok, we passed the simple sanity check. Save all these names so 56950 # that we can unset them at the end of the scope. 56951 pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_section_name\"" 56952 eval $pmix_str 56953 unset pmix_str 56954 56955 env | grep pmix_scope 56956 pmix_scope_index=`expr $pmix_scope_index + 1` 56957 56958 cat <<EOF 56959 56960PMIx configuration: 56961----------------------- 56962Version: $PMIX_MAJOR_VERSION.$PMIX_MINOR_VERSION.$PMIX_RELEASE_VERSION$PMIX_GREEK_VERSION 56963EOF 56964 56965 if test $WANT_DEBUG = 0 ; then 56966 echo "Debug build: no" 56967 else 56968 echo "Debug build: yes" 56969 fi 56970 56971 if test ! -z $with_platform ; then 56972 echo "Platform file: $with_platform" 56973 else 56974 echo "Platform file: (none)" 56975 fi 56976 56977 echo 56978 56979 for pmix_summary_section in $(echo $pmix_summary_sections) ; do 56980 pmix_summary_section_name=$(echo $pmix_summary_section | tr '_' ' ') 56981 echo "$pmix_summary_section_name" 56982 echo "-----------------------" 56983 echo "$(eval echo \$pmix_summary_values_$pmix_summary_section)" | tr ',' $'\n' | sort -f 56984 echo " " 56985 done 56986 56987 if test $WANT_DEBUG = 1 ; then 56988 cat <<EOF 56989***************************************************************************** 56990 THIS IS A DEBUG BUILD! DO NOT USE THIS BUILD FOR PERFORMANCE MEASUREMENTS! 56991***************************************************************************** 56992 56993EOF 56994 fi 56995 56996 56997 # Unwind the index 56998 pmix_scope_index=`expr $pmix_scope_index - 1` 56999 pmix_scope_test=`expr $pmix_scope_index \> 0` 57000 if test "$pmix_scope_test" = "0"; then 57001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5 57002$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;} 57003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5 57004$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} 57005 as_fn_error $? "Cannot continue" "$LINENO" 5 57006 fi 57007 57008 # Get the variable names from that index 57009 pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\"" 57010 eval $pmix_str 57011 57012 # Iterate over all the variables and unset them all 57013 for pmix_var in $pmix_str; do 57014 unset $pmix_var 57015 done 57016 57017 57018